1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="77809527-05e1-4866-8d4c-d09a1570fd97",e._sentryDebugIdIdentifier="sentry-dbid-77809527-05e1-4866-8d4c-d09a1570fd97")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6027],{14609:(e,t,r)=>{r.d(t,{b:()=>u});var n=r(60056),a=r(79984);function s(){return"development"===function(){return"production"}()}var l="https://va.vercel-scripts.com/v1/speed-insights",d=`${l}/script.js`,i=`${l}/script.debug.js`;function o(e){let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if("undefined"==typeof window||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=!!e.dsn,n=e.scriptSrc||(s()?i:r?d:"/_vercel/speed-insights/script.js");if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let a=document.createElement("script");return a.src=n,a.defer=!0,a.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),a.dataset.sdkv="1.0.10",e.sampleRate&&(a.dataset.sampleRate=e.sampleRate.toString()),e.route&&(a.dataset.route=e.route),e.endpoint&&(a.dataset.endpoint=e.endpoint),e.dsn&&(a.dataset.dsn=e.dsn),s()&&!1===e.debug&&(a.dataset.debug="false"),a.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(a),{setRoute:e=>{a.dataset.route=e??void 0}}}({framework:e.framework||"react",...e});r&&(t.current=r.setRoute)}},[e.route]),null}function c(e){let t=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)(),r=(0,a.usePathname)(),n={...Object.fromEntries(t.entries()),...e||{}};return e?function(e,t){if(!e||!t)return e;let r=e;try{for(let[e,n]of Object.entries(t)){let t=Array.isArray(n),a=t?n.join("/"):n,s=t?`...${e}`:e,l=RegExp(`/${a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`);l.test(r)&&(r=r.replace(l,`/[${s}]`))}return r}catch(t){return e}}(r,n):null})();return n.createElement(o,{route:t,...e,framework:"next"})}function u(e){return n.createElement(n.Suspense,{fallback:null},n.createElement(c,{...e}))}},95879:(e,t,r)=>{r.d(t,{W:()=>C});var n=r(38900),a=r(94646),s=r(31627),l=r(60056),d=r(92773),i=r(29678);function o(e){return e.toISOString().slice(0,10)}function c(){return u(7)}function u(e){let t=new Date;return t.setDate(t.getDate()-e),o(t)}function x(e){return"string"==typeof e&&/^\d{4}-\d{2}-\d{2}$/.test(e)}function p(e){return new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}function m(e){return new Intl.DateTimeFormat("en-US",{day:"numeric",month:"numeric",year:"numeric",timeZone:"UTC"}).format(new Date("".concat(e,"T00:00:00Z")))}function y(e){return new Intl.DateTimeFormat("en-US",{day:"2-digit",hour:"2-digit",minute:"2-digit",month:"2-digit",second:"2-digit",year:"numeric"}).format(new Date(e)).replace(", "," @ ")}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e)}function g(e){let t=Object.entries(e);return 0===t.length?h(0):t.map(e=>{let[t,r]=e;return h(r,t)}).join(" / ")}function f(e){return e?e.replace(/_/g," "):"-"}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:1,maximumFractionDigits:1}).format(e)}function j(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function v(e,t){return e?"asc"===t?" â²":" â¼":""}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e-t}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Date(e||0).getTime()-new Date(t||0).getTime()}let k="internalReturns.topReturnedItemsExpanded",S="inline-flex items-center justify-end gap-1 font-semibold uppercase text-gray-500 transition hover:text-gray-950",C=()=>{var e,t,r,d,C;let R=(0,s.useRouter)(),[D,A]=(0,l.useState)(c),[T,I]=(0,l.useState)(()=>o(new Date)),[O,q]=(0,l.useState)(null),[E,_]=(0,l.useState)(!1),[F,U]=(0,l.useState)(null),[$,B]=(0,l.useState)(null),[L,M]=(0,l.useState)(!1),[P,Z]=(0,l.useState)("idle"),[V,z]=(0,l.useState)(!0),[
1K,Q]=(0,l.useState)({key:"quantityReturned",direction:"desc"}),[W,G]=(0,l.useState)({key:"refundedAt",direction:"desc"}),H=(0,l.useMemo)(()=>g((null==O?void 0:O.totalsByCurrency)||{}),[null==O?void 0:O.totalsByCurrency]),J=(0,l.useMemo)(()=>g((null==O?void 0:O.totalSalesByCurrency)||{}),[null==O?void 0:O.totalSalesByCurrency]),X=(0,l.useMemo)(()=>(function(e){let t=Object.entries(e);return 0===t.length?b(0):t.map(e=>{let[,t]=e;return b(t)}).join(" / ")})((null==O?void 0:O.refundRevenueRateByCurrency)||{}),[null==O?void 0:O.refundRevenueRateByCurrency]),Y=(0,l.useMemo)(()=>(null==O?void 0:O.startDate)&&(null==O?void 0:O.endDate)?"".concat(m(O.startDate)," - ").concat(m(O.endDate)):"".concat(m(D)," - ").concat(m(T)),[null==O?void 0:O.endDate,null==O?void 0:O.startDate,T,D]),ee=(null==O?void 0:O.accurateAsOf)||$,et=(0,l.useMemo)(()=>[...(null==O?void 0:O.topReturnedItems)||[]].sort((e,t)=>{let r="quantityReturned"===K.key?w(e.quantityReturned,t.quantityReturned):"orderCount"===K.key?w(e.orderCount,t.orderCount):"totalOrderCount"===K.key?w(e.totalOrderCount,t.totalOrderCount):"returnRate"===K.key?w(e.returnRate,t.returnRate):w(e.refundAmount,t.refundAmount);return"asc"===K.direction?r:-r}),[null==O?void 0:O.topReturnedItems,K.direction,K.key]),er=(0,l.useMemo)(()=>[...(null==O?void 0:O.orders)||[]].sort((e,t)=>{let r="refundedAt"===W.key?N(e.refundedAt||e.createdAt,t.refundedAt||t.createdAt):"createdAt"===W.key?N(e.createdAt,t.createdAt):"displayFinancialStatus"===W.key?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.localeCompare(t)}(f(e.displayFinancialStatus),f(t.displayFinancialStatus)):w(e.refundAmount,t.refundAmount);return"asc"===W.direction?r:-r}),[null==O?void 0:O.orders,W.direction,W.key]),en=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{startDate:D,endDate:T},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{updateUrl:!0};_(!0),U(null);try{var r,n;let a=(r=e.startDate,n=e.endDate,r>n?"Start date must be before or equal to end date.":function(e,t){let r=new Date("".concat(e,"T00:00:00Z")).getTime();return Math.floor((new Date("".concat(t,"T00:00:00Z")).getTime()-r)/864e5)+1}(r,n)>60?"Date range cannot exceed ".concat(60," days."):null);if(a)throw Error(a);let s=new URLSearchParams(e),l=await fetch("/api/internal/refunds?".concat(s.toString()),{credentials:"include"}),d=await l.json();if(!l.ok)throw Error((null==d?void 0:d.error)||"Failed to fetch refunds");q(d),B(new Date().toISOString()),t.updateUrl&&R.replace({pathname:R.pathname,query:{...R.query,startDate:e.startDate,endDate:e.endDate}},void 0,{shallow:!0})}catch(e){U(e instanceof Error?e.message:"Failed to fetch refunds"),q(null)}finally{_(!1)}};(0,l.useEffect)(()=>{if(!R.isReady||L)return;let e=x(R.query.startDate)?R.query.startDate:D,t=x(R.query.endDate)?R.query.endDate:T;A(e),I(t),M(!0),en({startDate:e,endDate:t},{updateUrl:!1})},[R.isReady,L]),(0,l.useEffect)(()=>{let e=window.localStorage.getItem(k);null!==e&&z("true"===e)},[]);let ea=()=>{z(e=>{let t=!e;return window.localStorage.setItem(k,String(t)),t})},es=e=>{Q(t=>({key:e,direction:t.key===e&&"desc"===t.direction?"asc":"desc"}))},el=e=>{G(t=>({key:e,direction:t.key===e&&"desc"===t.direction?"asc":"desc"}))},ed=()=>{var e,t;return O?[["Date Range",Y],["Refunded orders",String(null!=(e=O.count)?e:0)],["Total paid orders","".concat("AT_LEAST"===O.totalOrderCountPrecision?"At least ":"").concat(null!=(t=O.totalOrderCount)?t:0)],["Refund rate by order count",b(O.refundRate)],["Refund rate by gross sales revenue",X],["Total refunded",H],["Total sales",J],["Accurate as of",O.accurateAsOf?y(O.accurateAsOf):"-"],["Report URL",window.location.href]]:[]},ei=async()=>{if(O&&"undefined"!=typeof navigator)try{let e=[...ed().map(e=>{let[t,r]=e;return"".concat(t,": ").concat(r)})].join("\n");"undefined"!=typeof ClipboardItem&&navigator.clipboard.write?await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([(()=>{let e=ed().map(e=>{let[t,r]=e;return"<div><strong>".concat(j(t),":</strong> ").concat(j(r),"</div>")}).join("");return"<div>".concat(e,"</div>")})()],{type:"text/html"})})]):await navigator.clipboard.writeText(e),Z("copied"),setTimeout(()=>Z("idle"),2500)}catch(e){Z("error"),setTimeout(()=>Z("idle"),2500)}};return(0,n.jsxs)("div",{className:"mx-auto w-[calc(100vw-3rem)] max-w-none px-0 py-0 flex flex-col gap-8 min-h-[490px]",children:[(0,n.jsx)(a.bV,{title:"Returns | VRAI Internal",noindex:!0,nofollow:!0}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between",children:[(0,n.jsx)("div",{className:"max-w-[760px]",children:(0,n.jsx)(i.r,{titleStyleDesktop:"title.l",titleStyleMobile:"title.l",titleColorDesktop:"content-primary-high",titleColorMobile:"content-primary-high",titleText:"Returns dashboard"})}),(0,n.jsxs)("div",{className:"text-left lg:text-right",children:[(0,n.jsx)("div",{className:"text-[13px] font-semibold uppercase text-gray-500",children:"Current range"}),(0,n.jsx)("div",{className:"mt-1 text-[22px] font-semibold text-gray-950",children:Y}),ee&&(0,n.jsxs)("div",{className:"mt-2 text-[14px] text-gray-500",children:["Accurate as of ",y(ee)]})]})]}),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),en()},className:"grid grid-cols-1 gap-4 border-y border-gray-200 bg-gray-50 px-5 py-5 lg:grid-cols-[minmax(180px,240px)_minmax(180px,240px)_1fr_auto_auto] lg:items-end",children:[(0,n.jsxs)("label",{className:"flex flex-col gap-2 text-[15px] font-semibold text-gray-800",children:["Start date",(0,n.jsx)("input",{type:"date",value:D,onChange:e=>A(e.target.value),className:"h-14 border border-gray-300 bg-white px-4 text-[18px] text-gray-950 outline-none transition focus:border-emerald-700",required:!0})]}),(0,n.jsxs)("label",{className:"flex flex-col gap-2 text-[15px] font-semibold text-gray-800",children:["End date",(0,n.jsx)("input",{type:"date",value:T,onChange:e=>I(e.target.value),className:"h-14 border border-gray-300 bg-white px-4 text-[18px] text-gray-950 outline-none transition focus:border-emerald-700",required:!0})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2 lg:pb-0",children:[{label:"Last 7 days",daysAgo:7},{label:"Last 30 days",daysAgo:30},{label:"Last 60 days",daysAgo:59}].map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>(e=>{let t=u(e),r=o(new Date);A(t),I(r),en({startDate:t,endDate:r})})(e.daysAgo),className:"h-11 border border-gray-300 bg-white px-4 text-[15px] font-semibold text-gray-800 transition hover:border-gray-950 hover:text-gray-950",children:e.label},e.label))}),(0,n.jsx)("button",{type:"submit",disabled:E,className:"h-14 bg-gray-950 px-8 text-[16px] font-semibold text-white transition hover:bg-emerald-800 disabled:cursor-not-allowed disabled:opacity-50",children:E?"Loading...":"Apply range"}),(0,n.jsx)("button",{type:"button",disabled:!O||E,onClick:ei,className:"h-14 border border-gray-950 bg-white px-8 text-[16px] font-semibold text-gray-950 transition hover:bg-gray-950 hover:text-white disabled:cursor-not-allowed disabled:border-gray-300 disabled:text-gray-400 disabled:hover:bg-white",children:"copied"===P?"Copied":"error"===P?"Copy failed":"Copy report"})]}),F&&(0,n.jsx)("div",{className:"border border-red-200 bg-red-50 px-5 py-4 text-[16px] text-red-700",children:F}),O&&(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-4",children:[(0,n.jsxs)("div",{className:"border border-gray-200 bg-white p-6",children:[(0,n.jsx)("div",{className:"text-[13px] font-semibold uppercase text-gray-500",children:"Refunded orders"}),(0,n.jsx)("div",{className:"mt-3 text-[44px] font-semibold leading-none text-gray-950",children:null!=(t=O.count)?t:0}),(0,n.jsx)("div",{className:"mt-3 text-[15px] text-gray-500",children:"Matching orders"})]}),(0,n.jsxs)("div",{className:"border border-gray-200 bg-white p-6",children:[(0,n.jsx)("div",{className:"text-[13px] font-semibold uppercase text-gray-500",children:"Refund rate"}),(0,n.jsxs)("div",{className:"mt-4 grid grid-cols-2 divide-x divide-gray-200",children:[(0,n.jsxs)("div",{className:"pr-5",children:[(0,n.jsx)("div",{className:"text-[40px] font-semibold leading-none text-gray-950",children:b(O.refundRate)}),(0,n.jsx)("div",{className:"mt-3 text-[15px] text-gray-500",children:"By order count"})]}),(0,n.jsxs)("div",{className:"pl-5",children:[(0,n.jsx)("div",{className:"text-[40px] font-semibold leading-none text-gray-950",children:X}),(0,n.jsx)("div",{className:"mt-3 text-[15px] text-gray-500",children:"By gross sales"})]})]}),(0,n.jsxs)("div",{className:"mt-3 text-[15px] text-gray-500",children:[null!=(r=O.count)?r:0," of ","AT_LEAST"===O.totalOrderCountPrecision?"at least ":"",null!=(d=O.totalOrderCount)?d:0," orders"]})]}),(0,n.jsxs)("div",{className:"border border-gray-200 bg-white p-6",children:[(0,n.jsx)("div",{className:"text-[13px] font-semibold uppercase text-gray-500",children:"Total refunded"}),(0,n.jsx)("div",{className:"mt-3 text-[44px] font-semibold leading-none text-gray-950",children:H}),(0,n.jsx)("div",{className:"mt-3 text-[15px] text-gray-500",children:"Actual customer refund total"})]}),(0,n.jsxs)("div",{className:"border border-gray-200 bg-white p-6",children:[(0,n.jsx)("div",{className:"text-[13px] font-semibold uppercase text-gray-500",children:"Total sales"}),(0,n.jsx)("div",{className:"mt-3 text-[44px] font-semibold leading-none text-gray-950",children:J}),(0,n.jsx)("div",{className:"mt-3 text-[15px] text-gray-500",children:"Net sales after refunds"})]})]}),(null==O?void 0:O.truncated)&&(0,n.jsx)("div",{className:"border border-amber-200 bg-amber-50 px-5 py-4 text-[16px] text-amber-800",children:"Results were capped at 5,000 orders. Narrow the date range to see the remaining matches."}),O&&(0,n.jsxs)("div",{className:"overflow-hidden border border-gray-200 bg-white",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 border-b border-gray-200 px-5 py-4 md:flex-row md:items-center md:justify-between",children:[(0,n.jsx)("button",{type:"button",onClick:ea,"aria-expanded":V,className:"flex items-center gap-3 text-left",children:(0,n.jsx)("span",{children:(0,n.jsx)("span",{className:"block text-[22px] font-semibold text-gray-950",children:"Top returns"})})}),(0,n.jsx)("button",{type:"button",onClick:ea,className:"h-10 border border-gray-300 bg-white px-4 text-[14px] font-semibold text-gray-800 transition hover:border-gray-950 hover:text-gray-950",children:V?"Collapse":"Expand"})]}),(0,n.jsx)("div",{className:V?"overflow-x-auto":"hidden",children:(0,n.jsxs)("table",{className:"w-full min-w-[760px] text-[16px]",children:[(0,n.jsx)("thead",{className:"bg-gray-50 text-left text-[13px] uppercase text-gray-500",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"px-5 py-4 font-semibold",children:"Item"}),(0,n.jsx)("th",{className:"px-5 py-4 font-semibold",children:"SKU"}),(0,n.jsx)("th",{className:"px-5 py-4 text-right",children:(0,n.jsxs)("button",{type:"button",onClick:()=>es("quantityReturned"),className:S,children:["Qty",v("quantityReturned"===K.key,K.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4 text-right",children:(0,n.jsxs)("button",{type:"button",onClick:()=>es("orderCount"),className:S,children:["Returned orders",v("orderCount"===K.key,K.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4 text-right",children:(0,n.jsxs)("button",{type:"button",onClick:()=>es("totalOrderCount"),className:S,children:["Total orders",v("totalOrderCount"===K.key,K.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4 text-right",children:(0,n.jsxs)("button",{type:"button",onClick:()=>es("returnRate"),className:S,children:["Return rate",v("returnRate"===K.key,K.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4 text-right",children:(0,n.jsxs)("button",{type:"button",onClick:()=>es("refundAmount"),className:S,children:["Refunded",v("refundAmount"===K.key,K.direction)]})})]})}),(0,n.jsxs)("tbody",{children:[E&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{className:"px-5 py-12 text-center text-[17px] text-gray-500",colSpan:7,children:"Loading returned items..."})}),!E&&0===et.length&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{className:"px-5 py-12 text-center text-[17px] text-gray-500",colSpan:7,children:"No itemized returned products found for this date range."})}),!E&&et.map(e=>{var t;return(0,n.jsxs)("tr",{className:"border-t border-gray-100",children:[(0,n.jsx)("td",{className:"px-5 py-5",children:e.productUrl?(0,n.jsx)("a",{href:e.productUrl,target:"_blank",rel:"noreferrer",className:"block max-w-[620px] text-[17px] font-semibold text-gray-950 underline-offset-4 hover:underline",children:e.name}):(0,n.jsx)("div",{className:"max-w-[620px] text-[17px] font-semibold text-gray-950",children:e.name})}),(0,n.jsx)("td",{className:"px-5 py-5 whitespace-nowrap text-gray-600",children:e.sku||"-"}),(0,n.jsx)("td",{className:"px-5 py-5 text-right whitespace-nowrap text-gray-950",children:e.quantityReturned}),(0,n.jsx)("td",{className:"px-5 py-5 text-right whitespace-nowrap text-gray-950",children:e.orderCount}),(0,n.jsx)("td",{className:"px-5 py-5 text-right whitespace-nowrap text-gray-950",children:null!=(t=e.totalOrderCount)?t:0}),(0,n.jsx)("td",{className:"px-5 py-5 text-right whitespace-nowrap text-gray-950",children:b(e.returnRate)}),(0,n.jsx)("td",{className:"px-5 py-5 text-right text-[18px] font-semibold whitespace-nowrap text-gray-950",children:h(e.refundAmount,e.currencyCode)})]},"".concat(e.sku||e.name,"-").concat(e.currencyCode))})]})]})})]}),(0,n.jsxs)("div",{className:"mb-8 overflow-hidden border border-gray-200 bg-white",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1 border-b border-gray-200 px-5 py-4 md:flex-row md:items-center md:justify-between",children:[(0,n.jsx)("h2",{className:"text-[22px] font-semibold text-gray-950",children:"Orders"}),(0,n.jsxs)("div",{className:"text-[15px] text-gray-500",children:[null!=(C=null==O||null==(e=O.orders)?void 0:e.length)?C:0," results"]})]}),(0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{className:"w-full min-w-[860px] text-[16px]",children:[(0,n.jsx)("thead",{className:"bg-gray-50 text-left text-[13px] uppercase text-gray-500",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"px-5 py-4 font-semibold",children:"Order"}),(0,n.jsx)("th",{className:"px-5 py-4",children:(0,n.jsxs)("button",{type:"button",onClick:()=>el("refundedAt"),className:S,children:["Refunded",v("refundedAt"===W.key,W.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4",children:(0,n.jsxs)("button",{type:"button",onClick:()=>el("createdAt"),className:S,children:["Created",v("createdAt"===W.key,W.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4",children:(0,n.jsxs)("button",{type:"button",onClick:()=>
1el("displayFinancialStatus"),className:S,children:["Status",v("displayFinancialStatus"===W.key,W.direction)]})}),(0,n.jsx)("th",{className:"px-5 py-4 text-right",children:(0,n.jsxs)("button",{type:"button",onClick:()=>el("refundAmount"),className:S,children:["Refund Amount",v("refundAmount"===W.key,W.direction)]})})]})}),(0,n.jsxs)("tbody",{children:[E&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{className:"px-5 py-12 text-center text-[17px] text-gray-500",colSpan:5,children:"Loading refund orders..."})}),!E&&0===er.length&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{className:"px-5 py-12 text-center text-[17px] text-gray-500",colSpan:5,children:"No refund orders found for this date range."})}),!E&&er.map(e=>(0,n.jsxs)("tr",{className:"border-t border-gray-100 transition hover:bg-emerald-50/60",children:[(0,n.jsx)("td",{className:"px-5 py-5",children:e.adminUrl?(0,n.jsx)("a",{href:e.adminUrl,target:"_blank",rel:"noreferrer",className:"text-[18px] font-semibold text-gray-950 underline-offset-4 hover:underline",children:e.name}):(0,n.jsx)("span",{className:"text-[18px] font-semibold text-gray-950",children:e.name})}),(0,n.jsx)("td",{className:"px-5 py-5 whitespace-nowrap text-gray-700",children:p(e.refundedAt||e.createdAt)}),(0,n.jsx)("td",{className:"px-5 py-5 whitespace-nowrap text-gray-700",children:p(e.createdAt)}),(0,n.jsx)("td",{className:"px-5 py-5",children:(0,n.jsx)("span",{className:"inline-flex min-w-[132px] justify-center border border-emerald-200 bg-emerald-50 px-3 py-2 text-[13px] font-semibold uppercase text-emerald-800",children:f(e.displayFinancialStatus)})}),(0,n.jsx)("td",{className:"px-5 py-5 text-right text-[18px] font-semibold whitespace-nowrap text-gray-950",children:h(e.refundAmount,e.currencyCode)})]},e.id))]})]})})]})]})};C.getTemplate=d.$F}}]);
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.