1import{a as H,r as J,j as s,y as P,a4 as D,a5 as xs,u as ys,e as Ss,b as js,i as U,p as $,k as Ns,a6 as Rs,M as Is,s as Cs,$ as vs,a7 as Ks,B as I,E as Ls,A as ws,I as Ps}from"./index.CHvzgvcl.js";import{P as Es,a as z}from"./PassSubmissionCore.Do4LeK4p.js";import{t as Ms,g as ks}from"./formErrors.DVnYSavn.js";import{d as As,f as Ws,r as f}from"./reactRouter.DIJDf_PU.js";import{g as Ts,a as _s,i as Vs}from"./passJudgementHitCount.6lv25sxp.js";import{C as Fs,a as Bs}from"./CalculatorIcon.HwW9Jgrq.js";import{u as G,T as Os}from"./i18n.CnDgzqyN.js";import{u as Ds,p as q}from"./usePassCoreForm.CgWndtw9.js";import{r as Us}from"./resolveVideoUrl.BuIxAj10.js";import{c as $s,p as L,A as w,i as zs}from"./adofaiVersion.BhaLZNzn.js";import{C as qs}from"./CommunityTagVotePopup.BDYSoVt6.js";import"./recharts.CxMvZdXo.js";import"./3.G3sZgAWd.js";import"./FetchIcon.v49Yapoe.js";import"./midspinPerfectDecrement.DarpiDhG.js";import"./useVideoLinkResolver.BxMIYacm.js";/* empty css */import"./statFormatters.C7Ka2WWu.js";import"./Select.BJwzSgTp.js";/* empty css */import"./bilibiliCover.uObpO8ST.js";import"./communityTags.DGxF9Q0r.js";import"./TagConfidenceBar.DZnG3Jn_.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"9285efe8a8dce1f690960d89b06301901087e606"},i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[new i.Error().stack]=function(p){for(var r=1;r<arguments.length;r++){var l=arguments[r];if(l!=null)for(var x in l)l.hasOwnProperty(x)&&(p[x]=l[x])}return p}({},i._sentryModuleMetadata[new i.Error().stack],{"_sentryBundlerPluginAppKey:tuf-website":!0});var e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="cb332e9d-870d-4f1c-a037-852325d1c696",i._sentryDebugIdIdentifier="sentry-dbid-cb332e9d-870d-4f1c-a037-852325d1c696")}catch{}})();async function Hs(i,{signal:e}={}){try{return(await H.post(J.form.pass.submit(),i,{signal:e})).data}catch(p){Ms(p,"Pass submission failed")}}const Js="/assets/Strict.DoLdMOgy.png",Gs="/assets/Normal.BNJExNur.png",Xs="/assets/Lenient.CM-5IFJV.png",Ys=({setShowRulesPopup:i})=>{const{t:e}=G("components");return s.jsxs(P,{onClose:()=>i(!1),overlayClassName:"pass-rules-popup rules-popup-overlay",panelClassName:"rules-popup",children:[s.jsxs("div",{className:"rules-popup-header",children:[s.jsx("h2",{children:e("passSubmissionRules.title")}),s.jsx("button",{className:"rules-popup-close",onClick:()=>i(!1),children:e("passSubmissionRules.close")})]}),s.jsxs("div",{className:"rules-popup-content",children:[s.jsxs("div",{className:"rules-section",children:[s.jsxs("div",{className:"main-rule-container",children:[s.jsx("h2",{className:"main-rule-title",children:e("passSubmissionRules.strictOnly.title")}),s.jsxs("div",{className:"judgement-rule-icons",children:[s.jsxs("div",{className:"other-judgements-rule-icon-container",children:[s.jsx("img",{className:"other-judgements-rule-icon",src:Gs,alt:"normal"}),s.jsx(D,{className:"cross-icon",color:"#ff0000bb",size:55})]}),s.jsxs("div",{className:"strict-rule-icon-container",children:[s.jsx("img",{className:"strict-rule-icon",src:Js,alt:"strict"}),s.jsx(xs,{color:"#44ee44",size:38})]}),s.jsxs("div",{className:"other-judgements-rule-icon-container",children:[s.jsx("img",{className:"other-judgements-rule-icon",src:Xs,alt:"lenient"}),s.jsx(D,{className:"cross-icon",color:"#ff0000bb",size:55})]})]}),s.jsx("span",{className:"rule-important",children:e("passSubmissionRules.strictOnly.note")})]}),s.jsx("br",{}),s.jsxs("div",{className:"main-rule-container",children:[s.jsx("h2",{className:"main-rule-title content-shadow",children:e("passSubmissionRules.noMobile.title")}),s.jsx("div",{className:"crossed-phone-container",children:s.jsx(Fs,{color:"#ff2424",size:80})})]}),s.jsxs("div",{className:"rules-section info",children:[s.jsx("h3",{children:e("passSubmissionRules.clearRules.title")}),s.jsx("p",{children:e("passSubmissionRules.clearRules.intro")})]}),s.jsxs("div",{className:"rules-section high-importance",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule1.title")}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("span",{className:"offense-level third",children:e("passSubmissionRules.rules.rule1.offenses.first")})," ",e("passSubmissionRules.rules.rule1.penalties.first")]}),s.jsxs("li",{children:[s.jsx("span",{className:"offense-level second",children:e("passSubmissionRules.rules.rule1.offenses.second")})," ",e("passSubmissionRules.rules.rule1.penalties.second")]}),s.jsxs("li",{children:[s.jsx("span",{className:"offense-level first",children:e("passSubmissionRules.rules.rule1.offenses.third")})," ",e("passSubmissionRules.rules.rule1.penalties.third")]})]}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule1.explanation")]})]})]}),s.jsxs("div",{className:"rules-section high-importance",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule2.title")}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("span",{className:"offense-level third",children:e("passSubmissionRules.rules.rule2.offenses.first")})," ",e("passSubmissionRules.rules.rule2.penalties.first")]}),s.jsxs("li",{children:[s.jsx("span",{className:"offense-level second",children:e("passSubmissionRules.rules.rule2.offenses.second")})," ",e("passSubmissionRules.rules.rule2.penalties.second")]}),s.jsxs("li",{children:[s.jsx("span",{className:"offense-level first",children:e("passSubmissionRules.rules.rule2.offenses.third")})," ",e("passSubmissionRules.rules.rule2.penalties.third")]})]}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule2.explanation")]})]}),s.jsxs("div",{className:"rules-section critical",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule3.title")}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("span",{className:"offense-level second",children:e("passSubmissionRules.rules.rule3.offenses.first")})," ",e("passSubmissionRules.rules.rule3.penalties.first")]}),s.jsxs("li",{children:[s.jsx("span",{className:"offense-level first",children:e("passSubmissionRules.rules.rule3.offenses.second")})," ",e("passSubmissionRules.rules.rule3.penalties.second")]})]}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule3.explanation")]})]}),s.jsxs("div",{className:"rules-section critical",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule4.title")}),s.jsx("ul",{children:s.jsxs("li",{children:[s.jsx("span",{className:"offense-level first",children:e("passSubmissionRules.rules.rule4.offenses.first")})," ",e("passSubmissionRules.rules.rule4.penalties.first")]})}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule4.explanation")]})]}),s.jsxs("div",{className:"rules-section critical",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule5.title")}),s.jsx("ul",{children:s.jsxs("li",{children:[s.jsx("span",{className:"offense-level first",children:e("passSubmissionRules.rules.rule5.offenses.first")})," ",e("passSubmissionRules.rules.rule5.penalties.first")]})}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule5.explanation")]})]}),s.jsxs("div",{className:"rules-section medium-importance",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule6.title")}),s.jsx("ul",{children:s.jsxs("li",{children:[s.jsx("span",{className:"offense-level required",children:e("passSubmissionRules.rules.rule6.required.label")})," ",e("passSubmissionRules.rules.rule6.required.text")]})}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule6.explanation")]})]}),s.jsxs("div",{className:"rules-section standard",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule7.title")}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:e("passSubmissionRules.rules.rule7.allowed")})," ",e("passSubmissionRules.rules.rule7.allowedText")]}),s.jsxs("li",{children:[s.jsx("strong",{children:e("passSubmissionRules.rules.rule7.notAllowed")})," ",e("passSubmissionRules.rules.rule7.notAllowedText")]}),s.jsxs("li",{children:[s.jsx("strong",{children:e("passSubmissionRules.rules.rule7.specialCase")})," ",e("passSubmissionRules.rules.rule7.specialCaseText")]})]}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule7.explanation"),s.jsx("br",{})," ",s.jsx("br",{}),s.jsx("strong",{children:"Note:"})," ",e("passSubmissionRules.rules.rule7.note")]})]}),s.jsxs("div",{className:"rules-section standard",children:[s.jsx("h3",{children:e("passSubmissionRules.rules.rule8.title")}),s.jsx("ul",{children:s.jsxs("li",{children:[s.jsx("span",{className:"offense-level case-by-case",children:e("passSubmissionRules.rules.rule8.caseByCase.label")})," ",e("passSubmissionRules.rules.rule8.caseByCase.text")]})}),s.jsxs("div",{className:"explanation",children:[s.jsx("strong",{children:"Explanation:"})," ",e("passSubmissionRules.rules.rule8.explanation")]})]}),s.jsx("div",{className:"rules-section info",children:s.jsxs("p",{children:[s.jsx("strong",{children:"Note:"})," ",e("passSubmissionRules.footer.note")]})})]})]})},Qs=[{tagName:"1 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:1}},{tagName:"2 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:2}},{tagName:"4 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:4}},{tagName:"6 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:6}},{tagName:"8 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:8}},{tagName:"10 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:10}},{tagName:"12 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:12}},{tagName:"16 Key Limit",i18nKey:"passSubmission.tagWarnings.keyLimit",values:{count:16}},{tagName:"Overlap Allowed",i18nKey:"passSubmission.tagWarnings.overlapAllowed"},{tagName:"2-Hand Pseudos",i18nKey:"passSubmission.tagWarnings.tw
1oHandPseudos"},{tagName:"Onhand/Offhand Limit",i18nKey:"passSubmission.tagWarnings.onhandOffhandLimit"},{tagName:"Variable Key Limit",i18nKey:"passSubmission.tagWarnings.variableKeyLimit"},{tagName:"No Large Keys",i18nKey:"passSubmission.tagWarnings.noLargeKeys"},{tagName:"Feet Only",i18nKey:"passSubmission.tagWarnings.feetOnly"},{tagName:"4 Key Base Limit",i18nKey:"passSubmission.tagWarnings.fourKeyBaseLimit"},{tagName:"2 Key Base Limit",i18nKey:"passSubmission.tagWarnings.twoKeyBaseLimit"},{tagName:"Free Roam",i18nKey:"passSubmission.tagWarnings.freeRoam"},{tagName:"Multi Track",i18nKey:"passSubmission.tagWarnings.multiTrack"},{tagName:"Math",i18nKey:"passSubmission.tagWarnings.math"},{tagName:"RPG",i18nKey:"passSubmission.tagWarnings.rpg"},{tagName:"Memorization",i18nKey:"passSubmission.tagWarnings.memorization"},{tagName:"Unorthodox Reading",i18nKey:"passSubmission.tagWarnings.unorthodoxReading"},{tagName:"Arrow Key",i18nKey:"passSubmission.tagWarnings.arrowKey"},{tagName:"Camera Required",i18nKey:"passSubmission.tagWarnings.cameraRequired"},{tagName:"Auto Tile",i18nKey:"passSubmission.tagWarnings.autoTile"},{tagName:"Judgement Limit",i18nKey:"passSubmission.tagWarnings.judgementLimit"},{tagName:"HP Bar",i18nKey:"passSubmission.tagWarnings.hpBar"},{tagName:"Detailed Judgement",i18nKey:"passSubmission.tagWarnings.detailedJudgement"},{tagName:"Timing Window Scale",i18nKey:"passSubmission.tagWarnings.timingWindowScale"}];function Zs(i){return(i==null?void 0:i.passWarningEnabled)!==!1&&(i==null?void 0:i.passWarningEnabled)!==0}function se(i){if(!Array.isArray(i)||i.length===0)return[];const e=new Map;for(const r of i)r!=null&&r.name&&e.set(r.name,r);const p=[];for(const r of Qs){const l=e.get(r.tagName);!l||!Zs(l)||p.push({tagName:r.tagName,i18nKey:r.i18nKey,values:r.values,icon:l.icon||null,color:l.color||null})}return p}const Ie=()=>{var O;const{t:i}=G(["pages","common"]),e=As(),p=Ws(),{difficultyDict:r}=ys(),{user:l}=Ss(),x=f.useMemo(()=>js({title:i("passSubmission.title"),description:i("submission.meta.description"),pathname:e.pathname,noindex:!0}),[i,e.pathname]);f.useEffect(()=>{(U(l,$.SUBMISSIONS_PAUSED)||Ns(l)||!U(l,$.EMAIL_VERIFIED))&&p("/submission")},[l,p]);const[X,Y]=f.useState(0),[j,E]=f.useState(!1),[M,k]=f.useState(()=>{var n;return((n=e.state)==null?void 0:n.searchInput)||""}),[y,Q]=Rs(vs.SUBMISSIONS_PASS_RULES_READ,!1),[Z,A]=f.useState(!1),[ss,N]=f.useState(!1),[es,R]=f.useState(!1),[W,T]=f.useState(null),is=f.useCallback(({form:n})=>({playerId:!!n.playerId,rulesAccepted:y}),[y]),{form:t,setForm:b,submitAttempt:_,setSubmitAttempt:V,isFormValid:S,isFormValidDisplay:as,isValidFeelingRating:ns,isValidExpectedRating:ts,isValidKeyCount:ls,isValidSpeed:rs,level:a,setLevel:os,levelLoading:us,videoDetail:h,videoLinkResolving:cs,accuracy:ms,score:ds,handleInputChange:ps,handleAdofaiVersionChange:fs}=Ds({mode:"submit",initialForm:{...z,...((O=e.state)==null?void 0:O.form)||{}},rejectDeletedLevel:!0,isUDiffLevel:n=>{var o,m,d,u;return((m=(o=r[n==null?void 0:n.diffId])==null?void 0:o.name)==null?void 0:m[0])==="U"||((u=(d=r[n==null?void 0:n.diffId])==null?void 0:d.name)==null?void 0:u[0])==="Q"},isKeyCountRequiredLevel:n=>{var o;return Ks((o=r[n==null?void 0:n.diffId])==null?void 0:o.name)},extraValidation:is,scoreOverrides:null,allowSandboxScore:!1}),C=f.useMemo(()=>se(a==null?void 0:a.tags),[a==null?void 0:a.tags]);f.useEffect(()=>{(async()=>{if(!(l!=null&&l.username))return;const{username:o}=l;try{const m=`${J.playersV3.root()}/search?query=${encodeURIComponent(o)}`,u=(await H.get(m)).data,g=(Array.isArray(u)?u:(u==null?void 0:u.results)??[]).find(c=>(c==null?void 0:c.name)&&c.name.toLowerCase()===(l.nickname||"").toLowerCase());g!=null&&g.id?b(c=>({...c,playerId:c.playerId||g.id,leaderboardName:c.leaderboardName||g.name})):b(c=>({...c,playerId:c.playerId||"",leaderboardName:c.leaderboardName||o}))}catch(m){console.error("[Profile Search] Error searching profiles:",m),b(d=>({...d,playerId:d.playerId||"",leaderboardName:d.leaderboardName||o}))}})()},[l,b]);const F=async()=>{var n;E(!0);try{const{url:o}=await Us(t.videoLink),m={levelId:t.levelId,videoLink:o,title:(h==null?void 0:h.title)||"",rawTime:(h==null?void 0:h.timestamp)||void 0,passer:t.leaderboardName||"",passerId:t.playerId||null,passerRequest:!1,speed:t.speed,feelingDifficulty:t.feelingRating,expectedDifficulty:((n=t.expectedRating)==null?void 0:n.trim())||null,keyCount:Ls(t.keyCount),earlyDouble:parseInt(t.tooEarly)||0,earlySingle:parseInt(t.early)||0,ePerfect:parseInt(t.ePerfect)||0,perfectMinus:parseInt(t.perfectMinus)||0,perfect:parseInt(t.perfect)||0,perfectPlus:parseInt(t.perfectPlus)||0,lPerfect:parseInt(t.lPerfect)||0,lateSingle:parseInt(t.late)||0,lateDouble:0,isNoHoldTap:t.isNoHold,isAdofaiV2:zs(L(t.adofaiVersion,w.V3_4_0)),adofaiVersion:L(t.adofaiVersion,w.V3_4_0),isXPerfectMode:!!t.isXPerfectMode&&$s(L(t.adofaiVersion,w.V3_4_0))},d=t.levelId;await Hs(m),I.success(i("passSubmission.alert.success")),Y(u=>u+1),b(z),k(""),d&&T(d)}catch(o){console.error("Submission error:",o);const m=ks(o);I.error(`${i("passSubmission.alert.error")} ${ws(m,120)}`)}finally{E(!1),V(!1)}},B=async()=>{const n=q(t,a);if(Vs(a==null?void 0:a.tilecount,n,a==null?void 0:a.autoTileCount,a==null?void 0:a.midspinCount)){N(!0);return}await F()},hs=async n=>{if(n.preventDefault(),!l){console.error("No user logged in"),I.error(i("passSubmission.alert.login"));return}const o=S&&typeof S=="object"?{...S,playerId:!!t.playerId,rulesAccepted:y}:{playerId:!!t.playerId,rulesAccepted:y},d=Object.entries(o).filter(([,u])=>!u).map(([u])=>u);if(d.length>0){V(!0);const u=K=>{const bs={levelId:"Level ID",videoLink:"Video link",player:"Player",speed:"Speed",feelingRating:"Feeling difficulty",expectedRating:"Expected difficulty",keyCount:"Key count",ePerfect:"EPerfect",perfectMinus:"Perfectâ",perfect:"Perfect",perfectPlus:"Perfect+",lPerfect:"LPerfect",tooEarly:"Too Early",early:"Early",late:"Late",rulesAccepted:"Rules accepted"};return i(`passSubmission.fieldShort.${K}`,{defaultValue:bs[K]||K})},v=3,g=d.map(u).slice(0,v).join(", "),c=d.length-v,gs=c>0?` ${i("passSubmission.alert.more",{count:c}
1)}`:"";I.error(`${i("passSubmission.alert.form")}: ${g}${gs}`);return}if(C.length>0){R(!0);return}await B()};return s.jsxs("div",{className:"pass-submission-page",children:[s.jsx(Is,{...x}),s.jsxs("div",{className:"form-container",children:[!1,s.jsxs("div",{className:"pass-submission-page__form-shell",children:[s.jsx("button",{type:"button",className:"pass-submission-page__calculator-link",onClick:()=>{var n,o,m;return p("/submission/pass/calculator",{state:{form:t,searchInput:M,overrides:(n=e.state)==null?void 0:n.overrides,targetScore:(o=e.state)==null?void 0:o.targetScore,compareForm:(m=e.state)==null?void 0:m.compareForm}})},"aria-label":i("passSubmission.calculator.openCalculator"),title:i("passSubmission.calculator.openCalculator"),children:s.jsx(Bs,{size:"22px",color:"currentColor"})}),s.jsx(Es,{mode:"submit",formKey:X,form:t,setForm:b,isFormValidDisplay:as,isValidSpeed:rs,isValidFeelingRating:ns,isValidExpectedRating:ts,isValidKeyCount:ls,submitAttempt:_,isFormValid:S,level:a,setLevel:os,levelLoading:us,videoDetail:h,videoLinkResolving:cs,accuracy:ms,score:ds,handleInputChange:ps,handleAdofaiVersionChange:fs,difficultyDict:r,searchInput:M,setSearchInput:k,renderBelowJudgements:()=>s.jsx("div",{className:"rules-checkbox-container",children:s.jsxs("div",{className:"rules-checkbox",children:[s.jsx("input",{type:"checkbox",id:"rules-checkbox",checked:y,onChange:n=>Q(n.target.checked),style:{outline:_&&!S.rulesAccepted?"2px solid red":"none"}}),s.jsxs("label",{htmlFor:"rules-checkbox",children:[i("passSubmission.rules.checkbox")," ",s.jsx("button",{type:"button",className:"rules-link",onClick:()=>A(!0),children:i("passSubmission.rules.rulesLink")})]})]})}),renderSubmitActions:()=>s.jsx("button",{className:"submit btn-fill-primary alt",onClick:hs,disabled:j,children:j?i("loading.submitting",{ns:"common"}):i("buttons.submit",{ns:"common"})})})]})]}),W?s.jsx(qs,{levelId:W,user:l,afterPassSubmit:!0,onClose:()=>T(null)}):null,Z&&s.jsx(Ys,{setShowRulesPopup:A}),es&&C.length>0&&s.jsxs(P,{onClose:()=>R(!1),overlayClassName:"tag-warnings-modal-overlay",panelClassName:"tag-warnings-modal",ariaLabelledBy:"tag-warnings-title",children:[s.jsx("h2",{id:"tag-warnings-title",children:i("passSubmission.tagWarnings.title")}),s.jsx("ul",{className:"tag-warnings-modal-list",children:C.map(n=>s.jsxs("li",{className:"tag-warnings-modal-item",children:[s.jsx("span",{className:"tag-warnings-modal-icon","data-letter-only":!n.icon,style:n.color?{"--tag-bg-color":n.color}:void 0,children:n.icon?s.jsx("img",{src:Cs(n.icon,Ps.SMALL),alt:""}):s.jsx("span",{className:"tag-warnings-modal-letter",children:n.tagName.charAt(0).toUpperCase()})}),s.jsx("span",{className:"tag-warnings-modal-text",children:i(n.i18nKey,n.values)})]},n.tagName))}),s.jsxs("div",{className:"tag-warnings-modal-actions",children:[s.jsx("button",{type:"button",className:"tag-warnings-review-btn btn-fill-secondary",onClick:()=>R(!1),children:i("buttons.cancel",{ns:"common"})}),s.jsx("button",{type:"button",className:"tag-warnings-continue-btn btn-fill-primary alt",onClick:async()=>{R(!1),await B()},disabled:j,children:i("passSubmission.tagWarnings.continue")})]})]}),ss&&s.jsxs(P,{onClose:()=>N(!1),overlayClassName:"tilecount-mismatch-modal-overlay",panelClassName:"tilecount-mismatch-modal",ariaLabelledBy:"tilecount-mismatch-title",children:[s.jsx("h2",{id:"tilecount-mismatch-title",children:i("passSubmission.tilecountMismatch.title")}),s.jsx("p",{className:"tilecount-mismatch-modal-body",children:s.jsx(Os,{i18nKey:`passSubmission.tilecountMismatch.body${_s(a==null?void 0:a.autoTileCount,a==null?void 0:a.midspinCount)}`,ns:"pages",values:{tilecount:Ts(a==null?void 0:a.tilecount,a==null?void 0:a.autoTileCount,a==null?void 0:a.midspinCount),rawTilecount:a==null?void 0:a.tilecount,autoTileCount:(a==null?void 0:a.autoTileCount)??0,midspinCount:(a==null?void 0:a.midspinCount)??0,hitSum:q(t,a)},components:{b:s.jsx("b",{})}})}),s.jsxs("div",{className:"tilecount-mismatch-modal-actions",children:[s.jsx("button",{type:"button",className:"tilecount-mismatch-review-btn btn-fill-secondary",onClick:()=>
1N(!1),children:i("passSubmission.tilecountMismatch.reviewInputs")}),s.jsx("button",{type:"button",className:"tilecount-mismatch-submit-anyway-btn btn-fill-danger alt",onClick:async()=>{N(!1),await F()},disabled:j,children:i("passSubmission.tilecountMismatch.submitAnyway")})]})]})]})};export{Ie as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.