PageSourceSearch

https://www.glitch.fun/static/js/63765.04779af7.chunk.js

js glitch.fun collected 2026-09-24 10:39:15 UTC 69,752 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[2889,6387,10305,61449,63765,78154],{2889:function(e,a,n){n.r(a),n.d(a,{default:function(){return r}});n(88094);var s=n(15678);function r(e){var a=e.message,n="object"===typeof a?JSON.stringify(a):a;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"alert alert-danger",role:"alert",children:n})})}},6387:function(e,a,n){n.r(a);n(88094);var s=n(15678);a.default=function(){return(0,s.jsx)("span",{className:"text-danger",children:"*"})}},61449:function(e,a,n){n.r(a),n.d(a,{default:function(){return r}});n(88094);var s=n(15678);function r(e){var a=e.children,n=e.name,r=e.className,t=e.onChange,l=e.value;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("select",{name:n,className:r,onChange:t,value:l,children:a})})}},18244:function(e,a,n){n.r(a),n.d(a,{default:function(){return x}});var s=n(91212),r=n(10467),t=n(5544),l=n(88094),i=n(45256),o=n(10305),c=n(15678),d=null,m=null,u=null;if("undefined"!==typeof window){var h=n(95981),p=n(14099);d=h.default||h,m=p.default||p,n(45037);try{var g=n(5354);u=g.default||g,n(62384),m&&u&&!m.imports["modules/table-better"]&&m.register({"modules/table-better":u},!0)}catch(b){0,u=null}}function x(e){var a=e.children,n=e.name,m=e.placeholder,h=e.className,p=e.value,g=e.id,x=e.onChange,b=e.enableBlockquoteAndIndent,f=void 0!==b&&b,v=e.enableTables,y=void 0===v||v,j=e.enableMedia,w=void 0!==j&&j,N=e.readOnly,k=void 0!==N&&N,A=e.ariaLabel,_=e.formats,C=e.stickyTop,S=void 0===C?0:C,I=(0,l.useState)(0),P=(0,t.A)(I,2),D=P[0],R=P[1],M=(0,l.useState)(!1),T=(0,t.A)(M,2),q=T[0],E=T[1],B=(0,l.useState)(!1),W=(0,t.A)(B,2),F=W[0],L=W[1],U=(0,l.useRef)(null),H=(0,l.useRef)(null);(0,l.useEffect)((function(){var e,a,n=null===(e=H.current)||void 0===e||null===(a=e.getEditor)||void 0===a?void 0:a.call(e).root;n&&A&&(n.setAttribute("role","textbox"),n.setAttribute("aria-label",A),n.setAttribute("aria-multiline","true"))}),[A]),(0,l.useEffect)((function(){var e=function(e){U.current&&!U.current.contains(e.target)?L(!1):U.current&&U.current.contains(e.target)&&L(!0)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}),[]),(0,l.useEffect)((function(){var e=function(){if(U.current){var e=U.current.querySelector(".ql-toolbar"),a=U.
1current.querySelector(".ql-container"),n=U.current.querySelector(".upload-progress-container");if(e&&a){var s=U.current.getBoundingClientRect(),r=e.offsetHeight,t=n?n.offsetHeight:0;if(F&&s.top<S&&s.bottom>r+t+100){var l=s.left,i=s.width;n&&(n.style.setProperty("position","fixed","important"),n.style.setProperty("top","".concat(S,"px"),"important"),n.style.setProperty("left","".concat(l,"px"),"important"),n.style.setProperty("width","".concat(i,"px"),"important"),n.style.setProperty("z-index","1000000","important")),e.style.setProperty("position","fixed","important"),e.style.setProperty("top","".concat(S+t,"px"),"important"),e.style.setProperty("left","".concat(l,"px"),"important"),e.style.setProperty("width","".concat(i,"px"),"important"),e.style.setProperty("z-index","999999","important"),e.style.setProperty("background-color","#ffffff","important"),e.style.setProperty("box-shadow","0 10px 20px rgba(0,0,0,0.3)","important"),e.style.setProperty("border","1px solid #ccc","important"),a.style.setProperty("margin-top","".concat(r+t,"px"),"important")}else n&&(n.style.position="static",n.style.width="100%"),e.style.position="static",e.style.width="100%",e.style.top="auto",e.style.left="auto",e.style.boxShadow="none",e.style.backgroundColor="#f8f9fa",e.style.border="1px solid #e2e8f0",a.style.setProperty("margin-top","0","important")}}};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}}),[F,q,S]),(0,l.useEffect)((function(){H.current&&(H.current.getEditor().scrollIntoView=function(){})}),[]);var K=(0,l.useMemo)((function(){var e;return"object"===typeof a||"function"===typeof a?JSON.stringify(a):null!==(e=null!==a&&void 0!==a?a:p)&&void 0!==e?e:""}),[a,p]),G=(0,l.useMemo)((function(){return(0,o.buildWysiwygToolbar)({enableBlockquoteAndIndent:f,enableMedia:w,enableTables:y,tableAvailable:Boolean(u)})}),[f,w,y]),z=(0,l.useMemo)((function(){var e={toolbar:{container:G,handlers:{image:function(){var e=this.quill,a=document.createElement("input");a.setAttribute("type","file"),a.setAttribute("accept","image/*"),a.click(),a.onchange=(0,r.A)((0,s.A)().m((function n(){var r,t,l;return(0,s.A)().w((function(n){for(;;)switch(n.p=n.n){case 0:if(r=a.files[0]){n.n=1;break}return n.a(2);case 1:if(!(r.size>10485760)){n.n=2;break}return alert("Images must be 10MB or smaller."),n.a(2);case 2:return t=e.getSelection(!0),E(!0),n.p=3,n.n=4,i.Ay.api.Media.uploadFile(r,{},{},(function(e){R(Math.round(100*e.loaded/e.total))}));case 4:l=n.v,e.insertEmbed(t.index,"image",l.data.data.url,"user"),e.setSelection(t.index+1,"silent"),n.n=6;break;case 5:n.p=5,n.v,alert("Upload failed");case 6:return n.p=6,E(!1),R(0),n.f(6);case 7:return n.a(2)}}),n,null,[[3,5,6,7]])})))},video:function(){var e=this.quill;if(!window.confirm("Upload a video file? Select Cancel to embed a video URL instead.")){var a=window.prompt("Paste a YouTube, Vimeo, or direct video URL");if(!a)return;var n=e.getSelection(!0);return e.insertEmbed(n.index,"video",a,"user"),void e.setSelection(n.index+1,"silent")}var t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","video/*"),t.click(),t.onchange=(0,r.A)((0,s.A)().m((function a(){var n,r,l;return(0,s.A)().w((function(a){for(;;)switch(a.p=a.n){case 0:if(n=t.files[0]){a.n=1;break}return a.a(2);case 1:if(!(n.size>104857600)){a.n=2;break}return alert("Videos must be 100MB or smaller."),a.a(2);case 2:return r=e.getSelection(!0),E(!0),a.p=3,a.n=4,i.Ay.api.Media.uploadFile(n,{},{},(function(e){R(Math.round(100*e.loaded/e.total))}));case 4:l=a.v,e.insertEmbed(r.index,"video",l.data.data.url,"user"),e.setSelection(r.index+1,"silent"),a.n=6;break;case 5:a.p=5,a.v,alert("Upload failed");case 6:return a.p=6,E(!1),R(0),a.f(6);case 7:return a.a(2)}}),a,null,[[3,5,6,7]])})))}}},clipboard:{matchVisual:!1}};return y&&u&&(e.table=!1,e["table-better"]={language:"en_US",menus:["column","row","merge","table","cell","wrap","delete"],toolbarTable:!0},e.keyboard={bindings:u.keyboardBindings}),e}),[G,w]);return d?(0,c.jsxs)("div",{ref:U,className:"glitch-wysiwyg-wrapper ".concat(F?"is-active":""),children:[q&&(0,c.jsxs)("div",{className:"upload-progress-container",children:[(0,c.jsxs)("div",{className:"progress-label",children:["Uploading Media... ",D,"%"]}),(0,c.jsx)("div",{className:"progress-bar-outer",children:(0,c.jsx)("div",{className:"progress-bar-inner",style:{width:"".concat(D,"%")}
1})})]}),(0,c.jsx)(d,{ref:H,theme:"snow",modules:z,style:{backgroundColor:"white",color:"black"},name:n,placeholder:m||"Write something amazing...",className:h,id:g,value:K,onChange:x,readOnly:k,formats:_,scrollingContainer:"html",preserveWhitespace:!0}),(0,c.jsx)("style",{children:"\n                    .glitch-wysiwyg-wrapper {\n                        position: relative;\n                        background: white;\n                        border-radius: 8px;\n                        border: 1px solid #e2e8f0;\n                        margin-bottom: 30px;\n                        overflow-anchor: none; /* FIX: Prevents browser scroll anchoring jumps */\n                    }\n\n                    .glitch-wysiwyg-wrapper .ql-snow .ql-tooltip input[type=text] {\n                        color: #1a202c !important;\n                        background-color: #ffffff !important;\n                        border: 1px solid #ccc !important;\n                    }\n\n                    /* Natural Paragraph Spacing */\n                    .glitch-wysiwyg-wrapper,\n                    .glitch-wysiwyg-wrapper .ql-container,\n                    .glitch-wysiwyg-wrapper .ql-editor,\n                    .glitch-wysiwyg-wrapper .ql-editor *,\n                    .glitch-wysiwyg-wrapper .ql-snow .ql-tooltip,\n                    .glitch-wysiwyg-wrapper .ql-snow .ql-tooltip *,\n                    .glitch-wysiwyg-wrapper textarea {\n                        color: #1a202c !important;\n                    }\n\n                    /* Placeholder text should also stay readable */\n                    .glitch-wysiwyg-wrapper .ql-editor.ql-blank::before {\n                        color: #1a202c !important;\n                        opacity: 0.55;\n                    }\n\n                    /* Natural Paragraph Spacing */\n                    .glitch-wysiwyg-wrapper .ql-editor {\n                        line-height: 1.8;\n                        font-size: 16px;\n                        min-height: 250px;\n                        padding: 30px;\n                        color: #1a202c !important;\n                        background-color: #ffffff !important;\n                    }\n                    .glitch-wysiwyg-wrapper .ql-editor {\n                        line-height: 1.8;\n                        font-size: 16px;\n                        min-height: 250px;\n                        padding: 30px;\n                        color: #1a202c;\n                    }\n\n                    .glitch-wysiwyg-wrapper .ql-editor p,\n                    .glitch-wysiwyg-wrapper .ql-editor ul,\n                    .glitch-wysiwyg-wrapper .ql-editor ol {\n                        margin-bottom: 1.6rem !important;\n                    }\n\n                    /* Black Links */\n                    .glitch-wysiwyg-wrapper .ql-snow .ql-editor a {\n                        color: #000000 !important;\n                        text-decoration: underline;\n                        font-weight: 700;\n                    }\n\n                    /* Image Styling */\n                    .glitch-wysiwyg-wrapper .ql-editor img {\n                        max-width: 100%;\n                        height: auto;\n                        display: block;\n                        margin: 35px auto;\n                        border-radius: 12px;\n                        box-shadow: 0 10px 25px rgba(0,0,0,0.15);\n                    }\n\n                    /* Progress Bar Styling */\n                    .upload-progress-container {\n                        background: #fff;\n                        border: 1px solid #cbd5e0;\n                        padding: 12px;\n                        border-top-left-radius: 8px;\n                        border-top-right-radius: 8px;\n                    }\n\n                    .progress-bar-outer {\n                        width: 100%;\n                        height: 8px;\n                        background: #edf2f7;\n                        border-radius: 10px;\n                        overflow: hidden;\n                    }\n\n                    .progress-bar-inner {\n                        height: 100%;\n                        background: #3182ce;\n                        transition: width 0.3s;\n                    }\n\n                    /* Standard UI */\n                    .glitch-wysiwyg-wrapper .ql-toolbar.ql-snow {\n                        border: none;\n                        border-bottom: 1px solid #e2e8f0;\n                        background-color: #f8f9fa;\n                        border-top-left-radius: 8px;\n                        border-top-right-radius: 8px;\n                    }\n\n                    .glitch-wysiwyg-wrapper .ql-container.ql-snow {\n                        border: none;\n                    }\n                "})]}):(0,c.jsx)("textarea",{name:n,className:h,id:g,value:K,readOnly:!0})}},10305:function(e,a,n){n.r(a),n.d(a,{buildWysiwygToolbar:function(){return r}});var s=[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],[{align:[]}],["link"],["clean"]],r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.enableBlockquoteAndIndent,n=void 0!==a&&a,r=e.enableMedia,t=void 0!==r&&r,l=e.enableTables,i=void 0!==l&&l,o=e.tableAvailable,c=void 0!==o&&o,d=JSON.parse(JSON.stringify(s));return n&&d.splice(4,0,["blockquote"],[{indent:"-1"},{indent:"+1"}]),t&&d.find((function(e){return e.includes("link")})).push("image","video"),i&&c&&d.push(["table-better"]),d}},78154:function(e,a,n){n.r(a),n.d(a,{default:function(){return t}});var s=n(91212),r=n(10467);n(88094);function t(e,a){return l.apply(this,arguments)}function l(){return(l=(0,r.A)((0,s.A)().m((function e(a,n){var r,t,l;return(0,s.A)().w((function(e){for(;;
1)if(0===e.n)return(r=new Image).src=a,t=document.createElement("canvas"),l=t.getContext("2d"),t.width=n.width,t.height=n.height,l.drawImage(r,n.x,n.y,n.width,n.height,0,0,n.width,n.height),e.a(2,new Promise((function(e,a){t.toBlob((function(n){n?(n.name="newFile.jpeg",window.URL.revokeObjectURL(n),e(n)):a(new Error("Canvas is empty"))}),"image/jpeg")})))}),e)})))).apply(this,arguments)}},63765:function(e,a,n){n.r(a);var s=n(64467),r=n(89379),t=n(91212),l=n(60436),i=n(10467),o=n(5544),c=n(88094),d=n(45256),m=n(2889),u=n(82724),h=n(78154),p=n(6387),g=n(18244),x=n(61449),b=n(77103),f=n(59272),v=n(99763),y=n(95465),j=n(82566),w=n(43930),N=n(88404),k=n(55713),A=n(47894),_=n(15678),C=function(e){return(0,_.jsx)(j.A,{children:e})},S=function(e){var a=e.label,n=e.name,s=e.value,r=e.onChange,t=e.tooltipText,l=e.type,i=void 0===l?"text":l,o=e.required,c=void 0!==o&&o,d=e.placeholder,m=void 0===d?"":d,u=e.errors,h=s||"";return s&&("date"===i?h=s.substring(0,10):"datetime-local"===i&&(h=s.substring(0,16))),(0,_.jsxs)("div",{className:"form-group mb-4",children:[(0,_.jsxs)("label",{htmlFor:n,className:"form-label fw-bold text-dark d-flex align-items-center",children:[a," ",c&&(0,_.jsx)(p.default,{}),t&&(0,_.jsx)(v.A,{placement:"top",overlay:C(t),children:(0,_.jsx)(k.gc,{icon:A.wRm,className:"ms-2 text-muted small",style:{cursor:"pointer"}})})]}),(0,_.jsx)("div",{className:"input-group shadow-sm",children:(0,_.jsx)("input",{type:i,className:"form-control form-control-custom p-3 ".concat(u&&u[n]?"is-invalid":""),id:n,name:n,value:h,onChange:r,placeholder:m})}),u&&u[n]&&u[n].map((function(e,a){return(0,_.jsx)("div",{className:"text-danger small mt-1",children:e},a)}))]})},I=function(e){var a=e.label,n=e.name,s=e.value,r=e.tooltipText,t=e.required,l=void 0!==t&&t,i=e.errors,o=e.onWysiwygChange;return(0,_.jsxs)("div",{className:"form-group mb-4",children:[(0,_.jsxs)("label",{htmlFor:n,className:"form-label fw-bold text-dark d-flex align-items-center",children:[a," ",l&&(0,_.jsx)(p.default,{}),r&&(0,_.jsx)(v.A,{placement:"top",overlay:C(r),children:(0,_.jsx)(k.gc,{icon:A.wRm,className:"ms-2 text-muted small",style:{cursor:"pointer"}})})]}),(0,_.jsx)("div",{className:"shadow-sm rounded overflow-hidden border",children:(0,_.jsx)(g.default,{children:s||"",name:n,id:n,onChange:function(e){return o(n,e)},enableMedia:!0})}),i&&i[n]&&i[n].map((function(e,a){return(0,_.jsx)(m.default,{message:e},a)}))]})};a.default=function(e){var a=e.gameTitle,n=e.campaignData,m=e.setGameTitle,g=(e.onMainImageUpdate,e.onBannerImageUpdate,e.setMainImageBlob),j=e.setBannerImageBlob,P=e.externalGameData,D=e.errors,R=e.showPressKit,M=e.showPlayTest,T=e.requireCommunity,q=void 0!==T&&T,E=e.isCreate,B=(e.editorMode,e.communities),W=void 0===B?[]:B,F=e.onMediaIdsUpdate,L=e.currentMediaFiles,U=void 0===L?[]:L,H=e.setTmpMediaFiles,K=void 0===H?null:H,G=e.setOrderOfMediaFiles,z=void 0===G?null:G,O=(e.openAdditionalInfo,e.openDistribution),J=void 0!==O&&O,V=e.showInstructions,Y=void 0!==V&&V,Z=e.containerLess,X=void 0!==Z&&Z,$=e.shortened_form,Q=void 0!==$&&$,ee=e.showPastTitleSelector,ae=void 0===ee||ee,ne=(0,c.useState)("0"),se=(0,o.A)(ne,2),re=se[0],te=se[1],le=(0,c.useState)(null),ie=(0,o.A)(le,2),oe=ie[0],ce=ie[1],de=(0,c.useState)(null),me=(0,o.A)(de,2),ue=me[0],he=me[1],pe=(0,c.useState)({x:0,y:0}),ge=(0,o.A)(pe,2),xe=ge[0],be=ge[1],fe=(0,c.useState)({x:0,y:0}),ve=(0,o.A)(fe,2),ye=ve[0],je=ve[1],we=(0,c.useState)(1),Ne=(0,o.A)(we,2),ke=Ne[0],Ae=Ne[1],_e=(0,c.useState)(1),Ce=(0,o.A)(_e,2),Se=Ce[0],Ie=Ce[1],Pe=(0,c.useState)(null),De=(0,o.A)(Pe,2),Re=De[0],Me=De[1],Te=(0,c.useState)(null),qe=(0,o.A)(Te,2),Ee=qe[0],Be=qe[1],We=(0,c.useState)(null),Fe=(0,o.A)(We,2),Le=Fe[0],Ue=Fe[1],He=(0,c.useState)(null),Ke=(0,o.A)(He,2),Ge=Ke[0],ze=Ke[1],Oe=(0,c.useState)(!1),Je=(0,o.A)(Oe,2),Ve=Je[0],Ye=Je[1],Ze=(0,c.useState)(!1),Xe=(0,o.A)(Ze,2),$e=Xe[0],Qe=Xe[1],ea=(0,c.useState)(""),aa=(0,o.A)(ea,2),na=aa[0],sa=aa[1],ra=(0,c.useState)(U||[]),ta=(0,o.A)(ra,2),la=ta[0],ia=ta[1],oa=(0,c.useState)({}),ca=(0,o.A)(oa,2),da=ca[0],ma=ca[1],ua=(0,c.useState)([]),ha=(0,o.A)(ua,2),pa=ha[0],ga=ha[1],xa=(0,c.useState)([]),ba=(0,o.A)(xa,2),fa=ba[0],va=ba[1],ya=(0,c.useState)([]),ja=(0,o.A)(ya,2),wa=ja[0],Na=ja[1],ka=(0,c.useState)([]),Aa=(0,o.A)(ka,2),_a=Aa[0],Ca=Aa[1],Sa=(0,c.useState)(""),Ia=(0,o.A)(Sa,2),Pa=Ia[0],Da=Ia[1],Ra=Pa.trim().toLocaleLowerCase(),Ma=Ra?_a.filter((function(e){return String(e.name||"").toLocaleLowerCase().includes(Ra
1)})):_a;(0,c.useEffect)((function(){if(U&&U.length>0){var e=U.map((function(e){return e.id}));ga(e)}}),[U]),(0,c.useEffect)((function(){d.Ay.api.Utility.listGenres().then((function(e){Ca(e.data.data)})).catch((function(e){return console.error("Error fetching genres",e)}))}),[]),(0,c.useEffect)((function(){null!==P&&void 0!==P&&P.header_image&&La(P.header_image,ce,be,Ae,Ye),null!==P&&void 0!==P&&P.capsule_image&&La(P.capsule_image,he,je,Ie,Qe);var e=function(){var e=(0,i.A)((0,t.A)().m((function e(){var a,n,s,r,i,o,c,m,u,h;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,d.Ay.api.Titles.list({manageable:!0,per_page:100,page:1,sort_by:"name",sort_order:"asc"});case 1:for(s=e.v,r=(null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.data)||[],i=Number((null===s||void 0===s||null===(n=s.data)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.last_page)||1),o=[],c=2;c<=i;c+=1)o.push(d.Ay.api.Titles.list({manageable:!0,per_page:100,page:c,sort_by:"name",sort_order:"asc"}));return e.n=2,Promise.all(o);case 2:m=e.v,u=m.flatMap((function(e){var a;return(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.data)||[]})),Na([].concat((0,l.A)(r),(0,l.A)(u))),e.n=4;break;case 3:e.p=3,h=e.v,console.error("Failed to fetch manageable titles:",h);case 4:return e.a(2)}}),e,null,[[0,3]])})));return function(){return e.apply(this,arguments)}}();e()}),[P]),(0,c.useEffect)((function(){a&&(a.image_main&&Ue(a.image_main),a.image_banner&&ze(a.image_banner),a.media&&Array.isArray(a.media)&&ia(a.media))}),[a]);var Ta=function(e,a){m((function(n){return(0,r.A)((0,r.A)({},n),{},(0,s.A)({},e,a))}))},qa=function(e){var a=e.target,n=a.name,t=a.value,l=a.type,i=t;"date"!==l&&"datetime-local"!==l||""!==t?"checkbox"===l?i=e.target.checked:"is_virtual"!==n&&"is_media_kit"!==n&&"enable_playtesting"!==n||(i="1"===t):i=null,m((function(e){return(0,r.A)((0,r.A)({},e),{},(0,s.A)({},n,i))}))},Ea=(0,c.useCallback)((function(e,a){Me(a)}),[]),Ba=(0,c.useCallback)((function(e,a){Be(a)}),[]),Wa=function(){var e=(0,i.A)((0,t.A)().m((function e(n,s,l,i){var o,c,u;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,h.default)(n,s);case 1:if(o=e.v,c=URL.createObjectURL(o),!a.id||"mainImage"!==i){e.n=3;break}return Ue(c),m((function(e){return(0,r.A)((0,r.A)({},e),{},{image_main:c})})),e.n=2,d.Ay.api.Titles.uploadMainImageBlob(a.id,o);case 2:e.n=6;break;case 3:if(!a.id||"bannerImage"!==i){e.n=5;break}return ze(c),m((function(e){return(0,r.A)((0,r.A)({},e),{},{image_banner:c})})),e.n=4,d.Ay.api.Titles.uploadBannerImageBlob(a.id,o);case 4:e.n=6;break;case 5:a.id||"mainImage"!==i?a.id||"bannerImage"!==i||(ze(c),m((function(e){return(0,r.A)((0,r.A)({},e),{},{image_banner:c})})),j(o)):(Ue(c),m((function(e){return(0,r.A)((0,r.A)({},e),{},{image_main:c})})),g(o));case 6:l(null),e.n=8;break;case 7:e.p=7,u=e.v,console.error(u);case 8:return e.a(2)}}),e,null,[[0,7]])})));return function(a,n,s,r){return e.apply(this,arguments)}}(),Fa=function(e,a,n,s,r){var t=e.target.files[0];if(t){var l=new FileReader;l.readAsDataURL(t),l.onloadend=function(){a(l.result),n({x:0,y:0}),s(1),r(!0)}}},La=function(){var e=(0,i.A)((0,t.A)().m((function e(a,n,s,r,l){var i,o,c,d,m;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:return i="https://api.glitch.fun/api/images/proxy?url=".concat(encodeURIComponent(a)),e.p=1,e.n=2,fetch(i);case 2:return o=e.v,e.n=3,o.blob();case 3:c=e.v,(d=new FileReader).readAsDataURL(c),d.onloadend=function(){n(d.result),s({x:0,y:0}),r(1),l(!0)},e.n=5;break;case 4:e.p=4,m=e.v,console.error("Failed to fetch image:",m);case 5:return e.a(2)}}),e,null,[[1,4]])})));return function(a,n,s,r,t){return e.apply(this,arguments)}}(),Ua=function(){var e=(0,i.A)((0,t.A)().m((function e(a){var n,i,o,c;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n=a.target.files[0]){e.n=1;break}return e.a(2);case 1:return ma((function(e){return(0,r.A)((0,r.A)({},e),{},(0,s.A)({},n.name,0))})),e.p=2,e.n=3,d.Ay.api.Media.uploadFile(n,{},{},(function(e){var a=Math.round(100*e.loaded/e.total);ma((function(e){return(0,r.A)((0,r.A)({},e),{},(0,s.A)({},n.name,a))}))}));case 3:i=e.v,o=i.data.data,ia((function(e){return[].concat((0,l.A)(e),[o])})),m((function(e){return(0,r.A)((0,r.A)({},e),{},{media:[].concat((0,l.A)(e.media||[]),[o])})})),K&&K((function(e){return[].concat((0,l.A)(e),[o])})),ga((function(e){return[].concat((0,l.A)(e),[o.id])})),ma((function(e){var a=(0,r.A)({},e);return delete a[n.name],a})),e.n=5;break;case 4:e.p=4,c=e.v,console.error("Media upload failed:",c),ma((function(e){return(0,r.A)((0,r.A)({},e),{},(0,s.A)({},n.name,"Error"))})),setTimeout((function(){ma((function(e){var a=(0,r.A)({},e);return delete a[n.name],a}))}),3e4);case 5:return e.a(2)}}),e,null,[[2,4]])})));return function(a){return e.apply(this,arguments)}}(),Ha=function(){var e=(0,i.A)((0,t.A)().m((function e(a){return(0,t.A)().w((function(e){for(;;)switch(e.n){case 0:try{ia((function(e){return e.filter((function(e){return e.id!==a}))})),K&&K((function(e){return e.filter((function(e){return e.id!==a}))})),va((function(e){return[].concat((0,l.A)(e),[a])})),ga((function(e){return e.filter((function(e){return e!==a}))}))}catch(n){console.error("Failed to remove media:",n)}case 1:return e.a(2)}}),e)})));return function(a){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e=function(){var e=(0,i.A)((0,t.A)().m((function e(){var n,s,r;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:if(null!==a&&void 0!==a&&a.id){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,d.Ay.api.Titles.view(a.id);case 2:n=e.v,s=n.data.data.media||[],ia(s),K&&K(s),e.n=4;break;case 3:e.p=3,r=e.v,console.error("Failed to fetch media files:",r);case 4:return e.a(2)}}),e,null,[[1,3]])}
1)));return function(){return e.apply(this,arguments)}}();e()}),[a.id]),(0,c.useEffect)((function(){"function"===typeof F&&F({pendingMediaIds:pa,removedMediaIds:fa})}),[pa,fa]);return(0,_.jsxs)("div",{className:"".concat(X?"":"container"," mt-4"),children:[ae&&E&&wa&&wa.length>0&&(0,_.jsx)("div",{className:"card border-0 shadow-sm mb-4 bg-light",children:(0,_.jsxs)("div",{className:"card-body p-4",children:[(0,_.jsxs)("div",{className:"d-flex align-items-center mb-3",children:[(0,_.jsx)("div",{className:"bg-white rounded-circle p-2 me-3 shadow-sm text-primary",children:(0,_.jsx)(k.gc,{icon:A.Int})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h5",{className:"card-title fw-bold mb-1 text-dark",children:"Use a Previous Title"}),(0,_.jsx)("p",{className:"card-text text-muted small mb-0",children:"Pre-fill this form with data from a game you've already created."})]})]}),(0,_.jsxs)(x.default,{id:"pastTitleSelect",name:"pastTitleSelect",className:"form-select form-select-lg border-0 shadow-sm",onChange:function(e){var a=e.target.value;sa(a),""!==a?d.Ay.api.Titles.view(a).then((function(e){m(e.data.data),e.data.data.image_main&&Ue(e.data.data.image_main),e.data.data.image_banner&&ze(e.data.data.image_banner)})).catch((function(e){console.error("Failed to fetch title data:",e)})):(m({}),Ue(null),ze(null))},value:na,children:[(0,_.jsx)("option",{value:"",children:"Start with a New Title"}),wa.map((function(e){var a;return(0,_.jsxs)("option",{value:e.id,children:[e.name,null!==(a=e.community)&&void 0!==a&&a.name?" \u2014 ".concat(e.community.name):""]},e.id)}))]})]})}),(!(null!==n&&void 0!==n&&n.promotion_type)||0==(null===n||void 0===n?void 0:n.promotion_type))&&(0,_.jsxs)("div",{className:"card border-0 shadow-sm mb-3 ".concat(X?"p-0":""),children:[!X&&(0,_.jsx)("div",{className:"card-header bg-white py-4 px-4 border-bottom",children:(0,_.jsxs)("div",{className:"d-flex align-items-center",children:[(0,_.jsx)("div",{className:"bg-primary bg-opacity-10 rounded-circle p-3 me-3 text-primary",children:(0,_.jsx)(k.gc,{icon:A.Rbk,className:"fs-3"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h3",{className:"mb-1 fw-bold text-dark",children:"Game Information"}),(0,_.jsx)("p",{className:"text-muted mb-0 small",children:"Tell us about your game. Detailed information helps us generate better content."})]})]})}),(0,_.jsx)("div",{className:"card-body bg-light ".concat(X?"p-0 m-0 bg-transparent":"p-4"),children:(0,_.jsx)("form",{children:(0,_.jsxs)(f.A,{activeKey:re,onSelect:te,alwaysOpen:!0,className:"custom-accordion",children:[(0,_.jsxs)(f.A.Item,{eventKey:"0",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-primary bg-opacity-10 text-primary rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.Rbk,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"The Basics"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Core identity and required fields."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[q&&(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-12 mb-3",children:(0,_.jsxs)("div",{className:"form-group mb-4",children:[(0,_.jsxs)("label",{htmlFor:"community_id",className:"form-label fw-bold text-dark",children:["Business Account ",(0,_.jsx)(p.default,{}),(0,_.jsx)(v.A,{placement:"top",overlay:C("Every title must be associated with a business account. This determines who can manage the title."),children:(0,_.jsx)(k.gc,{icon:A.wRm,className:"ms-2 text-muted small",style:{cursor:"pointer"}})})]}),(0,_.jsx)("div",{className:"input-group shadow-sm",children:(0,_.jsxs)("select",{className:"form-select form-control-custom p-3 ".concat(D&&D.community_id?"is-invalid":""),name:"community_id",id:"community_id",value:(null===a||void 0===a?void 0:a.community_id)||"",onChange:qa,children:[(0,_.jsx)("option",{value:"",children:"Select an Account..."}),W.map((function(e){return(0,_.jsx)("option",{value:e.id,children:e.name},e.id)}))]})}),D&&D.community_id&&D.community_id.map((function(e,a){return(0,_.jsx)("div",{className:"text-danger small mt-1",children:e},a)})),(0,_.jsxs)("p",{className:"form-text text-muted mt-2 small",children:[(0,_.jsx)(k.gc,{icon:A.iW_,className:"me-1"}),"Don't see your account? Create one ",(0,_.jsx)(w.N_,{to:b.default.communitiesCreatePage(),children:"here"}),"."]})]})})}),(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(S,{label:"Game Name",name:"name",value:null===a||void 0===a?void 0:a.name,onChange:qa,tooltipText:"The official title of your game as it appears on stores.",required:!0,placeholder:"e.g., Cyber Odyssey 2099",errors:D})})}),(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Short Description",name:"short_description",value:null===a||void 0===a?void 0:a.short_description,tooltipText:"The 'elevator pitch'. A one-paragraph summary shown in previews.",required:!0,errors:D,onWysiwygChange:Ta})})}),(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Long Description (optional)",name:"long_description",value:null===a||void 0===a?void 0:a.long_description,tooltipText:"A detailed description explaining the story, features, and world.",errors:D,onWysiwygChange:Ta})})})]})]}),(0,_.jsxs)(f.A.Item,{eventKey:"9",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-warning bg-opacity-10 text-warning rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.DX_,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Categories & Genres"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Help players find your game by selecting relevant tags."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[(0,_.jsxs)("div",{className:"mb-4",children:[(0,_.jsx)("label",{htmlFor:"genre-search",className:"form-label fw-bold text-dark small mb-2",children:"Search genres"}),(0,_.jsxs)("div",{className:"position-relative",children:[(0,_.jsx)(k.gc,{icon:A.MjD,className:"genre-search-icon text-muted","aria-hidden":"true"}),(0,_.jsx)("input",{type:"search",id:"genre-search",className:"form-control form-control-custom genre-search-input p-3 ps-5",value:Pa,onChange:function(e){return Da(e.target.value)},placeholder:"Search by genre name...",autoComplete:"off","aria-describedby":"genre-search-results"})]}),(0,_.jsx)("div",{id:"genre-search-results",className:"small text-muted mt-2","aria-live":"polite",children:Ra?"".concat(Ma.length," of ").concat(_a.length," genres shown"):"".concat(_a.length," genres available")})]}),Ma.length>0?(0,_.jsx)("div",{className:"genre-selection-grid",children:Ma.map((function(e){var n,s=null===(n=a.genres)||void 0===n?void 0:n.some((function(a){return a.id===e.id}));return(0,_.jsx)("div",{className:"genre-item ".concat(s?"active":""),onClick:function(){return function(e){var n,s=a.genres||[];if(s.some((function(a){return a.id===e})))n=s.filter((function(a){return a.id!==e}));else{var t=_a.find((function(a){return a.id===e}));n=[].concat((0,l.A)(s),[t])}m((function(e){return(0,r.A)((0,r.A)({},e),{},{genres:n})}))}(e.id)},children:(0,_.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,_.jsx)("span",{className:"small fw-bold",children:e.name}),s&&(0,_.jsx)(k.gc,{icon:A.e68,className:"text-primary"})]})},e.id)}))}):(0,_.jsxs)("div",{className:"genre-search-empty text-center border rounded bg-light py-4 px-3",children:[(0,_.jsx)(k.gc,{icon:A.MjD,className:"text-muted mb-2"}),(0,_.jsx)("div",{className:"fw-bold text-dark",children:"No genres found"}),(0,_.jsx)("div",{className:"small text-muted",children:"Try a different genre name."})]}),(!a.genres||0===a.genres.length)&&(0,_.jsxs)("div",{className:"mt-3 text-warning small",children:[(0,_.jsx)(k.gc,{icon:A.zpE,className:"me-2"}),"Please select at least one genre for better visibility."]})]})]}),Y&&(0,_.jsxs)(f.A.Item,{eventKey:"10",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-info bg-opacity-10 text-info rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.nsx,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Player Instructions"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Guide players on how to play or test your game."})]})]})}),(0,_.jsx)(f.A.Body,{className:"bg-white pt-4",children:(0,_.jsx)(I,{label:"Gameplay Instru
1ctions",name:"instructions",value:null===a||void 0===a?void 0:a.instructions,tooltipText:"Provide controls, objectives, or specific feedback requests for your players. This will be visible on the Play page.",errors:D,onWysiwygChange:Ta})})]}),!Q&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(f.A.Item,{eventKey:"1",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-success bg-opacity-10 text-danger rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.yvG,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Branding & Media (Optional)"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Key art, logos, and gallery content."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[(0,_.jsx)("h6",{className:"fw-bold text-dark border-bottom pb-2 mb-4",children:"Key Art Assets"}),(0,_.jsxs)("div",{className:"row g-4",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsxs)("div",{className:"p-3 border rounded bg-light h-100",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark mb-2",children:"Main Image (Portrait)"}),(0,_.jsx)("p",{className:"small text-muted mb-3",children:"Used for vertical displays (digital box art). Rec: 374x448px."}),(0,_.jsxs)("div",{className:"upload-zone text-center p-4 border-2 border-dashed rounded bg-white mb-3",style:{cursor:"pointer"},onClick:function(){return document.getElementById("mainImage").click()},children:[(0,_.jsx)(k.gc,{icon:A.JmV,className:"text-muted mb-2 fs-4"}),(0,_.jsx)("div",{className:"small fw-bold text-primary",children:"Click to Upload"}),(0,_.jsx)("input",{type:"file",accept:"image/*",className:"d-none",id:"mainImage",onChange:function(e){return Fa(e,ce,be,Ae,Ye)}})]}),Le?(0,_.jsx)("div",{className:"text-center",children:(0,_.jsx)("img",{src:Le,alt:"Cropped Main",className:"img-fluid rounded shadow-sm",style:{maxHeight:"200px"}})}):(0,_.jsx)("div",{className:"text-center text-muted small fst-italic py-3",children:"No image selected"})]})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsxs)("div",{className:"p-3 border rounded bg-light h-100",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark mb-2",children:"Banner Image (Landscape)"}),(0,_.jsx)("p",{className:"small text-muted mb-3",children:"Used for headers and banners. Rec: 3840x1240px."}),(0,_.jsxs)("div",{className:"upload-zone text-center p-4 border-2 border-dashed rounded bg-white mb-3",style:{cursor:"pointer"},onClick:function(){return document.getElementById("bannerImage").click()},children:[(0,_.jsx)(k.gc,{icon:A.JmV,className:"text-muted mb-2 fs-4"}),(0,_.jsx)("div",{className:"small fw-bold text-primary",children:"Click to Upload"}),(0,_.jsx)("input",{type:"file",accept:"image/*",className:"d-none",id:"bannerImage",onChange:function(e){return Fa(e,he,je,Ie,Qe)}})]}),Ge?(0,_.jsx)("div",{className:"text-center",children:(0,_.jsx)("img",{src:Ge,alt:"Cropped Banner",className:"img-fluid rounded shadow-sm",style:{maxHeight:"150px"}})}):(0,_.jsx)("div",{className:"text-center text-muted small fst-italic py-3",children:"No image selected"})]})})]}),(0,_.jsx)("h6",{className:"fw-bold text-dark border-bottom pb-2 mb-4 mt-5",children:"Media Gallery"}),(0,_.jsx)("div",{className:"alert alert-light border-start border-4 border-info shadow-sm mb-4",children:(0,_.jsxs)("div",{className:"d-flex",children:[(0,_.jsx)(k.gc,{icon:A.iW_,className:"text-info mt-1 me-3"}),(0,_.jsxs)("div",{className:"small text-muted",children:["Upload screenshots and trailers. The ",(0,_.jsx)("strong",{children:"first item"})," will be your primary featured media. Drag and drop items to reorder them."]})]})}),(0,_.jsxs)("div",{className:"upload-dropzone p-5 border-2 border-dashed rounded bg-light text-center mb-4 position-relative",children:[(0,_.jsx)("input",{type:"file",accept:"image/*,video/*",className:"position-absolute top-0 start-0 w-100 h-100 opacity-0",style:{cursor:"pointer",zIndex:10},onChange:Ua}),(0,_.jsxs)("div",{className:"pointer-events-none",children:[(0,_.jsx)("div",{className:"bg-white rounded-circle p-3 d-inline-block shadow-sm mb-3",children:(0,_.jsx)(k.gc,{icon:A.rOd,className:"text-primary fs-2"})}),(0,_.jsx)("h6",{className:"fw-bold text-dark",children:"Drag & Drop or Click to Upload"}),(0,_.jsx)("p",{className:"small text-muted mb-0",children:"Images (JPG, PNG) and Videos (MP4). Max 150MB."})]})]}),Object.keys(da).map((function(e){return(0,_.jsxs)("div",{className:"mb-3 p-3 bg-white rounded border shadow-sm",children:[(0,_.jsxs)("div",{className:"d-flex justify-content-between mb-1",children:[(0,_.jsx)("span",{className:"small fw-bold text-dark",children:e}),(0,_.jsxs)("span",{className:"small text-muted",children:[da[e],"%"]})]}),"Error"===da[e]?(0,_.jsxs)("div",{className:"text-danger small",children:[(0,_.jsx)(k.gc,{icon:A.iW_,className:"me-1"})," Upload failed. Check file size/type."]}):(0,_.jsx)(y.A,{now:da[e],variant:"success",style:{height:"6px"}})]},e)})),la.length>0&&(0,_.jsx)("div",{className:"mt-4",children:(0,_.jsx)(N.JY,{onDragEnd:function(e){if(e.destination){var a=Array.from(la),n=a.splice(e.source.index,1),s=(0,o.A)(n,1)[0];a.splice(e.destination.index,0,s),a.forEach((function(e,a){e.order=a})),z&&z(a),ia(a)}},children:(0,_.jsx)(N.gL,{droppableId:"media-gallery",direction:"horizontal",children:function(e){return(0,_.jsxs)("div",(0,r.A)((0,r.A)({},e.droppableProps),{},{ref:e.innerRef,className:"row g-3",children:[la.map((function(e,a){return(0,_.jsx)(N.sx,{draggableId:e.id.toString(),index:a,children:function(n,s){var t,l,i;return(0,_.jsx)("div",(0,r.A)((0,r.A)({ref:n.innerRef},n.draggableProps),{},{className:"col-6 col-md-4 col-lg-3",children:(0,_.jsx)("div",{className:"card h-100 border-0 overflow-hidden ".concat(s.isDragging?"shadow-lg ring-2 ring-primary":"shadow-sm"),children:(0,_.jsxs)("div",{className:"position-relative group",children:[null!==e&&void 0!==e&&null!==(t=e.mime_type)&&void 0!==t&&t.startsWith("image/")?(0,_.jsx)("img",{src:null===e||void 0===e?void 0:e.url,alt:e.title||"Media",className:"card-img-top",style:{height:"140px",objectFit:"cover"}}):(0,_.jsx)("video",{src:null===e||void 0===e?void 0:e.url,className:"card-img-top",style:{height:"140px",objectFit:"cover"},muted:!0}
1),(0,_.jsx)("div",{className:"position-absolute top-0 end-0 p-2",children:(0,_.jsx)("button",{type:"button",className:"btn btn-sm btn-danger shadow-sm rounded-circle",style:{width:"30px",height:"30px",padding:0},onClick:function(){return Ha(e.id)},title:"Remove",children:(0,_.jsx)(k.gc,{icon:A.yLS,className:"small"})})}),(0,_.jsx)("div",(0,r.A)((0,r.A)({className:"position-absolute top-0 start-0 p-2"},n.dragHandleProps),{},{children:(0,_.jsx)("div",{className:"btn btn-sm btn-light shadow-sm rounded-circle text-muted",style:{width:"30px",height:"30px",padding:0,cursor:"grab"},children:(0,_.jsx)(k.gc,{icon:A.S9g,className:"small"})})})),(0,_.jsx)("div",{className:"card-footer bg-white p-2 border-top-0",children:(0,_.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,_.jsxs)("span",{className:"badge bg-light text-dark border",children:[(0,_.jsx)(k.gc,{icon:null!==e&&void 0!==e&&null!==(l=e.mime_type)&&void 0!==l&&l.startsWith("image/")?A.Cyq:A.n2W,className:"me-1 text-muted"}),null!==e&&void 0!==e&&null!==(i=e.mime_type)&&void 0!==i&&i.startsWith("image/")?"Image":"Video"]}),0===a&&(0,_.jsx)("span",{className:"badge bg-primary",children:"Primary"})]})})]})})}))}},e.id)})),e.placeholder]}))}})})})]})]}),J&&(0,_.jsxs)(f.A.Item,{eventKey:"6",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-success bg-opacity-10 text-success rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.ymQ,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Monetization & Licensing On Glitch"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"If you plan to distribute your game on Glitch, configure how users purchase or access your game."})]})]})}),(0,_.jsx)(f.A.Body,{className:"bg-white pt-4",children:(0,_.jsxs)("div",{className:"row",children:[(0,_.jsxs)("div",{className:"col-md-6 mb-4",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark",children:"Premium Access (Buy-to-Play)"}),(0,_.jsxs)("div",{className:"form-check form-switch p-3 bg-light rounded border shadow-sm",children:[(0,_.jsx)("input",{className:"form-check-input ms-0 me-3",type:"checkbox",id:"is_premium",name:"is_premium",checked:!!a.is_premium,onChange:qa}),(0,_.jsx)("label",{className:"form-check-label small fw-bold",htmlFor:"is_premium",children:"Enable Permanent Purchase"})]}),a.is_premium&&(0,_.jsx)("div",{className:"mt-3",children:(0,_.jsx)(S,{label:"Premium Price ($)",name:"premium_price",type:"number",value:null===a||void 0===a?void 0:a.premium_price,onChange:qa,placeholder:"19.99",errors:D})})]}),(0,_.jsxs)("div",{className:"col-md-6 mb-4",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark",children:"Rental Access"}),(0,_.jsxs)("div",{className:"form-check form-switch p-3 bg-light rounded border shadow-sm",children:[(0,_.jsx)("input",{className:"form-check-input ms-0 me-3",type:"checkbox",id:"is_rental",name:"is_rental",checked:!!a.is_rental,onChange:qa}),(0,_.jsx)("label",{className:"form-check-label small fw-bold",htmlFor:"is_rental",children:"Enable Time-Gated Access"})]}),a.is_rental&&(0,_.jsxs)("div",{className:"mt-3 row",children:[(0,_.jsx)("div",{className:"col-6",children:(0,_.jsx)(S,{label:"Rental Price ($)",name:"rental_price",type:"number",value:null===a||void 0===a?void 0:a.rental_price,onChange:qa,placeholder:"2.99",errors:D})}),(0,_.jsx)("div",{className:"col-6",children:(0,_.jsx)(S,{label:"Duration (Hours)",name:"rental_duration_hours",type:"number",value:null===a||void 0===a?void 0:a.rental_duration_hours,onChange:qa,placeholder:"72",errors:D})})]})]}),(0,_.jsxs)("div",{className:"col-md-12 mb-4",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark",children:"Global Subscription Program"}),(0,_.jsxs)("div",{className:"form-check form-switch p-3 bg-light rounded border shadow-sm",children:[(0,_.jsx)("input",{className:"form-check-input ms-0 me-3",type:"checkbox",id:"is_subscription_eligible",name:"is_subscription_eligible",checked:!!a.is_subscription_eligible,onChange:qa}),(0,_.jsxs)("label",{className:"form-check-label small fw-bold",htmlFor:"is_subscription_eligible",children:["Include in $6.99/mo Global Plan",(0,_.jsx)(v.A,{placement:"top",overlay:C("If enabled, subscribers can play your game for free. You will be paid based on their active playtime."),children:(0,_.jsx)(k.gc,{icon:A.wRm,className:"ms-2 text-muted"})})]})]}),a.is_subscription_eligible&&(0,_.jsxs)("div",{className:"alert alert-info mt-3 small shadow-sm",children:[(0,_.jsx)(k.gc,{icon:A.iW_,className:"me-2"}),"Current Payout Rate: ",(0,_.jsxs)("strong",{children:["$",a.payout_rate||"0.10"," per hour"]})," of active, non-idle gameplay."]})]})]})})]}),J&&(0,_.jsxs)(f.A.Item,{eventKey:"7",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-primary bg-opacity-10 text-primary rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.D6w,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Technical & Deployment"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Engine settings, DRM, and input mapping."})]})]})}),(0,_.jsx)(f.A.Body,{className:"bg-white pt-4",children:(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsxs)("div",{className:"form-group mb-4",children:[(0,_.jsxs)("label",{htmlFor:"deployment_type",className:"form-label fw-bold text-dark",children:["Deployment Type ",(0,_.jsx)(p.default,{})]}),(0,_.jsxs)("select",{className:"form-select form-control-custom p-3",name:"deployment_type",id:"deployment_type",value:(null===a||void 0===a?void 0:a.deployment_type)||"wasm",onChange:qa,children:[(0,_.jsx)("option",{value:"wasm",children:"Unity/Unreal (WASM/WebGL)"}),(0,_.jsx)("option",{value:"iframe",children:"Web Game (iFrame/React/Node)"}),(0,_.jsx)("option",{value:"downloadable",children:"PC Client (Pixel Streaming / Unreal)"})]})]})}),(0,_.jsxs)("div",{className:"col-md-6",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark",children:"Hardware Security (DRM)"}),(0,_.jsxs)("div",{className:"form-check form-switch p-3 bg-light rounded border shadow-sm",children:[(0,_.jsx)("input",{className:"form-check-input ms-0 me-3",type:"checkbox",id:"require_hwid",name:"require_hwid",checked:!!a.require_hwid,onChange:qa}),(0,_.jsxs)("label",{className:"form-check-label small fw-bold",htmlFor:"require_hwid",children:["Require HWID Lock",(0,_.jsx)(v.A,{placement:"top",overlay:C("Locks the license to specific hardware. Recommended for high-value downloadable titles."),children:(0,_.jsx)(k.gc,{icon:A.wRm,className:"ms-2 text-muted"})})]})]})]}),(0,_.jsx)("div",{className:"col-12 mt-3",children:(0,_.jsxs)("div",{className:"form-group mb-4",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark",children:"Mobile Touch Mapping (JSON)"}),(0,_.jsx)("p",{className:"small text-muted mb-2",children:"Map screen taps/swipes to keyboard keys for mobile players."}),(0,_.jsx)("textarea",{className:"form-control form-control-custom font-monospace small",rows:"5",name:"touch_mapping_config",value:"object"===typeof a.touch_mapping_config?JSON.stringify(a.touch_mapping_config,null,2):a.touch_mapping_config,onChange:function(e){try{qa(e)}catch(a){}}
1,placeholder:'{ "top_left": "q", "swipe_up": "ArrowUp" }'}),(null===D||void 0===D?void 0:D.touch_mapping_config)&&(0,_.jsx)("div",{className:"text-danger small mt-1",children:D.touch_mapping_config})]})})]})})]}),(0,_.jsxs)(f.A.Item,{eventKey:"2",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-info bg-opacity-10 text-info rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.BEE,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Links & Dates (Optional)"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Storefronts, socials, and release timeline."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[(0,_.jsx)("h6",{className:"fw-bold text-dark border-bottom pb-2 mb-4",children:"Storefront Links"}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Website URL",name:"website_url",value:null===a||void 0===a?void 0:a.website_url,onChange:qa,placeholder:"https://yourgame.com",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Steam URL",name:"steam_url",value:null===a||void 0===a?void 0:a.steam_url,onChange:qa,placeholder:"https://store.steampowered.com/app/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Itch.io URL",name:"itch_url",value:null===a||void 0===a?void 0:a.itch_url,onChange:qa,placeholder:"https://yourname.itch.io/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Apple App Store",name:"apple_url",value:null===a||void 0===a?void 0:a.apple_url,onChange:qa,placeholder:"https://apps.apple.com/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Google Play Store",name:"android_url",value:null===a||void 0===a?void 0:a.android_url,onChange:qa,placeholder:"https://play.google.com/...",errors:D})})]}),(0,_.jsx)("h6",{className:"fw-bold text-dark border-bottom pb-2 mb-4 mt-4",children:"Social Media"}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Facebook Page",name:"facebook_page",value:null===a||void 0===a?void 0:a.facebook_page,onChange:qa,placeholder:"https://facebook.com/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Twitter / X",name:"twitter_page",value:null===a||void 0===a?void 0:a.twitter_page,onChange:qa,placeholder:"https://twitter.com/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Instagram",name:"instagram_page",value:null===a||void 0===a?void 0:a.instagram_page,onChange:qa,placeholder:"https://instagram.com/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"TikTok",name:"tiktok_page",value:null===a||void 0===a?void 0:a.tiktok_page,onChange:qa,placeholder:"https://tiktok.com/@...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"YouTube",name:"youtube_page",value:null===a||void 0===a?void 0:a.youtube_page,onChange:qa,placeholder:"https://youtube.com/...",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Bluesky",name:"bluesky_page",value:null===a||void 0===a?void 0:a.bluesky_page,onChange:qa,placeholder:"https://bsky.app/profile/...",errors:D})})]}),(0,_.jsx)("h6",{className:"fw-bold text-dark border-bottom pb-2 mb-4 mt-4",children:"Key Dates"}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-4",children:(0,_.jsx)(S,{label:"Demo Release",name:"demo_release_date",value:null===a||void 0===a?void 0:a.demo_release_date,onChange:qa,type:"date",errors:D})}),(0,_.jsx)("div",{className:"col-md-4",children:(0,_.jsx)(S,{label:"Early Access",name:"early_access_date",value:null===a||void 0===a?void 0:a.early_access_date,onChange:qa,type:"date",errors:D})}),(0,_.jsx)("div",{className:"col-md-4",children:(0,_.jsx)(S,{label:"Full Release",name:"release_date",value:null===a||void 0===a?void 0:a.release_date,onChange:qa,type:"date",errors:D})})]})]})]}),(0,_.jsxs)(f.A.Item,{eventKey:"8",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-warning bg-opacity-10 text-warning rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.iW_,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Developer & Pricing (Optional)"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Studio info, platforms, and cost."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Developer",name:"developer",value:null===a||void 0===a?void 0:a.developer,onCh
1ange:qa,placeholder:"e.g., Awesome Game Studios",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Publisher",name:"publisher",value:null===a||void 0===a?void 0:a.publisher,onChange:qa,placeholder:"e.g., Indie Mega Corp",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Platforms",name:"platform_compatibility",value:null===a||void 0===a?void 0:a.platform_compatibility,onChange:qa,placeholder:"PC, PS5, Xbox, Switch",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Age Rating",name:"age_rating",value:null===a||void 0===a?void 0:a.age_rating,onChange:qa,placeholder:"e.g., ESRB: Teen",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsxs)("div",{className:"form-group mb-4",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark d-flex align-items-center",children:"Content Classification"}),(0,_.jsxs)("div",{className:"form-check form-switch p-3 bg-light rounded border shadow-sm",children:[(0,_.jsx)("input",{className:"form-check-input ms-0 me-3",type:"checkbox",id:"is_nsfw",name:"is_nsfw",checked:!!a.is_nsfw,onChange:qa,style:{width:"2.5em",height:"1.25em",curs
1or:"pointer"}}),(0,_.jsxs)("label",{className:"form-check-label small fw-bold text-dark",htmlFor:"is_nsfw",children:["Mark as NSFW / Mature",(0,_.jsx)(v.A,{placement:"top",overlay:C("Enable this if your game contains adult themes, nudity, or extreme violence. This limits visibility to influencers who have opted-in to mature content."),children:(0,_.jsx)(k.gc,{icon:A.wRm,className:"ms-2 text-muted"})})]})]})]})}),(0,_.jsx)("div",{className:"col-md-12",children:(0,_.jsx)(S,{label:"Multiplayer Options",name:"multiplayer_options",value:null===a||void 0===a?void 0:a.multiplayer_options,onChange:qa,placeholder:"e.g., Online Co-op (4 players)",errors:D})})]}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-6 mb-4",children:(0,_.jsxs)("div",{className:"form-group",children:[(0,_.jsx)("label",{htmlFor:"pricing",className:"form-label fw-bold text-dark",children:"Price"}),(0,_.jsx)("div",{className:"input-group shadow-sm",children:(0,_.jsx)("input",{type:"number",step:"0.01",className:"form-control form-control-custom p-3 ".concat(D&&D.pricing?"is-invalid":""),id:"pricing",name:"pricing",value:(null===a||void 0===a?void 0:a.pricing)||"",onChange:qa,placeholder:"e.g., 19.99"})}),D&&D.pricing&&D.pricing.map((function(e,a){return(0,_.jsx)("div",{className:"text-danger small mt-1",children:e},a)}))]})}),(0,_.jsx)("div",{className:"col-md-6 mb-4",children:(0,_.jsxs)("div",{className:"form-group",children:[(0,_.jsx)("label",{htmlFor:"pricing_currency",className:"form-label fw-bold text-dark",children:"Currency"}),(0,_.jsx)("div",{className:"input-group shadow-sm",children:(0,_.jsx)("select",{className:"form-select form-control-custom p-3",name:"pricing_currency",id:"pricing_currency",value:(null===a||void 0===a?void 0:a.pricing_currency)||"USD",onChange:qa,children:[{code:"USD",name:"US Dollar"},{code:"EUR",name:"Euro"},{code:"GBP",name:"British Pound"},{code:"JPY",name:"Japanese Yen"},{code:"AUD",name:"Australian Dollar"},{code:"CAD",name:"Canadian Dollar"},{code:"CHF",name:"Swiss Franc"},{code:"CNY",name:"Chinese Yuan"},{code:"SEK",name:"Swedish Krona"},{code:"NZD",name:"New Zealand Dollar"},{code:"MXN",name:"Mexican Peso"},{code:"SGD",name:"Singapore Dollar"},{code:"HKD",name:"Hong Kong Dollar"},{code:"NOK",name:"Norwegian Krone"},{code:"KRW",name:"South Korean Won"},{code:"TRY",name:"Turkish Lira"},{code:"RUB",name:"Russian Ruble"},{code:"INR",name:"Indian Rupee"},{code:"BRL",name:"Brazilian Real"},{code:"ZAR",name:"South African Rand"},{code:"PLN",name:"Polish Zloty"},{code:"DKK",name:"Danish Krone"},{code:"TWD",name:"New Taiwan Dollar"},{code:"THB",name:"Thai Baht"},{code:"MYR",name:"Malaysian Ringgit"},{code:"IDR",name:"Indonesian Rupiah"},{code:"PHP",name:"Philippine Peso"},{code:"VND",name:"Vietnamese Dong"},{code:"EGP",name:"Egyptian Pound"},{code:"AED",name:"United Arab Emirates Dirham"}].map((function(e){return(0,_.jsxs)("option",{value:e.code,children:[e.name," (",e.code,")"]},e.code)}))})})]})})]})]})]}),(0,_.jsxs)(f.A.Item,{eventKey:"3",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-secondary bg-opacity-10 text-secondary rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.bG5,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Deep Dive Details (Optional)"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Gameplay, narrative, and specs."})]})]})}),(0,_.jsx)(f.A.Body,{className:"bg-white pt-4",children:(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Gameplay Mechanics",name:"gameplay_mechanics",value:null===a||void 0===a?void 0:a.gameplay_mechanics,errors:D,onWysiwygChange:Ta})}),(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Narrative Setting",name:"narrative_setting",value:null===a||void 0===a?void 0:a.narrative_setting,errors:D,onWysiwygChange:Ta})}),(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Visual & Audio Style",name:"visual_audio_style",value:null===a||void 0===a?void 0:a.visual_audio_style,errors:D,onWysiwygChange:Ta})}),(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"System Requirements",name:"system_requirements",value:null===a||void 0===a?void 0:a.system_requirements,errors:D,onWysiwygChange:Ta})})]})})]}),R&&(0,_.jsxs)(f.A.Item,{eventKey:"4",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-danger bg-opacity-10 text-danger rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.bG5,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Media Kit Info"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"For press and creators."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Press Contact Name",name:"press_contact_name",value:null===a||void 0===a?void 0:a.press_contact_name,onChange:qa,placeholder:"e.g., Jane Doe",errors:D})}),(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsx)(S,{label:"Press Email",n
1ame:"press_contact_email",value:null===a||void 0===a?void 0:a.press_contact_email,onChange:qa,type:"email",placeholder:"[email protected]",errors:D})}),(0,_.jsx)("div",{className:"col-md-12",children:(0,_.jsx)(S,{label:"Tagline",name:"tagline",value:null===a||void 0===a?void 0:a.tagline,onChange:qa,placeholder:"One ship against the galaxy.",errors:D})}),(0,_.jsx)("div",{className:"col-md-12",children:(0,_.jsx)(S,{label:"Demo URL",name:"demo_url",value:null===a||void 0===a?void 0:a.demo_url,onChange:qa,placeholder:"https://yourgame.com/press-demo",errors:D})})]}),(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Key Features",name:"key_features",value:null===a||void 0===a?void 0:a.key_features,errors:D,onWysiwygChange:Ta})})})]})]}),M&&(0,_.jsxs)(f.A.Item,{eventKey:"5",className:"border-0 mb-3 shadow-sm rounded overflow-hidden",children:[(0,_.jsx)(f.A.Header,{children:(0,_.jsxs)("div",{className:"d-flex align-items-center w-100 py-2",children:[(0,_.jsx)("div",{className:"icon-box bg-dark bg-opacity-10 text-dark rounded p-2 me-3",children:(0,_.jsx)(k.gc,{icon:A.a2R,className:"fs-5"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"fw-bold d-block accordion-title",children:"Playtesting"}),(0,_.jsx)("span",{className:"accordion-subtitle small",children:"Manage feedback sessions."})]})]})}),(0,_.jsxs)(f.A.Body,{className:"bg-white pt-4",children:[(0,_.jsxs)("div",{className:"form-check form-switch mb-4 p-3 bg-light rounded border",children:[(0,_.jsx)("input",{className:"form-check-input ms-0 me-3",type:"checkbox",id:"enable_playtesting",name:"enable_playtesting",checked:!!a.enable_playtesting,onChange:qa,style:{width:"3em",height:"1.5em",cursor:"pointer"}}),(0,_.jsx)("label",{className:"form-check-label fw-bold text-dark",htmlFor:"enable_playtesting",children:"Enable Playtesting"}),(0,_.jsx)("div",{className:"small text-muted mt-1",children:"Allow community members to 
1sign up for playtests."})]}),a.enable_playtesting&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-12",children:(0,_.jsx)(I,{label:"Testing Instructions",name:"test_instructions",value:null===a||void 0===a?void 0:a.test_instructions,errors:D,onWysiwygChange:Ta})})}),(0,_.jsx)("h6",{className:"fw-bold text-dark mt-4 mb-3",children:"Feedback Questions"}),(0,_.jsx)("p",{className:"small text-muted mb-3",children:"Select 5-7 questions to ask your testers."}),(0,_.jsx)("div",{className:"row g-3",children:[{id:1,text:"Was the game easy to understand from the start?"},{id:2,text:"Were there any mechanics that felt confusing or difficult to use?"},{id:3,text:"How challenging did you find the game overall? Too easy, too hard, or just right?"},{id:4,text:"Did you encounter any bugs or issues during gameplay?"},{id:5,text:"Were the controls intuitive and responsive? If not, what improvements would you suggest?"},{id:6,text:"What aspects of the game did you enjoy the most? Why?"},{id:7,text:"Were there any parts of the game that felt repetitive or boring?"},{id:8,text:"How long did you feel engaged with the game before it started to lose your attention?"},{id:9,text:"Would you want to play this game again? Why or why not?"},{id:10,text:"How likely would you be to recommend this game to a friend?"},{id:11,text:"Did you feel invested in the story or the game world?"},{id:12,text:"Were there any characters, settings, or story elements that stood out to you?"},{id:13,text:"Was there anything about the world or story that felt unclear or hard to follow?"},{id:14,text:"How would you rate the game's visuals? Did anything stand out as particularly impressive or lacking?"},{id:15,text:"How did the audio (music, sound effects, voice acting, etc.) contribute to the experience?"},{id:16,text:"Were there any audio or visual elements that distracted you from the gameplay?"},{id:17,text:"Did you experience any difficulties related to visibility, accessibility, or ease of use?"},{id:18,text:"Were there any features or options you wish the game had to make it easier to play?"},{id:19,text:"How would you describe the game in a few sentences?"},{id:20,text:"What is one thing you would change or add to improve the game?"},{id:21,text:"What was your overall impression of the game?"}].map((function(e){return(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsxs)("div",{className:"form-check p-2 border rounded bg-white h-100",children:[(0,_.jsx)("input",{className:"form-check-input ms-1 me-2",type:"checkbox",id:"q_".concat(e.id,"_enabled"),name:"q_".concat(e.id,"_enabled"),checked:!!a["q_".concat(e.id,"_enabled")],onChange:qa}),(0,_.jsx)("label",{className:"form-check-label small text-dark",htmlFor:"q_".concat(e.id,"_enabled"),children:e.text})]})},e.id)}))})]})]})]})]})]})})})]}),1===(null===n||void 0===n?void 0:n.promotion_type)&&(0,_.jsxs)("div",{className:"card border-0 shadow-sm mt-4",children:[(0,_.jsx)("div",{className:"card-header bg-primary text-white py-3 px-4",children:(0,_.jsxs)("h3",{className:"mb-0 fw-bold h5",children:[(0,_.jsx)(k.gc,{icon:A.BEE,className:"me-2"})," Event Details"]})}),(0,_.jsx)("div",{className:"card-body p-4 bg-light",children:(0,_.jsx)("p",{className:"lead text-dark mb-4",children:"Enter information about the event you want influencers to promote."})})]}),Ve&&(0,_.jsx)("div",{className:"modal show",style:{display:"block",backgroundColor:"rgba(0,0,0,0.5)",zIndex:1060},tabIndex:"-1",children:(0,_.jsx)("div",{className:"modal-dialog modal-lg modal-dialog-centered",children:(0,_.jsxs)("div",{className:"modal-content border-0 shadow-lg",children:[(0,_.jsxs)("div",{className:"modal-header bg-white border-bottom",children:[(0,_.jsx)("h5",{className:"modal-title fw-bold text-dark",children:"Crop Main Image"}),(0,_.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:function(){return Ye(!1)}})]}),(0,_.jsxs)("div",{className:"modal-body p-0 bg-dark",children:[(0,_.jsx)("div",{className:"crop-container",style:{position:"relative",width:"100%",height:"400px"},children:(0,_.jsx)(u.Ay,{image:oe,crop:xe,zoom:ke,aspect:374/448,onCropChange:be,onZoomChange:Ae,onCropComplete:Ea})}),(0,_.jsxs)("div",{className:"p-3 bg-white border-top",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark small",children:"Zoom Level"}),(0,_.jsx)("input",{type:"range",min:1,max:3,step:.1,value:ke,onChange:function(e){return Ae(e.target.value)},className:"form-range"})]})]}),(0,_.jsxs)("div",{className:"modal-footer bg-light border-top-0",children:[(0,_.jsx)("button",{type:"button",className:"btn btn-outline-secondary",onClick:function(){return Ye(!1)},children:"Cancel"}),(0,_.jsx)("button",{type:"button",className:"btn btn-primary",onClick:function(){Wa(oe,Re,ce,"mainImage"),Ye(!1)},children:"Apply Crop"})]})]})})}
1),$e&&(0,_.jsx)("div",{className:"modal show",style:{display:"block",backgroundColor:"rgba(0,0,0,0.5)",zIndex:1060},tabIndex:"-1",children:(0,_.jsx)("div",{className:"modal-dialog modal-lg modal-dialog-centered",children:(0,_.jsxs)("div",{className:"modal-content border-0 shadow-lg",children:[(0,_.jsxs)("div",{className:"modal-header bg-white border-bottom",children:[(0,_.jsx)("h5",{className:"modal-title fw-bold text-dark",children:"Crop Banner Image"}),(0,_.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:function(){return Qe(!1)}})]}),(0,_.jsxs)("div",{className:"modal-body p-0 bg-dark",children:[(0,_.jsx)("div",{className:"crop-container",style:{position:"relative",width:"100%",height:"400px"},children:(0,_.jsx)(u.Ay,{image:ue,crop:ye,zoom:Se,aspect:3840/1240,onCropChange:je,onZoomChange:Ie,onCropComplete:Ba})}),(0,_.jsxs)("div",{className:"p-3 bg-white border-top",children:[(0,_.jsx)("label",{className:"form-label fw-bold text-dark small",children:"Zoom Level"}),(0,_.jsx)("input",{type:"range",min:1,max:3,step:.1,value:Se,onChange:function(e){return Ie(e.target.value)},className:"form-range"})]})]}),(0,_.jsxs)("div",{className:"modal-footer bg-light border-top-0",children:[(0,_.jsx)("button",{type:"button",className:"btn btn-outline-secondary",onClick:function(){return Qe(!1)},children:"Cancel"}),(0,_.jsx)("button",{type:"button",className:"btn btn-primary",onClick:function(){Wa(ue,Ee,he,"bannerImage"),Qe(!1)},children:"Apply Crop"})]})]})})}),(0,_.jsx)("style",{children:"\n        /* Custom Accordion Styling */\n        .custom-accordion .accordion-button {\n            background-color: #232a5c; /* Dark blue when closed */\n            color: white;\n            box-shadow: none;\n            padding: 1rem 1.25rem;\n        }\n        \n        .custom-accordion .accordion-button:not(.collapsed) {\n            background-color: #e9ecef; /* Light grey when open */\n            color: #212529; /* Dark text */\n            box-shadow: none;\n        }\n\n        /* Override text colors inside the button based on state */\n        .custom-accordion .accordion-button .accordion-title {\n            color: white;\n            font-size: 1.1rem;\n        }\n        .custom-accordion .accordion-button .accordion-subtitle {\n            color: rgba(255, 255, 255, 0.7);\n        }\n\n        .custom-accordion .accordion-button:not(.collapsed) .accordion-title {\n            color: #111827;\n        }\n        .custom-accordion .accordion-button:not(.collapsed) .accordion-subtitle {\n            color: #4b5563;\n        }\n\n        .custom-accordion .accordion-button:focus {\n            box-shadow: none;\n            border-color: rgba(0,0,0,.125);\n        }\n\n        /* Custom Chevron Icons */\n        .custom-accordion .accordion-button::after {\n            background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\");\n        }\n        .custom-accordion .accordion-button:not(.collapsed)::after {\n            background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\");\n        }\n\n        /* Custom Input Styling */\n        .form-control-custom {\n            border: 1px solid #ced4da !important;\n            background-color: #f8f9fa;\n            transition: all 0.2s ease;\n        }\n        .form-control-custom:focus {\n            background-color: #fff;\n            border-color: #86b7fe !important;\n            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n        }\n\n        .genre-search-icon {\n            position: absolute;\n            top: 50%;\n            left: 16px;\n            transform: translateY(-50%);\n            z-index: 3;\n            pointer-events: none;\n        }\n\n        .genre-search-input::-webkit-search-cancel-button {\n            cursor: pointer;\n        }\n\n        /* Upload Zone Hover Effect */\n        .upload-zone:hover {\n            background-color: #f8f9fa !important;\n            border-color: #0d6efd !important;\n        }\n\n        .genre-selection-grid {\n            display: grid;\n            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));\n            gap: 10px;\n        }\n        .genre-item {\n            background: #f8f9fa;\n            color: #344054;\n            padding: 12px;\n            border-radius: 10px;\n            border: 2px solid #dee2e6;\n            cursor: pointer;\n            transition: all 0.2s ease;\n            user-select: none;\n        }\n        .genre-item:hover {\n            border-color: #0d6efd;\n            color: #0a58ca;\n        }\n        .genre-item.active {\n            border-color: #0a58ca;\n            background: #eef6ff;\n            color: #0a58ca;\n        }\n \n      "})]})}}}]);

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.