@voxket-ai/events-sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,20 @@
1
1
  (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react-dom/client"),require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define==`function`&&define.amd?define([`exports`,`react-dom/client`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.VoxketEventsSdk={},e.ReactDOM,e.React,e.ReactJSXRuntime,e.ReactDOM))})(this,function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e};n=((e,t,n)=>(n=e==null?{}:a(l(e)),d(t||!e||!e.__esModule||!u.call(e,`default`)?o(n,`default`,{value:e,enumerable:!0}):n,e)))(n,1);var f=class{isDebug;constructor(e){this.isDebug=e??(window.location.hostname===`localhost`||window.location.hostname===`127.0.0.1`)}log(e,...t){if(!this.isDebug)return;let n=this.getCallerInfo();console.log(`%c[Widget-Log] ${n}`,`color: #0bd649; font-weight: bold;`,e,...t)}warn(e,...t){if(!this.isDebug)return;let n=this.getCallerInfo();console.warn(`%c[Widget-Warn] ${n}`,`color: #f59e0b; font-weight: bold;`,e,...t)}error(e,...t){if(!this.isDebug)return;let n=this.getCallerInfo();console.error(`%c[Widget-Error] ${n}`,`color: #ff0000; font-weight: bold;`,e,...t)}getCallerInfo(){let e=(Error().stack?.split(`
2
- `)[3]||``).match(/(?:at\s+.*?\s+\()?(?:.*?\/([^/]+?)):(\d+):\d+\)?$/);return e?`[${e[1]}:${e[2]}]`:``}},p=class{baseUrl;slug;logger;timeoutMs;constructor(e,t,n,r=12e4){this.baseUrl=e,this.slug=t,this.logger=n,this.timeoutMs=r}async fetchApi(e,t={}){let n=`${this.baseUrl}${e}`;this.logger.log(`API Call: ${t.method||`GET`} ${n} (timeout: ${this.timeoutMs/1e3}s)`);let r=new AbortController,i=setTimeout(()=>r.abort(),this.timeoutMs);t.signal&&t.signal.addEventListener(`abort`,()=>r.abort());try{let e=await fetch(n,{...t,signal:r.signal,headers:{"Content-Type":`application/json`,...t.headers}});clearTimeout(i);let a=null;try{a=await e.json()}catch{}if(!e.ok){let e=`API Error`;if(a){if(typeof a.message==`string`)e=a.message;else if(typeof a.detail==`string`)e=a.detail;else if(typeof a.error==`string`)e=a.error;else if(typeof a==`object`){let t=Object.values(a)[0];Array.isArray(t)&&typeof t[0]==`string`?e=t[0]:typeof t==`string`&&(e=t)}}throw Error(e)}return a}catch(t){if(clearTimeout(i),t?.name===`AbortError`){let t=Error(`Request timed out after ${this.timeoutMs/1e3} seconds`);throw this.logger.error(`API Request timed out for ${e}`,t),t}throw this.logger.error(`API Request failed for ${e}`,t),t}}async getFormSchema(){return this.fetchApi(`/api/public/events/${this.slug}/form-schema/`)}async submitRegistration(e){return this.fetchApi(`/api/public/events/${this.slug}/register/`,{method:`POST`,body:JSON.stringify(e)})}async trackProgress(e){return this.fetchApi(`/api/public/events/${this.slug}/track/`,{method:`POST`,body:JSON.stringify(e)})}async getDraft(e){return this.fetchApi(`/api/public/events/${this.slug}/track/?xref=${encodeURIComponent(e)}`)}async getDraftByEmail(e){try{return await this.fetchApi(`/api/public/events/${this.slug}/track/?email=${encodeURIComponent(e)}`)}catch(t){try{return await this.fetchApi(`/api/public/events/${this.slug}/track/?xref=${encodeURIComponent(e)}`)}catch{throw t}}}async portalLogin(e){return this.fetchApi(`/api/portal/${this.slug}/login/`,{method:`POST`,body:JSON.stringify(e)})}async portalRequestPasswordReset(e){return this.fetchApi(`/api/portal/${this.slug}/password-reset/`,{method:`POST`,body:JSON.stringify({identifier:e})})}async portalConfirmPasswordReset(e){return this.fetchApi(`/api/portal/${this.slug}/password-reset/`,{method:`POST`,body:JSON.stringify(e)})}async portalGetProfile(e){return this.fetchApi(`/api/portal/${this.slug}/me/`,{method:`GET`,headers:{Authorization:`Bearer ${e}`}})}async uploadFile(e,t){let n=new FormData;n.append(`file`,e);let r=t||null,i={};r&&(i.Authorization=`Bearer ${r}`);let a=r?[`${this.baseUrl}/api/portal/${this.slug}/me/upload/`,`${this.baseUrl}/api/public/events/${this.slug}/upload/`]:[`${this.baseUrl}/api/public/events/${this.slug}/upload/`,`${this.baseUrl}/api/portal/${this.slug}/me/upload/`],o=null;for(let e=0;e<a.length;e++){let t=a[e];this.logger.log(`API Call: POST ${t} (upload)`);let r=new AbortController,s=setTimeout(()=>r.abort(),this.timeoutMs);try{let o=await fetch(t,{method:`POST`,signal:r.signal,headers:i,body:n});clearTimeout(s);let c=null;try{c=await o.json()}catch{}if(o.ok)return c;if((o.status===404||o.status===405)&&e<a.length-1){this.logger.log(`Upload to ${t} returned ${o.status}, trying fallback endpoint...`);continue}let l=c?.message||c?.error||c?.detail||`File upload failed`;throw Error(l)}catch(t){if(clearTimeout(s),o=t,e<a.length-1&&!t?.message?.includes(`timed out`))continue;throw t?.name===`AbortError`?Error(`File upload timed out after ${this.timeoutMs/1e3} seconds`):t}}throw o||Error(`File upload failed`)}async deleteFile(e,t){let n=encodeURIComponent(String(e).trim()),r=t||null,i={};r&&(i.Authorization=`Bearer ${r}`);let a=r?[`/api/portal/${this.slug}/me/upload/${n}/`,`/api/portal/${this.slug}/me/upload/${n}`,`/api/public/events/${this.slug}/upload/${n}/`,`/api/public/events/${this.slug}/upload/${n}`]:[`/api/public/events/${this.slug}/upload/${n}/`,`/api/public/events/${this.slug}/upload/${n}`,`/api/portal/${this.slug}/me/upload/${n}/`,`/api/portal/${this.slug}/me/upload/${n}`],o=null;for(let e=0;e<a.length;e++){let t=a[e];this.logger.log(`API Call: DELETE ${t}`);try{return await this.fetchApi(t,{method:`DELETE`,headers:i})}catch(t){if(o=t,(t?.message?.includes(`404`)||t?.message?.includes(`405`))&&e<a.length-1)continue;throw t}}throw o}async portalUploadFile(e,t){return this.uploadFile(t,e)}async portalDeleteFile(e,t){return this.deleteFile(t,e)}async portalUpdateProfile(e,t){let n=`${this.baseUrl}/api/portal/${this.slug}/me/`;this.logger.log(`API Call: PATCH ${n}`);let r=new AbortController,i=setTimeout(()=>r.abort(),this.timeoutMs);try{let a=await fetch(n,{method:`PATCH`,signal:r.signal,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify(t)});a.status===405&&(a=await fetch(n,{method:`PUT`,signal:r.signal,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify(t)})),clearTimeout(i);let o=null;try{o=await a.json()}catch{}if(!a.ok){let e=o?.message||o?.error||o?.detail||`Failed to update profile`;throw Error(e)}return o}catch(e){throw clearTimeout(i),e?.name===`AbortError`?Error(`Profile update timed out after ${this.timeoutMs/1e3} seconds`):e}}},m=class{prefix;constructor(e){this.prefix=`voxket_${e}_`}generateId(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}getXrefId(){let e=`${this.prefix}xref_id`,t=localStorage.getItem(e);return t||(t=this.generateId(),localStorage.setItem(e,t)),t}updateXrefId(){let e=`${this.prefix}xref_id`,t=this.generateId();return localStorage.setItem(e,t),t}clearXrefId(){let e=`${this.prefix}xref_id`;localStorage.removeItem(e)}setToken(e){localStorage.setItem(`${this.prefix}token`,e)}getToken(){return localStorage.getItem(`${this.prefix}token`)}clearToken(){localStorage.removeItem(`${this.prefix}token`)}},h=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function g(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:h(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var _=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},v=e=>{let t=_(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),b={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function x(e){return e!=null}function S(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??b.width,a=e.size??e.height??b.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?y(...c):y(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??b[`stroke-width`])*Number(e.size??e.width??b.width)/Number(t.size??t.width??b.width):t.strokeWidth??b[`stroke-width`];return[`svg`,{...Object.entries(b).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&x(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&x(t.width)&&{[r(`width`)]:t.width},...`height`in t&&x(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function C(e,t={}){return S(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var w=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},T=(0,n.createContext)({}),E=()=>(0,n.useContext)(T),D=(0,n.forwardRef)(({color:e,size:t,width:r,height:i,strokeWidth:a,absoluteStrokeWidth:o,nonScalingStroke:s,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:b=``}=E()??{},x=!!l||w(f),[S,T,D=[]]=C(d,{color:e??v,width:r??t??m,height:i??t??m,strokeWidth:a??h,absoluteStrokeWidth:o??g,nonScalingStroke:s??_,className:y(b,c),hasA11yProp:x,attributes:f});return(0,n.createElement)(S,{ref:p,...T},[...D.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function O(e,t=[],r=[]){let i=typeof e==`string`?g(e,t,r):e,a=(0,n.forwardRef)(({className:e,...t},r)=>(0,n.createElement)(D,{ref:r,icon:i,className:e,...t}));return i.name&&(a.displayName=v(i.name)),a}var k={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};k.node;var A=O(k),j={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};j.node;var M=O(j),N={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};N.node;var ee=O(N),P={name:`circle-check-big`,size:24,node:[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-circle`]};P.node;var F=O(P),I={name:`credit-card`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}],[`path`,{d:`M6 14h2`,key:`mk7k0u`}]]};I.node;var L=O(I),R={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};R.node;var te=O(R),z={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};z.node;var B=O(z),V={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};V.node;var H=O(V),U={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};U.node;var W=O(U),G={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};G.node;var ne=O(G),K={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};K.node;var re=O(K),q={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};q.node;var ie=O(q),J={name:`minimize-2`,size:24,node:[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]};J.node;var Y=O(J),X={name:`move`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]};X.node;var ae=O(X),Z={name:`package-check`,size:24,node:[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]};Z.node;var oe=O(Z),Q={name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]};Q.node;var se=O(Q),ce={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};ce.node;var le=O(ce),ue={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};ue.node;var de=O(ue),fe={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};fe.node;var pe=O(fe),me=({schema:e,onSubmit:t,onBack:i,theme:a,displayMode:o,isExpanded:s,onToggleExpand:c,onClose:l,onChange:u,initialValues:d,isDark:f=!1,apiClient:p,storage:m,onError:h,onEvent:g})=>{let[_,v]=(0,n.useState)(d||{}),[y,b]=(0,n.useState)(null),[x,S]=(0,n.useState)(null),[C,w]=(0,n.useState)({}),[T,E]=(0,n.useState)({}),[D,O]=(0,n.useState)(null),[k,A]=(0,n.useState)(null),j=a?.primaryColor||`#2563eb`,M=t=>{let n=e?.review_fields;if(!Array.isArray(n)||n.length===0)return!1;let r=t.label?t.label.toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``):``;return n.some(e=>{let i=e?.submission?.reviewer;if(!(i!=null&&i!==``&&(typeof i!=`object`||Object.keys(i).length>0)))return!1;let a=e?.id==null?null:String(e.id),o=e?.field_id==null?null:String(e.field_id),s=String(t.id);return a&&(a===s||a===r)||o&&(o===s||o===r)||n.length===1&&t.type===`file`})};(0,n.useEffect)(()=>{if(d&&Object.keys(d).length>0){v(e=>({...d,...e}));let t={},n={};(e?.fields||[]).forEach(e=>{if(e.type===`file`){let r=d[e.id];r&&(String(r).startsWith(`http://`)||String(r).startsWith(`https://`)?n[e.id]=String(r):t[e.id]=String(r))}}),Object.keys(t).length>0&&w(e=>({...t,...e})),Object.keys(n).length>0&&E(e=>({...n,...e}))}},[d,e]);let N=(e,t)=>{v(n=>{let r={...n,[e]:t};return u?.(r),r})},ee=async(t,n)=>{if(!p)return;let r=(e?.fields||[]).find(e=>e.id===t);if(r&&M(r)){O(`This field is under review and cannot be modified.`),A(t);return}b(t),O(null),A(null);let i=m?.getToken?.()||null,a=C[t];try{let e=await p.uploadFile(n,i),r=e?.data?.asset_id||e?.asset_id,o=e?.data?.serve_url||e?.serve_url;if(!r&&!o)throw Error(`Upload response missing asset_id`);let s=String(r||o),c=String(o||``);if(w(e=>({...e,[t]:s})),c&&E(e=>({...e,[t]:c})),v(e=>{let n={...e,[t]:s};return u?.(n),n}),g?.(`file_uploaded`,{fieldId:t,assetId:s,serveUrl:c}),a&&a!==s)try{await p.deleteFile(a,i),g?.(`file_deleted`,{fieldId:t,assetId:a})}catch(e){console.warn(`Failed to delete previous asset:`,e)}}catch(e){let n=e?.message||`File upload failed. Please try again.`;O(n),A(t),h?.({type:`file_upload_error`,message:n,error:e})}finally{b(null)}},P=async t=>{if(!p)return;let n=(e?.fields||[]).find(e=>e.id===t);if(n&&M(n)){O(`This field is under review and cannot be deleted.`),A(t);return}let r=m?.getToken?.()||null,i=C[t]||_[t];S(t),O(null),A(null);try{i&&(await p.deleteFile(i,r),g?.(`file_deleted`,{fieldId:t,assetId:i})),w(e=>{let n={...e};return delete n[t],n}),E(e=>{let n={...e};return delete n[t],n}),v(e=>{let n={...e,[t]:``};return u?.(n),n})}catch(e){let n=e?.message||`Failed to delete file. Please try again.`;O(n),A(t),h?.({type:`file_delete_error`,message:n,error:e})}finally{S(null)}},F=(e?.fields||[]).filter(e=>e?.is_review!==!0&&e?.is_review!==`true`);return(0,r.jsxs)(`div`,{className:`flex flex-col h-full relative ${f?`bg-black text-white`:`bg-white text-gray-800`}`,children:[(0,r.jsxs)(`div`,{className:`flex justify-between items-center p-4 shadow-sm z-10`,style:{backgroundColor:j,color:`white`},children:[(0,r.jsxs)(`button`,{onClick:i,className:`text-sm opacity-90 hover:opacity-100 transition-opacity font-bold flex items-center gap-1 cursor-pointer`,children:[(0,r.jsx)(`span`,{children:`←`}),` Back`]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:o===`popup`&&(0,r.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,r.jsx)(`button`,{onClick:c,className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,title:s?`Minimize`:`Expand`,children:s?(0,r.jsx)(Y,{size:18}):(0,r.jsx)(ie,{size:18})}),(0,r.jsx)(`button`,{onClick:l,className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(pe,{size:22})})]})})]}),(0,r.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();for(let e of F)if(e.type===`file`&&e.required&&!_[e.id]){O(`Please upload ${e.label||`a file`}`),A(e.id);return}t(_)},className:`p-5 overflow-y-auto flex-1 space-y-5 ${f?`bg-black text-white`:`bg-white`}`,children:[d&&Object.keys(d).length>0&&(0,r.jsxs)(`div`,{className:`text-xs px-3.5 py-2 rounded-lg flex items-center gap-2 border ${f?`bg-emerald-950/60 border-emerald-800/80 text-emerald-300`:`bg-emerald-50 border-emerald-200 text-emerald-800`}`,children:[(0,r.jsx)(`span`,{children:`✨`}),(0,r.jsx)(`span`,{className:`font-medium`,children:`Restored your saved draft progress`})]}),F.map(e=>{let t=M(e);return(0,r.jsxs)(`div`,{className:`flex flex-col ${e.width===`half`?`w-full md:w-1/2 md:inline-block md:pr-3 align-top`:`w-full`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between mb-1.5`,children:[(0,r.jsxs)(`label`,{className:`text-sm font-semibold ${f?`text-zinc-200`:`text-gray-700`}`,children:[e.label,` `,e.required&&(0,r.jsx)(`span`,{style:{color:j},children:`*`})]}),t&&(0,r.jsxs)(`span`,{className:`flex items-center gap-1 text-2xs font-medium px-1.5 py-0.5 rounded ${f?`text-amber-400 bg-amber-950/60 border border-amber-900/50`:`text-amber-700 bg-amber-50 border border-amber-200`}`,children:[(0,r.jsx)(W,{size:10}),` Under Review`]})]}),e.type===`select`?(0,r.jsxs)(`select`,{disabled:t,required:e.required,value:_[e.id]??``,className:`border rounded-md p-2.5 w-full outline-none transition-colors ${t?f?`bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed`:`bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed`:f?`bg-zinc-900 border-zinc-700 text-white`:`bg-white border-gray-300 text-gray-900`}`,style:{"--tw-ring-color":j},onFocus:e=>{t||(e.target.style.borderColor=j)},onBlur:e=>{t||(e.target.style.borderColor=f?`#3f3f46`:`#d1d5db`)},onChange:t=>N(e.id,t.target.value),children:[(0,r.jsx)(`option`,{value:``,className:f?`bg-zinc-900 text-white`:``,children:e.placeholder||`Select...`}),e.options?.map(e=>(0,r.jsx)(`option`,{value:e,className:f?`bg-zinc-900 text-white`:``,children:e},e))]}):e.type===`file`?(0,r.jsxs)(`div`,{className:`flex flex-col space-y-2`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[!t&&(0,r.jsxs)(`label`,{className:`border border-dashed rounded-lg p-2.5 flex items-center justify-center gap-2 cursor-pointer transition-all hover:border-solid ${f?`bg-zinc-900/60 border-zinc-700 hover:border-zinc-500 text-zinc-300`:`bg-gray-50 border-gray-300 hover:border-gray-400 text-gray-700`} ${y===e.id?`opacity-60 pointer-events-none`:``}`,style:{minWidth:`170px`},children:[(0,r.jsx)(`input`,{type:`file`,className:`hidden`,disabled:y===e.id||x===e.id,onChange:t=>{let n=t.target.files?.[0];n&&ee(e.id,n),t.target.value=``}}),(0,r.jsx)(de,{size:14,className:f?`text-zinc-400`:`text-gray-500`}),(0,r.jsx)(`span`,{className:`text-xs font-medium`,children:y===e.id?`Uploading...`:`Choose File to Upload`})]}),(T[e.id]||_[e.id]&&String(_[e.id]).startsWith(`http`))&&(0,r.jsxs)(`button`,{type:`button`,onClick:()=>{let t=T[e.id]||_[e.id];t&&typeof t==`string`&&window.open(t,`_blank`,`noopener,noreferrer`)},style:{backgroundColor:j},className:`text-white text-xs font-semibold px-3 py-2 rounded-lg flex items-center gap-1.5 shadow-sm hover:opacity-90 transition-opacity shrink-0 cursor-pointer`,children:[(0,r.jsx)(B,{size:13}),(0,r.jsx)(`span`,{children:`Open File`}),(0,r.jsx)(te,{size:12})]}),!t&&(C[e.id]||T[e.id]||_[e.id])&&(0,r.jsxs)(`button`,{type:`button`,onClick:()=>P(e.id),disabled:x===e.id||y===e.id,className:`text-red-600 bg-red-50 hover:bg-red-100 dark:bg-red-950/40 dark:text-red-400 text-xs font-semibold px-3 py-2 rounded-lg flex items-center gap-1.5 transition-colors shrink-0 cursor-pointer disabled:opacity-50`,title:`Delete uploaded file`,children:[(0,r.jsx)(le,{size:13}),(0,r.jsx)(`span`,{children:x===e.id?`Deleting...`:`Delete`})]})]}),(T[e.id]||_[e.id]&&String(_[e.id]).startsWith(`http`))&&(0,r.jsxs)(`div`,{className:`text-xs text-emerald-600 dark:text-emerald-400 mt-1 flex items-center gap-1`,children:[(0,r.jsx)(`span`,{children:`✓ File attached:`}),(0,r.jsx)(`span`,{className:`truncate max-w-xs`,children:T[e.id]||_[e.id]})]}),D&&k===e.id&&(0,r.jsx)(`div`,{className:`text-xs text-red-500 mt-1`,children:D})]}):(0,r.jsx)(`input`,{type:e.type===`email`?`email`:`text`,disabled:t,required:e.required,value:_[e.id]??``,placeholder:e.placeholder,className:`border rounded-md p-2.5 w-full outline-none transition-colors ${t?f?`bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed`:`bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed`:f?`bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`,onFocus:e=>{t||(e.target.style.borderColor=j)},onBlur:e=>{t||(e.target.style.borderColor=f?`#3f3f46`:`#d1d5db`)},onChange:t=>N(e.id,t.target.value)})]},e.id)}),(0,r.jsx)(`div`,{className:`pt-6 pb-2`,children:(0,r.jsx)(`button`,{type:`submit`,style:{backgroundColor:j},className:`w-full text-white font-bold py-3.5 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer`,children:`Complete Registration`})})]})]})};function $(e,t){if(!e)return``;if(/^field_\d+/i.test(e)&&t&&typeof t==`string`){let e=t.trim().toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``);if(e)return e}return e}var he=({apiClient:e,storage:t,logger:i,primaryColor:a,isDark:o=!1,onEvent:s,onError:c})=>{let[l,u]=(0,n.useState)(`login`),[d,f]=(0,n.useState)(!1),[p,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(null),[_,v]=(0,n.useState)(null),[y,b]=(0,n.useState)(null),[x,S]=(0,n.useState)(``),[C,w]=(0,n.useState)(``),[T,E]=(0,n.useState)(``),[D,O]=(0,n.useState)(``),[k,j]=(0,n.useState)(``),[N,P]=(0,n.useState)(``),[I,R]=(0,n.useState)(``),[z,V]=(0,n.useState)(!1),[U,G]=(0,n.useState)(null),[K,q]=(0,n.useState)({}),[ie,J]=(0,n.useState)([]),[Y,X]=(0,n.useState)({}),[ae,Z]=(0,n.useState)(null),[Q,ce]=(0,n.useState)(null),[ue,fe]=(0,n.useState)(null),[pe,me]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=t.getToken();e&&he(e)},[]);let he=async n=>{f(!0),v(null);try{let r=await e.portalGetProfile(n),a=r?.data||r||{};G(a);let o=a.registration||{},c=o.custom_data||{},l=o.email||a.email||``,d=null;if(l)try{let t=await e.getDraftByEmail(l);d=t?.data||t,i.log(`Portal resume draft data loaded by email:`,d)}catch(e){i.log(`No draft found for email in portal`,e)}else{let n=t.getXrefId();if(n)try{let t=await e.getDraft(n);d=t?.data||t}catch{}}let f=d?.custom_data||{};o.name?E(o.name):d?.name?E(d.name):a.name&&E(a.name);let p=0,m={},h=(a.editable_fields||[]).filter(e=>e?.is_review!==!0&&e?.is_review!==`true`),g={};o.asset_id&&(g.asset_id=String(o.asset_id)),o.photo_id&&(g.photo_id=String(o.photo_id)),c.asset_id&&(g.asset_id=String(c.asset_id)),c.photo_id&&(g.photo_id=String(c.photo_id)),a.asset_id&&(g.asset_id=String(a.asset_id)),h.forEach(e=>{if(e.type===`file`){let t=o[`${e.id}_asset_id`]||c[`${e.id}_asset_id`]||o.asset_id||c.asset_id||a.asset_id;t&&(g[e.id]=String(t))}}),X(e=>({...g,...e}));let _=o.asset_id||o.photo_id||c.asset_id||c.photo_id||a.asset_id;_&&Z(String(_)),h.length>0?h.forEach(e=>{let t=$(e.id,e.label),n=``;if(o[t]!==void 0&&o[t]!==null&&o[t]!==``?n=o[t]:o[e.id]!==void 0&&o[e.id]!==null&&o[e.id]!==``?n=o[e.id]:c[t]!==void 0&&c[t]!==null&&c[t]!==``?n=c[t]:c[e.id]!==void 0&&c[e.id]!==null&&c[e.id]!==``&&(n=c[e.id]),d){let r=d[t]??d[e.id]??f[t]??f[e.id]??(e.id===`salutation`?d.salutation||d.title:void 0)??(e.id===`name`?d.name||d.fullName||d.full_name:void 0)??(e.id===`email`?d.email:void 0)??(e.id===`phone`?d.phone||d.mobile||d.phoneNumber:void 0);r!=null&&r!==``&&(n=r,p++)}m[e.id]=n}):Object.entries(a).forEach(([e,t])=>{e.toLowerCase()!==`token`&&(m[e]=t)}),q(m),p>0&&me(!0);let v=(a.addons?.items||[]).filter(e=>e.purchased).map(e=>e.name);d?.selected_items&&Array.isArray(d.selected_items)&&d.selected_items.forEach(e=>{let t=typeof e==`string`?e:e?.name;t&&!v.includes(t)&&v.push(t)}),J(v),u(`profile`),s?.(`attendee_profile_loaded`,{profile:a,draft:d})}catch(e){i.error(`Failed to load profile`,e),t.clearToken(),u(`login`)}finally{f(!1)}},ge=async n=>{if(n.preventDefault(),!x.trim()||!C){v(`Please enter both your identifier and password.`);return}f(!0),v(null),b(null);try{let n=await e.portalLogin({identifier:x.trim(),password:C}),r=n?.data?.token||n?.token;if(!r)throw Error(n?.message||`No authentication token received.`);(n?.data?.name||n?.name)&&E(n.data?.name||n.name),t.setToken(r),s?.(`attendee_logged_in`,{identifier:x,response:n}),await he(r)}catch(e){i.error(`Login failed`,e);let t=e.message||`Login failed. Please check your credentials.`;v(t),c?.({type:`login_error`,message:t,error:e})}finally{f(!1)}},_e=async t=>{t.preventDefault();let n=(D||x).trim();if(!n){v(`Please enter your registration number or email to receive a code.`);return}V(!0),v(null),b(null);try{await e.portalRequestPasswordReset(n),b(`A verification code has been sent to your registered email.`),s?.(`password_reset_code_requested`,{identifier:n}),u(`reset`)}catch(e){i.error(`Failed to send reset code`,e);let t=e.message||`Failed to send code. Please verify your identifier.`;v(t),c?.({type:`portal_error`,message:t,error:e})}finally{V(!1)}},ve=async n=>{n.preventDefault();let r=(D||x).trim();if(!r){v(`Please enter your registration number or email.`);return}if(!k.trim()){v(`Please enter the verification code sent to your email.`);return}if(!N){v(`Please enter a new password.`);return}if(N!==I){v(`New password and confirm password do not match.`);return}f(!0),v(null),b(null);try{let n=await e.portalConfirmPasswordReset({identifier:r,code:k.trim(),new_password:N}),i=n?.data?.token||n?.token;(n?.data?.name||n?.name)&&E(n.data?.name||n.name),s?.(`password_reset_success`,{identifier:r,response:n}),i?(t.setToken(i),j(``),P(``),R(``),await he(i)):(S(r),w(``),j(``),P(``),R(``),u(`login`),b(`Password updated successfully! Please login with your new password.`))}catch(e){i.error(`Password reset failed`,e);let t=e.message||`Failed to update password. Please check the code.`;v(t),c?.({type:`portal_error`,message:t,error:e})}finally{f(!1)}},ye=()=>{t.clearToken(),G(null),q({}),J([]),X({}),Z(null),fe(null),E(``),w(``),u(`login`),b(`Logged out successfully.`),s?.(`attendee_logged_out`,{})},be=e=>{let t=U?.review_fields;if(!Array.isArray(t)||t.length===0)return!1;let n=$(e.id,e.label);return t.some(r=>{let i=r?.submission?.reviewer;if(!(i!=null&&i!==``&&(typeof i!=`object`||Object.keys(i).length>0)))return!1;let a=r?.id==null?null:String(r.id),o=r?.field_id==null?null:String(r.field_id),s=r?.field==null?null:String(r.field),c=r?.name==null?null:String(r.name),l=r?.key==null?null:String(r.key),u=r?.submission?.field_id==null?null:String(r.submission.field_id),d=r?.submission?.field==null?null:String(r.submission.field),f=String(e.id),p=e.label?String(e.label).toLowerCase().trim():``,m=r?.label?String(r.label).toLowerCase().trim():``;return!!(a&&(a===f||a===n)||o&&(o===f||o===n)||s&&(s===f||s===n)||c&&(c===f||c===n)||l&&(l===f||l===n)||u&&(u===f||u===n)||d&&(d===f||d===n)||p&&m&&p===m||t.length===1&&e.type===`file`)})},xe=async(n,r)=>{let a=t.getToken();if(!a){v(`Session expired. Please log in again.`);return}let o=(U?.editable_fields||[]).find(e=>e.id===n);if(o&&be(o)){v(`This field is under review and cannot be modified.`);return}g(n),v(null),b(null);let l=Y[n]||ae;try{let t=await e.portalUploadFile(a,r),o=t?.data?.serve_url||t?.serve_url,c=t?.data?.asset_id||t?.asset_id;if(!o)throw Error(`No file URL returned from upload.`);if(q(e=>({...e,[n]:o})),c&&(X(e=>({...e,[n]:String(c)})),Z(String(c))),l&&String(l)!==String(c))try{i.log(`Deleting previous asset: ${l}`),await e.portalDeleteFile(a,l),i.log(`Previous asset ${l} deleted successfully.`),s?.(`portal_file_deleted`,{assetId:l,fieldId:n})}catch(e){i.warn(`Could not delete previous asset ${l}:`,e)}b(`File "${r.name}" uploaded successfully!`),s?.(`portal_file_uploaded`,{fieldId:n,serveUrl:o,assetId:c})}catch(e){i.error(`File upload failed`,e);let t=e.message||`File upload failed. Please try again.`;v(t),c?.({type:`file_upload_error`,message:t,error:e})}finally{g(null)}},Se=async n=>{let r=t.getToken();if(!r){v(`Session expired. Please log in again.`);return}let a=(U?.editable_fields||[]).find(e=>e.id===n);if(a&&be(a)){v(`This field is under review and cannot be deleted.`);return}let o=Y[n]||ae;ce(n),v(null),b(null);try{o&&(i.log(`Deleting asset ${o} for field ${n}...`),await e.portalDeleteFile(r,o),i.log(`Asset ${o} deleted successfully.`),s?.(`portal_file_deleted`,{assetId:o,fieldId:n})),q(e=>({...e,[n]:``})),X(e=>{let t={...e};return delete t[n],t}),ae===o&&Z(null),b(`File removed successfully.`)}catch(e){i.error(`Failed to delete file`,e);let t=e.message||`Failed to delete file. Please try again.`;v(t),c?.({type:`file_delete_error`,message:t,error:e})}finally{ce(null)}},Ce=(e,t)=>{t||J(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},we=async n=>{n.preventDefault();let r=t.getToken();if(!r){v(`Session expired. Please log in again.`);return}m(!0),v(null),b(null);try{let t=(U?.editable_fields||[]).filter(e=>e?.is_review!==!0&&e?.is_review!==`true`),n={...U?.registration?.custom_data||{}},i={};t.forEach(e=>{let t=K[e.id];if(e.type===`file`){let n=Y[e.id]||ae;n&&(t=n)}let r=$(e.id,e.label);e.builtin?(i[r]=t,r!==e.id&&(i[e.id]=t)):(n[r]=t,i[r]=t,r!==e.id&&(n[e.id]=t,i[e.id]=t))}),i.custom_data=n,i.addons=ie;let a=ae||Object.values(Y)[0];a&&(i.asset_id=a,i.photo_id=a);let o=await e.portalUpdateProfile(r,i);s?.(`attendee_profile_updated`,{payload:i,response:o});let c=o?.data?.addon_checkout?.payment_url||o?.addon_checkout?.payment_url||o?.data?.payment_url||o?.payment_url;if(c&&typeof c==`string`&&c.trim()!==``){fe(c),b(`Add-ons updated! Opening payment page in a new tab...`),s?.(`addon_payment_opened`,{payment_url:c}),window.open(c,`_blank`,`noopener,noreferrer`),await he(r);return}b(`Profile updated successfully!`),await he(r)}catch(e){i.error(`Failed to update profile`,e);let t=e.message||`Failed to update profile. Please try again.`;v(t),c?.({type:`profile_update_error`,message:t,error:e})}finally{m(!1)}};if(l===`profile`){let e=U?.registration||{},t=(U?.editable_fields||[]).filter(e=>e?.is_review!==!0&&e?.is_review!==`true`),n=U?.locked_fields||[],i=U?.payment||{},s=U?.addons?.items||[];return(0,r.jsxs)(`div`,{className:`flex flex-col h-full overflow-hidden ${o?`bg-black text-white`:`bg-gray-50 text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`p-4 border-b flex justify-between items-center shadow-xs shrink-0 ${o?`bg-black border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`font-bold text-base ${o?`text-white`:`text-gray-900`}`,children:T||`Attendee Profile`}),(0,r.jsx)(`p`,{className:`text-xs ${o?`text-zinc-400`:`text-gray-500`}`,children:e.registration_number?`Reg #: ${e.registration_number}`:`Attendee Portal`})]}),(0,r.jsxs)(`button`,{onClick:ye,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold rounded-md transition-colors cursor-pointer ${o?`text-red-400 bg-red-950/50 hover:bg-red-900/50 border border-red-900/50`:`text-red-600 bg-red-50 hover:bg-red-100`}`,title:`Logout`,children:[(0,r.jsx)(ne,{size:14}),(0,r.jsx)(`span`,{children:`Logout`})]})]}),(0,r.jsxs)(`div`,{className:`flex-1 overflow-y-auto p-4 space-y-4`,children:[ue&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-center justify-between text-xs shadow-2xs ${o?`bg-blue-950/50 border-blue-800 text-blue-300`:`bg-blue-50 border-blue-200 text-blue-800`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsx)(L,{size:16,className:`shrink-0 text-blue-400`}),(0,r.jsx)(`span`,{children:`Payment page opened in a new tab. If not opened, click:`})]}),(0,r.jsxs)(`a`,{href:ue,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1 font-bold underline text-blue-400 hover:text-blue-300 shrink-0 ml-2`,children:[(0,r.jsx)(`span`,{children:`Complete Payment`}),(0,r.jsx)(te,{size:12})]})]}),_&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs shadow-2xs ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50 border-red-200 text-red-700`}`,children:[(0,r.jsx)(ee,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:_})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs shadow-2xs ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50 border-green-200 text-green-700`}`,children:[(0,r.jsx)(F,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),(0,r.jsxs)(`div`,{className:`p-4 rounded-xl border shadow-xs space-y-3 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,r.jsx)(`span`,{className:`text-xs font-bold uppercase tracking-wider ${o?`text-zinc-400`:`text-gray-400`}`,children:`Registration Details`}),e.status&&(0,r.jsx)(`span`,{className:`px-2.5 py-0.5 rounded-full text-xs font-semibold capitalize ${o?`bg-emerald-950/80 text-emerald-300 border border-emerald-800/80`:`bg-green-100 text-green-800`}`,children:e.status})]}),(0,r.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 text-xs`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`span`,{className:`${o?`text-zinc-400`:`text-gray-500`} block`,children:`Registration No:`}),(0,r.jsx)(`span`,{className:`font-bold font-mono ${o?`text-white`:`text-gray-900`}`,children:e.registration_number||`N/A`})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`span`,{className:`${o?`text-zinc-400`:`text-gray-500`} block`,children:`Ticket Type:`}),(0,r.jsx)(`span`,{className:`font-bold ${o?`text-white`:`text-gray-900`}`,children:e.registration_type||`N/A`})]})]}),i&&i.state&&(0,r.jsxs)(`div`,{className:`pt-2 border-t flex items-center justify-between text-xs ${o?`border-zinc-800 text-zinc-300`:`border-gray-100 text-gray-700`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,r.jsx)(se,{size:14,className:o?`text-zinc-400`:`text-gray-400`}),(0,r.jsxs)(`span`,{children:[`Payment: `,(0,r.jsx)(`strong`,{className:`capitalize`,children:i.state}),` (`,i.currency,` `,i.amount,`)`]})]}),i.receipt_url&&(0,r.jsxs)(`a`,{href:i.receipt_url,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1 font-semibold hover:underline`,style:{color:a},children:[(0,r.jsx)(`span`,{children:`Receipt`}),(0,r.jsx)(te,{size:12})]})]})]}),(0,r.jsxs)(`form`,{onSubmit:we,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{className:`p-4 rounded-xl border shadow-xs space-y-4 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,r.jsx)(`h4`,{className:`text-xs font-bold uppercase tracking-wider ${o?`text-zinc-400`:`text-gray-400`}`,children:`Attendee Information`}),pe&&(0,r.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-2xs font-semibold px-2 py-0.5 rounded-full border ${o?`bg-blue-950/60 text-blue-300 border-blue-800/80`:`bg-blue-50 text-blue-700 border-blue-200`}`,children:[(0,r.jsx)(M,{size:11}),` Initial draft choices restored`]})]}),t.length===0?(0,r.jsx)(`div`,{className:`text-center py-6 text-xs ${o?`text-zinc-500`:`text-gray-400`}`,children:`No editable fields configured.`}):(0,r.jsx)(`div`,{className:`flex flex-wrap -mx-1.5`,children:t.map(e=>{let t=be(e),i=n.includes(e.id)||n.includes($(e.id,e.label))||t,s=e.width===`half`,c=K[e.id]??``;return(0,r.jsxs)(`div`,{className:`px-1.5 mb-3.5 ${s?`w-full md:w-1/2`:`w-full`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,r.jsxs)(`label`,{className:`block text-xs font-semibold ${o?`text-zinc-200`:`text-gray-700`}`,children:[e.label,` `,e.required&&(0,r.jsx)(`span`,{className:`text-red-500`,children:`*`})]}),t?(0,r.jsxs)(`span`,{className:`flex items-center gap-1 text-2xs font-medium px-1.5 py-0.5 rounded ${o?`text-amber-400 bg-amber-950/60 border border-amber-900/50`:`text-amber-700 bg-amber-50 border border-amber-200`}`,children:[(0,r.jsx)(W,{size:10}),` Under Review`]}):i?(0,r.jsxs)(`span`,{className:`flex items-center gap-1 text-2xs font-medium px-1.5 py-0.5 rounded ${o?`text-zinc-400 bg-zinc-800`:`text-gray-400 bg-gray-100`}`,children:[(0,r.jsx)(W,{size:10}),` Locked`]}):null]}),e.type===`select`?(0,r.jsxs)(`select`,{disabled:i,value:c,onChange:t=>q({...K,[e.id]:t.target.value}),className:`w-full px-3 py-2 text-xs border rounded-lg focus:outline-none transition-all ${i?o?`bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed`:`bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed`:o?`bg-zinc-950 text-white border-zinc-700`:`bg-white text-gray-900 border-gray-300`}`,onFocus:e=>{i||(e.currentTarget.style.borderColor=a)},onBlur:e=>{i||(e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`)},children:[(0,r.jsxs)(`option`,{value:``,className:o?`bg-zinc-900 text-white`:``,children:[`Select `,e.label,`...`]}),(e.options||[]).map(e=>(0,r.jsx)(`option`,{value:e,className:o?`bg-zinc-900 text-white`:``,children:e},e))]}):e.type===`file`?(0,r.jsxs)(`div`,{className:`space-y-2`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[!i&&(0,r.jsxs)(`label`,{className:`flex-1 cursor-pointer`,children:[(0,r.jsx)(`input`,{type:`file`,className:`sr-only`,disabled:h===e.id,onChange:t=>{let n=t.target.files?.[0];n&&xe(e.id,n)}}),(0,r.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-2 px-3 border border-dashed rounded-lg text-xs font-medium transition-colors ${o?`border-zinc-700 hover:border-zinc-500 text-zinc-300 bg-zinc-950 hover:bg-zinc-800`:`border-gray-300 hover:border-gray-400 text-gray-700 bg-gray-50 hover:bg-gray-100`}`,children:[(0,r.jsx)(de,{size:14,className:o?`text-zinc-400`:`text-gray-500`}),(0,r.jsx)(`span`,{children:h===e.id?`Uploading...`:`Choose File to Upload`})]})]}),c&&typeof c==`string`&&c.trim()!==``&&(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5 shrink-0`,children:[(0,r.jsxs)(`a`,{href:c,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1.5 py-2 px-3 rounded-lg text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0`,style:{backgroundColor:a},title:`Open file in new tab`,children:[(0,r.jsx)(B,{size:14}),(0,r.jsx)(`span`,{children:`Open File`}),(0,r.jsx)(te,{size:12})]}),!i&&(0,r.jsxs)(`button`,{type:`button`,disabled:Q===e.id||h===e.id,onClick:()=>Se(e.id),className:`flex items-center gap-1 py-2 px-2.5 rounded-lg text-xs font-semibold border transition-colors cursor-pointer ${o?`border-red-900/60 bg-red-950/40 text-red-400 hover:bg-red-900/50`:`border-red-200 bg-red-50 text-red-600 hover:bg-red-100`}`,title:`Delete uploaded file`,children:[(0,r.jsx)(le,{size:13}),(0,r.jsx)(`span`,{children:Q===e.id?`Deleting...`:`Delete`})]})]})]}),c&&(0,r.jsxs)(`div`,{className:`text-2xs truncate flex items-center gap-1 ${o?`text-zinc-400`:`text-gray-500`}`,children:[(0,r.jsx)(M,{size:12,className:`text-green-500 shrink-0`}),(0,r.jsxs)(`span`,{className:`truncate`,children:[`File attached: `,c]})]})]}):(0,r.jsx)(`input`,{type:e.type===`phone`?`tel`:e.type===`email`?`email`:`text`,disabled:i,value:c,placeholder:e.placeholder||`Enter ${e.label.toLowerCase()}`,onChange:t=>q({...K,[e.id]:t.target.value}),className:`w-full px-3 py-2 text-xs border rounded-lg focus:outline-none transition-all ${i?o?`bg-zinc-800 text-zinc-500 border-zinc-700 cursor-not-allowed`:`bg-gray-100 text-gray-500 border-gray-200 cursor-not-allowed`:o?`bg-zinc-950 text-white placeholder-zinc-500 border-zinc-700`:`bg-white text-gray-900 border-gray-300`}`,onFocus:e=>{i||(e.currentTarget.style.borderColor=a)},onBlur:e=>{i||(e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`)}})]},e.id)})})]}),s.length>0&&(0,r.jsxs)(`div`,{className:`p-4 rounded-xl border shadow-xs space-y-3 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,r.jsx)(`h4`,{className:`text-xs font-bold uppercase tracking-wider ${o?`text-zinc-400`:`text-gray-400`}`,children:`Available Add-ons`}),(0,r.jsx)(`span`,{className:`text-2xs ${o?`text-zinc-400`:`text-gray-500`}`,children:`Select items to add`})]}),(0,r.jsx)(`div`,{className:`space-y-2`,children:s.map(e=>{let t=!!e.purchased,n=ie.includes(e.name);return(0,r.jsxs)(`div`,{onClick:()=>Ce(e.name,t),className:`p-3 rounded-lg border text-xs flex items-center justify-between transition-all ${t?o?`bg-zinc-950/60 border-zinc-800 opacity-70 cursor-default`:`bg-gray-50 border-gray-200 opacity-90 cursor-default`:n?o?`border-blue-500 bg-blue-950/40 cursor-pointer shadow-xs`:`border-blue-500 bg-blue-50/40 cursor-pointer shadow-xs`:o?`border-zinc-800 bg-zinc-950 hover:border-zinc-700 cursor-pointer`:`border-gray-200 bg-white hover:border-gray-300 cursor-pointer`}`,style:{borderColor:n&&!t?a:void 0,backgroundColor:n&&!t?o?`color-mix(in srgb, ${a} 20%, #09090b)`:`color-mix(in srgb, ${a} 6%, white)`:void 0},children:[(0,r.jsxs)(`div`,{className:`flex items-start gap-2.5 flex-1 pr-3`,children:[(0,r.jsx)(`input`,{type:`checkbox`,checked:n,disabled:t,onChange:()=>Ce(e.name,t),className:`mt-0.5 rounded text-blue-600 focus:ring-0 cursor-pointer`}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`div`,{className:`font-semibold leading-snug ${o?`text-white`:`text-gray-900`}`,children:e.name}),(0,r.jsxs)(`div`,{className:`font-bold text-xs mt-1`,style:{color:a},children:[e.currency,` `,Number(e.price).toLocaleString()]})]})]}),t?(0,r.jsxs)(`span`,{className:`px-2 py-0.5 rounded text-2xs font-semibold flex items-center gap-1 shrink-0 ${o?`bg-emerald-950/80 text-emerald-300 border border-emerald-800/80`:`bg-green-100 text-green-800`}`,children:[(0,r.jsx)(M,{size:12}),` Purchased`]}):(0,r.jsx)(`span`,{className:`text-2xs font-semibold px-2 py-0.5 rounded transition-colors shrink-0 ${n?`bg-blue-600 text-white`:o?`bg-zinc-800 text-zinc-300`:`bg-gray-100 text-gray-600`}`,style:{backgroundColor:n?a:void 0},children:n?`Selected`:`Select`})]},e.name)})})]}),(0,r.jsx)(`div`,{className:`pt-2`,children:(0,r.jsx)(`button`,{type:`submit`,disabled:p||h!==null,style:{backgroundColor:a},className:`w-full py-3 px-4 text-white text-sm font-bold rounded-lg hover:opacity-90 transition-opacity shadow-sm flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50`,children:p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-4 w-4 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Saving Profile...`})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(oe,{size:16}),(0,r.jsx)(`span`,{children:`Save & Update Profile`})]})})})]})]})]})}return l===`request_code`?(0,r.jsx)(`div`,{className:`flex flex-col h-full overflow-y-auto ${o?`bg-black text-white`:`bg-gray-50 text-gray-900`}`,children:(0,r.jsxs)(`div`,{className:`p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center`,children:[(0,r.jsxs)(`div`,{className:`flex justify-between items-center mb-4`,children:[(0,r.jsxs)(`button`,{onClick:()=>{u(`login`),v(null),b(null)},className:`flex items-center gap-1.5 text-xs font-semibold transition-colors cursor-pointer ${o?`text-zinc-400 hover:text-white`:`text-gray-500 hover:text-gray-900`}`,children:[(0,r.jsx)(A,{size:14}),(0,r.jsx)(`span`,{children:`Back to Login`})]}),(0,r.jsx)(`button`,{onClick:()=>{u(`reset`),v(null),b(null)},className:`text-xs font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Generate Password →`})]}),(0,r.jsxs)(`div`,{className:`p-6 rounded-xl border shadow-sm space-y-4 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`text-lg font-bold ${o?`text-white`:`text-gray-900`}`,children:`Get Verification Code`}),(0,r.jsx)(`p`,{className:`text-xs mt-1 ${o?`text-zinc-400`:`text-gray-500`}`,children:`Enter your registered email or registration number to receive a verification code.`})]}),_&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50 border-red-200 text-red-700`}`,children:[(0,r.jsx)(ee,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:_})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50 border-green-200 text-green-700`}`,children:[(0,r.jsx)(F,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),(0,r.jsxs)(`form`,{onSubmit:_e,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1 ${o?`text-zinc-200`:`text-gray-700`}`,children:`Registration Number or Email`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(re,{size:16})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:D||x,onChange:e=>{O(e.target.value),S(e.target.value)},placeholder:`e.g. attendee@example.com or REG12345`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsx)(`button`,{type:`submit`,disabled:z,style:{backgroundColor:a},className:`w-full py-2.5 px-4 text-white text-sm font-bold rounded-lg hover:opacity-90 transition-opacity shadow-sm flex items-center justify-center cursor-pointer disabled:opacity-50 mt-2`,children:z?(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-4 w-4 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Sending Code...`})]}):`Send Verification Code`}),(0,r.jsx)(`div`,{className:`text-center pt-2 border-t border-gray-100 dark:border-zinc-800`,children:(0,r.jsx)(`button`,{type:`button`,onClick:()=>{u(`reset`),v(null),b(null)},className:`text-xs font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Already have a code? Click here to generate password`})})]})]})]})}):l===`reset`?(0,r.jsx)(`div`,{className:`flex flex-col h-full overflow-y-auto ${o?`bg-black text-white`:`bg-gray-50 text-gray-900`}`,children:(0,r.jsxs)(`div`,{className:`p-5 flex-1 max-w-md mx-auto w-full`,children:[(0,r.jsxs)(`button`,{onClick:()=>{u(`login`),v(null),b(null)},className:`flex items-center gap-1.5 text-xs font-semibold mb-4 transition-colors cursor-pointer ${o?`text-zinc-400 hover:text-white`:`text-gray-500 hover:text-gray-900`}`,children:[(0,r.jsx)(A,{size:14}),(0,r.jsx)(`span`,{children:`Back to Login`})]}),(0,r.jsxs)(`div`,{className:`p-6 rounded-xl border shadow-sm space-y-4 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`text-lg font-bold ${o?`text-white`:`text-gray-900`}`,children:`Generate / Reset Password`}),(0,r.jsx)(`p`,{className:`text-xs mt-1 ${o?`text-zinc-400`:`text-gray-500`}`,children:`You will get a verification code on your registered email.`})]}),_&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50 border-red-200 text-red-700`}`,children:[(0,r.jsx)(ee,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:_})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50 border-green-200 text-green-700`}`,children:[(0,r.jsx)(F,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),(0,r.jsxs)(`form`,{onSubmit:ve,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1 ${o?`text-zinc-200`:`text-gray-700`}`,children:`Registration Number or Email`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(re,{size:16})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:D||x,onChange:e=>{O(e.target.value),S(e.target.value)},placeholder:`e.g. attendee@example.com or REG12345`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsxs)(`div`,{className:`flex justify-between items-center mb-1`,children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold ${o?`text-zinc-200`:`text-gray-700`}`,children:`Verification Code`}),(0,r.jsx)(`button`,{type:`button`,onClick:()=>{O(D||x),u(`request_code`),v(null),b(null)},className:`text-xs font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Get code on email`})]}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(H,{size:16})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:k,onChange:e=>j(e.target.value),placeholder:`Enter code from email`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1 ${o?`text-zinc-200`:`text-gray-700`}`,children:`New Password`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(W,{size:16})}),(0,r.jsx)(`input`,{type:`password`,required:!0,value:N,onChange:e=>P(e.target.value),placeholder:`Enter new password`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1 ${o?`text-zinc-200`:`text-gray-700`}`,children:`Confirm Password`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(W,{size:16})}),(0,r.jsx)(`input`,{type:`password`,required:!0,value:I,onChange:e=>R(e.target.value),placeholder:`Re-enter new password`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsx)(`button`,{type:`submit`,disabled:d,style:{backgroundColor:a},className:`w-full py-2.5 px-4 text-white text-sm font-bold rounded-lg hover:opacity-90 transition-opacity shadow-sm flex items-center justify-center cursor-pointer disabled:opacity-50 mt-2`,children:d?`Updating Password...`:`Set New Password`})]})]})]})}):(0,r.jsx)(`div`,{className:`flex flex-col h-full overflow-y-auto ${o?`bg-black text-white`:`bg-gray-50 text-gray-900`}`,children:(0,r.jsx)(`div`,{className:`p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center`,children:(0,r.jsxs)(`div`,{className:`p-6 rounded-xl border shadow-sm space-y-4 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`text-lg font-bold ${o?`text-white`:`text-gray-900`}`,children:`Attendee Login`}),(0,r.jsx)(`p`,{className:`text-xs mt-1 ${o?`text-zinc-400`:`text-gray-500`}`,children:`Sign in with your email or registration number`})]}),_&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50 border-red-200 text-red-700`}`,children:[(0,r.jsx)(ee,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:_})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-lg flex items-start gap-2 text-xs ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50 border-green-200 text-green-700`}`,children:[(0,r.jsx)(F,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),(0,r.jsxs)(`form`,{onSubmit:ge,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1 ${o?`text-zinc-200`:`text-gray-700`}`,children:`Email or Registration Number`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(re,{size:16})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:x,onChange:e=>S(e.target.value),placeholder:`Enter email or registration number`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1 ${o?`text-zinc-200`:`text-gray-700`}`,children:`Password`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none ${o?`text-zinc-500`:`text-gray-400`}`,children:(0,r.jsx)(W,{size:16})}),(0,r.jsx)(`input`,{type:`password`,required:!0,value:C,onChange:e=>w(e.target.value),placeholder:`Enter password`,className:`w-full pl-9 pr-3 py-2 text-sm border rounded-lg focus:outline-none focus:ring-2 ${o?`bg-zinc-950 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-gray-300 text-gray-900`}`})]})]}),(0,r.jsxs)(`div`,{className:`flex justify-between items-center text-xs`,children:[(0,r.jsx)(`button`,{type:`button`,onClick:()=>{O(x),u(`request_code`),v(null),b(null)},className:`font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Get Code`}),(0,r.jsx)(`button`,{type:`button`,onClick:()=>{O(x),u(`reset`),v(null),b(null)},className:`font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Click to generate password`})]}),(0,r.jsx)(`button`,{type:`submit`,disabled:d,style:{backgroundColor:a},className:`w-full py-2.5 px-4 text-white text-sm font-bold rounded-lg hover:opacity-90 transition-opacity shadow-sm flex items-center justify-center cursor-pointer disabled:opacity-50`,children:d?(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-4 w-4 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Logging in...`})]}):`Login`})]})]})})})};function ge(e){if(!e)return`bottom-right`;switch(e){case`bottom-left`:case`left-bottom`:return`bottom-left`;case`top-right`:case`right-top`:return`top-right`;case`top-left`:case`left-top`:return`top-left`;default:return`bottom-right`}}var _e=e=>{switch(e){case`bottom-left`:return{bottom:`20px`,left:`20px`,top:`auto`,right:`auto`};case`top-right`:return{top:`20px`,right:`20px`,bottom:`auto`,left:`auto`};case`top-left`:return{top:`20px`,left:`20px`,bottom:`auto`,right:`auto`};default:return{bottom:`20px`,right:`20px`,top:`auto`,left:`auto`}}},ve=e=>{switch(e){case`bottom-left`:return`bottom-5 left-5`;case`top-right`:return`top-5 right-5`;case`top-left`:return`top-5 left-5`;default:return`bottom-5 right-5`}},ye=({config:e})=>{let[t,i]=(0,n.useState)(`registration`),[a,o]=(0,n.useState)(e.displayMode!==`popup`),[s,c]=(0,n.useState)(!1),[l,u]=(0,n.useState)([]),[d,h]=(0,n.useState)(`FOGSI YUVA 2026`),[g,_]=(0,n.useState)(null),[v,y]=(0,n.useState)(!0),[b,x]=(0,n.useState)(!1),[S,C]=(0,n.useState)(null),[w,T]=(0,n.useState)(null),[E,D]=(0,n.useState)(()=>ge(e.position)),[O,k]=(0,n.useState)(null),[A,j]=(0,n.useState)(null),[M,N]=(0,n.useState)(!1),[ee,P]=(0,n.useState)(!1),F=(0,n.useRef)(null),I=(0,n.useRef)(null),L=(0,n.useRef)(!1);(0,n.useEffect)(()=>{e.position&&D(ge(e.position))},[e.position]);let R=e.themeMode===`dark`||e.theme?.mode===`dark`,z=e.theme?.primaryColor||`#2563eb`,B=(0,n.useMemo)(()=>new f(e.debug),[e.debug]),V=(0,n.useMemo)(()=>new p(e.baseUrl,e.eventSlug,B,e.timeoutMs??12e4),[e.baseUrl,e.eventSlug,B,e.timeoutMs]),H=(0,n.useMemo)(()=>new m(e.eventSlug),[e.eventSlug]),U=(0,n.useRef)(e.displayMode),W=(0,n.useRef)(null),[G,ne]=(0,n.useState)(null);(0,n.useEffect)(()=>{H.getXrefId()},[H]),(0,n.useEffect)(()=>{if(!a)return;let t=H.getXrefId();t&&V.getDraft(t).then(t=>{let n=t?.data||t;n&&n.registration_type&&(ne(n),e.onEvent?.(`draft_loaded`,n))}).catch(e=>{B.log(`No draft found for this session`,e)})},[a,V,H,B]);let K=(0,n.useMemo)(()=>{if(!G||!g||String(G.registration_type)!==String(g.id))return{};let e={...G.custom_data||{}};if(G.salutation&&(e.salutation=G.salutation,e.title=G.salutation),G.name){e.name=G.name,e.full_name=G.name,e.fullName=G.name;let t=G.name.trim().split(/\s+/);t.length>0&&!e.first_name&&(e.first_name=t[0]),t.length>1&&!e.last_name&&(e.last_name=t.slice(1).join(` `))}return G.email&&(e.email=G.email),G.phone&&(e.phone=G.phone,e.mobile=G.phone,e.phoneNumber=G.phone),(g?.form_schema?.fields||[]).forEach(t=>{let n=$(t.id,t.label);e[t.id]===void 0&&e[n]!==void 0&&(e[t.id]=e[n])}),e},[G,g]);(0,n.useEffect)(()=>()=>{W.current&&clearTimeout(W.current)},[]);let re=(0,n.useCallback)(t=>{W.current&&clearTimeout(W.current),W.current=setTimeout(async()=>{if(!Object.values(t).some(e=>e!==``&&e!=null))return;let n=new Set([`salutation`,`title`,`name`,`fullName`,`full_name`,`firstName`,`lastName`,`email`,`phone`,`mobile`,`phoneNumber`,`selected_items`,`custom_data`]),r=g?.form_schema?.fields||[],i=new Map;r.forEach(e=>i.set(e.id,e));let a={...t.custom_data||{}};for(let[e,r]of Object.entries(t))if(!n.has(e)){let t=$(e,i.get(e)?.label);a[t]=r,t!==e&&(a[e]=r)}let o={xref_id:H.getXrefId(),salutation:t.salutation||t.title||``,name:t.name||t.fullName||t.full_name||[t.firstName,t.lastName].filter(Boolean).join(` `)||``,email:t.email||``,phone:t.phone||t.mobile||t.phoneNumber||``,registration_type:g?.id,custom_data:a,selected_items:t.selected_items||[]};try{await V.trackProgress(o),e.onEvent?.(`draft_saved`,o)}catch(e){B.error(`Failed to save draft progress`,e)}},600)},[H,V,g,e,B]);(0,n.useEffect)(()=>{U.current!==e.displayMode&&(U.current=e.displayMode,o(e.displayMode!==`popup`),c(!1))},[e.displayMode]),(0,n.useEffect)(()=>{V.getFormSchema().then(t=>{u(t?.data?.types||[]),(t?.data?.event_name||t?.data?.title||t?.data?.name)&&h(t.data.event_name||t.data.title||t.data.name),e.onEvent?.(`form_loaded`,t.data)}).catch(t=>{B.error(`Failed to load schema`,t);let n={type:`schema_load`,message:t?.message||`Failed to load event schema`,error:t};e.onEvent?.(`error`,n),e.onError?.(n)}).finally(()=>y(!1))},[V]);let q=async t=>{W.current&&clearTimeout(W.current),y(!0),C(null);let n=H.getXrefId(),r=new Set([`salutation`,`title`,`name`,`fullName`,`full_name`,`firstName`,`lastName`,`email`,`phone`,`mobile`,`phoneNumber`,`registration_type`,`selected_items`,`custom_data`,`xref_id`]),i=g?.form_schema?.fields||[],a=new Map;i.forEach(e=>a.set(e.id,e));let o={...t.custom_data||{}};for(let[e,n]of Object.entries(t))if(!r.has(e)){let t=$(e,a.get(e)?.label);o[t]=n,t!==e&&(o[e]=n)}let s={xref_id:n,salutation:t.salutation||t.title||``,name:t.name||t.fullName||t.full_name||[t.firstName,t.lastName].filter(Boolean).join(` `)||``,email:t.email||``,phone:t.phone||t.mobile||t.phoneNumber||``,registration_type:g.id,custom_data:o,selected_items:t.selected_items||[]};try{let t=await V.submitRegistration(s);H.updateXrefId(),ne(null);let n=t?.data?.payment_url||t?.payment_url||null;T(n),n&&typeof n==`string`&&n.trim()!==``&&window.open(n,`_blank`,`noopener,noreferrer`),x(!0);let r={registrationType:g.id,payload:s,response:t,paymentUrl:n};e.onEvent?.(`submitted`,r),e.onRegister?.(r),e.onRegistered?.(r)}catch(t){B.error(`Submission failed`,t);let n=t?.message||`Registration failed. Please check your information and try again.`,r={type:`submit_error`,message:n,error:t};e.onEvent?.(`error`,r),e.onError?.(r),C(n)}finally{y(!1)}},J=()=>{x(!1),C(null),T(null),_(null),ne(null)},X=(0,n.useCallback)(e=>{if(e.stopPropagation(),e.button!==0||!F.current)return;let t=F.current.getBoundingClientRect();I.current={startX:e.clientX,startY:e.clientY,rect:t,corner:E},L.current=!1,N(!0)},[E]);if((0,n.useEffect)(()=>{if(!M)return;let t=e=>{if(!I.current)return;let t=e.clientX-I.current.startX,n=e.clientY-I.current.startY;L.current||Math.hypot(t,n)>5&&(L.current=!0),L.current&&k({x:t,y:n})},n=t=>{if(!I.current){N(!1),k(null),L.current=!1;return}let{rect:n,startX:r,startY:i}=I.current,a=t.clientX-r,o=t.clientY-i,s=L.current;if(I.current=null,N(!1),setTimeout(()=>{L.current=!1},100),!s){k(null);return}let c=n.left+a,l=n.top+o,u=c+n.width/2,d=l+n.height/2,f=typeof window<`u`?window.innerWidth:1024,p=typeof window<`u`?window.innerHeight:768,m=u>=f/2,h=d>=p/2,g=h?m?`bottom-right`:`bottom-left`:m?`top-right`:`top-left`,_=m?f-n.width-20:20,v=h?p-n.height-20:20,y=c-_,b=l-v;j({transform:`translate3d(${y}px, ${b}px, 0)`,transition:`none`}),k(null),D(g),e.onEvent?.(`position_changed`,{position:g}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{j({transform:`translate3d(0, 0, 0)`,transition:`transform 0.35s cubic-bezier(0.16, 1, 0.3, 1)`}),setTimeout(()=>{j(null)},360)})})};return window.addEventListener(`pointermove`,t),window.addEventListener(`pointerup`,n),window.addEventListener(`pointercancel`,n),()=>{window.removeEventListener(`pointermove`,t),window.removeEventListener(`pointerup`,n),window.removeEventListener(`pointercancel`,n)}},[M,e]),!a&&e.displayMode===`popup`){let e={..._e(E),...O?{transform:`translate3d(${O.x}px, ${O.y}px, 0) scale(1.05)`,transition:`none`,userSelect:`none`}:A?{transform:A.transform,transition:A.transition}:{transition:`all 0.3s cubic-bezier(0.16, 1, 0.3, 1)`}},t=ee||M;return(0,r.jsxs)(`div`,{ref:F,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),className:`fixed ${ve(E)} z-50 select-none group`,style:e,children:[(0,r.jsx)(`div`,{onPointerDown:X,className:`absolute -top-1.5 -left-1.5 w-7 h-7 rounded-full bg-slate-900 text-white shadow-lg border-2 border-white flex items-center justify-center cursor-grab active:cursor-grabbing hover:bg-black hover:scale-110 active:scale-95 transition-all duration-200 z-10 touch-none ${t?`opacity-100 scale-100 pointer-events-auto`:`opacity-0 scale-75 pointer-events-none group-hover:opacity-100 group-hover:scale-100 group-hover:pointer-events-auto`}`,title:`Hold and drag to change position`,children:(0,r.jsx)(ae,{size:13,className:`pointer-events-none text-white`})}),(0,r.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),!M&&o(!0)},className:`w-16 h-16 rounded-full text-white shadow-xl flex items-center justify-center cursor-pointer hover:scale-105 active:scale-95 transition-transform`,style:{backgroundColor:z},title:`Click to open registration`,children:(0,r.jsx)(`span`,{className:`font-bold text-sm tracking-wide pointer-events-none`,children:`Join`})})]})}let Z=e.displayMode===`fullscreen`||e.displayMode===`popup`&&s,oe=`${R?`bg-black text-white border-zinc-800`:`bg-white text-gray-900 border-gray-200`} overflow-hidden flex flex-col shadow-2xl border transition-all duration-300 ease-in-out `,Q={fontFamily:e.theme?.fontFamily||`sans-serif`};return Z?(oe+=`fixed inset-0 z-[9999] rounded-none `,Q.width=`100vw`,Q.height=`100vh`):e.displayMode===`popup`?(oe+=`fixed ${ve(E)} z-50 rounded-xl `,Q.width=e.width||`400px`,Q.height=e.height||`700px`,Q.maxHeight=`90vh`,Q.maxWidth=`calc(100vw - 32px)`,Object.assign(Q,_e(E))):(oe+=`rounded-xl relative `,Q.width=`100%`,Q.height=`100%`),(0,r.jsx)(`div`,{className:oe,style:Q,children:v?(0,r.jsxs)(`div`,{className:`flex h-full items-center justify-center font-medium`,style:{color:z},children:[(0,r.jsxs)(`svg`,{className:`animate-spin -ml-1 mr-3 h-8 w-8`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),`Processing...`]}):b?w?(0,r.jsxs)(`div`,{className:`flex flex-col h-full relative overflow-y-auto ${R?`bg-black text-white`:`bg-white text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`p-4 shadow-sm flex justify-between items-center z-10`,style:{backgroundColor:z,color:`white`},children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h2`,{className:`text-xl font-bold`,children:`Complete Payment`}),(0,r.jsx)(`p`,{className:`text-xs opacity-90 mt-0.5`,children:`Registration Submitted`})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:e.displayMode===`popup`&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`button`,{onClick:()=>c(!s),title:s?`Minimize`:`Expand`,className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:s?(0,r.jsx)(Y,{size:18}):(0,r.jsx)(ie,{size:18})}),(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(pe,{size:24})})]})})]}),(0,r.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center p-6 text-center`,children:[(0,r.jsx)(`div`,{className:`w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md`,style:{backgroundColor:`color-mix(in srgb, ${z} 12%, transparent)`,color:z},children:`💳`}),(0,r.jsx)(`h3`,{className:`text-2xl font-bold mb-2 ${R?`text-white`:`text-gray-900`}`,children:`Done Your Payment First`}),(0,r.jsx)(`p`,{className:`text-sm mb-6 max-w-xs leading-relaxed ${R?`text-zinc-300`:`text-gray-600`}`,children:`Please complete your payment in the new tab to confirm your booking and finalize your registration.`}),(0,r.jsxs)(`div`,{className:`w-full max-w-xs space-y-3`,children:[(0,r.jsxs)(`a`,{href:w,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full`,style:{backgroundColor:z},children:[(0,r.jsx)(`span`,{children:`Open Payment Page`}),(0,r.jsx)(te,{size:16})]}),(0,r.jsx)(`button`,{onClick:J,className:`w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${R?`text-zinc-400 hover:text-white`:`text-gray-500 hover:text-gray-900`}`,children:`Register Another Person`})]})]})]}):(0,r.jsxs)(`div`,{className:`flex flex-col h-full items-center justify-center p-8 text-center relative ${R?`bg-black text-white`:`bg-white text-gray-900`}`,children:[e.displayMode===`popup`&&(0,r.jsx)(`div`,{className:`absolute top-4 right-4 flex items-center gap-2`,children:(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`cursor-pointer ${R?`text-zinc-400 hover:text-white`:`text-gray-400 hover:text-gray-900`}`,children:(0,r.jsx)(pe,{size:24})})}),(0,r.jsx)(`div`,{className:`w-20 h-20 rounded-full flex items-center justify-center mb-6 text-4xl shadow-md`,style:{backgroundColor:z,color:`white`},children:`✓`}),(0,r.jsx)(`h2`,{className:`text-3xl font-bold mb-3 ${R?`text-white`:`text-gray-900`}`,children:`Thank You!`}),(0,r.jsx)(`p`,{className:`mb-8 ${R?`text-zinc-300`:`text-gray-600`}`,children:`Your registration has been successfully received.`}),(0,r.jsx)(`button`,{onClick:J,style:{backgroundColor:z},className:`text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer`,children:`Register Another Person`})]}):S?(0,r.jsxs)(`div`,{className:`flex flex-col h-full relative overflow-y-auto ${R?`bg-black text-white`:`bg-white text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`p-4 shadow-sm flex justify-between items-center z-10 bg-red-600 text-white`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h2`,{className:`text-xl font-bold`,children:`Registration Failed`}),(0,r.jsx)(`p`,{className:`text-xs opacity-90 mt-0.5`,children:`Please try again`})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:e.displayMode===`popup`&&(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(pe,{size:24})})})]}),(0,r.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center p-6 text-center`,children:[(0,r.jsx)(`div`,{className:`w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${R?`bg-red-950/60 text-red-400 border-red-900`:`bg-red-50 text-red-600 border-red-200`}`,children:`✕`}),(0,r.jsx)(`h3`,{className:`text-2xl font-bold mb-2 ${R?`text-white`:`text-gray-900`}`,children:`Submission Error`}),(0,r.jsx)(`p`,{className:`text-sm mb-6 max-w-xs leading-relaxed ${R?`text-zinc-300`:`text-gray-600`}`,children:S}),(0,r.jsxs)(`div`,{className:`w-full max-w-xs space-y-3`,children:[(0,r.jsx)(`button`,{onClick:()=>C(null),style:{backgroundColor:z},className:`flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full cursor-pointer`,children:(0,r.jsx)(`span`,{children:`Try Again`})}),(0,r.jsx)(`button`,{onClick:()=>{C(null),_(null)},className:`w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${R?`text-zinc-400 hover:text-white`:`text-gray-500 hover:text-gray-900`}`,children:`Choose Another Ticket`})]})]})]}):g?(0,r.jsx)(me,{schema:g.form_schema,theme:e.theme,displayMode:e.displayMode,isExpanded:s,onToggleExpand:()=>c(!s),onClose:()=>o(!1),onSubmit:q,onChange:re,initialValues:K,isDark:R,apiClient:V,storage:H,onError:e.onError,onEvent:e.onEvent,onBack:()=>{W.current&&clearTimeout(W.current),_(null)}}):(0,r.jsxs)(`div`,{className:`flex flex-col h-full overflow-hidden ${R?`bg-black text-white`:`bg-gray-50 text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`p-4 shadow-sm flex justify-between items-center z-10 shrink-0`,style:{backgroundColor:z,color:`white`},children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h2`,{className:`text-xl font-bold`,children:t===`registration`?`Select Ticket`:`Attendee Portal`}),(0,r.jsx)(`p`,{className:`text-xs opacity-90 mt-0.5`,children:t===`registration`?d:`Registration & Profile Management`})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:e.displayMode===`popup`&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`button`,{onClick:()=>c(!s),title:s?`Minimize`:`Expand`,className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:s?(0,r.jsx)(Y,{size:18}):(0,r.jsx)(ie,{size:18})}),(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(pe,{size:22})})]})})]}),(0,r.jsxs)(`div`,{className:`flex border-b shrink-0 shadow-2xs ${R?`border-zinc-800 bg-black`:`border-gray-200 bg-white`}`,children:[(0,r.jsxs)(`button`,{type:`button`,onClick:()=>i(`registration`),className:`flex-1 py-3 text-sm font-semibold text-center transition-all cursor-pointer relative`,style:{color:t===`registration`?z:R?`#a1a1aa`:`#6b7280`},children:[`Registration`,t===`registration`&&(0,r.jsx)(`span`,{className:`absolute bottom-0 left-0 right-0 h-0.5`,style:{backgroundColor:z}})]}),(0,r.jsxs)(`button`,{type:`button`,onClick:()=>i(`attendee`),className:`flex-1 py-3 text-sm font-semibold text-center transition-all cursor-pointer relative`,style:{color:t===`attendee`?z:R?`#a1a1aa`:`#6b7280`},children:[`Attendee Login`,t===`attendee`&&(0,r.jsx)(`span`,{className:`absolute bottom-0 left-0 right-0 h-0.5`,style:{backgroundColor:z}})]})]}),t===`registration`?(0,r.jsx)(`div`,{className:`p-5 space-y-4 overflow-y-auto flex-1 ${R?`bg-black`:`bg-gray-50`}`,children:l.length===0?(0,r.jsx)(`div`,{className:`text-center py-10 text-sm ${R?`text-zinc-500`:`text-gray-400`}`,children:`No tickets currently available.`}):l.map(e=>(0,r.jsxs)(`div`,{onClick:()=>_(e),className:`p-5 border-2 rounded-xl cursor-pointer transition-all shadow-sm hover:shadow-md ${R?`bg-zinc-900`:`bg-white`}`,style:{borderColor:R?`#27272a`:`#e5e7eb`},onMouseEnter:e=>e.currentTarget.style.borderColor=z,onMouseLeave:e=>e.currentTarget.style.borderColor=R?`#27272a`:`#e5e7eb`,children:[(0,r.jsx)(`div`,{className:`font-bold text-lg ${R?`text-white`:`text-gray-900`}`,children:e.type}),(0,r.jsxs)(`div`,{className:`font-semibold mt-1`,style:{color:z},children:[e.currency,` `,Number(e.price)>0?Number(e.price).toLocaleString():`Free`]})]},e.id))}):(0,r.jsx)(`div`,{className:`flex-1 overflow-hidden flex flex-col`,children:(0,r.jsx)(he,{apiClient:V,storage:H,logger:B,primaryColor:z,isDark:R,onEvent:e.onEvent,onError:e.onError})})]})})},be=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-950:oklch(28.2% .091 267.935);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.right-0{right:0}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.left-0{left:0}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-5{left:calc(var(--spacing) * 5)}.z-10{z-index:10}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1\\.5{margin-inline:calc(var(--spacing) * -1.5)}.mx-1{margin-inline:var(--spacing)}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[650px\\]{height:650px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-full{width:100%}.max-w-6xl{max-width:var(--container-6xl)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-900\\/50{border-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.border-amber-900\\/50{border-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-800{border-color:var(--color-blue-800)}.border-blue-800\\/80{border-color:#193cb8cc}@supports (color:color-mix(in lab, red, red)){.border-blue-800\\/80{border-color:color-mix(in oklab, var(--color-blue-800) 80%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-800\\/80{border-color:#005f46cc}@supports (color:color-mix(in lab, red, red)){.border-emerald-800\\/80{border-color:color-mix(in oklab, var(--color-emerald-800) 80%, transparent)}}.border-emerald-900{border-color:var(--color-emerald-900)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-900{border-color:var(--color-gray-900)}.border-green-200{border-color:var(--color-green-200)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-600{border-color:var(--color-purple-600)}.border-red-200{border-color:var(--color-red-200)}.border-red-900{border-color:var(--color-red-900)}.border-red-900\\/50{border-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/50{border-color:color-mix(in oklab, var(--color-red-900) 50%, transparent)}}.border-red-900\\/60{border-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/60{border-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.border-slate-200{border-color:var(--color-slate-200)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-950\\/60{background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.bg-amber-950\\/60{background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/40{background-color:#eff6ff66}@supports (color:color-mix(in lab, red, red)){.bg-blue-50\\/40{background-color:color-mix(in oklab, var(--color-blue-50) 40%, transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-950\\/40{background-color:#16245666}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/40{background-color:color-mix(in oklab, var(--color-blue-950) 40%, transparent)}}.bg-blue-950\\/50{background-color:#16245680}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/50{background-color:color-mix(in oklab, var(--color-blue-950) 50%, transparent)}}.bg-blue-950\\/60{background-color:#16245699}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/60{background-color:color-mix(in oklab, var(--color-blue-950) 60%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-950\\/60{background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/60{background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.bg-emerald-950\\/80{background-color:#002c22cc}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/80{background-color:color-mix(in oklab, var(--color-emerald-950) 80%, transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.bg-red-950\\/50{background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/50{background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.bg-red-950\\/60{background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/60{background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\\/60{background-color:#18181b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/60{background-color:color-mix(in oklab, var(--color-zinc-900) 60%, transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-zinc-950\\/60{background-color:#09090b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/60{background-color:color-mix(in oklab, var(--color-zinc-950) 60%, transparent)}}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-12{padding:calc(var(--spacing) * 12)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\\.5{padding-block:calc(var(--spacing) * 3.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-amber-400{color:var(--color-amber-400)}.text-amber-700{color:var(--color-amber-700)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-800{color:var(--color-emerald-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-white{color:var(--color-white)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.placeholder-zinc-500::placeholder{color:var(--color-zinc-500)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.contrast-200{--tw-contrast:contrast(200%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-solid:hover{--tw-border-style:solid;border-style:solid}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:border-zinc-500:hover{border-color:var(--color-zinc-500)}.hover\\:border-zinc-700:hover{border-color:var(--color-zinc-700)}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-900\\/50:hover{background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/50:hover{background-color:color-mix(in oklab, var(--color-red-900) 50%, transparent)}}.hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\\:text-blue-300:hover{color:var(--color-blue-300)}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:opacity-50:disabled{opacity:.5}@media (width>=48rem){.md\\:inline-block{display:inline-block}.md\\:w-1\\/2{width:50%}.md\\:pr-3{padding-right:calc(var(--spacing) * 3)}}@media (width>=64rem){.lg\\:w-1\\/3{width:33.3333%}.lg\\:w-2\\/3{width:66.6667%}.lg\\:flex-row{flex-direction:row}}@media (prefers-color-scheme:dark){.dark\\:border-zinc-800{border-color:var(--color-zinc-800)}.dark\\:bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\\:text-emerald-400{color:var(--color-emerald-400)}.dark\\:text-red-400{color:var(--color-red-400)}}}:host{all:initial;font-family:inherit}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}`,xe=({children:e,useShadow:t=!0})=>{let a=(0,n.useRef)(null),[o,s]=(0,n.useState)(null);return(0,n.useLayoutEffect)(()=>{if(typeof document>`u`||!a.current||!t)return;let e=a.current.shadowRoot,n=null;if(e)n=e.querySelector(`.voxket-widget-root`);else{a.current.setAttribute(`data-voxket-shadow-host`,``),a.current.style.cssText=`width: 100%; height: 100%; display: block; position: relative;`,e=a.current.attachShadow({mode:`open`});let t=document.createElement(`style`);t.innerText=`:host, *, *::before, *::after, ::backdrop {
2
+ `)[3]||``).match(/(?:at\s+.*?\s+\()?(?:.*?\/([^/]+?)):(\d+):\d+\)?$/);return e?`[${e[1]}:${e[2]}]`:``}},p=class{baseUrl;slug;logger;timeoutMs;constructor(e,t,n,r=12e4){this.baseUrl=e,this.slug=t,this.logger=n,this.timeoutMs=r}async fetchApi(e,t={}){let n=`${this.baseUrl}${e}`;this.logger.log(`API Call: ${t.method||`GET`} ${n} (timeout: ${this.timeoutMs/1e3}s)`);let r=new AbortController,i=setTimeout(()=>r.abort(),this.timeoutMs);t.signal&&t.signal.addEventListener(`abort`,()=>r.abort());try{let e=await fetch(n,{...t,signal:r.signal,headers:{"Content-Type":`application/json`,...t.headers}});clearTimeout(i);let a=null;try{a=await e.json()}catch{}if(!e.ok){let e=`API Error`;if(a){if(typeof a.message==`string`)e=a.message;else if(typeof a.detail==`string`)e=a.detail;else if(typeof a.error==`string`)e=a.error;else if(typeof a==`object`){let t=Object.values(a)[0];Array.isArray(t)&&typeof t[0]==`string`?e=t[0]:typeof t==`string`&&(e=t)}}throw Error(e)}return a}catch(t){if(clearTimeout(i),t?.name===`AbortError`){let t=Error(`Request timed out after ${this.timeoutMs/1e3} seconds`);throw this.logger.error(`API Request timed out for ${e}`,t),t}throw this.logger.error(`API Request failed for ${e}`,t),t}}async getFormSchema(){return this.fetchApi(`/api/public/events/${this.slug}/form-schema/`)}async submitRegistration(e){return this.fetchApi(`/api/public/events/${this.slug}/register/`,{method:`POST`,body:JSON.stringify(e)})}async trackProgress(e){return this.fetchApi(`/api/public/events/${this.slug}/track/`,{method:`POST`,body:JSON.stringify(e)})}async getDraft(e){return this.fetchApi(`/api/public/events/${this.slug}/track/?xref=${encodeURIComponent(e)}`)}async getDraftByEmail(e){try{return await this.fetchApi(`/api/public/events/${this.slug}/track/?email=${encodeURIComponent(e)}`)}catch(t){try{return await this.fetchApi(`/api/public/events/${this.slug}/track/?xref=${encodeURIComponent(e)}`)}catch{throw t}}}async portalLogin(e){return this.fetchApi(`/api/portal/${this.slug}/login/`,{method:`POST`,body:JSON.stringify(e)})}async portalRequestPasswordReset(e){return this.fetchApi(`/api/portal/${this.slug}/password-reset/`,{method:`POST`,body:JSON.stringify({identifier:e})})}async portalConfirmPasswordReset(e){return this.fetchApi(`/api/portal/${this.slug}/password-reset/`,{method:`POST`,body:JSON.stringify(e)})}async portalGetProfile(e){return this.fetchApi(`/api/portal/${this.slug}/me/`,{method:`GET`,headers:{Authorization:`Bearer ${e}`}})}async uploadFile(e,t){let n=new FormData;n.append(`file`,e);let r=t||null,i={};r&&(i.Authorization=`Bearer ${r}`);let a=r?[`${this.baseUrl}/api/portal/${this.slug}/me/upload/`,`${this.baseUrl}/api/public/events/${this.slug}/upload/`]:[`${this.baseUrl}/api/public/events/${this.slug}/upload/`,`${this.baseUrl}/api/portal/${this.slug}/me/upload/`],o=null;for(let e=0;e<a.length;e++){let t=a[e];this.logger.log(`API Call: POST ${t} (upload)`);let r=new AbortController,s=setTimeout(()=>r.abort(),this.timeoutMs);try{let o=await fetch(t,{method:`POST`,signal:r.signal,headers:i,body:n});clearTimeout(s);let c=null;try{c=await o.json()}catch{}if(o.ok)return c;if((o.status===404||o.status===405)&&e<a.length-1){this.logger.log(`Upload to ${t} returned ${o.status}, trying fallback endpoint...`);continue}let l=c?.message||c?.error||c?.detail||`File upload failed`;throw Error(l)}catch(t){if(clearTimeout(s),o=t,e<a.length-1&&!t?.message?.includes(`timed out`))continue;throw t?.name===`AbortError`?Error(`File upload timed out after ${this.timeoutMs/1e3} seconds`):t}}throw o||Error(`File upload failed`)}async deleteFile(e,t){let n=encodeURIComponent(String(e).trim()),r=t||null,i={};r&&(i.Authorization=`Bearer ${r}`);let a=r?[`/api/portal/${this.slug}/me/upload/${n}/`,`/api/portal/${this.slug}/me/upload/${n}`,`/api/public/events/${this.slug}/upload/${n}/`,`/api/public/events/${this.slug}/upload/${n}`]:[`/api/public/events/${this.slug}/upload/${n}/`,`/api/public/events/${this.slug}/upload/${n}`,`/api/portal/${this.slug}/me/upload/${n}/`,`/api/portal/${this.slug}/me/upload/${n}`],o=null;for(let e=0;e<a.length;e++){let t=a[e];this.logger.log(`API Call: DELETE ${t}`);try{return await this.fetchApi(t,{method:`DELETE`,headers:i})}catch(t){if(o=t,(t?.message?.includes(`404`)||t?.message?.includes(`405`))&&e<a.length-1)continue;throw t}}throw o}async portalUploadFile(e,t){return this.uploadFile(t,e)}async portalDeleteFile(e,t){return this.deleteFile(t,e)}async portalSubmitReviewSubmission(e,t,n,r){return this.submitReviewSubmission({token:e,fieldLabel:t,file:n,text:r})}async submitReviewSubmission({fieldLabel:e,file:t,text:n,token:r,email:i}){let a=new FormData;a.append(`field_label`,e),t&&a.append(`file`,t),n!=null&&n.trim()!==``&&a.append(`text`,n.trim());let o={};if(r)o.Authorization=`Bearer ${r}`;else if(i)a.append(`email`,i.trim());else throw Error(`An email or login token is required to submit this field.`);let s=[`${this.baseUrl}/api/portal/${this.slug}/me/submissions/`,`${this.baseUrl}/api/portal/${this.slug}/me/submissions`],c=null;for(let e=0;e<s.length;e++){let t=s[e];this.logger.log(`API Call: POST ${t} (submit file/text)`);let n=new AbortController,r=setTimeout(()=>n.abort(),this.timeoutMs);try{let i=await fetch(t,{method:`POST`,signal:n.signal,headers:o,body:a});clearTimeout(r);let c=null;try{c=await i.json()}catch{}if(i.ok)return c;if((i.status===404||i.status===405)&&e<s.length-1)continue;let l=c?.message||c?.error||c?.detail||`Submission upload failed`;throw Error(l)}catch(t){if(clearTimeout(r),c=t,e<s.length-1&&!t?.message?.includes(`timed out`))continue;throw t?.name===`AbortError`?Error(`Submission timed out after ${this.timeoutMs/1e3} seconds`):t}}throw c||Error(`Submission upload failed`)}async portalUpdateProfile(e,t){let n=`${this.baseUrl}/api/portal/${this.slug}/me/`;this.logger.log(`API Call: PATCH ${n}`);let r=new AbortController,i=setTimeout(()=>r.abort(),this.timeoutMs);try{let a=await fetch(n,{method:`PATCH`,signal:r.signal,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify(t)});a.status===405&&(a=await fetch(n,{method:`PUT`,signal:r.signal,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify(t)})),clearTimeout(i);let o=null;try{o=await a.json()}catch{}if(!a.ok){let e=o?.message||o?.error||o?.detail||`Failed to update profile`;throw Error(e)}return o}catch(e){throw clearTimeout(i),e?.name===`AbortError`?Error(`Profile update timed out after ${this.timeoutMs/1e3} seconds`):e}}},m=class{prefix;constructor(e){this.prefix=`voxket_${e}_`}generateId(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}getXrefId(){let e=`${this.prefix}xref_id`,t=localStorage.getItem(e);return t||(t=this.generateId(),localStorage.setItem(e,t)),t}updateXrefId(){let e=`${this.prefix}xref_id`,t=this.generateId();return localStorage.setItem(e,t),t}clearXrefId(){let e=`${this.prefix}xref_id`;localStorage.removeItem(e)}setToken(e){localStorage.setItem(`${this.prefix}token`,e)}getToken(){return localStorage.getItem(`${this.prefix}token`)}clearToken(){localStorage.removeItem(`${this.prefix}token`)}},h=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function g(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:h(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var _=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},v=e=>{let t=_(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),b={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function x(e){return e!=null}function S(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??b.width,a=e.size??e.height??b.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?y(...c):y(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??b[`stroke-width`])*Number(e.size??e.width??b.width)/Number(t.size??t.width??b.width):t.strokeWidth??b[`stroke-width`];return[`svg`,{...Object.entries(b).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&x(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&x(t.width)&&{[r(`width`)]:t.width},...`height`in t&&x(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function C(e,t={}){return S(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var w=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},T=(0,n.createContext)({}),E=()=>(0,n.useContext)(T),D=(0,n.forwardRef)(({color:e,size:t,width:r,height:i,strokeWidth:a,absoluteStrokeWidth:o,nonScalingStroke:s,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:b=``}=E()??{},x=!!l||w(f),[S,T,D=[]]=C(d,{color:e??v,width:r??t??m,height:i??t??m,strokeWidth:a??h,absoluteStrokeWidth:o??g,nonScalingStroke:s??_,className:y(b,c),hasA11yProp:x,attributes:f});return(0,n.createElement)(S,{ref:p,...T},[...D.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function O(e,t=[],r=[]){let i=typeof e==`string`?g(e,t,r):e,a=(0,n.forwardRef)(({className:e,...t},r)=>(0,n.createElement)(D,{ref:r,icon:i,className:e,...t}));return i.name&&(a.displayName=v(i.name)),a}var k={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};k.node;var A=O(k),j={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};j.node;var M=O(j),N={name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};N.node;var P=O(N),F={name:`building-complex`,size:24,node:[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]],aliases:[`building-2`]};F.node;var ee=O(F),I={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};I.node;var te=O(I),ne={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};ne.node;var re=O(ne),L={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};L.node;var R=O(L),z={name:`circle-check-big`,size:24,node:[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-circle`]};z.node;var B=O(z),V={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};V.node;var H=O(V),U={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};U.node;var ie=O(U),W={name:`credit-card`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}],[`path`,{d:`M6 14h2`,key:`mk7k0u`}]]};W.node;var G=O(W),K={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};K.node;var ae=O(K),q={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};q.node;var J=O(q),Y={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};Y.node;var oe=O(Y),X={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};X.node;var se=O(X),ce={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ce.node;var le=O(ce),ue={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};ue.node;var de=O(ue),fe={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};fe.node;var Z=O(fe),Q={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Q.node;var $=O(Q),pe={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};pe.node;var me=O(pe),he={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};he.node;var ge=O(he),_e={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};_e.node;var ve=O(_e),ye={name:`minimize-2`,size:24,node:[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]};ye.node;var be=O(ye),xe={name:`move`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]};xe.node;var Se=O(xe),Ce={name:`package-check`,size:24,node:[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]};Ce.node;var we=O(Ce),Te={name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]};Te.node;var Ee=O(Te),De={name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]};De.node;var Oe=O(De),ke={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};ke.node;var Ae=O(ke),je={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};je.node;var Me=O(je),Ne={name:`ticket`,size:24,node:[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]};Ne.node;var Pe=O(Ne),Fe={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Fe.node;var Ie=O(Fe),Le={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Le.node;var Re=O(Le),ze={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};ze.node;var Be=O(ze),Ve={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ve.node;var He=O(Ve),Ue=({schema:e,onSubmit:t,onBack:i,theme:a,displayMode:o,isExpanded:s,onToggleExpand:c,onClose:l,onChange:u,initialValues:d,isDark:f=!1,apiClient:p,storage:m,onError:h,onEvent:g,backgroundImage:_,ticketType:v,showReviewFields:y=!1})=>{let[b,x]=(0,n.useState)(d||{}),[S,C]=(0,n.useState)(null),[w,T]=(0,n.useState)(null),[E,D]=(0,n.useState)({}),[O,k]=(0,n.useState)({}),[j,M]=(0,n.useState)(null),[N,P]=(0,n.useState)(null),[F,ee]=(0,n.useState)({}),[I,ne]=(0,n.useState)({}),[L,R]=(0,n.useState)({}),[z,B]=(0,n.useState)({}),V=a?.primaryColor||`#c026d3`,H=t=>{let n=e?.review_fields;if(!Array.isArray(n)||n.length===0)return!1;let r=t.label?t.label.toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``):``;return n.some(e=>{let i=e?.submission?.reviewer;if(!(i!=null&&i!==``&&(typeof i!=`object`||Object.keys(i).length>0)))return!1;let a=e?.id==null?null:String(e.id),o=e?.field_id==null?null:String(e.field_id),s=String(t.id);return a&&(a===s||a===r)||o&&(o===s||o===r)||n.length===1&&t.type===`file`})};(0,n.useEffect)(()=>{if(d&&Object.keys(d).length>0){x(e=>({...d,...e}));let t={},n={};(e?.fields||[]).forEach(e=>{if(e.type===`file`){let r=d[e.id];r&&(String(r).startsWith(`http://`)||String(r).startsWith(`https://`)?n[e.id]=String(r):t[e.id]=String(r))}}),Object.keys(t).length>0&&D(e=>({...t,...e})),Object.keys(n).length>0&&k(e=>({...n,...e}))}},[d,e]);let U=(e,t)=>{x(n=>{let r={...n,[e]:t};return u?.(r),r})},ie=async(t,n)=>{if(!p)return;let r=(e?.fields||[]).find(e=>e.id===t);if(r&&H(r)){M(`This field is under review and cannot be modified.`),P(t);return}C(t),M(null),P(null);let i=m?.getToken?.()||null,a=E[t];try{let e=await p.uploadFile(n,i),r=e?.data?.asset_id||e?.asset_id,o=e?.data?.serve_url||e?.serve_url;if(!r&&!o)throw Error(`Upload response missing asset_id`);let s=String(r||o),c=String(o||``);if(D(e=>({...e,[t]:s})),c&&k(e=>({...e,[t]:c})),x(e=>{let n={...e,[t]:s};return u?.(n),n}),g?.(`file_uploaded`,{fieldId:t,assetId:s,serveUrl:c}),a&&a!==s)try{await p.deleteFile(a,i),g?.(`file_deleted`,{fieldId:t,assetId:a})}catch(e){console.warn(`[DynamicForm] Could not delete old file`,e)}}catch(e){let n=e?.message||`File upload failed. Please try again.`;M(n),P(t),h?.({type:`file_upload_error`,message:n,error:e})}finally{C(null)}},W=async t=>{if(!p)return;let n=(e?.fields||[]).find(e=>e.id===t);if(n&&H(n)){M(`This field is under review and cannot be modified.`),P(t);return}let r=m?.getToken?.()||null,i=E[t]||b[t];T(t),M(null),P(null);try{i&&(await p.deleteFile(i,r),g?.(`file_deleted`,{fieldId:t,assetId:i})),D(e=>{let n={...e};return delete n[t],n}),k(e=>{let n={...e};return delete n[t],n}),x(e=>{let n={...e,[t]:``};return u?.(n),n})}catch(e){let n=e?.message||`Failed to delete file. Please try again.`;M(n),P(t),h?.({type:`file_delete_error`,message:n,error:e})}finally{T(null)}},G=e=>e?.is_review===!0||e?.is_review===`true`,K=()=>{let t=(e?.fields||[]).find(e=>e.type===`email`||(e.label||e.id||``).toLowerCase().includes(`email`));return String(t&&b[t.id]||b.email||``).trim()},q=async(e,t)=>{if(!p)return;let n=e.id,r=t===`file`&&I[n]||null,i=t===`text`&&L[n]||``,a=e=>{M(e),P(n)};if(H(e))return a(`This field is under review and cannot be modified.`);if(!r&&!i.trim())return a(t===`file`?`Please choose a file to upload.`:`Please enter text to submit.`);let o=K();if(!o)return a(`Please enter your email address above before submitting this field.`);C(n),M(null),P(null);try{let t=await p.submitReviewSubmission({fieldLabel:e.label||e.name||n,file:r,text:i,email:o}),a=t?.url||t?.serve_url||t?.data?.url||t?.data?.serve_url||t?.submission?.file?.serve_url||t?.submission?.url||``;B(e=>({...e,[n]:{url:a,fileName:r?.name,text:i.trim()||void 0}})),ne(e=>{let t={...e};return delete t[n],t}),g?.(`review_submission_uploaded`,{fieldId:n,fieldLabel:e.label,email:o,response:t})}catch(e){let t=e?.message||`Submission failed. Please try again.`;a(t),h?.({type:`file_upload_error`,message:t,error:e})}finally{C(null)}},Y=(e?.fields||[]).filter(e=>y||e?.is_review!==!0&&e?.is_review!==`true`),X=e=>{if(e.description)return e.description;if(e.helperText)return e.helperText;let t=(e.label||e.id||``).toLowerCase(),n=e.type;return n===`email`||t.includes(`email`)||t.includes(`mail`)?`Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox.`:n===`phone`||t.includes(`phone`)||t.includes(`mobile`)||t.includes(`contact`)?`Please enter a valid mobile number for SMS confirmations and important notifications.`:t.includes(`council`)||t.includes(`registration no`)||t.includes(`mci`)?`Enter your State Medical Council or National Medical Commission registration number.`:n===`file`||t.includes(`file`)||t.includes(`upload`)||t.includes(`bonafide`)||t.includes(`abstract`)?`Upload your document (PDF, JPG, PNG up to 10MB) for registration review and verification.`:t.includes(`salutation`)||t.includes(`title`)?`Choose your professional title or academic prefix.`:null},se=(e,t)=>{let n=O[e.id]||(b[e.id]&&String(b[e.id]).startsWith(`http`)?b[e.id]:``);return(0,r.jsx)(`div`,{className:`space-y-2 mt-2`,children:(0,r.jsxs)(`div`,{className:`p-4 rounded-xl border border-dashed transition-all ${f?`bg-zinc-850/80 border-zinc-700 hover:border-zinc-600`:`bg-[#faf4f8] border-[#f0e2ed] hover:border-pink-300`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between gap-3 flex-wrap`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,r.jsx)(`div`,{className:`w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border`,style:{backgroundColor:f?`rgba(255,255,255,0.06)`:`color-mix(in srgb, ${V} 10%, white)`,borderColor:f?`rgba(255,255,255,0.12)`:`color-mix(in srgb, ${V} 25%, white)`,color:V},children:(0,r.jsx)(oe,{size:18})}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`p`,{className:`text-xs font-bold ${f?`text-zinc-200`:`text-gray-900`}`,children:e.label}),(0,r.jsx)(`p`,{className:`text-2xs font-medium ${f?`text-zinc-400`:`text-gray-500`}`,children:n?`Document attached successfully`:`Click to choose or upload your document (PDF, JPG, PNG)`})]})]}),(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[!t&&(0,r.jsxs)(`label`,{className:`cursor-pointer relative`,children:[(0,r.jsx)(`input`,{type:`file`,className:`hidden`,style:{display:`none`},tabIndex:-1,disabled:S===e.id||w===e.id,onChange:t=>{let n=t.target.files?.[0];n&&ie(e.id,n),t.target.value=``}}),(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${f?`border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750`:`border-pink-200/80 hover:border-pink-300 text-gray-800 bg-white hover:bg-gray-50`}`,children:[(0,r.jsx)(Re,{size:14,style:{color:V}}),(0,r.jsx)(`span`,{children:S===e.id?`Uploading...`:n?`Replace File`:`Choose File`})]})]}),n&&typeof n==`string`&&n.trim()!==``&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`button`,{type:`button`,onClick:()=>window.open(n,`_blank`,`noopener,noreferrer`),className:`flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0 cursor-pointer`,style:{backgroundColor:V},title:`Open file in new tab`,children:[(0,r.jsx)(J,{size:13}),(0,r.jsx)(`span`,{children:`View`}),(0,r.jsx)(ae,{size:11})]}),!t&&(0,r.jsxs)(`button`,{type:`button`,disabled:w===e.id||S===e.id,onClick:()=>W(e.id),className:`flex items-center gap-1 py-2 px-3 rounded-xl text-xs font-semibold border transition-colors cursor-pointer ${f?`border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60`:`border-red-200 bg-red-50 text-red-600 hover:bg-red-100`}`,title:`Delete uploaded file`,children:[(0,r.jsx)(Ie,{size:13}),(0,r.jsx)(`span`,{children:w===e.id?`Deleting...`:`Delete`})]})]})]})]}),n&&(0,r.jsxs)(`div`,{className:`mt-2.5 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${f?`border-zinc-800 text-zinc-300`:`border-gray-200 text-gray-700 font-medium`}`,children:[(0,r.jsx)(te,{size:12,className:`text-emerald-500 shrink-0`}),(0,r.jsxs)(`span`,{className:`truncate`,children:[`Attached: `,n]})]}),j&&N===e.id&&(0,r.jsx)(`div`,{className:`text-xs text-red-500 mt-2 font-medium`,children:j})]})})},ce=(e,t)=>{let n=F[e.id]||`file`,i=I[e.id],a=L[e.id]||``,o=z[e.id],s=S===e.id,c=n===`file`?!!i:a.trim()!==``;return(0,r.jsx)(`div`,{className:`space-y-2 mt-2`,children:(0,r.jsxs)(`div`,{className:`p-4 rounded-xl border border-dashed transition-all ${f?`bg-zinc-850/80 border-zinc-700`:`bg-[#faf4f8] border-[#f0e2ed]`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between gap-3 flex-wrap`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,r.jsx)(`div`,{className:`w-10 h-10 rounded-xl flex items-center justify-center shrink-0 border`,style:{backgroundColor:f?`rgba(255,255,255,0.06)`:`color-mix(in srgb, ${V} 10%, white)`,borderColor:f?`rgba(255,255,255,0.12)`:`color-mix(in srgb, ${V} 25%, white)`,color:V},children:(0,r.jsx)(oe,{size:18})}),(0,r.jsx)(`p`,{className:`text-2xs font-medium ${f?`text-zinc-400`:`text-gray-500`}`,children:o?`Submitted successfully`:n===`file`?`Upload your document (PDF, JPG, PNG)`:`Enter your text below`})]}),!t&&(0,r.jsx)(`button`,{type:`button`,disabled:s,onClick:()=>ee(t=>({...t,[e.id]:n===`file`?`text`:`file`})),className:`flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-lg border cursor-pointer transition-colors hover:opacity-80 disabled:opacity-50`,style:{color:V,borderColor:`color-mix(in srgb, ${V} 35%, transparent)`},children:n===`file`?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(J,{size:11}),` Send text only`]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Re,{size:11}),` Send file`]})})]}),o&&(0,r.jsxs)(`div`,{className:`mt-2.5 pt-2 border-t text-2xs flex items-center gap-1.5 ${f?`border-zinc-800 text-zinc-300`:`border-gray-200 text-gray-700 font-medium`}`,children:[(0,r.jsx)(te,{size:12,className:`text-emerald-500 shrink-0`}),(0,r.jsx)(`span`,{className:`truncate`,children:o.fileName?`Submitted file: ${o.fileName}`:o.text?`Text submitted`:`Submitted`}),o.url&&(0,r.jsxs)(`a`,{href:o.url,target:`_blank`,rel:`noopener noreferrer`,className:`ml-auto flex items-center gap-1 font-semibold`,style:{color:V},children:[`View `,(0,r.jsx)(ae,{size:11})]})]}),!t&&(0,r.jsxs)(`div`,{className:`mt-3 pt-3 border-t border-gray-200 dark:border-zinc-800 space-y-2.5`,children:[n===`file`?(0,r.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,r.jsxs)(`label`,{className:`cursor-pointer relative`,children:[(0,r.jsx)(`input`,{type:`file`,className:`hidden`,style:{display:`none`},tabIndex:-1,disabled:s,onChange:t=>{let n=t.target.files?.[0];n&&ne(t=>({...t,[e.id]:n})),t.target.value=``}}),(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5 py-2 px-3.5 rounded-xl text-xs font-semibold border transition-all shadow-2xs ${f?`border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800`:`border-pink-200/80 hover:border-pink-300 text-gray-800 bg-white hover:bg-gray-50`}`,children:[(0,r.jsx)(Re,{size:14,style:{color:V}}),(0,r.jsx)(`span`,{children:i?`Change File`:o?`Replace File`:`Choose File`})]})]}),i&&(0,r.jsxs)(`span`,{className:`text-xs font-medium truncate max-w-[220px] ${f?`text-zinc-300`:`text-gray-700`}`,children:[i.name,` (`,(i.size/1024).toFixed(0),` KB)`]})]}):(0,r.jsx)(`textarea`,{rows:3,disabled:s,value:a,onChange:t=>R(n=>({...n,[e.id]:t.target.value})),placeholder:`Enter text or abstract notes...`,className:`w-full px-3 py-2 text-sm rounded-xl border focus:outline-none transition-all ${f?`bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500`:`bg-white border-[#f0e2ed] text-gray-900 placeholder-[#a89bb0]`}`}),c&&(0,r.jsx)(`div`,{className:`flex justify-end`,children:(0,r.jsxs)(`button`,{type:`button`,disabled:s,onClick:()=>q(e,n),style:{backgroundColor:V},className:`flex items-center gap-1.5 px-4 py-2 rounded-xl text-xs font-bold text-white shadow-sm hover:opacity-90 transition-all cursor-pointer disabled:opacity-50`,children:[(0,r.jsx)(Re,{size:13}),(0,r.jsx)(`span`,{children:s?`Submitting...`:n===`file`?`Upload File`:`Submit Text`})]})})]}),j&&N===e.id&&(0,r.jsx)(`div`,{className:`text-xs text-red-500 mt-2 font-medium`,children:j})]})})},ue=e=>{if(!e)return null;let t=H(e),n=b[e.id]??``,i=X(e),a=e.type===`email`||(e.label||``).toLowerCase().includes(`email`),o=(e.label||``).toLowerCase().includes(`name`);return(0,r.jsxs)(`div`,{className:`rounded-2xl p-5 sm:p-6 transition-all duration-200 border border-l-4 shadow-[0_2px_16px_rgba(217,70,239,0.04)] ${f?`bg-zinc-900 border-zinc-800 text-white`:`bg-white border-pink-100/80 text-gray-900`}`,style:{borderLeftColor:V},children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,r.jsxs)(`label`,{className:`block text-sm sm:text-base font-bold ${f?`text-zinc-100`:`text-gray-900`}`,children:[e.label,e.required&&(0,r.jsx)(`span`,{className:`text-red-500 font-bold ml-1`,children:`*`})]}),t&&(0,r.jsxs)(`span`,{className:`flex items-center gap-1 text-2xs font-medium px-2 py-0.5 rounded-full border ${f?`text-amber-400 bg-amber-950/60 border-amber-900/50`:`text-amber-700 bg-amber-50 border-amber-200`}`,children:[(0,r.jsx)(Z,{size:10}),` Under Review`]})]}),i&&(0,r.jsx)(`p`,{className:`text-xs leading-relaxed mb-3.5 ${f?`text-zinc-400`:`text-gray-500 font-normal`}`,children:i}),y&&G(e)?ce(e,t):e.type===`select`?(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsxs)(`select`,{disabled:t,required:e.required,value:n,onChange:t=>U(e.id,t.target.value),className:`w-full pl-4 pr-10 py-3.5 text-sm font-medium rounded-xl appearance-none cursor-pointer transition-all border ${t?f?`bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed`:`bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed`:f?`bg-zinc-800/80 border-zinc-700 text-white hover:border-zinc-600 focus:outline-none`:`bg-[#faf4f8] border-[#f0e2ed] text-gray-900 hover:border-pink-300 focus:outline-none`}`,onFocus:e=>{t||(e.currentTarget.style.borderColor=V,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${V} 18%, transparent)`)},onBlur:e=>{t||(e.currentTarget.style.borderColor=f?`#3f3f46`:`#f0e2ed`,e.currentTarget.style.boxShadow=`none`)},children:[(0,r.jsx)(`option`,{value:``,className:f?`bg-zinc-900 text-white`:`bg-white text-gray-900`,children:e.placeholder||`Select ${e.label}...`}),(e.options||[]).map(e=>(0,r.jsx)(`option`,{value:e,className:f?`bg-zinc-900 text-white`:`bg-white text-gray-900`,children:e},e))]}),(0,r.jsx)(`div`,{className:`absolute inset-y-0 right-0 flex items-center pr-3.5 pointer-events-none`,style:{color:V},children:(0,r.jsx)(re,{size:16})})]}):e.type===`file`?se(e,t):(0,r.jsx)(`div`,{className:`relative`,children:(0,r.jsx)(`input`,{type:e.type===`phone`?`tel`:e.type===`email`?`email`:e.type===`number`?`number`:`text`,disabled:t,required:e.required,value:n,placeholder:e.placeholder||(a?`Enter your email address`:o?`Your full name`:`Enter your ${e.label.toLowerCase()}`),onChange:t=>U(e.id,t.target.value),className:`w-full px-4 py-3.5 text-sm font-medium rounded-xl transition-all border ${t?f?`bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed`:`bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed`:f?`bg-zinc-800/80 border-zinc-700 text-white placeholder-zinc-500 hover:border-zinc-600 focus:outline-none`:`bg-[#faf4f8] border-[#f0e2ed] text-gray-900 placeholder-[#a89bb0] hover:border-pink-300 focus:outline-none`}`,onFocus:e=>{t||(e.currentTarget.style.borderColor=V,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${V} 18%, transparent)`)},onBlur:e=>{t||(e.currentTarget.style.borderColor=f?`#3f3f46`:`#f0e2ed`,e.currentTarget.style.boxShadow=`none`)}})})]},e.id)};return(0,r.jsxs)(`div`,{className:`w-full flex-1 flex flex-col relative ${f?`bg-zinc-950 text-white`:`bg-[#fbf7f9] text-gray-900`}`,children:[(0,r.jsx)(`div`,{className:`sticky top-0 z-30 px-4 sm:px-8 py-3.5 border-b backdrop-blur-md transition-colors ${f?`bg-zinc-900/90 border-zinc-800`:`bg-white/90 border-pink-100/90 shadow-2xs`}`,children:(0,r.jsxs)(`div`,{className:`max-w-4xl mx-auto flex items-center justify-between`,children:[(0,r.jsxs)(`button`,{type:`button`,onClick:i,className:`inline-flex items-center gap-2 text-xs sm:text-sm font-semibold rounded-xl px-3 py-2 transition-all cursor-pointer ${f?`bg-zinc-800 hover:bg-zinc-750 text-zinc-200`:`bg-pink-50/70 hover:bg-pink-100/80 text-gray-800 border border-pink-200/60`}`,children:[(0,r.jsx)(A,{size:15,style:{color:V}}),(0,r.jsx)(`span`,{children:`Back to All Forms`})]}),(0,r.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[v&&(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsx)(`span`,{className:`text-xs font-bold px-3 py-1.5 rounded-full border ${f?`bg-zinc-800 border-zinc-700 text-zinc-200`:`bg-white border-pink-200/80 text-gray-800`}`,children:v.type||v.name||`Registration Form`}),(0,r.jsxs)(`span`,{className:`text-xs font-extrabold px-3 py-1.5 rounded-full text-white shadow-2xs`,style:{backgroundColor:V},children:[v.currency||`₹`,` `,Number(v.price)>0?Number(v.price).toLocaleString():`Free`]})]}),o===`popup`&&(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5 ml-2 border-l pl-2 border-gray-300 dark:border-zinc-700`,children:[(0,r.jsx)(`button`,{onClick:c,className:`p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,title:s?`Minimize`:`Expand`,children:s?(0,r.jsx)(be,{size:16}):(0,r.jsx)(ve,{size:16})}),(0,r.jsx)(`button`,{onClick:l,className:`p-1.5 opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(He,{size:18})})]})]})]})}),(0,r.jsx)(`div`,{className:`w-full flex-1 overflow-y-auto`,children:(0,r.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();for(let e of Y){if(y&&G(e)){if(e.required&&!z[e.id]){M(`Please submit ${e.label||`this field`} before continuing`),P(e.id);return}continue}if(e.type===`file`&&e.required&&!b[e.id]){M(`Please upload ${e.label||`a file`}`),P(e.id);return}}t(b)},className:`max-w-3xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-4`,children:[d&&Object.keys(d).length>0&&(0,r.jsxs)(`div`,{className:`text-xs px-4 py-2.5 rounded-xl flex items-center gap-2 border shadow-2xs ${f?`bg-emerald-950/60 border-emerald-800/80 text-emerald-300`:`bg-emerald-50 border-emerald-200 text-emerald-800`}`,children:[(0,r.jsx)(`span`,{children:`✨`}),(0,r.jsx)(`span`,{className:`font-semibold`,children:`Restored your previously saved draft progress`})]}),(0,r.jsxs)(`div`,{className:`rounded-2xl p-4 sm:p-5 border border-l-4 shadow-[0_2px_12px_rgba(217,70,239,0.04)] flex items-start gap-3.5 transition-all ${f?`bg-zinc-900 border-zinc-800 text-white`:`bg-white border-pink-100/90 text-gray-900`}`,style:{borderLeftColor:V},children:[(0,r.jsx)(`div`,{className:`shrink-0 mt-0.5`,style:{color:V},children:(0,r.jsx)(le,{size:20})}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h4`,{className:`text-xs font-bold uppercase tracking-wider`,style:{color:V},children:`BEFORE YOU SUBMIT`}),(0,r.jsxs)(`p`,{className:`text-xs mt-1 font-medium leading-relaxed ${f?`text-zinc-400`:`text-gray-600`}`,children:[`Ensure you are a registered delegate. Fields marked `,(0,r.jsx)(`span`,{className:`text-red-500 font-bold`,children:`*`}),` are required.`]})]})]}),Y.map(e=>ue(e)),(0,r.jsx)(`div`,{className:`pt-3 pb-8`,children:(0,r.jsxs)(`button`,{type:`submit`,disabled:S!==null||w!==null,style:{background:`linear-gradient(135deg, ${V}, color-mix(in srgb, ${V} 85%, black))`,boxShadow:`0 4px 20px 0 color-mix(in srgb, ${V} 35%, transparent)`},className:`w-full py-4 px-8 text-base font-bold text-white rounded-xl hover:opacity-95 active:scale-[0.99] transition-all shadow-md cursor-pointer flex items-center justify-center gap-2 hover:shadow-xl disabled:opacity-50`,children:[(0,r.jsx)(`span`,{children:`Complete Registration`}),(0,r.jsx)(`span`,{className:`text-lg`,children:`→`})]})})]})})]})};function We(e,t){if(!e)return``;if(/^field_\d+/i.test(e)&&t&&typeof t==`string`){let e=t.trim().toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``);if(e)return e}return e}function Ge(e,t=``){if(e&&typeof e==`string`){let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``);if(t)return t}return We(t,e)||t}var Ke=({apiClient:e,storage:t,logger:i,primaryColor:a,isDark:o=!1,backgroundImage:s,isWidgetPage:c=!1,onEvent:l,onError:u})=>{let[d,f]=(0,n.useState)(`login`),[p,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!1),[_,v]=(0,n.useState)(null),[y,b]=(0,n.useState)(null),[x,S]=(0,n.useState)(null),[C,w]=(0,n.useState)(``),[T,E]=(0,n.useState)(``),[D,O]=(0,n.useState)(``),[k,j]=(0,n.useState)(``),[M,N]=(0,n.useState)(``),[F,I]=(0,n.useState)(``),[ne,L]=(0,n.useState)(``),[z,V]=(0,n.useState)(!1),[H,U]=(0,n.useState)(null),[ie,W]=(0,n.useState)({}),[K,q]=(0,n.useState)([]),[Y,X]=(0,n.useState)({}),[ce,le]=(0,n.useState)(null),[ue,fe]=(0,n.useState)(null),[Q,pe]=(0,n.useState)(null),[he,_e]=(0,n.useState)(!1),[ve,ye]=(0,n.useState)({}),[be,xe]=(0,n.useState)({}),[Se,Ce]=(0,n.useState)({});(0,n.useEffect)(()=>{let e=t.getToken();e&&Te(e)},[]);let Te=async n=>{m(!0),b(null);try{let r=await e.portalGetProfile(n),a=r?.data||r||{};U(a);let o=a.registration||{},s=o.custom_data||{},c=o.email||a.email||``,u=null;if(c)try{let t=await e.getDraftByEmail(c);u=t?.data||t,i.log(`Portal resume draft data loaded by email:`,u)}catch(e){i.log(`No draft found for email in portal`,e)}else{let n=t.getXrefId();if(n)try{let t=await e.getDraft(n);u=t?.data||t}catch{}}let d=u?.custom_data||{};o.name?O(o.name):u?.name?O(u.name):a.name&&O(a.name);let p=0,m={},h=[...a.editable_fields||[]];Array.isArray(a.review_fields)&&a.review_fields.forEach(e=>{if(!e)return;let t=e.label||e.name,n=e.id||e.field_id||e.key;!h.some(e=>n&&(String(e.id)===String(n)||String(e.name)===String(n))||t&&(e.label===t||e.name===t))&&(t||n)&&h.push({id:n||t,label:t||n,type:e.type||`file`,is_review:!0,builtin:!1,...e})}),U({...a,editable_fields:h});let g={};o.asset_id&&(g.asset_id=String(o.asset_id)),o.photo_id&&(g.photo_id=String(o.photo_id)),s.asset_id&&(g.asset_id=String(s.asset_id)),s.photo_id&&(g.photo_id=String(s.photo_id)),a.asset_id&&(g.asset_id=String(a.asset_id)),h.forEach(e=>{if(e.type===`file`||e.is_review===!0||e.is_review===`true`){let t=o[`${e.id}_asset_id`]||s[`${e.id}_asset_id`]||o.asset_id||s.asset_id||a.asset_id;t&&(g[e.id]=String(t))}}),X(e=>({...g,...e}));let _=o.asset_id||o.photo_id||s.asset_id||s.photo_id||a.asset_id;_&&le(String(_)),h.length>0?h.forEach(e=>{let t=e.label||e.name||e.id,n=We(e.id,e.label),r=Ge(e.label,e.id),i=``;if(t&&o[t]!==void 0&&o[t]!==null&&o[t]!==``?i=o[t]:o[r]!==void 0&&o[r]!==null&&o[r]!==``?i=o[r]:o[n]!==void 0&&o[n]!==null&&o[n]!==``?i=o[n]:o[e.id]!==void 0&&o[e.id]!==null&&o[e.id]!==``?i=o[e.id]:t&&s[t]!==void 0&&s[t]!==null&&s[t]!==``?i=s[t]:s[r]!==void 0&&s[r]!==null&&s[r]!==``?i=s[r]:s[n]!==void 0&&s[n]!==null&&s[n]!==``?i=s[n]:s[e.id]!==void 0&&s[e.id]!==null&&s[e.id]!==``&&(i=s[e.id]),e.submission){let t=e.submission.url||e.submission.file_url||e.submission.file;t&&!i&&(i=t),e.submission.text&&xe(t=>({...t,[e.id]:e.submission.text}))}let c=a.review_fields||[];if(Array.isArray(c)){let r=c.find(r=>{let i=r?.id==null?null:String(r.id),a=r?.field_id==null?null:String(r.field_id),o=r?.label?String(r.label).trim():null;return o&&t&&o.toLowerCase()===t.toLowerCase()||i&&(i===String(e.id)||i===n)||a&&(a===String(e.id)||a===n)});if(r?.submission){let t=r.submission.url||r.submission.file_url||r.submission.file;t&&!i&&(i=t),r.submission.text&&xe(t=>({...t,[e.id]:r.submission.text}))}}if(u){let t=u[n]??u[e.id]??d[n]??d[e.id]??(e.id===`salutation`?u.salutation||u.title:void 0)??(e.id===`name`?u.name||u.fullName||u.full_name:void 0)??(e.id===`email`?u.email:void 0)??(e.id===`phone`?u.phone||u.mobile||u.phoneNumber:void 0);t!=null&&t!==``&&(i=t,p++)}m[e.id]=i}):Object.entries(a).forEach(([e,t])=>{e.toLowerCase()!==`token`&&(m[e]=t)}),W(m),p>0&&_e(!0);let v=(a.addons?.items||[]).filter(e=>e.purchased).map(e=>e.name);u?.selected_items&&Array.isArray(u.selected_items)&&u.selected_items.forEach(e=>{let t=typeof e==`string`?e:e?.name;t&&!v.includes(t)&&v.push(t)}),q(v),f(`profile`),l?.(`attendee_profile_loaded`,{profile:a,draft:u})}catch(e){i.error(`Failed to load profile`,e),t.clearToken(),f(`login`)}finally{m(!1)}},De=async n=>{if(n.preventDefault(),!C.trim()||!T){b(`Please enter both your identifier and password.`);return}m(!0),b(null),S(null);try{let n=await e.portalLogin({identifier:C.trim(),password:T}),r=n?.data?.token||n?.token;if(!r)throw Error(n?.message||`No authentication token received.`);(n?.data?.name||n?.name)&&O(n.data?.name||n.name),t.setToken(r),l?.(`attendee_logged_in`,{identifier:C,response:n}),await Te(r)}catch(e){i.error(`Login failed`,e);let t=e.message||`Login failed. Please check your credentials.`;b(t),u?.({type:`login_error`,message:t,error:e})}finally{m(!1)}},ke=async t=>{t.preventDefault();let n=(k||C).trim();if(!n){b(`Please enter your registration number or email to receive a code.`);return}V(!0),b(null),S(null);try{await e.portalRequestPasswordReset(n),S(`A verification code has been sent to your registered email.`),l?.(`password_reset_code_requested`,{identifier:n}),f(`reset`)}catch(e){i.error(`Failed to send reset code`,e);let t=e.message||`Failed to send code. Please verify your identifier.`;b(t),u?.({type:`portal_error`,message:t,error:e})}finally{V(!1)}},Ae=async n=>{n.preventDefault();let r=(k||C).trim();if(!r){b(`Please enter your registration number or email.`);return}if(!M.trim()){b(`Please enter the verification code sent to your email.`);return}if(!F){b(`Please enter a new password.`);return}if(F!==ne){b(`New password and confirm password do not match.`);return}m(!0),b(null),S(null);try{let n=await e.portalConfirmPasswordReset({identifier:r,code:M.trim(),new_password:F}),i=n?.data?.token||n?.token;(n?.data?.name||n?.name)&&O(n.data?.name||n.name),l?.(`password_reset_success`,{identifier:r,response:n}),i?(t.setToken(i),N(``),I(``),L(``),await Te(i)):(w(r),E(``),N(``),I(``),L(``),f(`login`),S(`Password updated successfully! Please login with your new password.`))}catch(e){i.error(`Password reset failed`,e);let t=e.message||`Failed to update password. Please check the code.`;b(t),u?.({type:`portal_error`,message:t,error:e})}finally{m(!1)}},je=()=>{t.clearToken(),U(null),W({}),q([]),X({}),le(null),pe(null),O(``),E(``),f(`login`),S(`Logged out successfully.`),l?.(`attendee_logged_out`,{})},Ne=e=>{let t=H?.review_fields;if(!Array.isArray(t)||t.length===0)return!1;let n=We(e.id,e.label);return t.some(r=>{let i=r?.submission?.reviewer;if(!(i!=null&&i!==``&&(typeof i!=`object`||Object.keys(i).length>0)))return!1;let a=r?.id==null?null:String(r.id),o=r?.field_id==null?null:String(r.field_id),s=r?.field==null?null:String(r.field),c=r?.name==null?null:String(r.name),l=r?.key==null?null:String(r.key),u=r?.submission?.field_id==null?null:String(r.submission.field_id),d=r?.submission?.field==null?null:String(r.submission.field),f=String(e.id),p=e.label?String(e.label).toLowerCase().trim():``,m=r?.label?String(r.label).toLowerCase().trim():``;return!!(a&&(a===f||a===n)||o&&(o===f||o===n)||s&&(s===f||s===n)||c&&(c===f||c===n)||l&&(l===f||l===n)||u&&(u===f||u===n)||d&&(d===f||d===n)||p&&m&&p===m||t.length===1&&e.type===`file`)})},Fe=(e,t)=>{ye(n=>({...n,[e]:t})),b(null)},Le=async(n,r,a=`file`)=>{let o=t.getToken();if(!o){b(`Session expired. Please log in again.`);return}let s=(H?.editable_fields||[]).find(e=>e.id===n);if(s&&Ne(s)){b(`This field is under review and cannot be edited.`);return}let c=a===`file`&&ve[n]||null,d=a===`text`&&be[n]||``;if(!c&&!d.trim()){b(a===`file`?`Please choose a file to upload.`:`Please enter text to submit.`);return}v(n),b(null),S(null);try{i.log(`Submitting review field "${r}" to /me/submissions/...`);let t=await e.portalSubmitReviewSubmission(o,r,c,d);i.log(`Review submission successful:`,t);let a=t?.url||t?.serve_url||t?.data?.url||t?.data?.serve_url||t?.submission?.url||(c?URL.createObjectURL(c):``),s=t?.asset_id||t?.data?.asset_id||t?.submission?.asset_id;a&&W(e=>({...e,[n]:a})),s&&(X(e=>({...e,[n]:String(s)})),le(String(s))),ye(e=>{let t={...e};return delete t[n],t}),S(c?`File "${c.name}" uploaded successfully!`:`Submission uploaded successfully!`),l?.(`portal_submission_uploaded`,{fieldId:n,fieldLabel:r,serveUrl:a,assetId:s,response:t});try{await Te(o)}catch{}}catch(e){i.error(`File upload failed`,e);let t=e.message||`File upload failed. Please try again.`;b(t),u?.({type:`file_upload_error`,message:t,error:e})}finally{v(null)}},ze=async n=>{let r=t.getToken();if(!r){b(`Session expired. Please log in again.`);return}let a=(H?.editable_fields||[]).find(e=>e.id===n);if(a&&Ne(a)){b(`This field is under review and cannot be deleted.`);return}let o=ie[n],s=(o&&typeof o==`object`?o.id:null)||Y[n]||ce;fe(n),b(null),S(null);try{s&&(i.log(`Deleting asset ${s} for field ${n}...`),await e.portalDeleteFile(r,s),i.log(`Asset ${s} deleted successfully.`),l?.(`portal_file_deleted`,{assetId:s,fieldId:n})),W(e=>({...e,[n]:``})),X(e=>{let t={...e};return delete t[n],t}),ye(e=>{let t={...e};return delete t[n],t}),ce===s&&le(null),S(`File removed successfully.`)}catch(e){i.error(`Failed to delete file`,e);let t=e.message||`Failed to delete file. Please try again.`;b(t),u?.({type:`file_delete_error`,message:t,error:e})}finally{fe(null)}},Ve=(e,t)=>{t||q(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},He=async n=>{n.preventDefault();let r=t.getToken();if(!r){b(`Session expired. Please log in again.`);return}g(!0),b(null),S(null);try{let t=H?.editable_fields||[],n={...H?.registration?.custom_data||{}},i={};t.forEach(e=>{let t=ie[e.id],r=e.label||e.name||e.id,a=Ge(e.label,e.id),o=We(e.id,e.label);e.type===`file`?(delete n[r],delete n[a],delete n[o],delete n[e.id]):e.builtin?(i[o]=t,o!==e.id&&(i[e.id]=t)):(n[o]=t,i[o]=t,o!==e.id&&(n[e.id]=t,i[e.id]=t))}),i.custom_data=n,i.addons=K;let a=await e.portalUpdateProfile(r,i);l?.(`attendee_profile_updated`,{payload:i,response:a});let o=a?.data?.addon_checkout?.payment_url||a?.addon_checkout?.payment_url||a?.data?.payment_url||a?.payment_url;if(o&&typeof o==`string`&&o.trim()!==``){pe(o),S(`Add-ons updated! Opening payment page in a new tab...`),l?.(`addon_payment_opened`,{payment_url:o}),window.open(o,`_blank`,`noopener,noreferrer`),await Te(r);return}S(`Profile updated successfully!`),await Te(r)}catch(e){i.error(`Failed to update profile`,e);let t=e.message||`Failed to update profile. Please try again.`;b(t),u?.({type:`profile_update_error`,message:t,error:e})}finally{g(!1)}},Ue=()=>(0,r.jsxs)(`div`,{className:`absolute inset-0 pointer-events-none overflow-hidden z-0 select-none`,children:[s&&(0,r.jsx)(`div`,{className:`absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-700 pointer-events-none`,style:{backgroundImage:`url(${s})`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,opacity:o?.55:.85,filter:o?`saturate(85%) contrast(105%)`:`saturate(95%) contrast(100%)`}}),(0,r.jsx)(`div`,{className:`absolute inset-0 pointer-events-none`,style:{background:o?`linear-gradient(180deg, rgba(9,9,11,0.5) 0%, rgba(9,9,11,0.7) 100%)`:`linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(248,250,252,0.2) 100%)`}}),(0,r.jsx)(`div`,{className:`absolute -top-16 -right-16 w-72 h-72 rounded-full blur-3xl pointer-events-none transition-all duration-700`,style:{background:`radial-gradient(circle, ${a}28 0%, ${a}08 60%, transparent 80%)`}}),(0,r.jsx)(`div`,{className:`absolute top-1/3 -left-20 w-80 h-80 rounded-full blur-3xl pointer-events-none transition-all duration-700`,style:{background:`radial-gradient(circle, ${a}20 0%, ${a}06 55%, transparent 75%)`}}),(0,r.jsx)(`div`,{className:`absolute -bottom-10 right-1/4 w-64 h-64 rounded-full blur-3xl pointer-events-none transition-all duration-700`,style:{background:`radial-gradient(circle, ${a}16 0%, transparent 70%)`}}),!o&&(0,r.jsx)(`div`,{className:`absolute inset-0 opacity-[0.03]`,style:{backgroundImage:`radial-gradient(${a} 1px, transparent 1px)`,backgroundSize:`16px 16px`}})]}),Ke=e=>{let t=(e.label||e.id||``).toLowerCase(),n=e.type;return n===`email`||t.includes(`email`)||t.includes(`mail`)?(0,r.jsx)(me,{size:13,className:`shrink-0`,style:{color:a}}):n===`phone`||t.includes(`phone`)||t.includes(`mobile`)||t.includes(`contact`)?(0,r.jsx)(Ee,{size:13,className:`shrink-0`,style:{color:a}}):t.includes(`salutation`)||t.includes(`title`)||t.includes(`prefix`)?(0,r.jsx)(Me,{size:13,className:`shrink-0`,style:{color:a}}):t.includes(`name`)||t.includes(`attendee`)?(0,r.jsx)(Be,{size:13,className:`shrink-0`,style:{color:a}}):t.includes(`designat`)||t.includes(`role`)||t.includes(`position`)||t.includes(`profession`)?(0,r.jsx)(P,{size:13,className:`shrink-0`,style:{color:a}}):t.includes(`specialis`)||t.includes(`specializ`)||t.includes(`department`)||t.includes(`degree`)?(0,r.jsx)(se,{size:13,className:`shrink-0`,style:{color:a}}):t.includes(`organi`)||t.includes(`institute`)||t.includes(`hospital`)||t.includes(`company`)||t.includes(`college`)?(0,r.jsx)(ee,{size:13,className:`shrink-0`,style:{color:a}}):t.includes(`city`)||t.includes(`state`)||t.includes(`country`)||t.includes(`address`)?(0,r.jsx)(ge,{size:13,className:`shrink-0`,style:{color:a}}):n===`file`?(0,r.jsx)(oe,{size:13,className:`shrink-0`,style:{color:a}}):(0,r.jsx)(J,{size:13,className:`shrink-0`,style:{color:a}})},qe=(e,t=`w-full`,n=[])=>{if(!e)return null;let i=Ne(e),c=n.includes(e.id)||n.includes(We(e.id,e.label))||i,l=ie[e.id]??``;return(0,r.jsxs)(`div`,{className:`${t} px-1.5 mb-3.5`,children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between mb-1.5`,children:[(0,r.jsxs)(`label`,{className:`flex items-center gap-1.5 text-xs font-semibold ${o?`text-zinc-200`:`text-gray-800`}`,children:[(0,r.jsx)(`span`,{className:`p-1 rounded-md shrink-0 flex items-center justify-center transition-colors border shadow-2xs`,style:{backgroundColor:o?`rgba(255,255,255,0.08)`:`rgba(255,255,255,0.75)`,borderColor:o?`rgba(255,255,255,0.12)`:`rgba(255,255,255,0.9)`},children:Ke(e)}),(0,r.jsx)(`span`,{children:e.label}),e.required&&(0,r.jsx)(`span`,{className:`text-red-500 font-bold`,children:`*`})]}),i?(0,r.jsxs)(`span`,{className:`flex items-center gap-1 text-2xs font-medium px-2 py-0.5 rounded-full border backdrop-blur-md ${o?`text-amber-400 bg-amber-950/60 border-amber-900/50`:`text-amber-700 bg-amber-50/80 border-amber-200`}`,children:[(0,r.jsx)(Z,{size:10}),` Under Review`]}):c?(0,r.jsxs)(`span`,{className:`flex items-center gap-1 text-2xs font-medium px-2 py-0.5 rounded-full border ${o?`text-zinc-400 bg-zinc-800/80 border-zinc-700`:`text-gray-600 bg-gray-100 border-gray-200`}`,children:[(0,r.jsx)(Z,{size:10}),` Locked`]}):null]}),e.type===`select`?(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsxs)(`select`,{disabled:c,value:l,onChange:t=>W({...ie,[e.id]:t.target.value}),className:`w-full pl-3.5 pr-8 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all appearance-none cursor-pointer border border-gray-300 dark:border-zinc-700 shadow-2xs ${c?o?`bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed`:`bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed`:o?s?`bg-zinc-900/65 text-white hover:border-zinc-600 focus:bg-zinc-900`:`bg-zinc-900 text-white hover:border-zinc-600 focus:bg-zinc-900`:s?`bg-white/65 text-gray-900 hover:border-gray-400 focus:bg-white backdrop-blur-xs`:`bg-white text-gray-900 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{c||(e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`)},onBlur:e=>{c||(e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`)},children:[(0,r.jsxs)(`option`,{value:``,className:o?`bg-zinc-900 text-white`:`bg-white text-gray-900`,children:[`Select `,e.label,`...`]}),(e.options||[]).map(e=>(0,r.jsx)(`option`,{value:e,className:o?`bg-zinc-900 text-white`:`bg-white text-gray-900`,children:e},e))]}),(0,r.jsx)(`div`,{className:`absolute inset-y-0 right-0 flex items-center pr-2.5 pointer-events-none`,children:(0,r.jsx)(re,{size:14,style:{color:a}})})]}):e.type===`file`?Je(e,c,l):(0,r.jsx)(`div`,{className:`relative`,children:(0,r.jsx)(`input`,{type:e.type===`phone`?`tel`:e.type===`email`?`email`:`text`,disabled:c,value:l,placeholder:e.placeholder||`Enter ${e.label.toLowerCase()}`,onChange:t=>W({...ie,[e.id]:t.target.value}),className:`w-full px-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${c?o?`bg-zinc-800/60 text-zinc-500 border-zinc-800 cursor-not-allowed`:`bg-gray-100/70 text-gray-500 border-gray-200 cursor-not-allowed`:o?s?`bg-zinc-900/65 text-white placeholder-zinc-400 hover:border-zinc-600 focus:bg-zinc-900`:`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:s?`bg-white/65 text-gray-900 placeholder-gray-500 hover:border-gray-400 focus:bg-white backdrop-blur-xs`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{c||(e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`)},onBlur:e=>{c||(e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`)}})})]},e.id)},Je=(e,t,n)=>{let i=ve[e.id],s=be[e.id]||``,c=_===e.id,l=e.label||e.name||e.id,u=Se[e.id]||(s&&!n?`text`:`file`),d=typeof n==`string`?n:n?.serve_url||n?.url||``,f=typeof n==`string`?n:n?.file_name||d;return(0,r.jsx)(`div`,{className:`space-y-2`,children:(0,r.jsxs)(`div`,{className:`p-3.5 sm:p-4 rounded-xl border border-dashed transition-all ${o?`bg-zinc-900/60 border-zinc-700 hover:border-zinc-600`:`bg-slate-50/80 border-gray-300 hover:border-gray-400 hover:bg-slate-100/50 shadow-2xs`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between gap-3 flex-wrap`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,r.jsx)(`div`,{className:`w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border`,style:{backgroundColor:o?`rgba(255,255,255,0.06)`:`color-mix(in srgb, ${a} 8%, white)`,borderColor:o?`rgba(255,255,255,0.12)`:`color-mix(in srgb, ${a} 20%, white)`,color:a},children:(0,r.jsx)(oe,{size:16})}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`p`,{className:`text-xs font-bold ${o?`text-zinc-200`:`text-gray-900`}`,children:l}),(0,r.jsx)(`p`,{className:`text-2xs font-medium ${o?`text-zinc-400`:`text-gray-500`}`,children:n?`Document attached`:i?`File chosen: ${i.name}`:`Choose a file or enter text to upload`})]})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-2`,children:d.trim()!==``&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`a`,{href:d,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold text-white shadow-xs transition-opacity hover:opacity-90 shrink-0`,style:{backgroundColor:a},title:`Open file in new tab`,children:[(0,r.jsx)(J,{size:13}),(0,r.jsx)(`span`,{children:`View`}),(0,r.jsx)(ae,{size:11})]}),!t&&(0,r.jsxs)(`button`,{type:`button`,disabled:ue===e.id||c,onClick:()=>ze(e.id),className:`flex items-center gap-1 py-1.5 px-2.5 rounded-lg text-xs font-semibold border backdrop-blur-sm transition-colors cursor-pointer ${o?`border-red-900/60 bg-red-950/50 text-red-400 hover:bg-red-900/60`:`border-red-200 bg-red-50/80 text-red-600 hover:bg-red-100`}`,title:`Remove file`,children:[(0,r.jsx)(Ie,{size:13}),(0,r.jsx)(`span`,{children:ue===e.id?`Deleting...`:`Delete`})]})]})})]}),n&&(0,r.jsxs)(`div`,{className:`mt-2 pt-2 border-t text-2xs truncate flex items-center gap-1.5 ${o?`border-zinc-800 text-zinc-300`:`border-gray-200 text-gray-700 font-medium`}`,children:[(0,r.jsx)(te,{size:12,className:`text-emerald-500 shrink-0`}),(0,r.jsxs)(`span`,{className:`truncate`,children:[`Attached: `,f]})]}),!t&&(0,r.jsxs)(`div`,{className:`mt-3 pt-3 border-t border-gray-200 dark:border-zinc-800 space-y-2.5`,children:[(0,r.jsx)(`div`,{className:`flex justify-end`,children:(0,r.jsx)(`button`,{type:`button`,disabled:c,onClick:()=>Ce(t=>({...t,[e.id]:u===`file`?`text`:`file`})),className:`flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-lg border cursor-pointer transition-colors hover:opacity-80 disabled:opacity-50`,style:{color:a,borderColor:`color-mix(in srgb, ${a} 35%, transparent)`},children:u===`file`?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(J,{size:11}),` Send text only`]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Re,{size:11}),` Send file`]})})}),u===`file`&&(0,r.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,r.jsxs)(`label`,{className:`cursor-pointer relative`,children:[(0,r.jsx)(`input`,{type:`file`,className:`hidden`,style:{display:`none`},tabIndex:-1,disabled:c,onChange:t=>{let n=t.target.files?.[0];n&&Fe(e.id,n),t.target.value=``}}),(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5 py-1.5 px-3 rounded-lg text-xs font-semibold border transition-all shadow-2xs ${o?`border-zinc-700 hover:border-zinc-600 text-zinc-200 bg-zinc-800 hover:bg-zinc-750`:`border-gray-300 hover:border-gray-400 text-gray-800 bg-white hover:bg-gray-50`}`,children:[(0,r.jsx)(Re,{size:13,style:{color:a}}),(0,r.jsx)(`span`,{children:i?`Change File`:n?`Replace File`:`Choose File`})]})]}),i&&(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5 py-1 px-2.5 rounded-lg text-xs border ${o?`bg-zinc-800 border-zinc-700 text-zinc-200`:`bg-white border-gray-300 text-gray-800 shadow-2xs`}`,children:[(0,r.jsx)(J,{size:12,style:{color:a}}),(0,r.jsx)(`span`,{className:`font-medium truncate max-w-[200px]`,children:i.name}),(0,r.jsxs)(`span`,{className:`text-2xs opacity-60`,children:[`(`,(i.size/1024).toFixed(0),` KB)`]}),(0,r.jsx)(`button`,{type:`button`,onClick:()=>ye(t=>{let n={...t};return delete n[e.id],n}),className:`ml-1 text-gray-400 hover:text-red-500 cursor-pointer font-bold`,title:`Clear chosen file`,children:`✕`})]})]}),u===`text`&&(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-2xs font-semibold uppercase tracking-wider mb-1 ${o?`text-zinc-400`:`text-gray-500`}`,children:`Text`}),(0,r.jsx)(`textarea`,{rows:2,disabled:c,value:s,onChange:t=>xe(n=>({...n,[e.id]:t.target.value})),placeholder:`Enter text or abstract notes...`,className:`w-full px-3 py-2 text-xs rounded-xl border focus:outline-none transition-all ${o?`bg-zinc-900 border-zinc-700 text-white placeholder-zinc-500 focus:border-zinc-500`:`bg-white border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-400`}`})]}),(u===`file`?i:s.trim())&&(0,r.jsxs)(`div`,{className:`flex items-center justify-end gap-2 pt-1`,children:[u===`file`&&i&&(0,r.jsx)(`button`,{type:`button`,disabled:c,onClick:()=>ye(t=>{let n={...t};return delete n[e.id],n}),className:`text-xs px-3 py-1.5 rounded-lg border border-gray-300 dark:border-zinc-700 text-gray-600 dark:text-zinc-400 hover:text-gray-900 dark:hover:text-white cursor-pointer`,children:`Clear File`}),(0,r.jsx)(`button`,{type:`button`,disabled:c,onClick:()=>Le(e.id,l,u),style:{backgroundColor:a},className:`flex items-center gap-1.5 px-4 py-2 rounded-xl text-xs font-bold text-white shadow-sm hover:opacity-90 transition-all cursor-pointer disabled:opacity-50`,children:c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-3.5 w-3.5 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Uploading...`})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Re,{size:13}),(0,r.jsx)(`span`,{children:u===`file`?`Upload File`:`Submit Text`})]})})]})]})]})})};if(d===`profile`){let e=H?.registration||{},t=H?.editable_fields||[],n=H?.locked_fields||[],i=H?.payment||{},l=H?.addons?.items||[],u=s?`p-4 sm:p-5 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 backdrop-blur-md ${o?`bg-black/35 border-white/12 text-white`:`bg-white/28 border-white/70 text-gray-900 shadow-sm hover:bg-white/35`}`:`p-4 sm:p-5 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${o?`bg-zinc-900 border-zinc-800 text-white`:`bg-white border-gray-200/90 text-gray-900`}`,d=s?{boxShadow:o?`0 8px 32px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1)`:`0 8px 32px 0 rgba(31, 38, 135, 0.08), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.85)`}:{};return(0,r.jsxs)(`div`,{className:`flex flex-col ${c?`w-full flex-1`:`h-full overflow-hidden min-h-0`} relative bg-transparent ${o?`text-white`:`text-gray-900`}`,style:c?void 0:{overflow:`clip`},onScroll:c?void 0:e=>{e.currentTarget.scrollTop!==0&&(e.currentTarget.scrollTop=0),e.currentTarget.scrollLeft!==0&&(e.currentTarget.scrollLeft=0)},children:[Ue(),(0,r.jsxs)(`div`,{className:`p-4 border-b flex justify-between items-center shadow-xs shrink-0 relative z-10 ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200`}`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`font-bold text-base ${o?`text-white`:`text-gray-900`}`,children:D||`Attendee Profile`}),(0,r.jsx)(`p`,{className:`text-xs ${o?`text-zinc-400`:`text-gray-600`}`,children:e.registration_number?`Reg #: ${e.registration_number}`:`Attendee Portal`})]}),(0,r.jsxs)(`button`,{onClick:je,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold rounded-lg transition-colors cursor-pointer border backdrop-blur-sm ${o?`text-red-400 bg-red-950/40 hover:bg-red-900/50 border-red-900/40`:`text-red-600 bg-red-50/70 hover:bg-red-100 border-red-200`}`,title:`Logout`,children:[(0,r.jsx)($,{size:14}),(0,r.jsx)(`span`,{children:`Logout`})]})]}),(0,r.jsxs)(`div`,{className:`${c?`w-full flex-1 p-4 space-y-4`:`flex-1 overflow-y-auto p-4 space-y-4 min-h-0 overscroll-contain`} relative z-10`,children:[Q&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-center justify-between text-xs shadow-2xs backdrop-blur-xl ${o?`bg-blue-950/60 border-blue-800 text-blue-300`:`bg-blue-50/80 border-blue-200 text-blue-800`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsx)(G,{size:16,className:`shrink-0 text-blue-400`}),(0,r.jsx)(`span`,{children:`Payment page opened in a new tab. If not opened, click:`})]}),(0,r.jsxs)(`a`,{href:Q,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1 font-bold underline text-blue-400 hover:text-blue-300 shrink-0 ml-2`,children:[(0,r.jsx)(`span`,{children:`Complete Payment`}),(0,r.jsx)(ae,{size:12})]})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs shadow-2xs backdrop-blur-xl ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50/80 border-red-200 text-red-700`}`,children:[(0,r.jsx)(R,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),x&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs shadow-2xs backdrop-blur-xl ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50/80 border-green-200 text-green-700`}`,children:[(0,r.jsx)(B,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:x})]}),(0,r.jsxs)(`div`,{className:u,style:d,children:[(0,r.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-[3px] opacity-90`,style:{background:`linear-gradient(90deg, ${a}, color-mix(in srgb, ${a} 20%, transparent) 80%, transparent)`}}),(0,r.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,r.jsx)(`span`,{className:`text-2xs font-bold uppercase tracking-wider ${o?`text-zinc-400`:`text-gray-500`}`,children:`Registration Details`}),e.status&&(0,r.jsx)(`span`,{className:`px-2.5 py-0.5 rounded-full text-2xs font-semibold capitalize border ${o?`bg-emerald-950/80 text-emerald-300 border-emerald-800/80`:`bg-green-100/80 text-green-800 border-green-200`}`,children:e.status})]}),(0,r.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 text-xs`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`span`,{className:`${o?`text-zinc-400`:`text-gray-600`} block text-2xs`,children:`Registration No:`}),(0,r.jsx)(`span`,{className:`font-bold font-mono ${o?`text-white`:`text-gray-900`}`,children:e.registration_number||`N/A`})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`span`,{className:`${o?`text-zinc-400`:`text-gray-600`} block text-2xs`,children:`Ticket Type:`}),(0,r.jsx)(`span`,{className:`font-bold ${o?`text-white`:`text-gray-900`}`,children:e.registration_type||`N/A`})]})]}),i&&i.state&&(0,r.jsxs)(`div`,{className:`pt-2 border-t flex items-center justify-between text-xs ${o?`border-zinc-800 text-zinc-300`:`border-gray-200 text-gray-700`}`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,r.jsx)(Oe,{size:14,className:o?`text-zinc-400`:`text-gray-500`}),(0,r.jsxs)(`span`,{children:[`Payment: `,(0,r.jsx)(`strong`,{className:`capitalize`,children:i.state}),` (`,i.currency,` `,i.amount,`)`]})]}),i.receipt_url&&(0,r.jsxs)(`a`,{href:i.receipt_url,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1 font-semibold hover:underline`,style:{color:a},children:[(0,r.jsx)(`span`,{children:`Receipt`}),(0,r.jsx)(ae,{size:12})]})]})]}),(0,r.jsxs)(`form`,{onSubmit:He,className:`space-y-4`,children:[t.length===0?(0,r.jsx)(`div`,{className:`p-6 rounded-2xl border text-center py-6 text-xs ${o?`bg-zinc-900/40 border-zinc-800 text-zinc-400`:`bg-white border-gray-200 text-gray-500`}`,children:`No editable fields configured.`}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(`div`,{className:u,style:d,children:[(0,r.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-[3px] opacity-90`,style:{background:`linear-gradient(90deg, ${a}, color-mix(in srgb, ${a} 20%, transparent) 80%, transparent)`}}),he&&(0,r.jsx)(`div`,{className:`flex justify-end`,children:(0,r.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-2xs font-semibold px-2 py-0.5 rounded-full border ${o?`bg-blue-950/60 text-blue-300 border-blue-800/80`:`bg-blue-50 text-blue-700 border-blue-200`}`,children:[(0,r.jsx)(te,{size:11}),` Initial draft restored`]})}),(0,r.jsx)(`div`,{className:`flex flex-wrap -mx-1.5`,children:t.map(e=>qe(e,e.type===`file`||e.width===`full`?`w-full`:`w-full md:w-1/2`,n))})]})}),l.length>0&&(0,r.jsxs)(`div`,{className:u,style:d,children:[(0,r.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-[3px] opacity-90`,style:{background:`linear-gradient(90deg, ${a}, color-mix(in srgb, ${a} 20%, transparent) 80%, transparent)`}}),(0,r.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,r.jsxs)(`span`,{className:`px-3 py-1 rounded-full text-2xs font-extrabold uppercase tracking-wider flex items-center gap-1.5 shadow-2xs border`,style:{backgroundColor:o?`rgba(255,255,255,0.06)`:`color-mix(in srgb, ${a} 8%, white)`,borderColor:o?`rgba(255,255,255,0.12)`:`color-mix(in srgb, ${a} 22%, white)`,color:a},children:[(0,r.jsx)(Pe,{size:12}),` Available Add-ons`]}),(0,r.jsx)(`span`,{className:`text-2xs font-medium ${o?`text-zinc-400`:`text-gray-600`}`,children:`Select items to add`})]}),(0,r.jsx)(`div`,{className:`space-y-2 pt-1`,children:l.map(e=>{let t=!!e.purchased,n=K.includes(e.name);return(0,r.jsxs)(`div`,{onClick:()=>Ve(e.name,t),className:`p-3 rounded-xl border text-xs flex items-center justify-between transition-all ${t?o?`bg-zinc-950/60 border-zinc-800 opacity-70 cursor-default`:`bg-gray-100/80 border-gray-200 opacity-90 cursor-default`:n?o?`border-blue-500 bg-blue-950/50 cursor-pointer shadow-xs`:`border-blue-500 bg-blue-50/70 cursor-pointer shadow-xs`:o?`border-zinc-800 bg-zinc-900/60 hover:border-zinc-700 cursor-pointer`:`border-gray-200 bg-white hover:border-gray-300 cursor-pointer shadow-2xs`}`,style:{borderColor:n&&!t?a:void 0,backgroundColor:n&&!t?o?`color-mix(in srgb, ${a} 25%, rgba(0,0,0,0.5))`:`color-mix(in srgb, ${a} 12%, rgba(255,255,255,0.85))`:void 0},children:[(0,r.jsxs)(`div`,{className:`flex items-start gap-2.5 flex-1 pr-3`,children:[(0,r.jsx)(`input`,{type:`checkbox`,checked:n,disabled:t,onChange:()=>Ve(e.name,t),className:`mt-0.5 rounded text-blue-600 focus:ring-0 cursor-pointer`}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`div`,{className:`font-semibold leading-snug ${o?`text-white`:`text-gray-900`}`,children:e.name}),(0,r.jsxs)(`div`,{className:`font-bold text-xs mt-1`,style:{color:a},children:[e.currency,` `,Number(e.price).toLocaleString()]})]})]}),t?(0,r.jsxs)(`span`,{className:`px-2 py-0.5 rounded text-2xs font-semibold flex items-center gap-1 shrink-0 border backdrop-blur-sm ${o?`bg-emerald-950/80 text-emerald-300 border-emerald-800/80`:`bg-green-100/80 text-green-800 border-green-200`}`,children:[(0,r.jsx)(te,{size:12}),` Purchased`]}):(0,r.jsx)(`span`,{className:`text-2xs font-semibold px-2.5 py-1 rounded-lg transition-colors shrink-0 shadow-2xs ${n?`bg-blue-600 text-white`:o?`bg-white/10 text-zinc-300`:`bg-white/70 text-gray-700`}`,style:{backgroundColor:n?a:void 0},children:n?`Selected`:`Select`})]},e.name)})})]}),(0,r.jsx)(`div`,{className:`pt-2`,children:(0,r.jsx)(`button`,{type:`submit`,disabled:h||_!==null,style:{backgroundColor:a},className:`w-full py-3 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50 hover:shadow-lg`,children:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-4 w-4 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Saving Profile...`})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(we,{size:16}),(0,r.jsx)(`span`,{children:`Save & Update Profile`})]})})})]})]})]})}return d===`request_code`?(0,r.jsxs)(`div`,{className:`flex flex-col ${c?`w-full flex-1`:`h-full overflow-y-auto`} relative bg-transparent ${o?`text-white`:`text-gray-900`}`,children:[Ue(),(0,r.jsxs)(`div`,{className:`p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center relative z-10`,children:[(0,r.jsxs)(`div`,{className:`flex justify-between items-center mb-4`,children:[(0,r.jsxs)(`button`,{onClick:()=>{f(`login`),b(null),S(null)},className:`flex items-center gap-1.5 text-xs font-semibold transition-colors cursor-pointer ${o?`text-zinc-400 hover:text-white`:`text-gray-600 hover:text-gray-900`}`,children:[(0,r.jsx)(A,{size:14}),(0,r.jsx)(`span`,{children:`Back to Login`})]}),(0,r.jsx)(`button`,{onClick:()=>{f(`reset`),b(null),S(null)},className:`text-xs font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Generate Password →`})]}),(0,r.jsxs)(`div`,{className:`p-6 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200/90`}`,children:[(0,r.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-[2.5px] opacity-90`,style:{background:`linear-gradient(90deg, ${a}, transparent 80%)`}}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`text-lg font-bold ${o?`text-white`:`text-gray-900`}`,children:`Get Verification Code`}),(0,r.jsx)(`p`,{className:`text-xs mt-1 ${o?`text-zinc-400`:`text-gray-600`}`,children:`Enter your registered email or registration number to receive a verification code.`})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50/80 border-red-200 text-red-700`}`,children:[(0,r.jsx)(R,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),x&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50/80 border-green-200 text-green-700`}`,children:[(0,r.jsx)(B,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:x})]}),(0,r.jsxs)(`form`,{onSubmit:ke,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1.5 ${o?`text-zinc-200`:`text-gray-800`}`,children:`Registration Number or Email`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(me,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:k||C,onChange:e=>{j(e.target.value),w(e.target.value)},placeholder:`e.g. attendee@example.com or REG12345`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsx)(`button`,{type:`submit`,disabled:z,style:{backgroundColor:a},className:`w-full py-2.5 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center cursor-pointer disabled:opacity-50 mt-2 hover:shadow-lg`,children:z?(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-4 w-4 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Sending Code...`})]}):`Send Verification Code`}),(0,r.jsx)(`div`,{className:`text-center pt-2 border-t border-gray-200 dark:border-zinc-800`,children:(0,r.jsx)(`button`,{type:`button`,onClick:()=>{f(`reset`),b(null),S(null)},className:`text-xs font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Already have a code? Click here to generate password`})})]})]})]})]}):d===`reset`?(0,r.jsxs)(`div`,{className:`flex flex-col ${c?`w-full flex-1`:`h-full overflow-y-auto`} relative bg-transparent ${o?`text-white`:`text-gray-900`}`,children:[Ue(),(0,r.jsxs)(`div`,{className:`p-5 flex-1 max-w-md mx-auto w-full relative z-10`,children:[(0,r.jsxs)(`button`,{onClick:()=>{f(`login`),b(null),S(null)},className:`flex items-center gap-1.5 text-xs font-semibold mb-4 transition-colors cursor-pointer ${o?`text-zinc-400 hover:text-white`:`text-gray-600 hover:text-gray-900`}`,children:[(0,r.jsx)(A,{size:14}),(0,r.jsx)(`span`,{children:`Back to Login`})]}),(0,r.jsxs)(`div`,{className:`p-6 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200/90`}`,children:[(0,r.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-[2.5px] opacity-90`,style:{background:`linear-gradient(90deg, ${a}, transparent 80%)`}}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`text-lg font-bold ${o?`text-white`:`text-gray-900`}`,children:`Generate / Reset Password`}),(0,r.jsx)(`p`,{className:`text-xs mt-1 ${o?`text-zinc-400`:`text-gray-600`}`,children:`You will get a verification code on your registered email.`})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50/80 border-red-200 text-red-700`}`,children:[(0,r.jsx)(R,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),x&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50/80 border-green-200 text-green-700`}`,children:[(0,r.jsx)(B,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:x})]}),(0,r.jsxs)(`form`,{onSubmit:Ae,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1.5 ${o?`text-zinc-200`:`text-gray-800`}`,children:`Registration Number or Email`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(me,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:k||C,onChange:e=>{j(e.target.value),w(e.target.value)},placeholder:`e.g. attendee@example.com or REG12345`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsxs)(`div`,{className:`flex justify-between items-center mb-1.5`,children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold ${o?`text-zinc-200`:`text-gray-800`}`,children:`Verification Code`}),(0,r.jsx)(`button`,{type:`button`,onClick:()=>{j(k||C),f(`request_code`),b(null),S(null)},className:`text-xs font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Get code on email`})]}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(de,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:M,onChange:e=>N(e.target.value),placeholder:`Enter code from email`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1.5 ${o?`text-zinc-200`:`text-gray-800`}`,children:`New Password`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(Z,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`password`,required:!0,value:F,onChange:e=>I(e.target.value),placeholder:`Enter new password`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1.5 ${o?`text-zinc-200`:`text-gray-800`}`,children:`Confirm Password`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(Z,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`password`,required:!0,value:ne,onChange:e=>L(e.target.value),placeholder:`Re-enter new password`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 20%, transparent), 0 1px 2px 0 rgba(0,0,0,0.05)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsx)(`button`,{type:`submit`,disabled:p,style:{backgroundColor:a},className:`w-full py-2.5 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center cursor-pointer disabled:opacity-50 mt-2 hover:shadow-lg`,children:p?`Updating Password...`:`Set New Password`})]})]})]})]}):(0,r.jsxs)(`div`,{className:`flex flex-col ${c?`w-full flex-1`:`h-full overflow-y-auto`} relative bg-transparent ${o?`text-white`:`text-gray-900`}`,children:[Ue(),(0,r.jsx)(`div`,{className:`p-5 flex-1 max-w-md mx-auto w-full flex flex-col justify-center relative z-10`,children:(0,r.jsxs)(`div`,{className:`p-6 rounded-2xl border space-y-4 relative overflow-hidden transition-all duration-200 shadow-xs hover:shadow-sm ${o?`bg-zinc-900 border-zinc-800`:`bg-white border-gray-200/90`}`,children:[(0,r.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-[2.5px] opacity-90`,style:{background:`linear-gradient(90deg, ${a}, transparent 80%)`}}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h3`,{className:`text-lg font-bold ${o?`text-white`:`text-gray-900`}`,children:`Attendee Login`}),(0,r.jsx)(`p`,{className:`text-xs mt-1 ${o?`text-zinc-400`:`text-gray-600`}`,children:`Sign in with your email or registration number`})]}),y&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${o?`bg-red-950/60 border-red-900 text-red-300`:`bg-red-50/80 border-red-200 text-red-700`}`,children:[(0,r.jsx)(R,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:y})]}),x&&(0,r.jsxs)(`div`,{className:`p-3 border rounded-xl flex items-start gap-2 text-xs backdrop-blur-md ${o?`bg-emerald-950/60 border-emerald-900 text-emerald-300`:`bg-green-50/80 border-green-200 text-green-700`}`,children:[(0,r.jsx)(B,{size:16,className:`shrink-0 mt-0.5`}),(0,r.jsx)(`span`,{children:x})]}),(0,r.jsxs)(`form`,{onSubmit:De,className:`space-y-4`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1.5 ${o?`text-zinc-200`:`text-gray-800`}`,children:`Email or Registration Number`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(me,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`text`,required:!0,value:C,onChange:e=>w(e.target.value),placeholder:`Enter email or registration number`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 25%, transparent), 0 4px 16px 0 rgba(0,0,0,0.06)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`label`,{className:`block text-xs font-semibold mb-1.5 ${o?`text-zinc-200`:`text-gray-800`}`,children:`Password`}),(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(`div`,{className:`absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none`,children:(0,r.jsx)(Z,{size:15,style:{color:a}})}),(0,r.jsx)(`input`,{type:`password`,required:!0,value:T,onChange:e=>E(e.target.value),placeholder:`Enter password`,className:`w-full pl-10 pr-3.5 py-2.5 text-xs font-medium rounded-xl focus:outline-none transition-all border border-gray-300 dark:border-zinc-700 shadow-2xs ${o?`bg-zinc-900 text-white placeholder-zinc-500 hover:border-zinc-600 focus:bg-zinc-900`:`bg-white text-gray-900 placeholder-gray-400 hover:border-gray-400 focus:bg-white`}`,style:{borderLeftWidth:`3.5px`,borderLeftStyle:`solid`,borderLeftColor:a},onFocus:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 0 0 3px color-mix(in srgb, ${a} 25%, transparent), 0 4px 16px 0 rgba(0,0,0,0.06)`},onBlur:e=>{e.currentTarget.style.borderColor=o?`#3f3f46`:`#d1d5db`,e.currentTarget.style.borderLeftColor=a,e.currentTarget.style.boxShadow=`none`}})]})]}),(0,r.jsxs)(`div`,{className:`flex justify-between items-center text-xs`,children:[(0,r.jsx)(`button`,{type:`button`,onClick:()=>{j(C),f(`request_code`),b(null),S(null)},className:`font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Get Code`}),(0,r.jsx)(`button`,{type:`button`,onClick:()=>{j(C),f(`reset`),b(null),S(null)},className:`font-semibold hover:underline cursor-pointer`,style:{color:a},children:`Click to generate password`})]}),(0,r.jsx)(`button`,{type:`submit`,disabled:p,style:{backgroundColor:a},className:`w-full py-2.5 px-4 text-white text-sm font-bold rounded-xl hover:opacity-90 transition-all shadow-md flex items-center justify-center cursor-pointer disabled:opacity-50 hover:shadow-lg`,children:p?(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsxs)(`svg`,{className:`animate-spin h-4 w-4 text-white`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),(0,r.jsx)(`span`,{children:`Logging in...`})]}):`Login`})]})]})})]})},qe=[{id:1,type:`Delegate Registration`,name:`Delegate Registration`,category:`General Delegate`,price:2500,currency:`₹`,tax_info:`+ 18% GST (₹450)`,description:`Standard full-conference registration for practicing consultants, clinicians, and general delegates.`,perks:[`Access to all 3-day scientific halls & symposia`,`Official delegate kit, badge & conference bag`,`Buffet lunch & networking high tea included`,`Eligible for 6 CME Credit Hours & Certificate`],seats_left:`Available`,valid_till:`Early Bird until Oct 15, 2026`,form_schema:{title:`Delegate Registration Form`,review_fields:[],fields:[{id:`salutation`,label:`Title / Salutation`,type:`select`,options:[`Dr.`,`Prof.`,`Mr.`,`Mrs.`,`Ms.`],required:!0},{id:`full_name`,label:`Full Name`,type:`text`,required:!0,placeholder:`Your full name`},{id:`email`,label:`Email Id`,type:`email`,required:!0,placeholder:`Enter your email address`,description:`Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox.`},{id:`phone`,label:`Phone Number`,type:`phone`,required:!0,placeholder:`Enter your mobile number`,description:`Please enter a valid mobile number for SMS confirmations and important notifications.`},{id:`designation`,label:`Designation / Role`,type:`text`,required:!0,placeholder:`e.g. Senior Consultant / Assistant Professor`},{id:`organisation`,label:`Institute / Hospital / Clinic`,type:`text`,required:!0,placeholder:`e.g. Apollo Hospitals / AIIMS`},{id:`specialisation`,label:`Specialisation / Department`,type:`text`,required:!1,placeholder:`e.g. Obstetrics & Gynaecology`},{id:`council_number`,label:`Medical Council Registration No.`,type:`text`,required:!1,placeholder:`e.g. MCI-12345 / SMC-67890`}]}},{id:2,type:`Student / PG Resident Delegate`,name:`Student / PG Resident Delegate`,category:`Resident / PG`,price:1200,currency:`₹`,tax_info:`+ 18% GST (₹216)`,description:`Special subsidised rate for residents, interns, and postgraduate medical fellows.`,perks:[`Subsidised student entry to all scientific sessions`,`Poster presentation & paper competition eligibility`,`Delegate kit, digital abstract book & lunch`,`Certificate of participation & student recognition`],seats_left:`85 seats left`,valid_till:`Valid with Student ID / Bonafide`,form_schema:{title:`Student / PG Resident Registration`,review_fields:[{id:`bonafide_letter`,submission:{reviewer:`Admin Committee`}}],fields:[{id:`salutation`,label:`Title / Salutation`,type:`select`,options:[`Dr.`,`Mr.`,`Ms.`],required:!0},{id:`full_name`,label:`Full Name`,type:`text`,required:!0,placeholder:`Your full name`},{id:`email`,label:`Email Id`,type:`email`,required:!0,placeholder:`Enter your email address`,description:`Please enter a valid email address. Your abstract acknowledgement, review updates, and final communication will be sent to this mailbox.`},{id:`phone`,label:`Phone Number`,type:`phone`,required:!0,placeholder:`Enter your mobile number`,description:`Please enter a valid mobile number for SMS confirmations and important notifications.`},{id:`college`,label:`Medical College / University`,type:`text`,required:!0,placeholder:`e.g. Grant Medical College / KEM Hospital`},{id:`pg_year`,label:`Current Year of PG / Residency`,type:`select`,options:[`1st Year PG`,`2nd Year PG`,`3rd Year PG / Final Year`,`Senior Resident / Fellow`],required:!0},{id:`bonafide_letter`,label:`Bonafide Letter / Student ID`,type:`file`,required:!0,description:`Upload HOD recommendation letter or College ID card (PDF/JPG).`}]}},{id:3,type:`Faculty & Invited Speaker`,name:`Faculty & Invited Speaker`,category:`Faculty / Speaker`,price:0,currency:`₹`,tax_info:`Complimentary Pass`,description:`Honour pass for invited national & international faculties, session chairpersons, and keynote orators.`,perks:[`VIP Faculty Lounge & Executive dining access`,`Speaker preview room priority assistance`,`Exclusive Banquet & Gala Dinner invitation`,`FOGSI Yuva 2026 Commemorative Memento`],seats_left:`By Invitation`,valid_till:`Confirm by Oct 10, 2026`,form_schema:{title:`Faculty & Speaker Registration Form`,review_fields:[],fields:[{id:`salutation`,label:`Title / Salutation`,type:`select`,options:[`Prof.`,`Dr.`],required:!0},{id:`full_name`,label:`Full Name`,type:`text`,required:!0,placeholder:`Your full name`},{id:`email`,label:`Email Id`,type:`email`,required:!0,placeholder:`Enter your email address`,description:`Communication and session updates will be sent to this mailbox.`},{id:`phone`,label:`Phone Number`,type:`phone`,required:!0,placeholder:`Enter your mobile number`},{id:`designation`,label:`Faculty Title & Institution`,type:`text`,required:!0,placeholder:`e.g. Professor & Head, Department of OBGYN`},{id:`session_topic`,label:`Session / Lecture Topic`,type:`text`,required:!1,placeholder:`e.g. Advances in Minimal Invasive Surgery`},{id:`speaker_photo`,label:`Faculty Photograph & Profile`,type:`file`,required:!1,description:`High resolution portrait photo for conference brochure.`}]}},{id:4,type:`Hands-on Surgical Masterclass`,name:`Hands-on Surgical Masterclass`,category:`Workshop Masterclass`,price:3500,currency:`₹`,tax_info:`+ 18% GST (₹630)`,description:`Pre-conference intensive workshop on laparoscopic suturing, pelvic anatomy dissection, and emergency drills.`,perks:[`Dedicated dry lab simulator workstation`,`One-on-one mentorship by renowned endoscopic surgeons`,`Masterclass syllabus booklet & video access`,`Separate Hands-on Workshop Competency Certificate`],seats_left:`Only 28 seats left`,valid_till:`Strictly Limited Capacity`,form_schema:{title:`Hands-on Surgical Workshop Registration`,review_fields:[],fields:[{id:`salutation`,label:`Title / Salutation`,type:`select`,options:[`Dr.`,`Prof.`],required:!0},{id:`full_name`,label:`Full Name`,type:`text`,required:!0,placeholder:`Your full name`},{id:`email`,label:`Email Id`,type:`email`,required:!0,placeholder:`Enter your email address`,description:`Workshop pre-reading materials and schedules will be sent here.`},{id:`phone`,label:`Phone Number`,type:`phone`,required:!0,placeholder:`Enter your mobile number`},{id:`experience_level`,label:`Laparoscopic Experience Level`,type:`select`,options:[`Beginner / Basic`,`Intermediate (< 50 cases)`,`Advanced (> 50 cases)`],required:!0},{id:`hospital_city`,label:`Hospital & City`,type:`text`,required:!0,placeholder:`e.g. Civil Hospital, Ahmedabad`}]}},{id:5,type:`Accompanying Person / Spouse`,name:`Accompanying Person / Spouse`,category:`Guest / Spouse`,price:1800,currency:`₹`,tax_info:`+ 18% GST (₹324)`,description:`Registration for spouse, family member, or guest accompanying a registered conference delegate.`,perks:[`Access to exhibition trade area & spouse hospitality lounge`,`All buffet lunches, tea/coffee breaks & Gala Banquet dinner`,`City sightseeing tour & cultural evening programme`,`Accompanying guest identification badge`],seats_left:`Available`,valid_till:`Open Registration`,form_schema:{title:`Accompanying Person Registration`,review_fields:[],fields:[{id:`salutation`,label:`Title / Salutation`,type:`select`,options:[`Mr.`,`Mrs.`,`Ms.`,`Dr.`],required:!0},{id:`full_name`,label:`Full Name`,type:`text`,required:!0,placeholder:`Guest's full name`},{id:`email`,label:`Email Id`,type:`email`,required:!1,placeholder:`Enter email address`},{id:`phone`,label:`Mobile Number`,type:`phone`,required:!0,placeholder:`Enter contact number`},{id:`primary_delegate_name`,label:`Registered Primary Delegate's Name`,type:`text`,required:!0,placeholder:`Name of the doctor you are accompanying`,description:`Must match a registered delegate's name.`}]}}];function Je(e){if(!e)return`bottom-right`;switch(e){case`bottom-left`:case`left-bottom`:return`bottom-left`;case`top-right`:case`right-top`:return`top-right`;case`top-left`:case`left-top`:return`top-left`;default:return`bottom-right`}}var Ye=e=>{switch(e){case`bottom-left`:return{bottom:`20px`,left:`20px`,top:`auto`,right:`auto`};case`top-right`:return{top:`20px`,right:`20px`,bottom:`auto`,left:`auto`};case`top-left`:return{top:`20px`,left:`20px`,bottom:`auto`,right:`auto`};default:return{bottom:`20px`,right:`20px`,top:`auto`,left:`auto`}}},Xe=e=>{switch(e){case`bottom-left`:return`bottom-5 left-5`;case`top-right`:return`top-5 right-5`;case`top-left`:return`top-5 left-5`;default:return`bottom-5 right-5`}},Ze=({config:e})=>{let[t,i]=(0,n.useState)(`registration`),[a,o]=(0,n.useState)(e.displayMode!==`popup`),[s,c]=(0,n.useState)(!1),[l,u]=(0,n.useState)([]),[d,h]=(0,n.useState)(`FOGSI YUVA 2026`),[g,_]=(0,n.useState)(null),[v,y]=(0,n.useState)(!0),[b,x]=(0,n.useState)(``),[S,C]=(0,n.useState)(`All`),[w,T]=(0,n.useState)(!1),[E,D]=(0,n.useState)(null),[O,k]=(0,n.useState)(null),[A,j]=(0,n.useState)(()=>Je(e.position)),[N,P]=(0,n.useState)(null),[F,ee]=(0,n.useState)(null),[I,te]=(0,n.useState)(!1),[ne,re]=(0,n.useState)(!1),L=(0,n.useRef)(null),R=(0,n.useRef)(null),z=(0,n.useRef)(!1);(0,n.useEffect)(()=>{e.position&&j(Je(e.position))},[e.position]);let B=e.themeMode===`dark`||e.theme?.mode===`dark`,V=e.theme?.primaryColor||`#2563eb`,U=!!e.isAbstract,W=(0,n.useMemo)(()=>new f(e.debug),[e.debug]),G=(0,n.useMemo)(()=>new p(e.baseUrl,e.eventSlug,W,e.timeoutMs??12e4),[e.baseUrl,e.eventSlug,W,e.timeoutMs]),K=(0,n.useMemo)(()=>new m(e.eventSlug),[e.eventSlug]),q=(0,n.useRef)(e.displayMode),J=(0,n.useRef)(null),[Y,oe]=(0,n.useState)(null);(0,n.useEffect)(()=>{K.getXrefId()},[K]),(0,n.useEffect)(()=>{if(!a)return;let t=K.getXrefId();t&&G.getDraft(t).then(t=>{let n=t?.data||t;n&&n.registration_type&&(oe(n),e.onEvent?.(`draft_loaded`,n))}).catch(e=>{W.log(`No draft found for this session`,e)})},[a,G,K,W]);let X=(0,n.useMemo)(()=>{if(!Y||!g||String(Y.registration_type)!==String(g.id))return{};let e={...Y.custom_data||{}};if(Y.salutation&&(e.salutation=Y.salutation,e.title=Y.salutation),Y.name){e.name=Y.name,e.full_name=Y.name,e.fullName=Y.name;let t=Y.name.trim().split(/\s+/);t.length>0&&!e.first_name&&(e.first_name=t[0]),t.length>1&&!e.last_name&&(e.last_name=t.slice(1).join(` `))}return Y.email&&(e.email=Y.email),Y.phone&&(e.phone=Y.phone,e.mobile=Y.phone,e.phoneNumber=Y.phone),(g?.form_schema?.fields||[]).forEach(t=>{let n=We(t.id,t.label);e[t.id]===void 0&&e[n]!==void 0&&(e[t.id]=e[n])}),e},[Y,g]);(0,n.useEffect)(()=>()=>{J.current&&clearTimeout(J.current)},[]);let se=(0,n.useCallback)(t=>{J.current&&clearTimeout(J.current),J.current=setTimeout(async()=>{if(!Object.values(t).some(e=>e!==``&&e!=null))return;let n=new Set([`salutation`,`title`,`name`,`fullName`,`full_name`,`firstName`,`lastName`,`email`,`phone`,`mobile`,`phoneNumber`,`selected_items`,`custom_data`]),r=g?.form_schema?.fields||[],i=new Map;r.forEach(e=>i.set(e.id,e));let a={...t.custom_data||{}};for(let[e,r]of Object.entries(t))if(!n.has(e)){let t=We(e,i.get(e)?.label);a[t]=r,t!==e&&(a[e]=r)}let o={xref_id:K.getXrefId(),salutation:t.salutation||t.title||``,name:t.name||t.fullName||t.full_name||[t.firstName,t.lastName].filter(Boolean).join(` `)||``,email:t.email||``,phone:t.phone||t.mobile||t.phoneNumber||``,registration_type:g?.id,custom_data:a,selected_items:t.selected_items||[],...U?{accept_review_file:!0}:{}};try{await G.trackProgress(o),e.onEvent?.(`draft_saved`,o)}catch(e){W.error(`Failed to save draft progress`,e)}},600)},[K,G,g,e,W,U]);(0,n.useEffect)(()=>{q.current!==e.displayMode&&(q.current=e.displayMode,o(e.displayMode!==`popup`),c(!1))},[e.displayMode]),(0,n.useEffect)(()=>{G.getFormSchema().then(t=>{let n=t?.data?.types||[];n.length>0?u(n):u(qe),(t?.data?.event_name||t?.data?.title||t?.data?.name)&&h(t.data.event_name||t.data.title||t.data.name),e.onEvent?.(`form_loaded`,t?.data)}).catch(t=>{W.error(`Failed to load schema, using default form types`,t),u(qe);let n={type:`schema_load`,message:t?.message||`Failed to load event schema`,error:t};e.onEvent?.(`error`,n),e.onError?.(n)}).finally(()=>y(!1))},[G]);let ce=async t=>{J.current&&clearTimeout(J.current),y(!0),D(null);let n=K.getXrefId(),r=new Set([`salutation`,`title`,`name`,`fullName`,`full_name`,`firstName`,`lastName`,`email`,`phone`,`mobile`,`phoneNumber`,`registration_type`,`selected_items`,`custom_data`,`xref_id`]),i=g?.form_schema?.fields||[],a=new Map;i.forEach(e=>a.set(e.id,e));let o={...t.custom_data||{}};for(let[e,n]of Object.entries(t))if(!r.has(e)){let t=We(e,a.get(e)?.label);o[t]=n,t!==e&&(o[e]=n)}let s={xref_id:n,salutation:t.salutation||t.title||``,name:t.name||t.fullName||t.full_name||[t.firstName,t.lastName].filter(Boolean).join(` `)||``,email:t.email||``,phone:t.phone||t.mobile||t.phoneNumber||``,registration_type:g.id,custom_data:o,selected_items:t.selected_items||[]};U&&(s.accept_review_file=!0);try{let t=await G.submitRegistration(s);K.updateXrefId(),oe(null);let n=U?null:t?.data?.payment_url||t?.payment_url||null;k(n),n&&typeof n==`string`&&n.trim()!==``&&window.open(n,`_blank`,`noopener,noreferrer`),T(!0);let r={registrationType:g.id,payload:s,response:t,paymentUrl:n};e.onEvent?.(`submitted`,r),e.onRegister?.(r),e.onRegistered?.(r)}catch(t){W.error(`Submission failed`,t);let n=t?.message||`Registration failed. Please check your information and try again.`,r={type:`submit_error`,message:n,error:t};e.onEvent?.(`error`,r),e.onError?.(r),D(n)}finally{y(!1)}},le=()=>{T(!1),D(null),k(null),_(null),oe(null)},ue=(0,n.useCallback)(e=>{if(e.stopPropagation(),e.button!==0||!L.current)return;let t=L.current.getBoundingClientRect();R.current={startX:e.clientX,startY:e.clientY,rect:t,corner:A},z.current=!1,te(!0)},[A]);if((0,n.useEffect)(()=>{if(!I)return;let t=e=>{if(!R.current)return;let t=e.clientX-R.current.startX,n=e.clientY-R.current.startY;z.current||Math.hypot(t,n)>5&&(z.current=!0),z.current&&P({x:t,y:n})},n=t=>{if(!R.current){te(!1),P(null),z.current=!1;return}let{rect:n,startX:r,startY:i}=R.current,a=t.clientX-r,o=t.clientY-i,s=z.current;if(R.current=null,te(!1),setTimeout(()=>{z.current=!1},100),!s){P(null);return}let c=n.left+a,l=n.top+o,u=c+n.width/2,d=l+n.height/2,f=typeof window<`u`?window.innerWidth:1024,p=typeof window<`u`?window.innerHeight:768,m=u>=f/2,h=d>=p/2,g=h?m?`bottom-right`:`bottom-left`:m?`top-right`:`top-left`,_=m?f-n.width-20:20,v=h?p-n.height-20:20,y=c-_,b=l-v;ee({transform:`translate3d(${y}px, ${b}px, 0)`,transition:`none`}),P(null),j(g),e.onEvent?.(`position_changed`,{position:g}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{ee({transform:`translate3d(0, 0, 0)`,transition:`transform 0.35s cubic-bezier(0.16, 1, 0.3, 1)`}),setTimeout(()=>{ee(null)},360)})})};return window.addEventListener(`pointermove`,t),window.addEventListener(`pointerup`,n),window.addEventListener(`pointercancel`,n),()=>{window.removeEventListener(`pointermove`,t),window.removeEventListener(`pointerup`,n),window.removeEventListener(`pointercancel`,n)}},[I,e]),!a&&e.displayMode===`popup`){let e={...Ye(A),...N?{transform:`translate3d(${N.x}px, ${N.y}px, 0) scale(1.05)`,transition:`none`,userSelect:`none`}:F?{transform:F.transform,transition:F.transition}:{transition:`all 0.3s cubic-bezier(0.16, 1, 0.3, 1)`}},t=ne||I;return(0,r.jsxs)(`div`,{ref:L,onMouseEnter:()=>re(!0),onMouseLeave:()=>re(!1),className:`fixed ${Xe(A)} z-50 select-none group`,style:e,children:[(0,r.jsx)(`div`,{onPointerDown:ue,className:`absolute -top-1.5 -left-1.5 w-7 h-7 rounded-full bg-slate-900 text-white shadow-lg border-2 border-white flex items-center justify-center cursor-grab active:cursor-grabbing hover:bg-black hover:scale-110 active:scale-95 transition-all duration-200 z-10 touch-none ${t?`opacity-100 scale-100 pointer-events-auto`:`opacity-0 scale-75 pointer-events-none group-hover:opacity-100 group-hover:scale-100 group-hover:pointer-events-auto`}`,title:`Hold and drag to change position`,children:(0,r.jsx)(Se,{size:13,className:`pointer-events-none text-white`})}),(0,r.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),!I&&o(!0)},className:`w-16 h-16 rounded-full text-white shadow-xl flex items-center justify-center cursor-pointer hover:scale-105 active:scale-95 transition-transform`,style:{backgroundColor:V},title:`Click to open registration`,children:(0,r.jsx)(`span`,{className:`font-bold text-sm tracking-wide pointer-events-none`,children:`Join`})})]})}let de=e.displayMode===`fullscreen`||e.displayMode===`popup`&&s,fe=e.backgroundImage||e.theme?.backgroundImage,Z=e.displayMode===`widget`,Q=`${fe?B?`bg-zinc-950 text-white`:`bg-slate-100/90 text-gray-900`:B?`bg-zinc-950 text-white`:`bg-[#fbf7f9] text-gray-900`} flex flex-col transition-all duration-300 ease-in-out relative `,$={fontFamily:e.theme?.fontFamily||`sans-serif`};return de?(Q+=`fixed inset-0 z-[9999] rounded-none overflow-hidden `,$.width=`100vw`,$.height=`100vh`):e.displayMode===`popup`?(Q+=`fixed ${Xe(A)} z-50 rounded-xl shadow-2xl border ${B?`border-zinc-800`:`border-gray-200`} overflow-hidden `,$.width=e.width||`400px`,$.height=e.height||`700px`,$.maxHeight=`90vh`,$.maxWidth=`calc(100vw - 32px)`,Object.assign($,Ye(A))):(Q+=`w-full min-h-screen border-none shadow-none rounded-none `,$.width=`100%`,$.minHeight=`100vh`),(0,r.jsxs)(`div`,{className:Q,style:{...$,overflow:Z?`visible`:`clip`},onScroll:e=>{Z||(e.currentTarget.scrollTop!==0&&(e.currentTarget.scrollTop=0),e.currentTarget.scrollLeft!==0&&(e.currentTarget.scrollLeft=0))},children:[fe&&(0,r.jsxs)(`div`,{className:`absolute inset-0 pointer-events-none overflow-hidden z-0 select-none`,children:[(0,r.jsx)(`div`,{className:`absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-700 pointer-events-none`,style:{backgroundImage:`url(${fe})`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,opacity:B?.55:.85,filter:B?`saturate(85%) contrast(105%)`:`saturate(95%) contrast(100%)`}}),(0,r.jsx)(`div`,{className:`absolute inset-0 pointer-events-none`,style:{background:B?`linear-gradient(180deg, rgba(9,9,11,0.45) 0%, rgba(9,9,11,0.65) 100%)`:`linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(248,250,252,0.18) 100%)`}})]}),v?(0,r.jsxs)(`div`,{className:`flex h-full items-center justify-center font-medium`,style:{color:V},children:[(0,r.jsxs)(`svg`,{className:`animate-spin -ml-1 mr-3 h-8 w-8`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,r.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,r.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}),`Processing...`]}):w?O?(0,r.jsxs)(`div`,{className:`flex flex-col h-full relative overflow-y-auto ${B?`bg-black text-white`:`bg-white text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`p-4 shadow-sm flex justify-between items-center z-10`,style:{backgroundColor:V,color:`white`},children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h2`,{className:`text-xl font-bold`,children:`Complete Payment`}),(0,r.jsx)(`p`,{className:`text-xs opacity-90 mt-0.5`,children:`Registration Submitted`})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:e.displayMode===`popup`&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`button`,{onClick:()=>c(!s),title:s?`Minimize`:`Expand`,className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:s?(0,r.jsx)(be,{size:18}):(0,r.jsx)(ve,{size:18})}),(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(He,{size:24})})]})})]}),(0,r.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center p-6 text-center`,children:[(0,r.jsx)(`div`,{className:`w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md`,style:{backgroundColor:`color-mix(in srgb, ${V} 12%, transparent)`,color:V},children:`💳`}),(0,r.jsx)(`h3`,{className:`text-2xl font-bold mb-2 ${B?`text-white`:`text-gray-900`}`,children:`Done Your Payment First`}),(0,r.jsx)(`p`,{className:`text-sm mb-6 max-w-xs leading-relaxed ${B?`text-zinc-300`:`text-gray-600`}`,children:`Please complete your payment in the new tab to confirm your booking and finalize your registration.`}),(0,r.jsxs)(`div`,{className:`w-full max-w-xs space-y-3`,children:[(0,r.jsxs)(`a`,{href:O,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full`,style:{backgroundColor:V},children:[(0,r.jsx)(`span`,{children:`Open Payment Page`}),(0,r.jsx)(ae,{size:16})]}),(0,r.jsx)(`button`,{onClick:le,className:`w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${B?`text-zinc-400 hover:text-white`:`text-gray-500 hover:text-gray-900`}`,children:`Register Another Person`})]})]})]}):(0,r.jsxs)(`div`,{className:`flex flex-col h-full items-center justify-center p-8 text-center relative ${B?`bg-black text-white`:`bg-white text-gray-900`}`,children:[e.displayMode===`popup`&&(0,r.jsx)(`div`,{className:`absolute top-4 right-4 flex items-center gap-2`,children:(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`cursor-pointer ${B?`text-zinc-400 hover:text-white`:`text-gray-400 hover:text-gray-900`}`,children:(0,r.jsx)(He,{size:24})})}),(0,r.jsx)(`div`,{className:`w-20 h-20 rounded-full flex items-center justify-center mb-6 text-4xl shadow-md`,style:{backgroundColor:V,color:`white`},children:`✓`}),(0,r.jsx)(`h2`,{className:`text-3xl font-bold mb-3 ${B?`text-white`:`text-gray-900`}`,children:U?`Submitted`:`Thank You!`}),(0,r.jsx)(`p`,{className:`mb-8 ${B?`text-zinc-300`:`text-gray-600`}`,children:U?`Your abstract has been submitted successfully.`:`Your registration has been successfully received.`}),(0,r.jsx)(`button`,{onClick:le,style:{backgroundColor:V},className:`text-white font-bold py-3 px-8 rounded-md hover:opacity-90 transition-opacity shadow-md cursor-pointer`,children:U?`Submit Again`:`Register Another Person`})]}):E?(0,r.jsxs)(`div`,{className:`flex flex-col h-full relative overflow-y-auto ${B?`bg-black text-white`:`bg-white text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`p-4 shadow-sm flex justify-between items-center z-10 bg-red-600 text-white`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`h2`,{className:`text-xl font-bold`,children:`Registration Failed`}),(0,r.jsx)(`p`,{className:`text-xs opacity-90 mt-0.5`,children:`Please try again`})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:e.displayMode===`popup`&&(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer`,children:(0,r.jsx)(He,{size:24})})})]}),(0,r.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center p-6 text-center`,children:[(0,r.jsx)(`div`,{className:`w-16 h-16 rounded-full flex items-center justify-center mb-4 text-2xl shadow-md border ${B?`bg-red-950/60 text-red-400 border-red-900`:`bg-red-50 text-red-600 border-red-200`}`,children:`✕`}),(0,r.jsx)(`h3`,{className:`text-2xl font-bold mb-2 ${B?`text-white`:`text-gray-900`}`,children:`Submission Error`}),(0,r.jsx)(`p`,{className:`text-sm mb-6 max-w-xs leading-relaxed ${B?`text-zinc-300`:`text-gray-600`}`,children:E}),(0,r.jsxs)(`div`,{className:`w-full max-w-xs space-y-3`,children:[(0,r.jsx)(`button`,{onClick:()=>D(null),style:{backgroundColor:V},className:`flex items-center justify-center gap-2 font-bold px-5 py-3 rounded-lg transition-opacity hover:opacity-90 text-white shadow-md w-full cursor-pointer`,children:(0,r.jsx)(`span`,{children:`Try Again`})}),(0,r.jsx)(`button`,{onClick:()=>{D(null),_(null)},className:`w-full py-2.5 px-4 text-sm font-semibold transition-colors cursor-pointer ${B?`text-zinc-400 hover:text-white`:`text-gray-500 hover:text-gray-900`}`,children:`Choose Another Ticket`})]})]})]}):g?(0,r.jsx)(Ue,{schema:g.form_schema,ticketType:g,theme:e.theme,displayMode:e.displayMode,backgroundImage:e.backgroundImage||e.theme?.backgroundImage,isExpanded:s,onToggleExpand:()=>c(!s),onClose:()=>o(!1),onSubmit:ce,onChange:se,initialValues:X,isDark:B,apiClient:G,storage:K,onError:e.onError,onEvent:e.onEvent,showReviewFields:U,onBack:()=>{J.current&&clearTimeout(J.current),_(null)}}):(0,r.jsxs)(`div`,{className:`flex flex-col ${Z?`w-full flex-1`:`h-full min-h-0`} ${B?`bg-zinc-950 text-white`:`bg-[#fbf7f9] text-gray-900`}`,children:[(0,r.jsxs)(`div`,{className:`px-5 sm:px-8 py-4 sm:py-5 shadow-xs flex justify-between items-center z-10 shrink-0 border-b border-white/10`,style:{backgroundColor:V,color:`white`},children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,r.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white/20 backdrop-blur-md flex items-center justify-center shrink-0 border border-white/30 shadow-xs`,children:(0,r.jsx)(Me,{size:20,className:`text-white`})}),(0,r.jsxs)(`div`,{children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsx)(`h2`,{className:`text-xl sm:text-2xl font-black tracking-tight`,children:U?`Abstract Submission`:t===`registration`?d:`Attendee Portal`}),(0,r.jsx)(`span`,{className:`text-2xs font-extrabold px-2 py-0.5 rounded-full bg-white/20 backdrop-blur-md uppercase tracking-wider text-white border border-white/30 hidden sm:inline-block`,children:`Official Portal`})]}),(0,r.jsx)(`p`,{className:`text-xs opacity-90 mt-0.5`,children:U?`Select a form type below to submit your abstract`:t===`registration`?`Select a registration form type below to begin your application`:`Registration & Profile Management`})]})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-3`,children:e.displayMode===`popup`&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`button`,{onClick:()=>c(!s),title:s?`Minimize`:`Expand`,className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1`,children:s?(0,r.jsx)(be,{size:18}):(0,r.jsx)(ve,{size:18})}),(0,r.jsx)(`button`,{onClick:()=>o(!1),className:`opacity-80 hover:opacity-100 transition-opacity cursor-pointer p-1`,children:(0,r.jsx)(He,{size:22})})]})})]}),!U&&(0,r.jsxs)(`div`,{className:`flex border-b shrink-0 shadow-2xs ${B?`border-zinc-800 bg-zinc-900`:`border-gray-200 bg-white`}`,children:[(0,r.jsxs)(`button`,{type:`button`,onClick:()=>i(`registration`),className:`flex-1 py-3 text-sm font-semibold text-center transition-all cursor-pointer relative`,style:{color:t===`registration`?V:B?`#a1a1aa`:`#6b7280`},children:[(0,r.jsx)(`span`,{children:`Registration Forms`}),(0,r.jsx)(`span`,{className:`ml-1.5 text-xs px-2 py-0.5 rounded-full bg-gray-100 dark:bg-zinc-800 font-bold`,children:l.length}),t===`registration`&&(0,r.jsx)(`span`,{className:`absolute bottom-0 left-0 right-0 h-0.5`,style:{backgroundColor:V}})]}),(0,r.jsxs)(`button`,{type:`button`,onClick:()=>i(`attendee`),className:`flex-1 py-3 text-sm font-semibold text-center transition-all cursor-pointer relative`,style:{color:t===`attendee`?V:B?`#a1a1aa`:`#6b7280`},children:[(0,r.jsx)(`span`,{children:`Attendee Login`}),t===`attendee`&&(0,r.jsx)(`span`,{className:`absolute bottom-0 left-0 right-0 h-0.5`,style:{backgroundColor:V}})]})]}),U||t===`registration`?(0,r.jsx)(`div`,{className:`${Z?`w-full flex-1`:`overflow-y-auto flex-1 min-h-0 overscroll-contain`} relative ${e.backgroundImage||e.theme?.backgroundImage?`bg-transparent`:B?`bg-zinc-950`:`bg-[#fbf7f9]`}`,children:(0,r.jsxs)(`div`,{className:`max-w-6xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 space-y-6`,children:[(0,r.jsxs)(`div`,{className:`p-4 rounded-2xl border transition-all shadow-xs flex flex-col md:flex-row items-center justify-between gap-3 ${B?`bg-zinc-900/90 border-zinc-800`:`bg-white border-pink-100/80 shadow-[0_2px_12px_rgba(217,70,239,0.03)]`}`,children:[(0,r.jsxs)(`div`,{className:`relative w-full md:w-72`,children:[(0,r.jsx)(`input`,{type:`text`,value:b,onChange:e=>x(e.target.value),placeholder:`Search form types, perks...`,className:`w-full pl-9 pr-4 py-2 text-xs rounded-xl border transition-all ${B?`bg-zinc-800/80 border-zinc-700 text-white placeholder-zinc-500 focus:outline-none focus:ring-2 focus:ring-fuchsia-500/20`:`bg-[#faf4f8] border-[#f0e2ed] text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-fuchsia-500/20`}`}),(0,r.jsx)(`div`,{className:`absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none text-gray-400`,children:(0,r.jsx)(Ae,{size:14})}),b&&(0,r.jsx)(`button`,{onClick:()=>x(``),className:`absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 text-xs cursor-pointer`,children:`✕`})]}),(0,r.jsx)(`div`,{className:`flex items-center gap-1.5 overflow-x-auto w-full md:w-auto py-1 scrollbar-none`,children:[`All`,`Delegates`,`Students / PG`,`Faculty`,`Workshops`,`Guests`].map(e=>{let t=S===e;return(0,r.jsx)(`button`,{type:`button`,onClick:()=>C(e),className:`text-xs px-3 py-1.5 rounded-xl font-medium shrink-0 transition-all cursor-pointer border ${t?`text-white font-bold shadow-xs`:B?`bg-zinc-800 border-zinc-700 text-zinc-300 hover:bg-zinc-750`:`bg-gray-50 border-gray-200 text-gray-700 hover:bg-gray-100`}`,style:t?{backgroundColor:V,borderColor:V}:{},children:e},e)})})]}),(()=>{let t=l.filter(e=>{let t=(e.type||e.name||``).toLowerCase(),n=(e.description||``).toLowerCase(),r=(e.category||``).toLowerCase(),i=b.toLowerCase(),a=!b||t.includes(i)||n.includes(i)||r.includes(i),o=!0;return S===`Delegates`?o=r.includes(`delegate`)&&!r.includes(`resident`)&&!r.includes(`student`):S===`Students / PG`?o=r.includes(`student`)||r.includes(`resident`)||r.includes(`pg`):S===`Faculty`?o=r.includes(`faculty`)||r.includes(`speaker`):S===`Workshops`?o=r.includes(`workshop`)||r.includes(`masterclass`):S===`Guests`&&(o=r.includes(`guest`)||r.includes(`accompanying`)||r.includes(`spouse`)),a&&o});return t.length===0?(0,r.jsxs)(`div`,{className:`text-center py-16 rounded-2xl border ${B?`bg-zinc-900 border-zinc-800 text-zinc-400`:`bg-white border-pink-100 text-gray-500`}`,children:[(0,r.jsx)(`p`,{className:`text-base font-bold`,children:`No form types matched your search`}),(0,r.jsx)(`p`,{className:`text-xs mt-1`,children:`Try clearing search terms or resetting the category filter.`}),(0,r.jsx)(`button`,{onClick:()=>{x(``),C(`All`)},className:`mt-4 px-4 py-2 rounded-xl text-xs font-bold text-white shadow-xs cursor-pointer`,style:{backgroundColor:V},children:`Reset Filters`})]}):(0,r.jsx)(`div`,{className:Z?`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6`:`space-y-4`,children:t.map(t=>{let n=!!(e.backgroundImage||e.theme?.backgroundImage),i=t.form_schema?.fields?.length||0,a=Number(t.price)===0||String(t.price).toLowerCase()===`free`,o=t.perks||[`Access to scientific sessions & exhibition`,`Official delegate badge & event kit`,`Certificate of attendance`];return(0,r.jsxs)(`div`,{onClick:()=>_(t),className:`rounded-2xl p-6 cursor-pointer transition-all duration-300 relative border border-l-4 flex flex-col justify-between group hover:-translate-y-1 ${n?B?`bg-black/40 border-white/10 hover:bg-black/55 backdrop-blur-md shadow-sm`:`bg-white/40 border-white/60 hover:bg-white/65 backdrop-blur-md shadow-sm`:B?`bg-zinc-900 border-zinc-800 hover:border-zinc-700 shadow-sm`:`bg-white border-pink-100/90 hover:border-pink-200 shadow-[0_4px_20px_rgba(217,70,239,0.05)] hover:shadow-[0_8px_30px_rgba(217,70,239,0.12)]`}`,style:{borderLeftColor:V},children:[(0,r.jsxs)(`div`,{children:[(0,r.jsxs)(`div`,{className:`flex items-center justify-between gap-2 mb-3`,children:[(0,r.jsx)(`span`,{className:`text-2xs font-extrabold uppercase tracking-wider px-2.5 py-1 rounded-full border ${B?`bg-zinc-800 border-zinc-700 text-zinc-300`:`bg-pink-50 border-pink-200/80 text-[#86198f]`}`,children:t.category||`Registration`}),t.seats_left&&(0,r.jsxs)(`span`,{className:`text-2xs font-semibold px-2 py-0.5 rounded-full border flex items-center gap-1 ${B?`bg-zinc-800 text-zinc-400 border-zinc-700`:`bg-gray-100 text-gray-600 border-gray-200`}`,children:[(0,r.jsx)(ie,{size:10}),(0,r.jsx)(`span`,{children:t.seats_left})]})]}),(0,r.jsx)(`h3`,{className:`text-lg sm:text-xl font-bold leading-snug group-hover:text-fuchsia-600 transition-colors ${B?`text-white`:`text-gray-900`}`,children:t.type||t.name}),(0,r.jsxs)(`div`,{className:`mt-3 pb-3.5 border-b border-gray-100 dark:border-zinc-800`,children:[(0,r.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,children:[(0,r.jsx)(`span`,{className:`text-2xl sm:text-3xl font-black tracking-tight`,style:{color:V},children:a?`Free`:`${t.currency||`₹`} ${Number(t.price).toLocaleString()}`}),!a&&(0,r.jsx)(`span`,{className:`text-xs text-gray-500 dark:text-zinc-400 font-medium`,children:`/ delegate`})]}),(0,r.jsx)(`p`,{className:`text-2xs text-gray-500 dark:text-zinc-400 mt-0.5 font-medium`,children:t.tax_info||`+ 18% GST (Taxes applicable)`})]}),t.description&&(0,r.jsx)(`p`,{className:`text-xs mt-3 leading-relaxed ${B?`text-zinc-300`:`text-gray-600`}`,children:t.description}),(0,r.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[(0,r.jsx)(`p`,{className:`text-2xs font-bold uppercase tracking-wider text-gray-400 dark:text-zinc-500`,children:`What's Included:`}),o.slice(0,3).map((e,t)=>(0,r.jsxs)(`div`,{className:`flex items-start gap-2 text-xs`,children:[(0,r.jsx)(H,{size:13,className:`shrink-0 mt-0.5`,style:{color:V}}),(0,r.jsx)(`span`,{className:B?`text-zinc-300`:`text-gray-700`,children:e})]},t))]})]}),(0,r.jsxs)(`div`,{className:`mt-6 pt-4 border-t border-gray-100 dark:border-zinc-800 flex items-center justify-between gap-3`,children:[(0,r.jsxs)(`span`,{className:`text-2xs font-medium text-gray-500 dark:text-zinc-400`,children:[`📋 `,i,` fields to fill`]}),(0,r.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 text-xs font-bold px-3.5 py-2 rounded-xl text-white shadow-sm transition-all group-hover:shadow-md group-hover:scale-105 cursor-pointer`,style:{backgroundColor:V},children:[(0,r.jsx)(`span`,{children:`Select Form`}),(0,r.jsx)(M,{size:13,className:`transition-transform group-hover:translate-x-0.5`})]})]})]},t.id)})})})()]})}):(0,r.jsx)(`div`,{className:`flex flex-col ${Z?`w-full flex-1`:`flex-1 overflow-hidden min-h-0`}`,style:Z?void 0:{overflow:`clip`},onScroll:Z?void 0:e=>{e.currentTarget.scrollTop!==0&&(e.currentTarget.scrollTop=0),e.currentTarget.scrollLeft!==0&&(e.currentTarget.scrollLeft=0)},children:(0,r.jsx)(Ke,{apiClient:G,storage:K,logger:W,primaryColor:V,isDark:B,backgroundImage:e.backgroundImage||e.theme?.backgroundImage,isWidgetPage:Z,onEvent:e.onEvent,onError:e.onError})})]})]})},Qe=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-400:oklch(67.3% .182 276.935);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-3xl:48rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-xl:24px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.-top-16{top:calc(var(--spacing) * -16)}.top-0{top:0}.top-1\\/2{top:50%}.top-1\\/3{top:33.3333%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-18{top:calc(var(--spacing) * 18)}.-right-16{right:calc(var(--spacing) * -16)}.right-0{right:0}.right-1\\/4{right:25%}.right-2\\.5{right:calc(var(--spacing) * 2.5)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.-bottom-10{bottom:calc(var(--spacing) * -10)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.-left-1\\.5{left:calc(var(--spacing) * -1.5)}.-left-20{left:calc(var(--spacing) * -20)}.left-0{left:0}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-5{left:calc(var(--spacing) * 5)}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1\\.5{margin-inline:calc(var(--spacing) * -1.5)}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-1{margin-left:var(--spacing)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-64{height:calc(var(--spacing) * 64)}.h-72{height:calc(var(--spacing) * 72)}.h-80{height:calc(var(--spacing) * 80)}.h-\\[2\\.5px\\]{height:2.5px}.h-\\[3px\\]{height:3px}.h-full{height:100%}.min-h-0{min-height:0}.min-h-screen{min-height:100vh}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[220px\\]{max-width:220px}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.scrollbar-none{scrollbar-width:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#f0e2ed\\]{border-color:#f0e2ed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-900\\/50{border-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.border-amber-900\\/50{border-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-800{border-color:var(--color-blue-800)}.border-blue-800\\/80{border-color:#193cb8cc}@supports (color:color-mix(in lab, red, red)){.border-blue-800\\/80{border-color:color-mix(in oklab, var(--color-blue-800) 80%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-emerald-800\\/80{border-color:#005f46cc}@supports (color:color-mix(in lab, red, red)){.border-emerald-800\\/80{border-color:color-mix(in oklab, var(--color-emerald-800) 80%, transparent)}}.border-emerald-900{border-color:var(--color-emerald-900)}.border-fuchsia-200{border-color:var(--color-fuchsia-200)}.border-fuchsia-500{border-color:var(--color-fuchsia-500)}.border-fuchsia-600{border-color:var(--color-fuchsia-600)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/80{border-color:color-mix(in oklab, var(--color-gray-200) 80%, transparent)}}.border-gray-200\\/90{border-color:#e5e7ebe6}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/90{border-color:color-mix(in oklab, var(--color-gray-200) 90%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.border-green-200{border-color:var(--color-green-200)}.border-pink-100{border-color:var(--color-pink-100)}.border-pink-100\\/80{border-color:#fce7f3cc}@supports (color:color-mix(in lab, red, red)){.border-pink-100\\/80{border-color:color-mix(in oklab, var(--color-pink-100) 80%, transparent)}}.border-pink-100\\/90{border-color:#fce7f3e6}@supports (color:color-mix(in lab, red, red)){.border-pink-100\\/90{border-color:color-mix(in oklab, var(--color-pink-100) 90%, transparent)}}.border-pink-200\\/60{border-color:#fccee899}@supports (color:color-mix(in lab, red, red)){.border-pink-200\\/60{border-color:color-mix(in oklab, var(--color-pink-200) 60%, transparent)}}.border-pink-200\\/80{border-color:#fccee8cc}@supports (color:color-mix(in lab, red, red)){.border-pink-200\\/80{border-color:color-mix(in oklab, var(--color-pink-200) 80%, transparent)}}.border-red-200{border-color:var(--color-red-200)}.border-red-700{border-color:var(--color-red-700)}.border-red-900{border-color:var(--color-red-900)}.border-red-900\\/40{border-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/40{border-color:color-mix(in oklab, var(--color-red-900) 40%, transparent)}}.border-red-900\\/60{border-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.border-red-900\\/60{border-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\\/10{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.border-white\\/12{border-color:#ffffff1f}@supports (color:color-mix(in lab, red, red)){.border-white\\/12{border-color:color-mix(in oklab, var(--color-white) 12%, transparent)}}.border-white\\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-white\\/60{border-color:#fff9}@supports (color:color-mix(in lab, red, red)){.border-white\\/60{border-color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.border-white\\/70{border-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.border-white\\/70{border-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-\\[\\#faf4f8\\]{background-color:#faf4f8}.bg-\\[\\#fbf7f9\\]{background-color:#fbf7f9}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/80{background-color:#fffbebcc}@supports (color:color-mix(in lab, red, red)){.bg-amber-50\\/80{background-color:color-mix(in oklab, var(--color-amber-50) 80%, transparent)}}.bg-amber-950\\/60{background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.bg-amber-950\\/60{background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/35{background-color:#00000059}@supports (color:color-mix(in lab, red, red)){.bg-black\\/35{background-color:color-mix(in oklab, var(--color-black) 35%, transparent)}}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/70{background-color:#eff6ffb3}@supports (color:color-mix(in lab, red, red)){.bg-blue-50\\/70{background-color:color-mix(in oklab, var(--color-blue-50) 70%, transparent)}}.bg-blue-50\\/80{background-color:#eff6ffcc}@supports (color:color-mix(in lab, red, red)){.bg-blue-50\\/80{background-color:color-mix(in oklab, var(--color-blue-50) 80%, transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-950\\/50{background-color:#16245680}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/50{background-color:color-mix(in oklab, var(--color-blue-950) 50%, transparent)}}.bg-blue-950\\/60{background-color:#16245699}@supports (color:color-mix(in lab, red, red)){.bg-blue-950\\/60{background-color:color-mix(in oklab, var(--color-blue-950) 60%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-950\\/60{background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/60{background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.bg-emerald-950\\/80{background-color:#002c22cc}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/80{background-color:color-mix(in oklab, var(--color-emerald-950) 80%, transparent)}}.bg-emerald-950\\/95{background-color:#002c22f2}@supports (color:color-mix(in lab, red, red)){.bg-emerald-950\\/95{background-color:color-mix(in oklab, var(--color-emerald-950) 95%, transparent)}}.bg-fuchsia-100{background-color:var(--color-fuchsia-100)}.bg-fuchsia-600{background-color:var(--color-fuchsia-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/80{background-color:#f9fafbcc}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/80{background-color:color-mix(in oklab, var(--color-gray-50) 80%, transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-100\\/70{background-color:#f3f4f6b3}@supports (color:color-mix(in lab, red, red)){.bg-gray-100\\/70{background-color:color-mix(in oklab, var(--color-gray-100) 70%, transparent)}}.bg-gray-100\\/80{background-color:#f3f4f6cc}@supports (color:color-mix(in lab, red, red)){.bg-gray-100\\/80{background-color:color-mix(in oklab, var(--color-gray-100) 80%, transparent)}}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50\\/80{background-color:#f0fdf4cc}@supports (color:color-mix(in lab, red, red)){.bg-green-50\\/80{background-color:color-mix(in oklab, var(--color-green-50) 80%, transparent)}}.bg-green-100\\/80{background-color:#dcfce7cc}@supports (color:color-mix(in lab, red, red)){.bg-green-100\\/80{background-color:color-mix(in oklab, var(--color-green-100) 80%, transparent)}}.bg-pink-50{background-color:var(--color-pink-50)}.bg-pink-50\\/70{background-color:#fdf2f8b3}@supports (color:color-mix(in lab, red, red)){.bg-pink-50\\/70{background-color:color-mix(in oklab, var(--color-pink-50) 70%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/70{background-color:#fef2f2b3}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/70{background-color:color-mix(in oklab, var(--color-red-50) 70%, transparent)}}.bg-red-50\\/80{background-color:#fef2f2cc}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/80{background-color:color-mix(in oklab, var(--color-red-50) 80%, transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.bg-red-950\\/50{background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/50{background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.bg-red-950\\/60{background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/60{background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.bg-red-950\\/95{background-color:#460809f2}@supports (color:color-mix(in lab, red, red)){.bg-red-950\\/95{background-color:color-mix(in oklab, var(--color-red-950) 95%, transparent)}}.bg-slate-50\\/80{background-color:#f8fafccc}@supports (color:color-mix(in lab, red, red)){.bg-slate-50\\/80{background-color:color-mix(in oklab, var(--color-slate-50) 80%, transparent)}}.bg-slate-100\\/90{background-color:#f1f5f9e6}@supports (color:color-mix(in lab, red, red)){.bg-slate-100\\/90{background-color:color-mix(in oklab, var(--color-slate-100) 90%, transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-white\\/28{background-color:#ffffff47}@supports (color:color-mix(in lab, red, red)){.bg-white\\/28{background-color:color-mix(in oklab, var(--color-white) 28%, transparent)}}.bg-white\\/40{background-color:#fff6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/40{background-color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.bg-white\\/65{background-color:#ffffffa6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/65{background-color:color-mix(in oklab, var(--color-white) 65%, transparent)}}.bg-white\\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/70{background-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/90{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-800\\/60{background-color:#27272a99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-800\\/60{background-color:color-mix(in oklab, var(--color-zinc-800) 60%, transparent)}}.bg-zinc-800\\/80{background-color:#27272acc}@supports (color:color-mix(in lab, red, red)){.bg-zinc-800\\/80{background-color:color-mix(in oklab, var(--color-zinc-800) 80%, transparent)}}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\\/40{background-color:#18181b66}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/40{background-color:color-mix(in oklab, var(--color-zinc-900) 40%, transparent)}}.bg-zinc-900\\/60{background-color:#18181b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/60{background-color:color-mix(in oklab, var(--color-zinc-900) 60%, transparent)}}.bg-zinc-900\\/65{background-color:#18181ba6}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/65{background-color:color-mix(in oklab, var(--color-zinc-900) 65%, transparent)}}.bg-zinc-900\\/90{background-color:#18181be6}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/90{background-color:color-mix(in oklab, var(--color-zinc-900) 90%, transparent)}}.bg-zinc-900\\/95{background-color:#18181bf2}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\\/95{background-color:color-mix(in oklab, var(--color-zinc-900) 95%, transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-zinc-950\\/60{background-color:#09090b99}@supports (color:color-mix(in lab, red, red)){.bg-zinc-950\\/60{background-color:color-mix(in oklab, var(--color-zinc-950) 60%, transparent)}}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2\\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-3\\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-3\\.5{padding-bottom:calc(var(--spacing) * 3.5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3\\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.text-\\[\\#86198f\\]{color:#86198f}.text-amber-300{color:var(--color-amber-300)}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-700{color:var(--color-amber-700)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-800{color:var(--color-emerald-800)}.text-fuchsia-600{color:var(--color-fuchsia-600)}.text-fuchsia-700{color:var(--color-fuchsia-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-indigo-400{color:var(--color-indigo-400)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-zinc-100{color:var(--color-zinc-100)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.placeholder-\\[\\#a89bb0\\]::placeholder{color:#a89bb0}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.placeholder-gray-500::placeholder{color:var(--color-gray-500)}.placeholder-zinc-400::placeholder{color:var(--color-zinc-400)}.placeholder-zinc-500::placeholder{color:var(--color-zinc-500)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-100{opacity:1}.opacity-\\[0\\.03\\]{opacity:.03}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_12px_rgba\\(217\\,70\\,239\\,0\\.03\\)\\]{--tw-shadow:0 2px 12px var(--tw-shadow-color,#d946ef08);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_12px_rgba\\(217\\,70\\,239\\,0\\.04\\)\\]{--tw-shadow:0 2px 12px var(--tw-shadow-color,#d946ef0a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_2px_16px_rgba\\(217\\,70\\,239\\,0\\.04\\)\\]{--tw-shadow:0 2px 16px var(--tw-shadow-color,#d946ef0a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_4px_20px_rgba\\(217\\,70\\,239\\,0\\.05\\)\\]{--tw-shadow:0 4px 20px var(--tw-shadow-color,#d946ef0d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.contrast-200{--tw-contrast:contrast(200%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\\:translate-x-0\\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:text-fuchsia-600:is(:where(.group):hover *){color:var(--color-fuchsia-600)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\:shadow-md:is(:where(.group):hover *){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:border-pink-200:hover{border-color:var(--color-pink-200)}.hover\\:border-pink-300:hover{border-color:var(--color-pink-300)}.hover\\:border-zinc-600:hover{border-color:var(--color-zinc-600)}.hover\\:border-zinc-700:hover{border-color:var(--color-zinc-700)}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-black\\/55:hover{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/55:hover{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-pink-100\\/80:hover{background-color:#fce7f3cc}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-pink-100\\/80:hover{background-color:color-mix(in oklab, var(--color-pink-100) 80%, transparent)}}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-900\\/50:hover{background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/50:hover{background-color:color-mix(in oklab, var(--color-red-900) 50%, transparent)}}.hover\\:bg-red-900\\/60:hover{background-color:#82181a99}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-red-900\\/60:hover{background-color:color-mix(in oklab, var(--color-red-900) 60%, transparent)}}.hover\\:bg-slate-100\\/50:hover{background-color:#f1f5f980}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-slate-100\\/50:hover{background-color:color-mix(in oklab, var(--color-slate-100) 50%, transparent)}}.hover\\:bg-white\\/35:hover{background-color:#ffffff59}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/35:hover{background-color:color-mix(in oklab, var(--color-white) 35%, transparent)}}.hover\\:bg-white\\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\\:bg-white\\/65:hover{background-color:#ffffffa6}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/65:hover{background-color:color-mix(in oklab, var(--color-white) 65%, transparent)}}.hover\\:text-blue-300:hover{color:var(--color-blue-300)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-95:hover{opacity:.95}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_8px_30px_rgba\\(217\\,70\\,239\\,0\\.12\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#d946ef1f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:border-gray-400:focus{border-color:var(--color-gray-400)}.focus\\:border-zinc-500:focus{border-color:var(--color-zinc-500)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:bg-zinc-900:focus{background-color:var(--color-zinc-900)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-fuchsia-500\\/20:focus{--tw-ring-color:#e12afb33}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-fuchsia-500\\/20:focus{--tw-ring-color:color-mix(in oklab, var(--color-fuchsia-500) 20%, transparent)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.99\\]:active{scale:.99}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:p-4{padding:calc(var(--spacing) * 4)}.sm\\:p-5{padding:calc(var(--spacing) * 5)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\\:py-5{padding-block:calc(var(--spacing) * 5)}.sm\\:py-8{padding-block:calc(var(--spacing) * 8)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=48rem){.md\\:block{display:block}.md\\:w-1\\/2{width:50%}.md\\:w-72{width:calc(var(--spacing) * 72)}.md\\:w-auto{width:auto}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}}@media (width>=64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\\:border-fuchsia-800{border-color:var(--color-fuchsia-800)}.dark\\:border-zinc-700{border-color:var(--color-zinc-700)}.dark\\:border-zinc-800{border-color:var(--color-zinc-800)}.dark\\:bg-fuchsia-950\\/80{background-color:#4b004fcc}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-fuchsia-950\\/80{background-color:color-mix(in oklab, var(--color-fuchsia-950) 80%, transparent)}}.dark\\:bg-white{background-color:var(--color-white)}.dark\\:bg-zinc-800{background-color:var(--color-zinc-800)}.dark\\:bg-zinc-900{background-color:var(--color-zinc-900)}.dark\\:text-fuchsia-300{color:var(--color-fuchsia-300)}.dark\\:text-gray-900{color:var(--color-gray-900)}.dark\\:text-white{color:var(--color-white)}.dark\\:text-zinc-200{color:var(--color-zinc-200)}.dark\\:text-zinc-300{color:var(--color-zinc-300)}.dark\\:text-zinc-400{color:var(--color-zinc-400)}.dark\\:text-zinc-500{color:var(--color-zinc-500)}@media (hover:hover){.dark\\:hover\\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:#18181b80}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-zinc-900\\/50:hover{background-color:color-mix(in oklab, var(--color-zinc-900) 50%, transparent)}}.dark\\:hover\\:text-white:hover{color:var(--color-white)}}}}:host{all:initial;font-family:inherit}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}`,$e=({children:e,useShadow:t=!0})=>{let a=(0,n.useRef)(null),[o,s]=(0,n.useState)(null);return(0,n.useLayoutEffect)(()=>{if(typeof document>`u`||!a.current||!t)return;let e=a.current.shadowRoot,n=null;if(e)n=e.querySelector(`.voxket-widget-root`);else{a.current.setAttribute(`data-voxket-shadow-host`,``),a.current.style.cssText=`width: 100%; min-height: 100%; display: block; position: relative;`,e=a.current.attachShadow({mode:`open`});let t=document.createElement(`style`);t.innerText=`:host, *, *::before, *::after, ::backdrop {
4
4
  --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate-x: initial;
5
5
  --tw-rotate-y: initial; --tw-rotate-z: initial; --tw-skew-x: initial;
6
6
  --tw-skew-y: initial; --tw-space-y-reverse: 0; --tw-space-x-reverse: 0;
7
7
  --tw-border-style: solid; --tw-shadow: 0 0 #0000;
8
8
  --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff;
9
- }`,e.appendChild(t);let r=document.createElement(`style`);r.textContent=be,e.appendChild(r),n=document.createElement(`div`),n.className=`voxket-widget-root`,n.style.cssText=`
9
+ }`,e.appendChild(t);let r=document.createElement(`style`);r.textContent=Qe,e.appendChild(r),n=document.createElement(`div`),n.className=`voxket-widget-root`,n.style.cssText=`
10
10
  all: initial;
11
11
  box-sizing: border-box !important;
12
12
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif !important;
13
13
  font-size: 14px !important;
14
14
  color: #1a1a1a !important;
15
15
  position: relative !important;
16
+ width: 100% !important;
17
+ min-height: 100% !important;
18
+ display: block !important;
16
19
  background-color: transparent !important;
17
- `,e.appendChild(n)}n&&s(n)},[t]),t?(0,r.jsx)(`div`,{ref:a,className:`w-full h-full`,children:o&&e?(0,i.createPortal)(e,o):null}):(0,r.jsx)(r.Fragment,{children:e})},Se=({config:e})=>n.default.createElement(xe,{useShadow:!0},n.default.createElement(ye,{config:e})),Ce=class{config;container=null;root=null;constructor(e){this.config=e}mount(e){if(this.container=typeof e==`string`?document.getElementById(e):e,!this.container)throw Error(`EventWidget: Mount container not found.`);this.root||=(0,t.createRoot)(this.container),this.root.render(n.default.createElement(Se,{config:this.config}))}updateConfig(e){this.config={...this.config,...e},this.root&&this.root.render(n.default.createElement(Se,{config:this.config}))}setConfig(e){this.config=e,this.root&&this.root.render(n.default.createElement(Se,{config:this.config}))}unmount(){if(this.root){let e=this.root;this.root=null,e.unmount()}}};e.EventWidget=Se,e.EventWidgetClient=Ce});
20
+ `,e.appendChild(n)}n&&s(n)},[t]),t?(0,r.jsx)(`div`,{ref:a,className:`w-full h-full`,children:o&&e?(0,i.createPortal)(e,o):null}):(0,r.jsx)(r.Fragment,{children:e})},et=({config:e})=>n.default.createElement($e,{useShadow:!0},n.default.createElement(Ze,{config:e})),tt=class{config;container=null;root=null;constructor(e){this.config=e}mount(e){if(this.container=typeof e==`string`?document.getElementById(e):e,!this.container)throw Error(`EventWidget: Mount container not found.`);this.root||=(0,t.createRoot)(this.container),this.root.render(n.default.createElement(et,{config:this.config}))}updateConfig(e){this.config={...this.config,...e},this.root&&this.root.render(n.default.createElement(et,{config:this.config}))}setConfig(e){this.config=e,this.root&&this.root.render(n.default.createElement(et,{config:this.config}))}unmount(){if(this.root){let e=this.root;this.root=null,e.unmount()}}};e.EventWidget=et,e.EventWidgetClient=tt});