PageSourceSearch

https://www.smarty.com/_next/static/chunks/pages/admin-dashboard/a…/transaction-details-df7a7b7037ef6d5d.js

js smarty.com collected 2026-09-24 09:54:17 UTC 21,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92258],{8827:e=>{e.exports={smartyModal:"smartyModal_smartyModal__ZEwn5",smartyModalLightBackground:"smartyModal_smartyModalLightBackground__TdZ6A",smartyModalCloseIcon:"smartyModal_smartyModalCloseIcon__owE8B",smartyModalIcon:"smartyModal_smartyModalIcon__omI9W",smartyModalContainer:"smartyModal_smartyModalContainer___Khri"}},13939:e=>{e.exports={loadMaster4000:"adminLoadMaster4000_loadMaster4000__nszsg",loadMaster4000Overlay:"adminLoadMaster4000_loadMaster4000Overlay__Vz6t5",spinnerImage:"adminLoadMaster4000_spinnerImage__hlD9h",spinForever:"adminLoadMaster4000_spinForever__rW0n8",slowerSpinnerImage:"adminLoadMaster4000_slowerSpinnerImage__ZaMva"}},16824:(e,a,t)=>{"use strict";t.d(a,{Yu:()=>i,qS:()=>s,qc:()=>n});var r=t(27907);let n=async()=>{try{return await (0,r.b3)("*"),!0}catch{return!1}},s=e=>`${e.getMonth()+1}/${e.getDate()}/${e.getFullYear()}`,i=(e,a,t=!1)=>e||a?t?"DELETED PER DSAR REQUEST"===e||"DELETED PER DSR REQUEST"===e||"DELETED PER DSAR REQUEST"===a||"DELETED PER DSR REQUEST"===a?"DELETED PER DSAR REQUEST":`${e?e+" ":""}${a??""}`:`${e??""} ${a??""}`.trim():"Not set"},18208:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin-dashboard/account/transaction-details",function(){return t(59424)}])},22770:(e,a,t)=>{"use strict";t.d(a,{B9:()=>T,CP:()=>N,CS:()=>S,E3:()=>j,LY:()=>_,Lq:()=>E,T0:()=>A,Tk:()=>x,X_:()=>M,Xs:()=>D,bp:()=>P,gF:()=>f,o8:()=>v,w7:()=>C,xn:()=>I,z2:()=>g});var r=t(62139),n=t(10791),s=t(88203),i=t(73019),o=t(43970),l=t(29769),d=t(41013),c=t(49493),h=t(49668),u=t(76934),m=t(6346),y=t(64548),w=t(92956),b=t(83469),p=t(16353);let A=async(e,a)=>{try{let t=await (0,r.iD)(),{data:s}=await (0,n.T0)(e,a,t);return(0,u.s)(y.e6,s)}catch(e){throw(0,m.Ay)(e)}},f=async(e,a)=>{try{let t=await (0,r.iD)(),{data:s}=await (0,n.gF)(e,a,t);return(0,u.s)(y.e6,s)}catch(e){throw(0,m.Ay)(e)}},_=async()=>{try{let e=await (0,r.iD)(),{data:a}=await (0,s.aN)(e);return(0,u.s)(i.P7,a)}catch(e){throw(0,m.Ay)(e)}},g=async(e,a,t,s,i,o,l,d,h,w)=>{try{let m=await (0,r.iD)(),{data:b}=await (0,n.z2)(parseInt(String(e)),parseInt(String(a)),t,(0,c.ob)(Number(s)),i,o,l,parseInt(String(d)),(0,c.ob)(Number(h)),(0,c.ob)(Number(w)),m);return(0,u.s)(y.uL,b).payment_id}catch(e){throw(0,m.Ay)(e)}},x=async e=>{try{let a=await (0,r.iD)(),{data:t}=await (0,n.Tk)(e,a);return{data:(0,u.s)(y.YN,t)}}catch(e){throw(0,m.Ay)(e)}},j=async(e,a)=>{try{let t=await (0,r.iD)();await (0,o.E3)(e,a,t)}catch(e){throw(0,m.Ay)(e)}},v=async(e,a)=>{try{let t=await (0,r.iD)();await (0,o.o8)(e,a,t)}catch(e){throw(0,m.Ay)(e)}},D=async e=>{try{let a=await (0,r.iD)(),{data:t}=await (0,o.MZ)(e,a);return(0,u.s)(w.cq,t).roles}catch(e){throw(0,m.Ay)(e)}},E=async()=>{try{let e=await (0,r.iD)(),{data:a}=await (0,o.Cs)(e),t=(0,u.s)(w.uP,a);if(t?.users?.length>0)return t.users.map(e=>new h.A({id:e?.user_id,roles:e?.roles,email:e?.email_address,firstName:e?.first_name,lastName:e?.last_name,dateAccepted:"0001-01-01T00:00:00Z",disabled:e?.deactivated!=="0001-01-01T00:00:00Z"}));return[]}catch(e){throw(0,m.Ay)(e)}},M=async e=>{try{let a=await (0,r.iD)();await (0,d.Gm)(e,a)}catch(e){throw(0,m.Ay)(e)}},T=async()=>{try{let e=await (0,r.iD)(),{data:a}=await (0,d.qM)(e);return(0,u.s)(b.xd,a).accounts}catch(e){throw(0,m.Ay)(e)}},I=async(e,a)=>{try{let t=await (0,r.iD)();await (0,d.g$)(e,a,t)}catch(e){throw(0,m.Ay)(e)}},P=async e=>{try{let a=await (0,r.iD)();await (0,d.C5)(e,a)}catch(e){throw(0,m.Ay)(e)}},N=async e=>{try{let a=await (0,r.iD)();await (0,l.jO)(e,a)}catch(e){throw(0,m.Ay)(e)}},S=async e=>{try{let a=await (0,r.iD)();await (0,l.Bf)(e,a)}catch(e){throw(0,m.Ay)(e)}},C=async()=>{try{let e=await (0,r.iD)(),{data:a}=await (0,l.fo)(e);return(0,u.s)(p.y0,a).user_ids}catch(e){throw(0,m.Ay)(e)}}},27907:(e,a,t)=>{"use strict";t.d(a,{C5:()=>p,Nn:()=>_,Pn:()=>g,S6:()=>D,UV:()=>v,am:()=>f,b3:()=>x,lb:()=>A,tG:()=>j,vk:()=>b});var r=t(29769),n=t(27337),s=t(19120),i=t(55136),o=t(14570),l=t(6346),d=t(76934),c=t(16353),h=t(62777),u=t(41508),m=t(21542),y=t(57154),w=t(62139);let b=async e=>{try{let a=await (0,w.iD)(),{data:t}=await (0,r.To)(e,a);return(0,d.s)(c.z3,t)}catch(e){throw(0,l.Ay)(e)}},p=async e=>{try{let a=await (0,w.iD)(),{data:t}=await (0,r.pl)(e,a);return(0,d.s)(c.wG,t)}catch(e){throw(0,l.Ay)(e)}},A=async(e,a)=>{try{let t=await (0,w.iD)();await (0,n.Fi)(e,a,t)}catch(e){throw(0,l.Ay)(e)}},f=async(e,a)=>{try{let t=await (0,w.iD)();await (0,n.f1)(e,a,t)}catch(e){throw(0,l.Ay)(e)}},_=async e=>{try{let a=await (0,w.iD)(),t=await (0,n.Nn)(e,a),r=(0,d.s)(h.FE,t.data);return{...t,data:r}}catch(e){throw(0,l.Ay)(e)}},g=async e=>{try{let a=await (0,w.iD)(),t=await (0,n.Pn)(e,a),r=(0,d.s)(h.FE,t.data);return{...t,data:r}}catch(e){throw(0,l.Ay)(e)}},x=async e=>{let{findAccountsByEmail:a}=new o.A;
1try{let t=await (0,w.iD)(),r=await a(e,t);return{data:(0,d.s)(u.Ue,r.data)}}catch(e){throw(0,l.Ay)(e)}},j=async e=>{try{let a=await (0,w.iD)(),{data:t}=await (0,i.E3)(Number(e),a);return(0,d.s)(m.lE,t)}catch(e){throw(0,l.Ay)(e)}},v=async e=>{try{let a=await (0,w.iD)(),{data:t}=await (0,s.r8)(Number(e),a);return(0,d.s)(y.$q,t)}catch(e){throw(0,l.Ay)(e)}},D=async e=>{try{let a=await (0,w.iD)(),{data:t}=await (0,r.Du)(e,a);return(0,d.s)(c.hZ,t)}catch(e){throw(0,l.Ay)(e)}}},37523:e=>{e.exports={transactionInfo:"refundTransactionModal_transactionInfo__LhxOx",transactionDescription:"refundTransactionModal_transactionDescription__tn9sW"}},42669:e=>{e.exports={tooltip:"dateWithTooltip_tooltip__zcBll",tooltipIcon:"dateWithTooltip_tooltipIcon__vp52W",dateContainer:"dateWithTooltip_dateContainer__yLgG1"}},43846:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var r=t(37876),n=t(52226),s=t.n(n);let i=({className:e="",isScrimOpen:a,handleOnClick:t})=>(0,r.jsx)("div",{className:`${s().pageScrim} pageScrim `+(e?e+" ":"")+(a?`${s().active} active`:""),onClick:t})},44902:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var r=t(14232),n=t(67914),s=t(69457),i=t(98227),o=t(22770),l=t(53835);let d=()=>{let e=(0,n.I)({queryKey:["internalRoles"],enabled:s.A.isAuthenticated(),retry:!1,queryFn:async()=>{let e=await (0,i.sh)();return(await (0,o.Xs)(String(e.user_id))).filter(e=>e.startsWith("internal-"))}});return(0,r.useEffect)(()=>{e.error&&(0,l.b$)("We had a problem loading your internal roles, which may limit what actions you can perform. Try refreshing the page, and if the error persists, reach out to frontend.",Array.isArray(e.error)?e.error:(0,l.CP)(e.error.message))},[e.error]),{internalRoles:e.data??[],isLoadingInternalRoles:e.isPending}}},47185:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});var r=t(37876),n=t(14232),s=t(16379),i=t(51786),o=t(76507),l=t(8827),d=t.n(l);
1let c=({children:e,action:a,className:t="",useLightBackground:l=!1,containerClass:c="",hideCloseButton:h=!1,outerContainerAction:u=!0,isAnimating:m=!1,ariaLabelledby:y,ariaLabel:w})=>{let b=(0,o.Ay)({onEscape:a});(0,n.useEffect)(()=>(document.body.classList.add("body--smarty-modal-open"),()=>{document.body.classList.remove("body--smarty-modal-open")}),[]);let p=l?d().smartyModalLightBackground:"";return(0,r.jsx)(s.P.div,{className:`${d().smartyModal} ${t} ${p}`,onClick:u?a:void 0,animate:{backgroundColor:m?"rgba(0,0,0,0)":"rgba(0,0,0,0.77)"},transition:{duration:.6,ease:"easeInOut"},children:(0,r.jsxs)("div",{ref:b,className:`${d().smartyModalContainer} ${c}`,role:"dialog","aria-modal":"true","aria-labelledby":y,"aria-label":w,tabIndex:-1,onClick:e=>e.stopPropagation(),children:[!h&&(0,r.jsx)("button",{type:"button",onClick:a,className:d().smartyModalCloseIcon,"aria-label":"Close modal",children:(0,r.jsx)(i.I,{className:d().smartyModalIcon,icon:"iconXMark-24","aria-hidden":"true"})}),e]})})}},48227:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var r=t(37876),n=t(14232),s=t(13939),i=t.n(s);let o=({isLoading:e,className:a="",classConfig:t={},children:s})=>{let{overlayClass:o}=t,[l,d]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{e&&d(.98>Math.random())},[e]),(0,r.jsx)("div",{className:`${i().loadMaster4000} `+a,children:e?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:`${i().loadMaster4000Overlay} `+o,children:l?(0,r.jsx)("img",{src:"/img/kevin-picture.jpeg",height:100,width:100,alt:"Kevin spinning",className:i().spinnerImage}):(0,r.jsx)("img",{src:"/img/rotisserie-chicken.png",height:500,width:500,alt:"Rotisserie chicken",className:i().slowerSpinnerImage})})}):(0,r.jsx)(r.Fragment,{children:s})})}},48592:(e,a,t)=>{"use strict";t.d(a,{k:()=>r,z:()=>n});let r={contactInfoSaved:"Contact info saved.",changeUsernameEmailSent:"Request to change login email address has been received. Please check your new email address to confirm the change.",switchedAccount:"Successfully switched accounts.",secretKeyRestored:"Secret key restored successfully!",secretKeyDeleted:"Secret key successfully deleted!",embeddedKeyDeleted:"Embedded key successfully deleted!",keySaved:"Key saved successfully!",keyCreated:"Key successfully created!",embeddedKeyRestored:"Embedded key restored successfully!"},n={unableToLoadPrimaryContact:"Unable to load Primary Contact",unknownErrorMessage:"\uD83D\uDE2E Whoops! Something went wrong. Please try again. If the problem persists, contact support.",formHasFieldErrors:"Please correct the errors and resubmit the form.",networkError:"Network error",unhandledFieldError:"Unhandled field error",switchAccountError:"Unable to switch accounts.",permissionsFailedToLoadError:"Some features might be temporarily unavailable. Please try refreshing the page."}},51304:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var r=t(14232),n=t(53835),s=t(48592),i=t(69457),o=t(67914),l=t(2730);let d=(e,a,t=!0)=>{let d=(0,l.A)(t||!e?.id?null:{id:e.id}),c=t||d.canLoadPaymentMethods,h=(0,o.I)({queryKey:["paymentMethods",e?.id],enabled:a&&i.A.isAuthenticated()&&!!c,queryFn:async()=>{if(!e)throw(0,n.CP)(s.z.unknownErrorMessage);return await e.paymentMethods.getPaymentMethods()},retry:!1});return((0,r.useEffect)(()=>{h.error&&(0,n.zP)(h.error,"admin-dashboard")},[h.error]),c)?{paymentMethods:h.data??[],paymentMethodsAreLoaded:!h.isPending,errorLoadingPaymentMethods:h.isError}:{paymentMethods:[],paymentMethodsAreLoaded:!0,errorLoadingPaymentMethods:!0}}},52226:e=>{e.exports={pageScrim:"pageScrim_pageScrim__R_ddH",active:"pageScrim_active__fc9Jw"}},59260:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var r=t(89099),n=t(14232);let s=(e,a)=>{let t=(0,r.useRouter)(),s=(0,n.useRef)(e);(0,n.useEffect)(()=>{if(!t.isReady||s.current===e)return;s.current=e;let r=new URL(window.location.href);e?r.searchParams.set("modal",a):r.searchParams.delete("modal"),window.history.replaceState({},"",r)},[e,t.isReady,a])}},59424:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>M});var r=t(37876),n=t(65124),s=t(93201),i=t(14232),o=t(89099),l=t(37899),d=t(49493),c=t(92646),h=t(4568),u=t
1(80997),m=t(68435),y=t(5467),w=t(43313),b=t(82661),p=t(51304),A=t(53835),f=t(34485),_=t(48227),g=t(44902),x=t(73571),j=t(59260),v=t(75846),D=t.n(v);let E=()=>{let{internalRoles:e,isLoadingInternalRoles:a}=(0,g.A)(),t=(0,x.v$)(e,"canPerformFinancialActions"),{adminAccount:n,isDoneLoadingAdminAccount:v}=(0,i.use)(w.A),{transactions:E,transactionsAreLoaded:M,successLoadingTransactions:T,loadTransactions:I}=(0,f.A)(n,v),{paymentMethods:P,paymentMethodsAreLoaded:N,errorLoadingPaymentMethods:S}=(0,p.A)(n,v),[C,$]=(0,i.useState)(null),[R,k]=(0,i.useState)(!1),[L,F]=(0,i.useState)(!1),[q,U]=(0,i.useState)(!1),[z,O]=(0,i.useState)(null),B=(0,o.useRouter)();return(0,j.A)(L,"refundTransaction"),(0,i.useEffect)(()=>{if(U(!1),B.isReady&&v&&N&&M&&!a){try{let e=E.find(e=>e.id===Number(B.query.transaction_id));if($(e??null),!e)return void U(!0);let a=P.find(a=>a?.payment_method_id===e?.paymentMethodId);O(a??null)}catch(e){(0,A.zP)(e)}U(!0)}},[v,N,M,P,a,B.isReady,B.query]),(0,r.jsxs)(s.A,{children:[(0,r.jsx)("div",{className:D().detailsLink,children:(0,r.jsx)(h.A,{href:`/admin-dashboard/account/transactions?account_id=${n.id}`,arrowFirst:!0,children:"All Transactions"})}),(0,r.jsx)(l.A,{cardTitle:"Transaction Details",hasBorder:!1,children:(0,r.jsx)(_.A,{isLoading:!q,className:D().accountContent,children:C?.id?(0,r.jsxs)(r.Fragment,{children:[S&&(0,r.jsxs)("div",{className:D().nestedErrorLoadingInfo,children:[(0,r.jsx)("div",{children:"** There was an error loading your payment methods, so information pertaining to credit cards may not display."}),(0,r.jsx)("div",{children:"If this transaction was not a credit card, you can ignore this message. If not, please refresh the page, and if the error persists, reach out to frontend."})]}),t&&!C.isVoided&&(0,r.jsx)(c.A,{options:[{label:"Refund/Void Transaction",action:()=>{F(!0),k(!1)}}],isOpen:R,setIsOpen:k,children:"Actions"}),(0,r.jsxs)(m.AC,{className:D().verticalTable,isAdminDashTable:!0,children:[(0,r.jsx)(m.Am,{children:"Transaction ID"}),(0,r.jsx)(m.nA,{children:C.id}),(0,r.jsx)(m.Am,{children:"Date"}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(u.A,{date:C.createdDate})}),(0,r.jsx)(m.Am,{children:"Amount"}),(0,r.jsx)(m.nA,{children:(0,d.tA)(C.amountInCents/100)}),0!==C.unitAmountInCents&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Am,{children:"Unit Amount Refunded"}),(0,r.jsx)(m.nA,{children:(0,d.tA)(-1*C.unitAmountInCents/100)})]}),0!==C.taxAmountInCents&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Am,{children:"Tax Amount Refunded"}),(0,r.jsx)(m.nA,{children:(0,d.tA)(-1*C.taxAmountInCents/100)})]}),(0,r.jsx)(m.Am,{children:"Type"}),(0,r.jsx)(m.nA,{children:C.paymentForm}),(0,r.jsx)(m.Am,{children:"Status"}),(0,r.jsxs)(m.nA,{children:[(0,r.jsx)("div",{children:C.gatewayResponse}),C.gatewayMessage&&"Approved"!==C.gatewayMessage&&(0,r.jsx)("div",{className:D().deactivatedMessage,children:C.gatewayMessage})]}),(0,r.jsx)(m.Am,{children:"Voided"}),(0,r.jsx)(m.nA,{children:C.isVoided?"Yes":"No"}),(0,r.jsx)(m.Am,{children:"Order ID"}),(0,r.jsx)(m.nA,{children:(0,r.jsx)(y.A,{href:`/admin-dashboard/account/order-details?account_id=${n?.id}&order_id=${C.orderId}`,children:C.orderId})}),z&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Am,{children:"Payment Method"}),(0,r.jsx)(m.nA,{children:(0,r.jsxs)(y.A,{href:`/admin-dashboard/account/payment-method-details?account_id=${n?.id}&payment_method_id=${C.paymentMethodId}`,children:[z.mask," (",z.network,")"]})})]})]})]}):T?(0,r.jsx)("div",{className:D().noTableData,children:"The transaction ID you have provided does not correspond to a transaction. Please check the transaction ID, and if the problem persists, reach out to frontend."}):(0,r.jsx)("div",{className:D().noTableData,children:"There was an error loading your transactions. Please refresh the page, and if the error persists, reach out to frontend."})})}),L&&C&&(0,r.jsx)(b.A,{transactions:E,transaction:C,setTransaction:$,setModalIsOpen:F,loadTransactions:I})]})},M=()=>(0,r.jsx)(n.A,{children:(0,r.jsx)(E,{})})},65124:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var r=t(37876),n=t(43313),s=t(14232),i=t(96735),o=t(89099),l=t(53835);let d=({children:e})=>{let{adminAccount:a,setAdminAccount:t,isDoneLoadingAdminAccount:d}=(()=>
1{let e=(0,o.useRouter)(),[a,t]=(0,s.useState)(new i.A),[r,n]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{(()=>{if(!e.isReady)return;n(!1);let a=Number(e.query?.account_id);a||(0,l.zP)((0,l.CP)("The account ID is missing and must be provided"),"admin-dashboard"),isNaN(a)||t(new i.A(a)),n(!0)})()},[e.isReady,e.asPath]),{adminAccount:a,setAdminAccount:t,isDoneLoadingAdminAccount:r}})();return(0,r.jsx)(n.A,{value:{adminAccount:a,setAdminAccount:t,isDoneLoadingAdminAccount:d},children:e})}},67689:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});var r=t(14232);let n=e=>(0,r.useMemo)(()=>{if(!e)return"";try{let a=new Date(e);if(isNaN(a.getTime()))return"";return a.toLocaleString("en-US",{year:"numeric",month:"short",day:"2-digit",hour:"numeric",minute:"2-digit",timeZoneName:"short",hour12:!0})}catch(e){return console.error("Error formatting time in useFormattedTime:",e),""}},[e])},68435:(e,a,t)=>{"use strict";t.d(a,{A0:()=>o,AC:()=>i,Am:()=>l,nA:()=>d});var r=t(37876),n=t(68483),s=t.n(n);let i=({className:e="",children:a,isAdminDashTable:t=!1,style:n={}})=>(0,r.jsx)("div",{role:"table",className:`${s().tableWrapper} ${e} ${t?s().adminDashTable:""}`,style:n,children:a}),o=({className:e="",children:a,onClick:t=()=>{},ariaSort:n="none"})=>(0,r.jsx)("div",{role:"columnheader","aria-sort":n,tabIndex:0,className:`${s().tableHeader} ${s().tableCell} ${e}`,onClick:t,onKeyDown:e=>("Enter"===e.key||" "===e.key)&&t(e),children:a}),l=({className:e="",children:a})=>(0,r.jsx)("div",{role:"rowheader",className:`${s().tableHorizontalHeader} ${s().tableCell} ${e}`,children:a}),d=({className:e="",children:a,onClick:t})=>t?(0,r.jsx)("div",{role:"cell",className:`${s().tableCell} ${e}`,children:(0,r.jsx)("button",{type:"button",className:s().tableCellButton,onClick:t,children:a})}):(0,r.jsx)("div",{role:"cell",className:`${s().tableCell} ${e}`,children:a})},68483:e=>{e.exports={tableCellButton:"table_tableCellButton__SELpa",tableWrapper:"table_tableWrapper__xiVq5",adminDashTable:"table_adminDashTable__rlIr8",tableHeader:"table_tableHeader__lYGQu",tableHorizontalHeader:"table_tableHorizontalHeader__CmO4y",tableCell:"table_tableCell__LUGkt"}},73571:(e,a,t)=>{"use strict";t.d(a,{G2:()=>s,dl:()=>n,gU:()=>r,v$:()=>o});let r=e=>[{href:`/admin-dashboard/account?account_id=${e}`,label:"Account Info"},{href:`/admin-dashboard/account/contacts?account_id=${e}`,label:"Team"},{href:`/admin-dashboard/account/payment-methods?account_id=${e}`,label:"Payment Methods"},{href:`/admin-dashboard/account/transactions?account_id=${e}`,label:"Transactions"},{href:`/admin-dashboard/account/licenses?account_id=${e}`,label:"Subscriptions"},{href:`/admin-dashboard/account/reports?account_id=${e}`,label:"Reports"},{href:`/admin-dashboard/account/orders?account_id=${e}`,label:"Orders"},{href:`/admin-dashboard/account/keys?account_id=${e}`,label:"Keys"},{href:`/admin-dashboard/account/audit-logs?account_id=${e}`,label:"Audit Logs"}],n=()=>[{href:"/admin-dashboard",label:"Search",requiredPermissions:["hasDashboardAccess"]},{href:"/admin-dashboard/favorited-accounts",label:"Favorited Accounts",requiredPermissions:["hasDashboardAccess"]},{href:"/admin-dashboard/employee-flashcards",label:"Employee Flashcards",requiredPermissions:["hasDashboardAccess"]},{href:"/admin-dashboard/clear-security-rate-limits",label:"Clear Security Rate Limits",requiredPermissions:["canPerformGeneralActions"],roles:["internal-finance","internal-plan-admin","internal-plan-editor","internal-root","internal-low","internal-subscription-editor"]},{href:"/admin-dashboard/set-api-trace",label:"Set API Trace",requiredPermissions:["canPerformGeneralActions"],roles:["internal-finance","internal-plan-admin","internal-plan-editor","internal-root","internal-low","internal-subscription-editor"]},{href:"/admin-dashboard/financial-tools",label:"Financial Tools",requiredPermissions:["canPerformGeneralActions"],roles:["internal-finance","internal-root"]},{href:"/admin-dashboard/internal-users",label:"Internal User Management",requiredPermissions:["isRootUser"],roles:["internal-root"]},{href:"/admin-dashboard/inventory-manager",label:"Inventory Manager",requiredPermissions:["hasDashboardAccess"]},{href:"/admin-dashboard/streamed-reports",label:"Streamed Reports",requiredPermissions:["canPerformGeneralActions"],roles:["internal-finance","internal-plan-admin","internal-plan-editor","internal-root","internal-low","internal-subscription-editor"]}],s=(e,a)=>e.filter(e=>!e.roles?.length||e.roles.some(e=>a.includes(e))),i={canEditSubscriptions:["internal-subscription-editor","internal-root"],canPerformFinancialActions:["internal-finance","internal-root"],canPerformGeneralActions:["internal-low","internal-finance","internal-subscription-editor","internal-plan-editor","internal-plan-admin","internal-root"],canDoInventory:["internal-root","internal-plan-editor","internal-plan-admin"],isRootUser:["internal-root"],hasDashboardAccess:["internal-low","internal-finance","internal-subscription-editor","internal-plan-editor","internal-plan-admin","internal-root","internal-read-only"]},o=(e,a)=>{let t=i[a];return e.some(e=>t.includes(e))}},80997:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var r=t(37876),n=t(16824),s=t(78098),i=t(67689),o=t(42669),l=t.n(o);let d=({date:e})=>{let a=new Date(null===e?0:e??NaN),t=(0,n.qS)(a),o=(0,i.A)(e);return(0,r.jsxs)("div",{className:l().dateContainer,children:[t,(0,r.jsx)(s.A,{className:l().tooltipIcon,openTooltipClassName:l().tooltip,children:o})]})}},82661:(e,a,t)=>{"use strict";t.d(a,{A:()=>w});var r=t(37876),n=t(14232),s=t(47185),i=t(37899),o=t(57777),l=t(53835),d=t(49493),c=t(91196),h=t(88992),u=t(43313),m=t(37523),y=t.n(m);let w=({transaction:e,setTransaction:a,setModalIsOpen:t,transactions:m,loadTransactions:w})=>{let{adminAccount:b}=(0,n.use)(u.A),p={amount:(0,d.tA)((0,d.s7)(e.amountInCents))},A=(0,h.mN)({mode:"onBlur",defaultValues:p}),f=async(t,r,n,s)=>{try{let i=await b.getAccessToken();await e.refundTransaction(t,r,n,s,i),await w(),A.reset(),a(m.find(a=>a.id===e.id)??null),_(),(0,o.tP)("Transaction successfully refunded.")}catch(e){(0,l.zP)(e)}},_=()=>{A.reset(),t(!1)};
1return(0,r.jsx)(s.A,{action:_,children:(0,r.jsxs)(i.A,{cardTitle:"Refund/Void Transaction",children:[(0,r.jsxs)("div",{className:y().transactionInfo,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Account ID:"})," ",b.id]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Transaction ID:"})," ",e.id]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Total transaction amount:"})," ",(0,d.tA)((0,d.s7)(e.amountInCents))]})]}),(0,r.jsxs)("div",{className:y().transactionDescription,children:[(0,r.jsx)("em",{children:"Voids the whole transaction if the transaction hasn't been processed."}),(0,r.jsx)("em",{children:"Refunds the transaction (with the amount specified) if the transaction has been processed."})]}),(0,r.jsx)(c.A,{hookForm:A,transaction:e,onSubmit:f})]})})}}},e=>{e.O(0,[45011,96735,38464,90636,46593,38792],()=>e(e.s=18208)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.