PageSourceSearch

https://regenr8.ai/assets/SuperAdminVenueDashboard-DI2OxJ4j.js

js regenr8.ai collected 2026-10-05 14:28:16 UTC 104,813 bytes, 41 lines download raw bytes

1import{r as u,j as r,ar as ve,as as na,v as ze,at as Dn,a as Hn,m as Ot,L as Ir,c as zn,f as Un}from"./app-B8f9RZT5.js";import{q as Tr,s as Gn,a1 as $n,v as Qn,c6 as qn,bS as Yn,bV as Zn,bQ as Xn,Z as Lr,k as Kn,C as J,D as Jn,E as es,T as ee,F as rs,G as Rr,H as ts,J as as,K as ns,aB as P,aw as b,aK as D,ax as z,ay as Z,aV as C,cC as ce,a6 as tr,aM as sa,cD as ss,az as oa,aA as ia,aN as la,aR as nt,aQ as Ee,a4 as ua,aT as os,aS as is,a8 as F,aP as De,b0 as I,b2 as ca,cE as ls,cb as us,av as da,au as cs,ap as ar,cF as ds,cG as fs,aU as R,b8 as Ue,aa as me,am as U,an as G,aO as ps,a7 as hs,i as fa,ai as ms,aj as xs,ak as vs,al as js,ao as gs,aX as bs,aY as ys,aZ as Ss,a$ as Q}from"./DataProvider-CeiTiorJ.js";import{L as pa,C as Vs}from"./Loading-D4_TEFV0.js";import{a as Cs,b as ws,c as Ts,d as As,e as Fs,f as Ps,g as Ns,h as Ms,i as ks,j as Is}from"./index-BFTLzf2a.js";import{G as Ar,I as Ls}from"./iconBase-Dd16vLLu.js";import{B as A}from"./box-BObiNR3L.js";import{S as je}from"./stack-BECzCpL_.js";import{C as Pe}from"./container-DAW0oovT.js";import{H as ur}from"./heading-gOvqM3pf.js";import{T as re}from"./text-scPxhzYs.js";import{F as nr}from"./flex-CvflyOqF.js";import{f as ie,d as $,b as B,c as st,a as ha,o as Rs,y as sr,_ as $r,s as Fr,X as _s,Y as Ws,v as cr,Z as Os,I as _,u as Qr}from"./Theme-DbOt372W.js";import{C as ma,E as xa,L as Bs}from"./EditActions-CwKQ8RV5.js";import{T as va,F as W,R as ja,a as ga,S as ba,b as ya,e as Sa}from"./ShowActions-B4SwQIR8.js";import{C as M,R as X,A as K}from"./CreateItem-CT3-cShh.js";import{A as Oe,S as Be,F as Es,C as N,a as Ds}from"./ChipField-dg6Cc6aF.js";import{P as q}from"./index-DzVdJZGM.js";import{_ as Hs,c as zs}from"./clsx.m-Bn9iQvpr.js";import{F as xr}from"./FilterLiveSearch-C_C5iG78.js";import{u as Us,a as Gs,W as qr}from"./WithRecord-Bi05aCYd.js";import{B as $s}from"./button-group-PdgVy7ez.js";import{a as Qs}from"./use-id-CAdn1jea.js";import{I as Ce}from"./icon-button-BdytRctQ.js";import{S as Va,G as qs}from"./simple-grid-DypTxUeH.js";import{u as Bt}from"./useDocument-LcfZrmsh.js";import{L as Pr}from"./link-BErRUxso.js";import{m as Ys}from"./responsive-DUyc-jbw.js";import{u as Zs,I as ge}from"./image-dFEc1JfQ.js";import{B as Ca}from"./badge-Dto1mDLy.js";import{u as Le}from"./useCollection-CJaymy8J.js";import{A as Xs,a as Ks,S as Js}from"./index-ex-J5imQ.js";import{u as Et}from"./use-breakpoint-value-DYD-dYWd.js";import{G as _r}from"./grid-item-CldBX0I1.js";import{d as eo,m as Dt,B as Ht}from"./button-DAC21tJR.js";import{a as He}from"./call-all-x83kXFNO.js";import{w as we,T as Te}from"./MenuItem-DVFbjGwa.js";import{a as ro,_ as to}from"./assertThisInitialized-BdQMnOjn.js";import{g as ao,u as no}from"./Hamburger-KgdrBWwR.js";import{V as Ae}from"./v-stack-CUouA9iO.js";import{H as Vr}from"./h-stack-CRQSrAKF.js";import{D as xe}from"./divider-Ddt9J9NX.js";import{E as wa}from"./ExternalLink-BsKP7cKR.js";import{R as Ta}from"./ReferenceManyField-Bike00L3.js";import{C as so}from"./CustomRoutes-BBECXXsO.js";import"./popper-BQBsAJpH.js";import"./TransitionGroup-vPcA9HnG.js";import"./ErrorMessage-Baoo0esz.js";import"./visually-hidden.style-Bfr07Aua.js";import"./form-control-DsvsIcKk.js";import"./create-icon-DaUYXcw4.js";import"./use-event-listener-iHxkVLcf.js";const de=ie(function(e,t){const{ratio:a=4/3,children:n,className:s,...o}=e,i=u.Children.only(n),l=$("chakra-aspect-ratio",s);return r.jsx(B.div,{ref:t,position:"relative",className:l,_before:{height:0,content:'""',display:"block",paddingBottom:Ys(a,h=>`${1/h*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...o,children:i})});de.displayName="AspectRatio";const[oo,io]=st({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function lo(e){const t=e.trim().split(" "),a=t[0]??"",n=t.length>1?t[t.length-1]:"";return a&&n?`${a.charAt(0)}${n.charAt(0)}`:a.charAt(0)}function Aa(e){const{name:t,getInitials:a,...n}=e,s=io();return r.jsx(B.div,{role:"img","aria-label":t,...n,__css:s.label,children:t?a==null?void 0:a(t):null})}Aa.displayName="AvatarName";const Fa=e=>r.jsxs(B.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[r.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),r.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function Pa(e){const{src:t,srcSet:a,onError:n,onLoad:s,getInitials:o,name:i,borderRadius:l,loading:h,iconLabel:f,icon:x=r.jsx(Fa,{}),ignoreFallback:p,referrerPolicy:d,crossOrigin:m}=e,c=Zs({src:t,onError:n,crossOrigin:m,ignoreFallback:p})==="loaded";return!t||!c?i?r.jsx(Aa,{className:"chakra-avatar__initials",getInitials:o,name:i}):u.cloneElement(x,{role:"img","aria-label":f}):r.jsx(B.img,{src:t,srcSet:a,alt:i??f,onLoad:s,referrerPolicy:d,crossOrigin:m??void 0,className:"chakra-avatar__img",loading:h,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}Pa.displayName="AvatarImage";const uo=sr({display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0}),Na=ie((e,t)=>
1{const a=ha("Avatar",e),[n,s]=u.useState(!1),{src:o,srcSet:i,name:l,showBorder:h,borderRadius:f="full",onError:x,onLoad:p,getInitials:d=lo,icon:m=r.jsx(Fa,{}),iconLabel:v=" avatar",loading:c,children:j,borderColor:g,ignoreFallback:y,crossOrigin:S,referrerPolicy:w,...V}=Rs(e),k={borderRadius:f,borderWidth:h?"2px":void 0,...uo,...a.container};return g&&(k.borderColor=g),r.jsx(B.span,{ref:t,...V,className:$("chakra-avatar",e.className),"data-loaded":eo(n),__css:k,children:r.jsxs(oo,{value:a,children:[r.jsx(Pa,{src:o,srcSet:i,loading:c,onLoad:He(p,()=>{s(!0)}),onError:x,getInitials:d,name:l,borderRadius:f,icon:m,iconLabel:v,ignoreFallback:y,crossOrigin:S,referrerPolicy:w}),j]})})});Na.displayName="Avatar";var Yr="data-focus-lock",Ma="data-focus-lock-disabled",co="data-no-focus-lock",fo="data-autofocus-inside",po="data-no-autofocus";function Wr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ho(e,t){var a=u.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(n){var s=a.value;s!==n&&(a.value=n,a.callback(n,s))}}}})[0];return a.callback=t,a.facade}var mo=typeof window<"u"?u.useLayoutEffect:u.useEffect,zt=new WeakMap;function ka(e,t){var a=ho(null,function(n){return e.forEach(function(s){return Wr(s,n)})});return mo(function(){var n=zt.get(a);if(n){var s=new Set(n),o=new Set(e),i=a.current;s.forEach(function(l){o.has(l)||Wr(l,null)}),o.forEach(function(l){s.has(l)||Wr(l,i)})}zt.set(a,e)},[e]),a}var Or={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function Ia(e){return e}function La(e,t){t===void 0&&(t=Ia);var a=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(o){var i=t(o,n);return a.push(i),function(){a=a.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(n=!0;a.length;){var i=a;a=[],i.forEach(o)}a={push:function(l){return o(l)},filter:function(){return a}}},assignMedium:function(o){n=!0;var i=[];if(a.length){var l=a;a=[],l.forEach(o),i=a}var h=function(){var x=i;i=[],x.forEach(o)},f=function(){return Promise.resolve().then(h)};f(),a={push:function(x){i.push(x),f()},filter:function(x){return i=i.filter(x),a}}}};return s}function ot(e,t){return t===void 0&&(t=Ia),La(e,t)}function Ra(e){e===void 0&&(e={});var t=La(null);return t.options=ve({async:!0,ssr:!1},e),t}var _a=function(e){var t=e.sideCar,a=na(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return u.createElement(n,ve({},a))};_a.isSideCarExport=!0;function xo(e,t){return e.useMedium(t),_a}var Wa=ot({},function(e){var t=e.target,a=e.currentTarget;return{target:t,currentTarget:a}}),Oa=ot(),vo=ot(),jo=Ra({async:!0,ssr:typeof document<"u"}),go=u.createContext(void 0),bo=[],it=u.forwardRef(function(t,a){var n,s=u.useState(),o=s[0],i=s[1],l=u.useRef(),h=u.useRef(!1),f=u.useRef(null),x=u.useState({}),p=x[1],d=t.children,m=t.disabled,v=m===void 0?!1:m,c=t.noFocusGuards,j=c===void 0?!1:c,g=t.persistentFocus,y=g===void 0?!1:g,S=t.crossFrame,w=S===void 0?!0:S,V=t.autoFocus,k=V===void 0?!0:V;t.allowTextSelection;var O=t.group,E=t.className,T=t.whiteList,fe=t.hasPositiveIndices,ue=t.shards,pe=ue===void 0?bo:ue,ke=t.as,Ie=ke===void 0?"div":ke,be=t.lockProps,dr=be===void 0?{}:be,fr=t.sideCar,Xe=t.returnFocus,Ke=Xe===void 0?!1:Xe,gt=t.focusOptions,pr=t.onActivation,hr=t.onDeactivation,bt=u.useState({}),yt=bt[0],St=u.useCallback(function(te){var ye=te.captureFocusRestore;if(!f.current){var Se,he=(Se=document)==null?void 0:Se.activeElement;f.current=he,he!==document.body&&(f.current=ye(he))}l.current&&pr&&pr(l.current),h.current=!0,p()},[pr]),Vt=u.useCallback(function(){h.current=!1,hr&&hr(l.current),p()},[hr]),Ct=u.useCallback(function(te){var ye=f.current;if(ye){var Se=(typeof ye=="function"?ye():ye)||document.body,he=typeof Ke=="function"?Ke(Se):Ke;if(he){var kr=typeof he=="object"?he:void 0;f.current=null,te?Promise.resolve().then(function(){return Se.focus(kr)}):Se.focus(kr)}}},[Ke]),wt=u.useCallback(function(te){h.current&&Wa.useMedium(te)},[]),Tt=Oa.useMedium,At=u.useCallback(function(te){l.current!==te&&(l.current=te,i(te))},[]),Ft=$r((n={},n[Ma]=v&&"disabled",n[Yr]=O,n),dr),Mr=j!==!0,Pt=Mr&&j!=="tail",Nt=ka([a,At]),Mt=u.useMemo(function(){return{observed:l,shards:pe,enabled:!v,active:h.current}},[v,h.current,pe,o]);return u.createElement(u.Fragment,null,Mr&&[u.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:Or}),fe?u.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:Or}):null],!v&&u.createElement(fr,{id:yt,sideCar:jo,observed:o,disabled:v,persistentFocus:y,crossFrame:w,autoFocus:k,whiteList:T,shards:pe,onActivation:St,onDeactivation:Vt,returnFocus:Ct,focusOptions:gt,noFocusGuards:j}),u.createElement(Ie,$r({ref:Nt},Ft,{className:E,onBlur:Tt,onFocus:wt}),u.createElement(go.Provider,{value:Mt},d)),Pt&&u.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:Or}))});it.propTypes={};function yo(e,t){function a(n){return n.displayName||n.name||"Component"}return function(s){var o=[],i;function l(){i=e(o.map(function(f){return f.props})),t(i)}var h=function(f){Hs(x,f);function x(){return f.apply(this,arguments)||this}x.peek=function(){return i};var p=x.prototype;return p.componentDidMount=function(){o.push(this),l()},p.componentDidUpdate=function(){l()},p.componentWillUnmount=function(){var m=o.indexOf(this);o.splice(m,1),l()},p.render=function(){return ze.createElement(s,this.props)},x}(u.PureComponent);return ro(h,"displayName","SideEffect("+a(s)+")"),h}}var le=function(e){for(var t=Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t},Ne=function(e){return Array.isArray(e)?e:[e]},Ba=function(e){return Array.isArray(e)?e[0]:e},So=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Ea=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Da=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Vo=function(e){return e.hasAttribute("inert")},Co=function(e,t){return!e||Da(e)||!So(e)&&!Vo(e)&&t(Ea(e))},Ha=function(e,t){var a=e.get(t);if(a!==void 0)return a;var n=Co(t,Ha.bind(void 0,e));return e.set(t,n),n},wo=function(e,t){return e&&!Da(e)?Fo(e)?t(Ea(e)):!1:!0},za=function(e,t){var a=e.get(t);if(a!==void 0)return a;var n=wo(t,za.bind(void 0,e));return e.set(t,n),n},Ua=function(e){return e.dataset},To=function(e){return e.tagName==="BUTTON"},Ga=function(e){return e.tagName==="INPUT"},$a=function(e){return Ga(e)&&e.type==="radio"},Ao=function(e){return!((Ga(e)||To(e))&&(e.type==="hidden"||e.disabled))},Fo=function(e){var t=e.getAttribute(po);return![!0,"true",""].includes(t)},lt=function(e){var t;
1return!!(e&&(!((t=Ua(e))===null||t===void 0)&&t.focusGuard))},Zr=function(e){return!lt(e)},Po=function(e){return!!e},No=function(e,t){var a=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),s=a-n,o=e.index-t.index;if(s){if(!a)return 1;if(!n)return-1}return s||o},Mo=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},ut=function(e,t,a){return le(e).map(function(n,s){var o=Mo(n);return{node:n,index:s,tabIndex:a&&o===-1?(n.dataset||{}).focusGuard?0:-1:o}}).filter(function(n){return!t||n.tabIndex>=0}).sort(No)},ko=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],ct=ko.join(","),Io="".concat(ct,", [data-focus-guard]"),Qa=function(e,t){return le((e.shadowRoot||e).children).reduce(function(a,n){return a.concat(n.matches(t?Io:ct)?[n]:[],Qa(n))},[])},Lo=function(e,t){var a;return e instanceof HTMLIFrameElement&&(!((a=e.contentDocument)===null||a===void 0)&&a.body)?qe([e.contentDocument.body],t):[e]},qe=function(e,t){return e.reduce(function(a,n){var s,o=Qa(n,t),i=(s=[]).concat.apply(s,o.map(function(l){return Lo(l,t)}));return a.concat(i,n.parentNode?le(n.parentNode.querySelectorAll(ct)).filter(function(l){return l===n}):[])},[])},Ro=function(e){var t=e.querySelectorAll("[".concat(fo,"]"));return le(t).map(function(a){return qe([a])}).reduce(function(a,n){return a.concat(n)},[])},dt=function(e,t){return le(e).filter(function(a){return Ha(t,a)}).filter(function(a){return Ao(a)})},Ut=function(e,t){return t===void 0&&(t=new Map),le(e).filter(function(a){return za(t,a)})},ft=function(e,t,a){return ut(dt(qe(e,a),t),!0,a)},or=function(e,t){return ut(dt(qe(e),t),!1)},_o=function(e,t){return dt(Ro(e),t)},Fe=function(e,t){return e.shadowRoot?Fe(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:le(e.children).some(function(a){var n;if(a instanceof HTMLIFrameElement){var s=(n=a.contentDocument)===null||n===void 0?void 0:n.body;return s?Fe(s,t):!1}return Fe(a,t)})},Wo=function(e){for(var t=new Set,a=e.length,n=0;n<a;n+=1)for(var s=n+1;s<a;s+=1){var o=e[n].compareDocumentPosition(e[s]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(i,l){return!t.has(l)})},qa=function(e){return e.parentNode?qa(e.parentNode):e},pt=function(e){var t=Ne(e);return t.filter(Boolean).reduce(function(a,n){var s=n.getAttribute(Yr);return a.push.apply(a,s?Wo(le(qa(n).querySelectorAll("[".concat(Yr,'="').concat(s,'"]:not([').concat(Ma,'="disabled"])')))):[n]),a},[])},Oo=function(e){try{return e()}catch{return}},ir=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?ir(t.shadowRoot):t instanceof HTMLIFrameElement&&Oo(function(){return t.contentWindow.document})?ir(t.contentWindow.document):t}},Bo=function(e,t){return e===t},Eo=function(e,t){return!!le(e.querySelectorAll("iframe")).some(function(a){return Bo(a,t)})},Ya=function(e,t){return t===void 0&&(t=ir(Ba(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:pt(e).some(function(a){return Fe(a,t)||Eo(a,t)})},Do=function(e){e===void 0&&(e=document);var t=ir(e);return t?le(e.querySelectorAll("[".concat(co,"]"))).some(function(a){return Fe(a,t)}):!1},Ho=function(e,t){return t.filter($a).filter(function(a){return a.name===e.name}).filter(function(a){return a.checked})[0]||e},ht=function(e,t){return $a(e)&&e.name?Ho(e,t):e},zo=function(e){var t=new Set;return e.forEach(function(a){return t.add(ht(a,e))}),e.filter(function(a){return t.has(a)})},Gt=function(e){return e[0]&&e.length>1?ht(e[0],e):e[0]},$t=function(e,t){return e.indexOf(ht(t,e))},Xr="NEW_FOCUS",Uo=function(e,t,a,n,s){var o=e.length,i=e[0],l=e[o-1],h=lt(n);if(!(n&&e.indexOf(n)>=0)){var f=n!==void 0?a.indexOf(n):-1,x=s?a.indexOf(s):f,p=s?e.indexOf(s):-1;if(f===-1)return p!==-1?p:Xr;if(p===-1)return Xr;var d=f-x,m=a.indexOf(i),v=a.indexOf(l),c=zo(a),j=n!==void 0?c.indexOf(n):-1,g=j-(s?c.indexOf(s):f);if(!d&&p>=0||t.length===0)return p;var y=$t(e,t[0]),S=$t(e,t[t.length-1]);if(f<=m&&h&&Math.abs(d)>1)return S;if(f>=v&&h&&Math.abs(d)>1)return y;if(d&&Math.abs(g)>1)return p;if(f<=m)return S;if(f>v)return y;if(d)return Math.abs(d)>1?p:(o+p+d)%o}},Go=function(e){return function(t){var a,n=(a=Ua(t))===null||a===void 0?void 0:a.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},Qt=function(e,t,a){var n=e.map(function(o){var i=o.node;return i}),s=Ut(n.filter(Go(a)));return s&&s.length?Gt(s):Gt(Ut(t))},Kr=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Kr(e.parentNode.host||e.parentNode,t),t},Br=function(e,t){for(var a=Kr(e),n=Kr(t),s=0;s<a.length;s+=1){var o=a[s];if(n.indexOf(o)>=0)return o}return!1},Za=function(e,t,a){var n=Ne(e),s=Ne(t),o=n[0],i=!1;
1return s.filter(Boolean).forEach(function(l){i=Br(i||l,l)||i,a.filter(Boolean).forEach(function(h){var f=Br(o,h);f&&(!i||Fe(f,i)?i=f:i=Br(f,i))})}),i},qt=function(e,t){return e.reduce(function(a,n){return a.concat(_o(n,t))},[])},$o=function(e,t){var a=new Map;return t.forEach(function(n){return a.set(n.node,n)}),e.map(function(n){return a.get(n)}).filter(Po)},Qo=function(e,t){var a=ir(Ne(e).length>0?document:Ba(e).ownerDocument),n=pt(e).filter(Zr),s=Za(a||e,e,n),o=new Map,i=or(n,o),l=i.filter(function(v){var c=v.node;return Zr(c)});if(l[0]){var h=or([s],o).map(function(v){var c=v.node;return c}),f=$o(h,l),x=f.map(function(v){var c=v.node;return c}),p=f.filter(function(v){var c=v.tabIndex;return c>=0}).map(function(v){var c=v.node;return c}),d=Uo(x,p,h,a,t);if(d===Xr){var m=Qt(i,p,qt(n,o))||Qt(i,x,qt(n,o));if(m)return{node:m};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:f[d]}},qo=function(e){var t=pt(e).filter(Zr),a=Za(e,e,t),n=ut(qe([a],!0),!0,!0),s=qe(t,!1);return n.map(function(o){var i=o.node,l=o.index;return{node:i,index:l,lockItem:s.indexOf(i)>=0,guard:lt(i)}})},mt=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Er=0,Dr=!1,Xa=function(e,t,a){a===void 0&&(a={});var n=Qo(e,t);if(!Dr&&n){if(Er>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Dr=!0,setTimeout(function(){Dr=!1},1);return}Er++,mt(n.node,a.focusOptions),Er--}};function Je(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var Yo=function(e){if(!e)return null;for(var t=[],a=e;a&&a!==document.body;)t.push({current:Je(a),parent:Je(a.parentElement),left:Je(a.previousElementSibling),right:Je(a.nextElementSibling)}),a=a.parentElement;return{element:Je(e),stack:t,ownerDocument:e.ownerDocument}},Zo=function(e){var t,a,n,s,o;if(e)for(var i=e.stack,l=e.ownerDocument,h=new Map,f=0,x=i;f<x.length;f++){var p=x[f],d=(t=p.parent)===null||t===void 0?void 0:t.call(p);if(d&&l.contains(d)){for(var m=(a=p.left)===null||a===void 0?void 0:a.call(p),v=p.current(),c=d.contains(v)?v:void 0,j=(n=p.right)===null||n===void 0?void 0:n.call(p),g=ft([d],h),y=(o=(s=c??(m==null?void 0:m.nextElementSibling))!==null&&s!==void 0?s:j)!==null&&o!==void 0?o:m;y;){for(var S=0,w=g;S<w.length;S++){var V=w[S];if(y!=null&&y.contains(V.node))return V.node}y=y.nextElementSibling}if(g.length)return g[0].node}}},Ka=function(e){var t=Yo(e);return function(){return Zo(t)}},Xo=function(e,t,a){if(!e||!t)return console.error("no element or scope given"),{};var n=Ne(t);if(n.every(function(i){return!Fe(i,e)}))return console.error("Active element is not contained in the scope"),{};var s=a?ft(n,new Map):or(n,new Map),o=s.findIndex(function(i){var l=i.node;return l===e});if(o!==-1)return{prev:s[o-1],next:s[o+1],first:s[0],last:s[s.length-1]}},Ko=function(e,t){var a=t?ft(Ne(e),new Map):or(Ne(e),new Map);return{first:a[0],last:a[a.length-1]}},Jo=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Ja=function(e,t,a){t===void 0&&(t={});var n=Jo(t),s=Xo(e,n.scope,n.onlyTabbable);if(s){var o=a(s,n.cycle);o&&mt(o.node,n.focusOptions)}},ei=function(e,t){t===void 0&&(t={}),Ja(e,t,function(a,n){var s=a.next,o=a.first;return s||n&&o})},ri=function(e,t){t===void 0&&(t={}),Ja(e,t,function(a,n){var s=a.prev,o=a.last;return s||n&&o})},en=function(e,t,a){var n,s=Ko(e,(n=t.onlyTabbable)!==null&&n!==void 0?n:!0),o=s[a];o&&mt(o.node,t.focusOptions)},ti=function(e,t){t===void 0&&(t={}),en(e,t,"first")},ai=function(e,t){t===void 0&&(t={}),en(e,t,"last")};function xt(e){setTimeout(e,1)}var ni=function(t){return t&&"current"in t?t.current:t},rn=function(){return document&&document.activeElement===document.body},si=function(){return rn()||Do()},Ge=null,H=null,Yt=function(){return null},$e=null,lr=!1,vt=!1,oi=function(){return!0},ii=function(t){return(Ge.whiteList||oi)(t)},li=function(t,a){$e={observerNode:t,portaledElement:a}},ui=function(t){return $e&&$e.portaledElement===t};function Zt(e,t,a,n){var s=null,o=e;do{var i=n[o];if(i.guard)i.node.dataset.focusAutoGuard&&(s=i);else if(i.lockItem){if(o!==e)return;s=null}else break}while((o+=a)!==t);
1s&&(s.node.tabIndex=0)}var ci=function(t){return t?!!lr:lr==="meanwhile"},di=function e(t,a,n){return a&&(a.host===t&&(!a.activeElement||n.contains(a.activeElement))||a.parentNode&&e(t,a.parentNode,n))},fi=function(t,a){return a.some(function(n){return di(t,n,n)})},tn=function(t){return or(t,new Map)},pi=function(t){return!tn([t.parentNode]).some(function(a){return a.node===t})},Cr=function(){var t=!1;if(Ge){var a=Ge,n=a.observed,s=a.persistentFocus,o=a.autoFocus,i=a.shards,l=a.crossFrame,h=a.focusOptions,f=a.noFocusGuards,x=n||$e&&$e.portaledElement;if(rn()&&H&&(!document.body.contains(H)||pi(H))){H=null;var p=Yt();p&&p.focus()}var d=document&&document.activeElement;if(x){var m=[x].concat(i.map(ni).filter(Boolean)),v=function(){if(!ci(l)||!f||!H||vt)return!1;var S=tn(m),w=S.findIndex(function(V){var k=V.node;return k===H});return w===0||w===S.length-1};if((!d||ii(d))&&(s||v()||!si()||!H&&o)&&(x&&!(Ya(m)||d&&fi(d,m)||ui(d))&&(document&&!H&&d&&!o?(d.blur&&d.blur(),document.body.focus()):(t=Xa(m,H,{focusOptions:h}),$e={})),lr=!1,H=document&&document.activeElement,Yt=Ka(H)),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var c=document&&document.activeElement,j=qo(m),g=j.map(function(y){var S=y.node;return S}).indexOf(c);g>-1&&(j.filter(function(y){var S=y.guard,w=y.node;return S&&w.dataset.focusAutoGuard}).forEach(function(y){var S=y.node;return S.removeAttribute("tabIndex")}),Zt(g,j.length,1,j),Zt(g,-1,-1,j))}}}return t},an=function(t){Cr()&&t&&(t.stopPropagation(),t.preventDefault())},jt=function(){return xt(Cr)},hi=function(t){var a=t.target,n=t.currentTarget;n.contains(a)||li(n,a)},mi=function(){return null},nn=function(){vt=!0},sn=function(){vt=!1,lr="just",xt(function(){lr="meanwhile"})},xi=function(){document.addEventListener("focusin",an),document.addEventListener("focusout",jt),window.addEventListener("focus",nn),window.addEventListener("blur",sn)},vi=function(){document.removeEventListener("focusin",an),document.removeEventListener("focusout",jt),window.removeEventListener("focus",nn),window.removeEventListener("blur",sn)};function ji(e){return e.filter(function(t){var a=t.disabled;return!a})}var on={moveFocusInside:Xa,focusInside:Ya,focusNextElement:ei,focusPrevElement:ri,focusFirstElement:ti,focusLastElement:ai,captureFocusRestore:Ka};function gi(e){var t=e.slice(-1)[0];t&&!Ge&&xi();var a=Ge,n=a&&t&&t.id===a.id;Ge=t,a&&!n&&(a.onDeactivation(),e.filter(function(s){var o=s.id;return o===a.id}).length||a.returnFocus(!t)),t?(H=null,(!n||a.observed!==t.observed)&&t.onActivation(on),Cr(),xt(Cr)):(vi(),H=null)}Wa.assignSyncMedium(hi);Oa.assignMedium(jt);vo.assignMedium(function(e){return e(on)});const bi=yo(ji,gi)(mi);var Jr=u.forwardRef(function(t,a){return u.createElement(it,$r({sideCar:bi,ref:a},t))}),ln=it.propTypes||{};ln.sideCar;to(ln,["sideCar"]);Jr.propTypes={};const yi=Jr.default??Jr,un=e=>{const{initialFocusRef:t,finalFocusRef:a,contentRef:n,restoreFocus:s,children:o,isDisabled:i,autoFocus:l,persistentFocus:h,lockFocusAcrossFrames:f}=e,x=u.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&ao(n.current).length===0&&requestAnimationFrame(()=>{var v;(v=n.current)==null||v.focus()})},[t,n]),p=u.useCallback(()=>{var m;(m=a==null?void 0:a.current)==null||m.focus()},[a]),d=s&&!a;return r.jsx(yi,{crossFrame:f,persistentFocus:h,autoFocus:l,disabled:i,onActivation:x,onDeactivation:p,returnFocus:d,children:o})};un.displayName="FocusLock";const Si=ie(function(t,a){const{isExternal:n,target:s,rel:o,className:i,...l}=t;return r.jsx(B.a,{...l,ref:a,className:$("chakra-linkbox__overlay",i),rel:n?"noopener noreferrer":o,target:n?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),Vi=ie(function(t,a){const{className:n,...s}=t;return r.jsx(B.div,{ref:a,position:"relative",...s,className:$("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var Ci=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Re=new WeakMap,vr=new WeakMap,jr={},Hr=0,cn=function(e){return e&&(e.host||cn(e.parentNode))}
1,wi=function(e,t){return t.map(function(a){if(e.contains(a))return a;var n=cn(a);return n&&e.contains(n)?n:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Ti=function(e,t,a,n){var s=wi(t,Array.isArray(e)?e:[e]);jr[a]||(jr[a]=new WeakMap);var o=jr[a],i=[],l=new Set,h=new Set(s),f=function(p){!p||l.has(p)||(l.add(p),f(p.parentNode))};s.forEach(f);var x=function(p){!p||h.has(p)||Array.prototype.forEach.call(p.children,function(d){if(l.has(d))x(d);else try{var m=d.getAttribute(n),v=m!==null&&m!=="false",c=(Re.get(d)||0)+1,j=(o.get(d)||0)+1;Re.set(d,c),o.set(d,j),i.push(d),c===1&&v&&vr.set(d,!0),j===1&&d.setAttribute(a,"true"),v||d.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return x(t),l.clear(),Hr++,function(){i.forEach(function(p){var d=Re.get(p)-1,m=o.get(p)-1;Re.set(p,d),o.set(p,m),d||(vr.has(p)||p.removeAttribute(n),vr.delete(p)),m||p.removeAttribute(a)}),Hr--,Hr||(Re=new WeakMap,Re=new WeakMap,vr=new WeakMap,jr={})}},Ai=function(e,t,a){a===void 0&&(a="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=Ci(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),Ti(n,s,a,"aria-hidden")):function(){return null}},Fi=Object.defineProperty,Pi=(e,t,a)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Ni=(e,t,a)=>(Pi(e,t+"",a),a);class Mi{constructor(){Ni(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const a=Array.from(this.modals)[this.modals.size-1];return t===a}}const et=new Mi;function dn(e,t){const[a,n]=u.useState(0);return u.useEffect(()=>{const s=e.current;if(s){if(t){const o=et.add(s);n(o)}return()=>{et.remove(s),n(0)}}},[t,e]),a}function ki(e){const{isOpen:t,onClose:a,id:n,closeOnOverlayClick:s=!0,closeOnEsc:o=!0,useInert:i=!0,onOverlayClick:l,onEsc:h}=e,f=u.useRef(null),x=u.useRef(null),[p,d,m]=Li(n,"chakra-modal","chakra-modal--header","chakra-modal--body");Ii(f,t&&i);const v=dn(f,t),c=u.useRef(null),j=u.useCallback(T=>{c.current=T.target},[]),g=u.useCallback(T=>{T.key==="Escape"&&(T.stopPropagation(),o&&(a==null||a()),h==null||h())},[o,a,h]),[y,S]=u.useState(!1),[w,V]=u.useState(!1),k=u.useCallback((T={},fe=null)=>({role:"dialog",...T,ref:Dt(fe,f),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?d:void 0,"aria-describedby":w?m:void 0,onClick:He(T.onClick,ue=>ue.stopPropagation())}),[m,w,p,d,y]),O=u.useCallback(T=>{T.stopPropagation(),c.current===T.target&&et.isTopModal(f.current)&&(s&&(a==null||a()),l==null||l())},[a,s,l]),E=u.useCallback((T={},fe=null)=>({...T,ref:Dt(fe,x),onClick:He(T.onClick,O),onKeyDown:He(T.onKeyDown,g),onMouseDown:He(T.onMouseDown,j)}),[g,j,O]);return{isOpen:t,onClose:a,headerId:d,bodyId:m,setBodyMounted:V,setHeaderMounted:S,dialogRef:f,overlayRef:x,getDialogProps:k,getDialogContainerProps:E,index:v}}function Ii(e,t){const a=e.current;u.useEffect(()=>{if(!(!e.current||!t))return Ai(e.current)},[t,e,a])}function Li(e,...t){const a=u.useId(),n=e||a;return u.useMemo(()=>t.map(s=>`${s}-${n}`),[n,t])}const[Ri,Ze]=st({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[_i,Me]=st({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),fn=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:a,children:n,autoFocus:s,trapFocus:o,initialFocusRef:i,finalFocusRef:l,returnFocusOnClose:h,blockScrollOnMount:f,allowPinchZoom:x,preserveScrollBarGap:p,motionPreset:d,lockFocusAcrossFrames:m,animatePresenceProps:v,onCloseComplete:c}=t,j=ha("Modal",t),y={...ki(t),autoFocus:s,trapFocus:o,initialFocusRef:i,finalFocusRef:l,returnFocusOnClose:h,blockScrollOnMount:f,allowPinchZoom:x,preserveScrollBarGap:p,motionPreset:d,lockFocusAcrossFrames:m};return r.jsx(_i,{value:y,children:r.jsx(Ri,{value:j,children:r.jsx(Fr,{...v,onExitComplete:c,children:y.isOpen&&r.jsx(_s,{...a,children:n})})})})};fn.displayName="Modal";var yr="right-scroll-bar-position",Sr="width-before-scroll-bar",Wi="with-scroll-bars-hidden",Oi="--removed-body-scroll-bar-size",pn=Ra(),zr=function(){},Nr=u.forwardRef(function(e,t){var a=u.useRef(null),n=u.useState({onScrollCapture:zr,onWheelCapture:zr,onTouchMoveCapture:zr}),s=n[0],o=n[1],i=e.forwardProps,l=e.children,h=e.className,f=e.removeScrollBar,x=e.enabled,p=e.shards,d=e.sideCar,m=e.noIsolation,v=e.inert,c=e.allowPinchZoom,j=e.as,g=j===void 0?"div":j,y=e.gapMode,S=na(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,V=ka([a,t]),k=ve(ve({},S),s);return u.createElement(u.Fragment,null,x&&u.createElement(w,{sideCar:pn,removeScrollBar:f,shards:p,noIsolation:m,inert:v,setCallbacks:o,allowPinchZoom:!!c,lockRef:a,gapMode:y}),i?u.cloneElement(u.Children.only(l),ve(ve({},k),{ref:V})):u.createElement(g,ve({},k,{className:h,ref:V}),l))});Nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nr.classNames={fullWidth:Sr,zeroRight:yr};var Bi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ei(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bi();return t&&e.setAttribute("nonce",t),e}function Di(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zi=function(){var e=0,t=null;return{add:function(a){e==0&&(t=Ei())&&(Di(t,a),Hi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ui=function(){var e=zi();return function(t,a){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},hn=function(){var e=Ui(),t=function(a){var n=a.styles,s=a.dynamic;return e(n,s),null};return t},Gi={left:0,top:0,right:0,gap:0},Ur=function(e){return parseInt(e||"",10)||0},$i=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ur(a),Ur(n),Ur(s)]},Qi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gi;var t=$i(e),a=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-a+t[2]-t[0])}},qi=hn(),Qe="data-scroll-locked",Yi=function(e,t,a,n){var s=e.left,o=e.top,i=e.right,l=e.gap;return a===void 0&&(a="margin"),`
2  .`.concat(Wi,` {
3   overflow: hidden `).concat(n,`;
4   padding-right: `).concat(l,"px ").concat(n,`;
5  }
6  body[`).concat(Qe,`] {
7    overflow: hidden `).concat(n,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(n,";"),a==="margin"&&`
10    padding-left: `.concat(s,`px;
11    padding-top: `).concat(o,`px;
12    padding-right: `).concat(i,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(l,"px ").concat(n,`;
16    `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(yr,` {
20    right: `).concat(l,"px ").concat(n,`;
21  }
22  
23  .`).concat(Sr,` {
24    margin-right: `).concat(l,"px ").concat(n,`;
25  }
26  
27  .`).concat(yr," .").concat(yr,` {
28    right: 0 `).concat(n,`;
29  }
30  
31  .`).concat(Sr," .").concat(Sr,` {
32    margin-right: 0 `).concat(n,`;
33  }
34  
35  body[`).concat(Qe,`] {
36    `).concat(Oi,": ").concat(l,`px;
37  }
38`)},Xt=function(){var e=parseInt(document.body.getAttribute(Qe)||"0",10);return isFinite(e)?e:0},Zi=function(){u.useEffect(function(){return document.body.setAttribute(Qe,(Xt()+1).toString()),function(){var e=Xt()-1;e<=0?document.body.removeAttribute(Qe):document.body.setAttribute(Qe,e.toString())}},[])},Xi=function(e){var t=e.noRelative,a=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;Zi();var o=u.useMemo(function(){return Qi(s)},[s]);return u.createElement(qi,{styles:Yi(o,!t,s,a?"":"!important")})},rt=!1;if(typeof window<"u")try{var gr=Object.defineProperty({},"passive",{get:function(){return rt=!0,!0}});window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{rt=!1}var _e=rt?{passive:!1}:!1,Ki=function(e){return e.tagName==="TEXTAREA"},mn=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Ki(e)&&a[t]==="visible")},Ji=function(e){return mn(e,"overflowY")},el=function(e){return mn(e,"overflowX")},Kt=function(e,t){var a=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=xn(e,n);if(s){var o=vn(e,n),i=o[1],l=o[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==a.body);return!1},rl=function(e){var t=e.scrollTop,a=e.scrollHeight,n=e.clientHeight;return[t,a,n]},tl=function(e){var t=e.scrollLeft,a=e.scrollWidth,n=e.clientWidth;return[t,a,n]},xn=function(e,t){return e==="v"?Ji(t):el(t)},vn=function(e,t){return e==="v"?rl(t):tl(t)},al=function(e,t){return e==="h"&&t==="rtl"?-1:1},nl=function(e,t,a,n,s){var o=al(e,window.getComputedStyle(t).direction),i=o*n,l=a.target,h=t.contains(l),f=!1,x=i>0,p=0,d=0;do{var m=vn(e,l),v=m[0],c=m[1],j=m[2],g=c-j-o*v;(v||g)&&xn(e,l)&&(p+=g,d+=v),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!h&&l!==document.body||h&&(t.contains(l)||t===l));return(x&&(Math.abs(p)<1||!s)||!x&&(Math.abs(d)<1||!s))&&(f=!0),f},br=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jt=function(e){return[e.deltaX,e.deltaY]},ea=function(e){return e&&"current"in e?e.current:e},sl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ol=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},il=0,We=[];function ll(e){var t=u.useRef([]),a=u.useRef([0,0]),n=u.useRef(),s=u.useState(il++)[0],o=u.useState(hn)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var c=Dn([e.lockRef.current],(e.shards||[]).map(ea),!0).filter(Boolean);return c.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),c.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);
41var l=u.useCallback(function(c,j){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!i.current.allowPinchZoom;var g=br(c),y=a.current,S="deltaX"in c?c.deltaX:y[0]-g[0],w="deltaY"in c?c.deltaY:y[1]-g[1],V,k=c.target,O=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in c&&O==="h"&&k.type==="range")return!1;var E=Kt(O,k);if(!E)return!0;if(E?V=O:(V=O==="v"?"h":"v",E=Kt(O,k)),!E)return!1;if(!n.current&&"changedTouches"in c&&(S||w)&&(n.current=V),!V)return!0;var T=n.current||V;return nl(T,j,c,T==="h"?S:w,!0)},[]),h=u.useCallback(function(c){var j=c;if(!(!We.length||We[We.length-1]!==o)){var g="deltaY"in j?Jt(j):br(j),y=t.current.filter(function(V){return V.name===j.type&&(V.target===j.target||j.target===V.shadowParent)&&sl(V.delta,g)})[0];if(y&&y.should){j.cancelable&&j.preventDefault();return}if(!y){var S=(i.current.shards||[]).map(ea).filter(Boolean).filter(function(V){return V.contains(j.target)}),w=S.length>0?l(j,S[0]):!i.current.noIsolation;w&&j.cancelable&&j.preventDefault()}}},[]),f=u.useCallback(function(c,j,g,y){var S={name:c,delta:j,target:g,should:y,shadowParent:ul(g)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),x=u.useCallback(function(c){a.current=br(c),n.current=void 0},[]),p=u.useCallback(function(c){f(c.type,Jt(c),c.target,l(c,e.lockRef.current))},[]),d=u.useCallback(function(c){f(c.type,br(c),c.target,l(c,e.lockRef.current))},[]);u.useEffect(function(){return We.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:d}),document.addEventListener("wheel",h,_e),document.addEventListener("touchmove",h,_e),document.addEventListener("touchstart",x,_e),function(){We=We.filter(function(c){return c!==o}),document.removeEventListener("wheel",h,_e),document.removeEventListener("touchmove",h,_e),document.removeEventListener("touchstart",x,_e)}},[]);var m=e.removeScrollBar,v=e.inert;return u.createElement(u.Fragment,null,v?u.createElement(o,{styles:ol(s)}):null,m?u.createElement(Xi,{gapMode:e.gapMode}):null)}function ul(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cl=xo(pn,ll);var jn=u.forwardRef(function(e,t){return u.createElement(Nr,ve({},e,{ref:t,sideCar:cl}))});jn.classNames=Nr.classNames;function dl(e){const{autoFocus:t,trapFocus:a,dialogRef:n,initialFocusRef:s,blockScrollOnMount:o,allowPinchZoom:i,finalFocusRef:l,returnFocusOnClose:h,preserveScrollBarGap:f,lockFocusAcrossFrames:x,isOpen:p}=Me(),[d,m]=Ws();u.useEffect(()=>{!d&&m&&setTimeout(m)},[d,m]);const v=dn(n,p);return r.jsx(un,{autoFocus:t,isDisabled:!a,initialFocusRef:s,finalFocusRef:l,restoreFocus:h,contentRef:n,lockFocusAcrossFrames:x,children:r.jsx(jn,{removeScrollBar:!f,allowPinchZoom:i,enabled:v===1&&o,forwardProps:!0,children:e.children})})}const fl={initial:({offsetX:e,offsetY:t,transition:a,transitionEnd:n,delay:s})=>({opacity:0,x:e,y:t,transition:(a==null?void 0:a.exit)??we.exit(Te.exit,s),transitionEnd:n==null?void 0:n.exit}),enter:({transition:e,transitionEnd:t,delay:a})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??we.enter(Te.enter,a),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:a,transitionEnd:n,reverse:s,delay:o})=>{const i={x:t,y:e};return{opacity:0,transition:(a==null?void 0:a.exit)??we.exit(Te.exit,o),...s?{...i,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...i,...n==null?void 0:n.exit}}}}},rr={initial:"initial",animate:"enter",exit:"exit",variants:fl},pl=u.forwardRef(function(t,a){const{unmountOnExit:n,in:s,reverse:o=!0,className:i,offsetX:l=0,offsetY:h=8,transition:f,transitionEnd:x,delay:p,animatePresenceProps:d,...m}=t,v=n?s&&n:!0,c=s||n?"enter":"exit",j={offsetX:l,offsetY:h,reverse:o,transition:f,transitionEnd:x,delay:p};return r.jsx(Fr,{...d,custom:j,children:v&&r.jsx(cr.div,{ref:a,className:$("chakra-offset-slide",i),custom:j,...rr,animate:c,...m})})});pl.displayName="SlideFade";const hl={exit:({reverse:e,initialScale:t,transition:a,transitionEnd:n,delay:s})=>({opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(a==null?void 0:a.exit)??we.exit(Te.exit,s)}),enter:({transitionEnd:e,transition:t,delay:a})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??we.enter(Te.enter,a),transitionEnd:e==null?void 0:e.enter})},gn={initial:"exit",animate:"enter",exit:"exit",variants:hl},ml=u.forwardRef(function(t,a){const{unmountOnExit:n,in:s,reverse:o=!0,initialScale:i=.95,className:l,transition:h,transitionEnd:f,delay:x,animatePresenceProps:p,...d}=t,m=n?s&&n:!0,v=s||n?"enter":"exit",c={initialScale:i,reverse:o,transition:h,transitionEnd:f,delay:x};return r.jsx(Fr,{...p,custom:c,children:m&&r.jsx(cr.div,{ref:a,className:$("chakra-offset-slide",l),...gn,animate:v,custom:c,...d})})});ml.displayName="ScaleFade";const xl={slideInBottom:{...rr,custom:{offsetY:16,reverse:!0}},slideInRight:{...rr,custom:{offsetX:16,reverse:!0}},slideInTop:{...rr,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...rr,custom:{offsetX:-16,reverse:!0}},scale:{...gn,custom:{initialScale:.95,reverse:!0}},none:{}},vl=B(cr.section),jl=e=>xl[e||"none"],bn=u.forwardRef((e,t)=>
41{const{preset:a,motionProps:n=jl(a),...s}=e;return r.jsx(vl,{ref:t,...n,...s})});bn.displayName="ModalTransition";const yn=ie((e,t)=>{const{className:a,children:n,containerProps:s,motionProps:o,...i}=e,{getDialogProps:l,getDialogContainerProps:h}=Me(),f=l(i,t),x=h(s),p=$("chakra-modal__content",a),d=Ze(),m=sr({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...d.dialog}),v=sr({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...d.dialogContainer}),{motionPreset:c}=Me();return r.jsx(dl,{children:r.jsx(B.div,{...x,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:r.jsx(bn,{preset:c,motionProps:o,className:p,...f,__css:m,children:n})})})});yn.displayName="ModalContent";const Sn=ie((e,t)=>{const{className:a,...n}=e,{bodyId:s,setBodyMounted:o}=Me();u.useEffect(()=>(o(!0),()=>o(!1)),[o]);const i=$("chakra-modal__body",a),l=Ze();return r.jsx(B.div,{ref:t,className:i,id:s,...n,__css:l.body})});Sn.displayName="ModalBody";const Vn=ie((e,t)=>{const{onClick:a,className:n,...s}=e,{onClose:o}=Me(),i=$("chakra-modal__close-btn",n),l=Ze();return r.jsx(Os,{ref:t,__css:l.closeButton,className:i,onClick:He(a,h=>{h.stopPropagation(),o()}),...s})});Vn.displayName="ModalCloseButton";const Cn=ie((e,t)=>{const{className:a,...n}=e,s=$("chakra-modal__footer",a),o=Ze(),i=sr({display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer});return r.jsx(B.footer,{ref:t,...n,__css:i,className:s})});Cn.displayName="ModalFooter";const wn=ie((e,t)=>{const{className:a,...n}=e,{headerId:s,setHeaderMounted:o}=Me();u.useEffect(()=>(o(!0),()=>o(!1)),[o]);const i=$("chakra-modal__header",a),l=Ze(),h=sr({flex:0,...l.header});return r.jsx(B.header,{ref:t,className:i,id:s,...n,__css:h})});wn.displayName="ModalHeader";const gl={enter:({transition:e,transitionEnd:t,delay:a}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??we.enter(Te.enter,a),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:a}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??we.exit(Te.exit,a),transitionEnd:t==null?void 0:t.exit})},Tn={initial:"exit",animate:"enter",exit:"exit",variants:gl},bl=u.forwardRef(function(t,a){const{unmountOnExit:n,in:s,className:o,transition:i,transitionEnd:l,delay:h,animatePresenceProps:f,...x}=t,p=s||n?"enter":"exit",d=n?s&&n:!0,m={transition:i,transitionEnd:l,delay:h};return r.jsx(Fr,{...f,custom:m,children:d&&r.jsx(cr.div,{ref:a,className:$("chakra-fade",o),custom:m,...Tn,animate:p,...x})})});bl.displayName="Fade";const yl=B(cr.div),An=ie((e,t)=>
41{const{className:a,transition:n,motionProps:s,...o}=e,i=$("chakra-modal__overlay",a),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ze().overlay},{motionPreset:f}=Me(),p=s||(f==="none"?{}:Tn);return r.jsx(yl,{...p,__css:h,ref:t,className:i,...o})});An.displayName="ModalOverlay";const Fn=e=>r.jsx(B.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});Fn.displayName="StackDivider";var Pn=function(e){var t=e.render;return t(Tr())||null},wr=function(){return wr=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},wr.apply(this,arguments)},Sl=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(a[n[s]]=e[n[s]]);return a},tt=function(e){var t=e.className,a=e.format,n=a===void 0?wl:a,s=e.helperText,o=e.label,i=e.margin,l=e.onBlur,h=e.onChange,f=e.parse,x=f===void 0?Cl:f,p=e.resource,d=e.disabled,m=e.readOnly,v=e.source,c=e.validate,j=e.variant,g=e.nullLabel,y=g===void 0?"ra.boolean.null":g,S=e.falseLabel,w=S===void 0?"ra.boolean.false":S,V=e.trueLabel,k=V===void 0?"ra.boolean.true":V,O=Sl(e,["className","format","helperText","label","margin","onBlur","onChange","parse","resource","disabled","readOnly","source","validate","variant","nullLabel","falseLabel","trueLabel"]),E=Qn(),T=qn(wr({format:n,parse:x,onBlur:l,onChange:h,resource:p,source:v,validate:c,disabled:d,readOnly:m},O)),fe=T.field,ue=T.fieldState,pe=ue.error,ke=ue.invalid,Ie=ue.isTouched,be=T.formState.isSubmitted,dr=T.id,fr=T.isRequired,Xe=s!==!1||(Ie||be)&&ke;return u.createElement(Vl,wr({id:dr,size:"small"},fe,{className:zs("ra-input","ra-input-".concat(v),at.input,t),select:!0,disabled:d||m,readOnly:m,margin:i,label:u.createElement(Yn,{label:o,source:v,resource:p,isRequired:fr}),error:(Ie||be)&&ke,helperText:Xe?u.createElement(Zn,{touched:Ie||be,error:pe==null?void 0:pe.message,helperText:s}):null,variant:j},Xn(O)),u.createElement(Lr,{value:""},E(y)),u.createElement(Lr,{value:"false"},E(w)),u.createElement(Lr,{value:"true"},E(k)))};tt.propTypes={label:q.oneOfType([q.string,q.bool,q.element]),options:q.object,disabled:q.bool,readOnly:q.bool,resource:q.string,source:q.string,nullLabel:q.string,falseLabel:q.string,trueLabel:q.string};var Nn="RaNullableBooleanInput",at={input:"".concat(Nn,"-input")},Vl=Gn($n,{name:Nn,overridesResolver:function(e,t){return t.root}})(function(e){var t,a,n=e.theme,s=e.fullWidth;return t={},t["&.".concat(at.input)]={width:s?"100%":n.spacing(16)},t[n.breakpoints.down("sm")]=(a={},a["&.".concat(at.input)]={width:"100%"},a),t}),Cl=function(e){return e==="true"?!0:e==="false"?!1:null},wl=function(e){return e===!0?"true":e===!1?"false":""},Ye=function(e){var t=e.children;return u.createElement(u.Fragment,null,t)};Ye.displayName="WrapperField";Ye.propTypes=Kn;function Tl(){const e=Hn();let t="/";return Ot("/sportvenues/*",e.pathname)?t="/sportvenues":Ot("/sportVenuePros/*",e.pathname)&&(t="/sportVenuePros"),r.jsx(J,{component:"nav",sx:{flexGrow:1},children:r.jsx(Jn,{position:"static",color:"primary",children:r.jsx(es,{variant:"dense",children:r.jsxs(J,{flex:1,display:"flex",justifyContent:"space-between",children:[r.jsxs(J,{display:"flex",alignItems:"center",children:[r.jsx(J,{component:"img",sx:{marginRight:"1em",height:30},src:"/assets/images/glampcentives110.png",alt:"Pickleball Admin Logo"}),r.jsx(ee,{component:"span",variant:"h5",children:"Pickleball as a Service"})]}),r.jsx(J,{children:r.jsxs(rs,{value:t,"aria-label":"Navigation Tabs",indicatorColor:"secondary",textColor:"inherit",children:[r.jsx(Rr,{label:"Dashboard",component:Ir,to:"/SuperAdminVenueDashboard",value:"/"}),r.jsx(Rr,{label:"Venues",component:Ir,to:"/SuperAdminVenueDashboard/sportVenues",value:"/sportVenues"}),r.jsx(Rr,{label:"Pros",component:Ir,to:"/SuperAdminVenueDashboard/sportVenuePros",value:"/sportVenuePros"})]})}),r.jsx(J,{display:"flex",children:r.jsx(ts,{sx:{"& .RaLoadingIndicator-loader":{marginTop:2}}})})]})})})})}const Al=e=>{const{children:t}=e;return r.jsxs(r.Fragment,{children:[r.jsx(as,{}),r.jsx(Tl,{}),r.jsx(ns,{sx:{maxWidth:{xl:1280}},children:r.jsx("main",{id:"main-content",children:t})})]})};function Fl(e){return Ar({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M120.8 55L87.58 199h18.52l29.1-126h18.2l-20.6 126h18.3l10.1-62H247v62h18v-62h85.8l10.1 62h18.3L358.6 73h18.2l29.1 126h18.5L391.2 55H120.8zm50.9 18h168.6l7.
416 46H164.1l7.6-46zM73 217v30h366v-30H73zm-.64 48L20.69 489H491.3l-51.7-224h-18.5l47.6 206h-45L390 265h-18.3l14.2 87H265v-87h-18v87H126.1l14.2-87H122L88.35 471H43.31l47.56-206H72.36zm50.74 105h265.8l16.5 101H106.6l16.5-101z"},child:[]}]})(e)}function Pl(e){return Ar({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M336 0c-26.5 0-48 21.5-48 48v92.1l71.4 118.4c2.5-1.6 5.4-2.5 8.6-2.5h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-3.5l73.8 122.4c12.4 20.6 12.9 46.3 1.2 67.3c-.4 .8-.9 1.6-1.4 2.3H592c26.5 0 48-21.5 48-48V240c0-26.5-21.5-48-48-48H568V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v72H480V48c0-26.5-21.5-48-48-48H336zm32 64h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16V80c0-8.8 7.2-16 16-16zM352 176c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16V176zm160 96c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H528c-8.8 0-16-7.2-16-16V272zm16 80h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H528c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16zM224 188.9L283.8 288H223l-48 64-24.6-41.2L224 188.9zm29.4-44.2C247.1 134.3 236 128 224 128s-23.1 6.3-29.4 16.7L5.1 458.9c-6.5 10.8-6.7 24.3-.7 35.3S22 512 34.5 512H413.5c12.5 0 24-6.8 30.1-17.8s5.8-24.5-.7-35.3L253.4 144.7z"},child:[]}]})(e)}const Y=({heading:e,description:t,icon:a,href:n})=>r.jsx(Vi,{as:"article",maxW:"sm",p:"5",borderWidth:"1px",rounded:"md",children:r.jsx(A,{maxW:{base:"full",md:"275px"},w:"full",borderWidth:"1px",borderRadius:"lg",overflow:"hidden",p:5,children:r.jsxs(je,{align:"start",spacing:2,children:[r.jsx(nr,{w:16,h:16,align:"center",justify:"center",color:"white",rounded:"full",bg:Qr("gray.100","gray.700"),children:a}),r.jsx(A,{mt:2,children:r.jsxs(Si,{href:n,children:[r.jsx(ur,{size:"md",children:e}),r.jsx(re,{mt:1,fontSize:"sm",children:t})]})})]})})});function Nl(){return r.jsxs(A,{p:4,children:[r.jsxs(je,{spacing:4,as:Pe,maxW:"3xl",textAlign:"center",children:[r.jsx(ur,{fontSize:{base:"2xl",sm:"4xl"},fontWeight:"bold",children:"Pickleball as a Service"}),r.jsx(re,{color:"gray.600",fontSize:{base:"sm",sm:"lg"},children:"Create and manage sport venues and related attributes."})]}),r.jsx(Pe,{maxW:"5xl",mt:12,children:r.jsxs(nr,{flexWrap:"wrap",gridGap:6,justify:"center",children:[r.jsx(Y,{heading:"Venues",icon:r.jsx(_,{as:Cs,w:10,h:10}),description:"Create and manage sport venues and operators.",href:"/superAdminVenueDashboard/sportvenues"}),r.jsx(Y,{heading:"Venue Types",icon:r.jsx(_,{as:ws,w:10,h:10}),description:"Venue description of how pickleball/padel experience is primarily or secondarily featured",href:"/superAdminVenueDashboard/sportVenueTypes"}),r.jsx(Y,{heading:"Sport Pros",icon:r.jsx(_,{as:Ts,w:10,h:10}),description:"Sport Professionals, coaches, celebrity athletes, etc.",href:"/superAdminVenueDashboard/sportVenuePros"}),r.jsx(Y,{heading:"Use Cases",icon:r.jsx(_,{as:As,w:10,h:10}),description:"Type of corporate engagement experiences best suited to the venue",href:"/superAdminVenueDashboard/sportVenueUseCases"}
41),r.jsx(Y,{heading:"Corporate Appeal",icon:r.jsx(_,{as:Fs,w:10,h:10}),description:"Overall appearance, breadth of services, capacity, convenience, and value from a corporate buyer perspective",href:"/superAdminVenueDashboard/sportVenueCorporateAppeals"}),r.jsx(Y,{heading:"Sports",icon:r.jsx(_,{as:Fl,color:"teal.600",w:10,h:10}),description:"Sports available at venues. Coaching staff, courts, and operations for sports like Pickleball, Padel, and other",href:"/superAdminVenueDashboard/sportVenueSports"}),r.jsx(Y,{heading:"Contact Types",icon:r.jsx(_,{as:Ps,w:10,h:10}),description:"Key contacts ranging from owners, executive leadership, instructional staff, to operational points of contact",href:"/superAdminVenueDashboard/sportVenueContactTypes"}),r.jsx(Y,{heading:"Reservation Systems",icon:r.jsx(_,{as:Ns,w:10,h:10}),description:"Primary vendor/s supporting pickleball/paddle court reservations, facility operations, and customer engagement",href:"/superAdminVenueDashboard/sportVenueReservationSystem"}),r.jsx(Y,{heading:"FOOD & BEVERAGE MODEL",icon:r.jsx(_,{as:Ms,w:10,h:10}),description:"Description of operational model how food and beverages are served to venue guests",href:"/superAdminVenueDashboard/sportVenueFBService"}),r.jsx(Y,{heading:"FOOD & BEVERAGE STANDARDS",icon:r.jsx(_,{as:ks,w:10,h:10}),description:"Description of manner and quality of food preparation and related service standards",href:"/superAdminVenueDashboard/sportVenueFBTypes"}),r.jsx(Y,{heading:"Amenities",icon:r.jsx(_,{as:Is,w:10,h:10}),description:"Spa and wellbeing experiences that complement the pickleball/padel offering",href:"/superAdminVenueDashboard/sportVenueAmenities"}),r.jsx(Y,{heading:"Metros",icon:r.jsx(_,{as:Pl,color:"teal.600",w:10,h:10}),description:"Major Metropolitan Areas or Metropolitan Service Areas that either include or are closest to the venue",href:"/superAdminVenueDashboard/sportVenueMajorMetros"})]})})]})}const Mn=[{id:"sun",name:"Sunday"},{id:"mon",name:"Monday"},{id:"tue",name:"Tuesday"},{id:"wed",name:"Wednesday"},{id:"thu",name:"Thursday"},{id:"fri",name:"Friday"},{id:"sat",name:"Saturday"}],kn=()=>r.jsxs(va,{children:[r.jsxs(W,{label:"main",children:[r.jsx(P,{label:"Active?",defaultValue:!0,source:"active"}),r.jsx(b,{source:"operatorName",fullWidth:!0,validate:D()}),r.jsx(z,{fullWidth:!0,source:"sportVenueType_id",perPage:250,reference:"sportVenueTypes",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{fullWidth:!0,defaultValue:[],label:"Venue Type",helperText:"Standalone, Multi-location, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Type...",create:r.jsx(M,{resource:"sportVenueTypes",newItemLabel:"New Venue Type"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenueSponsor_ids",reference:"sportVenueSponsors",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Venue Sponosrs",helperText:"Lululemon, Adidas, Toyota, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Type...",create:r.jsx(M,{resource:"sportVenueSponsors",newItemLabel:"New Sponsor"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenueUseCase_ids",reference:"sportVenueUseCases",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Venue Use Case",helperText:"Team Building, Customer Appreciation, etc.",filterToQuery:e=>({name:[e.charAt(0)]}),optionText:"name",optionValue:"id",createItemLabel:"Create New Type...",create:r.jsx(M,{resource:"sportVenueUseCases",newItemLabel:"New Use Case"})})}),r.jsx(z,{fullWidth:!0,source:"sportVenueCorporateAppeal_id",perPage:250,reference:"sportVenueCorporateAppeals",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{fullWidth:!0,label:"Corporate Appeal",defaultValue:[],helperText:"Choose from options or create new option",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Item...",create:r.jsx(M,{resource:"sportVenueCorporateAppeals",newItemLabel:"New Corporate Appeal"})})}),r.jsx(b,{source:"locationName",defaultValue:"",fullWidth:!0,helperText:"Property local name if different"}),r.jsx(b,{source:"website",defaultValue:"",fullWidth:!0,helperText:"Include https://"}),r.jsx(b,{source:"phoneNumber",defaultValue:"",fullWidth:!0}),r.jsx(z,{fullWidth:!0,source:"sportVenueMajorMetro_id",perPage:250,reference:"sportVenueMajorMetros",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{fullWidth:!0,label:"Nearest Major Metro",defaultValue:[],helperText:"Cho
41ose from options or create new option",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Item...",create:r.jsx(M,{resource:"sportVenueMajorMetros",newItemLabel:"New Major Metro Option"})})}),r.jsx(C,{source:"distanceFromMajorMetro",defaultValue:[],helperText:"in miles",fullWidth:!0,validate:ce(0,"distance must be a number")}),r.jsx(b,{source:"nearestMajorAirport",fullWidth:!0,defaultValue:""}),r.jsx(C,{source:"distanceFromMajorAirport",defaultValue:[],helperText:"in miles",fullWidth:!0,validate:ce(0,"distance must be a number")}),r.jsx(C,{source:"distanceFromMajorConventionCenter",helperText:"in miles",defaultValue:[],fullWidth:!0,validate:ce(0,"distance must be a number")}),r.jsx(Oe,{source:"lodging",defaultValue:[],children:r.jsxs(Be,{inline:!0,getItemLabel:e=>`#${e+1}`,children:[r.jsx(z,{source:"sportVenueLodgingTypes_id",perPage:250,reference:"sportVenueLodgingTypes",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{validate:D(),helperText:"e.g., hotel, resort, glamping, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Lodging Type...",create:r.jsx(M,{resource:"sportVenueLodgingTypes",newItemLabel:"New Lodging Type "})})}),r.jsx(b,{source:"lodgingName",defaultValue:""}),r.jsx(P,{label:"On grounds (yes/no)",defaultValue:!1,source:"lodgingOnVenueGrounds"}),r.jsx(tr,{}),r.jsx(C,{source:"distanceFromVenue",helperText:"in miles",defaultValue:[],validate:ce(0,"distance must be a number")})]})}),r.jsx(ja,{source:"venueDescription",defaultValue:"",fullWidth:!0,toolbar:r.jsx(ga,{size:"large"})})]}),r.jsx(W,{label:"capabilities",children:r.jsx(Oe,{source:"capabilities",defaultValue:[],children:r.jsxs(Be,{inline:!0,getItemLabel:e=>`#${e+1}`,children:[r.jsx(z,{fullWidth:!0,source:"sportVenueSports_id",perPage:250,reference:"sportVenueSports",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{fullWidth:!0,validate:D(),helperText:"e.g., tennis, golf, padel, fitness training, spa facilities",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Sport...",create:r.jsx(M,{resource:"sportVenueSports",newItemLabel:"New Sport"})})}),r.jsx(C,{source:"NumberOfTotalCourts",helperText:!1}),r.jsx(C,{source:"NumberOfIndoorCourts",helperText:!1}),r.jsx(C,{source:"NumberOfOutdoorCourts",helperText:!1}),r.jsx(C,{source:"HourlyRateForCourtRental",helperText:"Cost per hour per court in dollars"}),r.jsx(P,{label:"Lighted outdoor courts (yes/no)",defaultValue:!1,source:"outdoorCourtsLighted"}),r.jsx(tr,{}),r.jsx(P,{label:"Teaching Professionals (yes/no)",defaultValue:!1,source:"teachingPros"}),r.jsx(C,{label:"Number of Teaching Professionals",source:"numberOfTeachingPros",helperText:!1}),r.jsx(C,{source:"HourlyRateForTeachingPros",helperText:"Cost per hour per Pro in dollars"}),r.jsx(C,{source:"HourlyRateForSportEquipment",helperText:"Cost per hour per equipment in dollars"})]})})}),r.jsxs(W,{label:"hours",children:[r.jsx(P,{label:"Seasonal (yes/no)",defaultValue:!1,source:"isSeasonal"}),r.jsx(Oe,{source:"operatingHours",helperText:"Create entries for each open operations window. ex. Monday 8:00 to 18:30",defaultValue:[],children:r.jsxs(Be,{inline:!0,getItemLabel:e=>`#${e+1}`,children:[r.jsx(sa,{source:"day",choices:Mn,validate:D()}),r.jsx(P,{source:"isClosed",defaultValue:!1}),r.jsx(Es,{children:({scopedFormData:e,getSource:t})=>r.jsx(r.Fragment,{children:e&&!e.isClosed&&r.jsxs(r.Fragment,{children:[r.jsx(C,{source:t("openHour"),helperText:"0-23",validate:D()}),r.jsx(C,{source:t("openMinute"),helperText:"0-59",validate:D()}),r.jsx(C,{source:t("closeHour"),helperText:"0-23",validate:D()}),r.jsx(C,{source:t("closeMinute"),helperText:"0-59",validate:D()})]})})})]})})]}),r.jsxs(W,{label:"address",children:[r.jsx(b,{source:"addressLine1",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"addressLine2",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"city",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"state",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"zipCode",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"country",fullWidth:!0,defaultValue:""})]}),r.jsx(W,{label:"contacts",children:r.jsx(Oe,{source:"contacts",defaultValue:[],children:r.jsxs(Be,{inline:!0,getItemLabel:e=>`#${e+1}`,children:[r.jsx(z,{source:"sportVenueContactType_id",perPage:250,reference:"sportVenueContactTypes",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{label:"Contact Type",helperText:"Owner, GM, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Contact Type...",create:r.jsx(M,{resource:"sportVenueContactTypes",newItemLabel:"New Contact Type"})})}),r.jsx(b,{source:"firstName",helperText:!1,validate:D()}),r.jsx(b,{source:"lastName",helperText:!1,validate:D()}),r.jsx(b,{source:"phoneNumber",helperText:!1}),r.jsx(b,{source:"email",helperText:!1,validate:ss("not a valid email format")})]})})}),r.jsxs(W,{label:"property",children:[r.jsx(X,{fullWidth:!0,source:"sportVenueReservationSystem_ids",reference:"sportVenueReservationSystem",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Venue Reservation System",helperText:"Court Reserve, Daxko, Club Automation, Home Grown, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Type...",create:r.jsx(M,{resource:"sportVenueReservationSystem",newItemLabel:"New Reservation System"})})}),r.jsx(P,{label:"Food and Beverage (yes, no)",defaultValue:!1,source:"foodAndBeverage"}),r.jsx(X,{fullWidth:!0,source:"sportVenueFBService_ids",reference:"sportVenueFBService",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Venue F&B Services",helperText:"Restaurant, Cafe, Bar, Snack Bar, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New FB Service...",create:r.jsx(M,{resource:"sportVenueFBService",newItemLabel:"New F and B Service"})})}),r.jsx(z,{fullWidth:!0,source:"sportVenueFBType_id",perPage:250,reference:"sportVenueFBTypes",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{fullWidth:!0,label:"F&B Standard",helperText:"basic, medium, good, high quality, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New F and B Type...",create:r.jsx(M,{resource:"sportVenueFBTypes",newItemLabel:"New F and B Type"}),defaultValue:[]})}),r.jsx(C,{source:"FBCost",label:"Average Cost per Meal (breakfast, lunch, dinner)",helperText:"Cost per meal per Pax in dollars"}),r.jsx(P,{label:"Onsite Restaurant (yes, no)",defaultValue:!1,source:"hasRestaurant"}),r.jsx(P,{label:"Onsite Cafe (yes, no)",defaultValue:!1,source:"hasCafe"}),r.jsx(P,{label:"Onsite Pro Shop (yes, no)",defaultValue:!1,source:"hasProShop"}),r.jsx(P,{label:"Online Store (yes, no)",defaultValue:!1,source:"hasOnlineStore"}),r.jsx(P,{label:"Onsite Locker Room (yes, no)",defaultValue:!1,source:"hasLockerRoom"}),r.jsx(P,{label:"Onsite Shower Room (yes, no)",defaultValue:!1,source:"hasShowerRoom"}),r.jsx(P,{label:"WiFi (yes, no)",defaultValue:!1,source:"hasWiFi"}),r.jsx(P,{label:"Online Court Reservation System (yes, no)",defaultValue:!1,source:"hasCourtReservationSystem"}),r.jsx(X,{fullWidth:!0,source:"sportVenueAmenities_ids",reference:"sportVenueAmenities",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Venue Amenities",helperText:"Cold Plunge, Spa, Sauna, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Venue Amenity...",create:r.jsx(M,{resource:"sportVenueAmenities",newItemLabel:"New Venue Amenity"})})}),r.jsx(P,{label:"Meeting Area/s (yes, no)",defaultValue:!1,source:"meetingAreas"}),r.jsx(b,{source:"meetingAreaSize",defaultValue:"",helperText:"total meeting area size in Sq ft"}),r.jsx(C,{source:"meetingAreaCost",label:"Rental Costs for Meeting Areas",helperText:"Cost per meeting area per day in dollars"}),r.jsx(Oe,{source:"meetingSpaces",defaultValue:[],children:r.jsxs(Be,{inline:!0,getItemLabel:e=>`#${e+1}`,children:[r.jsx(z,{source:"sportVenueMeetingSpaceTypes_id",perPage:250,reference:"sportVenueMeetingSpaceTypes",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{validate:D(),helperText:"e.g., ballroom, meeting room, hanger, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Meeting Space Type...",create:r.jsx(M,{resource:"sportVenueMeetingSpaceTypes",newItemLabel:"New Meeting Space Type "})})}),r.jsx(b,{source:"name",defaultValue:""}),r.jsx(P,{label:"enclosed? (yes/or no, it's open)",defaultValue:!1,source:"enclosed"}),r.jsx(tr,{}),r.jsx(C,{source:"cost",label:"Rental Costs for Meeting Areas",helperText:"Cost per meeting area per day in dollars"})]})}),r.jsx(P,{label:"Stage space for speaking/entertainment (yes/no)",defaultValue:!1,source:"entertainmentArea"}),r.jsx(P,{label:"Audio/Video in Meeting Areas (yes/no)",defaultValue:!1,source:"avService"}),r.jsx(P,{label:"Parking Stalls Available",defaultValue:!1,source:"parkingAvailable"}),r.jsx(C,{source:"parkingAvailableCount",helperText:"How many Parking Spaces?",defaultValue:[],fullWidth:!0,validate:ce(1,"Quantity must be a number")})]}),r.jsx(W,{label:"Images",children:r.jsx(oa,{source:"pictures",label:"Pictures",accept:"image/*",multiple:!0,defaultValue:[],placeholder:r.jsxs("p",{children:["Click here to browse your computer or ",r.jsx("br",{})," Drop your file here"]}),children:r.jsx(ia,{source:"src",title:"title"})})}),r.jsx(W,{label:"System Data",children:r.jsx(ba,{})})]}),Ml=e=>r.jsx(la,{title:"Create a Venue",...e,redirect:"show",actions:r.jsx(ma,{dashBoardUrl:"/SuperAdminVenueDashboard"}),children:r.jsx(kn,{})}),kl=e=>r.jsx(nt,{title:"Edit Venue",...e,redirect:"show",undoable:!1,actions:r.jsx(xa,{dashBoardUrl:"/SuperAdminVenueDashboard"}),children:r.jsx(kn,{})}),ra=[r.jsx(xr,{source:"operatorName",label:"Operator Name"}),r.jsx(xr,{source:"city",label:"City"}),r.jsx(xr,{source:"state",label:"State"}),r.jsx(z,{label:"Metro",source:"sportVenueMajorMetro_id",perPage:250,reference:"sportVenueMajorMetros",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{label:"Metro",filterToQuery:e=>({name:[e.charAt(0)]}),optionText:"name",optionValue:"id"})}),r.jsx(xr,{source:"venueDescription",label:"Description"}),r.jsx(z,{label:"Use Case",source:"sportVenueUseCase_ids",perPage:250,reference:"sportVenueUseCases",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{filterToQuery:e=>({name:[e.charAt(0)]}),emptyText:"-- None --",optionText:"name",optionValue:"id"})}),r.jsx(z,{label:"Venue Type",source:"sportVenueType_id",perPage:250,reference:"sportVenueTypes",sort:{field:"name",order:"ASC"},children:r.jsx(sa,{label:"Venue Type",optionText:"name",optionValue:"id"})}),r.jsx(z,{label:"Corporate Appeal",source:"sportVenueCorporateAppeal_id",perPage:250,reference:"sportVenueCorporateAppeals",sort:{field:"name",order:"ASC"},children:r.jsx(Z,{filterToQuery:e=>({name:[e.charAt(0)]}),emptyText:"-- None --",optionText:"name",optionValue:"id"})}),r.jsx(tt,{source:"active"}),r.jsx(tt,{source:"hasRestaurant"})],In=e=>r.jsx(r.Fragment,{children:r.jsx(A,{bg:"gray.100",px:4,children:r.jsxs(nr,{h:16,alignItems:"center",justifyContent:"space-between",children:[r.jsx(A,{}
41),r.jsx(nr,{alignItems:"center",children:r.jsx(je,{direction:"row",spacing:7,children:e.children})})]})})});function Il(e){return Ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"View_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M18.436,20.937H5.562a2.5,2.5,0,0,1-2.5-2.5V5.563a2.5,2.5,0,0,1,2.5-2.5H18.436a2.5,2.5,0,0,1,2.5,2.5V18.437A2.5,2.5,0,0,1,18.436,20.937ZM5.562,4.063a1.5,1.5,0,0,0-1.5,1.5V18.437a1.5,1.5,0,0,0,1.5,1.5H18.436a1.5,1.5,0,0,0,1.5-1.5V5.563a1.5,1.5,0,0,0-1.5-1.5Z"},child:[]},{tag:"path",attr:{d:"M6.544,8.283h0a.519.519,0,0,1-.353-.147.5.5,0,0,1,0-.707.512.512,0,0,1,.353-.146H7.55a.516.516,0,0,1,.353.146.5.5,0,0,1,.147.354.5.5,0,0,1-.5.5Z"},child:[]},{tag:"path",attr:{d:"M6.544,12.5h0a.523.523,0,0,1-.353-.146.5.5,0,0,1,0-.708.516.516,0,0,1,.353-.146H7.55a.521.521,0,0,1,.353.146.5.5,0,0,1,0,.708.516.516,0,0,1-.353.146Z"},child:[]},{tag:"path",attr:{d:"M6.544,16.72h0a.519.519,0,0,1-.353-.147.5.5,0,0,1,0-.707.516.516,0,0,1,.353-.146H7.55a.516.516,0,0,1,.353.146.5.5,0,0,1,.147.354.5.5,0,0,1-.5.5Z"},child:[]},{tag:"path",attr:{d:"M10.554,8.281h0a.5.5,0,0,1,0-1h6.9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M10.554,12.5h0a.5.5,0,0,1,0-1h6.9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M10.554,16.718h0a.5.5,0,0,1,0-1h6.9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function Ll(e){return Ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"},child:[]}]})(e)}function ta(e){return r.jsx(Ls.Provider,{value:{size:"38px"},children:r.jsx("div",{children:e.children})})}const aa=e=>{const t=Qs(e.id,"ListViewControlsModeIcons"),{getInputProps:a,getRadioProps:n}=Gs({id:t,...e}),s=a(),o=n();return r.jsxs(r.Fragment,{children:[r.jsx(Ce,{"aria-label":e.label,size:"8xl",icon:e.icon,as:"label",htmlFor:s.id,...o,_checked:{bg:"blue.600",color:"white",borderColor:"blue.600"}}),r.jsx("input",{...s})]})},Ln=({value:e,onChange:t})=>{const{getRootProps:a,getRadioProps:n}=Us({name:"ListViewControlsMode",value:e,onChange:t}),s=a();return r.jsxs($s,{...s,isAttached:!0,children:[r.jsx(aa,{...n({value:"list"}),label:"List",icon:r.jsx(ta,{children:r.jsx(Il,{})})}),r.jsx(aa,{...n({value:"grid"}),label:"Grid",icon:r.jsx(ta,{children:r.jsx(Ll,{})})})]})};function Rn({CardComponent:e}){const{data:t,isLoading:a}=Tr();return a?r.jsx(pa,{}):r.jsx(r.Fragment,{children:r.jsx(Pe,{maxWidth:"1200px",mx:"auto",my:"auto",p:10,children:r.jsx(Va,{columns:[1,2,3],spacing:"15px",children:t.map(n=>r.jsx(e,{item:n},n.id))})})})}function Rl(e){var o,i;const{item:t}=e;if(!t)return;const a=t.sportVenueType_id&&Bt("sportVenueTypes",t.sportVenueType_id),n=t.sportVenueMajorMetro_id&&Bt("sportVenueMajorMetros",t.sportVenueMajorMetro_id);let s;return t!=null&&t.pictures&&(t==null?void 0:t.pictures.length)>0&&(s=t.pictures[0].src),r.jsx(Pr,{href:`/SuperAdminVenueDashboard/sportVenues/${t.id}/show`,children:r.jsxs(A,{maxW:"sm",borderWidth:"1px",borderRadius:"lg",overflow:"hidden",shadow:"md",rounded:"lg",children:[r.jsx(de,{maxW:"560px",ratio:1,children:r.jsx(ge,{objectFit:"cover",fallbackSrc:"https://via.placeholder.com/150",src:s,alt:t.operatorName})}),r.jsxs(A,{p:"6",children:[r.jsxs(A,{display:"flex",alignItems:"baseline",children:[r.jsx(Ca,{borderRadius:"full",px:"2",colorScheme:"teal",children:Math.random()<.5&&"NEW"}),r.jsx(A,{color:"gray.500",fontWeight:"semibold",letterSpacing:"wide",fontSize:"xs",textTransform:"uppercase",ml:"2",children:(o=a==null?void 0:a.document)==null?void 0:o.name})]}),r.jsx(A,{mt:"1",fontWeight:"semibold",as:"h4",lineHeight:"tight",noOfLines:2,children:t.operatorName}),r.jsxs(A,{children:[t.city," • ",t.state," •",r.jsxs(A,{as:"span",color:"gray.600",fontSize:"sm",children:[t.distanceFromMajorMetro?` ${t.distanceFromMajorMetro} mi from `:" near ",`${(i=n==null?void 0:n.document)==null?void 0:i.name}`]})]}),r.jsx(A,{display:"flex",mt:"2",alignItems:"center",children:r.jsx(A,{as:"span",ml:"2",color:"gray.600",fontSize:"sm",children:t.capabilities&&t.capabilities.length>0?`${t.capabilities[0].NumberOfTotalCourts} courts`:""})})]})]})})}const _n=e=>{const{enableRecordActions:t}=e;return r.jsxs(Ee,{rowClick:"show",bulkActionButtons:!1,children:[e.children,t&&r.jsxs(r.Fragment,{children:[r.jsx(ua,{}),r.jsx("br",{}),r.jsx(os,{}),r.jsx(tr,{}
41),r.jsx(is,{confirmContent:"You will not be able to recover this record. Are you sure?",confirmTitle:"Delete?"})]})]})},Wn=e=>{const{enableRecordActions:t}=e;return r.jsxs(_n,{enableRecordActions:t,children:[r.jsxs(Ye,{sortBy:"operatorName",label:"Name",children:[r.jsx(F,{source:"operatorName"}),r.jsx("br",{}),r.jsx("br",{}),r.jsx(De,{source:"pictures",children:r.jsx(Pn,{render:({data:a})=>{var n,s,o;return r.jsx(A,{boxSize:"sm",children:r.jsx(de,{maxW:"560px",ratio:1,children:r.jsx(ge,{src:(o=(s=(n=a==null?void 0:a.values())==null?void 0:n.next())==null?void 0:s.value)==null?void 0:o.src,alt:"regenr8"})})})}})})]}),r.jsx(F,{source:"city"}),r.jsx(F,{source:"state"}),r.jsx(F,{source:"country"}),r.jsx(I,{source:"active"})]})},_l=e=>{const[t,a]=u.useState("grid"),n=Le("sportVenueCorporateAppeals"),s=Le("sportVenueMajorMetros"),o=Le("sportVenueTypes"),i=Le("sportVenueUseCases"),l=Le("sportVenueReservationSystem"),h=Le("sportVenueSponsors"),f=(c,j)=>{var y;const g=c!=null&&c.documents?(y=c==null?void 0:c.documents)==null?void 0:y.find(S=>S.id===j):null;return g?g.name:""},x=(c,j)=>j?Array.from(j,g=>f(c,g)).join(","):"",{total:p,resource:d,currentSort:m}=e,v=c=>{const j=c.map(g=>{var Lt,Rt,_t,Wt;const{pictures:y,operatingHours:S,contacts:w,lodging:V,locationName:k,phoneNumber:O,meetingAreas:E,parkingAvailableCount:T,capabilities:fe,nearestMajorMetro:ue,hasCafe:pe,isSeasonal:ke,foodAndBeverage:Ie,hasCourtReservationSystem:be,meetingAreaSize:dr,hasProShop:fr,updatedby:Xe,hasOnlineStore:Ke,hasRestaurant:gt,FBCost:pr,avService:hr,meetingAreaCost:bt,sportVenueFBType_id:yt,createdate:St,lastupdate:Vt,distanceFromMajorConventionCenter:Ct,parkingAvailable:wt,createdby:Tt,entertainmentArea:At,hasLockerRoom:Ft,hasShowerRoom:Mr,hasWiFi:Pt,country:Nt,venueDescription:Mt,distanceFromMajorMetro:te,distanceFromMajorAirport:ye,exportDate:Se,nearestMajorAirport:he,sportVenueAmenities_ids:kr,sportVenueFBService_ids:tu,openMinute:au,closeMinute:nu,closeHour:su,openHour:ou,sportVenueSponsor_ids:iu,sportVenueCorporateAppeal_id:lu,meetingSpaces:uu,sportVenueUseCase_ids:cu,sportVenueMajorMetro_id:du,sportVenueType_id:fu,sportVenueReservationSystem_ids:pu,...L}=g;L.sportVenueCorporateAppeal=f(n,g.sportVenueCorporateAppeal_id||""),L.MajorMetro=f(s,g.sportVenueMajorMetro_id||""),L.VenueType=f(o,g.sportVenueType_id||""),L.sportVenueUseCases=x(i,g.sportVenueUseCase_ids),L.sportVenueReservationSystems=x(l,g.sportVenueReservationSystem_ids),L.sportVenueSponsors=x(h,g.sportVenueSponsor_ids),L.meetingSpace=g.meetingAreas?"Y":"N",L.foodService=g.foodAndBeverage?"Y":"N",L.proShop=g.hasProShop?"Y":"N";
41const kt=(Lt=g.capabilities)==null?void 0:Lt.reduce((Ve,ae)=>Ve+ae.NumberOfIndoorCourts,0);L.NumberOfIndoorCourts=kt===0?"":kt;const It=(Rt=g.capabilities)==null?void 0:Rt.reduce((Ve,ae)=>Ve+ae.NumberOfOutdoorCourts,0);L.NumberOfOutdoorCourts=It===0?"":It;const mr=(_t=g.capabilities)==null?void 0:_t.reduce((Ve,ae)=>Ve+ae.NumberOfTotalCourts,0);L.NumberOfTotalCourts=mr===0?"":mr;const En=(Wt=g.contacts)==null?void 0:Wt.reduce((Ve,ae)=>Ve+"["+ae.firstName+" "+ae.lastName+"] ["+ae.phoneNumber+"] ["+ae.email+"];","");return L.NumberOfTotalCourts=mr===0?"":mr,L.contactsCSV=En,L});ds(j,{headers:["operatorName","active","addressLine1","addressLine2","city","state","zipCode","website","MajorMetro","contactsCSV","NumberOfIndoorCourts","NumberOfOutdoorCourts","NumberOfTotalCourts","VenueType","sportVenueCorporateAppeal","sportVenueReservationSystems","sportVenueUseCases","sportVenueSponsors","meetingSpace","foodService","proShop"]},(g,y)=>{fs(y,"regenr8.ai venues "+new Date().toLocaleString("en-US",{timeZone:"America/Los_Angeles"})+" Pacific")})};return r.jsx(r.Fragment,{children:r.jsx(ca,{perPage:6,children:r.jsxs(r.Fragment,{children:[r.jsxs(In,{children:[r.jsx(ls,{filters:ra}),r.jsx(us,{filters:ra}),r.jsx(da,{}),r.jsx(cs,{disabled:p===0,resource:d,sort:m,exporter:v,maxResults:1e4}),r.jsx(Ln,{value:t,onChange:a})]}),r.jsx(ar,{rowsPerPageOptions:[6,10,15,30,60,90,300]}),t==="list"?r.jsx(Wn,{enableRecordActions:!0}):r.jsx(Rn,{CardComponent:Rl}),r.jsx(ar,{rowsPerPageOptions:[6,10,15,30,60,90,300]})]})})})},Wl={dots:!0,arrows:!1,fade:!0,infinite:!0,autoplay:!0,speed:500,autoplaySpeed:2e3,slidesToShow:1,slidesToScroll:1};function Ol({pictures:e}){const[t,a]=ze.useState(null),n=Et({base:"90%",md:"50%"}),s=Et({base:"30%",md:"10px"});return r.jsxs(A,{bg:"black",position:"relative",height:"600px",width:"full",overflow:"hidden",children:[r.jsx("link",{rel:"stylesheet",type:"text/css",charSet:"UTF-8",href:"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"}),r.jsx("link",{rel:"stylesheet",type:"text/css",href:"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"}),r.jsx(Ce,{"aria-label":"left-arrow",colorScheme:"messenger",borderRadius:"full",position:"absolute",left:s,top:n,transform:"translate(0%, -50%)",zIndex:2,onClick:()=>t==null?void 0:t.slickPrev(),children:r.jsx(Xs,{color:"pink.500"})}),r.jsx(Ce,{"aria-label":"right-arrow",colorScheme:"messenger",borderRadius:"full",position:"absolute",right:s,top:n,transform:"translate(0%, -50%)",zIndex:2,onClick:()=>t==null?void 0:t.slickNext(),children:r.jsx(Ks,{color:"pink.500"})}),r.jsx(Js,{...Wl,ref:o=>a(o),children:e==null?void 0:e.map((o,i)=>r.jsx(de,{maxH:"600px",maxW:"1200px",ratio:16/9,children:r.jsx(Vs,{bg:"black",h:"100px",color:"white",children:r.jsx(ge,{objectFit:"cover",rounded:{base:"xl",md:"3xl"},src:o==null?void 0:o.src,alt:"regenr8"})})},i))})]})}const On=({picturesArray:e})=>{var f,x,p,d;const{isOpen:t,onOpen:a,onClose:n}=no(),[s,o]=ze.useState("md"),i=m=>{o(m),a()};let l,h;return e&&e.length>0&&(l=(f=e[0])==null?void 0:f.src),e&&e.length===2&&(h=[(x=e[1])==null?void 0:x.src]),e&&e.length>2&&(h=[(p=e[1])==null?void 0:p.src,(d=e[2])==null?void 0:d.src]),r.jsxs(qs,{templateColumns:{base:"repeat(3, 1fr)",md:"repeat(4, 1fr)"},templateRows:{base:"repeat(4, 1fr)",md:"repeat(3, 1fr)"},gap:3,children:[r.jsx(_r,{colSpan:3,rowSpan:3,children:r.jsx(de,{ratio:1,children:r.jsx(ge,{objectFit:"cover",rounded:{base:"xl",md:"3xl"},src:l,alt:"regenr8"})})}),h==null?void 0:h.map((m,v)=>r.jsx(_r,{colSpan:1,rowSpan:1,colStart:{base:v+1,md:4},rowStart:{base:4,md:v+1},children:r.jsx(de,{ratio:1,children:r.jsx(ge,{rounded:{base:"xl",md:"3xl"},src:m,alt:"regenr8"})})},m)),r.jsx(_r,{colSpan:1,rowSpan:1,colStart:{base:3,md:4},rowStart:{base:4,md:3},children:r.jsx(de,{ratio:1,children:r.jsxs(r.Fragment,{children:[r.jsx(Ht,{alignItems:"center",justifyContent:"center",rounded:{base:"xl",md:"3xl"},bg:"gray.100",onClick:()=>i("full"),children:(e==null?void 0:e.length)-3>0?r.jsxs(re,{whiteSpace:"break-spaces",fontSize:{base:"xs",md:"xl"},color:"gray.500",children:["View ",(e==null?void 0:e.length)-3,"+ photos"]}):r.jsxs(re,{whiteSpace:"break-spaces",fontSize:{base:"xs",md:"xl"},color:"gray.500",children:["View ",e==null?void 0:e.length," photos"]})}),r.jsxs(fn,{onClose:n,size:s,isOpen:t,children:[r.jsx(An,{bg:"blackAlpha.300",backdropFilter:"blur(10px) hue-rotate(90deg)"}),r.jsxs(yn,{children:[r.jsx(wn,{children:"Venue Gallery"}),r.jsx(Vn,{}),r.jsx(Sn,{children:r.jsx(Ol,{pictures:e})}),r.jsx(Cn,{children:r.jsx(Ht,{onClick:n,children:"Close X"})})]})]})]})})})]})},Bl=({record:e})=>r.jsx(je,{direction:{base:"column",md:"row"},spacing:8,alignItems:"flex-start",children:r.jsxs(Ae,{spacing:6,alignItems:"flex-start",children:[r.jsxs(Ae,{spacing:2,alignItems:"flex-start",children:[r.jsx(ur,{size:"lg",children:"Venue Info:"}),r.jsxs(Vr,{spacing:2,children:[r.jsx(re,{color:"gray.500"}),r.jsx(Na,{name:e.operatorName,size:"xs"}),r.jsx(re,{color:"brand.500",children:e.operatorName})]})]}),r.jsx(xe,{}
41),r.jsx(Ae,{alignItems:"flex-start",spacing:4,children:r.jsx("div",{dangerouslySetInnerHTML:{__html:e.venueDescription}})})]})}),Gr=({icon:e,separator:t,children:a})=>r.jsxs(Vr,{spacing:3,alignItems:"center",children:[e,r.jsx(Vr,{spacing:1,divider:t,children:ze.Children.toArray(a).map(n=>{var s,o,i;return ze.isValidElement(n)&&((i=(o=(s=n.type)==null?void 0:s.displayName)==null?void 0:o.includes)!=null&&i.call(o,"chakra"))?ze.cloneElement(n,{mx:1}):n})})]}),El=({record:e})=>r.jsxs(Ae,{spacing:4,alignItems:"stretch",children:[r.jsxs(je,{direction:{base:"column",md:"row"},justifyContent:"space-between",children:[r.jsx(ur,{fontSize:{base:"4xl",lg:"5xl"},children:e.operatorName}),r.jsxs(Vr,{spacing:4,children:[r.jsx(Ce,{variant:"pill","aria-label":"Get location"}),r.jsx(Ce,{"aria-label":"Share",variant:"pill"}),r.jsx(Ce,{"aria-label":"Add to favorites",variant:"pill"}),r.jsx(Ce,{"aria-label":"More options",variant:"pill"})]})]}),r.jsxs(je,{direction:{base:"column",md:"row"},justifyContent:"space-between",spacing:6,w:{base:"auto",md:"fit-content"},children:[r.jsx(Gr,{icon:r.jsx(_,{fontSize:24,color:"yellow.400"}),separator:r.jsx(re,{color:"gray.500",fontWeight:"bold",children:"·"})}),r.jsx(Gr,{icon:r.jsx(_,{fontSize:24,color:"gray.500"}),children:r.jsxs(re,{size:"md",children:[e.city,", ",e.state]})}),r.jsx(Gr,{icon:r.jsx(_,{fontSize:24,color:"gray.500"}),separator:r.jsx(re,{color:"gray.500",fontWeight:"bold",children:"·"})})]})]}),Dl={style:"currency",currency:"USD",minimumFractionDigits:2};function er({source:e}){return r.jsx(R,{source:e,options:Dl})}const Hl=()=>{const e=t=>{var s;const a=fa(t),n=(s=a.website)!=null&&s.startsWith("https://")?a.website:`https://${a.website}`;return a&&a.website?r.jsxs(Pr,{href:n,isExternal:!0,color:"teal.500",children:[n," ",r.jsx(wa,{mx:"2px"})]}):null};return r.jsxs(ya,{actions:r.jsx(Sa,{dashBoardUrl:"/superadmin/superAdminVenueDashboard"}),children:[r.jsx(Ue,{children:r.jsx(Pe,{maxW:"container.xl",py:10,children:r.jsxs(Ae,{spacing:8,alignItems:"stretch",children:[r.jsx(qr,{label:"name",render:t=>r.jsxs(r.Fragment,{children:[r.jsx(El,{record:t}),r.jsx(On,{picturesArray:t==null?void 0:t.pictures}),r.jsx(Bl,{record:t})]})}),r.jsx(xe,{})]})})}),r.jsxs(Ue,{children:[r.jsx(F,{source:"operatorName"}),r.jsx(me,{source:"sportVenueType_id",reference:"sportVenueTypes",link:"show",children:r.jsx(N,{source:"name"})}),r.jsx(U,{source:"sportVenueSponsor_ids",reference:"sportVenueSponsors",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(U,{source:"sportVenueUseCase_ids",reference:"sportVenueUseCases",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(me,{source:"sportVenueCorporateAppeal_id",reference:"sportVenueCorporateAppeals",link:"show",children:r.jsx(N,{source:"name"})}),r.jsx(F,{source:"locationName"}),r.jsx(e,{}),r.jsx(F,{source:"phoneNumber"}),r.jsx(me,{source:"sportVenueMajorMetro_id",reference:"sportVenueMajorMetros",link:"show",children:r.jsx(N,{source:"name"})}),r.jsx(R,{source:"distanceFromMajorMetro"}),r.jsx(F,{source:"nearestMajorAirport"}),r.jsx(R,{source:"distanceFromMajorAirport"}),r.jsx(R,{source:"distanceFromMajorConventionCenter"}),r.jsx(xe,{}),r.jsx(De,{source:"capabilities",children:r.jsxs(Ee,{bulkActionButtons:!1,children:[r.jsx(me,{source:"sportVenueSports_id",reference:"sportVenueSports",link:"show",children:r.jsx(N,{source:"name"})}),r.jsx(R,{source:"NumberOfTotalCourts"}),r.jsx(R,{source:"NumberOfOutdoorCourts"}),r.jsx(R,{source:"NumberOfIndoorCourts"}),r.jsx(R,{source:"HourlyRateForCourtRental",options:{style:"currency",currency:"USD",minimumFractionDigits:2}}),r.jsx(I,{source:"teachingPros"}),r.jsx(R,{source:"numberOfTeachingPros"}),r.jsx(er,{source:"HourlyRateForTeachingPros"}),r.jsx(er,{source:"HourlyRateForSportEquipment"})]})}),r.jsx(xe,{}),r.jsx(I,{source:"isSeasonal"}),r.jsx(De,{source:"operatingHours",children:r.jsxs(Ee,{bulkActionButtons:!1,children:[r.jsx(ps,{source:"day",choices:Mn}),r.jsxs(r.Fragment,{children:[r.jsx(R,{source:"openHour"}),r.jsx(ee,{variant:"body1",children:":"}),r.jsx(R,{source:"openMinute"})]}),r.jsxs(r.Fragment,{children:[r.jsx(R,{source:"closeHour"}),r.jsx(ee,{variant:"body1",children:":"}),r.jsx(R,{source:"closeMinute"})]})]})}),r.jsx(xe,{}),r.jsx(F,{source:"addressLine1"}),r.jsx(F,{source:"addressLine2"}),r.jsx(F,{source:"city"}),r.jsx(F,{source:"state"}),r.jsx(F,{source:"country"}),r.jsx(F,{source:"zipCode"}),r.jsx(xe,{}),r.jsx(De,{source:"contacts",children:r.jsxs(Ee,{bulkActionButtons:!1,children:[r.jsx(me,{label:"Contact Type",source:"sportVenueContactType_id",reference:"sportVenueContactTypes",link:"show",children:r.jsx(N,{source:"name"})}),r.jsxs(Ye,{label:"Name",children:[r.jsx(F,{source:"firstName"}),r.jsx(ee,{variant:"body1",children:" "}),r.jsx(F,{source:"lastName"})]}),r.jsx(F,{source:"phoneNumber"}),r.jsx(hs,{source:"email"})]})}),r.jsx(xe,{}),r.jsx(U,{source:"sportVenueReservationSystem_ids",reference:"sportVenueReservationSystems",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(I,{source:"foodAndBeverage",label:"Food and Beverage"}),r.jsx(me,{source:"sportVenueFBService_ids",reference:"sportVenueFBServices",link:"show",children:r.jsx(N,{source:"name"})}),r.jsx(me,{source:"sportVenueFBType_id",reference:"sportVenueFBTypes",label:"Food and Beverage Standard",link:"show",children:r.jsx(N,{source:"name"})}),r.jsx(er,{source:"FBCost"}),r.jsx(I,{label:"Onsite Restaurant (yes, no)",source:"hasRestaurant"}),r.jsx(I,{label:"Onsite Cafe (yes, no)",source:"hasCafe"}),r.jsx(I,{label:"Onsite Pro Shop (yes, no)",source:"hasProShop"}),r.jsx(I,{label:"Online Store (yes, no)",source:"hasOnlineStore"}),r.jsx(I,{label:"Onsite Locker Room (yes, no)",source:"hasLockerRoom"}),r.jsx(I,{label:"Onsite Shower Room (yes, no)",source:"hasShowerRoom"}),r.jsx(I,{label:"WiFi (yes, no)",source:"hasWiFi"}),r.jsx(I,{label:"Online Court Reservation System (yes, no)",source:"hasCourtReservationSystem"}),r.jsx(U,{source:"sportVenueAmenities_ids",reference:"sportVenueAmenities",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(I,{label:"Meeting Area/s (yes, no)",source:"meetingAreas"}),r.jsxs(Ye,{label:"Total meeting area size in Sq ft",children:[r.jsx(R,{source:"meetingAreaSize"}),r.jsx(ee,{variant:"body2",children:" sq ft"})]}),r.jsx(er,{source:"meetingAreaCost"}),r.jsx(De,{source:"meetingSpaces",children:r.jsxs(Ee,{children:[r.jsx(me,{source:"sportVenueMeetingSpaceTypes_id",reference:"sportVenueMeetingSpaceTypes",link:"show"}),r.jsx(F,{source:"name"}),r.jsx(I,{source:"enclosed"}),r.jsx(er,{source:"cost"})]})}),r.jsx(I,{label:"Stage space for speaking/entertainment (yes/no)",source:"entertainmentArea"}),r.jsx(I,{label:"Audio/Video in Meeting Areas (yes/no)",source:"avService"}),r.jsx(I,{label:"Parking Stalls Available",source:"parkingAvailable"})]}),r.jsx(Ue,{children:r.jsx(Pe,{maxW:"container.xl",py:10,children:r.jsx(Ae,{spacing:8,alignItems:"stretch"})})})]})},zl={list:_l,create:Ml,edit:kl,show:Hl},Bn=()=>r.jsxs(va,{children:[r.jsxs(W,{label:"main",children:[r.jsx(P,{label:"Active?",defaultValue:!0,source:"active"}),r.jsx(b,{source:"firstName",fullWidth:!0,validate:D(),defaultValue:""}),r.jsx(b,{source:"middleName",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"lastName",fullWidth:!0,validate:D(),defaultValue:""}),r.jsx(ja,{source:"bio",defaultValue:"",fullWidth:!0,toolbar:r.jsx(ga,{size:"large"})}),r.jsx(ee,{variant:"h6",children:"Primary Residence (City, State):"}),r.jsx(b,{source:"residenceCity",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"residenceState",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"privateCampName",label:"Private Camp/ Travel Experience Name",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"privateCampWebsite",label:"Private Camp/ Travel Experience Website address)",defaultValue:"",fullWidth:!0,helperText:"Include https://"}),r.jsx(C,{source:"hourlyBillingRate",helperText:"Billing Rate (hourly) in dollars",defaultValue:null,validate:ce(0,"rate must be a number")}),r.jsx(C,{source:"halfDayBillingRate",helperText:"Billing Rate (half-day) in dollars",defaultValue:null,validate:ce(0,"rate must be a number")}),r.jsx(C,{source:"dailyBillingRate",helperText:"Billing Rate (daily) in dollars",defaultValue:null,validate:ce(0,"rate must be a number")}),r.jsx(P,{source:"speakingAvailability",label:"Availability for Speaking",helperText:"Availability for Speaking (Yes/No for keynote, team-building experience, other)",defaultValue:!1}),r.jsx(C,{source:"speakingBillingRate",helperText:"Speaking Rate per event in dollars",defaultValue:null,validate:ce(0,"rate must be a number")})]}),r.jsxs(W,{label:"Professional Info",children:[r.jsx(X,{fullWidth:!0,source:"sportVenueSports_ids",perPage:250,reference:"sportVenueSports",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Sport Specialty",helperText:"e.g., tennis, golf, padel, fitness training, spa facilities",filterToQuery:e=>({name:[e.charAt(0)]}),optionText:"name",optionValue:"id",createItemLabel:"Create New Sport...",create:r.jsx(M,{resource:"sportVenueSports",newItemLabel:"New Sport"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenues_ids",perPage:1e3,reference:"sportVenues",sort:{field:"operatorName",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Club Associations",filterToQuery:e=>({operatorName:[e.charAt(0)]}),helperText:"Club Associations (primary and secondary clubs)",optionText:"operatorName",optionValue:"id"})}),r.jsx(X,{fullWidth:!0,source:"sportVenueProfessionalLeagues_ids",perPage:250,reference:"sportVenueProfessionalLeagues",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Professional League Associations",helperText:"Professional League Associations (PPA, APP, MLP, CNPL, Other)",filterToQuery:e=>({name:[e.charAt(0)]}),optionText:"name",optionValue:"id",createItemLabel:"Create New league...",create:r.jsx(M,{resource:"sportVenueProfessionalLeagues",newItemLabel:"New league"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenueSponsor_ids",reference:"sportVenueSponsors",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Primary Sponsors",helperText:"Racket, Shoes, Apparel, Eyewear, etc.",filterToQuery:e=>({name:[e.charAt(0)]}),optionText:"name",optionValue:"id",createItemLabel:"Create New Type...",create:r.jsx(M,{resource:"sportVenueSponsors",newItemLabel:"New Sponsor"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenueProfessionalStatures_ids",perPage:250,reference:"sportVenueProfessionalStatures",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Professional League Associations",helperText:"top 10 tour pro, second tier tour pro, first tier instructional pro, second tier instructional pro, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Professional Stature...",create:r.jsx(M,{resource:"sportVenueProfessionalStatures",newItemLabel:"New Professional Stature"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenueProfessionalSpecialties_ids",perPage:250,reference:"sportVenueProfessionalSpecialties",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Professional Speciality",helperText:"Pro Athlete, Instructor, Referee, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Professional Speciality...",create:r.jsx(M,{resource:"sportVenueProfessionalSpecialties",newItemLabel:"New Professional Speciailty"})})}),r.jsx(X,{fullWidth:!0,source:"sportVenueProfessionalCertificates_ids",perPage:250,reference:"sportVenueProfessionalCertificates",sort:{field:"name",order:"ASC"},children:r.jsx(K,{fullWidth:!0,defaultValue:[],label:"Professional Certificates",helperText:"Pro Certificates, etc.",optionText:"name",optionValue:"id",filterToQuery:e=>({name:[e.charAt(0)]}),createItemLabel:"Create New Professional Certificate...",create:r.jsx(M,{resource:"sportVenueProfessionalCertificates",newItemLabel:"New Professional Certificate"})})}),r.jsx(C,{source:"avgDomesticTournaments",defaultValue:0,helperText:"Average Number of Tournaments Played Per Year Domestic"}),r.jsx(C,{source:"avgInternationalTournaments",defaultValue:0,helperText:"Average Number of Tournaments Played Per Year International"}),r.jsx(C,{source:"professionalRankingSingles",defaultValue:null,helperText:"Most Current Professional Ranking - Singles"}),r.jsx(C,{source:"professionalRankingDoubles",defaultValue:null,helperText:"Most Current Professional Ranking - Doubles"}),r.jsx(C,{source:"professionalRankingMixedDoubles",defaultValue:null,helperText:"Most Current Professional Ranking - Mixed Doubles"}),r.jsx(Oe,{source:"Primary Partners (doubles, mixed doubles)",helperText:"Pros must be created separately",defaultValue:[],children:r.jsx(Be,{inline:!0,children:r.jsx(z,{fullWidth:!0,source:"sportVenuePros_id",perPage:250,reference:"sportVenuePros",sort:{field:"lastName",order:"ASC"},children:r.jsx(Z,{fullWidth:!0,label:"Pro",filterToQuery:e=>({lastName:[e.charAt(0)]}),optionText:"lastName",optionValue:"id"})})})})]}),r.jsx(W,{label:"Availability Dates"}),r.jsxs(W,{label:"Contact Information",children:[r.jsx(b,{source:"primaryEmail",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"additionalEmail",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"website",defaultValue:"",fullWidth:!0,helperText:"Include https://"}),r.jsx(b,{source:"primaryPhoneNumber",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"additionalPhoneNumber",defaultValue:"",fullWidth:!0}),r.jsx(ee,{variant:"h6",fontWeight:"fontWeightMedium",children:"Billing Address:"}),r.jsx(b,{source:"billingAddressLine1",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"billingAddressLine2",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"billingCity",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"billingState",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"billingZipCode",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"billingCountry",fullWidth:!0,defaultValue:""})]}),r.jsxs(W,{label:"Agency Information",children:[r.jsx(b,{source:"primaryEmail",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"agencyName",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"agentName",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"agencyPrimaryEmail",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"agencyAdditionalEmail",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"agencyWebsite",defaultValue:"",fullWidth:!0,helperText:"Include https://"}),r.jsx(b,{source:"agencyPrimaryPhoneNumber",defaultValue:"",fullWidth:!0}),r.jsx(b,{source:"agencyAdditionalPhoneNumber",defaultValue:"",fullWidth:!0}),r.jsx(ee,{variant:"h6",fontWeight:"fontWeightMedium",children:"Agency Address:"}),r.jsx(b,{source:"agencyAddressLine1",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"agencyAddressLine2",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"agencyCity",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"agencyState",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"agencyZipCode",fullWidth:!0,defaultValue:""}),r.jsx(b,{source:"agencyCountry",fullWidth:!0,defaultValue:""})]}),r.jsx(W,{label:"Images",children:r.jsx(oa,{source:"pictures",label:"Pictures",accept:"image/*",multiple:!0,defaultValue:[],placeholder:r.jsxs("p",{children:["Click here to browse your computer or ",r.jsx("br",{})," Drop your file here"]}),children:r.jsx(ia,{source:"src",title:"title"})})}),r.jsx(W,{label:"System Data",children:r.jsx(ba,{})})]}),Ul=e=>r.jsxs(la,{title:"Create a Sport Pro",...e,redirect:"show",actions:r.jsx(ma,{dashBoardUrl:"/SuperAdminVenueDashboard"}),children:[r.jsx(Bn,{}),"+"]}),Gl=e=>r.jsx(nt,{title:"Edit Sport Pro",...e,redirect:"show",undoable:!1,actions:r.jsx(xa,{dashBoardUrl:"/SuperAdminVenueDashboard"}),children:r.jsx(Bn,{})});function $l(e){const{item:t}=e;if(!t)return null;let a;return t!=null&&t.pictures&&(t==null?void 0:t.pictures.length)>0&&(a=t.pictures[0].src),r.jsx(Pr,{href:`/SuperAdminVenueDashboard/sportVenuePros/${t.id}/show`,children:r.jsxs(A,{maxW:"sm",borderWidth:"1px",borderRadius:"lg",overflow:"hidden",shadow:"md",rounded:"lg",children:[r.jsx(de,{maxW:"560px",ratio:1,children:r.jsx(ge,{objectFit:"cover",fallbackSrc:"https://via.placeholder.com/150",src:a,alt:t.firstName+" "+t.lastName})}),r.jsxs(A,{p:"6",children:[r.jsxs(A,{display:"flex",alignItems:"baseline",children:[r.jsx(Ca,{borderRadius:"full",px:"2",colorScheme:"teal",children:Math.random()<.5&&"
41NEW"}),r.jsx(A,{color:"gray.500",fontWeight:"semibold",letterSpacing:"wide",fontSize:"xs",textTransform:"uppercase",ml:"2"})]}),r.jsxs(A,{mt:"1",fontWeight:"semibold",as:"h4",lineHeight:"tight",noOfLines:2,children:[t.firstName," ",t.lastName]}),r.jsxs(A,{children:[t.residenceCity," • ",t.residenceState," •",r.jsx(A,{as:"span",color:"gray.600",fontSize:"sm"})]}),r.jsx(A,{display:"flex",mt:"2",alignItems:"center",children:r.jsx(A,{as:"span",ml:"2",color:"gray.600",fontSize:"sm"})})]})]})})}const Ql=e=>{const{enableRecordActions:t}=e;return r.jsxs(_n,{enableRecordActions:t,children:[r.jsxs(Ye,{sortBy:"lastName",label:"Name",children:[r.jsx(F,{source:"firstName"}),r.jsx(F,{source:"lastName"}),r.jsx("br",{}),r.jsx("br",{}),r.jsx(De,{source:"pictures",children:r.jsx(Pn,{render:({data:a})=>{var n,s,o;return r.jsx(A,{boxSize:"sm",children:r.jsx(de,{maxW:"560px",ratio:1,children:r.jsx(ge,{src:(o=(s=(n=a==null?void 0:a.values())==null?void 0:n.next())==null?void 0:s.value)==null?void 0:o.src,alt:"regenr8"})})})}})})]}),r.jsx(F,{source:"residenceCity"}),r.jsx(F,{source:"residenceState"}),r.jsx(U,{source:"sportVenueSports_ids",reference:"sportVenueSports",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(U,{source:"sportVenues_ids",reference:"sportVenues",children:r.jsx(G,{children:r.jsx(N,{source:"operatorName"})})}),r.jsx(U,{source:"sportVenueProfessionalLeagues_ids",reference:"sportVenueProfessionalLeagues",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(I,{source:"active"})]})},ql=()=>{const[e,t]=u.useState("grid");return r.jsx(r.Fragment,{children:r.jsx(ca,{perPage:6,children:r.jsxs(r.Fragment,{children:[r.jsxs(In,{children:[r.jsx(da,{}),r.jsx(Ln,{value:e,onChange:t})]}),r.jsx(ar,{rowsPerPageOptions:[6,10,15,30,60,90,300]}),e==="list"?r.jsx(Ql,{enableRecordActions:!0}):r.jsx(Rn,{CardComponent:$l}),r.jsx(ar,{rowsPerPageOptions:[6,10,15,30,60,90,300]})]})})})},Yl=e=>{var n;const t=fa(e),a=(n=t==null?void 0:t.privateCampWebsite)!=null&&n.startsWith("https://")?t.privateCampWebsite:`https://${t==null?void 0:t.privateCampWebsite}`;return t&&t.privateCampWebsite?r.jsxs(Pr,{href:a,isExternal:!0,color:"teal.500",children:[a," ",r.jsx(wa,{mx:"2px"})]}):null},Zl=e=>{const{record:t}=e;let a;return t!=null&&t.pictures&&(t==null?void 0:t.pictures.length)>0&&(a=t.pictures[0].src),r.jsx(Pe,{maxW:"5xl",py:12,children:r.jsxs(Va,{columns:{base:1,md:2},spacing:10,children:[r.jsxs(je,{spacing:4,children:[r.jsxs(re,{textTransform:"uppercase",color:"blue.400",fontWeight:600,fontSize:"sm",bg:Qr("blue.50","blue.900"),p:2,alignSelf:"flex-start",rounded:"md",children:[t.residenceCity,", ",t.residenceState]}),r.jsxs(ur,{children:[t.firstName," ",t.lastName]}),r.jsx(re,{color:"gray.500",fontSize:"lg"}),r.jsx("div",{dangerouslySetInnerHTML:{__html:t.bio??""}}),r.jsxs(je,{spacing:4,divider:r.jsx(Fn,{borderColor:Qr("gray.100","gray.700")}),children:[r.jsx(Yl,{}),r.jsxs(Ue,{children:[r.jsx(U,{source:"sportVenueSports_ids",reference:"sportVenueSports",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(U,{source:"sportVenues_ids",reference:"sportVenues",children:r.jsx(G,{children:r.jsx(N,{source:"operatorName"})})}),r.jsx(U,{source:"sportVenueProfessionalLeagues_ids",reference:"sportVenueProfessionalLeagues",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(U,{source:"sportVenueProfessionalSpecialties_ids",reference:"sportVenueProfessionalSpecialties",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(U,{source:"sportVenueProfessionalCertificates_ids",reference:"sportVenueProfessionalCertificates",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})}),r.jsx(U,{source:"sportVenueSponsor_ids",reference:"sportVenueSponsors",children:r.jsx(G,{children:r.jsx(N,{source:"name"})})})]})]})]}),r.jsx(nr,{children:r.jsx(ge,{rounded:"md",alt:"feature image",src:a,fallbackSrc:"https://via.placeholder.com/150",objectFit:"cover"})})]})})},Xl=()=>r.jsxs(ya,{actions:r.jsx(Sa,{dashBoardUrl:"/superAdminVenueDashboard"}),children:[r.jsx(Ue,{children:r.jsx(qr,{render:e=>r.jsx(Zl,{record:e})})}),r.jsx(Ue,{children:r.jsx(Pe,{maxW:"container.xl",py:10,children:r.jsxs(Ae,{spacing:8,alignItems:"stretch",children:[r.jsx(qr,{label:"name",render:e=>r.jsx(r.Fragment,{children:r.jsx(On,{picturesArray:(e==null?void 0:e.pictures)??[]})})}),r.jsx(xe,{})]})})})]}),Kl={list:ql,create:Ul,edit:Gl,show:Xl},ne=({target:e})=>r.jsx(ms,{children:r.jsx(Jl,{target:e})}),Jl=({target:e})=>{const{record:t,isLoading:a}=xs();return a||!t?null:r.jsx(J,{mt:2,display:"flex",children:r.jsx(J,{flex:"1",children:r.jsx(vs,{children:r.jsxs(js,{children:[r.jsx(J,{display:"flex",mb:1,children:r.jsx(J,{ml:2,flex:"1",children:r.jsx(ee,{variant:"h5",children:t.name})})}),r.jsx(tr,{}),r.jsx(Ta,{reference:"sportVenues",target:e,sort:{field:"operatorName",order:"ASC"},perPage:6,pagination:r.jsx(ar,{rowsPerPageOptions:[6,10,15,30,60,90,300]}),children:r.jsx(r.Fragment,{children:r.jsx(eu,{})})})]})})})})},eu=()=>{const{data:e,isLoading:t,total:a}=Tr();return t?null:e&&e.length===0?r.jsx(J,{ml:2,flex:"1",children:r.jsx(ee,{variant:"h3",children:"No Venues to show"})}):r.jsxs(r.Fragment,{children:[r.jsx(J,{ml:2,flex:"1",children:r.jsxs(ee,{variant:"h6",children:[a," venues related"]})}),r.jsx(Wn,{enableRecordActions:!1})]})},se=({target:e})=>r.jsx(gs,{sort:{field:"name",order:"ASC"},filters:[r.jsx(b,{label:"name",source:"name",alwaysOn:!0})],actions:r.jsx(Bs,{dashBoardUrl:"/superAdminVenueDashboard/",enableImport:!1,enableExport:!1}),children:r.jsxs(Ee,{rowClick:"show",bulkActionButtons:!1,children:[r.jsx(F,{source:"name"}),r.jsx(Ta,{reference:"sportVenues",target:e,sort:{field:"operatorName",order:"ASC"},label:"Related Venues Count",children:r.jsx(ru,{})}),r.jsx(ua,{})]})}),ru=()=>{const{isLoading:e,total:t}=Tr();return e?null:r.jsx(R,{source:"id",transform:()=>t})},oe=()=>r.jsx(nt,{children:r.jsx(Ds,{children:r.jsx(b,{source:"name"})})});
41function mc(){if(!document)return r.jsx(pa,{});const t=bs(Un,{logging:!1,watch:["posts"],dontwatch:["comments"],persistence:"session",disableMeta:!1,dontAddIdFieldToDoc:!1,softDelete:!1,associateUsersById:!1,metaFieldCasing:"lower",relativeFilePaths:!1,useFileNamesInStorage:!1,lazyLoading:{enabled:!1},firestoreCostsLogger:{enabled:!1}});return r.jsx(r.Fragment,{children:r.jsxs(ys,{title:document.title,basename:"/SuperAdminVenueDashboard",dataProvider:t,authProvider:Ss,disableTelemetry:!0,layout:Al,children:[r.jsx(so,{children:r.jsx(zn,{path:"/",element:r.jsx(Nl,{})})}),r.jsx(Q,{name:"sportVenues",...zl}),r.jsx(Q,{name:"sportVenuePros",...Kl}),r.jsx(Q,{name:"sportVenueTypes",list:r.jsx(se,{target:"sportVenueType_id"}),edit:oe,show:r.jsx(ne,{target:"sportVenueType_id"})}),r.jsx(Q,{name:"sportVenueUseCases",list:r.jsx(se,{target:"sportVenueUseCase_ids"}),edit:oe,show:r.jsx(ne,{target:"sportVenueUseCase_ids"})}),r.jsx(Q,{name:"sportVenueCorporateAppeals",list:r.jsx(se,{target:"sportVenueCorporateAppeal_id"}),edit:oe,show:r.jsx(ne,{target:"sportVenueCorporateAppeal_id"})}),r.jsx(Q,{name:"sportVenueSports",list:r.jsx(se,{target:"sportVenueSports_id"}),edit:oe,show:r.jsx(ne,{target:"capabilities.sportVenueSports_id"})}),r.jsx(Q,{name:"sportVenueContactTypes",list:r.jsx(se,{target:"sportVenueContactType_id"}),edit:oe,show:r.jsx(ne,{target:"sportVenueContactType_id"})}),r.jsx(Q,{name:"sportVenueReservationSystem",list:r.jsx(se,{target:"sportVenueReservationSystem_ids"}),edit:oe,show:r.jsx(ne,{target:"sportVenueReservationSystem_ids"})}),r.jsx(Q,{name:"sportVenueFBService",list:r.jsx(se,{target:"sportVenueFBService_ids"}),edit:oe,show:r.jsx(ne,{target:"sportVenueFBService_ids"})}),r.jsx(Q,{name:"sportVenueFBTypes",list:r.jsx(se,{target:"sportVenueFBType_id"}),edit:oe,show:r.jsx(ne,{target:"sportVenueFBType_id"})}),r.jsx(Q,{name:"sportVenueAmenities",list:r.jsx(se,{target:"sportVenueAmenities_ids"}),edit:oe,show:r.jsx(ne,{target:"sportVenueAmenities_ids"})}),r.jsx(Q,{name:"sportVenueMajorMetros",list:r.jsx(se,{target:"sportVenueMajorMetro_id"}),edit:oe,show:r.jsx(ne,{target:"sportVenueMajorMetro_id"})})]})})}export{mc as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.