1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[476],{36068:(e,t,r)=>{"use strict";var a=r(87266);r(81948);var s=r(96810),o=s&&"object"==typeof s&&"default"in s?s:{default:s},n=void 0!==a&&a.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,a=void 0===r?"stylesheet":r,s=t.optimizeForSpeed,o=void 0===s?n:s;c(i(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",c("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(n||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(i(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return n||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(a){n||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];c(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(i(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return r?s.insertBefore(a,r):s.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},f={};function m(e,t){if(!t)return"jsx-"+e;var r=String(t),a=e+r;return f[a]||(f[a]="jsx-"+d(e+"-"+r)),f[a]}function u(e,t){var r=e+t;return f[r]||(f[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),f[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,a=void 0===r?null:r,s=t.optimizeForSpeed,o=void 0!==s&&s;this._sheet=a||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),a&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),a=r.styleId,s=r.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var o=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=o,this._instancesCounts[a]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var a=this._fromServer&&this._fromServer[r];a?(a.parentNode.removeChild(a),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],a=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,a=e.id;if(r){var s=m(a,r);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return u(s,e)}):[u(s,t)]}}return{styleId:m(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),h=s.createContext(null);h.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,x=new p;function b(e){var t=x||s.useContext(h);return t&&g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}b.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},t.style=b},58149:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var a=r(73154),s=r(74045),o=r.n(s),n=r(96810),i=r(64527);function l({params:e}
1){let t=(0,i.useRouter)(),[r,s]=(0,n.useState)({}),[l,c]=(0,n.useState)([]),[d,f]=(0,n.useState)(!0),[m,u]=(0,n.useState)(null),[p,h]=(0,n.useState)([]),[g,x]=(0,n.useState)({}),[b,y]=(0,n.useState)([]),[j,v]=(0,n.useState)(!1),[S,N]=(0,n.useState)(""),[w,k]=(0,n.useState)(!1),[_,C]=(0,n.useState)(!1),[z,R]=(0,n.useState)(!1),[T,F]=(0,n.useState)({}),[D,E]=(0,n.useState)({}),[W,A]=(0,n.useState)({}),[P,B]=(0,n.useState)(!1),I=(0,n.useRef)({}),O=e||t.query,M=O?.id,L=O?.name,$=(e,t)=>{let r=Date.now().toString(),a={id:r,type:e,message:t};h(e=>[...e,a]),setTimeout(()=>{h(e=>e.filter(e=>e.id!==r))},4e3)},q=(e,t)=>{F(r=>({...r,[e]:t}))},H=e=>{let t=e.toLowerCase();if(t.includes(".pdf")||t.includes("application/pdf"))return!1;let r=[".jpg",".jpeg",".png",".gif",".webp",".svg"].some(e=>t.includes(e))||t.includes("image/");return console.log("isImageUrl check:",{url:e,lowerUrl:t,isImage:r}),r},U=e=>{let t=e.toLowerCase();return t.includes(".pdf")||t.includes("application/pdf")},G=e=>{try{let t=new URL(e).pathname.split("/").pop()||"File";return decodeURIComponent(t)}catch{return"File"}},Q=e=>{if(!e||!W)return e;let t=e;return Object.keys(W).forEach(e=>{let r=W[e];if(r&&t.includes(e)){let a=`<a href="${r}" target="_blank" rel="noopener noreferrer" style="color: #007bff; text-decoration: underline; font-weight: 500;">${e}</a>`;t=t.replace(e,a)}}),t},V=(e,t)=>{if(!t)return;let r=t.name.toLowerCase().split(".").pop()||"",a="heic"===r||"heif"===r;if(!["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/avif","image/bmp","image/tiff","image/heic","image/heif","application/pdf","text/plain","image/svg+xml"].includes(t.type)&&!a)return void $("error",`File type not supported: ${t.type||"unknown"}. Please use: JPEG, PNG, GIF, WebP, AVIF, BMP, TIFF, SVG, PDF, or TXT`);if(a||"image/heic"===t.type||"image/heif"===t.type)return void $("error",'HEIC files from iPhones are not fully supported. Please convert to JPEG or PNG first, or change your iPhone camera settings to capture in "Most Compatible" format (Settings > Camera > Formats)');if(t.size>0x1400000)return void $("error","File size must be less than 20MB");let s=null;(t.type.startsWith("image/")||"application/pdf"===t.type)&&(s=URL.createObjectURL(t)),x(r=>({...r,[e]:{file:t,preview:s,isDragOver:!1}}))},J=async()=>{if("org"===L){v(!0);try{let e=await fetch(`/api/notion/organization/${M}`);if(!e.ok){let t="Failed to fetch organization data";try{t=(await e.json()).error||t}catch{t=e.statusText||t}u(t),y([]),N("");return}let t=await e.json();y(t.children||[]),N(t.orgName||""),E(t.descriptionLinks||{})}catch(e){u(e instanceof Error?e.message:"Error loading organization data"),y([]),N("")}finally{v(!1)}}},X=async()=>{if("org"===L){c([]),s({}),f(!1);return}try{let e,t=await fetch(`/api/notion/${M}${"supporter"===L?"?supporter=true":""}`);if(!t.ok){let e="Failed to fetch data";try{e=(await t.json()).error||e}catch{e=t.statusText||e}throw Error(e)}let r=await t.json(),a=r.fields||[];k(r.config?.isLocked||!1),C(r.config?.isOk||!1),A(r.descriptionLinks||{});let o={};a.forEach(e=>{o[e.name]=e.value}),s(o);let n=a.map(e=>({name:e.name,value:e.value,type:e.type,mode:e.mode,description:e.description,options:e.options}));c(n),e={},n.forEach(t=>{"file"===t.type&&"edit"===t.mode&&(console.log("Initializing file upload for field:",t.name,"with value:",t.value),e[t.name]={file:null,preview:t.value||null,isDragOver:!1})}),console.log("File uploads initialized:",e),x(e);let i={};n.forEach(e=>{"select"===e.type&&(i[e.name]=e.value)}),F(i),f(!1)}catch(e){u(e instanceof Error?e.message:"Error loading data"),f(!1)}};(0,n.useEffect)(()=>{let e=l.filter(e=>"select"===e.type);e.length>0&&(console.log("Select fields found:",e),e.forEach(e=>{console.log("Select field debug:",{fieldName:e.name,fieldType:e.type,options:e.options,selectedValue:T[e.name]})}))},[l,T]),(0,n.useEffect)(()=>{if(t.isReady){if("issue"===L&&"new"===M)return void(async()=>{try{let e=t.query.email,r=t.query.wallet_type,a=t.query.browser,s=t.query.system,o=t.query.path,n=t.query.eoa_connector,i=t.query.address,l=await fetch("/api/notion/create-issue",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e||"",wallet_type:r||"",browser:a||"",system:s||"",path:o||"",eoa_connector:n||"",address:i||""})});if(!l.ok){let e=await l.json();throw Error(e.error||"Failed to create issue entry")}let c=await l.json();t.replace(`/form/issue/${c.id}`)}catch(e){u(e instanceof Error?e.message:"Error creating issue entry"),f(!1)}})();if(!M){u("Invalid page ID"),f(!1);return}X(),"org"===L&&J()}},[M,L,e,t.query,t.isReady]);let Y=async e=>{e.preventDefault(),R(!0);let t=new FormData(e.currentTarget);if(!M){$("error","Invalid page ID"),R(!1);return}if(w){$("error","Form is locked and cannot be updated"),R(!1);return}let r={};for(let e of l)if("edit"===e.mode)if("file"===e.type){let t=g[e.name];if(t?.file)try{let a=new FileReader,s=await new Promise((e,r)=>{a.onload=()=>e(a.result),a.onerror=r,a.readAsDataURL(t.file)}),o=await fetch("/api/upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:s,fileName:t.file.name,contentType:t.file.type})});if(!o.ok){let e=await o.json().catch(()=>({error:"Failed to upload file"})),t=e.details||e.error||"Failed to upload file";throw Error(t)}let n=await o.json();r[e.name]=n.url}catch(r){let t=r instanceof Error?r.message:String(r);$("error",`Failed to upload ${e.name}: ${t}`),R(!1);return}else r[e.name]=t?.preview||""}
1else if("checkbox"===e.type){let a="on"===t.get(e.name);r[e.name]=a?"true":"false"}else if("select"===e.type)console.log(`Select field ${e.name} selected value:`,T[e.name]),r[e.name]=T[e.name]||"";else{let a=t.get(e.name);r[e.name]=a||""}try{console.log("Submitting updates:",r);let e=await fetch(`/api/notion/${M}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!e.ok){let t="Failed to update";try{t=(await e.json()).error||t}catch{t=e.statusText||t}throw Error(t)}"issue"===L?B(!0):$("success","Form updated successfully!"),await X()}catch(e){$("error",e instanceof Error?e.message:"Error updating page. Please try again.")}finally{R(!1)}};return d?(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",fontSize:"1.2rem",color:"#666"},children:"Loading..."}):m?(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",fontSize:"1.2rem",color:"#e74c3c"},children:m}):(0,a.jsxs)("div",{style:{maxWidth:"900px",margin:"0 auto",padding:"1rem",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},className:"jsx-fc94f4a15b3c1e66",children:p.map(e=>(0,a.jsx)("div",{style:{backgroundColor:"success"===e.type?"#d4edda":"#f8d7da",color:"success"===e.type?"#155724":"#721c24",border:`1px solid ${"success"===e.type?"#c3e6cb":"#f5c6cb"}`,borderRadius:"6px",padding:"12px 16px",fontSize:"0.9rem",fontWeight:"500",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",animation:"slideIn 0.3s ease-out",maxWidth:"300px"},className:"jsx-fc94f4a15b3c1e66",children:e.message},e.id))}),(0,a.jsxs)("div",{style:{textAlign:"center",marginBottom:"2rem",paddingBottom:"1rem",borderBottom:"2px solid #f0f0f0"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("h1",{style:{fontSize:"2rem",fontWeight:"600",color:"#333",margin:"0 0 0.5rem 0",textTransform:"capitalize"},className:"jsx-fc94f4a15b3c1e66",children:"issue"===L?"Feedback form":"org"===L&&S||L}),(0,a.jsx)("p",{style:{color:"#666",margin:"0",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"issue"===L?"Thanks for sharing feedback or reporting an issue.":"org"===L?"Accreditation links for your organization":w?"Form is locked \uD83D\uDD12 - view only":(l.filter(e=>"edit"===e.mode).some(e=>e.value&&""!==e.value.trim()),"Update your information")})]}),"org"!==L&&(0,a.jsxs)(a.Fragment,{children:["issue"===L&&P&&(0,a.jsxs)("div",{style:{backgroundColor:"#d4edda",border:"1px solid #c3e6cb",borderRadius:"6px",padding:"2rem",marginBottom:"1.5rem",textAlign:"center"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("div",{style:{fontSize:"3rem",marginBottom:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"â
"}),(0,a.jsx)("h2",{style:{margin:"0 0 0.5rem 0",fontSize:"1.5rem",color:"#155724",fontWeight:"600"},className:"jsx-fc94f4a15b3c1e66",children:"Thank You!"}),(0,a.jsx)("p",{style:{margin:"0",fontSize:"1rem",color:"#155724"},className:"jsx-fc94f4a15b3c1e66",children:"Your issue has been submitted successfully. We'll review it and get back to you soon."})]}),w&&(0,a.jsxs)("div",{style:{backgroundColor:_?"#d4edda":"#fff3cd",border:`1px solid ${_?"#c3e6cb":"#ffeaa7"}`,borderRadius:"6px",padding:"1rem",marginBottom:"1.5rem",textAlign:"center"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("div",{style:{fontSize:"1.5rem",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:_?"â
":"\uD83D\uDD12"}),(0,a.jsx)("p",{style:{margin:"0",fontSize:"1rem",color:_?"#155724":"#856404",fontWeight:"500"},className:"jsx-fc94f4a15b3c1e66",children:_?"Accreditation claimed":"This form is currently locked and cannot be updated."}),(0,a.jsx)("p",{style:{margin:"0.5rem 0 0 0",fontSize:"0.9rem",color:_?"#155724":"#856404"},className:"jsx-fc94f4a15b3c1e66",children:_?"":"All fields are now read-only."}),"accreditation"===L&&W["accreditation claiming guide"]&&(0,a.jsx)("div",{style:{marginTop:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("a",{href:W["accreditation claiming guide"],target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",padding:"0.5rem 1rem",backgroundColor:"#28a745",color:"white",textDecoration:"none",borderRadius:"6px",fontSize:"0.9rem",fontWeight:"500",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#218838"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#28a745"},className:"jsx-fc94f4a15b3c1e66",children:"View Accreditation Claiming Guide"})})]}),(0,a.jsxs)("form",{onSubmit:Y,style:{marginBottom:"2rem"},className:"jsx-fc94f4a15b3c1e66",children:["issue"===L&&P?null:l.map(e=>(console.log("Rendering field:",{name:e.name,type:e.type,mode:e.mode,hasOptions:!!e.options}),(0,a.jsxs)("div",{style:{marginBottom:"1.5rem"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsxs)("label",{htmlFor:e.name,style:{display:"block",marginBottom:"0.75rem",fontWeight:"read"===e.mode?"600":"500",color:"read"===e.mode?"#495057":"#333",fontSize:"1rem",position:"relative"},className:"jsx-fc94f4a15b3c1e66",children:["read"===e.mode?(0,a.jsx)("span",{style:{display:"inline-block",backgroundColor:"#6c757d",color:"white",padding:"0.25rem 0.5rem",borderRadius:"4px",fontSize:"0.75rem",fontWeight:"600",marginRight:"0.75rem",textTransform:"uppercase",letterSpacing:"0.5px"},className:"jsx-fc94f4a15b3c1e66",children:"\uD83D\uDCD6 Read Only"}):(0,a.jsx)("span",{style:{display:"issue"===L?"none":"inline-block",backgroundColor:"#28a745",color:"white",padding:"0.25rem 0.5rem",borderRadius:"4px",fontSize:"0.75rem",fontWeight:"600",marginRight:"0.75rem",textTransform:"uppercase",letterSpacing:"0.5px"},className:"jsx-fc94f4a15b3c1e66",children:"âï¸ Editable"}),e.name]}),e.description&&(0,a.jsx)("p",{style:{fontSize:"1rem",color:"#666",margin:"0 0 0.5rem 0",fontStyle:"italic"},dangerouslySetInnerHTML:{__html:Q(e.description)},className:"jsx-fc94f4a15b3c1e66"}),"read"===e.mode?(0,a.jsx)("div",{style:{width:"100%",padding:"1rem",border:"2px s
1olid #e9ecef",borderRadius:"8px",fontSize:"1rem",backgroundColor:"#f8f9fa",color:"#495057",minHeight:"3rem",display:"flex",alignItems:"flex-start",position:"relative",boxShadow:"inset 0 1px 3px rgba(0,0,0,0.1)"},className:"jsx-fc94f4a15b3c1e66",children:"file"===e.type&&e.value?(0,a.jsxs)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:[H(e.value)?(0,a.jsx)("img",{src:e.value,alt:"File preview",style:{maxWidth:"100%",maxHeight:"200px",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66"}):U(e.value)?(0,a.jsx)("div",{style:{width:"100%",height:"300px",border:"1px solid #ddd",borderRadius:"4px",marginBottom:"0.5rem",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("iframe",{src:`${e.value}#toolbar=0&navpanes=0&scrollbar=0`,style:{width:"100%",height:"100%",border:"none"},title:"PDF Preview",className:"jsx-fc94f4a15b3c1e66"})}):(0,a.jsxs)("div",{style:{padding:"1rem",backgroundColor:"#e9ecef",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCC4 ",G(e.value)]}),(0,a.jsx)("p",{style:{margin:"0.5rem 0 0 0",fontSize:"0.9rem",color:"#666"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsxs)("a",{href:e.value,target:"_blank",rel:"noopener noreferrer",style:{color:"#007bff",textDecoration:"none"},onClick:e=>e.stopPropagation(),onMouseEnter:e=>{e.currentTarget.style.textDecoration="underline"},onMouseLeave:e=>{e.currentTarget.style.textDecoration="none"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCCE ",G(e.value)]})})]}):"checkbox"===e.type?(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("span",{style:{fontSize:"1.2rem"},className:"jsx-fc94f4a15b3c1e66",children:"true"===e.value?"â
":"â"}),(0,a.jsx)("span",{style:{fontSize:"0.9rem",color:"#666"},className:"jsx-fc94f4a15b3c1e66",children:"true"===e.value?"Yes":"No"})]}):"select"===e.type?(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.5rem 1rem",backgroundColor:"#e9ecef",borderRadius:"6px",fontSize:"0.9rem",fontWeight:"500",color:"#333"},className:"jsx-fc94f4a15b3c1e66",children:e.value||"No selection"})}):"rollup"===e.type?(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.5rem 1rem",backgroundColor:"#e7f3ff",borderRadius:"6px",fontSize:"0.9rem",fontWeight:"500",color:"#0066cc"},className:"jsx-fc94f4a15b3c1e66",children:e.value||"No data"})}):"quests"===e.type?(0,a.jsx)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:e.value?(0,a.jsx)("ul",{style:{margin:"0",padding:"0",listStyle:"none"},className:"jsx-fc94f4a15b3c1e66",children:e.value.split(",").map((t,r)=>{let s=e.value.split(",");return(0,a.jsx)("li",{style:{marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("a",{href:`/form/quest/${t.trim()}`,target:"_blank",style:{color:"#007bff",textDecoration:"none",fontSize:"0.9rem",fontWeight:"500",display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:s.length>1?`- Quest form ${r+1}`:"Quest form"})},t)})}):(0,a.jsx)("span",{style:{color:"#666",fontStyle:"italic"},className:"jsx-fc94f4a15b3c1e66",children:"No quests available"})}):"url"===e.type?(0,a.jsx)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:e.value?(0,a.jsx)("a",{href:e.value,target:"_blank",rel:"noopener noreferrer",style:{color:"#007bff",textDecoration:"none",fontSize:"1rem",fontWeight:"500",wordBreak:"break-all"},onMouseEnter:e=>{e.currentTarget.style.textDecoration="underline"},onMouseLeave:e=>{e.currentTarget.style.textDecoration="none"},className:"jsx-fc94f4a15b3c1e66",children:e.value}):(0,a.jsx)("span",{style:{color:"#666",fontStyle:"italic"},className:"jsx-fc94f4a15b3c1e66",children:"No URL provided"})}):(0,a.jsx)("div",{style:{whiteSpace:"pre-wrap"},className:"jsx-fc94f4a15b3c1e66",children:e.value})}):"file"===e.type?(0,a.jsxs)("div",{className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("div",{style:{width:"100%",padding:"1.5rem",border:`3px dashed ${g[e.name]?.isDragOver?"#0056b3":"#007bff"}`,borderRadius:"12px",backgroundColor:g[e.name]?.isDragOver?"#e3f2fd":"#f8f9ff",textAlign:"center",cursor:"pointer",transition:"all 0.3s ease",minHeight:"140px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxShadow:g[e.name]?.isDragOver?"0 4px 12px rgba(0,123,255,0.3)":"0 2px 8px rgba(0,123,255,0.1)"},onDragOver:t=>{var r;return r=e.name,void(t.preventDefault(),x(e=>({...e,[r]:{...e[r],isDragOver:!0}})))},onDragLeave:t=>{var r;return r=e.name,void(t.preventDefault(),x(e=>({...e,[r]:{...e[r],isDragOver:!1}}
1)))},onDrop:t=>{var r;let a;return r=e.name,t.preventDefault(),x(e=>({...e,[r]:{...e[r],isDragOver:!1}})),void((a=t.dataTransfer.files).length>0&&V(r,a[0]))},onClick:()=>I.current[e.name]?.click(),className:"jsx-fc94f4a15b3c1e66",children:g[e.name]?.preview?(0,a.jsxs)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:[(()=>{let t=g[e.name]?.preview,r=t&&H(t),s=t?.startsWith("blob:");if(console.log("Preview rendering for field:",e.name,{preview:t,isImage:r,isBlob:s}),s&&g[e.name]?.file&&t){let r=g[e.name].file;if(r?.type.startsWith("image/"))return(0,a.jsx)("img",{src:t,alt:"Preview",style:{maxWidth:"100%",maxHeight:"200px",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66"});if(r?.type==="application/pdf")return(0,a.jsx)("div",{style:{width:"100%",height:"300px",border:"1px solid #ddd",borderRadius:"4px",marginBottom:"0.5rem",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("iframe",{src:`${t}#toolbar=0&navpanes=0&scrollbar=0`,style:{width:"100%",height:"100%",border:"none"},title:"PDF Preview",className:"jsx-fc94f4a15b3c1e66"})})}return r&&t?(0,a.jsx)("img",{src:t,alt:"Preview",style:{maxWidth:"100%",maxHeight:"200px",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66"}):U(t)?(0,a.jsx)("div",{style:{width:"100%",height:"300px",border:"1px solid #ddd",borderRadius:"4px",marginBottom:"0.5rem",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("iframe",{src:`${t}#toolbar=0&navpanes=0&scrollbar=0`,style:{width:"100%",height:"100%",border:"none"},title:"PDF Preview",className:"jsx-fc94f4a15b3c1e66"})}):(0,a.jsxs)("div",{style:{padding:"1rem",backgroundColor:"#e9ecef",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCC4 ",t?G(t):"File"]})})(),(0,a.jsx)("p",{style:{margin:"0.25rem 0 0 0",fontSize:"0.8rem",color:"#999"},className:"jsx-fc94f4a15b3c1e66",children:"Click or drag to replace"})]}):(0,a.jsxs)("div",{className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("div",{style:{fontSize:"2rem",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:"\uD83D\uDCC1"}),(0,a.jsx)("p",{style:{margin:"0",fontSize:"1rem",color:"#666"},className:"jsx-fc94f4a15b3c1e66",children:"Drag and drop a file here, or click to select"}),(0,a.jsx)("p",{style:{margin:"0.25rem 0 0 0",fontSize:"0.8rem",color:"#999"},className:"jsx-fc94f4a15b3c1e66",children:"Supports: Images or PDFs (max 20MB)"})]})}),(0,a.jsx)("input",{ref:t=>{I.current[e.name]=t},type:"file",accept:"image/*,.pdf,.txt",style:{display:"none"},onChange:t=>{let r=t.target.files?.[0];r&&V(e.name,r)},className:"jsx-fc94f4a15b3c1e66"}),g[e.name]?.file&&(0,a.jsx)("button",{type:"button",onClick:()=>{x(t=>({...t,[e.name]:{file:null,preview:null,isDragOver:!1}}))},style:{marginTop:"0.5rem",padding:"0.25rem 0.5rem",backgroundColor:"#dc3545",color:"white",border:"none",borderRadius:"4px",fontSize:"0.8rem",cursor:"pointer"},className:"jsx-fc94f4a15b3c1e66",children:"Remove file"}),g[e.name]?.preview&&(0,a.jsx)("div",{style:{marginTop:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsxs)("a",{href:g[e.name].preview,target:"_blank",rel:"noopener noreferrer",style:{color:"#007bff",textDecoration:"none",fontSize:"0.9rem"},onClick:e=>e.stopPropagation(),onMouseEnter:e=>{e.currentTarget.style.textDecoration="underline"},onMouseLeave:e=>{e.currentTarget.style.textDecoration="none"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCCE ",G(g[e.name].preview)]})})]}):"text"===e.type?(0,a.jsx)("textarea",{id:e.name,name:e.name,defaultValue:e.value||"",rows:4,style:{width:"100%",padding:"1rem",border:"2px solid #007bff",borderRadius:"8px",fontSize:"1rem",boxSizing:"border-box",transition:"all 0.2s ease",resize:"vertical",fontFamily:"inherit",minHeight:"120px",backgroundColor:"#f8f9ff",boxShadow:"0 2px 4px rgba(0,123,255,0.1)"},onFocus:e=>{e.target.style.borderColor="#0056b3",e.target.style.backgroundColor="#ffffff",e.target.style.boxShadow="0 4px 8px rgba(0,123,255,0.2)",e.target.style.outline="none"},onBlur:e=>{e.target.style.borderColor="#007bff",e.target.style.backgroundColor="#f8f9ff",e.target.style.boxShadow="0 2px 4px rgba(0,123,255,0.1)"},className:"jsx-fc94f4a15b3c1e66"}):"checkbox"===e.type?(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("input",{id:e.name,name:e.name,type:"checkbox",defaultChecked:"true"===e.value,style:{width:"18px",height:"18px",cursor:"pointer",accentColor:"#007bff",transform:"scale(1.1)"},className:"jsx-fc94f4a15b3c1e66"}),(0,a.jsx)("label",{htmlFor:e.name,style:{fontSize:"1rem",color:"#333",cursor:"pointer",userSelect:"none",fontWeight:"500"},className:"jsx-fc94f4a15b3c1e66",children:e.description||"Check to confirm"})]}):"select"===e.type?(0,a.jsxs)("div",{className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:[(!e.options||0===e.options.length)&&(0,a.jsx)("div",{style:{color:"#666",fontSize:"0.9rem",marginBottom:"0.5rem",width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:"No options available for this select field. Using test options:"}),(e.options&&e.options.length>0?e.options:[{name:"Option 1",color:"default"},{name:"Option 2",color:"default"},{name:"Option 3",color:"default"}]).map(t=>{let r=T[e.name]===t.name;return(0,a.jsx)("button",{type:"button",onClick:()=>q(e.name,t.name),style:{padding:"0.75rem 1.5rem",border:`2px solid ${r?"#007bff":"#ddd"}`,borderRadius:"6px",backgroundColor:r?"#007bff":"white",color:r?"white":"#333",fontSize:"0.9rem",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease",minWidth:"100px",textAlign:"center"},onMouseEnter:e=>{r||(e.currentTarget.style.borderColor="#007bff",e.currentTarget.style.backgroundColor="#f0f8ff")},onMouseLeave:e=>{r||(e.currentTarget.style.borderColor="#ddd",e.currentTarget.style.backgroundColor="white")},className:"jsx-fc94f4a15b3c1e66",children:t.name}
1,t.name)})]}),T[e.name]&&(0,a.jsx)("button",{type:"button",onClick:()=>q(e.name,""),style:{padding:"0.5rem 1rem",border:"1px solid #dc3545",borderRadius:"6px",backgroundColor:"white",color:"#dc3545",fontSize:"0.85rem",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"0.25rem"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#dc3545",e.currentTarget.style.color="white"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="white",e.currentTarget.style.color="#dc3545"},className:"jsx-fc94f4a15b3c1e66",children:"â Clear selection"})]}):(0,a.jsx)("input",{id:e.name,name:e.name,type:(()=>{switch(e.type){case"file":case"url":return"url";case"email":return"email";default:return"text"}})(),defaultValue:e.value||"",style:{width:"100%",padding:"1rem",border:"2px solid #007bff",borderRadius:"8px",fontSize:"1rem",boxSizing:"border-box",transition:"all 0.2s ease",backgroundColor:"#f8f9ff",boxShadow:"0 2px 4px rgba(0,123,255,0.1)"},onFocus:e=>{e.target.style.borderColor="#0056b3",e.target.style.backgroundColor="#ffffff",e.target.style.boxShadow="0 4px 8px rgba(0,123,255,0.2)",e.target.style.outline="none"},onBlur:e=>{e.target.style.borderColor="#007bff",e.target.style.backgroundColor="#f8f9ff",e.target.style.boxShadow="0 2px 4px rgba(0,123,255,0.1)"},className:"jsx-fc94f4a15b3c1e66"})]},e.name))),!w&&!("issue"===L&&P)&&(0,a.jsx)("div",{style:{textAlign:"center",marginTop:"2rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("button",{type:"submit",style:{backgroundColor:z?"#6c757d":"#007bff",color:"white",border:"none",padding:"0.75rem 2rem",borderRadius:"6px",fontSize:"1rem",fontWeight:"500",cursor:z?"not-allowed":"pointer",transition:"background-color 0.2s ease",minWidth:"120px",opacity:z?.7:1},onMouseEnter:e=>{z||(e.target.style.backgroundColor="#0056b3")},onMouseLeave:e=>{z||(e.target.style.backgroundColor="#007bff")},disabled:z,className:"jsx-fc94f4a15b3c1e66",children:z?"issue"===L?"Submitting...":"Updating...":"issue"===L?"Submit":"Update"})})]})]}),"org"===L&&(0,a.jsx)("div",{style:{marginBottom:"2rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("table",{style:{width:"100%",borderCollapse:"collapse",backgroundColor:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("tbody",{className:"jsx-fc94f4a15b3c1e66",children:l.filter(e=>"read"===e.mode).map(e=>(0,a.jsxs)("tr",{style:{borderBottom:"1px solid #e9ecef"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsxs)("td",{style:{padding:"1rem",fontWeight:"500",color:"#333",backgroundColor:"#f8f9fa",width:"30%",verticalAlign:"top",borderRight:"1px solid #e9ecef",whiteSpace:"nowrap"},className:"jsx-fc94f4a15b3c1e66",children:[e.name,e.description&&(0,a.jsx)("div",{style:{fontSize:"1rem",color:"#666",marginTop:"0.25rem",fontStyle:"italic"},dangerouslySetInnerHTML:{__html:Q(e.description)},className:"jsx-fc94f4a15b3c1e66"})]}),(0,a.jsx)("td",{style:{padding:"1rem",color:"#666",verticalAlign:"top",whiteSpace:"nowrap"},className:"jsx-fc94f4a15b3c1e66",children:"file"===e.type&&e.value?(0,a.jsxs)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:[H(e.value)?(0,a.jsx)("img",{src:e.value,alt:"File preview",style:{maxWidth:"100%",maxHeight:"200px",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66"}):U(e.value)?(0,a.jsx)("div",{style:{width:"100%",height:"300px",border:"1px solid #ddd",borderRadius:"4px",marginBottom:"0.5rem",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("iframe",{src:`${e.value}#toolbar=0&navpanes=0&scrollbar=0`,style:{width:"100%",height:"100%",border:"none"},title:"PDF Preview",className:"jsx-fc94f4a15b3c1e66"})}):(0,a.jsxs)("div",{style:{padding:"1rem",backgroundColor:"#e9ecef",borderRadius:"4px",marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCC4 ",G(e.value)]}),(0,a.jsx)("p",{style:{margin:"0.5rem 0 0 0",fontSize:"0.9rem",color:"#666"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsxs)("a",{href:e.value,target:"_blank",rel:"noopener noreferrer",style:{color:"#007bff",textDecoration:"none"},onClick:e=>e.stopPropagation(),onMouseEnter:e=>{e.currentTarget.style.textDecoration="underline"},onMouseLeave:e=>{e.currentTarget.style.textDecoration="none"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCCE ",G(e.value)]})})]}):"checkbox"===e.type?(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("span",{style:{fontSize:"1.2rem"},className:"jsx-fc94f4a15b3c1e66",children:"true"===e.value?"â
":"â"}),(0,a.jsx)("span",{style:{fontSize:"0.9rem",color:"#666"},className:"jsx-fc94f4a15b3c1e66",children:"true"===e.value?"Yes":"No"})]}):"select"===e.type?(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.5rem 1rem",backgroundColor:"#e9ecef",borderRadius:"6px",fontSize:"0.9rem",fontWeight:"500",color:"#333"},className:"jsx-fc94f4a15b3c1e66",children:e.value||"No selection"})}):"rollup"===e.type?(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.5rem 1rem",backgroundColor:"#e7f3ff",borderRadius:"6px",fontSize:"0.9rem",fontWeight:"500",color:"#0066cc"},className:"jsx-fc94f4a15b3c1e66",children:e.value||"No data"})}):"quests"===e.type?(0,a.jsx)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:e.value?(0,a.jsx)("ul",{style:{margin:"0",padding:"0",listStyle:"none"},className:"jsx-fc94f4a15b3c1e66",children:e.value.split(",").map((t,r)=>{let s=e.value.split(",");return(0,a.jsx)("li",{style:{marginBottom:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("a",{href:`/form/quest/${t.trim()}`,target:"_blank",style:{color:"#007bff",textDecoration:"none",fontSize:"0.9rem",fontWeight:"500",display:"flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:s.length>1?`- Quest form ${r+1}`:"Quest form"})},t)})}):(0,a.jsx)("span",{style:{color:"#666",fontStyle:"italic"},className:"jsx-fc94f4a15b3c1e66",children:"No quests available"})}):"url"===e.type?(0,a.jsx)("div",{style:{width:"100%"},className:"jsx-fc94f4a15b3c1e66",children:e.value?(0,a.jsx)("a",{href:e.value,target:"_blank",rel:"noopener noreferrer",style:{color:"#007bff",textDecoration:"none",fontSize:"0.9rem",fontWeight:"500",wordBreak:"break-all"},onMouseEnter:e=>{e.currentTarget.style.textDecoration="underline"},onMouseLeave:e=>{e.currentTarget.style.textDecoration="none"},className:"jsx-fc94f4a15b3c1e66",children:e.value}):(0,a.jsx)("span",{style:{color:"#666",fontStyle:"italic"},className:"jsx-fc94f4a15b3c1e66",children:"No URL provided"})}):(0,a.jsx)("div",{style:{whiteSpace:"pre-wrap"},className:"jsx-fc94f4a15b3c1e66",children:e.value||"No value"})})]},e.name))})})}),"org"===L&&(0,a.jsx)("div",{className:"jsx-fc94f4a15b3c1e66",children:j?(0,a.jsx)("div",{style:{textAlign:"center",padding:"2rem",color:"#666",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"Loading..."}):b.length>0?(0,a.jsx)("div",{style:{width:"100%",overflowX:"auto"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",backgroundColor:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("thead",{className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsxs)("tr",{style:{backgroundColor:"#f8f9fa"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("th",{style:{padding:"1rem",textAlign:"left",fontWeight:"600",color:"#333",borderBottom:"2px s
1olid #e9ecef",fontSize:"0.9rem"},className:"jsx-fc94f4a15b3c1e66",children:"Accreditation"}),(0,a.jsx)("th",{style:{padding:"1rem",textAlign:"center",fontWeight:"600",color:"#333",borderBottom:"2px solid #e9ecef",fontSize:"0.9rem"},className:"jsx-fc94f4a15b3c1e66",children:"Completion"}),(0,a.jsx)("th",{style:{padding:"1rem",textAlign:"center",fontWeight:"600",color:"#333",borderBottom:"2px solid #e9ecef",fontSize:"0.9rem"},className:"jsx-fc94f4a15b3c1e66",children:"Type"}),(0,a.jsx)("th",{style:{padding:"1rem",textAlign:"center",fontWeight:"600",color:"#333",borderBottom:"2px solid #e9ecef",fontSize:"0.9rem"},className:"jsx-fc94f4a15b3c1e66",children:"Review Status"}),(0,a.jsx)("th",{style:{padding:"1rem",textAlign:"center",fontWeight:"600",color:"#333",borderBottom:"2px solid #e9ecef",fontSize:"0.9rem"},className:"jsx-fc94f4a15b3c1e66",children:"Claim Status"})]})}),(0,a.jsx)("tbody",{className:"jsx-fc94f4a15b3c1e66",children:b.map((e,t)=>(0,a.jsxs)("tr",{style:{borderBottom:"1px solid #e9ecef",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#f8f9fa"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="white"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("td",{style:{padding:"1rem",borderBottom:"1px solid #e9ecef"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("a",{href:`/form/accreditation/${e.id}`,target:"_blank",style:{color:"#007bff",textDecoration:"none",fontSize:"1rem",fontWeight:"500",whiteSpace:"nowrap"},onMouseEnter:e=>{e.currentTarget.style.textDecoration="underline"},onMouseLeave:e=>{e.currentTarget.style.textDecoration="none"},className:"jsx-fc94f4a15b3c1e66",children:`${t+1}. ${e.name||"Accreditation"}`})}),(0,a.jsx)("td",{style:{padding:"1rem",textAlign:"center",borderBottom:"1px solid #e9ecef"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.5rem"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("div",{style:{width:"60px",height:"8px",backgroundColor:"#e9ecef",borderRadius:"4px",overflow:"hidden"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("div",{style:{width:`${e.completionPercentage}%`,height:"100%",backgroundColor:100===e.completionPercentage?"#28a745":e.completionPercentage>=50?"#ffc107":"#dc3545",transition:"width 0.3s ease"},className:"jsx-fc94f4a15b3c1e66"})}),(0,a.jsxs)("span",{style:{fontSize:"0.9rem",fontWeight:"500",color:100===e.completionPercentage?"#28a745":e.completionPercentage>=50?"#856404":"#dc3545"},className:"jsx-fc94f4a15b3c1e66",children:[e.completionPercentage,"%"]})]})}),(0,a.jsx)("td",{style:{padding:"1rem",textAlign:"center",borderBottom:"1px solid #e9ecef"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.25rem 0.75rem",borderRadius:"12px",fontSize:"0.8rem",fontWeight:"500",whiteSpace:"nowrap",backgroundColor:e.accreditationType?.includes("Exhibitor")?"#e7f3ff":e.accreditationType?.includes("Not found")?"#ffe3ee":"#e9ecef",color:e.accreditationType?.includes("Exhibitor")?"#0066cc":e.accreditationType?.includes("Not found")?"#dc3545":"#6c757d"},className:"jsx-fc94f4a15b3c1e66",children:e.accreditationType||"N/A"})}),(0,a.jsx)("td",{style:{padding:"1rem",textAlign:"center",borderBottom:"1px solid #e9ecef"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.25rem 0.75rem",borderRadius:"12px",fontSize:"0.8rem",fontWeight:"500",whiteSpace:"nowrap",backgroundColor:e.reviewStatus.includes("â
")?"#d4edda":"#e9ecef",color:e.reviewStatus.includes("â
")?"#155724":"#6c757d"},className:"jsx-fc94f4a15b3c1e66",children:e.reviewStatus})}),(0,a.jsx)("td",{style:{padding:"1rem",textAlign:"center",borderBottom:"1px solid #e9ecef"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("span",{style:{display:"inline-block",padding:"0.25rem 0.75rem",borderRadius:"12px",fontSize:"0.8rem",fontWeight:"500",whiteSpace:"nowrap",backgroundColor:e.claimStatus.includes("â
")?"#d4edda":"#e9ecef",color:e.claimStatus.includes("â
")?"#155724":"#6c757d"},className:"jsx-fc94f4a15b3c1e66",children:e.claimStatus})})]},e.id))})]})}):(0,a.jsx)("div",{style:{textAlign:"center",padding:"2rem",color:"#666",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"No accreditation pages found."})}),"accreditation"===L&&W["attached insurance guide"]&&l.length>0&&(0,a.jsxs)("div",{style:{marginTop:"3rem",padding:"2rem",backgroundColor:"#f8f9fa",borderRadius:"8px",border:"1px solid #e9ecef",textAlign:"center"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("h3",{style:{margin:"0 0 1rem 0",fontSize:"1.2rem",fontWeight:"600",color:"#333"},className:"jsx-fc94f4a15b3c1e66",children:"Need Help with Insurance?"}),(0,a.jsx)("p",{style:{margin:"0 0 1.5rem 0",color:"#666",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"Check out our accreditation insurance guide for detailed instructions and support."}),(0,a.jsx)("a",{href:W["attached insurance guide"],target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",padding:"0.75rem 1.5rem",backgroundColor:"#28a745",color:"white",textDecoration:"none",borderRadius:"6px",fontSize:"1rem",fontWeight:"500",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#218838"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#28a745"},className:"jsx-fc94f4a15b3c1e66",children:"\uD83D\uDEE1ï¸ View Insurance Guide"})]}),"quest"===L&&l.length>0&&(W["poap creation guide"]||W["supporter quest documentation"])&&(0,a.jsxs)("div",{style:{marginTop:"3rem",padding:"2rem",backgroundColor:"#f8f9fa",borderRadius:"8px",border:"1px solid #e9ecef",textAlign:"center"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("h3",{style:{margin:"0 0 1rem 0",fontSize:"1.2rem",fontWeight:"600",color:"#333"},className:"jsx-fc94f4a15b3c1e66",children:"Need Help with Quests?"}),(0,a.jsx)("p",{style:{margin:"0 0 1rem 0",color:"#666",fontSize:"1.3rem"},className:"jsx-fc94f4a15b3c1e66",children:(0,a.jsx)("b",{style:{color:"#000"},className:"jsx-fc94f4a15b3c1e66",children:"â ï¸ Don't forget to submit your POAP before the Oct 24th deadline \uD83D\uDDD3ï¸"})}),(0,a.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"1rem",justifyContent:"center"},className:"jsx-fc94f4a15b3c1e66",children:[W["poap creation guide"]&&(0,a.jsxs)("a",{href:W["poap creation guide"],target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.75rem 1.5rem",backgroundColor:"#968cff",color:"white",textDecoration:"none",borderRadius:"6px",fontSize:"1rem",fontWeight:"500",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#473e6b"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#968cff"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("img",{src:"https://poap.xyz/apple-touch-icon.png",alt:"",style:{width:"20px",height:"20px",borderRadius:"4px"},className:"jsx-fc94f4a15b3c1e66"}),(0,a.jsx)("span",{className:"jsx-fc94f4a15b3c1e66",children:"POAP Creation Guide"})]}),W["supporter quest documentation"]&&(0,a.jsx)("a",{href:W["supporter quest documentation"],target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",padding:"0.75rem 1.5rem",backgroundColor:"#007bff",color:"white",textDecoration:"none",borderRadius:"6px",fontSize:"1rem",fontWeight:"500",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#0056b3"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#007bff"},className:"jsx-fc94f4a15b3c1e66",children:"\uD83D\uDCD6 Supporter Quest Documentation"})]}),(0,a.jsxs)("p",{style:{margin:"1rem 0 0 0",color:"#666",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDC46 ",(0,a.jsx)("b",{className:"jsx-fc94f4a15b3c1e66",children:"Design template"})," available in the POAP Creation Guide."]})]}),"supporter"===L&&W["supporter quest documentation"]&&l.length>0&&(0,a.jsxs)("div",{style:{marginTop:"3rem",padding:"2rem",backgroundColor:"#f8f9fa",borderRadius:"8px",border:"1px solid #e9ecef",textAlign:"center"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("h3",{style:{margin:"0 0 1rem 0",fontSize:"1.2rem",fontWeight:"600",color:"#333"},className:"jsx-fc94f4a15b3c1e66",children:"Need Help with Supporter Quests?"}),(0,a.jsx)("p",{style:{margin:"0 0 1.5rem 0",color:"#666",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"Check out our Supporter Quest Documentation for detailed instructions and support."}),(0,a.jsx)("a",{href:W["supporter quest documentation"],target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",padding:"0.75rem 1.5rem",backgroundColor:"#007bff",color:"white",textDecoration:"none",borderRadius:"6px",fontSize:"1rem",fontWeight:"500",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#0056b3"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#007bff"},className:"jsx-fc94f4a15b3c1e66",children:"\uD83D\uDCD6 View Supporter Quest Documentation"})]}),"org"===L&&Object.keys(D).length>0&&b.length>0&&(0,a.jsxs)("div",{style:{marginTop:"3rem",padding:"2rem",backgroundColor:"#f8f9fa",borderRadius:"8px",border:"1px solid #e9ecef",textAlign:"center"},className:"jsx-fc94f4a15b3c1e66",children:[(0,a.jsx)("h3",{style:{margin:"0 0 1rem 0",fontSize:"1.2rem",fontWeight:"600",color:"#333"},className:"jsx-fc94f4a15b3c1e66",children:"Need Help?"}),(0,a.jsx)("p",{style:{margin:"0 0 1.5rem 0",color:"#666",fontSize:"1rem"},className:"jsx-fc94f4a15b3c1e66",children:"Check out our guides and resources for detailed instructions and support."}),(0,a.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"1rem",justifyContent:"center"},className:"jsx-fc94f4a15b3c1e66",children:Object.entries(D).map(([e,t])=>t&&(0,a.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",padding:"0.75rem 1.5rem",backgroundColor:"#007bff",color:"white",textDecoration:"none",borderRadius:"6px",fontSize:"1rem",fontWeight:"500",transition:"background-color 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#0056b3"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#007bff"},className:"jsx-fc94f4a15b3c1e66",children:["\uD83D\uDCD6 ",e]},e))})]}),(0,a.jsx)(o(),{id:"fc94f4a15b3c1e66",children:"@keyframes slideIn{from{transform:translatex(100%);opacity:0}
1to{transform:translatex(0);opacity:1}}"})]})}},74045:(e,t,r)=>{"use strict";e.exports=r(36068).style},81948:()=>{},92848:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/form/[name]/[id]",function(){return r(58149)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=92848)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.