@qratilabs/qrati-connect 2.27.1 → 2.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/element/{B0sEsGHn.js → 2PuRbItp.js} +7 -7
- package/element/{B5RetLW0.js → 3uWxzKri.js} +51 -49
- package/element/{DyemeRjE2.js → 5z04gCoQ2.js} +1 -1
- package/element/{B9ImRAum.js → 7zeKIiiL.js} +1 -1
- package/element/{MU5QuIq0.js → B01ceTPt.js} +1 -1
- package/element/{C8meSsHD.js → B7YFs6p5.js} +1 -1
- package/element/BB90a5r62.js +93 -0
- package/element/{DSx5wvUb2.js → BHmNrbtm2.js} +1 -1
- package/element/{p0Q_2x6C.js → BIibcFd-.js} +1 -1
- package/element/BL2ZRdn9.js +4 -0
- package/element/{DZGp2V2-.js → BMibcq6T.js} +1 -1
- package/element/BUDCYszs.js +1 -0
- package/element/{DdYePHxG.js → BcAwTWQC.js} +1 -1
- package/element/{DVFC5Z2L2.js → BeUiRRWZ2.js} +31 -31
- package/element/{BdkTKcG52.js → BhOaopIk2.js} +5 -5
- package/element/C6et9sp52.js +3 -0
- package/element/{C4DSwLWc.js → C6ph3KPL.js} +1 -1
- package/element/{DOOdI-Oh.js → C8ixb9k4.js} +1 -1
- package/element/{Bspyv2wJ2.js → CKwlnGWW2.js} +2 -2
- package/element/CMYKP_Yn.js +4 -0
- package/element/CZK4LCzr2.js +3 -0
- package/element/CbTft8Na.js +3 -0
- package/element/CfTxXwtG2.js +36 -0
- package/element/{DlAI3J0X.js → CgaiV8EU.js} +1 -1
- package/element/{Vk429P022.js → Cr4OmKxk2.js} +1 -1
- package/element/{DvisvxzJ.js → CrF08YS6.js} +1 -1
- package/element/CtApMHPf.js +11 -0
- package/element/{BKENYwOQ.js → CxJgMv2R.js} +1 -1
- package/element/{DGZEznLT2.js → D34k0bDj2.js} +1 -1
- package/element/DBlhTxUx2.js +16 -0
- package/element/{CeHBrY_i.js → DUEaNsCB.js} +1 -1
- package/element/DUWOb-5c.js +1 -0
- package/element/{DmIYOIw1.js → DZwpw1jG.js} +1 -1
- package/element/{BspExsK7.js → Da7cHmvl.js} +2 -2
- package/element/{QDuBhueG.js → DlNQukHq.js} +1 -1
- package/element/DmVgPRH5.js +14 -0
- package/element/{CBM5QMn8.js → DtcmI8yd2.js} +1 -1
- package/element/F4i1Y9K7.js +3 -0
- package/element/{DLF5ysgi.js → JFF45CMp.js} +1 -1
- package/element/{CUBxHQ8u.js → KdgQ7jUn.js} +1 -1
- package/element/{C6YE4WUG2.js → cePYhOkN2.js} +4 -4
- package/element/{D_FNRN5A2.js → hiapcVVA2.js} +1 -1
- package/element/{CKQOToSD.js → tJ2MS5HS.js} +3 -3
- package/element/{1eQ9Ef0M2.js → vA5CQmOb2.js} +2 -2
- package/element/web.es.js +39 -39
- package/package.json +1 -1
- package/element/BLeZg2Bz.js +0 -1
- package/element/BmsDSHUi.js +0 -4
- package/element/BqiJLitq2.js +0 -3
- package/element/C6MqLLDX.js +0 -3
- package/element/CfTdZB8y.js +0 -4
- package/element/CgxypkdG.js +0 -3
- package/element/Cl0CwL5p.js +0 -9
- package/element/DRPgs6nu2.js +0 -16
- package/element/DWqIpaZ02.js +0 -2
- package/element/SgRzjPnr.js +0 -14
- package/element/aXvUP7X72.js +0 -93
- package/element/qBKIp1ZW2.js +0 -36
- /package/element/{DPg_DKOi2.js → DPg_DKOi.js} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
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"./DrrpB4Om.js";import{a as v,i as w,n as b,u as y}from"./tJ2MS5HS.js";import{t as x}from"./JFF45CMp.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"./DUWOb-5c.js";import{t as L}from"./BcAwTWQC.js";import{t as S}from"./DZwpw1jG.js";import{n as _}from"./BMibcq6T.js";import{t as z}from"./Bki5T_lb.js";import{t as j}from"./CrF08YS6.js";import{n as P}from"./C8ixb9k4.js";import{t as O}from"./5z04gCoQ2.js";import{n as R,t as U}from"./CKwlnGWW2.js";import{a as $,i as F,n as G,o as B,r as D,s as V,t as W}from"./CZK4LCzr2.js";import{a as H,n as K,o as Q,r as Y,t as Z}from"./Cr4OmKxk2.js";function J(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 X(e,t,n){const[[r],a]=o(J,[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}}function ee(e){return["react-photo-album",e].filter(Boolean).join("--")}function te({width:e,height:t}){const n=e/t;return Number.isFinite(n)?n:1}var ne=Object.freeze([1200,600,300,0]);function re(e,t){return"function"==typeof e?e(t):e}function oe(e,t){return void 0!==t?re(e,t):void 0}function ie(e,t,n,r=0){if(void 0===t)return;const o=oe(e,t);return Math.round(Math.max(void 0===o?function(e,t){const n=ne.findIndex(e=>e<=t);return re(e[Math.max(n,0)],t)}(n,t):o,r))}function ae(e,{spacing:t,padding:n,componentsProps:r,render:o}){return{spacing:ie(t,e,[20,15,10,5]),padding:ie(n,e,[0,0,0,0]),componentsProps:re(r,e)||{},render:re(o,e)}}function se(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function le(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) / ${se((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 ce=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(ee),a),u={style:{...Object.fromEntries(Object.entries(o).map(([e,t])=>{return[(n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),`--${ee(n)}`),"number"==typeof t?se(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})}),de=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:se(n,3),height:se(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(ce,{ref:g,variables:{photoWidth:v.width,photoHeight:v.height},context:v,...w,children:[p(ce,{as:"img",classes:"image",render:l,context:v,...m}),c?.({},v)]})}),ue=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:b,containerWidth:y,tracks:x,variables:N,horizontal:k}=r||{};return p(ce,{role:"group","aria-label":"Photo album",...d,variables:{spacing:w,padding:b,containerWidth:y,...N},classes:["",t],render:a,ref:v,children:[void 0!==w&&void 0!==b&&void 0!==y&&x?.map(({photos:t,variables:r},o)=>{const a=t.length,d=k?a:x.length;return e(ce,{...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(de,{onClick:N,render:c,componentsProps:{image:{loading:"lazy",decoding:"async",src:s,alt:u,title:v,...le(t,n,o,y,d,w,b),...re(f,e)},link:k(re(h,e)),button:k(re(m,e)),wrapper:re(g,e)},...e},a??r)}))}),void 0===y&&o]})});function he(e,t,n,r){return(t-(e.length-1)*n-2*r*e.length)/e.reduce((e,t)=>e+te(t),0)}function pe(e,t,n,r,o,i,a){const s=e.slice(t,n),l=he(s,r,o,i);return l>0?(l-a)**2*s.length:void 0}var me=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=X(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}=ae(e,o),{singleRowMaxHeight:c,minPhotos:d,maxPhotos:u}=oe(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:ie(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(ue,{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 se(t/n/Math.min(...e.map(e=>te(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=pe(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=he(o.map(({photo:e})=>e),r,t,n);p.push({photos:o.map(({photo:e,index:t})=>({photo:e,index:t,width:i*te(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 ge(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/te(e)})),variables:{adjustedGaps:u,columnRatio:a[c]}})}return{tracks:s,variables:{totalRatio:l}}}function fe(e,t,n,r,o,i){const a=[],s=[];if(e.length<=i){const o=e.length>0?e.reduce((e,t)=>e+te(t),0)/e.length:1;for(let t=0;t<i;t+=1)a[t]=2*n,s[t]=t<e.length?te(e[t]):o;return ge(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/te(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/te(e[c])+t+2*n;return a}}(e,t,n,o,(e.reduce((e,t)=>e+o/te(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/te(t),0)}return ge(l,e,t,n,r,a,s)}function ve(e,t,n,r,o){const{tracks:i,variables:a}=fe(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?ve(e,t,n,r,o-1):void 0:{tracks:i,spacing:t,padding:n,containerWidth:r,variables:{columns:o,...a}}}var we=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=X(o,t,n),{spacing:s,padding:l,columns:c,...d}=function(e,{columns:t,...n}){return{...n,...ae(e,n),columns:ie(t,e,[5,4,3,2],1)}}(a,{photos:e,...r});return p(ue,{layout:"columns",ref:i,model:h(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?ve(e,s,l,a,c):void 0,[e,s,l,a,c]),...d})});function be(e,t,n,r,o){const i=(r-t*(o-1)-2*n*o)/o;if(i<=0)return o>1?be(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/te(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/te(e)}))}))}}var ye=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=X(o,t,n),{spacing:s,padding:l,columns:c,...d}=function(e,{columns:t,...n}){return{...n,...ae(e,n),columns:ie(t,e,[5,4,3,2],1)}}(a,{photos:e,...r});return p(ue,{layout:"masonry",ref:i,model:h(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?be(e,s,l,a,c):void 0,[e,s,l,a,c]),...d})}),xe={[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"})]})}},Ne=({open:e,ad:t,onClose:n,captureAdClick:r})=>{const o=Boolean(t?.targetType&&t.targetType!==M.NONE),i=xe[t?.targetType]??xe[M.LINK],a=t?.imageUrl&&z(t.imageUrl,["http:","https:"])?t.imageUrl:void 0;/* @__PURE__ */
|
|
20
|
+
return p(Z,{open:Boolean(e&&t),onOpenChange:e=>!e&&n?.(),children:/* @__PURE__ */p(K,{className:"border-none p-0",children:[/* @__PURE__ */p(H,{className:"sr-only",children:[/* @__PURE__ */p(Q,{children:t?.title}),/* @__PURE__ */p(Y,{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(S,{variant:"h4",align:"center",lines:2,children:t?.title}),/* @__PURE__ */p(S,{variant:"body3",color:"secondary",align:"center",lines:4,children:t?.description})]}),o&&/* @__PURE__ */p(O,{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 ke(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 Te=u(({style:e,content:t,curateLink:n,onAdClick:r,hideControls:o})=>{const{captureAdImpression:i,captureAdEngagement:a,captureAdClick:s}=G(),l=Boolean(n&&r),c=t.ctaBg||"#ff4800",d=t.ctaForeground||"#FFFFFF",u=xe[t?.targetType??M.LINK];/* @__PURE__ */
|
|
22
|
+
return p("div",{style:e,className:"group relative mb-1 overflow-hidden rounded",children:[
|
|
23
|
+
/* @__PURE__ */p(_,{className:"size-full",threshold:.8,triggerOnce:!0,onChange:e=>{e&&i(t._id)},onClick:()=>a(t._id),children:/* @__PURE__ */p(j,{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",{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]})]})]})},ke),Ce=u(({style:e,gamConfig:t,slotIndex:n,eventId:o,organizationId:a})=>{const l=i(null),c=i(null),{trackGamAnalytics:d}=G(),[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 $(),!e&&l.current&&window.googletag.cmd.push(()=>{if(e)return;D(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=W({container:f,onClick:()=>{d({eventId:o,organizationId:a,type:T.GAM_CLICK})}}),F(),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(_,{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"})})})},ke),Ie=(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}},Ee=t(null),qe=()=>{const e=f(Ee);if(!e)throw new Error("Popover components must be used within a Popover");return e},Me=({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(Ee.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:w("relative inline-block",t),children:e})})},Ae=({children:e,asChild:t,className:r,onClick:o,...i})=>{const{isOpen:a,setIsOpen:s,triggerId:l,contentId:c,triggerRef:d}=qe();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})},Le=({children:e,className:t,align:n="center",side:o="top",sideOffset:a=4,...l})=>{const{isOpen:u,setIsOpen:h,contentId:m,triggerRef:g}=qe(),{organization:f,portalContainer:y}=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:w("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,y??document.body):T},Se=({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=y(),{props:t,user:n}=b(),r=t?.organizationId,o=x({mutationFn:async({eventId:e,contentId:t,emoji:o})=>{await N.post(q.UPDATE_REACTION,{json:{eventId:e,contentId:t,reaction:o},headers:{"x-org-id":r,Authorization:`Bearer ${n?.token}`}})},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?(r[n]=Math.max(0,(r[n]??1)-1),{...e,reactionCounts:r,userReaction:void 0}):(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)}),P.error("Failed to add reaction"),console.error("Error handling reaction click:",t,n)}});return{handleReactionClick:async(e,t,r)=>{if(!e||!t||!r)return!1;if(!n)return P.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=Object.values(o).reduce((e,t)=>e+t,0);return r(()=>()=>{C.current&&clearTimeout(C.current)},[]),/* @__PURE__ */p(Me,{open:g,onOpenChange:f,children:[/* @__PURE__ */p(Ae,{asChild:!0,children:/* @__PURE__ */p("button",{type:"button",className:w("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:w("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(Le,{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(L,{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:w("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`)})})]})]})},_e=({event:e={},content:t,curateLink:n})=>e.engagementStyle===I.CONTEST?/* @__PURE__ */p("button",{className:"bg-background/75 flex items-center gap-1 rounded px-2 py-1",children:[/* @__PURE__ */p(V,{className:"size-4"}),/* @__PURE__ */p("span",{className:"text-xs font-semibold",children:parseFloat(String(t.score||0)).toFixed(1)})]}):e.engagementStyle===I.REACTION&&e.reactionEmojis?.length?/* @__PURE__ */p(Se,{eventId:e?._id,contentId:t._id,emojis:e?.reactionEmojis,engagementStyle:e?.engagementStyle,counts:t.reactionCounts||{},userReaction:t.userReaction}):null,ze=({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})})]}),je=u(({event:e,content:t,style:n,timestampField:r,curateLink:o,onChangeFaceUrl:i,hideControls:a,showQuickSearch:s,imageSearchProviders:l=R,organizationId:c})=>{const d=`content-${t._id}`,u=h(()=>Ie(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(j,{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",{className:"bg-primary rounded-full p-1 text-gray-200 opacity-50 transition-all sm:p-1.5 sm:hover:scale-110 sm:hover:opacity-100",onClick:f,children:/* @__PURE__ */p(B,{className:"text-primary-foreground"})}),t.url&&/* @__PURE__ */p(U,{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(ze,{content:t})}),/* @__PURE__ */p("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */p(_e,{event:e,content:t,curateLink:o})})]})]})]})},ke),Pe=u(({content:e,style:t,event:n,timestampField:r,curateLink:o,hideControls:i})=>{const a=h(()=>Ie(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(j,{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(ze,{content:e})}),
|
|
35
|
+
/* @__PURE__ */p("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */p(_e,{event:n,content:e,curateLink:o})})]})]})},ke),Oe=({event:e,contents:t=[],gamConfig:n,singleColumnMode:o,kioskMode:a,timestampField:l,curateLink:c,onChangeFaceUrl:d,showQuickSearch:u})=>{const f=i(null),v=i(!1),y=i(null),x=h(()=>`gallery-${e?._id??""}`,[e?._id]),{captureAdImpression:N,captureAdClick:k}=G(),{portalContainer:T,organization:I}=b(),q=I?._id,M=I?.advancedSettings?.imageSearchProviders?.gallery??R,A=I?.advancedSettings?.imageSearchProviders?.lightbox??R,[L,S]=s(null);r(()=>()=>{f.current?.destroy?.(),f.current=null},[e?.galleryLayout,c,x,T]);const _=m(async t=>{if(c||f.current||v.current)return;const n=y.current,r=t.target.closest("a");if(!n||!r||!n.contains(r))return;t.preventDefault(),v.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("./BwwxqSTC2.js"),import("./BNaRcekR2.js"),import("./BHmNrbtm2.js"),import("./CtxIOzTC2.js"),import("./1dmOpMwn2.js"),import("./web.es.js").then(e=>e.t),A.length>0?import("./D34k0bDj2.js"):Promise.resolve(null)]),h=new t({gallery:n,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,zoom:!1,pswpModule:d,appendToEl:T??document.body});f.current=h,new r(h),new i(h),u&&new u.default(h,A,{organizationId:q,eventId:e?._id}),new a(h),new s(h,N,k),new l(h),new c(h),h.init(),o>=0&&f.current?.loadAndOpen?.(o)}finally{v.current=!1}},[c,T,N,k,A,q,e?._id]),z=h(()=>{switch(e?.galleryLayout){case E.ROW:return me;case E.COLUMN:return we;case E.MASONRY:return ye;default:return me}},[e?.galleryLayout]),j=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]),P=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=je;break;case C.VIDEO:m=Pe;break;case C.AD:m=Te;break;case C.GAM_AD:return n?/* @__PURE__ */p(Ce,{style:{width:o,height:i},gamConfig:n,slotIndex:h.slotIndex??s,eventId:e?._id,organizationId:q},`${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?S:void 0,hideControls:a,curateLink:c?`${c}/${h._id}`:null,onChangeFaceUrl:d,showQuickSearch:u,imageSearchProviders:M,organizationId:q},`${h._id??s}-${s}`):null}}),[e,n,q,l,c,a,d,u,M]);/* @__PURE__ */
|
|
36
|
+
return p(g,{children:[/* @__PURE__ */p("div",{id:x,ref:y,onClickCapture:_,className:w(o?"w-full lg:w-1/3":"w-full"),children:/* @__PURE__ */p(z,{spacing:4,rowConstraints:e=>{const t={minPhotos:1,maxPhotos:4,singleRowMaxHeight:400};return o&&(t.minPhotos=1,t.maxPhotos=e<400?2:e<800?3:4),t},columns:e=>o?1:e<400?2:e<800?3:4,photos:j,render:P})}),/* @__PURE__ */p(Ne,{open:Boolean(L),ad:L,onClose:()=>S(null),captureAdClick:k})]})};export{Oe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e,s as r,t,v as o}from"./DrrpB4Om.js";import{n as s}from"./
|
|
1
|
+
import{d as e,s as r,t,v as o}from"./DrrpB4Om.js";import{n as s}from"./tJ2MS5HS.js";import{x as l}from"./DUWOb-5c.js";import{l as i}from"./BcAwTWQC.js";import"./7zeKIiiL.js";var n=e(()=>import("./F4i1Y9K7.js")),a=e(()=>import("./CMYKP_Yn.js")),c=e(()=>import("./CbTft8Na.js")),p=e(()=>import("./BL2ZRdn9.js")),d=()=>/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"text-center",children:[
|
|
2
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
3
|
/* @__PURE__ */t("p",{class:"text-foreground",children:"No location data available."}),
|
|
4
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(),h=x?.integrationSettings??{},u=h.mapProvider??"openstreetmap",v=o(e=>{f(l.GALLERY(e))},[f]);if("openstreetmap_free"===u)/* @__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=h.mapTilerApiKey??"",b=h.googleMapsApiKey??"",j=h.mapboxApiKey??"",w=e.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);/* @__PURE__ */
|
|
@@ -1,2 +1,2 @@
|
|
|
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"./DrrpB4Om.js";import{a as r,i as m,n as c}from"./
|
|
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"./DrrpB4Om.js";import{a as r,i as m,n as c}from"./tJ2MS5HS.js";var i=e(null),p=({open:e,onOpenChange:d,children:l})=>{const[r,m]=t(!!e);a(()=>{"boolean"==typeof e&&m(e)},[e]);const c=n(e=>{m(e),d?.(e)},[d]),p=s(()=>({open:r,setOpen:c}),[r,c]);/* @__PURE__ */
|
|
2
2
|
return o(i.Provider,{value:p,children:l})},x=({children:e})=>/* @__PURE__ */o(d,{children:e}),u=({className:e,...a})=>/* @__PURE__ */o("div",{"data-state":l(i)?.open?"open":"closed",className:m("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}=c(),d=l(i);return a(()=>{if(!d?.open)return;const e=e=>{"Escape"===e.key&&d.setOpen(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[d?.open]),d?.open?/* @__PURE__ */o(x,{children:[/* @__PURE__ */o(u,{onClick:()=>d.setOpen(!1)}),/* @__PURE__ */o("div",{role:"dialog","aria-modal":"true","data-state":d?.open?"open":"closed",className:m("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:r(n),...s,children:t})]}):null},b=({className:e,...a})=>/* @__PURE__ */o("div",{className:m("flex flex-col space-y-1 p-3 text-center sm:text-left",e),...a}),h=({className:e,...a})=>/* @__PURE__ */o("div",{className:m("flex justify-end space-x-3 p-4",e),...a}),v=({className:e,...a})=>/* @__PURE__ */o("h2",{className:m("text-center text-lg font-semibold",e),...a}),N=({className:e,...a})=>/* @__PURE__ */o("p",{className:m("text-muted-foreground text-center text-sm",e),...a});export{b as a,h as i,f as n,v as o,N as r,p as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,t as l,w as r}from"./DrrpB4Om.js";import{c as a}from"./
|
|
1
|
+
import{p as t,t as l,w as r}from"./DrrpB4Om.js";import{c as a}from"./DUWOb-5c.js";import{t as s}from"./BcAwTWQC.js";import{t as e}from"./BMibcq6T.js";import{t as i}from"./Bki5T_lb.js";var o=({url:o,alt:p="",thumbnailUrl:c,blurhash:h,pswpData:n={},curateLink:u,onClick:m})=>{const w=t(()=>(t=>Object.keys(t).reduce((l,r)=>{const a=t[r];return null==a||""===a||(l[`data-pswp-${s=r,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]=a),l;var s},{}))(n),[n]),f=/* @__PURE__ */l(r,{children:[/* @__PURE__ */l(e,{threshold:.1,src:c||o,blurhash:h,alt:p}),n.type===a.VIDEO&&/* @__PURE__ */l("div",{className:"absolute inset-0 top-0 left-0 flex items-center justify-center opacity-75",children:/* @__PURE__ */l("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-16 text-white lg:w-24",viewBox:"0 0 24 24",children:/* @__PURE__ */l("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(m)/* @__PURE__ */return l("button",{className:"h-full w-full",onClick:m,children:f});if(u)/* @__PURE__ */return l(s,{to:u,className:"h-full w-full",children:f});const d=o&&i(o,["http:","https:"])?o:void 0;return d?/* @__PURE__ */l("a",{href:d,className:"pswp-item block h-full w-full",...w,...c?{"data-pswp-thumbnail-url":c}:{},...h?{"data-pswp-blurhash":h}:{},target:"_blank",rel:"noreferrer",children:f}):/* @__PURE__ */l("span",{className:"pswp-item block h-full w-full",...w,...c?{"data-pswp-thumbnail-url":c}:{},...h?{"data-pswp-blurhash":h}:{},children:f})};export{o as t};
|
|
@@ -0,0 +1,11 @@
|
|
|
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"./DrrpB4Om.js";import{a as m,i as p,n as u}from"./tJ2MS5HS.js";import{t as h,x as f}from"./DUWOb-5c.js";import{t as v}from"./BcAwTWQC.js";import{r as b,t as g}from"./DZwpw1jG.js";import{t as x}from"./BsYbcfkG.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??Math.random()))]}),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 M({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 L=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(L.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(L),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(L),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(L),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,M as o,j as r,E as s,A as t,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r}from"./DrrpB4Om.js";import{i as a}from"./
|
|
1
|
+
import{t as r}from"./DrrpB4Om.js";import{i as a}from"./tJ2MS5HS.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 +1 @@
|
|
|
1
|
-
import{t as c}from"./DmpmrPE5.js";import{c as t,i as a}from"./BLeZg2Bz.js";import{i as e,r as i}from"./Bspyv2wJ2.js";var r={bing:"<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 388'><defs><radialGradient id='pswpImageSearchBingIconGradA' cx='93.717%' cy='77.818%' r='143.121%' fx='93.717%' fy='77.818%' gradientTransform='matrix(-.65486 -.5438 .75575 -.4712 .963 1.654)'><stop offset='0%' stop-color='#00cacc' /><stop offset='100%' stop-color='#048fce' /></radialGradient><radialGradient id='pswpImageSearchBingIconGradB' cx='13.893%' cy='71.448%' r='150.086%' fx='13.893%' fy='71.448%' gradientTransform='matrix(.55155 -.39387 .23634 .91917 -.107 .112)'><stop offset='0%' stop-color='#00bbec' /><stop offset='100%' stop-color='#2756a9' /></radialGradient><linearGradient id='pswpImageSearchBingIconGradC' x1='50%' x2='50%' y1='0%' y2='100%'><stop offset='0%' stop-color='#00bbec' /><stop offset='100%' stop-color='#2756a9' /></linearGradient></defs><path fill='url(#pswpImageSearchBingIconGradA)' d='M129.424 122.047c-7.133.829-12.573 6.622-13.079 13.928c-.218 3.147-.15 3.36 6.986 21.722c16.233 41.774 20.166 51.828 20.827 53.243c1.603 3.427 3.856 6.65 6.672 9.544c2.16 2.22 3.585 3.414 5.994 5.024c4.236 2.829 6.337 3.61 22.818 8.49c16.053 4.754 24.824 7.913 32.381 11.664c9.791 4.86 16.623 10.387 20.944 16.946c3.1 4.706 5.846 13.145 7.04 21.64c.468 3.321.47 10.661.006 13.663c-1.008 6.516-3.021 11.976-6.101 16.545c-1.638 2.43-1.068 2.023 1.313-.939c6.74-8.379 13.605-22.7 17.108-35.687c4.24-15.718 4.817-32.596 1.66-48.57c-6.147-31.108-25.786-57.955-53.444-73.06c-1.738-.95-8.357-4.42-17.331-9.085a1633 1633 0 0 1-4.127-2.154c-.907-.477-2.764-1.447-4.126-2.154c-1.362-.708-5.282-2.75-8.711-4.539l-8.528-4.446a6021 6021 0 0 1-8.344-4.357c-8.893-4.655-12.657-6.537-13.73-6.863c-1.125-.343-3.984-.782-4.701-.723c-.152.012-.838.088-1.527.168' /><path fill='url(#pswpImageSearchBingIconGradB)' d='M148.81 277.994c-.493.292-1.184.714-1.537.938c-.354.225-1.137.712-1.743 1.083a8315 8315 0 0 0-13.204 8.137a2848 2848 0 0 0-8.07 4.997a388 388 0 0 1-3.576 2.198c-.454.271-2.393 1.465-4.31 2.654a2652 2652 0 0 1-7.427 4.586a3958 3958 0 0 0-8.62 5.316a3011 3011 0 0 1-7.518 4.637c-1.564.959-3.008 1.885-3.21 2.058c-.3.257-14.205 8.87-21.182 13.121c-5.3 3.228-11.43 5.387-17.705 6.235c-2.921.395-8.45.396-11.363.003c-7.9-1.067-15.176-4.013-21.409-8.666c-2.444-1.826-7.047-6.425-8.806-8.8c-4.147-5.598-6.829-11.602-8.218-18.396c-.32-1.564-.622-2.884-.672-2.935c-.13-.13.105 2.231.528 5.319c.44 3.211 1.377 7.856 2.387 11.829c7.814 30.743 30.05 55.749 60.15 67.646c8.668 3.424 17.415 5.582 26.932 6.64c3.576.4 13.699.56 17.43.276c17.117-1.296 32.02-6.334 47.308-15.996c1.362-.86 3.92-2.474 5.685-3.585a877 877 0 0 0 4.952-3.14c.958-.615 2.114-1.341 2.567-1.614a91 91 0 0 0 2.018-1.268c.656-.424 3.461-2.2 6.235-3.944l11.092-7.006l3.809-2.406l.137-.086l.42-.265l.199-.126l2.804-1.771l9.69-6.121c12.348-7.759 16.03-10.483 21.766-16.102c2.392-2.342 5.997-6.34 6.176-6.848c.037-.104.678-1.092 1.424-2.197c3.036-4.492 5.06-9.995 6.064-16.484c.465-3.002.462-10.342-.005-13.663c-.903-6.42-2.955-13.702-5.167-18.339c-3.627-7.603-11.353-14.512-22.453-20.076c-3.065-1.537-6.23-2.943-6.583-2.924c-.168.009-10.497 6.322-22.954 14.03c-12.457 7.71-23.268 14.4-24.025 14.87s-2.056 1.263-2.888 1.764z' /><path fill='url(#pswpImageSearchBingIconGradC)' d='m.053 241.013l.054 53.689l.695 3.118c2.172 9.747 5.937 16.775 12.482 23.302c3.078 3.07 5.432 4.922 8.768 6.896c7.06 4.177 14.657 6.238 22.978 6.235c8.716-.005 16.256-2.179 24.025-6.928c1.311-.801 6.449-3.964 11.416-7.029l9.032-5.572v-127.4l-.002-58.273c-.002-37.177-.07-59.256-.188-60.988c-.74-10.885-5.293-20.892-12.948-28.461c-2.349-2.323-4.356-3.875-10.336-7.99a25160 25160 0 0 1-12.104-8.336L28.617 5.835C22.838 1.85 22.386 1.574 20.639.949C18.367.136 15.959-.163 13.67.084C6.998.804 1.657 5.622.269 12.171C.053 13.191.013 26.751.01 100.35l-.003 86.975H0z' /></svg>",google:"<svg focusable='false' viewBox='24 24 144 144' xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><rect fill='none' height='192' width='192'></rect><g><circle fill='#34A853' cx='144.07' cy='144' r='16'></circle><circle fill='#4285F4' cx='96.07' cy='104' r='24'></circle><path fill='#EA4335' d='M24,135.2c0,18.11,14.69,32.8,32.8,32.8H96v-16l-40.1-0.1c-8.8,0-15.9-8.19-15.9-17.9v-18H24V135.2z'></path><path fill='#FBBC05' d='M168,72.8c0-18.11-14.69-32.8-32.8-32.8H116l20,16c8.8,0,16,8.29,16,18v30h16V72.8z'></path><path fill='#4285F4' d='M112,24l-32,0L68,40H56.8C38.69,40,24,54.69,24,72.8V92h16V74c0-9.71,7.2-18,16-18h80L112,24z'></path></g></svg>",yandex:"<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 512 512'><path d='M0 0h512v512H0z' fill='none' /><path fill='#fc3f1d' d='M215.4 512v-51.6c0-70-8.1-104.6-36.2-165L42.5 0h94.6l116 252.7c34 73.7 48.8 112 48.8 196.7V512zm55.4-264.5L378.6 0h90.9L360.2 247.5z' /></svg>",tineye:"<svg viewBox='1 1 1068.602 1130.2890000000002' xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><path d='M1 146.465c1.012-3.903 1.838-7.409 3.07-10.766 5.624-15.345 16.325-25.676 31.703-30.943 17.155-5.875 33.28-3.237 47.818 7.437 16.318 11.982 22.46 28.84 20.238 48.376-2.052 18.038-12.097 31.13-28.646 39.863 0-1.39-.118-2.196.038-2.945.121-.585.582-1.099 1.068-1.954-7.978-4.868-15.508-9.882-25.418-9.679-5.159.106-7.615 2.867-8.59 6.88-.82 3.38-.169 7.119-.169 10.678-15.082.424-38.897-18.662-40.722-43.27C1 155.642 1 151.285 1 146.464zM697.563 1c3.152.66 5.846 1.434 8.586 1.962 21.387 4.124 36.727 21.703 39.678 42.526 2.322 16.39-2.362 31.39-13.7 43.634-3.924 4.238-9.373 7.064-14.794 11.024V86.514c-8.367-2.075-16.536-6.866-26.074-4.537-6.647 1.623-8.387 4.166-7.21 10.652.674 3.714 1.697 7.365 2.568 11.069-23.52-2.48-45.548-23.77-43.578-54.88 1.495-23.6 20.856-45.936 47.813-47.423C693.042 1 695.083 1 697.562 1z' fill='#ff8e4d' /><path d='M833.776 655.58c-10.198 10.224-20.302 20.53-27.821 33.009-.845 1.402-1.502 2.918-1.834 4.622 19.7-22.734 40.135-44.277 69.395-55.173-3.002 7.006-6.19 13.825-8.871 20.84-4.69 12.265-8.02 24.904-8.616 38.099-.485 10.743-1.676 21.576-.832 32.232 1.972 24.88 8.432 48.532 22.772 69.482 9.841 14.377 22.553 24.875 40.261 27.128 12.076 1.536 22.903-3.039 32.61-10.162 11.464-8.413 18.832-20.01 25.134-32.428 1.015-1.999 1.977-4.024 3.16-6.435 3.462 1.316 6.734 2.41 9.853 3.84.898.41 1.98 1.83 1.917 2.71-.816 11.438-1.7 22.875-2.824 34.286-.83 8.425-1.606 16.893-3.166 25.2-3.51 18.704-7.07 37.418-11.386 55.947-5.88 25.242-16.105 49.031-26.748 72.517-7.348 16.217-15.96 31.923-24.895 47.343-8.305 14.334-19.022 26.979-31.267 38.22-12.997 11.93-27.803 20.952-44.338 27.097-12.342 4.587-25.07 6.994-38.231 8.246-15.726 1.496-31.241.584-46.78-1.242-12.261-1.441-24.662-2.456-36.66-5.171-13.244-2.998-26.222-7.358-39.091-11.78-15.205-5.225-28.167-14.694-41.412-23.493-9.622-6.391-20.643-8.736-31.506-11.436-21.082-5.238-42.684-6.441-64.165-4.817-19.712 1.491-38.637 6.86-55.184 18.671-9.74 6.952-17.283 15.785-24.144 25.464-13.112 18.498-28.924 34.11-49.937 43.535-13.625 6.11-28.204 9.358-42.883 6.8-20.243-3.526-39.004-11.365-55.833-23.652-16.86-12.308-30.797-26.983-41.591-44.967-8.502-14.164-14.824-29.127-20.083-44.668-6.874-20.315-13.436-40.75-20.89-60.853-8.184-22.07-16.908-43.955-26.017-65.66-5.701-13.584-11.68-27.197-19.108-39.874-8.543-14.576-18.478-28.385-28.435-42.072-13.246-18.208-30.907-31.683-49.654-43.726-13.449-8.64-28.179-14.483-43.703-18.219-7.177-1.728-14.458-3.024-22.076-4.595.232-14.352 4.716-27.508 11.967-39.735 10.145-17.104 24.47-29.948 42.045-39.022 12.592-6.501 25.934-10.992 39.912-13.76 21.243-4.205 42.73-6.09 64.225-4.73 32.393 2.051 64.226 7.228 93.188 23.455 19.679 11.026 35.886 25.733 48.805 44.249 13.232 18.965 29.348 34.85 50.806 44.414 10.33 4.604 21.108 8 32.504 8.64 9.738.547 19.514 1.23 29.243.922 14.455-.456 28.58-3.25 42.498-7.357 18.897-5.576 35.259-15.42 48.973-29.285 12.7-12.84 22.52-28.006 32.437-43.073a1466.113 1466.113 0 0 1 35.434-51.417c6.192-8.588 12.99-16.884 20.458-24.371 9.269-9.293 18.948-18.377 29.472-26.17 15.528-11.499 31.456-22.645 48.152-32.32 15.104-8.754 31.1-16.27 47.368-22.63 18.478-7.223 37.565-13 56.638-18.546 11.712-3.405 23.842-5.473 35.873-7.651 23.644-4.28 47.586-4.891 71.484-3.91 23.363.959 46.105 5.144 67.855 14.681 17.212 7.548 31.471 18.688 43.382 32.658 7.468 8.759 12.993 19.172 19.418 28.824 2.862 4.3 5.794 8.553 8.568 12.64l-27.055 14.844c-8.802-7.399-17.266-15.134-26.382-22.002-9.389-7.073-20.492-10.987-31.998-12.606-10.873-1.53-22.022-2.578-32.941-1.947-17.924 1.035-35.542 4.802-52.31 11.431-11.769 4.653-23.328 9.9-34.717 15.423-6.627 3.214-13.073 7.052-18.941 11.481-3.194 2.41-4.626 7.023-7.528 9.979-5.936 6.045-12.084 11.936-18.588 17.357-10.634 8.86-22.608 16.338-32.174 26.188-8.913 9.178-15.89 20.388-22.893 31.238-13.673 21.186-23.306 44.306-30.348 68.458-3.638 12.476-6.514 25.175-9.703 37.78-.157.621-.02 1.317-.02 3.079 1.318-1.914 2.148-2.964 2.813-4.11 13.397-23.077 26.412-46.387 40.267-69.187 12.027-19.79 25.918-38.324 42.665-54.45 6.49-6.248 13.345-12.349 23-14.775.733.24.88.344 1.027.448m-32.505 40.628c-.785 1.906-1.569 3.813-2.914 5.913l-.121 1.619c.44-.315.879-.63 1.878-1.424.885-1.91 1.77-3.818 3.216-6.215l.76-2.262-.984-.397c-.394.827-.789 1.654-1.835 2.766z' fill='#2c71a1' /><path d='M111.274 531.919c-1.425-2.304-2.883-4.587-4.267-6.914-6.663-11.196-14.614-21.852-19.626-33.745-6.375-15.128-11.098-31.076-15.144-47.022-3.174-12.51-4.482-25.522-6.163-38.37-1.374-10.505-3.456-21.193-2.74-31.629.992-14.457 3.509-28.946 6.886-43.06 2.776-11.599 6.764-23.155 12-33.857 7.262-14.839 17.008-28.15 28.216-40.56 16.136-17.864 34.4-32.98 54.856-45.321 15.683-9.462 32.147-17.63 48.289-26.329.5-.27 1.274-.034 2.357-.034-6.557 12.2-10.399 24.806-9.872 39.006 10.55-1.929 20.784-3.912 31.06-5.645 9.599-1.618 19.24-2.979 28.866-4.437 10.91-1.652 21.804-3.434 32.742-4.883 9.383-1.242 18.819-2.075 28.227-3.124 11.671-1.302 23.335-2.676 35.01-3.945 4.238-.46 8.496-.76 12.751-1.04 15.587-1.025 31.178-1.987 46.763-3.032 2.756-.185 5.616-.286 8.19-1.141 1.363-.453 2.604-2.279 3.239-3.767 8.277-19.404 20.902-35.287 39.157-45.93 13.107-7.642 27.702-8.734 42.6-6.323 2.597.42 5.346-.13 7.96.23 10.593 1.464 21.227 2.76 31.72 4.777 12.325 2.37 24.687 4.843 36.723 8.336a336.134 336.134 0 0 1 36.653 12.97c12.702 5.346 25.388 11.062 37.208 18.086 13.702 8.143 26.668 17.6 39.413 27.204 2.245 1.69 2.33 6.872 2.567 10.497 1.183 18.076 2.13 36.168 3.006 54.262.077 1.599-.49 3.719-1.56 4.807-9.856 10.019-16.62 21.46-17.384 35.853-.952 17.956 1.755 34.995 15.008 48.278 3.72 3.729 9.444 6.317 14.682 7.482a53.559 53.559 0 0 0 27.013-.97c9.915-2.969 16.342-10.268 19.165-19.798 7.535-25.441 3.02-48.47-15.62-68.054-1.33-1.397-2.909-2.674-4.598-3.59-8.758-4.752-10.2-13.713-12.5-21.998-2.093-7.535-3.397-15.29-4.296-23.5 3.045 3.265 6.42 6.284 9.074 9.84 8.51 11.401 17.147 22.74 25.01 34.584 12.224 18.418 20.751 38.61 27.103 59.774 4.034 13.439 7.075 26.985 6.993 41.104-.058 10.003.715 20.072-.18 29.996-1.367 15.159-6.268 29.186-16.355 41.103-9.711 11.474-21.865 19.756-34.937 26.61-16.19 8.488-32.696 16.389-49.227 24.2-12.315 5.82-24.892 11.085-37.337 16.63-1.019.453-1.928 1.153-3.437 2.06-11.006 5.07-21.508 9.721-31.899 14.61-4.036 1.9-7.82 4.335-11.72 6.526-5.516 2.17-11.126 4.13-16.53 6.551-13.01 5.83-25.846 12.054-38.9 17.783-13.787 6.05-27.527 12.32-41.684 17.39a854.019 854.019 0 0 1-55.83 17.861c-10.218 2.886-20.923 4.317-31.507 5.57-12.69 1.504-25.478 2.227-38.238 3.082-8.07.54-16.17.638-24.25 1.055-11.674.603-23.37 2.176-35.006 1.801-23.602-.76-46.949-3.724-70.058-9.165-20.113-4.736-38.798-13.253-58.266-19.643-10.038-3.294-20.61-5.183-30.314-9.218-15.067-6.264-29.406-14.109-41.517-25.423-2.854-2.665-6.02-4.995-9.414-7.896-3.625-3.797-6.878-7.176-10.131-10.555m73.558-223.68c-1.957.918-3.883 1.906-5.873 2.743-20.59 8.662-39.373 20.002-54.226 37.019-2.474 2.835-4.878 6.043-6.214 9.504-4.8 12.437-7.296 25.488-7.29 38.777.006 11.572.882 23.173 1.934 34.71 1.411 15.463 5.677 30.27 12.6 44.154 12.145 24.355 32.196 40.286 56.833 50.359 29.439 12.036 60.666 16.402 92.158 17.14 26.376.618 52.813-.85 79.207-1.824a483.46 483.46 0 0 0 39.068-3.048c18.999-2.253 38.009-4.661 56.847-7.958 24.862-4.352 49.655-9.203 74.307-14.616a567.756 567.756 0 0 0 83.14-25.058c15.603-6.037 30.865-12.955 46.237-19.576 1.24-.534 2.146-1.845 3.207-2.795-.88-.849-1.666-1.831-2.655-2.525-5.937-4.168-12.375-7.749-17.806-12.487-18.845-16.442-28.918-38.217-35.25-61.762-4.044-15.042-8.05-30.257-7.175-46.145.045-.809-.316-1.635-.317-2.454-.02-13.269-.305-26.546.087-39.804.288-9.74 1.627-19.445 2.076-29.184.064-1.37-2.163-3.982-3.514-4.112-23.36-2.246-46.715-4.981-70.141-5.964-19.903-.834-39.896.37-59.846.795-6.79.144-13.588.486-20.357 1.037-14.823 1.207-29.63 2.597-44.443 3.928-11.357 1.021-22.737 1.855-34.064 3.154-15.241 1.75-30.458 3.746-45.654 5.856-16.343 2.27-32.75 4.263-48.95 7.326-28.293 5.348-56.174 12.428-83.926 22.81z' fill='#2c71a1' /><path d='M185.21 308.158c27.374-10.3 55.255-17.38 83.548-22.73 16.2-3.062 32.607-5.055 48.95-7.325 15.196-2.11 30.413-4.107 45.654-5.856 11.327-1.299 22.707-2.133 34.064-3.154 14.813-1.331 29.62-2.721 44.443-3.928 6.77-.55 13.566-.893 20.357-1.037 19.95-.424 39.943-1.63 59.846-.795 23.426.983 46.781 3.718 70.141 5.964 1.35.13 3.578 2.742 3.514 4.112-.45 9.74-1.788 19.445-2.076 29.184-.392 13.258-.107 26.535-.087 39.804 0 .819.362 1.645.317 2.454-.876 15.888 3.131 31.103 7.176 46.145 6.33 23.545 16.404 45.32 35.249 61.762 5.431 4.738 11.869 8.319 17.806 12.487.989.694 1.775 1.676 2.655 2.525-1.061.95-1.967 2.26-3.207 2.795-15.372 6.621-30.634 13.54-46.236 19.576a567.756 567.756 0 0 1-83.14 25.058c-24.653 5.413-49.446 10.264-74.308 14.616-18.838 3.297-37.848 5.705-56.847 7.958a483.46 483.46 0 0 1-39.068 3.048c-26.394.975-52.831 2.442-79.207 1.824-31.492-.738-62.72-5.104-92.158-17.14-24.637-10.073-44.688-26.004-56.833-50.359-6.923-13.884-11.189-28.69-12.6-44.154-1.052-11.537-1.928-23.138-1.934-34.71-.006-13.29 2.49-26.34 7.29-38.777 1.336-3.46 3.74-6.67 6.214-9.504 14.853-17.017 33.635-28.357 54.226-37.019 1.99-.837 3.916-1.825 6.251-2.824m201.146 114.733c3.146 6.947 5.851 14.138 9.519 20.798 11.592 21.054 26.994 38.551 49.189 48.882 24.235 11.28 46.022 5.832 61.441-13.842 16.128-20.578 19.654-45.064 17.3-70.257-1.75-18.72-7.447-36.601-16.597-53.217-11.632-21.12-27.003-38.54-49.269-48.838-17.506-8.097-34.753-7.824-50.904 3.538-9.657 6.795-15.44 16.686-20.256 27.253-8.104 17.78-9.529 36.447-6.972 55.437 1.337 9.936 4.121 19.677 6.549 30.246m-205.288 6.26c.279.95.58 1.896.834 2.855 8.37 31.684 24.064 58.327 52.575 76.068 10.332 6.429 21.605 10.803 33.816 9.782 15.072-1.262 26.844-9.179 34.787-21.995 12.524-20.21 15.326-42.372 11.611-65.506-2.51-15.637-7.657-30.41-15.519-44.222-11.426-20.073-26.468-36.252-47.802-46.146-21.335-9.894-40.216-5.203-53.795 9.063-12.745 13.39-17.955 30.418-18.49 48.578-.301 10.198 1.181 20.449 1.983 31.522z' /><path d='M386.208 422.521c-2.28-10.199-5.064-19.94-6.401-29.876-2.557-18.99-1.132-37.658 6.972-55.437 4.817-10.567 10.599-20.458 20.256-27.253 16.15-11.362 33.398-11.635 50.904-3.538 22.266 10.298 37.637 27.718 49.269 48.838 9.15 16.616 14.848 34.497 16.597 53.217 2.354 25.193-1.172 49.679-17.3 70.257-15.419 19.674-37.206 25.123-61.441 13.842-22.195-10.33-37.597-27.828-49.19-48.882-3.667-6.66-6.372-13.85-9.666-21.168m25.884-3.891c-.513 8.802.736 17.129 6.055 24.535 9.544 13.288 26.966 12.323 35.396.758 8.54-11.714 9.476-24.526 4.363-37.58-5.39-13.761-18.67-20.01-30.185-14.433-10.514 5.093-14.972 14.421-15.629 26.72zM181.007 428.727c-.74-10.65-2.223-20.901-1.923-31.1.536-18.16 5.746-35.187 18.491-48.577 13.579-14.266 32.46-18.957 53.795-9.063 21.334 9.894 36.376 26.073 47.802 46.146 7.862 13.811 13.009 28.585 15.52 44.222 3.714 23.134.912 45.296-11.612 65.506-7.943 12.816-19.715 20.733-34.787 21.995-12.21 1.021-23.484-3.353-33.816-9.782-28.511-17.741-44.204-44.384-52.575-76.068-.253-.959-.555-1.904-.895-3.28m22.423 22.124c.91 3.328 1.434 6.827 2.808 9.951 3.527 8.018 9.159 13.987 18.316 15.025 9.436 1.07 16.428-2.542 21.25-11.198 8.09-14.52 8.726-28.544-.864-42.536-7.955-11.606-26.807-11.4-35 .093-6.043 8.476-7.465 17.831-6.51 28.665z' fill='#fff' /><path d='M412.092 418.16c.657-11.829 5.115-21.157 15.63-26.25 11.515-5.577 24.794.672 30.184 14.433 5.113 13.054 4.178 25.866-4.363 37.58-8.43 11.565-25.852 12.53-35.396-.758-5.319-7.406-6.568-15.733-6.055-25.006zM203.28 450.427c-.805-10.41.617-19.766 6.66-28.242 8.193-11.492 27.045-11.699 35-.093 9.59 13.992 8.954 28.016.865 42.536-4.823 8.656-11.815 12.268-21.25 11.198-9.158-1.038-14.79-7.007-18.317-15.025-1.374-3.124-1.897-6.623-2.958-10.374z' /></svg>"},o=class{constructor(c,t=[],a={}){this.lightbox=c,this.providers=t.filter(e),this.organizationId=a.organizationId,this.eventId=a.eventId,c.on("init",()=>{this.initPswpEvents(c.pswp)})}trackClick(t,e){this.organizationId&&this.eventId&&c.post(a.TRACK_IMAGE_SEARCH_CLICK,{json:{organizationId:this.organizationId,eventId:this.eventId,contentId:e,provider:t,surface:"lightbox"},headers:{"x-org-id":this.organizationId}}).catch(()=>{})}initPswpEvents(c){if(0===this.providers.length)return;const a=()=>{const a=c.currSlide?.data?.type?.toLowerCase()===t.IMAGE.toLowerCase();c.element?.classList.toggle("pswp--image-search-allowed",a)};c.on("change",a),c.on("afterInit",a),c.on("uiRegister",()=>{this.providers.forEach(a=>{const e=i[a];c.ui.registerElement({name:`image-search-button-${a}`,className:"pswp__button--image-search-button",order:7,isButton:!0,tagName:"button",title:`Search this image on ${e.label}`,html:{isCustomSVG:!0,inner:r[a],outlineID:`pswp__icn-image-search-${a}`},onClick:(c,i,r)=>{const o=r.currSlide?.data;o?.type?.toLowerCase()===t.IMAGE.toLowerCase()&&o.src&&(window.open(e.buildUrl(o.src),"_blank","noopener,noreferrer"),this.trackClick(a,o.id))}})})})}};export{o as default};
|
|
1
|
+
import{t as c}from"./DmpmrPE5.js";import{c as t,i as a}from"./DUWOb-5c.js";import{i as e,r as i}from"./CKwlnGWW2.js";var r={bing:"<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 388'><defs><radialGradient id='pswpImageSearchBingIconGradA' cx='93.717%' cy='77.818%' r='143.121%' fx='93.717%' fy='77.818%' gradientTransform='matrix(-.65486 -.5438 .75575 -.4712 .963 1.654)'><stop offset='0%' stop-color='#00cacc' /><stop offset='100%' stop-color='#048fce' /></radialGradient><radialGradient id='pswpImageSearchBingIconGradB' cx='13.893%' cy='71.448%' r='150.086%' fx='13.893%' fy='71.448%' gradientTransform='matrix(.55155 -.39387 .23634 .91917 -.107 .112)'><stop offset='0%' stop-color='#00bbec' /><stop offset='100%' stop-color='#2756a9' /></radialGradient><linearGradient id='pswpImageSearchBingIconGradC' x1='50%' x2='50%' y1='0%' y2='100%'><stop offset='0%' stop-color='#00bbec' /><stop offset='100%' stop-color='#2756a9' /></linearGradient></defs><path fill='url(#pswpImageSearchBingIconGradA)' d='M129.424 122.047c-7.133.829-12.573 6.622-13.079 13.928c-.218 3.147-.15 3.36 6.986 21.722c16.233 41.774 20.166 51.828 20.827 53.243c1.603 3.427 3.856 6.65 6.672 9.544c2.16 2.22 3.585 3.414 5.994 5.024c4.236 2.829 6.337 3.61 22.818 8.49c16.053 4.754 24.824 7.913 32.381 11.664c9.791 4.86 16.623 10.387 20.944 16.946c3.1 4.706 5.846 13.145 7.04 21.64c.468 3.321.47 10.661.006 13.663c-1.008 6.516-3.021 11.976-6.101 16.545c-1.638 2.43-1.068 2.023 1.313-.939c6.74-8.379 13.605-22.7 17.108-35.687c4.24-15.718 4.817-32.596 1.66-48.57c-6.147-31.108-25.786-57.955-53.444-73.06c-1.738-.95-8.357-4.42-17.331-9.085a1633 1633 0 0 1-4.127-2.154c-.907-.477-2.764-1.447-4.126-2.154c-1.362-.708-5.282-2.75-8.711-4.539l-8.528-4.446a6021 6021 0 0 1-8.344-4.357c-8.893-4.655-12.657-6.537-13.73-6.863c-1.125-.343-3.984-.782-4.701-.723c-.152.012-.838.088-1.527.168' /><path fill='url(#pswpImageSearchBingIconGradB)' d='M148.81 277.994c-.493.292-1.184.714-1.537.938c-.354.225-1.137.712-1.743 1.083a8315 8315 0 0 0-13.204 8.137a2848 2848 0 0 0-8.07 4.997a388 388 0 0 1-3.576 2.198c-.454.271-2.393 1.465-4.31 2.654a2652 2652 0 0 1-7.427 4.586a3958 3958 0 0 0-8.62 5.316a3011 3011 0 0 1-7.518 4.637c-1.564.959-3.008 1.885-3.21 2.058c-.3.257-14.205 8.87-21.182 13.121c-5.3 3.228-11.43 5.387-17.705 6.235c-2.921.395-8.45.396-11.363.003c-7.9-1.067-15.176-4.013-21.409-8.666c-2.444-1.826-7.047-6.425-8.806-8.8c-4.147-5.598-6.829-11.602-8.218-18.396c-.32-1.564-.622-2.884-.672-2.935c-.13-.13.105 2.231.528 5.319c.44 3.211 1.377 7.856 2.387 11.829c7.814 30.743 30.05 55.749 60.15 67.646c8.668 3.424 17.415 5.582 26.932 6.64c3.576.4 13.699.56 17.43.276c17.117-1.296 32.02-6.334 47.308-15.996c1.362-.86 3.92-2.474 5.685-3.585a877 877 0 0 0 4.952-3.14c.958-.615 2.114-1.341 2.567-1.614a91 91 0 0 0 2.018-1.268c.656-.424 3.461-2.2 6.235-3.944l11.092-7.006l3.809-2.406l.137-.086l.42-.265l.199-.126l2.804-1.771l9.69-6.121c12.348-7.759 16.03-10.483 21.766-16.102c2.392-2.342 5.997-6.34 6.176-6.848c.037-.104.678-1.092 1.424-2.197c3.036-4.492 5.06-9.995 6.064-16.484c.465-3.002.462-10.342-.005-13.663c-.903-6.42-2.955-13.702-5.167-18.339c-3.627-7.603-11.353-14.512-22.453-20.076c-3.065-1.537-6.23-2.943-6.583-2.924c-.168.009-10.497 6.322-22.954 14.03c-12.457 7.71-23.268 14.4-24.025 14.87s-2.056 1.263-2.888 1.764z' /><path fill='url(#pswpImageSearchBingIconGradC)' d='m.053 241.013l.054 53.689l.695 3.118c2.172 9.747 5.937 16.775 12.482 23.302c3.078 3.07 5.432 4.922 8.768 6.896c7.06 4.177 14.657 6.238 22.978 6.235c8.716-.005 16.256-2.179 24.025-6.928c1.311-.801 6.449-3.964 11.416-7.029l9.032-5.572v-127.4l-.002-58.273c-.002-37.177-.07-59.256-.188-60.988c-.74-10.885-5.293-20.892-12.948-28.461c-2.349-2.323-4.356-3.875-10.336-7.99a25160 25160 0 0 1-12.104-8.336L28.617 5.835C22.838 1.85 22.386 1.574 20.639.949C18.367.136 15.959-.163 13.67.084C6.998.804 1.657 5.622.269 12.171C.053 13.191.013 26.751.01 100.35l-.003 86.975H0z' /></svg>",google:"<svg focusable='false' viewBox='24 24 144 144' xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><rect fill='none' height='192' width='192'></rect><g><circle fill='#34A853' cx='144.07' cy='144' r='16'></circle><circle fill='#4285F4' cx='96.07' cy='104' r='24'></circle><path fill='#EA4335' d='M24,135.2c0,18.11,14.69,32.8,32.8,32.8H96v-16l-40.1-0.1c-8.8,0-15.9-8.19-15.9-17.9v-18H24V135.2z'></path><path fill='#FBBC05' d='M168,72.8c0-18.11-14.69-32.8-32.8-32.8H116l20,16c8.8,0,16,8.29,16,18v30h16V72.8z'></path><path fill='#4285F4' d='M112,24l-32,0L68,40H56.8C38.69,40,24,54.69,24,72.8V92h16V74c0-9.71,7.2-18,16-18h80L112,24z'></path></g></svg>",yandex:"<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 512 512'><path d='M0 0h512v512H0z' fill='none' /><path fill='#fc3f1d' d='M215.4 512v-51.6c0-70-8.1-104.6-36.2-165L42.5 0h94.6l116 252.7c34 73.7 48.8 112 48.8 196.7V512zm55.4-264.5L378.6 0h90.9L360.2 247.5z' /></svg>",tineye:"<svg viewBox='1 1 1068.602 1130.2890000000002' xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><path d='M1 146.465c1.012-3.903 1.838-7.409 3.07-10.766 5.624-15.345 16.325-25.676 31.703-30.943 17.155-5.875 33.28-3.237 47.818 7.437 16.318 11.982 22.46 28.84 20.238 48.376-2.052 18.038-12.097 31.13-28.646 39.863 0-1.39-.118-2.196.038-2.945.121-.585.582-1.099 1.068-1.954-7.978-4.868-15.508-9.882-25.418-9.679-5.159.106-7.615 2.867-8.59 6.88-.82 3.38-.169 7.119-.169 10.678-15.082.424-38.897-18.662-40.722-43.27C1 155.642 1 151.285 1 146.464zM697.563 1c3.152.66 5.846 1.434 8.586 1.962 21.387 4.124 36.727 21.703 39.678 42.526 2.322 16.39-2.362 31.39-13.7 43.634-3.924 4.238-9.373 7.064-14.794 11.024V86.514c-8.367-2.075-16.536-6.866-26.074-4.537-6.647 1.623-8.387 4.166-7.21 10.652.674 3.714 1.697 7.365 2.568 11.069-23.52-2.48-45.548-23.77-43.578-54.88 1.495-23.6 20.856-45.936 47.813-47.423C693.042 1 695.083 1 697.562 1z' fill='#ff8e4d' /><path d='M833.776 655.58c-10.198 10.224-20.302 20.53-27.821 33.009-.845 1.402-1.502 2.918-1.834 4.622 19.7-22.734 40.135-44.277 69.395-55.173-3.002 7.006-6.19 13.825-8.871 20.84-4.69 12.265-8.02 24.904-8.616 38.099-.485 10.743-1.676 21.576-.832 32.232 1.972 24.88 8.432 48.532 22.772 69.482 9.841 14.377 22.553 24.875 40.261 27.128 12.076 1.536 22.903-3.039 32.61-10.162 11.464-8.413 18.832-20.01 25.134-32.428 1.015-1.999 1.977-4.024 3.16-6.435 3.462 1.316 6.734 2.41 9.853 3.84.898.41 1.98 1.83 1.917 2.71-.816 11.438-1.7 22.875-2.824 34.286-.83 8.425-1.606 16.893-3.166 25.2-3.51 18.704-7.07 37.418-11.386 55.947-5.88 25.242-16.105 49.031-26.748 72.517-7.348 16.217-15.96 31.923-24.895 47.343-8.305 14.334-19.022 26.979-31.267 38.22-12.997 11.93-27.803 20.952-44.338 27.097-12.342 4.587-25.07 6.994-38.231 8.246-15.726 1.496-31.241.584-46.78-1.242-12.261-1.441-24.662-2.456-36.66-5.171-13.244-2.998-26.222-7.358-39.091-11.78-15.205-5.225-28.167-14.694-41.412-23.493-9.622-6.391-20.643-8.736-31.506-11.436-21.082-5.238-42.684-6.441-64.165-4.817-19.712 1.491-38.637 6.86-55.184 18.671-9.74 6.952-17.283 15.785-24.144 25.464-13.112 18.498-28.924 34.11-49.937 43.535-13.625 6.11-28.204 9.358-42.883 6.8-20.243-3.526-39.004-11.365-55.833-23.652-16.86-12.308-30.797-26.983-41.591-44.967-8.502-14.164-14.824-29.127-20.083-44.668-6.874-20.315-13.436-40.75-20.89-60.853-8.184-22.07-16.908-43.955-26.017-65.66-5.701-13.584-11.68-27.197-19.108-39.874-8.543-14.576-18.478-28.385-28.435-42.072-13.246-18.208-30.907-31.683-49.654-43.726-13.449-8.64-28.179-14.483-43.703-18.219-7.177-1.728-14.458-3.024-22.076-4.595.232-14.352 4.716-27.508 11.967-39.735 10.145-17.104 24.47-29.948 42.045-39.022 12.592-6.501 25.934-10.992 39.912-13.76 21.243-4.205 42.73-6.09 64.225-4.73 32.393 2.051 64.226 7.228 93.188 23.455 19.679 11.026 35.886 25.733 48.805 44.249 13.232 18.965 29.348 34.85 50.806 44.414 10.33 4.604 21.108 8 32.504 8.64 9.738.547 19.514 1.23 29.243.922 14.455-.456 28.58-3.25 42.498-7.357 18.897-5.576 35.259-15.42 48.973-29.285 12.7-12.84 22.52-28.006 32.437-43.073a1466.113 1466.113 0 0 1 35.434-51.417c6.192-8.588 12.99-16.884 20.458-24.371 9.269-9.293 18.948-18.377 29.472-26.17 15.528-11.499 31.456-22.645 48.152-32.32 15.104-8.754 31.1-16.27 47.368-22.63 18.478-7.223 37.565-13 56.638-18.546 11.712-3.405 23.842-5.473 35.873-7.651 23.644-4.28 47.586-4.891 71.484-3.91 23.363.959 46.105 5.144 67.855 14.681 17.212 7.548 31.471 18.688 43.382 32.658 7.468 8.759 12.993 19.172 19.418 28.824 2.862 4.3 5.794 8.553 8.568 12.64l-27.055 14.844c-8.802-7.399-17.266-15.134-26.382-22.002-9.389-7.073-20.492-10.987-31.998-12.606-10.873-1.53-22.022-2.578-32.941-1.947-17.924 1.035-35.542 4.802-52.31 11.431-11.769 4.653-23.328 9.9-34.717 15.423-6.627 3.214-13.073 7.052-18.941 11.481-3.194 2.41-4.626 7.023-7.528 9.979-5.936 6.045-12.084 11.936-18.588 17.357-10.634 8.86-22.608 16.338-32.174 26.188-8.913 9.178-15.89 20.388-22.893 31.238-13.673 21.186-23.306 44.306-30.348 68.458-3.638 12.476-6.514 25.175-9.703 37.78-.157.621-.02 1.317-.02 3.079 1.318-1.914 2.148-2.964 2.813-4.11 13.397-23.077 26.412-46.387 40.267-69.187 12.027-19.79 25.918-38.324 42.665-54.45 6.49-6.248 13.345-12.349 23-14.775.733.24.88.344 1.027.448m-32.505 40.628c-.785 1.906-1.569 3.813-2.914 5.913l-.121 1.619c.44-.315.879-.63 1.878-1.424.885-1.91 1.77-3.818 3.216-6.215l.76-2.262-.984-.397c-.394.827-.789 1.654-1.835 2.766z' fill='#2c71a1' /><path d='M111.274 531.919c-1.425-2.304-2.883-4.587-4.267-6.914-6.663-11.196-14.614-21.852-19.626-33.745-6.375-15.128-11.098-31.076-15.144-47.022-3.174-12.51-4.482-25.522-6.163-38.37-1.374-10.505-3.456-21.193-2.74-31.629.992-14.457 3.509-28.946 6.886-43.06 2.776-11.599 6.764-23.155 12-33.857 7.262-14.839 17.008-28.15 28.216-40.56 16.136-17.864 34.4-32.98 54.856-45.321 15.683-9.462 32.147-17.63 48.289-26.329.5-.27 1.274-.034 2.357-.034-6.557 12.2-10.399 24.806-9.872 39.006 10.55-1.929 20.784-3.912 31.06-5.645 9.599-1.618 19.24-2.979 28.866-4.437 10.91-1.652 21.804-3.434 32.742-4.883 9.383-1.242 18.819-2.075 28.227-3.124 11.671-1.302 23.335-2.676 35.01-3.945 4.238-.46 8.496-.76 12.751-1.04 15.587-1.025 31.178-1.987 46.763-3.032 2.756-.185 5.616-.286 8.19-1.141 1.363-.453 2.604-2.279 3.239-3.767 8.277-19.404 20.902-35.287 39.157-45.93 13.107-7.642 27.702-8.734 42.6-6.323 2.597.42 5.346-.13 7.96.23 10.593 1.464 21.227 2.76 31.72 4.777 12.325 2.37 24.687 4.843 36.723 8.336a336.134 336.134 0 0 1 36.653 12.97c12.702 5.346 25.388 11.062 37.208 18.086 13.702 8.143 26.668 17.6 39.413 27.204 2.245 1.69 2.33 6.872 2.567 10.497 1.183 18.076 2.13 36.168 3.006 54.262.077 1.599-.49 3.719-1.56 4.807-9.856 10.019-16.62 21.46-17.384 35.853-.952 17.956 1.755 34.995 15.008 48.278 3.72 3.729 9.444 6.317 14.682 7.482a53.559 53.559 0 0 0 27.013-.97c9.915-2.969 16.342-10.268 19.165-19.798 7.535-25.441 3.02-48.47-15.62-68.054-1.33-1.397-2.909-2.674-4.598-3.59-8.758-4.752-10.2-13.713-12.5-21.998-2.093-7.535-3.397-15.29-4.296-23.5 3.045 3.265 6.42 6.284 9.074 9.84 8.51 11.401 17.147 22.74 25.01 34.584 12.224 18.418 20.751 38.61 27.103 59.774 4.034 13.439 7.075 26.985 6.993 41.104-.058 10.003.715 20.072-.18 29.996-1.367 15.159-6.268 29.186-16.355 41.103-9.711 11.474-21.865 19.756-34.937 26.61-16.19 8.488-32.696 16.389-49.227 24.2-12.315 5.82-24.892 11.085-37.337 16.63-1.019.453-1.928 1.153-3.437 2.06-11.006 5.07-21.508 9.721-31.899 14.61-4.036 1.9-7.82 4.335-11.72 6.526-5.516 2.17-11.126 4.13-16.53 6.551-13.01 5.83-25.846 12.054-38.9 17.783-13.787 6.05-27.527 12.32-41.684 17.39a854.019 854.019 0 0 1-55.83 17.861c-10.218 2.886-20.923 4.317-31.507 5.57-12.69 1.504-25.478 2.227-38.238 3.082-8.07.54-16.17.638-24.25 1.055-11.674.603-23.37 2.176-35.006 1.801-23.602-.76-46.949-3.724-70.058-9.165-20.113-4.736-38.798-13.253-58.266-19.643-10.038-3.294-20.61-5.183-30.314-9.218-15.067-6.264-29.406-14.109-41.517-25.423-2.854-2.665-6.02-4.995-9.414-7.896-3.625-3.797-6.878-7.176-10.131-10.555m73.558-223.68c-1.957.918-3.883 1.906-5.873 2.743-20.59 8.662-39.373 20.002-54.226 37.019-2.474 2.835-4.878 6.043-6.214 9.504-4.8 12.437-7.296 25.488-7.29 38.777.006 11.572.882 23.173 1.934 34.71 1.411 15.463 5.677 30.27 12.6 44.154 12.145 24.355 32.196 40.286 56.833 50.359 29.439 12.036 60.666 16.402 92.158 17.14 26.376.618 52.813-.85 79.207-1.824a483.46 483.46 0 0 0 39.068-3.048c18.999-2.253 38.009-4.661 56.847-7.958 24.862-4.352 49.655-9.203 74.307-14.616a567.756 567.756 0 0 0 83.14-25.058c15.603-6.037 30.865-12.955 46.237-19.576 1.24-.534 2.146-1.845 3.207-2.795-.88-.849-1.666-1.831-2.655-2.525-5.937-4.168-12.375-7.749-17.806-12.487-18.845-16.442-28.918-38.217-35.25-61.762-4.044-15.042-8.05-30.257-7.175-46.145.045-.809-.316-1.635-.317-2.454-.02-13.269-.305-26.546.087-39.804.288-9.74 1.627-19.445 2.076-29.184.064-1.37-2.163-3.982-3.514-4.112-23.36-2.246-46.715-4.981-70.141-5.964-19.903-.834-39.896.37-59.846.795-6.79.144-13.588.486-20.357 1.037-14.823 1.207-29.63 2.597-44.443 3.928-11.357 1.021-22.737 1.855-34.064 3.154-15.241 1.75-30.458 3.746-45.654 5.856-16.343 2.27-32.75 4.263-48.95 7.326-28.293 5.348-56.174 12.428-83.926 22.81z' fill='#2c71a1' /><path d='M185.21 308.158c27.374-10.3 55.255-17.38 83.548-22.73 16.2-3.062 32.607-5.055 48.95-7.325 15.196-2.11 30.413-4.107 45.654-5.856 11.327-1.299 22.707-2.133 34.064-3.154 14.813-1.331 29.62-2.721 44.443-3.928 6.77-.55 13.566-.893 20.357-1.037 19.95-.424 39.943-1.63 59.846-.795 23.426.983 46.781 3.718 70.141 5.964 1.35.13 3.578 2.742 3.514 4.112-.45 9.74-1.788 19.445-2.076 29.184-.392 13.258-.107 26.535-.087 39.804 0 .819.362 1.645.317 2.454-.876 15.888 3.131 31.103 7.176 46.145 6.33 23.545 16.404 45.32 35.249 61.762 5.431 4.738 11.869 8.319 17.806 12.487.989.694 1.775 1.676 2.655 2.525-1.061.95-1.967 2.26-3.207 2.795-15.372 6.621-30.634 13.54-46.236 19.576a567.756 567.756 0 0 1-83.14 25.058c-24.653 5.413-49.446 10.264-74.308 14.616-18.838 3.297-37.848 5.705-56.847 7.958a483.46 483.46 0 0 1-39.068 3.048c-26.394.975-52.831 2.442-79.207 1.824-31.492-.738-62.72-5.104-92.158-17.14-24.637-10.073-44.688-26.004-56.833-50.359-6.923-13.884-11.189-28.69-12.6-44.154-1.052-11.537-1.928-23.138-1.934-34.71-.006-13.29 2.49-26.34 7.29-38.777 1.336-3.46 3.74-6.67 6.214-9.504 14.853-17.017 33.635-28.357 54.226-37.019 1.99-.837 3.916-1.825 6.251-2.824m201.146 114.733c3.146 6.947 5.851 14.138 9.519 20.798 11.592 21.054 26.994 38.551 49.189 48.882 24.235 11.28 46.022 5.832 61.441-13.842 16.128-20.578 19.654-45.064 17.3-70.257-1.75-18.72-7.447-36.601-16.597-53.217-11.632-21.12-27.003-38.54-49.269-48.838-17.506-8.097-34.753-7.824-50.904 3.538-9.657 6.795-15.44 16.686-20.256 27.253-8.104 17.78-9.529 36.447-6.972 55.437 1.337 9.936 4.121 19.677 6.549 30.246m-205.288 6.26c.279.95.58 1.896.834 2.855 8.37 31.684 24.064 58.327 52.575 76.068 10.332 6.429 21.605 10.803 33.816 9.782 15.072-1.262 26.844-9.179 34.787-21.995 12.524-20.21 15.326-42.372 11.611-65.506-2.51-15.637-7.657-30.41-15.519-44.222-11.426-20.073-26.468-36.252-47.802-46.146-21.335-9.894-40.216-5.203-53.795 9.063-12.745 13.39-17.955 30.418-18.49 48.578-.301 10.198 1.181 20.449 1.983 31.522z' /><path d='M386.208 422.521c-2.28-10.199-5.064-19.94-6.401-29.876-2.557-18.99-1.132-37.658 6.972-55.437 4.817-10.567 10.599-20.458 20.256-27.253 16.15-11.362 33.398-11.635 50.904-3.538 22.266 10.298 37.637 27.718 49.269 48.838 9.15 16.616 14.848 34.497 16.597 53.217 2.354 25.193-1.172 49.679-17.3 70.257-15.419 19.674-37.206 25.123-61.441 13.842-22.195-10.33-37.597-27.828-49.19-48.882-3.667-6.66-6.372-13.85-9.666-21.168m25.884-3.891c-.513 8.802.736 17.129 6.055 24.535 9.544 13.288 26.966 12.323 35.396.758 8.54-11.714 9.476-24.526 4.363-37.58-5.39-13.761-18.67-20.01-30.185-14.433-10.514 5.093-14.972 14.421-15.629 26.72zM181.007 428.727c-.74-10.65-2.223-20.901-1.923-31.1.536-18.16 5.746-35.187 18.491-48.577 13.579-14.266 32.46-18.957 53.795-9.063 21.334 9.894 36.376 26.073 47.802 46.146 7.862 13.811 13.009 28.585 15.52 44.222 3.714 23.134.912 45.296-11.612 65.506-7.943 12.816-19.715 20.733-34.787 21.995-12.21 1.021-23.484-3.353-33.816-9.782-28.511-17.741-44.204-44.384-52.575-76.068-.253-.959-.555-1.904-.895-3.28m22.423 22.124c.91 3.328 1.434 6.827 2.808 9.951 3.527 8.018 9.159 13.987 18.316 15.025 9.436 1.07 16.428-2.542 21.25-11.198 8.09-14.52 8.726-28.544-.864-42.536-7.955-11.606-26.807-11.4-35 .093-6.043 8.476-7.465 17.831-6.51 28.665z' fill='#fff' /><path d='M412.092 418.16c.657-11.829 5.115-21.157 15.63-26.25 11.515-5.577 24.794.672 30.184 14.433 5.113 13.054 4.178 25.866-4.363 37.58-8.43 11.565-25.852 12.53-35.396-.758-5.319-7.406-6.568-15.733-6.055-25.006zM203.28 450.427c-.805-10.41.617-19.766 6.66-28.242 8.193-11.492 27.045-11.699 35-.093 9.59 13.992 8.954 28.016.865 42.536-4.823 8.656-11.815 12.268-21.25 11.198-9.158-1.038-14.79-7.007-18.317-15.025-1.374-3.124-1.897-6.623-2.958-10.374z' /></svg>"},o=class{constructor(c,t=[],a={}){this.lightbox=c,this.providers=t.filter(e),this.organizationId=a.organizationId,this.eventId=a.eventId,c.on("init",()=>{this.initPswpEvents(c.pswp)})}trackClick(t,e){this.organizationId&&this.eventId&&c.post(a.TRACK_EVENT,{json:{kind:"image-search",organizationId:this.organizationId,eventId:this.eventId,contentId:e,provider:t,surface:"lightbox"},headers:{"x-org-id":this.organizationId}}).catch(()=>{})}initPswpEvents(c){if(0===this.providers.length)return;const a=()=>{const a=c.currSlide?.data?.type?.toLowerCase()===t.IMAGE.toLowerCase();c.element?.classList.toggle("pswp--image-search-allowed",a)};c.on("change",a),c.on("afterInit",a),c.on("uiRegister",()=>{this.providers.forEach(a=>{const e=i[a];c.ui.registerElement({name:`image-search-button-${a}`,className:"pswp__button--image-search-button",order:7,isButton:!0,tagName:"button",title:`Search this image on ${e.label}`,html:{isCustomSVG:!0,inner:r[a],outlineID:`pswp__icn-image-search-${a}`},onClick:(c,i,r)=>{const o=r.currSlide?.data;o?.type?.toLowerCase()===t.IMAGE.toLowerCase()&&o.src&&(window.open(e.buildUrl(o.src),"_blank","noopener,noreferrer"),this.trackClick(a,o.id))}})})})}};export{o as default};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{h as e,p as a,t as r}from"./DrrpB4Om.js";import{n as s}from"./tJ2MS5HS.js";import{x as i}from"./DUWOb-5c.js";import{l as o}from"./BcAwTWQC.js";import{t}from"./DZwpw1jG.js";import{n as l}from"./DGGc10Cy.js";import{t as n}from"./5z04gCoQ2.js";import{i as d,s as c,t as u}from"./C6et9sp52.js";var m=({count:e=1,currentStep:a=0,disabled:s,onStepClick:i})=>{const o=s||!i;/* @__PURE__ */
|
|
2
|
+
return r("ol",{className:"flex items-center space-x-6 pl-1.5",children:Array.from({length:e}).map((e,s)=>/* @__PURE__ */r("li",{children:/* @__PURE__ */r("button",s<a?{type:"button",className:"bg-primary block h-3 w-3 rounded-full",disabled:o,onClick:()=>i?.(s)}:s===a?{type:"button",className:"relative flex items-center justify-center","aria-current":"step",disabled:o,onClick:()=>i?.(s),children:[/* @__PURE__ */r("span",{className:"absolute flex size-6 p-px","aria-hidden":"true",children:/* @__PURE__ */r("span",{className:"bg-primary/40 size-full rounded-full"})}),/* @__PURE__ */r("span",{className:"bg-primary relative block size-3 rounded-full","aria-hidden":"true"})]}:{type:"button",className:"bg-muted block size-3 rounded-full",disabled:o,onClick:()=>i?.(s)})},`progress-dot-${s}`))})},h=({onCodeSent:a})=>{const{t:i}=l(),{sendPasswordResetCode:o}=s(),[c,m]=e(""),[h,f]=e(!1),[p,y]=e(null),[w,v]=e(null);/* @__PURE__ */
|
|
3
|
+
return r("div",{className:"space-y-4",children:[
|
|
4
|
+
/* @__PURE__ */r(t,{variant:"h4",children:i("auth.forgotPassword","Forgot Password")}),
|
|
5
|
+
/* @__PURE__ */r(u,{type:"email",name:"email",value:c,onChange:e=>{m(e.target.value),p&&y(null),w&&v(null)},placeholder:i("auth.emailPlaceholder","Enter your email address"),error:p??void 0,disabled:h}),w&&/* @__PURE__ */r(t,{variant:"body2",color:"error",children:w}),
|
|
6
|
+
/* @__PURE__ */r("div",{children:/* @__PURE__ */r(n,{onClick:async()=>{y(null),v(null);const e=c.trim().toLowerCase(),r=d(e);if(r)y(r);else{f(!0);try{const r=await o(e);r?.error?v(r.error):a(e)}catch(s){v(s instanceof Error?s.message:String(s))}finally{f(!1)}}},fullWidth:!0,loading:h,disabled:h,children:i("auth.sendVerificationCode","Send verification code")})})]})},f=({email:a,onCodeVerified:i})=>{const{t:o}=l(),{verifyPasswordResetCode:d}=s(),[c,m]=e(""),[h,f]=e(!1),[p,y]=e(null);/* @__PURE__ */
|
|
7
|
+
return r("div",{className:"space-y-4 sm:space-y-6",children:[
|
|
8
|
+
/* @__PURE__ */r("div",{className:"space-y-2",children:[/* @__PURE__ */r(t,{variant:"h4",children:o("auth.verifyCode","Verify Code")}),/* @__PURE__ */r(t,{variant:"body1",children:[o("auth.enterCodeSentTo","Enter the 6-digit code sent to")," ",a]})]}),
|
|
9
|
+
/* @__PURE__ */r(u,{value:c,name:"code",onChange:e=>m(e.target.value),placeholder:o("auth.codePlaceholder","Enter verification code"),disabled:h}),p&&/* @__PURE__ */r(t,{variant:"body2",color:"error",children:p}),
|
|
10
|
+
/* @__PURE__ */r("div",{className:"flex gap-2",children:/* @__PURE__ */r(n,{onClick:async()=>{if(y(null),a)if(c.trim()){f(!0);try{const e=await d(a,c.trim());e?.error?y(e.error):e?.data?i(e.data):y(o("auth.codeVerifyFailed","Failed to verify code"))}catch(e){y(e instanceof Error?e.message:String(e))}finally{f(!1)}}else y(o("auth.codeRequired","Please enter the verification code"));else y(o("auth.emailMissing","Email address is missing"))},fullWidth:!0,loading:h,disabled:h,children:o("auth.verify","Verify")})})]})},p=({email:i,passwordResetCodeId:o,onPasswordReset:d})=>{const{t:m}=l(),{resetPassword:h}=s(),[f,p]=e(""),[y,w]=e(""),[v,g]=e(null),[b,C]=e(!1),P=a(()=>c(f),[f]),N=f&&f===y&&!P;/* @__PURE__ */
|
|
11
|
+
return r("div",{className:"space-y-4",children:[
|
|
12
|
+
/* @__PURE__ */r(t,{variant:"h4",children:m("auth.resetPassword","Reset Password")}),
|
|
13
|
+
/* @__PURE__ */r(u,{type:"password",name:"password",autoComplete:"new-password",value:f,onChange:e=>{p(e.target.value),v&&g(null)},placeholder:m("auth.newPassword","New password"),disabled:b,error:P}),
|
|
14
|
+
/* @__PURE__ */r(u,{type:"password",name:"confirmPassword",autoComplete:"new-password",value:y,onChange:e=>{w(e.target.value),v&&g(null)},placeholder:m("auth.confirmNewPassword","Confirm new password"),disabled:b}),v&&/* @__PURE__ */r(t,{variant:"body2",color:"error",children:v}),
|
|
15
|
+
/* @__PURE__ */r("div",{children:/* @__PURE__ */r(n,{onClick:async()=>{if(g(null),i)if(o)if(N){C(!0);try{const e=await h(o,f);e?.error?g(e.error):d()}catch(e){g(e instanceof Error?e.message:String(e))}finally{C(!1)}}else g(m("auth.passwordsDoNotMatch","Passwords do not match"));else g(m("auth.codeIdMissing","Verification code ID is missing"));else g(m("auth.emailMissing","Email address is missing"))},disabled:!N||b,fullWidth:!0,loading:b,children:m("auth.resetPasswordButton","Reset Password")})})]})},y=()=>{const a=o(),[s,t]=e(null),[l,n]=e(null),[d,c]=e(0);/* @__PURE__ */
|
|
16
|
+
return r("div",{className:"bg-background min-h-[60vh]",children:[(({index:e})=>{switch(e){case 0:/* @__PURE__ */return r(h,{onCodeSent:e=>{t(e),c(1)}});case 1:/* @__PURE__ */return r(f,{email:s,onCodeVerified:e=>{n(e),c(2)}});case 2:/* @__PURE__ */return r(p,{email:s,passwordResetCodeId:l,onPasswordReset:()=>{a(i.LOGIN)}})}})({index:d}),/* @__PURE__ */r("div",{className:"mt-8 flex justify-center",children:/* @__PURE__ */r(m,{count:3,currentStep:d})})]})};export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as t,D as e,E as s,O as i,S as r,T as u,_ as n,b as a,f as o,j as h,v as c,w as l,x as f,y}from"./
|
|
1
|
+
import{C as t,D as e,E as s,O as i,S as r,T as u,_ as n,b as a,f as o,j as h,v as c,w as l,x as f,y}from"./tJ2MS5HS.js";import{t as d}from"./KdgQ7jUn.js";var m=class extends a{constructor(t={}){super(),this.config=t,this.#t=/* @__PURE__ */new Map}#t;build(e,s,i){const r=s.queryKey,u=s.queryHash??t(r,s);let n=this.get(u);return n||(n=new o({client:e,queryKey:r,queryHash:u,options:e.defaultQueryOptions(s),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(n)),n}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){c.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>u(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>u(t,e)):e}notify(t){c.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){c.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){c.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},p=class extends a{constructor(t={}){super(),this.config=t,this.#e=/* @__PURE__ */new Set,this.#s=/* @__PURE__ */new Map,this.#i=0}#e;#s;#i;build(t,e,s){const i=new d({client:t,mutationCache:this,mutationId:++this.#i,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#e.add(t);const e=q(t);if("string"==typeof e){const s=this.#s.get(e);s?s.push(t):this.#s.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=q(t);if("string"==typeof e){const s=this.#s.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#s.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=q(t);if("string"==typeof e){const s=this.#s.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=q(t);return"string"==typeof e?(this.#s.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){c.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#s.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>l(e,t))}findAll(t={}){return this.getAll().filter(e=>l(t,e))}notify(t){c.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return c.batch(()=>Promise.all(t.map(t=>t.continue().catch(s))))}};function q(t){return t.options.scope?.id}var g=class{#r;#u;#n;#a;#o;#h;#c;#l;constructor(t={}){this.#r=t.queryCache||new m,this.#u=t.mutationCache||new p,this.#n=t.defaultOptions||{},this.#a=/* @__PURE__ */new Map,this.#o=/* @__PURE__ */new Map,this.#h=0}mount(){this.#h++,1===this.#h&&(this.#c=y.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=n.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#h--,0===this.#h&&(this.#c?.(),this.#c=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#r.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#u.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#r.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#r.build(this,e),r=s.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(i(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#r.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),r=this.#r.get(i.queryHash)?.state.data,u=f(e,r);if(void 0!==u)return this.#r.build(this,i).setData(u,{...s,manual:!0})}setQueriesData(t,e,s){return c.batch(()=>this.#r.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#r.get(e.queryHash)?.state}removeQueries(t){const e=this.#r;c.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=this.#r;return c.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},r=c.batch(()=>this.#r.findAll(t).map(t=>t.cancel(i)));return Promise.all(r).then(s).catch(s)}invalidateQueries(t,e={}){return c.batch(()=>(this.#r.findAll(t).forEach(t=>{t.invalidate()}),"none"===t?.refetchType?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},r=c.batch(()=>this.#r.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(s)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(r).then(s)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#r.build(this,e);return s.isStaleByTime(i(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s).catch(s)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s).catch(s)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return n.isOnline()?this.#u.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#u}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#a.set(r(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const s=[...this.#a.values()],i={};return s.forEach(s=>{e(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){this.#o.set(r(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const s=[...this.#o.values()],i={};return s.forEach(s=>{e(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const s={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=t(s.queryKey,s)),void 0===s.refetchOnReconnect&&(s.refetchOnReconnect="always"!==s.networkMode),void 0===s.throwOnError&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===h&&(s.enabled=!1),s}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#r.clear(),this.#u.clear()}};export{g as t};
|
|
@@ -0,0 +1 @@
|
|
|
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"},e={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`},t={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},a="https://qrati.com/api/connect",T={INITIALIZE_SESSION:`${a}/session/initialize`,REGISTER:`${a}/auth/register`,LOGIN:`${a}/auth/login`,LOGOUT:`${a}/auth/logout`,UPDATE_SESSION:`${a}/session/update`,ACCEPT_TERMS:`${a}/auth/accept-terms`,PUBLIC_EVENTS:`${a}/event/public-events`,SEARCH_EVENTS:`${a}/event/search`,FOLDER_DETAILS:`${a}/folder/details`,NESTED_FOLDERS:`${a}/folder/nested-folders`,GET_EVENT_POINTS:`${a}/event/points`,ELIGIBLE_TO_CURATE:`${a}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${a}/content/for-curation`,CURATE_CONTENT:`${a}/content/curate`,GET_LEADERBOARD:`${a}/event/leaderboard`,GET_UPLOAD_COUNT:`${a}/event/upload-count`,UPLOAD_CREATE:`${a}/content/upload/create`,UPLOAD_COMPLETE:`${a}/content/upload/complete`,UPLOAD_FAIL:`${a}/content/upload/fail`,UPLOAD_ABORT:`${a}/content/upload/abort`,UPDATE_REACTION:`${a}/content/update-reaction`,EVENT_DATA:`${a}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${a}/event/update-layout`,GET_EVENT_STATISTICS:`${a}/event/statistics`,GET_CONTENTS:`${a}/content/for-gallery`,SEARCH_CONTENTS:`${a}/content/search`,GET_CONTENTS_COUNT:`${a}/content/count`,TRACK_EVENT:`${a}/event/track`,SEND_PASSWORD_RESET_CODE:`${a}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${a}/auth/verify-password-reset-code`,RESET_PASSWORD:`${a}/auth/reset-password`,REPORT_ERROR:`${a}/log-error`,GET_POST_PROCESSING_SETTINGS:`${a}/event/post-processing-settings`,MY_UPLOADS:`${a}/content/my-uploads`,DELETE_CONTENT:`${a}/content/delete`},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"},S={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},N=26214400,n=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,n as b,A as c,d,I as f,o as g,e as h,T as i,R as l,t as m,p as n,c as o,_ as p,$ as r,S as s,s as t,D as u,C as v,r as w,E as x,N as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t}from"./DrrpB4Om.js";import{i as e,o as r}from"./
|
|
1
|
+
import{t}from"./DrrpB4Om.js";import{i as e,o as r}from"./tJ2MS5HS.js";var l=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,o=r,a=(t,e)=>r=>{var a;if(null==(null==e?void 0:e.variants))return o(t,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:n,defaultVariants:i}=e,s=Object.keys(n).map(t=>{const e=null==r?void 0:r[t],o=null==i?void 0:i[t];if(null===e)return null;const a=l(e)||l(o);return n[t][a]}),d=r&&Object.entries(r).reduce((t,e)=>{let[r,l]=e;return void 0===l||(t[r]=l),t},{});return o(t,s,null==e||null===(a=e.compoundVariants)||void 0===a?void 0:a.reduce((t,e)=>{let{class:r,className:l,...o}=e;return Object.entries(o).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...i,...d}[e]):{...i,...d}[e]===r})?[...t,r,l]:t},[]),null==r?void 0:r.class,null==r?void 0:r.className)},n={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"span",overline:"span",lead:"p"},i=a("antialiased",{variants:{variant:{h1:"scroll-m-20 text-4xl font-bold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-bold tracking-tight lg:text-4xl",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold",h5:"scroll-m-20 text-lg font-semibold",h6:"scroll-m-20 text-base font-semibold",body1:"text-base leading-relaxed font-medium",body2:"text-sm leading-relaxed",body3:"text-sm leading-relaxed sm:text-base",p:"text-base leading-7",lead:"text-muted-foreground text-xl leading-relaxed",blockquote:"border-primary/30 text-muted-foreground border-l-4 pl-4 text-base italic",caption:"text-muted-foreground text-xs",overline:"text-muted-foreground text-xs font-medium tracking-widest uppercase"},color:{foreground:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",inherit:"text-inherit",secondary:"text-muted-foreground",white:"text-white",black:"text-black",a11y:"text-primary-foreground",light:"text-text-primary-light"},align:{left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body1",color:"foreground",align:"left"}}),s=({variant:r="body1",color:l,align:o,weight:a,transform:s,lines:d,shadow:u,noWrap:x,className:c,immutable:m,...g})=>/* @__PURE__ */t(n[r],{className:e(i({variant:r,color:l,align:o,weight:a}),s,d&&d>0?`line-clamp-${d}`:void 0,u&&"drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)]",x&&"truncate",c),...g,children:g.children});export{i as n,a as r,s as t};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{_ as r,t as e}from"./DrrpB4Om.js";import{i as a,n as s}from"./
|
|
1
|
+
import{_ as r,t as e}from"./DrrpB4Om.js";import{i as a,n as s}from"./tJ2MS5HS.js";import{x as t}from"./DUWOb-5c.js";import{c as i,i as o,l as m,n as d}from"./BcAwTWQC.js";import{t as l}from"./CxJgMv2R.js";import{t as n}from"./D35mTuTT.js";import{t as c}from"./DlNQukHq.js";var p=()=>{const p=i(),b=m(),{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
2
|
/* @__PURE__ */e(l,{className:"h-8"}),
|
|
3
3
|
/* @__PURE__ */e(l,{className:"h-8"}),
|
|
4
4
|
/* @__PURE__ */e(l,{className:"h-8"}),
|
|
5
|
-
/* @__PURE__ */e(l,{className:"h-8"})]}):!
|
|
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
6
|
/* @__PURE__ */e("div",{className:"my-8 flex w-full justify-around",children:[/* @__PURE__ */e(d,{to:t.LOGIN,state:p.state||void 0,className:({isActive:r})=>a(r?"border-primary text-primary font-semibold":"border-border","flex-1 border-2 border-x-0 border-t-0 pb-2 text-center"),children:"Login"}),/* @__PURE__ */e(d,{to:t.REGISTER,state:p.state||void 0,className:({isActive:r})=>a(r?"border-primary text-primary font-semibold":"border-border","flex-1 border-2 border-x-0 border-t-0 pb-2 text-center"),children:"Register"})]}),
|
|
7
7
|
/* @__PURE__ */e(o,{}),
|
|
8
8
|
/* @__PURE__ */e("div",{className:"mt-12",children:/* @__PURE__ */e(n,{})})]})]})};export{p as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t}from"./DrrpB4Om.js";import{x as e}from"./
|
|
1
|
+
import{t}from"./DrrpB4Om.js";import{x as e}from"./DUWOb-5c.js";import{l as s}from"./BcAwTWQC.js";function o({className:e}){/* @__PURE__ */
|
|
2
2
|
return t("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__ */t("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"})})}var r=()=>{const r=s();/* @__PURE__ */
|
|
3
3
|
return t("button",{type:"button",onClick:()=>{window.history.length>1?r(-1):r(e.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"text-foreground absolute top-0 left-0",children:/* @__PURE__ */t(o,{className:"size-6"})})};export{r as t};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{_ as e,f as t,h as a,o as n,p as r,t as o,v as s,w as i}from"./DrrpB4Om.js";import{i as l,n as c,u as d}from"./tJ2MS5HS.js";import{n as m,r as u,t as p}from"./B7YFs6p5.js";import{t as h}from"./JFF45CMp.js";import{t as g}from"./DmpmrPE5.js";import{S as f,i as v,s as x}from"./DUWOb-5c.js";import{c as y,l as w}from"./BcAwTWQC.js";import{t as N}from"./DZwpw1jG.js";import{t as b}from"./DPg_DKOi.js";import{t as T}from"./B01ceTPt.js";import{t as D}from"./CxJgMv2R.js";import{t as P}from"./CrF08YS6.js";import{t as j}from"./DlNQukHq.js";import{t as C}from"./5z04gCoQ2.js";import{n as I,o as S,r as E,t as A}from"./Cr4OmKxk2.js";import{t as z}from"./N4HKgEC52.js";import{i as U,n as q,r as O,t as _}from"./hiapcVVA2.js";var k=({content:e,onDeleted:t,onClose:a})=>{const n=function(){const e=d(),{user:t,props:a}=c(),n=a?.organizationId,r=t?.token;return h({mutationKey:["delete-upload",r??null],mutationFn:async({contentId:e})=>{const t=await g.post(v.DELETE_CONTENT,{json:{contentId:e},headers:{"x-org-id":n,...r?{Authorization:`Bearer ${r}`}:{}}}).json();if(t?.error)throw new Error(t.error);return{contentId:e}},onMutate:async({contentId:t})=>{await e.cancelQueries({queryKey:[f.USER_UPLOADS],exact:!1});const a=e.getQueriesData({queryKey:[f.USER_UPLOADS],exact:!1});return e.setQueriesData({queryKey:[f.USER_UPLOADS],exact:!1},e=>e?.pages?{...e,pages:e.pages.map(e=>({...e,data:e.data.filter(e=>e._id!==t),meta:{...e.meta,totalCount:Math.max(0,(e.meta.totalCount??0)-1)}}))}:e),{previousData:a}},onError:(t,a,n)=>{n?.previousData?.forEach(([t,a])=>{e.setQueryData(t,a)})}})}(),r=e?.rateCount??0,s=r<=0,i=s?null:`This photo has ${r} rating${r>1?"s":""}. Photos with at least 1 rating cannot be deleted.`;/* @__PURE__ */
|
|
2
|
+
return o(O,{open:Boolean(e),onOpenChange:e=>{e||a()},title:"Delete content?",description:i??"Are you sure you want to delete this content? This operation is permanent and cannot be undone.",cancelText:"Cancel",confirmText:s?"Delete":"Got it",confirmColor:s?"error":"primary",onCancel:a,onConfirm:s?()=>{if(!e||!s)return;const a=e.eventId,r=e._id;t(),n.mutate({contentId:r,eventId:a})}:a})};function M({className:e}){/* @__PURE__ */
|
|
3
|
+
return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */o("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zm-7 11q.425 0 .713-.288T11 16V9q0-.425-.288-.712T10 8t-.712.288T9 9v7q0 .425.288.713T10 17m4 0q.425 0 .713-.288T15 16V9q0-.425-.288-.712T14 8t-.712.288T13 9v7q0 .425.288.713T14 17M7 6v13z"})})}var R={[x.APPROVED]:{color:"text-success",bgColor:"bg-success/20",icon:/* @__PURE__ */o(_,{className:"size-full"}),title:"Approved",description:"Your upload has been approved and is now visible to everyone viewing this event."},[x.IN_REVIEW]:{color:"text-warning",bgColor:"bg-warning/20",icon:/* @__PURE__ */o(U,{className:"size-full"}),title:"In Review",description:"Your upload is currently being reviewed. It will be visible once approved by the event admin."},[x.REJECTED]:{color:"text-destructive",bgColor:"bg-destructive/20",icon:/* @__PURE__ */o(z,{className:"size-full"}),title:"Rejected",description:"Your upload was not approved as it may not meet the content guidelines. Please upload appropriate content."}},$=e=>{const t=new Date(e).getTime();if(Number.isNaN(t))return"";const a=Math.max(0,Math.floor((Date.now()-t)/1e3)),n=[[60,"second"],[60,"minute"],[24,"hour"],[30,"day"],[12,"month"],[Number.POSITIVE_INFINITY,"year"]];let r=a,o="second";for(const[s,i]of n){if(r<s){o=i;break}r=Math.floor(r/s),o=i}return"second"===o&&r<30?"just now":`${r} ${o}${1===r?"":"s"} ago`},L=n(({content:e,onDelete:t,onStatusClick:a})=>{const n=e.status,r=R[n];/* @__PURE__ */
|
|
4
|
+
return o("div",{className:"group relative size-full overflow-hidden sm:rounded",children:/* @__PURE__ */o("div",{className:"relative size-full",children:[
|
|
5
|
+
/* @__PURE__ */o(P,{url:e.url||"",alt:e.caption||"",thumbnailUrl:e.thumbnailUrl||void 0,blurhash:e.blurhash||void 0,pswpData:{id:e._id,type:e.type,hash:e._id,width:e.dimension?.width,height:e.dimension?.height,thumbnailUrl:e.thumbnailUrl||void 0,caption:e.caption||""}}),
|
|
6
|
+
/* @__PURE__ */o("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex items-center justify-between bg-gradient-to-t from-black/50 to-transparent pl-3",children:[/* @__PURE__ */o(N,{variant:"caption",className:"text-xs text-white opacity-90 sm:text-sm",children:$(e.createdAt)}),/* @__PURE__ */o(q,{icon:/* @__PURE__ */o(M,{className:"size-5"}),color:"error",size:"sm",className:"pointer-events-auto","aria-label":"Delete upload",tooltip:"Delete",onClick:a=>{a.stopPropagation(),a.preventDefault(),t(e._id)}})]}),
|
|
7
|
+
/* @__PURE__ */o("button",{type:"button","aria-label":`Status: ${r?.title||"Unknown"}`,onClick:e=>{e.stopPropagation(),e.preventDefault(),a(n)},className:l("pointer-events-auto absolute top-1 right-1 cursor-pointer rounded-full p-1 transition-opacity hover:opacity-80",r?.bgColor||"bg-gray-500/20"),children:/* @__PURE__ */o("span",{className:l("block size-5",r?.color||"text-gray-500"),children:r?.icon||null})})]})})}),F=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),V=e=>{if(0===e.length)return"";if(1===e.length)return F(e[0].createdAt);const{minTime:t,maxTime:a}=e.reduce((e,t)=>{const a=new Date(t.createdAt).getTime();return{minTime:Math.min(e.minTime,a),maxTime:Math.max(e.maxTime,a)}},{minTime:1/0,maxTime:-1/0}),n=F(new Date(t).toISOString()),r=F(new Date(a).toISOString());return n===r?n:`${n} - ${r}`},B=()=>{const n=w(),d=y(),{user:h,loadingUser:x,portalContainer:P}=c(),z=t(null),U=t(!1),q=t(null),O=t(null),[_,M]=a(null),[$,F]=a(null),{contents:B,loading:K,hasNextPage:Y,fetchNextPage:Q,isFetchingNextPage:G}=function({sort:e="-createdAt",limit:t=20}={}){const{user:a,loadingUser:n,props:o}=c(),s=o?.organizationId,i=a?.token,l=a?._id??a?.uid??null,{data:d,isLoading:h,isError:x,error:y,isFetchingNextPage:w,hasNextPage:N,fetchNextPage:b,refetch:T}=u({queryKey:[f.USER_UPLOADS,s??"",l,t,e],queryFn:async({pageParam:a=1})=>await g.get(v.MY_UPLOADS,{searchParams:{page:a,limit:t,sort:e},headers:{"x-org-id":s,...i?{Authorization:`Bearer ${i}`}:{}}}).json(),initialPageParam:1,getPreviousPageParam:m,getNextPageParam:p,maxPages:25,staleTime:12e4,gcTime:3e5,enabled:!n&&!!a});return{contents:r(()=>d?.pages?.flatMap(e=>e?.data??[])??[],[d]),loading:h,isError:x,error:y,isFetchingNextPage:w,hasNextPage:!!N,fetchNextPage:b,refetch:T,totalCount:d?.pages?.[0]?.meta?.totalCount??0}}({sort:"-createdAt",limit:20});e(()=>{x||h||n("/auth/login",{state:{referrer:d.pathname},replace:!0})},[x,h]);const Z=B.length>0,H=!K&&!Z,J=r(()=>{if(!B.length)return[];const e={};return B.forEach(t=>{const a=t.eventId||"unknown";e[a]||(e[a]={eventId:a,eventName:t.event?.name||"Event",uploads:[]}),e[a].uploads.push(t)}),Object.values(e).sort((e,t)=>{const a=new Date(e.uploads[0]?.createdAt||0).getTime();return new Date(t.uploads[0]?.createdAt||0).getTime()-a})},[B]);e(()=>()=>{z.current?.destroy?.(),z.current=null},[P]);const W=s(async e=>{if(z.current||U.current)return;const t=q.current,a=e.target.closest("a");if(!t||!a||!t.contains(a))return;e.preventDefault(),U.current=!0;const n=Array.from(t.querySelectorAll("a")).indexOf(a);try{const[{default:e},{default:a},{default:r},{loadPhotoSwipe:o}]=await Promise.all([import("./web.es.js").then(e=>e.n),import("./Bo39kG4k2.js"),import("./BHmNrbtm2.js"),import("./web.es.js").then(e=>e.t)]),s=new e({gallery:t,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,zoom:!1,pswpModule:o,appendToEl:P??document.body});z.current=s,new a(s),new r(s),s.init(),n>=0&&z.current?.loadAndOpen?.(n)}finally{U.current=!1}},[P]);e(()=>{const e=O.current;if(!e||!Y)return;const t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&Y&&!G&&Q()},{rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[Y,G,Q]);const X=r(()=>B.find(e=>e._id===_)??null,[_,B]),ee=$?R[$]:null;/* @__PURE__ */
|
|
8
|
+
return o("div",{className:"bg-background mx-auto min-h-screen max-w-5xl px-3 pt-16 pb-12 lg:px-0",children:[
|
|
9
|
+
/* @__PURE__ */o("div",{className:"relative mb-6 flex items-center justify-center",children:[/* @__PURE__ */o(j,{}),/* @__PURE__ */o(N,{variant:"h4",align:"center",children:"My Uploads"})]}),
|
|
10
|
+
/* @__PURE__ */o("section",{className:"space-y-3",children:K?/* @__PURE__ */o("div",{className:"space-y-8 py-4",children:Array.from({length:2}).map((e,t)=>/* @__PURE__ */o("div",{className:"space-y-4",children:[/* @__PURE__ */o("div",{className:"flex items-center justify-between",children:[/* @__PURE__ */o(D,{className:"h-6 w-48"}),/* @__PURE__ */o(D,{className:"h-5 w-24"})]}),/* @__PURE__ */o("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */o(D,{className:"h-52 w-full lg:h-64"},t))})]},t))}):H?/* @__PURE__ */o(T,{className:"py-12",title:"No uploads yet",description:"Photos and videos you upload to events will appear here."}):/* @__PURE__ */o(i,{children:[
|
|
11
|
+
/* @__PURE__ */o("div",{ref:q,onClickCapture:W,className:"space-y-8 py-4",children:J.map(e=>/* @__PURE__ */o("div",{className:"space-y-4",children:[/* @__PURE__ */o("div",{className:"flex items-center justify-between",children:[/* @__PURE__ */o(N,{variant:"h5",color:"muted",children:e.eventName}),/* @__PURE__ */o("span",{className:"text-muted-foreground text-sm font-light uppercase sm:text-base",children:V(e.uploads)})]}),/* @__PURE__ */o("div",{className:"grid grid-cols-2 gap-1 sm:grid-cols-3 sm:gap-3 lg:grid-cols-4",children:e.uploads.map(e=>/* @__PURE__ */o("div",{className:"h-52 lg:h-64",children:/* @__PURE__ */o(L,{content:e,onDelete:M,onStatusClick:F})},e._id))})]},e.eventId))}),
|
|
12
|
+
/* @__PURE__ */o("div",{ref:O,className:"h-px w-full"}),G&&/* @__PURE__ */o("div",{className:"my-6 w-full",children:/* @__PURE__ */o(b,{})})]})}),
|
|
13
|
+
/* @__PURE__ */o(k,{content:X,onClose:()=>M(null),onDeleted:()=>M(null)}),
|
|
14
|
+
/* @__PURE__ */o(A,{open:Boolean($),onOpenChange:e=>!e&&F(null),children:/* @__PURE__ */o(I,{className:"w-full max-w-lg",children:[/* @__PURE__ */o("div",{className:"flex flex-col gap-4 p-2 sm:flex-row sm:items-start sm:p-4",children:[/* @__PURE__ */o("div",{className:l("mx-auto flex size-12 shrink-0 items-center justify-center rounded-full sm:mx-0 sm:size-10",ee?.bgColor||"bg-gray-500/20"),children:/* @__PURE__ */o("span",{className:l("size-6",ee?.color||"text-gray-500"),children:ee?.icon||null})}),/* @__PURE__ */o("div",{className:"flex-1 space-y-2 text-center sm:text-left",children:[/* @__PURE__ */o(S,{children:ee?.title||"Unknown Status"}),/* @__PURE__ */o(E,{children:ee?.description||"Status information unavailable."})]})]}),/* @__PURE__ */o("div",{className:"flex justify-end p-4",children:/* @__PURE__ */o(C,{variant:"outlined",color:"foreground",onClick:()=>F(null),children:"Got it"})})]})})]})};export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as r,s as e}from"./
|
|
1
|
+
import{n as r,s as e}from"./tJ2MS5HS.js";import{t as a}from"./DmpmrPE5.js";import{i as t}from"./DUWOb-5c.js";var o=({eventSlug:o})=>{const{props:s}=r(),n=s?.organizationId,{isLoading:i,data:d,isError:g,error:m}=e({queryKey:[`event-data-${n??""}-${o??""}`],queryFn:async()=>{try{const r=await a.get(t.EVENT_DATA,{searchParams:o?{eventSlug:o}:void 0,headers:{"x-org-id":n}}).json();if(r.error)throw new Error(r.error);return r.data}catch(r){throw new Error(r instanceof Error?r.message:String(r)||"Failed to fetch event data")}},enabled:!!n&&!!o,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:"always"});return{loading:i,event:d?.event,ads:d?.ads,gamConfig:d?.gamConfig,parameters:d?.parameters,isError:g,error:m}};export{o as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as e}from"./DdACKOZr.js";import{C as t,_ as o,f as l,h as r,p as a,t as n}from"./DrrpB4Om.js";import{a as i,l as c,n as f}from"./tJ2MS5HS.js";import{t as s}from"./DUEaNsCB.js";import{v as p}from"./DUWOb-5c.js";import{t as d}from"./B01ceTPt.js";import{t as u}from"./Rcen6i0h.js";import{t as m}from"./7zeKIiiL.js";import{a as g,i as b,n as h,r as x,t as v}from"./BIibcFd-.js";import{t as k}from"./CfMNBPpx.js";var y=[[90,-180],[-90,180]],w=[20,0],z="#fb8500",A={topLeft:[276,60],bottomRight:[60,60]},L=new s,E=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),C=({onExplore:s,logoUrl:C})=>{const R=l(null),T=l(null),M=l(null),O=l(null),I=l(null),S=l(null),W=l(null),j=l(!1),Z=l(!1),[q,D]=r(!0),[B,H]=r(!1),{folderTree:N,activeFolderId:U,activeFolder:F,visibleEvents:P,setActiveFolderId:Y,isLoadingEvents:J}=m(),{organization:G}=f(),Q=`${p}-${G?._id??"unknown"}`,K=l(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=l(/* @__PURE__ */new Map),$=l(/* @__PURE__ */new Map),_=l(null),ee=l(null),te=l(s);return te.current=s,o(()=>{if(!R.current||T.current)return;k("leaflet",'.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}'),k("marker-cluster",".leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}.marker-cluster-small{background-color:#b5e28c99}.marker-cluster-small div{background-color:#6ecc3999}.marker-cluster-medium{background-color:#f1d35799}.marker-cluster-medium div{background-color:#f0c20c99}.marker-cluster-large{background-color:#fd9c7399}.marker-cluster-large div{background-color:#f1801799}.leaflet-oldie .marker-cluster-small{background-color:#b5e28c}.leaflet-oldie .marker-cluster-small div{background-color:#6ecc39}.leaflet-oldie .marker-cluster-medium{background-color:#f1d357}.leaflet-oldie .marker-cluster-medium div{background-color:#f0c20c}.leaflet-oldie .marker-cluster-large{background-color:#fd9c73}.leaflet-oldie .marker-cluster-large div{background-color:#f18017}.marker-cluster{background-clip:padding-box;border-radius:20px}.marker-cluster div{text-align:center;border-radius:15px;width:30px;height:30px;margin-top:5px;margin-left:5px}.marker-cluster span{line-height:30px}");let t,o=!1;return(async()=>{try{const l=await import("./OnH8Izqn.js").then(t=>/* @__PURE__ */e(t.default,1));if(o)return;if("undefined"!=typeof window&&(window.L=l),await Promise.all([import("./C7zv6hcG.js").then(t=>/* @__PURE__ */e(t.default,1)),import("./rtH8O6Hc.js")]),o)return;const r=window.L??l;if(!R.current)return;const a=l.map(R.current,{center:V?.center?[V.center.lat??w[0],V.center.lng??w[1]]:w,zoom:V?.zoom??3,minZoom:3,zoomControl:!0,worldCopyJump:!1,maxBounds:l.latLngBounds(y),maxBoundsViscosity:1});l.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors",maxZoom:19,noWrap:!0}).addTo(a);const n=l.layerGroup().addTo(a),i="function"==typeof r.heatLayer?r.heatLayer([],{radius:30,blur:30,maxZoom:10,minOpacity:.35}):null;i?.addTo(a);const c="function"==typeof r.markerClusterGroup?r.markerClusterGroup({chunkedLoading:!0,showCoverageOnHover:!1,spiderfyOnMaxZoom:!0,zoomToBoundsOnClick:!0,maxClusterRadius:48}):l.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),T.current=a,M.current=r,O.current=n,S.current=i,I.current=c,"undefined"!=typeof ResizeObserver&&R.current&&(s=new ResizeObserver(()=>a.invalidateSize(!1)),s.observe(R.current)),requestAnimationFrame(()=>a.invalidateSize(!1)),H(!0),D(!1),t=()=>{s?.disconnect(),W.current&&clearTimeout(W.current),a.off("zoomend",f),a.off("moveend",f),a.remove(),M.current=null,T.current=null,O.current=null,S.current=null,I.current=null}}finally{o||D(!1)}})(),()=>{o=!0,t?.()}},[]),o(()=>{if(!B)return;const e=M.current;if(!e)return;const o=T.current,l=null===U&&N.length>0,r=l?"folders":"events";if(_.current!==r&&(O.current?.clearLayers(),I.current?.clearLayers(),$.current.clear(),X.current.clear(),ee.current=null,_.current=r),l){o&&S.current&&(S.current.setLatLngs?.([]),o.hasLayer(S.current)&&o.removeLayer(S.current));const t=[],l=e=>{for(const o of e)o.centroid?t.push(o):o.children.length>0&&l(o.children)};l(N);const r=new Set(t.map(e=>e.folder._id));for(const[e,o]of $.current)r.has(e)||(O.current?.removeLayer(o),$.current.delete(e));for(const o of t){const[t,l]=o.centroid,r=e.divIcon({className:"",html:`<div style="transform:translate(-50%,-50%);background:${x(o.color,z)};color:#fff;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,0.25);border:2px solid rgba(255,255,255,0.4);cursor:pointer;display:inline-flex;align-items:center;gap:6px;"><span>${E(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(r),a.setLatLng([l,t]);continue}const n=e.marker([l,t],{icon:r}).on("click",()=>Y(o.folder._id)).addTo(O.current);$.current.set(o.folder._id,n)}}else{if(0===P.length){for(const e of X.current.values())I.current?.removeLayer(e);return void X.current.clear()}const l=0===N.length&&null===U,r=x(F?.color,z);o&&S.current&&(l&&!o.hasLayer(S.current)?S.current.addTo(o):l||(S.current.setLatLngs?.([]),o.hasLayer(S.current)&&o.removeLayer(S.current)));const a=b(C),i=new Set(P.map(e=>String(e._id)));for(const[e,t]of X.current)i.has(e)||(I.current?.removeLayer(t),X.current.delete(e));const f=`${r}|${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:${r};border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid white;box-shadow:0 2px 8px rgba(0,0,0,0.3);display:flex;align-items:center;justify-content:center;overflow:hidden;">${a?`<img src="${E(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(P.forEach(o=>{const l=String(o._id),r=o.location.x,a=o.location.y,i=X.current.get(l);if(i)return s&&i.setIcon(p),void i.setLatLng([a,r]);const f=e.marker([a,r],{icon:p}),d=document.createElement("div");d.style.width="fit-content",f.on("popupopen",()=>{((e,o)=>{t(/* @__PURE__ */n(c,{client:L,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,maxWidth:256}),I.current?.addLayer(f),X.current.set(l,f)}),l&&S.current){const e=P.reduce((e,t)=>Math.max(e,t.views??0),1),t=P.map(e=>[e.location.y,e.location.x,e.views??1]);S.current.setOptions?.({radius:30,blur:30,maxZoom:10,minOpacity:.35,max:e}),S.current.setLatLngs?.(t)}if(l&&!Z.current&&o&&(Z.current=!0,!V)){const t=e.latLngBounds([]);P.forEach(e=>t.extend([e.location.y,e.location.x])),t.isValid()&&o.fitBounds(t,{paddingTopLeft:A.topLeft,paddingBottomRight:A.bottomRight,maxZoom:8})}}},[U,N,P,B,C,Y,F,V]),o(()=>{if(!B)return;const e=T.current,t=M.current;if(!e||!t)return;if(!j.current&&V)return void(j.current=!0);j.current=!0;const o={paddingTopLeft:A.topLeft,paddingBottomRight:A.bottomRight,duration:3,easeLinearity:1};if(U){const l=h(N,U);if(!l?.folder.boundary?.length)return;const r=t.latLngBounds([]);for(const e of l.folder.boundary)r.extend([e.y,e.x]);r.isValid()&&e.flyToBounds(r,{...o,maxZoom:14})}else{const l=t.latLngBounds([]),r=e=>{for(const t of e)t.centroid?l.extend([t.centroid[1],t.centroid[0]]):r(t.children)};r(N),l.isValid()&&e.flyToBounds(l,{...o,maxZoom:8})}},[U,N,B,V]),/* @__PURE__ */n("div",{class:"relative h-screen w-full sm:h-[calc(100vh-4rem)]",style:i(G),children:[
|
|
2
|
+
/* @__PURE__ */n(v,{positionClass:"absolute top-3 left-16 z-[1000]",folderTree:N,activeFolderId:U,setActiveFolderId:Y}),J&&/* @__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"})}),q&&/* @__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…"})]})}),!J&&0===P.length&&(0===N.length||null!==U)&&/* @__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:R,class:"h-full w-full rounded-xl border border-slate-200"})]})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,h as s,r as e,v as i}from"./DrrpB4Om.js";import{A as r,E as n,S as o,b as u,k as a,u as h,v as c}from"./
|
|
1
|
+
import{_ as t,h as s,r as e,v as i}from"./DrrpB4Om.js";import{A as r,E as n,S as o,b as u,k as a,u as h,v as c}from"./tJ2MS5HS.js";import{n as p}from"./KdgQ7jUn.js";var m=class extends u{#t;#s=void 0;#e;#i;constructor(t,s){super(),this.#t=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#t.defaultMutationOptions(t),a(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),s?.mutationKey&&this.options.mutationKey&&o(s.mutationKey)!==o(this.options.mutationKey)?this.reset():"pending"===this.#e?.state.status&&this.#e.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#n(t)}getCurrentResult(){return this.#s}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#r(),this.#n()}mutate(t,s){return this.#i=s,this.#e?.removeObserver(this),this.#e=this.#t.getMutationCache().build(this.#t,this.options),this.#e.addObserver(this),this.#e.execute(t)}#r(){const t=this.#e?.state??p();this.#s={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#n(t){c.batch(()=>{if(this.#i&&this.hasListeners()){const e=this.#s.variables,i=this.#s.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===t?.type){try{this.#i.onSuccess?.(t.data,e,i,r)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(t.data,null,e,i,r)}catch(s){Promise.reject(s)}}else if("error"===t?.type){try{this.#i.onError?.(t.error,e,i,r)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(void 0,t.error,e,i,r)}catch(s){Promise.reject(s)}}}this.listeners.forEach(t=>{t(this.#s)})})}};function l(o,u){const a=h(u),[p]=s(()=>new m(a,o));t(()=>{p.setOptions(o)},[p,o]);const l=e(i(t=>p.subscribe(c.batchCalls(t)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),d=i((t,s)=>{p.mutate(t,s).catch(n)},[p]);if(l.error&&r(p.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:d,mutateAsync:l.mutate}}export{l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t,h as e,v as s}from"./
|
|
1
|
+
import{g as t,h as e,v as s}from"./tJ2MS5HS.js";var i=class extends e{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const s=()=>{this.#a({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=t({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const a="pending"===this.state.status,o=!this.#i.canStart();try{if(a)s();else{this.#a({type:"pending",variables:e,isPaused:o}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,i);const t=await(this.options.onMutate?.(e,i));t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:o})}const t=await this.#i.start();return await(this.#s.config.onSuccess?.(t,e,this.state.context,this,i)),await(this.options.onSuccess?.(t,e,this.state.context,i)),await(this.#s.config.onSettled?.(t,null,this.state.variables,this.state.context,this,i)),await(this.options.onSettled?.(t,null,e,this.state.context,i)),this.#a({type:"success",data:t}),t}catch(r){try{await(this.#s.config.onError?.(r,e,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onError?.(r,e,this.state.context,i))}catch(n){Promise.reject(n)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onSettled?.(void 0,r,e,this.state.context,i))}catch(n){Promise.reject(n)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}export{a as n,i as t};
|