1import{bY as a,dJ as Ee,dc as b,dG as Ne,cT as t,b5 as De,a8 as Ie,an as ie,bG as Oe}from"./vendor-DSIQvlmB.js";import{a as S}from"./file-6LvHt-hB.js";import{E as Le,A as de,F as U,c as $,L as z,B as W,h as Ue,s as B,N as le}from"./entrypoints/inertia.js-CKWlK0oD.js";import{L as ce}from"./LoadingSpinner-O73GQgHd.js";import{C as $e,a as R}from"./Card-DLd4upln.js";import{I as ue}from"./InlineList-Dbly5_VC.js";import{R as _e}from"./Radio-BDuFB2B_.js";import{e as Be,R as he,b as me,a as pe}from"./Rows-B1QeFfpZ.js";import{T as H}from"./Textarea-Dr2rG1ut.js";import{dj as Pe,dp as Ye,dJ as fe}from"./DomainSettings-CpD1jebI.js";import"./request-CL1Un1Sj.js";import"./preventFileDropNavigation-0PJ0Fvsx.js";const Ge=["customer_did_not_request","customer_reactivated","customer_agreed_to_keep","other"],K={customer_did_not_request:"The customer did not request cancellation",customer_reactivated:"The customer reactivated their subscription",customer_agreed_to_keep:"The customer agreed to keep the subscription",other:"Other"},Q={cardholder_withdrew_dispute:"The cardholder withdrew the dispute",cardholder_refunded:"The cardholder was refunded",transaction_non_refundable:"The transaction was non-refundable",refund_request_too_late:"The refund or cancellation request was made after the date allowed by your terms",product_as_advertised:"The product received was as advertised",cardholder_received_credit:"The cardholder received a credit or voucher",cardholder_received_product:"The cardholder received the product or service",purchase_made_by_cardholder:"The purchase was made by the rightful cardholder",purchase_is_unique:"The purchase is unique",product_cancelled_gvnt:"The product, service, event or booking was cancelled or delayed due to a government order (COVID-19)",other:"Other"},ye={credit_not_processed:{message:"The cardholder claims you have not yet refunded their return or cancellation.",refusalRequiresExplanation:!0,reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","refund_request_too_late","cardholder_received_credit","product_cancelled_gvnt","other"]},duplicate:{message:"The cardholder claims they were charged multiple times for the same product or service.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","purchase_is_unique","other"]},fraudulent:{message:"The cardholder claims they did not authorize the purchase.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","purchase_made_by_cardholder","other"]},general:{message:"This is an uncategorized inquiry for which we have no details. Contact your customer to understand why they filed this dispute.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","refund_request_too_late","product_as_advertised","cardholder_received_credit","cardholder_received_product","purchase_made_by_cardholder","purchase_is_unique","product_cancelled_gvnt","other"],refusalRequiresExplanation:!0},product_not_received:{message:"The cardholder claims they did not receive the product or service.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","cardholder_received_product","product_cancelled_gvnt","other"]},product_unacceptable:{message:"The cardholder claims the product or service was defective, damaged, or not as described.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","refund_request_too_late","product_as_advertised","cardholder_received_credit","cardholder_received_product","other"]},subscription_canceled:{message:"Contact your customer to understand why they filed this dispute.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","cardholder_received_product","other"]},unrecognized:{message:"The cardholder doesn't recognize the payment appearing on their account statement.",reasonsForWinning:["cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","refund_request_too_late","cardholder_received_credit","cardholder_received_product","purchase_made_by_cardholder","product_cancelled_gvnt","other"]}},ge=["jpeg","jpg","png","pdf"],ve=(i,y,g)=>{if(i===null||i==="")return{option:null,text:""};const x=g.find(j=>y[j]===i);return x!==void 0&&x!=="other"?{option:x,text:""}:{option:"other",text:i}};function Xe(){var oe,ne;const{dispute_evidence:i,disputable:y,products:g}=(()=>{const n=e=>typeof e.dispute_evidence=="object"&&e.dispute_evidence!==null&&m(e.dis
1pute_evidence)&&typeof e.disputable=="object"&&e.disputable!==null&&u(e.disputable)&&Array.isArray(e.products)&&e.products.every(r=>typeof r=="object"&&r!==null&&p(r)),m=e=>(e.dispute_reason==="duplicate"||e.dispute_reason==="fraudulent"||e.dispute_reason==="product_not_received"||e.dispute_reason==="credit_not_processed"||e.dispute_reason==="general"||e.dispute_reason==="product_unacceptable"||e.dispute_reason==="subscription_canceled"||e.dispute_reason==="unrecognized")&&typeof e.customer_email=="string"&&typeof e.purchased_at=="string"&&typeof e.duration_left_to_submit_evidence_formatted=="string"&&(e.seller_response_due_at===null||typeof e.seller_response_due_at=="string")&&typeof e.customer_communication_file_max_size=="number"&&typeof e.customer_communication_files_max_count=="number"&&typeof e.blobs=="object"&&e.blobs!==null&&c(e.blobs)&&typeof e.saved=="object"&&e.saved!==null&&f(e.saved),c=e=>(e.receipt_image===null||typeof e.receipt_image=="object"&&e.receipt_image!==null&&_(e.receipt_image))&&(e.policy_image===null||typeof e.policy_image=="object"&&e.policy_image!==null&&_(e.policy_image))&&(e.customer_communication_file===null||typeof e.customer_communication_file=="object"&&e.customer_communication_file!==null&&_(e.customer_communication_file)),_=e=>typeof e.byte_size=="number"&&typeof e.filename=="string"&&typeof e.key=="string"&&(e.signed_id===null||typeof e.signed_id=="string")&&typeof e.title=="string",f=e=>(e.reason_for_winning===null||typeof e.reason_for_winning=="string")&&(e.cancellation_rebuttal===null||typeof e.cancellation_rebuttal=="string")&&(e.refund_refusal_explanation===null||typeof e.refund_refusal_explanation=="string"),u=e=>typeof e.purchase_for_dispute_evidence_id=="string"&&typeof e.formatted_display_price=="string"&&typeof e.is_subscription=="boolean",p=e=>typeof e.url=="string"&&typeof e.name=="string",h=(e,r,s=!0)=>((typeof e.dispute_evidence=="object"&&e.dispute_evidence!==null||a(s,{method:"typia.assert",path:r+".dispute_evidence",expected:"__type",value:e.dispute_evidence},o))&&C(e.dispute_evidence,r+".dispute_evidence",s)||a(s,{method:"typia.assert",path:r+".dispute_evidence",expected:"__type",value:e.dispute_evidence},o))&&((typeof e.disputable=="object"&&e.disputable!==null||a(s,{method:"typia.assert",path:r+".disputable",expected:"__type.o2",value:e.disputable},o))&&Ae(e.disputable,r+".disputable",s)||a(s,{method:"typia.assert",path:r+".disputable",expected:"__type.o2",value:e.disputable},o))&&((Array.isArray(e.products)||a(s,{method:"typia.assert",path:r+".products",expected:"Array<__type>",value:e.products},o))&&e.products.every((v,L)=>(typeof v=="object"&&v!==null||a(s,{method:"typia.assert",path:r+".products["+L+"]",expected:"__type.o3",value:v},o))&&qe(v,r+".products["+L+"]",s)||a(s,{method:"typia.assert",path:r+".products["+L+"]",expected:"__type.o3",value:v},o))||a(s,{method:"typia.assert",path:r+".products",expected:"Array<__type>",value:e.products},o)),C=(e,r,s=!0)=>(e.dispute_reason==="duplicate"||e.dispute_reason==="fraudulent"||e.dispute_reason==="product_not_received"||e.dispute_reason==="credit_not_processed"||e.dispute_reason==="general"||e.dispute_reason==="product_unacceptable"||e.dispute_reason==="subscription_canceled"||e.dispute_reason==="unrecognized"||a(s,{method:"typia.assert",path:r+".dispute_reason",expected:'("credit_not_processed" | "duplicate" | "fraudulent" | "general" | "product_not_received" | "product_unacceptable" | "subscription_canceled" | "unrecognized")',value:e.dispute_reason},o))&&(typeof e.customer_email=="string"||a(s,{method:"typia.assert",path:r+".customer_email",expected:"string",value:e.customer_email},o))&&(typeof e.purchased_at=="string"||a(s,{method:"typia.assert",path:r+".purchased_at",expected:"string",value:e.purchased_at},o))&&(typeof e.duration_left_to_submit_evidence_formatted=="string"||a(s,{method:"typia.assert",path:r+".duration_left_to_submit_evidence_formatted",expected:"string",value:e.duration_left_to_submit_evidence_formatted},o))&&(e.seller_response_due_at===null||typeof e.seller_response_due_at=="string"||a(s,{method:"typia.assert",path:r+".seller_response_due_at",expected:"(null | string)",value:e.seller_response_due_at},o))&&(typeof e.customer_communication_file_max_size=="number"||a(s,{method:"typia.assert",path:r+".customer_communication_file_max_size",expected:"number",value:e.customer_communication_file_max_size},o))&&(typeof e.customer_communication_files_max_count=="number"||a(s,{method:"typia.assert",path:r+".customer_communication_files_max_count",expected:"number",value:e.customer_communication_files_max_count},o))&&((typeof e.blobs=="object"&&e.blobs!==null||a(s,{method:"typia.assert",path:r+".blobs",expected:"Blobs",value:e.blobs},o))&&I(e.blobs,r+".blobs",s)||a(s,{method:"typia.assert",path:r+".blobs",expected:"Blobs",value:e.blobs},o))&&((typeof e.saved=="object"&&e.saved!==null||a(s,{method:"typia.assert",path:r+".saved",expected:"__type.o1",value:e.saved},o))&&Se(e.saved,r+".saved",s)||a(s,{method:"typia.assert",path:r+".saved",expected:"__type.o1",value:e.saved},o)),I=(e,r,s=!0)=>(e.receipt_image===null||(typeof e.receipt_image=="object"&&e.receipt_image!==null||a(s,{method:"typia.assert",path:r+".receipt_image",expected:"(BlobType | null)",value:e.receipt_image}
1,o))&&O(e.receipt_image,r+".receipt_image",s)||a(s,{method:"typia.assert",path:r+".receipt_image",expected:"(BlobType | null)",value:e.receipt_image},o))&&(e.policy_image===null||(typeof e.policy_image=="object"&&e.policy_image!==null||a(s,{method:"typia.assert",path:r+".policy_image",expected:"(BlobType | null)",value:e.policy_image},o))&&O(e.policy_image,r+".policy_image",s)||a(s,{method:"typia.assert",path:r+".policy_image",expected:"(BlobType | null)",value:e.policy_image},o))&&(e.customer_communication_file===null||(typeof e.customer_communication_file=="object"&&e.customer_communication_file!==null||a(s,{method:"typia.assert",path:r+".customer_communication_file",expected:"(BlobType | null)",value:e.customer_communication_file},o))&&O(e.customer_communication_file,r+".customer_communication_file",s)||a(s,{method:"typia.assert",path:r+".customer_communication_file",expected:"(BlobType | null)",value:e.customer_communication_file},o)),O=(e,r,s=!0)=>(typeof e.byte_size=="number"||a(s,{method:"typia.assert",path:r+".byte_size",expected:"number",value:e.byte_size},o))&&(typeof e.filename=="string"||a(s,{method:"typia.assert",path:r+".filename",expected:"string",value:e.filename},o))&&(typeof e.key=="string"||a(s,{method:"typia.assert",path:r+".key",expected:"string",value:e.key},o))&&(e.signed_id===null||typeof e.signed_id=="string"||a(s,{method:"typia.assert",path:r+".signed_id",expected:"(null | string)",value:e.signed_id},o))&&(typeof e.title=="string"||a(s,{method:"typia.assert",path:r+".title",expected:"string",value:e.title},o)),Se=(e,r,s=!0)=>(e.reason_for_winning===null||typeof e.reason_for_winning=="string"||a(s,{method:"typia.assert",path:r+".reason_for_winning",expected:"(null | string)",value:e.reason_for_winning},o))&&(e.cancellation_rebuttal===null||typeof e.cancellation_rebuttal=="string"||a(s,{method:"typia.assert",path:r+".cancellation_rebuttal",expected:"(null | string)",value:e.cancellation_rebuttal},o))&&(e.refund_refusal_explanation===null||typeof e.refund_refusal_explanation=="string"||a(s,{method:"typia.assert",path:r+".refund_refusal_explanation",expected:"(null | string)",value:e.refund_refusal_explanation},o)),Ae=(e,r,s=!0)=>(typeof e.purchase_for_dispute_evidence_id=="string"||a(s,{method:"typia.assert",path:r+".purchase_for_dispute_evidence_id",expected:"string",value:e.purchase_for_dispute_evidence_id},o))&&(typeof e.formatted_display_price=="string"||a(s,{method:"typia.assert",path:r+".formatted_display_price",expected:"string",value:e.formatted_display_price},o))&&(typeof e.is_subscription=="boolean"||a(s,{method:"typia.assert",path:r+".is_subscription",expected:"boolean",value:e.is_subscription},o)),qe=(e,r,s=!0)=>(typeof e.url=="string"||a(s,{method:"typia.assert",path:r+".url",expected:"string",value:e.url},o))&&(typeof e.name=="string"||a(s,{method:"typia.assert",path:r+".name",expected:"string",value:e.name},o)),We=e=>typeof e=="object"&&e!==null&&n(e);let o;return(e,r)=>(We(e)===!1&&(o=r,((s,v,L=!0)=>(typeof s=="object"&&s!==null||a(!0,{method:"typia.assert",path:v+"",expected:"Props",value:s},o))&&h(s,v+"",!0)||a(!0,{method:"typia.assert",path:v+"",expected:"Props",value:s},o))(e,"$input",!0)),e)})()(Ee().props),x=b.useId(),j=b.useId(),d=b.useId(),w=b.useRef(null),Z=Le(),E=i.saved,P=ve(E.reason_for_winning,Q,ye[i.dispute_reason].reasonsForWinning),Y=ve(E.cancellation_rebuttal,K,Ge),[F,be]=b.useState(P.option),[k,xe]=b.useState(Y.option),ee=i.blobs,[A,te]=b.useState(!1),[T,re]=b.useState([]),[je,N]=b.useState(!1),we=P.option!==null||Y.option!==null||(E.refund_refusal_explanation??"")!=="",l=Ne({dispute_evidence:{reason_for_winning:P.text,cancellation_rebuttal:Y.text,refund_refusal_explanation:E.refund_refusal_explanation??"",customer_communication_file_signed_blob_ids:[]}}),se=new Date(i.purchased_at).toLocaleString(Z.locale,{dateStyle:"medium"}),ae=i.seller_response_due_at!==null?new Date(i.seller_response_due_at).toLocaleString(Z.locale,{dateStyle:"medium",timeStyle:"short"}):null,G=n=>{l.setData("dispute_evidence",{...l.data.dispute_evidence,...n})},Fe=F==="other"&&l.data.dispute_evidence.reason_for_winning===""?!1:F!=null,ke=k==="other"&&l.data.dispute_evidence.cancellation_rebuttal
1===""?!1:k!=null,Te=Fe||ke||T.length>0||l.data.dispute_evidence.refund_refusal_explanation!=="",Re=()=>{if(A)return;N(!1);const n=F==="other"?l.data.dispute_evidence.reason_for_winning:F!==null?Q[F]:"",m=k==="other"?l.data.dispute_evidence.cancellation_rebuttal:k!==null?K[k]:"";l.transform(c=>({dispute_evidence:{reason_for_winning:n,cancellation_rebuttal:m,refund_refusal_explanation:c.dispute_evidence.refund_refusal_explanation,customer_communication_file_signed_blob_ids:T.map(({signed_id:_})=>_)}})),l.put(Pe(y.purchase_for_dispute_evidence_id))},D=i.customer_communication_files_max_count,X=ee.customer_communication_file!==null?1:0,q=D-X-T.length,Ce=async()=>{var m;const n=Array.from(((m=w.current)==null?void 0:m.files)??[]);if(w.current&&(w.current.value=""),n.length!==0){if(n.length>q)return B(q===D?`You can attach up to ${D} files.`:`You can attach ${q} more ${q===1?"file":"files"}.`,"error");if(n.some(c=>!S.isFileNameExtensionAllowed(c.name,ge)))return B("Invalid file type.","error");if(n.some(c=>c.size>i.customer_communication_file_max_size))return B("The file exceeds the maximum size allowed.","error");te(!0);for(const c of n)try{const _=await new Promise((f,u)=>{new Ie(c,Ye()).create((p,h)=>{p?u(p):f({byte_size:h.byte_size,filename:h.filename,key:h.key,signed_id:h.signed_id})})});re(f=>[...f,_])}catch(_){B(`${c.name} could not be uploaded${_ instanceof Error?`: ${_.message}`:""}. Any remaining files were not uploaded.`,"error");break}te(!1)}},ze=n=>{re(m=>m.filter(c=>c.key!==n))},J=3e3,V=7,M=ye[i.dispute_reason];return t.jsxs($e,{className:"mx-auto my-8 max-w-2xl",children:[t.jsx(R,{asChild:!0,children:t.jsxs("header",{children:["Dispute evidence",t.jsx("h2",{className:"grow",children:"Submit additional information"})]})}),t.jsxs(R,{children:[g.length>1?t.jsxs("div",{className:"grow",children:[t.jsxs("p",{children:["A customer of yours (",i.customer_email,") has disputed their purchase made on ",se," ","of the following ",g.length," items for ",y.formatted_display_price,"."]}),t.jsx("br",{}),t.jsx("ul",{children:g.map(n=>t.jsx("li",{children:t.jsx("a",{href:n.url,target:"_blank",rel:"noreferrer",children:n.name})},n.name))})]}):t.jsxs("p",{className:"grow",children:["A customer of yours (",i.customer_email,") has disputed their purchase made on ",se," ","of"," ",t.jsx("a",{href:(oe=g[0])==null?void 0:oe.url,target:"_blank",rel:"noreferrer",children:(ne=g[0])==null?void 0:ne.name})," ","for ",y.formatted_display_price,"."]}),t.jsx("p",{children:t.jsx("strong",{children:M.message})}),t.jsx("p",{children:t.jsx("strong",{children:ae!==null?`Any additional information you can provide by ${ae} (${i.duration_left_to_submit_evidence_formatted} left) will help us win on your behalf.`:`Any additional information you can provide in the next ${i.duration_left_to_submit_evidence_formatted} will help us win on your behalf.`})}),t.jsxs(de,{variant:"warning",children:[t.jsx("strong",{children:"You can keep adding to this until the deadline."})," Our payment processor accepts one submission per dispute, so we hold your response and send it at the deadline. Come back any time before then to add files or revise what you wrote â after the deadline nothing more can be added, not even by contacting support."]}),we?t.jsxs(de,{variant:"info",children:[t.jsx("strong",{children:"Your saved response is filled in below."})," Change whatever you want and save again â saving replaces the fields you fill in and leaves the rest as they are."]}):null]}),t.jsx(R,{children:t.jsxs(U,{className:"grow basis-0",children:[t.jsx($,{children:t.jsx(z,{htmlFor:x,children:"Why should you win this dispute?"})}),M.reasonsForWinning.map(n=>t.jsxs(z,{children:[t.jsx(_e,{name:"reasonForWinning",value:n,checked:F===n,onChange:m=>be((()=>{const c=new Set(["other","cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","refund_request_too_late","product_as_advertised","cardholder_received_credit","cardholder_received_product","purchase_made_by_cardholder","purchase_is_unique","product_cancelled_gvnt"]),_=new Set(["other","cardholder_withdrew_dispute","cardholder_refunded","transaction_non_refundable","refund_request_too_late","product_as_advertised","cardholder_received_credit","cardholder_received_product","purchase_made_by_cardholder","purchase_is_unique","product_cancelled_gvnt"]),f=p=>c.has(p)===!0;let u;return(p,h)=>(f(p)===!1&&(u=h,((C,I,O=!0)=>_.has(C)===!0||a(!0,{method:"typia.assert",path:I+"",expected:'("cardholder_received_credit" | "cardholder_received_product" | "cardholder_refunded" | "cardholder_withdrew_dispute" | "other" | "product_as_advertised" | "product_cancelled_gvnt" | "purchase_is_unique" | "purchase_made_by_cardholder" | "refund_request_too_late" | "transaction_non_refundable")',value:C},u))(p,"$input",!0)),p)})()(m.target.value))}),Q[n]]},n)),F==="other"?t.jsx(H,{id:x,maxLength:J,rows:V,value:l.data.dispute_evidence.reason_for_winning,onChange:n=>G({reason_for_winning:n.target.value})}):null]})}),y.is_subscription&&i.dispute_reason==="subscription_canceled"?t.jsx(R,{children:t.jsxs(U,{className:"grow basis-0",children:[t.jsx($,{children:t.jsx(z,{htmlFor:j,children:"Why was the customer's subscription not canceled?"})}),Object.entries(K).map(([n,m])=>t.jsxs(z,{children:[t.jsx(_e,{name:"cancellationRebuttal",value:n,checked:k===n,onChange:c=>xe((()=>{const _=u=>u==="other"||u==="customer_did_not_request"||u==="customer_reactivated"||u==="customer_agreed_to_keep";let f;return(u,p)=>(_(u)===!1&&(f=p,((h,C,I=!0)=>h==="other"||h==="customer_did_not_request"||h==="customer_reactivated"||h==="customer_agreed_to_keep"||a(!0,{method:"typia.assert",path:C+"",expected:'("customer_agreed_to_keep" | "customer_did_not_request" | "customer_reactivated" | "other")',value:h},f))(u,"$input",!0)),u)})()(c.target.value))}),m]},n)),k==="other"?t.jsx(H,{id:j,maxLength:J,rows:V,value:l.data.dispute_evidence.cancellation_rebuttal,onChange:n=>G({cancellation_rebuttal:n.target.value})}):null]})}):null,"refusalRequiresExplanation"in M?t.jsx(R,{children:t.jsxs(U,{className:"grow basis-0",children:[t.jsx($,{children:t.jsx(z,{htmlFor:d,children:"Why is the customer not entitled to a refund?"})}),t.jsx(H,{id:d,maxLength:J,rows:V,value:l.data.dispute_evidence.refund_refusal_explanation,onChange:n=>G({refund_refusal_explanation:n.target.value})})]})}):null,t.jsx(R,{children:t.jsxs(U,{className:"grow basis-0",children:[t.jsx($,{children:t.jsx(z,{children:"Do you have additional evidence you'd like to provide?"})}),t.jsx(Je,{blobs:ee,uploadedFiles:T,onRemoveFile:ze,isSubmitting:l.processing}),q>0?t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:w,type:"file",multiple:!0,accept:ge.map(n=>`.${n}`).join(","),className:"sr-only",tabIndex:-1,onChange:()=>void Ce()}),t.jsx(W,{outline:!0,disabled:A||l.processing,onClick:()=>{var n;return(n=w.current)==null?void 0:n.click()},children:A?t.jsxs(t.Fragment,{children:[t.jsx(ce,{})," Uploading..."]}):t.jsxs(t.Fragment,{children:[t.jsx(De,{className:"size-5"})," Upload customer communication"]})}),t.jsxs("p",{children:["Any communication with the customer that you feel is relevant to your case (emails, chats, etc. proving that they received the product or service, or screenshots demonstrating their use of or satisfaction with the product or service). You can attach up to ",D," JPG, PNG, or PDF files, each under"," ",S.getReadableFileSize(i.customer_communication_file_max_size),". We combine them into a single PDF in the order shown, so pick them in the order you want them read."]})]}):null]})}),t.jsx(R,{children:t.jsx(W,{color:"primary",disabled:!Te||A||l.processing,onClick:()=>N(!0),className:"grow basis-0",children:l.processing?t.jsxs(t.Fragment,{children:[t.jsx(ce,{})," Saving..."]}):"Save response"})}),t.jsxs(Ue,{open:je,title:"Save your response?",onClose:()=>N(!1),footer:t.jsxs(t.Fragment,{children:[t.jsx(W,{onClick:()=>N(!1),children:"Cancel"}),t.jsx(W,{color:"primary",disabled:A||l.processing,onClick:Re,children:"Confirm and save"})]}),children:[t.jsx("p",{children:"We send this to our payment processor at the deadline, not now, so you can come back and add to it until then."}),T.length>0?t.jsxs("p",{children:["You are attaching ",T.length," ",T.length===1?"file":"files",X>0?", in addition to the file you already saved":"","."]}):X>0?t.jsx("p",{children:"Your previously saved file stays attached. You can add more here any time before the deadline."}):t.jsx("p",{children:"You have not attached any files. You can add them here any time before the deadline."})]})]})}const Je=({blobs:i,uploadedFiles:y,onRemoveFile:g,isSubmitting:x})=>{const j=Object.values(i).filter(d=>d!==null);return j.length<1&&y.length<1?null:t.jsxs(Be,{role:"list",children:[j.map(d=>t.jsxs(he,{role:"listitem",children:[t.jsxs(me,{children:[t.jsx(ie,{pack:"filled",className:"type-icon size-5"}),t.jsxs("div",{children:[t.jsx("h4",{children:d.title}),t.jsxs(ue,{children:[t.jsx("li",{children:S.getFileExtension(d.filename).toUpperCase()}),t.jsx("li",{children:S.getFullFileSizeString(d.byte_size)})]})]})]}),t.jsx(pe,{children:t.jsx(le,{outline:!0,href:fe({key:d.key}),target:"_blank",children:"View"})})]},d.key)),y.map((d,w)=>t.jsxs(he,{role:"listitem",children:[t.jsxs(me,{children:[t.jsx(ie,{pack:"filled",className:"type-icon size-5"}),t.jsxs("div",{children:[t.jsxs("h4",{children:[w+1,". ",d.filename]}),t.jsxs(ue,{children:[t.jsx("li",{children:S.getFileExtension(d.filename).toUpperCase()}),t.jsx("li",{children:S.getFullFileSizeString(d.byte_size)})]})]})]}),t.jsxs(pe,{children:[t.jsx(le,{outline:!0,href:fe({key:d.key}),target:"_blank",children:"View"}),t.jsx(W,{size:"icon",color:"danger",outline:!0,"aria-label":"Remove",disabled:x,onClick:()=>g(d.key),children:t.jsx(Oe,{className:"size-5"})})]})]},d.key))]})};Xe.publicLayout=!0;export{Xe as default}; 2//# sourceMappingURL=Show-BcottrJU.js.map
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.