PageSourceSearch

https://platform.ecrypt.com/main-host/js/vendor-ecrypt.4d92fa93.chunk.js?v=0.0.2793674972

js ecrypt.com collected 2026-09-24 08:59:50 UTC 295,576 bytes, 1 lines download raw bytes

1(self.webpackChunkmain_host=self.webpackChunkmain_host||[]).push([[949],{8385(e,t,a){function l(){return"undefined"!=typeof indexedDB}function r(){return new Promise((e,t)=>{const a=indexedDB.open("ecrypt-auth",1);a.onupgradeneeded=()=>{const e=a.result;e.objectStoreNames.contains(A)||e.createObjectStore(A)},a.onsuccess=()=>e(a.result),a.onerror=()=>t(a.error)})}async function n(){if(P=null,l())try{const e=await r();try{await new Promise((t,a)=>{const l=e.transaction(A,"readwrite");l.objectStore(A).delete(S),l.oncomplete=()=>t(),l.onerror=()=>a(l.error)})}finally{e.close()}}catch{}}function s(){var e;if(null===(e=globalThis.crypto)||void 0===e||!e.subtle)throw new Error("DPoP requires the Web Crypto API. Use AuthAPI in a secure browser context.");return globalThis.crypto}function i(e){const t=e instanceof Uint8Array?e:new Uint8Array(e);let a="";for(const l of t)a+=String.fromCharCode(l);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/={0,4}$/u,"")}function o(e){return i(V.encode(JSON.stringify(e)))}function c(){const e=s();if(e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);return e.getRandomValues(t),i(t)}function d(e){const t=void 0!==globalThis.location?new URL(e,globalThis.location.origin):new URL(e);return t.hash="",t.search="",t.toString()}async function u(e){return i(await s().subtle.digest("SHA-256",V.encode(e)))}async function h({accessToken:e,method:t,url:a}){const n=await async function(){return P||(P=async function(){const e=await async function(){if(!l())return null;const e=await r();try{return await new Promise((t,a)=>{const l=e.transaction(A,"readonly").objectStore(A).get(S);l.onsuccess=()=>t(l.result??null),l.onerror=()=>a(l.error)})}finally{e.close()}}().catch(()=>null);if(e)return e;const t=await s().subtle.generateKey(N,!1,["sign","verify"]);return await async function(e){if(!l())return;const t=await r();try{await new Promise((a,l)=>{const r=t.transaction(A,"readwrite");r.objectStore(A).put(e,S),r.oncomplete=()=>a(),r.onerror=()=>l(r.error)})}finally{t.close()}}
1(t).catch(()=>{}),t}().catch(e=>{throw P=null,e})),P}();return async function(e,t,a){const l=`${o(e)}.${o(t)}`;return`${l}.${i(await s().subtle.sign(k,a,V.encode(l)))}`}({alg:"ES256",jwk:function(e){const{crv:t,kty:a,x:l,y:r}=e;return{crv:t,kty:a,x:l,y:r}}(await s().subtle.exportKey("jwk",n.publicKey)),typ:"dpop+jwt"},{ath:await u(e),htm:t.toUpperCase(),htu:d(a),iat:Math.floor(Date.now()/1e3),jti:c()},n.privateKey)}function p(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function m(e){const t=e.match(/^Bearer\s+([\w\-._~+/]+=*)$/i);return(null==t?void 0:t[1])??e}async function f({url:e,options:t={},useAWSAuth:a=!1,useDPoP:l=!0}){return async function(e,t={},a=!1,l=!0){let r="";if(a){const e=await(async()=>{try{const{accessToken:e,idToken:t}=(await(0,C.fetchAuthSession)()).tokens??{};return{accessToken:e,idToken:t}}catch(e){}})();var n;e&&(r=(null===(n=e.idToken)||void 0===n?void 0:n.toString())||"")}const{requestBody:s,httpMethod:i="get",headers:o}=t,c=a&&r?`Bearer ${r}`:function(e={}){const t=Object.keys(e).find(e=>"authorization"===e.toLowerCase());return t?e[t]:""}(o),d={...o??{},...c?{Authorization:c}:{}};l&&c&&(d.DPoP=await h({accessToken:m(c),method:i,url:e}));let u=e;if(t.queryKey&&Bt(t.queryKey)){const e=u.includes("?")?"&":"?";u=`${u}${e}afterCreate=true`}return Zt({url:u,method:i,requestBody:s,headersWithAuth:d,options:t})}(e,t,a,l)}function v(e){const t={};return e.forEach((e,a)=>{t[a]=e}),t}function g({searchParams:e}){const t=e.get("merchantId")||localStorage.getItem("merchantId")||"",a=sessionStorage.getItem("reportingLocations")||"[]";let l=[];try{const e=JSON.parse(a);l="string"==typeof e?JSON.parse(e):e}catch{l=[]}let r=t;return(l??[]).length>0&&(r=l.join(",")),{merchantId:t,reportingLocations:l,apiMerchantId:r}}function x(e){try{var t,a;return(null===(a=JSON.parse(localStorage.getItem("merchantDetails")||"{}")[(null==e||null===(t=e.split(","))||void 0===t?void 0:t[0])||e])||void 0===a?void 0:a.country)??""}catch{return""}}function b(e){return"string"==typeof e&&0!==e.length&&e.split(",").every(e=>Oa.test(e))}function j(e){if(!b(e))throw new Error("Invalid merchantId format");return e}function _(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e,t){if(!t)return e.label;const a=new RegExp(`(${_(t)})`,"ig"),l=e.label.split(a);return(0,I.jsx)("span",{children:l.map((e,a)=>new RegExp(_(t),"i").test(e)?(0,I.jsx)("span",{className:"highlighted-letter",children:e},`highlighted-letter-${a}-${e}`):e)})}function M(e,t,a,l,r,n,s,i){const o=[...t];let c=function(e,t,a){const l=_(e.trim());if(""===l)return t;const r=new RegExp(l,"i");return a?t.filter(e=>r.test(e.label)):t}(e,o,a||s);if(i||(c=function(e,t){const a=t.trim(),l=a.toLowerCase(),r=Number(a),n=!isNaN(r);return e.sort((e,t)=>{const a=e.label.trim(),s=t.label.trim(),i=a.toLowerCase(),o=s.toLowerCase(),c=Number(a),d=Number(s),u=!isNaN(c),h=!isNaN(d);if(i===l&&o!==l)return-1;if(o===l&&i!==l)return 1;const p=i.startsWith(l),m=o.startsWith(l);return p&&!m?-1:!p&&m?1:n&&u&&h?Math.abs(c-r)-Math.abs(d-r):n&&u&&!h?-1:n&&!u&&h?1:i.localeCompare(o,void 0,{numeric:!0})})}(c,e)),a){var d;const e=Array.isArray(null===(d=l.get(n))||void 0===d?void 0:d.inputValue)?l.get(n).inputValue:[],t=new Set(e.map(e=>String((null==e?void 0:e.value)??"").toLowerCase()));c=c.filter(e=>{const a=String(e.value).toLowerCase();return!t.has(a)})}return c.map(t=>({...t,displayLabel:r(t,e),isHighlighted:!1}))}a.r(t),a.d(t,{Amplify:()=>Ot.Amplify,App:()=>Xr,AuthAPI:()=>f,AuthenticatorProvider:()=>ka,Autocomplete:()=>Hl,BrowserRouter:()=>$.BrowserRouter,Button:()=>Ka,CCIcons:()=>y,CheckboxGroup:()=>ul,CheckboxSingle:()=>pl,ColorPicker:()=>zr,ColorPickerInput:()=>cl,CopyButton:()=>Cr,CreditCard:()=>Ul,CreditCardIcon:()=>ua,DateIcon:()=>ke,DatePicker:()=>Lt,Dropdown:()=>al,FilterButton:()=>Xa,FilterCard:()=>Ja,FilterPanel:()=>sl,L2L3:()=>fa,Link:()=>$.Link,MemoryRouter:()=>$.MemoryRouter,MobilePricingBreakdown:()=>Mr,Modal:()=>or,MultipleSelect:()=>fl,ProcessingLoader:()=>Kl,Provider:()=>Oe.Provider,RadioGroup:()=>vl,ReactQueryClientProvider:()=>Na,ReceiptView:()=>ir,ResultsModal:()=>ur,Route:()=>$.Route,Router:()=>$.BrowserRouter,Routes:()=>$.Routes,ScrollMenu:()=>$t,Skeleton:()=>Il,Table:()=>Dl,TableFilter:()=>It,Tabs:()=>Rl,TaxAndSurchargeFields:()=>zl,TextArea:()=>El,TextField:()=>_e,Toaster:()=>Tt,ToggleSwitch:()=>Ll,Tooltip:()=>ll,TransactionCardList:()=>xr,assertMerchantId:()=>j,atomWithStorage:()=>He.tG,buildRequestBodyFromFilters:()=>se,capitalizeName:()=>Ba,clearDPoPKeyPair:()=>n,confirmResetPassword:()=>C.confirmResetPassword,confirmSignIn:()=>C.confirmSignIn,consumeFreshAfterCreate:()=>Bt,createJSONStorage:()=>He.KU,createRoot:()=>_a.createRoot,createStore:()=>
1Oe.createStore,creditCardBlackMap:()=>Ta,creditCardMap:()=>Pa,dateOrdinal:()=>Sa,dateRangeMap:()=>Q,default:()=>Xr,fetchAuthSession:()=>C.fetchAuthSession,formatDateWithTimezone:()=>le,formatDatesWithTimezone:()=>X,formattedCurrency:()=>Aa,generateDPoPProof:()=>h,getActionUrlParams:()=>Va,getCCIcon:()=>Ia,getCardExpirationStatus:()=>re,getCardType:()=>Ra,getCardTypeFromWallet:()=>Fa,getCurrentUser:()=>C.getCurrentUser,getMerchantCountry:()=>x,getMerchantLocation:()=>g,getPricingBreakdown:()=>Ga,isValidMerchantId:()=>b,jotaiStorageMethods:()=>Ze,markFreshAfterCreate:()=>Ht,provinces:()=>ve,queryClient:()=>Ca,resetPassword:()=>C.resetPassword,setFilterUrlParams:()=>La,signIn:()=>C.signIn,signOut:()=>C.signOut,states:()=>fe,toCamelCase:()=>Za,toast:()=>Pt,updateMenus:()=>Ha,updatePassword:()=>C.updatePassword,useAtom:()=>Oe.useAtom,useAuthenticator:()=>wa.useAuthenticator,useBackdropOpen:()=>gt,useCustomerId:()=>bt,useDashboardDateFilter:()=>tt,useDebounce:()=>Sr,useDrag:()=>Nr,useFakeData:()=>Xe,useGetCurrentOpenedMenu:()=>Qe,useLoadDynamicRemote:()=>Ar,useLocation:()=>$.useLocation,useNavMenuOpen:()=>Ye,useNavigate:()=>$.useNavigate,useParentIframeScrollHandler:()=>Dr,usePopoutMenuOpen:()=>pt,usePostMessage:()=>Pr,usePricingSummaryData:()=>nt,useReportingLocations:()=>it,useSafeTimeout:()=>Tr,useSearchParams:()=>$.useSearchParams,useSetSelectedMenu:()=>ut,useSetSubNavTab:()=>ft,useSetTransactionId:()=>ct,useShowInvoicesMenu:()=>qe,useShowTransactionMenu:()=>lt,useSortingStaleTime:()=>Kr,useTableFilterState:()=>Ml,useTheme:()=>Ue,useWindowDimensions:()=>we});var y={};a.r(y),a.d(y,{AmericanExpress:()=>Ut,AmericanExpressBlack:()=>Kt,ArrowDown:()=>B,ArrowUp:()=>ja,BankCheck:()=>da,Check:()=>ma,CloseIcon:()=>ha,CreditCardIcon:()=>ua,DateIcon:()=>ke,Default:()=>ia,DeleteIcon:()=>pa,DinersClub:()=>oa,DinersClubBlack:()=>ca,Discover:()=>ta,DiscoverBlack:()=>aa,EcryptLogoWithText:()=>xa,FilterChipDeleteIcon:()=>H,FilterIcon:()=>F,InfoIcon:()=>ga,JCB:()=>la,JCBBlack:()=>ra,L2L3:()=>fa,Maestro:()=>na,MaestroBlack:()=>sa,MasterCard:()=>Xt,MasterCardBlack:()=>Jt,PaginationArrowLeft:()=>Le,PaginationArrowRight:()=>Ee,PrintIcon:()=>ba,ProcessingLoaderLogo:()=>va,UnionPay:()=>Yt,UnionPayBlack:()=>zt,Visa:()=>Qt,VisaBlack:()=>ea});var C=a(27771);const N={name:"ECDSA",namedCurve:"P-256"},k={name:"ECDSA",hash:"SHA-256"},V=new TextEncoder,A="dpop-keys",S="current";let P=null;var T=a(44393),D=a.n(T),E=a(34268),L=a.n(E),R=a(82337),$=a(45397),I=a(91987);const F=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.829,height:14,viewBox:"0 0 12.829 14",...e,children:(0,I.jsx)("path",{id:"filter_2_","data-name":"filter (2)",d:"M8.584,14a.583.583,0,0,1-.35-.117L5.9,12.133a.583.583,0,0,1-.233-.467V8.388l-4.093-4.6A2.275,2.275,0,0,1,3.276,0h8.283a2.275,2.275,0,0,1,1.7,3.785l-4.091,4.6v5.028A.583.583,0,0,1,8.584,14Zm-1.75-2.625L8,12.25V8.167a.583.583,0,0,1,.148-.387l4.24-4.77a1.108,1.108,0,0,0-.829-1.843H3.276a1.108,1.108,0,0,0-.829,1.842l4.24,4.77a.583.583,0,0,1,.147.387Z",transform:"translate(-1.002)"})}),H=e=>(0,I.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,I.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})}),B=e=>(0,I.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,I.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Z=(e,t)=>{if(!e)return"";const a=e.replace(/([A-Z])/g," $1").trim();return t?a.replace(/\b\w/g,e=>e.toUpperCase()):a.toLowerCase()},O=(e,t)=>{const a=null==e?void 0:e[t];if(null!=a)return"object"==typeof a&&!Array.isArray(a)&&"type"in a?a.type:a},G=(e,t)=>{const a=null==e?void 0:e[t];if(null!=a)return"object"==typeof a&&!Array.isArray(a)&&"label"in a?a.label:void 0},q=(e,t)=>{const a=O(e,t);return"string"==typeof a&&["date","futureDate","pastDate"].includes(a)},W=e=>e.replace(/[^a-zA-Z0-9\s]/g,"").split(/\s+/).map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(""),Y=(e,t)=>{const a=G(e,t);return a?W(a):t},z=(e,t)=>{if(t in e)return t;for(const[a,l]of Object.entries(e))if("object"==typeof l&&!Array.isArray(l)&&"label"in l&&l.label&&W(l.label)===t)return a;return t},U=(e,t)=>{const a=null==e?void 0:e[t];return null==a?[]:"object"==typeof a&&!Array.isArray(a)&&"exclusiveWith"in a&&Array.isArray(a.exclusiveWith)?a.exclusiveWith:[]},K=(e,t)=>{const a=new Set;for(const l of t){const t=U(e,l);for(const e of t)a.add(e)}return a};D().extend(L());const X=(e,t)=>{var a;const l=localStorage.getItem("merchantId");if(!l)return{formattedStartDate:"",formattedEndDate:""};const r=localStorage.getItem("merchantDetails");let n={};try{n=r?JSON.parse(r):{}}catch{try{localStorage.removeItem("merchantDetails")}catch{}}const s=((null===(a=n[l])||void 0===a?void 0:a.timezoneOffset)??0)/60,i=D().utc(e).startOf("day").subtract(s,"hour"),o=D().utc(t).endOf("day").subtract(s,"hour");return{formattedStartDate:i.isValid()?i.toISOString():"",formattedEndDate:o.isValid()?o.toISOString():""}};D().extend(L());const J=()=>{const e=(()=>{try{var e;const t=localStorage.getItem("merchantId");if(!t)return 0;const a=localStorage.getItem("merchantDetails");return a?(null===(e=JSON.parse(a)[t])||void 0===e?void 0:e.timezoneOffset)??0:0}catch{return 0}})(),t=D().utc().add(e,"minute");return new Date(t.year(),t.month(),t.date(),0,0,0,0)},Q={lastSevenDays:()=>{const e=J(),t=new Date(e);return t.setDate(e.getDate()-6),isNaN(t.getTime())||isNaN(e.getTime())?{dates:[null,null],formattedDate:[null,null]}:{dates:[t,e],formattedDate:[D()(t).format("MM/DD/YYYY"),D()(e).format("MM/DD/YYYY")]}},today:()=>{const e=J(),t=new Date(e),a=new Date(e);return t.setHours(0,0,0,0),a.setHours(23,59,59,999),isNaN(t.getTime())||isNaN(a.getTime())?{dates:[null,null],formattedDate:[null,null]}:{dates:[t,a],formattedDate:[D()(t).format("MM/DD/YYYY"),D()(a).format("MM/DD/YYYY")]}}
1,lastTwoWeeks:()=>{const e=J(),t=new Date(e);return t.setDate(e.getDate()-13),isNaN(t.getTime())||isNaN(e.getTime())?{dates:[null,null],formattedDate:[null,null]}:{dates:[t,e],formattedDate:[D()(t).format("MM/DD/YYYY"),D()(e).format("MM/DD/YYYY")]}},lastMonth:()=>{const e=J(),t=new Date(e);t.setDate(0);const a=new Date(t);return a.setDate(1),isNaN(a.getTime())||isNaN(t.getTime())?{dates:[null,null],formattedDate:[null,null]}:{dates:[a,t],formattedDate:[D()(a).format("MM/DD/YYYY"),D()(t).format("MM/DD/YYYY")]}},lastWeek:()=>{const e=J(),t=e.getDay(),a=new Date(e);a.setDate(e.getDate()-t-1),a.setHours(23,59,59,999);const l=new Date(a);return l.setDate(a.getDate()-6),l.setHours(0,0,0,0),isNaN(l.getTime())||isNaN(a.getTime())?{dates:[null,null],formattedDate:[null,null]}:{dates:[l,a],formattedDate:[D()(l).format("MM/DD/YYYY"),D()(a).format("MM/DD/YYYY")]}},nextSevenDays:()=>{const e=J(),t=new Date(e);t.setHours(0,0,0,0);const a=new Date(t);return a.setDate(t.getDate()+6),a.setHours(23,59,59,999),isNaN(t.getTime())||isNaN(a.getTime())?{dates:[null,null],formattedDate:[null,null]}:{dates:[t,a],formattedDate:[D()(t).format("MM/DD/YYYY"),D()(a).format("MM/DD/YYYY")]}}};var ee=a(21707),te=a.n(ee);D().extend(te());const ae=(e,t=!1)=>{if(!e||"string"!=typeof e)return!1;const a=e.replace(/\//g,"-");if(a.includes("T")&&a.endsWith("Z")){const e=D()(a);return!(!e.isValid()||!t&&e.isAfter(D()(),"day"))}if(10!==a.length)return!1;const l=D()(a,["YYYY-MM-DD","MM-DD-YYYY"],!0);return!(!l.isValid()||!t&&l.isAfter(D()(),"day"))};D().extend(L());const le=e=>{var t;const a=localStorage.getItem("merchantId");if(!a)return"";const l=localStorage.getItem("merchantDetails");let r={};try{r=l?JSON.parse(l):{}}catch{try{localStorage.removeItem("merchantDetails")}catch{}}const n=((null===(t=r[a])||void 0===t?void 0:t.timezoneOffset)??0)/60;return D().utc(e).add(n,"hour").format("YYYY-MM-DDTHH:mm:ss")};D().extend(L());const re=e=>{const[t,a]=e.split("/"),l=parseInt(t,10),r=2e3+parseInt(a,10),n=(()=>{var e;const t=localStorage.getItem("merchantId");if(!t)return 0;const a=localStorage.getItem("merchantDetails");let l={};try{l=a?JSON.parse(a):{}}catch{try{localStorage.removeItem("merchantDetails")}catch{}}return(null===(e=l[t])||void 0===e?void 0:e.timezoneOffset)??0})()/60,s=D().utc().add(n,"hour"),i=s.month()+1,o=s.year();return o>r||o===r&&i>l?"expired":o!==r||i!==l&&i!==l-1?"valid":"expiring"};D().extend(L());const ne={contains:"Contains",equals:"Equals","starts with":"StartsWith","ends with":"EndsWith","greater than":"GreaterThan","less than":"LessThan","greater than or equal to":"GreaterThanOrEqual","less than or equal to":"LessThanOrEqual",range:"Range"},se=({filterParams:e,filterDictionary:t})=>{const a=Object.values(t).reduce((e,t)=>{const a=t.toLowerCase().includes("date");return e[t]=a?{}:[],e},{}),l=(null==e?void 0:e.items)??[];return 0===l.length?a:l.reduce((e,{field:a,operator:l,value:r})=>{const n=t[a],s=null==ne?void 0:ne[l];if(!n||!s)return e;if(n.toLowerCase().includes("date")){const{formattedStartDate:t,formattedEndDate:a}=X(null==r?void 0:r[0],null==r?void 0:r[1]);e[n]={startDate:t,endDate:a}}else e[n].push({operation:s,value:r??"string"});return e},a)};var ie="logicOperator__9n3iF",oe="chipContainer__cNSZP",ce="filterChip__og5j0",de="chipLabel__BGYF4",ue="chipDeleteIcon__WVOfF";const he=({index:e,value:t,field:a,label:l,filterSelections:r,canBeDeleted:n=!0,setFilterSelections:s,operator:i,pageFilters:o})=>{const[,c]=(0,$.useSearchParams)(),d=q(o,a);return t&&a?(0,I.jsxs)(I.Fragment,{children:[0!==e&&(0,I.jsx)("span",{className:ie,children:null==r?void 0:r.logicOperator}),(0,I.jsx)("div",{className:oe,children:(0,I.jsxs)("div",{className:ce,children:[(0,I.jsx)("span",{className:de,children:((e,t)=>{let a=e;if(d){if(null===(null==e?void 0:e[0])&&null===(null==e?void 0:e[1]))return"";const[t,l]=e;a=D()(t).format("MM/DD/YYYY")+" - "+D()(l).format("MM/DD/YYYY")}else"object"==typeof e&&!Array.isArray(e)&&null!==e&&"label"in e&&(a=e.label);return t+": "+a})(t,l)}),(0,I.jsx)("div",{className:ue,onClick:n?()=>{const e=null==r?void 0:r.items;let l=t;"object"==typeof t&&!Array.isArray(t)&&null!==t&&"value"in t&&(l=t.value);const n=null==e?void 0:e.filter(e=>{let r=null==e?void 0:e.value;return"object"==typeof(null==e?void 0:e.value)&&!Array.isArray(null==e?void 0:e.value)&&null!==(null==e?void 0:e.value)&&"value"in e.value&&(r=e.value.value),Array.isArray(null==e?void 0:e.value)?(n=null==e?void 0:e.value,s=t,!(n.length===s.length&&n.every((e,t)=>new Date(e).getTime()===new Date(s[t]).getTime()))):!((null==e?void 0:e.field)===a&&r===l);var n,s});s(e=>({...e,items:n})),c(e=>{const t=new URLSearchParams(e),r=Y(o,a);return q(o,a)?t.delete(`${r}-${i}`):((e,t,a)=>{const l=e.get(t);if(!l)return;const r=l.split("~").filter(e=>e!==a);0===r.length?e.delete(t):e.set(t,r.join("~"))})(t,`${r}-${i}`,l),((e,t)=>{Array.from(e.keys()).filter(e=>{var a;return null===(a=Object.keys(t))||void 0===a?void 0:a.some(t=>e.startsWith(t))}).length<=1&&e.has("logicOperator")&&e.delete("logicOperator")})(t,o),t})}:()=>null,children:n&&(0,I.jsx)(H,{})})]})})]}):null};var pe="input__SPywc";const me=e=>{const t=e.target.value,a=t.trim().length>0;return{value:t,isValid:a,errorMessage:a?"":"This field is required"}},fe=[{value:"AL",label:"AL"},{value:"AK",label:"AK"},{value:"AS",label:"AS"},{value:"AZ",label:"AZ"},{value:"AR",label:"AR"},{value:"CA",label:"CA"},{value:"CO",label:"CO"},{value:"CT",label:"CT"},{value:"DE",label:"DE"},{value:"DC",label:"DC"},{value:"FM",label:"FM"},{value:"FL",label:"FL"},{value:"GA",label:"GA"},{value:"GU",label:"GU"},{value:"HI",label:"HI"},{value:"ID",label:"ID"},{value:"IL",label:"IL"},{value:"IN",label:"IN"},{value:"IA",label:"IA"},{value:"KS",label:"KS"},{value:"KY",label:"KY"},{value:"LA",label:"LA"},{value:"ME",label:"ME"},{value:"MH",label:"MH"},{value:"MD",label:"MD"},{value:"MA",label:"MA"},{value:"MI",label:"MI"},{value:"MN",label:"MN"},{value:"MS",label:"MS"},{value:"MO",label:"MO"},{value:"MT",label:"MT"},{value:"NE",label:"NE"},{value:"NV",label:"NV"},{value:"NH",label:"NH"},{value:"NJ",label:"NJ"},{value:"NM",label:"NM"},{value:"NY",label:"NY"},{value:"NC",label:"NC"},{value:"ND",label:"ND"},{value:"MP",label:"MP"},{value:"OH",label:"OH"},{value:"OK",label:"OK"},{value:"OR",label:"OR"},{value:"PW",label:"PW"},{value:"PA",label:"PA"},{value:"PR",label:"PR"},{value:"RI",label:"RI"},{value:"SC",label:"SC"},{value:"SD",label:"SD"},{value:"TN",label:"TN"},{value:"TX",label:"TX"},{value:"UT",label:"UT"},{value:"VT",label:"VT"},{value:"VI",label:"VI"},{value:"VA",label:"VA"},{value:"WA",label:"WA"},{value:"WV",label:"WV"},{value:"WI",label:"WI"},{value:"WY",label:"WY"}],ve=[{value:"AB",label:"AB"},{value:"BC",label:"BC"},{value:"MB",label:"MB"},{value:"NB",label:"NB"},{value:"NL",label:"NL"},{value:"NS",label:"NS"},{value:"NT",label:"NT"},{value:"NU",label:"NU"},{value:"ON",label:"ON"},{value:"PE",label:"PE"},{value:"QC",label:"QC"},{value:"SK",label:"SK"},{value:"YT",label:"YT"}],ge=e=>(t,a=!0,l)=>{var r;const n=(null==t||null===(r=t.target)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.trim())??"";return a||0!==n.length?e(t,a,l):{isValid:!0,errorMessage:""}},xe=(e,t=!1)=>
1{if("string"!=typeof e)return"";let a=e.replace(/(&lt;|&#x3C;|&#60;)/gi,"<").replace(/(&gt;|&#x3E;|&#62;)/gi,">").replace(/<\s*script[^>]{0,1000}>[\s\S]{0,10000}?<\/script>/gi,"").replace(/<\s*style[^>]{0,1000}>[\s\S]{0,10000}?<\/style>/gi,"").replace(/<[^>]{0,1000}>/g,"");return a=a.replace(/[^.,/\\\p{L}\d\s'@_|$#!%^*-]/gu,""),a=a.replace(/\s{2,}/g," "),t?a.toLowerCase():a},be=e=>{if("string"!=typeof e)return"";let t=e.replace(/<\s*script[^>]{0,1000}>[\s\S]{0,10000}?<\/script>/gi,"").replace(/<\s*style[^>]{0,1000}>[\s\S]{0,10000}?<\/style>/gi,"").replace(/<[^>]{0,1000}>/g,"");return t=t.replace(/[^a-zA-Z0-9^$*.\[\]{}()?"!@#%&\/\\,><':;|_~`=+?\-]/g,""),t},je={default:{mask:e=>({maskedValue:xe(e)}),validate:ge(me)},password:{mask:e=>({maskedValue:be(e)}),validate:ge(me)},zipcode:{mask:e=>{if(0===e.length)return{maskedValue:""};const t=e.charAt(0);if(/[A-Za-z]/.test(t)){const t=e.replace(/[^A-Za-z0-9]/g,"").toUpperCase();let a="";for(let e=0;e<Math.min(t.length,6);e++){const l=t[e];if(!(e%2==0?/[A-Z]/.test(l):/\d/.test(l)))break;a+=l}return{maskedValue:a.length>3?`${a.substring(0,3)} ${a.substring(3)}`:a}}return{maskedValue:e.replace(/\D/g,"").substring(0,5)}},validate:ge(e=>{const t=e.target.value;if(0===t.length)return{value:t,isValid:!1,errorMessage:"This field is required"};const a=t.trim().charAt(0);if(/[A-Za-z]/.test(a)){const e=t.replace(/\s/g,"").toUpperCase(),a=6===e.length,l=/^[A-Z]\d[A-Z]\d[A-Z]\d$/.test(e);return{value:t,isValid:a&&l,errorMessage:a?l?"":"Invalid Postal Code":""}}const l=/^\d{5}$/.test(t);return{value:t,isValid:l,errorMessage:l?"":"Invalid Zip Code"}})},percent:{mask:e=>{const t=e.replace(/[^0-9.]/g,""),a=t.indexOf(".");let l=t;-1!==a&&(l=t.slice(0,a+1)+t.slice(a+1).replace(/\./g,"").slice(0,2));const r=parseFloat(l);return!isNaN(r)&&r>100&&(l="100"),{maskedValue:l}},validate:ge((e,t=!0)=>{var a;const l=(null===(a=e.target.value)||void 0===a?void 0:a.trim())||"";if(t&&0===l.length)return{isValid:!1,errorMessage:"This field is required."};const r=parseFloat(l);return!isNaN(r)&&r>=0&&r<=100?{isValid:!0,errorMessage:""}:{isValid:!1,errorMessage:"Enter a valid percentage (0–100)"}})},currency:{mask:e=>{let t=e.replace(/[^0-9.]/g,"");if(t.startsWith("0")&&"."!==t[1]&&1===t.length)return{maskedValue:""};if("0."===t)return{maskedValue:""};t.startsWith(".")&&(t="0"+t),t.startsWith("0")&&"."!==t[1]&&t.length>1&&(t=t.replace(/^0+/,""));const a=t.split(".");a.length>2&&(t=a[0]+"."+a.slice(1).join(""));let[l="",r]=t.split(".");if(l.length<=15&&l.length>0){const e=l.split("").reverse().join("");l=e.replace(/(\d{3})/g,"$1,").split("").reverse().join("").replace(/^,/,"")}return void 0!==r&&(r=r.substring(0,2)),{maskedValue:void 0!==r?`${l}.${r}`:l}},validate:ge((e,t,a)=>{let l=e.target.value;l=l.toString().replace(/,/g,"");const r=parseFloat(l);if(!l.replace(/\D/g,""))return{isValid:!1,errorMessage:"This field is required"};if(isNaN(r))return{isValid:!1,errorMessage:"Invalid currency amount"};const n=(null==a?void 0:a.maxAmount)??999999999.99;return r>n?{isValid:!1,errorMessage:`Max: $${n.toLocaleString()}`}:{isValid:!0,errorMessage:"",value:new Intl.NumberFormat("en-US",{minimumFractionDigits:2}).format(r)}})},numeric:{mask:e=>({maskedValue:e.replace(/\D/g,"")}),validate:ge((e,t=!0)=>{var a;const l=(null===(a=e.target.value)||void 0===a?void 0:a.trim())||"";return t&&0===l.length?{isValid:!1,errorMessage:"This field is required."}:/[^0-9]/.test(l)?{isValid:!1,errorMessage:"Only numeric characters are allowed."}:{isValid:!0,errorMessage:""}})},email:{mask:e=>({maskedValue:xe(e).replace(/[^a-zA-Z0-9@._-]/g,"")}),validate:ge(e=>{const t=e.target.value.trim();if(0===t.length)return{isValid:!1,errorMessage:"This field is required"};const a=/^[^\s@]{1,64}@[^\s@]{1,253}\.[^\s@]{2,63}$/.test(t);return{isValid:a,errorMessage:a?"":"Please enter a valid email address"}})},numberGreaterThanZero:{mask:e=>({maskedValue:e.replace(/\D/g,"")}),validate:ge(e=>{const t=(e=>e.target.value.replace(/\D/g,""))(e);if("0"===t)return{value:"",isValid:!1,errorMessage:"The field Installments must be a value between 1 and 99999999."};if(0===t.length)return{value:t,isValid:!1,errorMessage:"This field is required"};const a=parseInt(t)>0;return{value:t,isValid:a,errorMessage:a?"":"The field Installments must be a value between 1 and 99999999."}})},date:{mask:e=>({maskedValue:e}),validate:ge(({date:e,validationError:t})=>{let a="";return e?"disablePast"===t?a="Date cannot be in the past":"disableFuture"===t?a="Date cannot be in the future":"minDate"===t?a="Date cannot be before the minimum date":"maxDate"===t?a="Date cannot be after the maximum date":"invalidDate"===t&&(a="Date is invali
1d"):a="This field is required",{value:e,isValid:!a,errorMessage:a}})},range:{mask:e=>({maskedValue:e.replace(/\D/g,"")}),validate:ge((e,t,a)=>((e,{minLength:t,maxLength:a})=>{const l=e.target.value?parseInt(e.target.value):"";return{value:l,isValid:""===l||l>=t&&l<=a,errorMessage:`Please enter a number between ${t} and ${a}`}})(e,a))},url:{mask:e=>{if(!e||"string"!=typeof e)return{maskedValue:""};if(e.length>2e3)return{maskedValue:""};let t=e.trim();const a={"&amp;":"&","&lt;":"<","&#x3C;":"<","&#60;":"<","&gt;":">","&#x3E;":">","&#62;":">"};let l,r=0;do{l=t,t=t.replace(/(&amp;|&lt;|&gt;|&#x3C;|&#x3E;|&#60;|&#62;)/gi,e=>a[e.toLowerCase()]||e)}while(l!==t&&++r<4);return/<[^>]{0,1000}>/.test(t)||/^\s*javascript:/i.test(t)?{maskedValue:""}:(t=t.replace(/^\s*https?:\/\//i,"").replace(/^www\./i,"").replace(/\/{2,}/g,"/").replace(/&[a-z0-9#]{1,10};/gi,"").replace(/[<>{}[\]"'`\\|^\s]/g,""),t?{maskedValue:t}:{maskedValue:""})},validate:ge((e,t)=>{const a=e.target.value,l=new RegExp("^(([a-zA-Z\\d]([a-zA-Z\\d-]{0,61}[a-zA-Z\\d])?)\\.)+([a-zA-Z]{2,63})(\\:\\d{1,5})?(\\/[a-zA-Z\\d%_.~+-]{0,2000})*(\\?[;&a-zA-Z\\d%_.~+=\\-]{0,2000})?(\\#[a-zA-Z\\d_-]{0,100})?$","i");return{value:a,isValid:""===a&&!t||!!l.test(a),errorMessage:""===a&&t?"This field is required":"Invalid URL"}})},alphaOnly:{mask:e=>({maskedValue:e.replace(/[^a-zA-Z ]/g,"")}),validate:ge((e,t=!0)=>{var a;const l=(null===(a=e.target.value)||void 0===a?void 0:a.trim())||"";return t&&0===l.length?{isValid:!1,errorMessage:"This field is required."}:/[^a-zA-Z ]/.test(l)?{isValid:!1,errorMessage:"Only alphabetic characters are allowed."}:{isValid:!0,errorMessage:""}})},noSpecialCharacters:{mask:e=>({maskedValue:e.replace(/[^\w\s]/gi,"")}),validate:ge((e,t=!0)=>((e,t)=>{const a=e.target.value;return!a&&t?{value:a,isValid:!1,errorMessage:"This field is required."}:/[^a-zA-Z0-9]/.test(a)?{value:a,isValid:!1,errorMessage:"Special characters are not allowed."}:{value:a,isValid:!0,errorMessage:""}})(e,t))},phone:{mask:e=>(e.length>20&&(e=e.substring(0,20)),{maskedValue:e.replace(/\D/g,"").replace(/(\d{3})(\d{0,3})(\d{0,4})/,(e,t,a,l)=>[t,a,l].filter(Boolean).join("-")).substring(0,12)}),validate:ge(e=>{const t=10===e.target.value.replace(/\D/g,"").length;return{isValid:t,errorMessage:t?"":"Please enter a valid 10-digit phone number"}})},state:{mask:e=>({maskedValue:e.toUpperCase().replace(/[^A-Z]/g,"").substring(0,2)}),validate:ge((e,t=!0)=>{var a;const l=(null==e||null===(a=e.target)||void 0===a||null===(a=a.value)||void 0===a?void 0:a.trim())??"";if(!t&&0===l.length)return{isValid:!0,errorMessage:""};if(t&&0===l.length)return{isValid:!1,errorMessage:"This field is required"};const r=fe.map(e=>e.value.toUpperCase()).includes(l.toUpperCase())&&2===l.length;return{isValid:r,errorMessage:r?"":"Invalid state"}})},customerNotes:{mask:e=>({maskedValue:e}),validate:ge(me)},noSpace:{mask:e=>({maskedValue:xe(e).replace(/\s+/g,"")}),validate:ge(me)}},_e=(0,R.forwardRef)(({name:e,label:t,placeholder:a,inputValueMap:l,setInputValueMap:r,required:n=!0,errorMessage:s,className:i="",startAdornment:o,endAdornment:c,showClearButton:d=!1,inputType:u="default",onBlurCallback:h,onChangeCallback:p,onFocusCallback:m,maxLength:f,minLength:v,onKeyDownCallback:g,multipleSelect:x=!1,type:b="text",validationParams:j,disabled:_=!1,autoComplete:w="on",optionClickRef:M,displayError:y=!0},C)=>{var N,k,V,A,S,P,T,D;const E=(0,R.useRef)(null),L=C||E,[$,F]=(0,R.useState)(""),H="zipcode"===u?7:f,B="zipcode"===u?void 0:v,Z=e=>0===e.trim().length?"":e,O=x?$:(null==l||null===(N=l.get(e))||void 0===N?void 0:N.inputValue)||"",G="url"===u?(q=O,q=je.url.mask(q).maskedValue):O;var q;const W=({customInputValueMap:t}={})=>{if(F(""),t&&r){const a=new Map(t);a.set(e,{...t.get(e),inputValue:"",isValid:!1,isError:!1,errorMessage:""}),r(a)}else if(l&&r){const t=new Map(l);t.set(e,{...l.get(e),inputValue:"",isValid:!1,isError:!1,errorMessage:""}),r(t)}};(0,R.useImperativeHandle)(C,()=>Object.assign({},L.current,{clearInput:e=>{W({customInputValueMap:e})}}));const Y=a=>{let i=a.target.value;const o=u&&je[u]?u:"default";"default"!==u&&(i=je[o].mask(i).maskedValue),i=Z(i),l||r||F(i);let c=l;if(l&&r){const t=je[o].validate({target:{value:i}},n,j);if("url"===u){const e=je.url.mask(i);i=e.maskedValue?`https://${e.maskedValue}`:""}const a=null==t?void 0:t.isValid,d=(null==t?void 0:t.errorMessage)??"",h=!a&&(n||i.length>0)?s||d:"";c=new Map(l),c.set(e,{...l.get(e),inputValue:i,isValid:a,isError:!a,errorMessage:h}),r(c)}p&&p({label:t||"",value:i,name:e,inputValueMap:c})},z=a=>{let r=a.target.value;const n=u&&je[u]?u:"default";if("url"===u){const e=je[n].mask(r);r=e.maskedValue?`https://${e.maskedValue}`:"",F(r)}if(m){const r=t||"",n=a.target.value;m(r,n,e,l)}},U=a=>
1{if(M&&M.current)return void(M.current=!1);let i=a.target.value;const o=u&&je[u]?u:"default";if("currency"===u&&i.includes(".")){const[e,t]=i.split(".");1===t.length&&(i=`${e}.${t}0`),0===t.length&&(i=`${e}`),L.current&&(L.current.value=i)}"default"===o&&(i=je[o].mask(i).maskedValue),i=Z(i),"default"===o&&F(i);const c=je[o].validate({target:{value:i}},n,j),d=null==c?void 0:c.isValid,p=(null==c?void 0:c.errorMessage)??"",m=!d&&(n||i.length>0)?s||p:"",f=new Map(l);if(l&&r){if("url"===u){const e=je[o].mask(i);i=e.maskedValue?`https://${e.maskedValue}`:"",F(i)}f.set(e,{...l.get(e),inputValue:i,isValid:d,isError:!d,errorMessage:m}),r(f)}h&&h({label:t||"",value:i,name:e,inputValueMap:f})},K=a=>{if("noSpace"!==u||" "!==a.key){if(g){var r;const n=(null===(r=a.target)||void 0===r?void 0:r.value)||"";g(a,t||"",n,e,l)}}else a.preventDefault()};return(0,I.jsxs)("div",{className:`container__WJHFR textFieldContainer ${null!=l&&null!==(k=l.get(e))&&void 0!==k&&k.isError?"error__IGQzp textFieldError":""} ${i}`.trim(),children:[t&&(0,I.jsx)("label",{className:"floatinglabel__G8gvu textFieldFloatingLabel","data-shrink":"true",htmlFor:e,children:t}),(0,I.jsxs)("div",{className:`wrapper__DAnXd textFieldWrapper ${o?"startAdornmentContainer__W5OR8":""} ${c?"endAdornmentContainer__3uHgu":""}`.trim(),children:[(0,I.jsxs)("div",{className:"startAdornment__hi6e4 textFieldStartAdornment",children:["url"===u&&(0,I.jsx)("span",{className:"urlPrefix__MjUxU textFieldUrlPrefix",children:"https://"}),o&&o,x?(0,I.jsx)("input",{"aria-invalid":null==l||null===(V=l.get(e))||void 0===V?void 0:V.isError,id:e,name:e,placeholder:a,type:b,className:`${pe} textFieldInput`,value:G||"",onChange:Y,onBlur:U,onFocus:z,ref:L,maxLength:H,minLength:B,onKeyDown:g||"noSpace"===u?K:void 0,disabled:_,autoComplete:w}):null]}),!x&&(0,I.jsx)("input",{"aria-invalid":null==l||null===(A=l.get(e))||void 0===A?void 0:A.isError,id:e,name:e,placeholder:a,type:b,className:`${pe} textFieldInput ${"url"===u?"urlInput__zLZFQ":""}`,value:G||"",onChange:Y,onBlur:U,onFocus:z,ref:L,maxLength:H,minLength:B,onKeyDown:g||"noSpace"===u?K:void 0,disabled:_,autoComplete:w}),c&&(0,I.jsx)("div",{className:"endAdornment__-1PjE textFieldEndAdornment",children:c}),d&&(null==l||null===(S=l.get(e))||void 0===S?void 0:S.inputValue)&&(0,I.jsx)("button",{type:"button",className:"clearButton__kgOot textFieldClearButton",onClick:()=>W(),children:"×"}),(0,I.jsx)("fieldset",{"aria-hidden":"true",className:"fieldset__Az3uN textFieldFieldset",children:(0,I.jsx)("legend",{className:"legend__RbypP textFieldLegend",children:t&&(0,I.jsx)("span",{className:"legendSpan__sH-rX textFieldLegendSpan",children:t})})})]}),(null==l||null===(P=l.get(e))||void 0===P?void 0:P.isError)&&y&&(null==l||null===(T=l.get(e))||void 0===T?void 0:T.errorMessage)&&(0,I.jsx)("small",{className:"formHelperText__sAW2h textFieldFormHelperText",children:null==l||null===(D=l.get(e))||void 0===D?void 0:D.errorMessage})]})});_e.displayName="TextField";const we=()=>{const[e,t]=(0,R.useState)(p());return(0,R.useEffect)(()=>{function e(){t(p())}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),window.visualViewport&&window.visualViewport.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),window.visualViewport&&window.visualViewport.removeEventListener("resize",e)}},[]),e};var Me=a(97802);const ye=(e,t)=>{const a=D()(e),l=a.date(),r=a.endOf("month").date();switch(t){case"Daily":case"Weekly":case"BiWeekly":case"Monthly":case"Quarterly":case"SemiAnnually":case"Annually":default:return!0;case"SemiMonthlyFirstAndFifteenth":case"MonthlyFirst":return 1===l;case"SemiMonthlyFifteenthAndLast":return 15===l;case"MonthlyLast":return l===r}};var Ce=a(83627),Ne=a(85503);const ke=e=>(0,I.jsxs)("svg",{id:"calendar",xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",...e,children:[(0,I.jsx)("path",{id:"Path_37445","data-name":"Path 37445",d:"M11.083,1.167H10.5V.583a.583.583,0,0,0-1.167,0v.583H4.667V.583A.583.583,0,1,0,3.5.583v.583H2.917A2.92,2.92,0,0,0,0,4.083v7A2.92,2.92,0,0,0,2.917,14h8.167A2.92,2.92,0,0,0,14,11.083v-7A2.92,2.92,0,0,0,11.083,1.167ZM1.167,4.083a1.75,1.75,0,0,1,1.75-1.75h8.167a1.75,1.75,0,0,1,1.75,1.75v.583H1.167Zm9.917,8.75H2.917a1.75,1.75,0,0,1-1.75-1.75V5.833H12.833v5.25A1.75,1.75,0,0,1,11.083,12.833Z"}),(0,I.jsx)("circle",{id:"Ellipse_6","data-name":"Ellipse 6",cx:.875,cy:.875,r:.875,transform:"translate(6.125 7.875)"}),(0,I.jsx)("circle",{id:"Ellipse_7","data-name":"Ellipse 7",cx:.875,cy:.875,r:.875,transform:"translate(3.208 7.875)"}),(0,I.jsx)("circle",{id:"Ellipse_8","data-name":"Ellipse 8",cx:.875,cy:.875,r:.875,transform:"translate(9.042 7.875)"})]});const Ve=(e,t,a)=>{let l=e.split("-").map(e=>e.trim()),r=l[0]||"",n=l[1]||"";if(!n&&t)if(r.includes(" ")){const e=r.split(/\s+/),t=e[0]||"",a=e.slice(1).join("")||"",l=t.replace(/[^\d]/g,""),s=a.replace(/[^\d]/g,"");l.length>=8&&s.length>0&&(r=t,n=a)}else{const e=r.replace(/[^\d]/g,"");e.length>=16&&(r=e.slice(0,8),n=e.slice(8))}const s=e=>{if(e.includes("/")){const t=e.split("/"),a=(t[0]||"").replace(/[^\d]/g,""),l=(t[1]||"").replace(/[^\d]/g,""),r=(t[2]||"").replace(/[^\d]/g,""),n=a.slice(0,2),s=l.slice(0,2),i=l.slice(2),o=(i+r).slice(0,4);
1return 1===t.length?n:2===t.length?i?`${n}/${s}/${o}`:`${n}/${s}`:`${n}/${s}/${o}`}const t=e.replace(/[^\d]/g,"");return t.length<=2?t:t.length<=4?`${t.slice(0,2)}/${t.slice(2)}`:t.length<=8?`${t.slice(0,2)}/${t.slice(2,4)}/${t.slice(4)}`:`${t.slice(0,2)}/${t.slice(2,4)}/${t.slice(4,8)}`},i=s(r);return t&&n?`${i} - ${s(n)}`:t&&8===r.replace(/[^\d]/g,"").length&&!n?`${i} - `:i},Ae=(0,R.forwardRef)(({value:e,onFocus:t,inputRef:a,onBlur:l,focusedFirstTime:r,setFocusedFirstTime:n,isOpen:s,setIsOpen:i,isMultiPicker:o,label:c=(o?"Date Range":"Date"),inputClassName:d="",name:u="Date Range",hasError:h,errorMessage:p,endAdornment:m,startAdornment:f,inputValueMap:v,setInputValueMap:g,handleInputChange:x,resetDisplayTrigger:b},j)=>{const[_,w]=(0,R.useState)(e);(0,R.useEffect)(()=>{const t=Ve(e,o);w(e=>e===t?e:t)},[e]),(0,R.useEffect)(()=>{w(Ve(e,o))},[b]);const M=()=>{i(!0),r&&n(!1)};return(0,I.jsxs)("div",{className:`container__5Si39 textFieldContainer ${h?"error__G3z4l textFieldError":""} ${d}`.trim(),children:[c&&(0,I.jsx)("label",{className:"floatinglabel__wvzel textFieldFloatingLabel","data-shrink":"true",htmlFor:u,children:c}),(0,I.jsxs)("div",{className:`wrapper__LLiwV textFieldWrapper ${f?"startAdornmentContainer__RpDDD":""} ${m?"endAdornmentContainer__y9nfz":""}`.trim(),children:[(0,I.jsx)("div",{className:"startAdornment__tjc-x textFieldStartAdornment",children:f||(0,I.jsx)(ke,{onClick:M})}),(0,I.jsx)("input",{type:"text",value:_,ref:a,onFocus:t,onChange:e=>{const t=e.target,a=t.selectionStart,l=t.value,r=_;if(l.length<r.length){w(l),null!==a&&requestAnimationFrame(()=>{t&&t.setSelectionRange(a,a)});const r=o?23:10;if(!(0===l.length||l.length>=r))return;const n={...e,target:{...e.target,value:l}};return void x(n)}const n=Ve(l,o);if(w(n),null!==a){const e=n.length-l.length,r=Math.max(0,a+e);requestAnimationFrame(()=>{t&&t.setSelectionRange(r,r)})}if(!(o?n.length>=23:n.length>=10))return;const s={...e,target:{...e.target,value:n}},i=x(s);if(void 0!==i){let e="";if(o&&Array.isArray(i)){const[t,a]=i,l=t?D()(t).format("MM/DD/YYYY"):"",r=a?D()(a).format("MM/DD/YYYY"):"";e=l&&r?`${l} - ${r}`:l}else i instanceof Date&&(e=D()(i).format("MM/DD/YYYY"));w(e)}},onClick:M,placeholder:o?"MM/DD/YYYY - MM/DD/YYYY":"MM/DD/YYYY",onBlur:l,onKeyDown:e=>{const t=a.current;if(!t)return;let l=t.selectionStart??0;if("Backspace"!==e.key&&"Delete"!==e.key&&"Enter"!==e.key&&!["ArrowLeft","ArrowRight","Home","End","Tab","Delete"].includes(e.key)){if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const r=t.value;let n=0,s=0,i=null;const c=o&&l>=13?13:0,d=l-c;if(d>=0&&d<=2?(n=c,s=c+2,i="month"):d>=3&&d<=5?(n=c+3,s=c+5,i="day"):d>=6&&d<=10&&(n=c+6,s=c+10,i="year"),i&&r.length>=s){const t=r.substring(n,s).trim(),l=parseInt(t,10),o=""===t||isNaN(l),d=!o&&1===t.length;let u;const h="ArrowUp"===e.key?1:-1,p=r.substring(c,c+2),m=r.substring(c+6,c+10),f=parseInt(p,10),v=parseInt(m,10);let g=31;if(isNaN(f)||isNaN(v)||(g=new Date(v,f,0).getDate()),o)if("month"===i)u="ArrowUp"===e.key?1:12;else if("day"===i)u="ArrowUp"===e.key?1:g;else{if("year"!==i)return;u=(new Date).getFullYear()}else if(d){const a=parseInt(t,10);if("month"===i)1===a?u="ArrowUp"===e.key?11:10:2===a?u="ArrowUp"===e.key?12:2:a>=3?(u=a+h,u>12&&(u=1),u<1&&(u=12)):u=a;else if("day"===i)if(1===a){const t=Math.min(11,g);u="ArrowUp"===e.key?t:1}else if(2===a){const t=Math.min(21,g);u="ArrowUp"===e.key?t:2}else if(3===a){const t=Math.min(30,g);u="ArrowUp"===e.key?t:3}else a>=4?(u=a+h,u>g&&(u=1),u<1&&(u=g)):u=a;else{if("year"!==i)return;u=a}}else u=l+h,"month"===i?(u>12&&(u=1),u<1&&(u=12)):"day"===i?(u>g&&(u=1),u<1&&(u=g)):"year"===i&&(u<1900&&(u=1900),u>2100&&(u=2100));const b="year"===i?String(u).padStart(4,"0"):String(u).padStart(2,"0"),j=r.substring(0,n)+b+r.substring(s);w(j),x({target:{value:j}}),requestAnimationFrame(()=>{a.current&&a.current.setSelectionRange(n,s)})}return}/^\d$/.test(e.key)||e.preventDefault()}},onKeyUp:()=>{}}),m&&(0,I.jsx)("div",{className:"endAdornment__o0dUF textFieldEndAdornment",children:m}),(0,I.jsx)("fieldset",{"aria-hidden":"true",className:"fieldset__SWSJX textFieldFieldset",children:(0,I.jsx)("legend",{className:"legend__vzAPi textFieldLegend",children:c&&(0,I.jsx)("span",{className:"legendSpan__i541V textFieldLegendSpan",children:c})})})]}),h&&p&&(0,I.jsx)("small",{className:"formHelperText__YSHWh textFieldFormHelperText",children:p})]})});Ae.displayName="DateRangePickerInput";var Se="datePickerFooterButton__pYkp6";const Pe=({handleDateSelection:e,handleCancel:t,handleClear:a,handleClose:l})=>(0,I.jsxs)("div",{className:"datePickerFooter__xUlAv",children:[(0,I.jsx)("button",{className:Se,onClick:()=>{e()&&l()},children:"Ok"}),(0,I.jsx)("button",{className:Se,onClick:t,children:"Cancel"}),(0,I.jsx)("button",{className:Se,onClick:a,children:"Clear"})]});var Te="dateRangeButton__6dTAE";const De=({setDateRange:e,setPresetDateRange:t=e,originalDateRange:a})=>(0,I.jsxs)("div",{className:"dateRangeButtons__x-dhG",children:[(0,I.jsx)("button",{className:Te,onClick:()=>{var e;return t(null===(e=Q.lastMonth())||void 0===e?void 0:e.dates)},children:"Last Month"}),(0,I.jsx)("button",{className:Te,onClick:()=>{var e;
1return t(null===(e=Q.lastTwoWeeks())||void 0===e?void 0:e.dates)},children:"Last 2 Weeks"}),(0,I.jsx)("button",{className:Te,onClick:()=>{var e;return t(null===(e=Q.lastWeek())||void 0===e?void 0:e.dates)},children:"Last Week"}),(0,I.jsx)("button",{className:Te,onClick:()=>{var e;return t(null===(e=Q.lastSevenDays())||void 0===e?void 0:e.dates)},children:"Last 7 Days"}),(0,I.jsx)("button",{className:Te,onClick:()=>e(a),children:"Reset Date"})]}),Ee=e=>(0,I.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",width:16,height:16,...e,children:(0,I.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})}),Le=e=>(0,I.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"KeyboardArrowLeftIcon",height:16,width:16,...e,children:(0,I.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})});var Re="paginationButton__7Cufa",$e="disabledArrow__PzFIB",Ie="hidden__0oZ2B";const Fe=({monthDate:e,decreaseMonth:t,isMultiPicker:a,increaseMonth:l,customHeaderCount:r,prevMonthButtonDisabled:n,nextMonthButtonDisabled:s})=>{const i=1===r&&a,o=0===r&&a;return(0,I.jsxs)("div",{className:"datePickerHeader__390fR",children:[(0,I.jsx)("button",{className:`${Re} ${n?$e:""} ${i?Ie:""}`,type:"button",title:"Previous month","aria-label":"Previous month",onClick:t,disabled:n,children:(0,I.jsx)(Le,{})}),(0,I.jsx)("span",{className:"datePickerHeaderTitle__o5bBX",children:e.toLocaleString("en-US",{month:"long",year:"numeric"})}),(0,I.jsx)("button",{className:`${Re} ${s?$e:""} ${o?Ie:""}`,type:"button",title:"Next month","aria-label":"Next month",onClick:l,disabled:s,children:(0,I.jsx)(Ee,{})})]})};var He=a(24482);const Be=(0,He.KU)(()=>sessionStorage),Ze={getItem:(e,t)=>{const a=Be.getItem(e,t),l="object"==typeof a?JSON.stringify(a):a;try{return void 0!==l?JSON.parse(l):t}catch{return t}},setItem:(e,t)=>{Be.setItem(e,JSON.stringify(t)),window.dispatchEvent(new Event("storage"))},removeItem:e=>{Be.removeItem(e)},subscribe:(e,t,a)=>{if("undefined"==typeof window||void 0===window.addEventListener)return()=>{};const l=()=>{if(Be.getItem(e,a)){const l=Be.getItem(e,a),r="object"==typeof l?JSON.stringify(l):l;if(r.length>0){const e=JSON.parse(r);t(e||a)}}else t(a)};return window.addEventListener("storage",l),()=>{window.removeEventListener("storage",l)}}};var Oe=a(40316);const Ge=(0,He.tG)("showInvoicesMenu",!1,Ze),qe=()=>(0,Oe.useAtom)(Ge),We=(0,He.tG)("navMenuOpen",null,Ze),Ye=()=>(0,Oe.useAtom)(We),ze=(0,He.tG)("theme",{mode:"light"},Ze),Ue=()=>(0,Oe.useAtom)(ze),Ke=(0,He.tG)("fakeDataFlag",!1,Ze),Xe=()=>(0,Oe.useAtom)(Ke),Je=(0,He.tG)("getCurrentOpenedMenu",JSON.stringify({MerchantAccounts:{open:!1,showOnTop:!1,closing:!1},POS:{open:!1,showOnTop:!1,closing:!1},Key:{open:!1,showOnTop:!1,closing:!1},ACH:{open:!1,showOnTop:!1,closing:!1},AddCustomer:{open:!1,showOnTop:!1,closing:!1},AddToCustomerVault:{open:!1,showOnTop:!1,closing:!1},CustomerWallet:{open:!1,showOnTop:!1,closing:!1},EditCustomer:{open:!1,showOnTop:!1,closing:!1},AddEditWallet:{open:!1,showOnTop:!1,closing:!1},AddSubscriptions:{open:!1,showOnTop:!1,closing:!1},Transaction:{open:!1,showOnTop:!1,closing:!1},TransactionHistory:{open:!1,showOnTop:!1,closing:!1},VoidTransaction:{open:!1,showOnTop:!1,closing:!1},ViewReceipt:{open:!1,showOnTop:!1,closing:!1},ChargeAgain:{open:!1,showOnTop:!1,closing:!1},PaymentInformation:{open:!1,showOnTop:!1,closing:!1},Reporting:{open:!1,showOnTop:!1,closing:!1},AddReport:{open:!1,showOnTop:!1,closing:!1},ExportReport:{open:!1,showOnTop:!1,closing:!1}}),Ze),Qe=()=>(0,Oe.useAtom)(Je),et=(0,He.tG)("dashboardDateFilter",{dateRange:[null,null],countOfDays:0},Ze),tt=()=>(0,Oe.useAtom)(et),at=(0,He.tG)("showTransactionMenu",!1,Ze),lt=()=>(0,Oe.useAtom)(at),rt=(0,He.tG)("pricingSummaryData",{amount:0,estimatedTax:0,surcharge:0,surchargeType:"percentage"},Ze),nt=()=>(0,Oe.useAtom)(rt),st=(0,He.tG)("reportingLocations",[],Ze),it=()=>(0,Oe.useAtom)(st),ot=(0,He.tG)("setTransactionId","",Ze),ct=()=>(0,Oe.useAtom)(ot),dt=(0,He.tG)("selectedMenu","",Ze),ut=()=>(0,Oe.useAtom)(dt),ht=(0,He.tG)("popoutMenuOpen",!1,Ze),pt=()=>
1(0,Oe.useAtom)(ht),mt=(0,He.tG)("subNavTab","",Ze),ft=()=>(0,Oe.useAtom)(mt),vt=(0,He.tG)("backdropOpen",!1,Ze),gt=()=>(0,Oe.useAtom)(vt),xt=(0,He.tG)("customerId","",Ze),bt=()=>(0,Oe.useAtom)(xt);var jt=a(45526);const _t=3,wt=14,Mt=(...e)=>e.filter(Boolean).join(" "),yt=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20",children:(0,I.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})}),Ct=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20",children:(0,I.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})}),Nt=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20",children:(0,I.jsx)("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),kt=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20",children:(0,I.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),Vt=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,I.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,I.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});let At=1;const St=new class{constructor(){this.subscribers=new Set,this.toasts=[],this.dismissedToasts=new Set,this.subscribe=e=>(this.subscribers.add(e),()=>{this.subscribers.delete(e)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[e,...this.toasts]},this.timers=new Map,this.create=e=>{const{message:t,delayMs:a=0,...l}=e,r="number"==typeof e.id||"string"==typeof e.id&&e.id.length>0?e.id:At++,n=void 0===l.dismissible||l.dismissible,s=l.type||"error",i=t??"Something went wrong",o=void 0!==l.description?l.description:"error"===s?" Please try again later.":"",c=l.position??"top-right";this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r);const d=this.toasts.find(e=>e.id===r),u={id:r,dismissible:n,type:s,title:i,description:o,className:{error:"toastError__m40pI",success:"toastSuccess__UG5Mq",info:"toastInfo__9DYd-",warning:"toastWarning__TGwqs"}[s]||"",position:c,...l};if(d){const e={...d,...u};return this.publish(e),this.toasts=this.toasts.map(t=>t.id===r?e:t),r}if(a>0){this.timers.has(r)&&clearTimeout(this.timers.get(r));const e=window.setTimeout(()=>{this.timers.delete(r),this.addToast(u)},a);return this.timers.set(r,e),r}return this.addToast(u),r},this.dismiss=e=>{if(void 0!==e){const t=this.timers.get(e);return t?(clearTimeout(t),this.timers.delete(e),e):(this.dismissedToasts.add(e),requestAnimationFrame(()=>{this.publish({id:e,dismiss:!0}),this.toasts=this.toasts.filter(t=>t.id!==e),setTimeout(()=>{this.dismissedToasts.delete(e)},1e3)}),e)}this.timers.forEach(e=>clearTimeout(e)),this.timers.clear();const t=this.toasts.map(e=>e.id);this.toasts.forEach(e=>this.publish({id:e.id,dismiss:!0})),this.toasts=[],setTimeout(()=>{t.forEach(e=>this.dismissedToasts.delete(e))},1e3)},this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,message:e,type:"success",description:""}),this.info=(e,t)=>this.create({...t,message:e,type:"info",description:""}),this.warning=(e,t)=>
1this.create({...t,message:e,type:"warning",description:""}),this.loading=(e,t)=>this.create({...t,message:e,type:"loading",duration:1/0}),this.handleHttpResponse=async(e,t,a)=>{const l="function"==typeof t.error?await t.error(`HTTP ${e.status}`):t.error,r="function"==typeof t.description?await t.description(`HTTP ${e.status}`):t.description,n="object"!=typeof l||R.isValidElement(l)?{message:l}:l;this.create({id:a,type:"error",description:r,...n})},this.handleSuccessResponse=async(e,t,a)=>{const l="function"==typeof t.success?await t.success(e):t.success,r="function"==typeof t.description?await t.description(e):t.description,n="object"!=typeof l||R.isValidElement(l)?{message:l}:l;this.create({id:a,type:"success",description:r,...n})},this.handleErrorResponse=async(e,t,a)=>{const l="function"==typeof t.error?await t.error(e):t.error,r="function"==typeof t.description?await t.description(e):t.description,n="object"!=typeof l||R.isValidElement(l)?{message:l}:l;this.create({id:a,type:"error",description:r,...n})},this.promise=(e,t)=>{if(!t)return;let a;void 0!==t.loading&&(a=this.create({id:t.id,message:t.loading,type:"loading",description:"function"!=typeof t.description?t.description:void 0,position:t.position,duration:1/0}));const l=Promise.resolve("function"==typeof e?e():e);let r,n=void 0!==a;const s=l.then(async e=>{r=["resolve",e],(e=>!!e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok)(e)&&!e.ok?(n=!1,await this.handleHttpResponse(e,t,a)):void 0!==t.success&&(n=!1,await this.handleSuccessResponse(e,t,a))}).catch(async e=>{r=["reject",e],void 0!==t.error&&(n=!1,await this.handleErrorResponse(e,t,a))}).finally(()=>{var e;n&&this.dismiss(a),null===(e=t.finally)||void 0===e||e.call(t)});return{unwrap:()=>new Promise((e,t)=>s.then(()=>{var a,l;return"reject"===(null===(a=r)||void 0===a?void 0:a[0])?t(r[1]):e(null===(l=r)||void 0===l?void 0:l[1])}))}},this.custom=(e,t)=>{const a=(null==t?void 0:t.id)??At++;return this.create({id:a,jsx:e(a),...t}),a},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))}},Pt=Object.assign((e,t)=>St.create({message:e,...t}),{success:St.success.bind(St),info:St.info.bind(St),warning:St.warning.bind(St),error:St.error.bind(St),custom:St.custom.bind(St),message:St.message.bind(St),promise:St.promise.bind(St),dismiss:St.dismiss.bind(St),loading:St.loading.bind(St),getHistory:()=>St.toasts,getToasts:()=>St.getActiveToasts()}),Tt=R.forwardRef(function(e,t){const{id:a,position:l="top-right",hotkey:r=["altKey","KeyT"],expand:n=!0,pauseOnHover:s=!0,closeButton:i=!0,className:o,theme:c="light",richColors:d,duration:u=4e3,visibleToasts:h=_t,toastOptions:p,dir:m="ltr",gap:f=wt,icons:v,containerAriaLabel:g="Notifications"}=e,[x,b]=(0,R.useState)([]),j=window.location;(0,R.useEffect)(()=>{Pt.dismiss()},[j.pathname]);const _=(0,R.useMemo)(()=>a?x.filter(e=>e.toasterId===a):x.filter(e=>!e.toasterId),[x,a]),w=(0,R.useMemo)(()=>Array.from(new Set([l,..._.map(e=>e.position).filter(Boolean)])),[_,l]),[M,y]=(0,R.useState)([]),[C,N]=R.useState(!1),[k,V]=(0,R.useState)(!1),A=(e=>{const[t,a]=(0,R.useState)("dark"===e?"dark":"light");return(0,R.useEffect)(()=>{var t,l,r;if("system"!==e)return void a(e??"light");const n=null===(t=(l=window).matchMedia)||void 0===t?void 0:t.call(l,"(prefers-color-scheme: dark)"),s=()=>a(null!=n&&n.matches?"dark":"light");return s(),null==n||null===(r=n.addEventListener)||void 0===r||r.call(n,"change",s),()=>{var e;return null==n||null===(e=n.removeEventListener)||void 0===e?void 0:e.call(n,"change",s)}},[e]),t})(c),S=(0,R.useRef)(null),P=n||C,T=P?Number.MAX_SAFE_INTEGER:h,D=s&&C||k,E=R.useCallback(e=>{b(t=>{var a;return null!==(a=t.find(t=>t.id===e.id))&&void 0!==a&&a.delete||St.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]),L=R.useCallback(e=>{b(t=>t.map(t=>t.id===e?{...t,delete:!0}:t))},[]),$=R.useCallback(e=>{requestAnimationFrame(()=>L(e.id))},[L]),F=R.useCallback(e=>{b(t=>{const a=t.findIndex(t=>t.id===e.id);if(-1!==a){const l=[...t];return l[a]={...l[a],...e},l}return[e,...t]})},[]),H=R.useCallback(e=>{setTimeout(()=>{jt.flushSync(()=>F(e))})},[F]);(0,R.useEffect)(()=>St.subscribe(e=>{if("dismiss"in e&&e.dismiss)return $(e),void b(t=>t.filter(t=>t.id!==e.id));H(e)}),[$,H,x]);const B=R.useCallback((e,t)=>e.sort((e,a)=>t.findIndex(t=>t.id===e.toastId)-t.findIndex(e=>e.id===a.toastId)),[]);return(0,I.jsx)("section",{ref:t,"aria-label":`${g} ${Array.isArray(r)?r.join("+"):""}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false","data-toast-root":"",children:w.map(e=>{var t,a;const[r,s]=e.split("-"),c=_.filter(t=>t.position?t.position===e:e===l);if(!c.length)return null;const g=(null===(t=M[0])||void 0===t?void 0:t.height)??0,x=e.startsWith("bottom")?[...c].reverse():c;return(0,I.jsx)("ol",{dir:"auto"===m?(null===(a=document)||void 0===a?void 0:a.dir)??"ltr":m,ref:S,
1className:Mt("toaster__wHDiG",o),"data-theme":A,"data-y-position":r,"data-x-position":s,"data-front-toast-height":g,"data-width":356,"data-gap":f,onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{k||N(!1)},onPointerDown:e=>{"false"!==e.target.dataset.dismissible&&V(!0)},onPointerUp:()=>V(!1),children:x.slice(0,T).map((t,a)=>(0,I.jsx)(Dt,{toast:t,index:a,toasts:c,heights:B(M.filter(e=>e.position===t.position),x),setHeights:y,removeToast:E,visibleToasts:h,closeButton:(null==p?void 0:p.closeButton)??i,duration:(null==p?void 0:p.duration)??u,className:null==p?void 0:p.className,descriptionClassName:null==p?void 0:p.descriptionClassName,classNames:null==p?void 0:p.classNames,expandByDefault:n,gap:f,icons:v,defaultRichColors:d,position:e,interacting:k,expanded:P,suspendTimers:D},t.id))},e)})})}),Dt=({toast:e,index:t,heights:a,setHeights:l,removeToast:r,visibleToasts:n,closeButton:s,duration:i,className:o,descriptionClassName:c,classNames:d,expandByDefault:u,gap:h,icons:p,defaultRichColors:m,position:f,expanded:v,suspendTimers:g})=>{var x;const b=(()=>{const[e,t]=(0,R.useState)(!1),[a,l]=(0,R.useState)(!1),[r,n]=(0,R.useState)(!1),[s,i]=(0,R.useState)("right");return{mounted:e,setMounted:t,removed:a,setRemoved:l,swipeOut:r,setSwipeOut:n,swipeDirection:s,setSwipeDirection:i}})(),j={toastRef:(0,R.useRef)(null),isVisible:t+1<=n,toastType:e.type||"error",dismissible:!1!==e.dismissible,isDocumentHidden:(()=>{const[e,t]=(0,R.useState)("undefined"!=typeof document&&document.hidden);return(0,R.useEffect)(()=>{const e=()=>t(document.hidden);return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),e})(),remainingRef:(0,R.useRef)(e.duration??i??4e3),closeStartRef:(0,R.useRef)(0),lastPauseRef:(0,R.useRef)(0)},{slideOutAndRemove:_}=((t,a)=>{const{setMounted:n,setSwipeOut:s,setSwipeDirection:i,swipeOut:o}=t,{toastRef:c}=a;(0,R.useEffect)(()=>n(!0),[n]),(0,R.useEffect)(()=>{if(!o)return;const t=setTimeout(()=>r(e),250);return()=>clearTimeout(t)},[o]);const d=t=>t.filter(t=>t.toastId!==e.id),u=R.useCallback(()=>{l(d)},[]),h=R.useCallback(()=>{const t=c.current;if(!t)return;const a=t.getBoundingClientRect().height;return l(t=>[{toastId:e.id,height:a,position:e.position},...t]),u},[u]);return(0,R.useEffect)(()=>h(),[h]),{slideOutAndRemove:(e="right")=>{i(e),s(!0)}}})(b,j);((t,a)=>{const{remainingRef:l,closeStartRef:r,lastPauseRef:n,isDocumentHidden:s}=t,i=R.useCallback(()=>{var t;null===(t=e.onAutoClose)||void 0===t||t.call(e,e);const[l]=f.split("-");a("top"===l?"up":"down")},[a]),o=R.useCallback(()=>{if("loading"!==e.type&&e.duration!==1/0)return g||s?void(()=>{if(n.current<r.current){const e=Date.now()-r.current;l.current-=e}n.current=Date.now()})():(()=>{if(l.current!==1/0)return r.current=Date.now(),setTimeout(i,l.current)})()},[g,s,i]);(0,R.useEffect)(()=>{const e=o();return()=>{e&&clearTimeout(e)}},[o])})(j,_);const{mounted:w,removed:M,setRemoved:y,swipeOut:C,swipeDirection:N}=b,{toastRef:k,isVisible:V,toastType:A,dismissible:S}=j,P=()=>{y(!0),setTimeout(()=>r(e),200)},{handleCancelClick:T,handleActionClick:D}={handleCancelClick:R.useCallback(t=>{var a,l;"object"==typeof e.cancel&&"onClick"in e.cancel&&(null===(a=(l=e.cancel).onClick)||void 0===a||a.call(l,t)),P()},[e.cancel]),handleActionClick:R.useCallback(t=>{var a,l;"object"==typeof e.action&&"onClick"in e.action&&(null===(a=(l=e.action).onClick)||void 0===a||a.call(l,t)),t.defaultPrevented||P()},[e.action])},E=e.icon??(null==p?void 0:p[A])??(e=>{switch(e){case"success":return yt;case"info":return Ct;case"warning":return Nt;case"error":return kt;default:return null}})(A),[L,$]=f.split("-");return(0,I.jsxs)("li",{ref:k,tabIndex:0,className:Mt("toast__ngbBR",o,e.className,null==d?void 0:d.toast,null==d?void 0:d[A||"default"]),"data-toast":"","data-styled":!e.jsx,"data-mounted":w,"data-removed":M,"data-visible":V,"data-y-position":L,"data-x-position":$,"data-index":t,"data-dismissible":S,"data-type":A,"data-rich-colors":e.richColors??m,"data-expanded":v,"data-testid":e.testId,"data-swipe-out":C,"data-swipe-direction":N,"data-offset":t*h+a.slice(0,t).reduce((e,t)=>
1e+t.height,0),"data-initial-height":u?"auto":(null===(x=a.find(t=>t.toastId===e.id))||void 0===x?void 0:x.height)??0,onAnimationEnd:t=>{var a;C&&void 0!==(null===(a=t.target.dataset)||void 0===a?void 0:a.toast)&&r(e)},children:[s&&"loading"!==e.type?(0,I.jsx)("button",{"aria-label":"Close toast","data-close-button":!0,onClick:()=>{var t;S&&(P(),null===(t=e.onDismiss)||void 0===t||t.call(e,e))},className:null==d?void 0:d.closeButton,children:(null==p?void 0:p.close)??Vt}):null,(A||e.icon||e.promise)&&null!==e.icon?(0,I.jsxs)("div",{"data-icon":!0,className:null==d?void 0:d.icon,children:["loading"!==e.type||e.icon?null:(null==p?void 0:p.loading)??null,"loading"!==e.type?E:null]}):null,(()=>{const t=e.jsx?e.jsx:"function"==typeof e.title?e.title():e.title,a=e.description?"function"==typeof e.description?e.description():e.description:null;return(0,I.jsxs)("div",{"data-content":!0,className:null==d?void 0:d.content,children:[(0,I.jsx)("div",{"data-title":!0,className:null==d?void 0:d.title,children:t}),a&&(0,I.jsx)("div",{"data-description":!0,className:Mt(c,e.descriptionClassName,null==d?void 0:d.description),children:a})]})})(),(()=>{const t=R.isValidElement(e.cancel)?e.cancel:e.cancel&&(0,I.jsx)("button",{"data-button":!0,"data-cancel":!0,className:null==d?void 0:d.cancelButton,onClick:T,children:e.cancel.label}),a=R.isValidElement(e.action)?e.action:e.action&&(0,I.jsx)("button",{"data-button":!0,"data-action":!0,className:null==d?void 0:d.actionButton,onClick:D,children:e.action.label});return(0,I.jsxs)(I.Fragment,{children:[t,a]})})()]})};D().extend(L());const Et=e=>{if(null==e)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;const t=D()(e);return t.isValid()?t.toDate():null},Lt=({label:e,name:t,onChangeCallback:a,required:l=!0,showFilters:r=!0,isMultiPicker:n=!0,calendarClassName:s="",inputClassName:i="",startAdornment:o,endAdornment:c,inputValueMap:d,setInputValueMap:u,utcOffset:h="",dateRangeType:p="past",originalDateRange:m,filterDate:f,billingCycle:v})=>{const g=h?parseInt(h,10):D()().utcOffset(),x=(e=D()(),t=g,a)=>{let l=e.clone();return l=l.startOf("day"),l.utcOffset(t,!0)},b=()=>{const e=h?parseInt(h,10):D()().utcOffset();return D()().add(e-D()().utcOffset(),"minute").startOf("month").toDate()},[j,_]=(0,R.useState)(()=>{const e=x(D()(),g).startOf("month").toDate();try{var a;const e=null==d||null===(a=d.get(t))||void 0===a?void 0:a.inputValue;if(n&&Array.isArray(e)&&e[0]){const t=D()(e[0]);if(t.isValid())return t.startOf("month").toDate()}else if(!n&&e&&"string"==typeof e){const t=D()(e);if(t.isValid())return t.startOf("month").toDate()}}catch{}return e}),w=(0,R.useRef)(null),M=(0,R.useRef)(!1),[y,C]=(0,R.useState)(!1),[N,k]=(0,R.useState)(!1),[V,A]=(0,R.useState)(!1),[S,P]=(0,R.useState)(0),T=null==d?void 0:d.get(t),E=n&&null!=T&&T.inputValue?T.inputValue:[null,null],L=!n&&null!=T&&T.inputValue?T.inputValue:null,$=(null==T?void 0:T.isError)??!1,F=(null==T?void 0:T.errorMessage)??"",H=n?E:null,B=n?null:L,Z=$,O=F,[G,q]=(0,R.useState)(H),[W,Y]=(0,R.useState)(B),[z,U]=Array.isArray(H)?H:[null,null],[K,X]=(0,R.useState)("0"),J=(0,R.useRef)([null,null]),Q=(0,R.useRef)(null),ee=(0,R.useRef)(!1),te=(0,R.useRef)(""),le=(0,R.useRef)(H),re=(0,R.useRef)(B),ne=(0,R.useRef)(H),se=(0,R.useRef)(B),ie=(0,R.useRef)(Z),oe=(0,R.useRef)(O),ce=(e,a=!1,l="")=>{if(JSON.stringify(J.current)!==JSON.stringify(e)||ee.current!==a||te.current!==l){const r=new Map(d);return r.set(t,{inputValue:e,isValid:!a,isError:a,errorMessage:l}),u(r),e&&e[0]&&e[1]&&(le.current=e),J.current=e,ee.current=a,te.current=l,r}return d},de=(e,a=!1,l="")=>{if(Q.current!==e||ee.current!==a||te.current!==l){const r=new Map(d);return r.set(t,{inputValue:e,isValid:!a,isError:a,errorMessage:l}),u(r),e&&(re.current=e),Q.current=e,ee.current=a,te.current=l,r}return d};(0,R.useEffect)(()=>{var e;const a=null==d||null===(e=d.get(t))||void 0===e?void 0:e.inputValue;if(n&&a&&2===a.length&&a.every(e=>null!==e)&&a.every(e=>ae(e,"future"===p||"all"===p))&&D()(a[0]).isBefore(D()(a[1]))){const e=D()(a[0]).toDate(),t=D()(a[1]).toDate();ce([e,t]),q([e,t]),_(me(a[0],a[0]))}if(!n&&a&&a.length>0&&ae(a,"future"===p||"all"===p)){const e=D()(a).toDate();de(e),Y(e)}X((0,Ne.v4)())},[]);const ue=e=>{var t;if(null!=e&&e.relatedTarget){const t=e.relatedTarget;if(t.closest(".react-datepicker")||t.closest(".react-datepicker-popper"))return}const a=(null==e?void 0:e.target)??null;if(a&&a===w.current)return;if(M.current)return;M.current=!0;const r=(null===(t=w.current)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.trim())||"";if(n){const e=!!(H&&H[0]&&H[1]);r?!e||r.length<23?(ce([z??null,U??null],!0,"Please enter a valid date range"),q([z??null,U??null])):ve():(ce([null,null],l,l?"Please select a date range":""),q([null,
1null]))}else r?!B||r.length<10?(de(B,!0,"Please enter a valid date"),Y(B)):ve():(de(null,l,l?"Please select a date":""),Y(null));C(!1),k(!1),requestAnimationFrame(()=>{M.current=!1})},he=()=>{if(C(!1),k(!1),n){const e=ne.current??[null,null];ce(e,ie.current,oe.current),q(e),e[0]||e[1]?_(me(e[0],e[1])):_(b())}else{const e=se.current??null;de(e,ie.current,oe.current),Y(e),_(e?D()(e).startOf("month").toDate():b())}P(e=>e+1)},pe=()=>{C(!1)},me=(e,t)=>{const a=h?parseInt(h,10):D()().utcOffset(),l=n?e||t||D()():e||D()();return x(D()(l),a).startOf("month").toDate()},fe=e=>{ce(e),(null!=e&&e[0]||null!=e&&e[1])&&_(me(e[0],e[1]))},ve=()=>{if(n){if(!(H&&H[0]&&H[1])){const r=ne.current;if(r&&r[0]&&r[1]){const l=ce(r);return q(r),a&&a({label:e||"",value:r,name:t||"",inputValueMap:l}),!0}if(l)return ce([null,null],!0,"Please select a date range"),q([null,null]),!1}q(H),(H[0]||H[1])&&_(me(H[0],H[1]))}else{if(!B&&se.current){const l=se.current,r=de(l);return Y(l),a&&a({label:e||"",value:l,name:t||"",inputValueMap:r}),!0}Y(B)}const r=n?H:B,s=n?!(!r[0]||!r[1]):!!r,i=!l||s,o=new Map(d);return o.set(t,{inputValue:r,isValid:i,isError:!i,errorMessage:l&&!i?"Please enter a date":""}),a&&a({label:e||"",value:r,name:t||"",inputValueMap:o}),u(o),!0},ge=()=>{n?(ce([null,null],l,l?"Please select a date range":""),q([null,null])):(de(null,l,l?"Please select a date":""),Y(null)),_(b())},xe=e=>{if(10!==e.length)return{valid:!0,error:""};const t=e.split("/");if(3!==t.length)return{valid:!1,error:"Invalid date format"};const a=parseInt(t[0],10),l=parseInt(t[1],10),r=parseInt(t[2],10);if(a<1||a>12)return{valid:!1,error:"Invalid month (must be 01-12)"};const n=new Date(r,a,0).getDate();return l<1||l>n?{valid:!1,error:`Invalid day for month ${a} (must be 01-${n})`}:{valid:!0,error:""}},be="SemiMonthlyFirstAndFifteenth"===v||"SemiMonthlyFifteenthAndLast"===v;return(0,I.jsx)("div",{className:`date-picker-container ${n?"multi-picker":"single-picker"}${be?" discrete-dates":""}`,onKeyDownCapture:e=>{"Enter"===e.key&&y&&(ve(),C(!1))},children:(0,I.jsx)(Ce.Ay,{openToDate:(()=>{if(n){const e=j||(z||U?me(z,U):null);return z&&!U?e??Et(z)??b():e||b()}return B?Et(B)??b():b()})(),open:y,selectsRange:n,popperPlacement:"bottom-start",popperModifiers:[(0,Me.flip)({fallbackPlacements:["bottom-end","bottom"],padding:15})],startDate:Et(z),endDate:Et(U),selected:Et(n?z:B),dateFormat:"MM/dd/yyyy",maxDate:"past"===p?(()=>{const e=D()().utcOffset(),t=h?parseInt(h,10):e;return D()().utc().add(t,"minute").endOf("day").toDate()})():void 0,minDate:"future"===p?new Date:void 0,filterDate:v?e=>{const t=(e=>(t,a)=>a?((e,t,a)=>{const l=D()(e),r=l.date(),n=l.endOf("month").date(),s=D()(a);if(l.isSame(s,"day"))return!0;switch(t){case"Daily":case"Weekly":case"BiWeekly":case"Monthly":case"Quarterly":case"SemiAnnually":case"Annually":return l.isAfter(s);case"SemiMonthlyFirstAndFifteenth":return 1===s.date()&&15===r&&l.month()===s.month()&&l.year()===s.year();case"SemiMonthlyFifteenthAndLast":return 15===s.date()&&r===n&&l.month()===s.month()&&l.year()===s.year();case"MonthlyFirst":case"MonthlyLast":return!1;default:return!0}})(t,e,a):ye(t,e))(v);if(n&&z&&U){const t=e.getTime(),a=Et(z),l=Et(U);if(a&&l&&(t===a.getTime()||t===l.getTime()))return!0}if(n&&z&&!U){const t=e.getTime(),a=Et(z);if(a&&t===a.getTime())return!0}return t(e,n&&z&&!U?Et(z):null)}:f?e=>{if(n&&z&&U){const t=e.getTime(),a=Et(z),l=Et(U);if(a&&l&&(t===a.getTime()||t===l.getTime()))return!0}if(n&&z&&!U){const t=e.getTime(),a=Et(z);if(a&&t===a.getTime())return!0}return f(e,n&&z&&!U?Et(z):null)}:void 0,monthsShown:n?2:1,onMonthChange:e=>{_(D()(e).startOf("month").toDate())},isClearable:!0,onFocus:()=>{y||(n?ne.current=G:se.current=W,ie.current=Z,oe.current=O),k(!0),C(!0),A(!0),(({inputRef:e})=>{const t=e.current;setTimeout(()=>{const e=t.selectionStart??0,a=t.value[e],l=t.value[e-1],r=/\d/.test(l),n=/\d/.test(a);e>0?n||r?/\d/.test(a)?t.setSelectionRange(e,e+1):t.setSelectionRange(e-1,e):" "===a?t.setSelectionRange(e+1,e+2):t.setSelectionRange(e+2,e+3):t.setSelectionRange(e,e+1)},0)})({inputRef:w})},onBlur:ue,portalId:K,popperContainer:({children:e})=>(0,I.jsx)("div",{className:s,id:K,"data-discrete-dates":be?"true":void 0,children:e}),onClickOutside:ue,customInput:(0,I.jsx)(Ae,{label:e,isOpen:y,inputRef:w,hasError:Z,required:l,isFocused:N,setIsOpen:C,endAdornment:c,errorMessage:O,isMultiPicker:n,startAdornment:o,inputClassName:i,focusedFirstTime:V,setFocusedFirstTime:A,inputvalueMap:d,setInputValueMap:u,handleInputChange:e=>{const t=e.target.value,a=D()().startOf("day");
1if(n){if(""===t)return q([null,null]),void ce([null,null]);const[e,l]=t.split(" - ").map(e=>e.trim());if(10===e.length){const t=xe(e);if(!t.valid)return ce(le.current,!0,t.error),le.current}if(l&&10===l.length){const e=xe(l);if(!e.valid)return ce(le.current,!0,e.error),le.current}if(10===e.length){const t=D()(e);if(t.isValid()){if("past"===p&&t.isAfter(a))return ce(le.current,!0,"Start date cannot be in the future"),le.current;if("future"===p&&t.isBefore(a))return ce(le.current,!0,"Start date cannot be in the past"),le.current}}if(l&&10===l.length){const e=D()(l);if(e.isValid()){if("past"===p&&e.isAfter(a))return ce(le.current,!0,"End date cannot be in the future"),le.current;if("future"===p&&e.isBefore(a))return ce(le.current,!0,"End date cannot be in the past"),le.current}}const r=ae(e,"future"===p||"all"===p)?D()(e).toDate():z,n=ae(l,"future"===p||"all"===p)?D()(l).toDate():U;return q([r,n]),ce([r,n]),void((r||n)&&_(me(r,n)))}if(10===t.length){const e=xe(t);if(!e.valid)return de(re.current,!0,e.error),Y(re.current),re.current;const l=D()(t);if(l.isValid()){if("past"===p&&l.isAfter(a))return de(re.current,!0,"Date cannot be in the future"),Y(re.current),re.current;if("future"===p&&l.isBefore(a))return de(re.current,!0,"Date cannot be in the past"),Y(re.current),re.current;const e=l.toDate();Y(e),de(e),_(D()(e).startOf("month").toDate())}}else""===t&&(Y(null),de(null))},resetDisplayTrigger:S}),calendarContainer:({children:e})=>n&&r?(0,I.jsxs)("div",{className:"multiDate-calendar-container",children:[(0,I.jsx)(De,{setDateRange:ce,setPresetDateRange:fe,originalDateRange:m}),(0,I.jsxs)("div",{className:"calendar-wrap",children:[(0,I.jsx)("div",{className:"custom-calendar",children:e}),(0,I.jsx)(Pe,{handleCancel:he,handleClear:ge,handleDateSelection:ve,handleClose:pe})]})]}):(0,I.jsxs)("div",{className:"single-calendar-container",children:[(0,I.jsx)("div",{className:"react-datepicker",children:e}),(0,I.jsx)(Pe,{handleCancel:he,handleClear:ge,handleDateSelection:ve,handleClose:pe})]}),onChange:e=>{if(n){const[t,a]=e;if(z&&U&&t&&!a){if(be&&v){const e=t.getTime(),a=Et(U);if(e===(a?a.getTime():NaN))return;if(!ye(t,v))return}return ce([t,null]),q([t,null]),void _(me(t,t))}if(z&&!U&&t&&!a&&D()(t).isBefore(D()(z)))return ce([t,null]),q([t,null]),void _(me(t,t));if(!z&&t&&!a){if(be&&v&&!ye(t,v))return;return ce([t,null]),q([t,null]),void _(me(t,t))}const l=z||t,r=a||z&&t||null,n=r&&D()(l).isAfter(r)?[r,r]:[l,r];n[0]&&n[1]&&(ce(n),q(n),_(me(n[0],n[1])))}else de(e),(t=e)&&_(me(t,t));var t},renderCustomHeader:({monthDate:e,decreaseMonth:t,increaseMonth:a,customHeaderCount:l,prevMonthButtonDisabled:r,nextMonthButtonDisabled:s})=>(0,I.jsx)(Fe,{monthDate:e,decreaseMonth:t,isMultiPicker:n,increaseMonth:a,customHeaderCount:l,prevMonthButtonDisabled:r,nextMonthButtonDisabled:s})})})};var Rt={root:"root__-BRaQ",viewport:"viewport__h8HdZ",grabbable:"grabbable__z0v1X",track:"track__fbgGp",itemWrapper:"itemWrapper__3XiI7",arrow:"arrow__thIIU",arrowLeft:"arrowLeft__LyMki",arrowRight:"arrowRight__1Nx8q"};const $t=({children:e,scrollAmount:t=320,scrollMode:a="amount",containerWidth:l,itemGap:r=8,align:n="start",classNames:s,showArrows:i=!0})=>{var o,c;const d=(0,R.useRef)(null),u=(0,R.useRef)(null),h=(0,R.useRef)(null),[p,m]=(0,R.useState)(!1),[f,v]=(0,R.useState)(!0),[g,x]=(0,R.useState)(!1),b=(0,R.useMemo)(()=>R.Children.toArray(e),[e]),j=()=>{const e=d.current;e&&(m(e.scrollWidth>e.clientWidth+1),v(e.scrollLeft<=1),x(e.scrollLeft+e.clientWidth>=e.scrollWidth-1))};(0,R.useEffect)(()=>{j();const e=new ResizeObserver(j);return d.current&&e.observe(d.current),u.current&&e.observe(u.current),()=>e.disconnect()},[b.length]);const _=(e,t="smooth")=>{const a=d.current;a&&a.scrollTo({left:e,top:0,behavior:t})},w=e=>{const t=getComputedStyle(e),a=parseFloat(t.paddingLeft)||0,l=parseFloat(t.paddingRight)||0;return{winL:e.scrollLeft+a,winR:e.scrollLeft+e.clientWidth-l,pl:a,pr:l}},M=e=>e.offsetLeft,y=e=>e.offsetLeft+e.offsetWidth,C=()=>{const e=d.current,t=u.current;if(!e||!t)return-1;const{winL:a}=w(e);for(let l=0;l<t.children.length;l++){const e=t.children[l];if(y(e)>a-.5)return l}return-1},N=(e,t="smooth")=>{const a=d.current,l=u.current;if(!a||!l)return;const r=l.children[e];if(!r)return;const{pl:n}=w(a),s=(i=M(r)-n,o=a.scrollWidth-a.clientWidth,Math.max(0,Math.min(o,i)));var i,o;_(s,t)},k=l??(null===(o=d.current)||void 0===o?void 0:o.clientWidth)??0,V=Math.min(240,.5*(l??(null===(c=d.current)||void 0===c?void 0:c.clientWidth)??0)||240),A=()=>{const e=d.current;if(!e)return;const n={pack:()=>(e=>{const t=(()=>{const e=d.current,t=u.current;if(!e||!t||!l)return 0;const a=C();if(a<0)return 0;let n=0,s=a;for(;s<t.children.length;){const e=t.children[s].offsetWidth,a=n>0?r:0;if(!(n+a+e<=l+.5))break;n+=a+e,s++}if(0===n){const t=l??e.clientWidth;return.5*Math.max(48,Math.min(t,e.clientWidth))}return n+r})();return e.scrollBy({left:t||V,behavior:"smooth"})})(e),item:()=>(e=>{const{winR:t}=w(e),a=u.current;let l=-1,r=-1;for(let n=0;n<a.children.length;n++){const e=a.children[n],s=M(e),i=y(e);if(s<t&&i>t-.5){l=n;break}-1===r&&s>=t-.5&&(r=n)}return l<0&&(l=r),l>=0?N(l):e.scrollBy({left:V,behavior:"smooth"})})(e),page:()=>(e=>e.scrollBy({left:k||e.clientWidth,behavior:"smooth"}))(e),amount:()=>(e=>e.scrollBy({left:t,behavior:"smooth"}))(e)};return(n[a]||n.amount)()},S=()=>{const e=d.current;if(!e)return;const n={pack:()=>(e=>{const t=(()=>{const e=d.current,t=u.current;if(!e||!t||!l)return 0;const a=C();if(a<=0){const t=l??e.clientWidth;return.5*Math.max(48,Math.min(t,e.clientWidth))}let n=0,s=a-1,i=0;for(;s>=0;){const e=t.children[s].offsetWidth,a=i>0?r:0;if(!(n+a+e<=l+.5))break;n+=a+e,s--,i++}if(0===n){const t=l??e.clientWidth;return.5*Math.max(48,Math.min(t,e.clientWidth))}return n+r})();
1return e.scrollBy({left:-(t||V),behavior:"smooth"})})(e),item:()=>(e=>{const{winL:t}=w(e),a=u.current;let l=-1,r=-1;for(let n=a.children.length-1;n>=0;n--){const e=a.children[n],s=M(e),i=y(e);if(i>t&&s<t+.5){l=n;break}-1===r&&i<=t+.5&&(r=n)}return l<0&&(l=r),l>=0?N(l):e.scrollBy({left:-V,behavior:"smooth"})})(e),page:()=>(e=>e.scrollBy({left:-(k||e.clientWidth),behavior:"smooth"}))(e),amount:()=>(e=>e.scrollBy({left:-t,behavior:"smooth"}))(e)};return(n[a]||n.amount)()},P=(e,t="smooth")=>{const a=d.current,l=u.current;if(!a||!l)return;const r=l.children[e];if(!r)return;const s=r.offsetLeft;if("center"===n){const e=s+r.offsetWidth/2-a.clientWidth/2;return _(e,t)}_(s,t)};(0,R.useImperativeHandle)(h,()=>({scrollLeft:S,scrollRight:A,scrollToIndex:P}),[t,a,n,l,r]),(0,R.useEffect)(()=>{const e=d.current;if(!e)return;const t=t=>{if(!t.defaultPrevented&&Math.abs(t.deltaY)>Math.abs(t.deltaX)&&!t.shiftKey){const a=1;if(!(e.scrollWidth>e.clientWidth+a))return;const l=e.scrollLeft<=a,r=e.scrollLeft+e.clientWidth>=e.scrollWidth-a,n=t.deltaY>0;if(n&&r)return;if(!n&&l)return;t.preventDefault(),e.scrollBy({left:t.deltaY,behavior:"auto"})}};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[]),(0,R.useEffect)(()=>{const e=d.current;if(!e)return;let t=!1,a=0,l=0;const r=r=>{0===r.button&&(e.scrollWidth<=e.clientWidth+1||(t=!0,a=r.clientX,l=e.scrollLeft))},n=r=>{t&&(e.scrollLeft=l-(r.clientX-a))},s=()=>{t=!1};return e.addEventListener("mousedown",r),window.addEventListener("mousemove",n),window.addEventListener("mouseup",s),e.addEventListener("mouseleave",s),()=>{e.removeEventListener("mousedown",r),window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",s),e.removeEventListener("mouseleave",s)}},[]);
1const T=[Rt.root,null==s?void 0:s.root].filter(Boolean).join(" "),D=[Rt.viewport,p&&Rt.grabbable,null==s?void 0:s.viewport].filter(Boolean).join(" "),E=[Rt.track,null==s?void 0:s.track].filter(Boolean).join(" "),L=[Rt.arrow,Rt.arrowLeft,null==s?void 0:s.arrowLeft].filter(Boolean).join(" "),$=[Rt.arrow,Rt.arrowRight,null==s?void 0:s.arrowRight].filter(Boolean).join(" "),F=p&&!f,H=p&&!g;return(0,I.jsxs)("div",{className:T,onKeyDown:e=>{"ArrowLeft"===e.key?(e.preventDefault(),S()):"ArrowRight"===e.key&&(e.preventDefault(),A())},children:[i&&F&&(0,I.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:S,className:L,children:(0,I.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M15.5 19l-7-7 7-7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,I.jsx)("div",{ref:d,className:D,onScroll:e=>j(),children:(0,I.jsx)("div",{ref:u,className:E,children:b.map((e,t)=>(0,I.jsx)("div",{className:Rt.itemWrapper,children:e},`item-${t}-${e}`))})}),i&&H&&(0,I.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:A,className:$,children:(0,I.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M8.5 5l7 7-7 7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})};D().extend(L());const It=({filterSelections:e,setFilterSelections:t,pageFilters:a,excludeFilterFromChip:l,quickFilterChips:r})=>{var n;const[,s]=(0,$.useSearchParams)(),{width:i}=we(),o=i<=650,[c,d]=(0,R.useState)(!1),u=(null==e||null===(n=e.items)||void 0===n?void 0:n.filter(e=>!(null!=l&&l.includes(e.field))))??[],h=(null==r?void 0:r.filter(e=>null!=e.value&&""!==e.value))??[];if(0===u.length&&0===h.length)return null;const p=(0,I.jsxs)(I.Fragment,{children:[h.map((t,a)=>{return(0,I.jsxs)(R.Fragment,{children:[0!==a&&(0,I.jsx)("span",{className:ie,children:(null==e?void 0:e.logicOperator)??"and"}),(0,I.jsx)("div",{className:oe,children:(0,I.jsxs)("div",{className:ce,children:[(0,I.jsxs)("span",{className:de,children:[t.label,": ",(l=t.value,l.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()))]}),(0,I.jsx)("div",{className:ue,onClick:()=>{return e=t.paramKey,a=t.onDelete,s(t=>{const a=new URLSearchParams(t);return a.delete(e),a},{replace:!0}),void(null==a||a());var e,a},children:(0,I.jsx)(H,{})})]})})]},t.paramKey);var l}),u.map((r,n)=>{let s=r.value;const i=G(a,null==r?void 0:r.field)??Z(null==r?void 0:r.field,!0),o=h.length+n;return(0,I.jsx)(he,{index:o,label:`${i} ${Z(null==r?void 0:r.operator,!1)} `,operator:null==r?void 0:r.operator,field:null==r?void 0:r.field,value:s,canBeDeleted:(null==r?void 0:r.canBeDeleted)??!0,filterSelections:e,setFilterSelections:t,pageFilters:a,excludeFilterFromChip:l},n)})]}),m=h.length+u.length;return(0,I.jsx)("div",{className:"tableFilter__wvjrR",children:(0,I.jsxs)("div",{className:"filterWrap__mBsd6",children:[(0,I.jsxs)("div",{className:"filterHeaderRow__lHUir",children:[(0,I.jsxs)("span",{className:"filterByText__udqit",children:[(0,I.jsx)(F,{className:"filterIcon__Edpt0"})," Filter By:"]}),o&&m>0&&(0,I.jsxs)("button",{type:"button",className:"mobileToggle__jIJBQ",onClick:()=>d(e=>!e),"aria-expanded":c,children:[c?"Hide filters":`Show ${m} filter${1===m?"":"s"}`,(0,I.jsx)(B,{className:("mobileToggleIcon__DbES1 "+(c?"mobileToggleIconOpen__VCfMc":"")).trim()})]})]}),(0,I.jsx)("div",{className:"activeFiltersContainer__FwyF6",children:o?c&&(0,I.jsx)("div",{className:"mobileChipList__4pWcf",children:p}):(0,I.jsx)($t,{classNames:{track:"tableFilterTrack__B5vf3"},showArrows:!1,children:(0,I.jsx)("div",{className:"filterChipContainer__0mwX7",children:p})})})]})})},Ft=new Set,Ht=e=>{if("string"!=typeof e)for(const t of e)Ft.add(t);else Ft.add(e)},Bt=e=>{if("string"==typeof e)return!!Ft.has(e)&&(Ft.delete(e),!0);for(const t of e)if("string"==typeof t&&Ft.has(t))return Ft.delete(t),!0;return!1},Zt=async({url:e,method:t,requestBody:a={},headersWithAuth:l,options:r={}})=>(async({url:e,requestBody:t,httpMethod:a,headersWithAuth:l,options:r={}})=>{var n;let s=null;const i=null==r?void 0:r.signal,o=new AbortController;let c;if(i){if(i.aborted)throw new DOMException("Request aborted","AbortError");c=()=>o.abort(i.reason),i.addEventListener("abort",c,{once:!0})}const d=r.timeoutMs??6e4,u=d>0?setTimeout(()=>
1o.abort(new DOMException("Timeout","AbortError")),d):null;try{const n=a.toUpperCase(),i=null!=t&&!["GET","HEAD"].includes(n),c={...l};let d;i&&("string"==typeof t||t instanceof FormData||t instanceof Blob||t instanceof URLSearchParams||t instanceof ArrayBuffer||ArrayBuffer.isView(t)?d=t:(d=JSON.stringify(t),Object.keys(c).some(e=>"content-type"===e.toLowerCase())||(c["Content-Type"]="application/json")));const u=await fetch(e,{method:n,headers:c,body:d,signal:o.signal}),h=await async function(e){const t=e.headers.get("content-type")||"";return 204===e.status?null:t.includes("application/json")?e.json().catch(()=>null):e.text().catch(()=>null)}(u),p={data:h,status:u.status,statusText:u.statusText,headers:v(u.headers)};if(!u.ok)throw Object.assign(new Error(u.statusText||`HTTP ${u.status}`),{response:p});s=p,null!=r&&r.successMessage&&Pt.success(null==r?void 0:r.successMessage,{delayMs:null==r?void 0:r.messageTimeOut})}catch(f){if((e=>{const t=e;return"ERR_CANCELED"===(null==t?void 0:t.code)||"CanceledError"===(null==t?void 0:t.name)||"AbortError"===(null==t?void 0:t.name)||e instanceof DOMException&&"AbortError"===e.name})(f))throw f;const e=f;s=e.response?e.response:e.request?e.request:e.message,null!=r&&r.errorMessage&&Pt(null==r?void 0:r.errorMessage,{delayMs:null==r?void 0:r.messageTimeOut})}finally{u&&clearTimeout(u),i&&c&&i.removeEventListener("abort",c)}const h=!0===(null==r?void 0:r.returnResponse),p=null===(n=s)||void 0===n?void 0:n.status;if(200!==p&&204!==p&&!h){var m;const e=new Error((null===(m=s)||void 0===m||null===(m=m.data)||void 0===m?void 0:m.message)||(null==r?void 0:r.errorMessage)||"Request failed");throw e.response=s,e}return s})({url:e,requestBody:a,httpMethod:t,headersWithAuth:l,options:r});var Ot=a(11554),Gt="svgBlock__bPNEZ",qt="fillWhite__0YjAO",Wt="fillAmexBlue__MNTbq";const Yt=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 102 63.804",className:Gt,...e,children:(0,I.jsxs)("g",{id:"UnionPay_logo",transform:"translate(0 -0.001)",children:[(0,I.jsx)("path",{id:"Path_1160","data-name":"Path 1160",d:"M19.975,0H45.434c3.554,0,5.764,2.9,4.935,6.462L38.516,57.352A8.652,8.652,0,0,1,30.566,63.8H5.109c-3.549,0-5.764-2.9-4.935-6.452L12.032,6.463A8.629,8.629,0,0,1,19.975,0",fill:"#e21836"}),(0,I.jsx)("path",{id:"Path_1161","data-name":"Path 1161",d:"M78.45,0h29.277c3.553,0,1.951,2.9,1.115,6.462L96.991,57.352c-.832,3.553-.572,6.452-4.133,6.452H63.581c-3.561,0-5.764-2.9-4.928-6.452L70.5,6.463A8.646,8.646,0,0,1,78.45,0",transform:"translate(-35.134)",fill:"#00447c"}),(0,I.jsx)("path",{id:"Path_1162","data-name":"Path 1162",d:"M148.886,0h25.459c3.559,0,5.769,2.9,4.933,6.462L167.427,57.352a8.655,8.655,0,0,1-7.955,6.452H134.025c-3.561,0-5.769-2.9-4.935-6.452L140.942,6.463A8.626,8.626,0,0,1,148.886,0",transform:"translate(-77.454)",fill:"#007b84"}),(0,I.jsx)("path",{id:"Path_1163","data-name":"Path 1163",d:"M43.874,40.721a27.357,27.357,0,0,1-3.638-.058c-.095.451-1.862,8.6-1.867,8.607-.38,1.649-.657,2.824-1.6,3.583a2.846,2.846,0,0,1-1.879.654,1.737,1.737,0,0,1-1.951-1.67l-.022-.375s.354-2.208.354-2.221,1.854-7.427,2.186-8.408a.715.715,0,0,0,.027-.112,27.247,27.247,0,0,1-4.293-.058c-.024.08-.114.54-.114.54l-1.893,8.37-.163.71-.315,2.322a3.416,3.416,0,0,0,.4,1.726c.863,1.507,3.323,1.733,4.715,1.733a9.15,9.15,0,0,0,4.612-1.077c1.973-1.166,2.49-2.989,2.95-4.608l.213-.831s1.91-7.713,2.235-8.717A.351.351,0,0,1,43.874,40.721Zm6.5,6.222a5.045,5.045,0,0,0-2.058.482c-.274.141-.534.3-.807.465L47.754,47l-.135-.15c-1.6.325-1.962.368-3.442.576l-.124.083a43.8,43.8,0,0,1-.962,5.3c-.243,1.033-.495,2.075-.747,3.105l.068.131c1.517-.08,1.978-.08,3.3-.058l.107-.116c.168-.858.189-1.059.56-2.8.174-.824.538-2.635.717-3.28a2.458,2.458,0,0,1,.965-.3c.739,0,.649.645.621.9-.032.431-.3,1.84-.577,3.049l-.184.781c-.128.576-.269,1.137-.4,1.708l.056.114c1.5-.08,1.952-.08,3.229-.058l.15-.116c.231-1.34.3-1.7.708-3.651l.206-.9c.4-1.755.6-2.645.3-3.37A1.741,1.741,0,0,0,50.373,46.943Zm7.26,1.837c-.795.153-1.3.254-1.806.32s-.987.153-1.755.259l-.061.055-.056.044c-.08.572-.136,1.067-.242,1.648-.09.6-.228,1.285-.454,2.266a8.9,8.9,0,0,1-.364,1.278,11.047,11.047,0,0,0-.4,1.26l.046.068.038.063c.718-.034,1.188-.058,1.67-.063s.982,0,1.755,0l.068-.055.073-.061c.112-.666.128-.846.2-1.171.068-.349.184-.832.47-2.121.135-.606.286-1.209.426-1.827s.3-1.222.444-1.827l-.022-.073Zm.017-2.477a2.913,2.913,0,0,0-2.843.3c-.851.577-.948,1.4-.228,1.828a2.905,2.905,0,0,0,2.828-.3C58.256,47.537,58.362,46.725,57.649,46.3Zm4.368,9.873a5.428,5.428,0,0,0,4.087-1.6,7.239,7.239,0,0,0,1.4-3.005c.449-1.968.1-2.887-.339-3.447A3.761,3.761,0,0,0,64.1,47a5.629,5.629,0,0,0-3.852,1.333,6.313,6.313,0,0,0-1.709,3.325c-.276,1.205-.594,3.374,1.4,4.182A5.843,5.843,0,0,0,62.018,56.176ZM61.9,51.748c.337-1.491.735-2.742,1.75-2.742.8,0,.853.931.5,2.426a6.686,6.686,0,0,1-.747,2.092,1.233,1.233,0,0,1-.957.623c-.107,0-.742,0-.751-.943A6.419,6.419,0,0,1,61.9,51.748Zm9.257,4.237.114-.116c.162-.858.189-1.06.547-2.8.179-.824.55-2.635.725-3.28a2.425,2.425,0,0,1,.97-.3c.734,0,.645.645.616.9a29.309,29.309,0,0,1-.577,3.049l-.174.781c-.133.577-.279,1.137-.407,1.709l.056.114c1.5-.08,1.939-.08,3.224-.058l.155-.116c.225-1.341.286-1.7.708-3.651l.2-.9c.4-1.755.606-2.644.308-3.369a1.762,1.762,0,0,0-1.8-1.008,5.02,5.02,0,0,0-2.058.482c-.269.141-.538.3-.8.465L73.2,47l-.123-.151c-1.6.325-1.968.369-3.447.577l-.114.083a45.424,45.424,0,0,1-.962,5.3c-.243,1.033-.495,2.075-.747,3.105l.068.131C69.391,55.963,69.844,55.963,71.161,55.985Zm11.024.058c.094-.46.655-3.19.66-3.19s.477-2,.506-2.075a1.186,1.186,0,0,1,.3-.291h.221c2.084,0,4.438,0,6.283-1.357a6.7,6.7,0,0,0,2.5-3.976,6.009,6.009,0,0,0,.173-1.384,2.909,2.909,0,0,0-.5-1.767c-.941-1.316-2.814-1.34-4.977-1.35l-1.066.01c-2.768.034-3.878.024-4.334-.032-.038.2-.111.56-.111.56s-.992,4.6-.992,4.6L78.36,56.026C80.777,56,81.768,56,82.185,56.043Zm1.837-8.164s1.054-4.586,1.049-4.569l.034-.235.015-.179.421.043,2.225.192a1.812,1.812,0,0,1,.965,2.3,3.352,3.352,0,0,1-1.738,2.294,5.492,5.492,0,0,1-2.443.38h-.572Zm6.564,3.954c-.279,1.188-.6,3.357,1.386,4.13a3.874,3.874,0,0,0,1.777.32,2.933,2.933,0,0,0,1.7-.778l-.141.542.09.116c1.428-.06,1.871-.06,3.418-.048l.14-.10
17c.226-1.328.439-2.617,1.026-5.158.286-1.217.572-2.422.865-3.634l-.046-.133c-1.6.3-2.024.359-3.561.577l-.117.095c-.016.123-.032.242-.047.361a2.2,2.2,0,0,0-1.119-.921c-.683-.269-2.288.078-3.667,1.334A6.228,6.228,0,0,0,90.586,51.833Zm3.355.073c.342-1.464.735-2.7,1.752-2.7.643,0,.982.594.913,1.607-.055.253-.114.519-.184.82-.1.435-.212.866-.32,1.3a3.148,3.148,0,0,1-.376.76,1.758,1.758,0,0,1-1.244.6c-.1,0-.73,0-.751-.926A6.362,6.362,0,0,1,93.941,51.905Zm17.518-4.833-.123-.141c-1.581.32-1.867.371-3.319.567l-.107.107c0,.017-.009.044-.017.068l0-.024c-1.081,2.494-1.049,1.956-1.929,3.919,0-.089,0-.145-.01-.24l-.22-4.256-.138-.141c-1.656.32-1.695.371-3.224.567l-.119.107a1.155,1.155,0,0,0-.027.168l.01.022a21.477,21.477,0,0,1,.337,2.3c.089.756.208,1.517.3,2.264.151,1.25.235,1.866.419,3.774-1.033,1.7-1.277,2.349-2.271,3.844l.007.015-.7,1.107a.53.53,0,0,1-.254.231,1.057,1.057,0,0,1-.459.065H99.22l-.576,1.917,1.978.034a2.438,2.438,0,0,0,2.284-1.278l1.244-2.131h-.02l.131-.15C105.1,57.987,111.459,47.072,111.459,47.072ZM90.586,72.255h-.839l3.105-10.271h1.03l.327-1.058.032,1.177c-.038.727.534,1.372,2.037,1.265h1.738l.6-1.978H97.96c-.376,0-.55-.095-.529-.3l-.032-1.2H94.181V59.9a45.122,45.122,0,0,0-4.778.267,5.625,5.625,0,0,0-1.564.773l.315-1.059H85.144l-.627,2.1L81.37,72.412h-.611l-.6,1.963h6l-.2.655h2.955l.2-.655h.829Zm-2.46-8.184a13.457,13.457,0,0,0-1.379.538l.8-2.625h2.392L89.359,63.9A7.775,7.775,0,0,0,88.126,64.071Zm.046,3.75s-.751.094-1.246.206a12.191,12.191,0,0,0-1.4.613l.824-2.732h2.4Zm-1.34,4.458h-2.4l.7-2.305H87.52Zm5.779-6.37h3.459l-.5,1.61h-3.5l-.526,1.76h3.067l-2.322,3.27a.956.956,0,0,1-.47.393,1.378,1.378,0,0,1-.623.179h-.851l-.585,1.927h2.225a2.705,2.705,0,0,0,2.344-1.217l1.592-2.179.342,2.213a1.04,1.04,0,0,0,.572.751,2.061,2.061,0,0,0,.778.332c.349.015.6.027.768.027h1.093l.657-2.157H99.7a1.8,1.8,0,0,1-.747-.119,1.172,1.172,0,0,1-.112-.46l-.347-2.218h-1.42l.623-.742h3.5l.538-1.76H98.493l.5-1.61h3.229l.6-1.985H93.2ZM63.4,72.727l.807-2.686h3.318l.606-2H64.807l.507-1.653h3.245l.6-1.934H61.04l-.589,1.934H62.3L61.8,68.044h-1.85l-.613,2.032h1.844l-1.076,3.553a.848.848,0,0,0,.2.868.888.888,0,0,0,.594.434,3.576,3.576,0,0,0,.851.116H65.5l.666-2.213-1.658.228C64.186,73.062,63.3,73.023,63.4,72.727Zm.381-12.857-.841,1.52a1.763,1.763,0,0,1-.488.633,1.615,1.615,0,0,1-.751.114h-.439l-.586,1.944h1.457a3.3,3.3,0,0,0,1.5-.385c.276-.148.349-.063.562-.269L64.679,63h4.55l.6-2.024H66.5l.581-1.105Zm6.717,12.9c-.078-.112-.022-.308.1-.718l1.244-4.116h4.424c.645-.009,1.11-.017,1.413-.038a2.891,2.891,0,0,0,1.064-.359,1.99,1.99,0,0,0,.773-.713,6.074,6.074,0,0,0,.764-1.731l1.563-5.209-4.591.027a14.55,14.55,0,0,0-2.036.439,8.324,8.324,0,0,0-1.525.974l.415-1.428H71.262l-3.97,13.167a8.12,8.12,0,0,0-.257,1.105c-.007.24.3.478.5.657a1.809,1.809,0,0,0,.926.179c.354.027.858.043,1.554.043H72.2l.669-2.259-1.951.184A.513.513,0,0,1,70.494,72.766Zm2.143-7.614h4.647l-.3.926a3.346,3.346,0,0,0-.614.01H72.351Zm.931-3.105h4.686l-.337,1.115s-2.208-.022-2.562.043a5.227,5.227,0,0,0-2.465,1.1Zm3.524,7.131a.5.5,0,0,1-.184.286.918.918,0,0,1-.475.083h-.662l.039-1.128H73.056l-.112,5.512c0,.4.034.628.325.812A5.527,5.527,0,0,0,75.664,75H77.39l.623-2.063-1.5.083-.5.029a.571.571,0,0,1-.206-.128c-.063-.063-.17-.024-.153-.422l.012-1.413,1.576-.065a2.041,2.041,0,0,0,1.525-.54,1.689,1.689,0,0,0,.5-.936l.264-1.251H77.368Z",transform:"translate(-17.249 -24.412)",fill:"#fefefe"})]})}),zt=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:62.409,viewBox:"0 0 102 62.409",...e,children:(0,I.jsx)("g",{id:"logo",transform:"translate(0 -7.006)",children:(0,I.jsx)("g",{id:"Layer_1_copy_26_",transform:"translate(0 7.006)",children:(0,I.jsx)("path",{id:"Path_1164","data-name":"Path 1164",d:"M66.224,30.065H63.432l.853-4.145h2.368a3.181,3.181,0,0,1,1.692.342,1.193,1.193,0,0,1,.534,1.091c0,.1-.017.2-.023.3-.023.107-.034.226-.059.353a2.622,2.622,0,0,1-.848,1.554A2.711,2.711,0,0,1,66.224,30.065ZM43.868,35.928a2.112,2.112,0,0,0,1.63-.692,4.264,4.264,0,0,0,.91-2.074,4.467,4.467,0,0,0,.065-.446c.011-.147.02-.285.02-.413a1.763,1.763,0,0,0-.413-1.249,1.505,1.505,0,0,0-1.164-.446,2.1,2.1,0,0,0-1.627.7,4.415,4.415,0,0,0-.921,2.113c-.025.144-.048.291-.065.429a3.382,3.382,0,0,0-.017.4,1.725,1.725,0,0,0,.415,1.238A1.514,1.514,0,0,0,43.868,35.928Zm30.145.107c.771.246,1.766-.616,2.2-1.924s.175-2.568-.6-2.809-1.763.613-2.2,1.924C72.959,34.537,73.239,35.8,74.013,36.035ZM52.769,47.749h3.9c.319.045.5-.082.523-.381l.266-.949H53.133Zm12,5.609H66.95l.557-1.972H65.328Zm.887-3.063a8.172,8.172,0,0,1,2.373-.754c.285-1.045.562-1.961.562-1.961H66.407Zm1.093-3.936a12.05,12.05,0,0,1,2.368-.627c.243-.907.557-1.969.557-1.969H67.495Zm-13.345-.992a3.592,3.592,0,0,1,1.916-.537c1.2-.017,2.568,0,2.568,0l.348-1.269H53.924Zm48.437-32.309L90.466,63.4a8.043,8.043,0,0,1-7.109,6.013H58.083c-3.28-.051-5.32-2.732-4.572-6.035l.884-3.916H52.413l-.884,3.916c-.749,3.3,1.288,5.984,4.572,6.035H29.23c-3.278-.051-5.32-2.732-4.569-6.035L27.3,51.694H24.986L22.344,63.38c-.752,3.3,1.291,5.984,4.572,6.035H4.7A4.554,4.554,0,0,1,0,65.222V64.29a6.039,6.039,0,0,1,.133-.9L11.514,13.041c.763-3.337,5.035-6.035,8.369-6.035l22.078.006c-3.314.068-7.488,2.738-8.236,6.03L31.589,22.5H33.9l2.139-9.457c.749-3.295,4.919-5.962,8.233-6.03.045,0,.088-.006.13-.006l17.105.008h9.618l-.057,0c-3.306.1-7.423,2.752-8.174,6.021L60.759,22.5h1.983l2.139-9.457c.749-3.269,4.865-5.919,8.171-6.021.017,0,.034,0,.059,0h.006l24.059.006A4.668,4.668,0,0,1,101.844,13.058ZM23.564,32.752l2.026-9.77H22.547l-2.006,9.657a3.177,3.177,0,0,1-1.17,1.967,3.676,3.676,0,0,1-2.317.7,2.088,2.088,0,0,1-1.772-.706,1.887,1.887,0,0,1-.367-1.215A3.142,3.142,0,0,1,15,32.636l2-9.657h-3.06l-2.026,9.77a6.539,6.539,0,0,0-.147,1.331,3.565,3.565,0,0,0,.87,2.467,5.1,5.1,0,0,0,3.939,1.368,7.
1642,7.642,0,0,0,4.656-1.334A6.088,6.088,0,0,0,23.564,32.752ZM33.14,29.48a2.344,2.344,0,0,0-1.978-.8A3.375,3.375,0,0,0,28.605,29.8l-.308.359.246-1.257H26.381l-1.743,8.722h2.224l.992-5.01a2.634,2.634,0,0,1,.78-1.481,2.081,2.081,0,0,1,1.444-.531,1.039,1.039,0,0,1,.955.4,1.706,1.706,0,0,1,.093,1.238l-1.077,5.385h2.224l1.187-5.942A2.646,2.646,0,0,0,33.14,29.48Zm42.066,7.606.407.472,2.763.071,1.808-8.222-2.4.212-1.012.7a3.185,3.185,0,0,0-3.894-.475C70.335,31.02,68.207,40.07,75.206,37.086ZM77.345,43c-.325,0-.483-.121-.463-.381l-.116-1.012H74.013l.093,2.221c.04.639.432.927,1.2.884h2.02l.5-1.712h-.483ZM58.954,37.629h2.913l1.04-5.108h3.368a5.419,5.419,0,0,0,3.532-1.229,5.531,5.531,0,0,0,1.91-3.246c.057-.246.09-.483.121-.715s.034-.455.034-.647v-.031a2.893,2.893,0,0,0-.961-2.339,4.253,4.253,0,0,0-2.78-.814H61.85Zm-9.53,0h2.221l.995-5.01a2.615,2.615,0,0,1,.777-1.481,2.093,2.093,0,0,1,1.447-.531,1.055,1.055,0,0,1,.955.4,1.711,1.711,0,0,1,.088,1.238l-1.077,5.385h2.224l1.187-5.942a2.66,2.66,0,0,0-.319-2.207,2.345,2.345,0,0,0-1.975-.8,3.375,3.375,0,0,0-2.557,1.122l-.3.359.246-1.257H51.167Zm-2.43,5.123L47.6,41.68H44.693l-1.085,1.627a.763.763,0,0,1-.766.381h-.418L41.953,45.4h2.161a1.933,1.933,0,0,0,1.774-1.012h4.148l.444-1.639H46.993ZM38.811,28.909h-2.4l-1.873,8.717h2.39Zm.774-3.179H37.166l-.449,2.119h2.416Zm.4,8.8a3.21,3.21,0,0,0,.949,2.433,3.566,3.566,0,0,0,2.554.887,4.9,4.9,0,0,0,3.357-1.229,5.73,5.73,0,0,0,1.814-3.32c.04-.212.071-.427.1-.653s.037-.427.037-.6a3.266,3.266,0,0,0-.938-2.461,3.532,3.532,0,0,0-2.557-.9,4.873,4.873,0,0,0-3.368,1.252,5.924,5.924,0,0,0-1.822,3.371c-.04.2-.071.413-.1.636S39.983,34.354,39.983,34.535Zm7.5,19.889H45.052c-.622.042-.848-.15-.678-.571l.7-2.534h2.992l.486-1.78H45.558l.469-1.718H49.1l.486-1.777h-7.64l-.48,1.777h1.825l-.466,1.712H40.91l-.483,1.786h1.91l-.887,3.238c-.277,1.017.025,1.526.915,1.526h4.676Zm12.144-4.447H57.563l-.2.7c0,.209-.167.319-.5.319H56.2l.051-1.077H53.755l-.186,4.95a1.048,1.048,0,0,0,1.238,1.209H57.8l.41-1.464H56.962c-.551,0-.819-.153-.794-.441l.006-1.842H57.5a1.79,1.79,0,0,0,1.862-1.336Zm.121-1.653L61.6,41.629H56.764a5.615,5.615,0,0,0-2.749,1.082l.116-1.043H51.573L47.945,55.056c-.172.641.263.952,1.317.952H52l.4-1.461H51.322c-.28,0-.381-.133-.308-.381l1.283-4.7h5.479C58.942,49.467,59.6,49.091,59.753,48.323Zm10.3,6.937.534-1.9h-.568l2.729-9.6h.565l.574-2.032H70.281a7.3,7.3,0,0,0-2.568.749l.127-.749H64.918l-.576,2.032H64.9l-2.729,9.6h-.559l-.54,1.9h5.586l-.237.825h2.828l.237-.825Zm12.056-9.971h-8.9l-.528,1.842h3.077l-.492,1.709H72.2l-.531,1.837H74.5l-2.2,3.176a1.1,1.1,0,0,1-.862.444h-.8l-.511,1.78h2.594a1.513,1.513,0,0,0,1.529-.825l1.4-2.1.413,1.967c.04.641.492.932,1.368.887h1.7l.506-1.78h-.48c-.325,0-.514-.1-.557-.316l-.359-2.164H76.712l.712-1.077h3.15l.531-1.837H78.274l.489-1.712h2.831Zm7.945-16.379H87.5L84.979,34.8l-.144-5.888H83.493l-1.6.023.763,9.386c-.641,1.277-1.763,4.153-3.834,4.789L78.61,44.6a4.7,4.7,0,0,0,4.007-1.659,13.551,13.551,0,0,0,2.311-3.634Z",transform:"translate(0 -7.006)"})})})}),Ut=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 700 700",className:Gt,...e,children:(0,I.jsx)("switch",{children:(0,I.jsxs)("g",{id:"american-express",children:[(0,I.jsx)("path",{d:"M599 601H99V101h500v500z",className:qt}),(0,I.jsx)("path",{d:"M599 601v-79.227h-60.32l-31.057-34.34-31.213 34.34H277.527V361.727h-64.191l79.622-180.193h76.788l27.411 61.731v-61.731h95.049l16.503 46.518 16.611-46.518H599V101H99v500h500zm-50.16-99.265H599l-66.353-70.364L599 361.807h-49.362l-40.977 44.778-40.583-44.778h-50.172l65.965 69.964-65.965 69.964h48.776l41.178-45.177 40.98 45.177zm11.735-70.305L599 472.309v-81.417l-38.425 40.538zm-223.627 37.922v-21.79h78.957v-31.584h-78.957v-21.787h80.955v-32.384H298.766v139.928h119.137v-32.383h-80.955zm224.27-127.851H599V201.573h-58.771l-31.385 87.153-31.183-87.153h-59.768v139.928h37.779v-97.949l35.983 97.949h33.581l35.982-98.151v98.151zm-186.303 0h42.978l-61.765-139.928h-49.176l-61.771 139.928h41.979l11.596-27.985h64.365l11.794 27.985zm-24.985-59.37h-37.983l18.992-45.776 18.991 45.776z",className:Wt})]})})}),Kt=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 700 700",className:Gt,...e,children:(0,I.jsx)("switch",{children:(0,I.jsxs)("g",{id:"american-express",children:[(0,I.jsx)("path",{d:"M599 601H99V101h500v500z",className:qt}),(0,I.jsx)("path",{d:"M599 601v-79.227h-60.32l-31.057-34.34-31.213 34.34H277.527V361.727h-64.191l79.622-180.193h76.788l27.411 61.731v-61.731h95.049l16.503 46.518 16.611-46.518H599V101H99v500h500zm-50.16-99.265H599l-66.353-70.364L599 361.807h-49.362l-40.977 44.778-40.583-44.778h-50.172l65.965 69.964-65.965 69.964h48.776l41.178-45.177 40.98 45.177zm11.735-70.305L
1599 472.309v-81.417l-38.425 40.538zm-223.627 37.922v-21.79h78.957v-31.584h-78.957v-21.787h80.955v-32.384H298.766v139.928h119.137v-32.383h-80.955zm224.27-127.851H599V201.573h-58.771l-31.385 87.153-31.183-87.153h-59.768v139.928h37.779v-97.949l35.983 97.949h33.581l35.982-98.151v98.151zm-186.303 0h42.978l-61.765-139.928h-49.176l-61.771 139.928h41.979l11.596-27.985h64.365l11.794 27.985zm-24.985-59.37h-37.983l18.992-45.776 18.991 45.776z",className:Wt})]})})}),Xt=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 102 61.2",className:Gt,...e,children:(0,I.jsxs)("g",{id:"_002-logo","data-name":"002-logo",transform:"translate(-0.5 -13.1)",children:[(0,I.jsx)("g",{id:"Group_73817","data-name":"Group 73817",transform:"translate(41.3 13.1)",children:(0,I.jsx)("g",{id:"Group_73816","data-name":"Group 73816",children:(0,I.jsx)("path",{id:"Path_1185","data-name":"Path 1185",d:"M86.9,43.7A30.6,30.6,0,1,1,56.138,13.1,30.575,30.575,0,0,1,86.9,43.7Z",transform:"translate(-25.7 -13.1)",fill:"#ffb600"})})}),(0,I.jsx)("g",{id:"Group_73819","data-name":"Group 73819",transform:"translate(41.3 13.1)",children:(0,I.jsx)("g",{id:"Group_73818","data-name":"Group 73818",children:(0,I.jsx)("path",{id:"Path_1186","data-name":"Path 1186",d:"M56.3,13.1A30.6,30.6,0,1,1,25.7,43.7",transform:"translate(-25.7 -13.1)",fill:"#f7981d"})})}),(0,I.jsx)("g",{id:"Group_73821","data-name":"Group 73821",transform:"translate(71.9 13.1)",children:(0,I.jsx)("g",{id:"Group_73820","data-name":"Group 73820",children:(0,I.jsx)("path",{id:"Path_1187","data-name":"Path 1187",d:"M44.6,13.1a30.6,30.6,0,0,1,0,61.2",transform:"translate(-44.6 -13.1)",fill:"#ff8500"})})}),(0,I.jsx)("g",{id:"Group_73823","data-name":"Group 73823",transform:"translate(0.5 13.1)",children:(0,I.jsx)("g",{id:"Group_73822","data-name":"Group 73822",children:(0,I.jsx)("path",{id:"Path_1188","data-name":"Path 1188",d:"M30.776,13.1A30.6,30.6,0,0,0,31.1,74.3a30.956,30.956,0,0,0,20.562-7.933,29.093,29.093,0,0,0,3.076-3.238H48.424a37.35,37.35,0,0,1-2.267-3.076H57a20.74,20.74,0,0,0,1.781-3.238H44.376a19.3,19.3,0,0,1-1.3-3.238H59.919a32.149,32.149,0,0,0,1.619-9.714,41.791,41.791,0,0,0-.648-6.476H42.11a23.67,23.67,0,0,1,.81-3.238H59.757a19.3,19.3,0,0,0-1.3-3.238H44.214A32.108,32.108,0,0,1,46,27.671H56.843a15.4,15.4,0,0,0-2.429-3.238h-5.99A27.6,27.6,0,0,1,51.5,21.357a29.876,29.876,0,0,0-20.562-7.933c0-.324,0-.324-.162-.324Z",transform:"translate(-0.5 -13.1)",fill:"#ff5050"})})}),(0,I.jsx)("g",{id:"Group_73825","data-name":"Group 73825",transform:"translate(0.5 13.424)",children:(0,I.jsx)("g",{id:"Group_73824","data-name":"Group 73824",children:(0,I.jsx)("path",{id:"Path_1189","data-name":"Path 1189",d:"M.5,43.576a30.575,30.575,0,0,0,30.6,30.6,30.956,30.956,0,0,0,20.562-7.933A29.092,29.092,0,0,0,54.738,63H48.424a37.35,37.35,0,0,1-2.267-3.076H57a20.74,20.74,0,0,0,1.781-3.238H44.376a19.3,19.3,0,0,1-1.3-3.238H59.919a32.149,32.149,0,0,0,1.619-9.714,41.791,41.791,0,0,0-.648-6.476H42.11a23.67,23.67,0,0,1,.81-3.238H59.757a19.3,19.3,0,0,0-1.3-3.238H44.214A32.108,32.108,0,0,1,46,27.548H56.843a15.4,15.4,0,0,0-2.429-3.238h-5.99A27.6,27.6,0,0,1,51.5,21.233,29.876,29.876,0,0,0,30.938,13.3h-.162",transform:"translate(-0.5 -13.3)",fill:"#e52836"})})}),(0,I.jsx)("g",{id:"Group_73827","data-name":"Group 73827",transform:"translate(30.776 13.424)",children:(0,I.jsx)("g",{id:"Group_73826","data-name":"Group 73826",children:(0,I.jsx)("path",{id:"Path_1190","data-name":"Path 1190",d:"M19.524,74.176a30.956,30.956,0,0,0,20.562-7.933A29.092,29.092,0,0,0,43.162,63H36.848a37.35,37.35,0,0,1-2.267-3.076H45.429A20.74,20.74,0,0,0,47.21,56.69H32.8a19.3,19.3,0,0,1-1.3-3.238H48.343a32.149,32.149,0,0,0,1.619-9.714,41.791,41.791,0,0,0-.648-6.476H30.533a23.67,23.67,0,0,1,.81-3.238H48.181a19.3,19.3,0,0,0-1.3-3.238H32.638a32.107,32.107,0,0,1,1.781-3.238H45.267a15.4,15.4,0,0,0-2.429-3.238h-5.99a27.6,27.6,0,0,1,3.076-3.076A29.876,29.876,0,0,0,19.362,13.3H19.2",transform:"translate(-19.2 -13.3)",fill:"#cb2026"})})}),(0,I.jsxs)("g",{id:"Group_73848","data-name":"Group 73848",transform:"translate(3.414 35.767)",children:[(0,I.jsx)("g",{id:"Group_73829","data-name":"Group 73829",transform:"translate(33.838 1.457)",children:(0,I.jsx)("g",{id:"Group_73828","data-name":"Group 73828",transform:"translate(0)",children:(0,I.jsx)("path",{id:"Path_1191","data-name":"Path 1191",d:"M27.9,42.248l.486-2.752a7.012,7.012,0,0,1-.81.162c-1.133,0-1.3-.648-1.
1133-.971l.971-5.667H29.19l.486-3.076H28.057L28.381,28H25.143S23.2,38.686,23.2,39.981a2.43,2.43,0,0,0,2.59,2.752,4.97,4.97,0,0,0,2.1-.486Z",transform:"translate(-23.2 -28)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73831","data-name":"Group 73831",transform:"translate(39.667 3.218)",children:(0,I.jsx)("g",{id:"Group_73830","data-name":"Group 73830",transform:"translate(0)",children:(0,I.jsx)("path",{id:"Path_1192","data-name":"Path 1192",d:"M26.8,36.394c0,4.533,3.076,5.667,5.667,5.667a8.406,8.406,0,0,0,3.4-.486l.648-3.076a9.706,9.706,0,0,1-3.4.81c-3.562,0-2.914-2.59-2.914-2.59h6.638a20.992,20.992,0,0,0,.486-2.914,4.387,4.387,0,0,0-4.7-4.7C29.229,28.784,26.8,32.346,26.8,36.394Zm5.667-4.7c1.781,0,1.457,2.1,1.457,2.267H30.362C30.362,33.8,30.686,31.7,32.467,31.7Z",transform:"translate(-26.8 -29.087)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73833","data-name":"Group 73833",transform:"translate(56.99)",children:(0,I.jsx)("g",{id:"Group_73832","data-name":"Group 73832",transform:"translate(0)",children:(0,I.jsx)("path",{id:"Path_1193","data-name":"Path 1193",d:"M46.4,42.8l.648-3.562a7.957,7.957,0,0,1-2.752.81c-2.267,0-3.238-1.781-3.238-3.724,0-3.886,1.943-5.99,4.21-5.99a5.407,5.407,0,0,1,2.914.971l.486-3.4a11.384,11.384,0,0,0-3.724-.81c-3.724,0-7.448,3.238-7.448,9.39,0,4.048,1.943,6.8,5.829,6.8A14.531,14.531,0,0,0,46.4,42.8Z",transform:"translate(-37.5 -27.1)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73835","data-name":"Group 73835",transform:"translate(14.571 2.914)",children:(0,I.jsx)("g",{id:"Group_73834","data-name":"Group 73834",children:(0,I.jsx)("path",{id:"Path_1194","data-name":"Path 1194",d:"M17.452,28.9a11.467,11.467,0,0,0-3.886.648L13.081,32.3a9.57,9.57,0,0,1,3.562-.648c1.133,0,2.1.162,2.1,1.133,0,.648-.162.81-.162.81H17.129c-2.752,0-5.829,1.133-5.829,4.857,0,2.914,1.943,3.562,3.076,3.562a4.865,4.865,0,0,0,3.4-1.457l-.162,1.3h2.914l1.3-8.9c0-3.886-3.238-4.048-4.371-4.048Zm.648,7.286c0,.486-.324,3.076-2.267,3.076a1.264,1.264,0,0,1-1.3-1.3c0-.81.486-1.943,2.914-1.943A2.553,2.553,0,0,0,18.1,36.186Z",transform:"translate(-11.3 -28.9)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73837","data-name":"Group 73837",transform:"translate(24.448 2.752)",children:(0,I.jsx)("g",{id:"Group_73836","data-name":"Group 73836",children:(0,I.jsx)("path",{id:"Path_1195","data-name":"Path 1195",d:"M21.124,42.076c.81,0,4.857.162,4.857-4.21,0-4.048-3.886-3.238-3.886-4.857,0-.81.648-1.133,1.781-1.133.486,0,2.267.162,2.267.162l.486-2.914a12.3,12.3,0,0,0-3.076-.324c-2.429,0-4.857.971-4.857,4.21,0,3.724,4.048,3.4,4.048,4.857C22.743,38.838,21.61,39,20.8,39a10.588,10.588,0,0,1-2.914-.486L17.4,41.429c.162.324.971.648,3.724.648Z",transform:"translate(-17.4 -28.8)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73839","data-name":"Group 73839",transform:"translate(83.543 0.324)",children:(0,I.jsx)("g",{id:"Group_73838","data-name":"Group 73838",children:(0,I.jsx)("path",{id:"Path_1196","data-name":"Path 1196",d:"M63.129,27.3l-.648,4.371A4.489,4.489,0,0,0,59.4,30.052c-2.914,0-5.5,3.562-5.5,7.771,0,2.59,1.3,5.343,4.048,5.343a4.322,4.322,0,0,0,3.076-1.3L60.862,43H64.1l2.429-15.543Zm-1.457,8.581c0,1.781-.81,4.048-2.59,4.048-1.133,0-1.781-.971-1.781-2.59,0-2.59,1.133-4.21,2.59-4.21C61.024,33.129,61.671,33.938,61.671,35.881Z",transform:"translate(-53.9 -27.3)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73841","data-name":"Group 73841",transform:"translate(0 0.324)",children:(0,I.jsx)("g",{id:"Group_73840","data-name":"Group 73840",children:(0,I.jsx)("path",{id:"Path_1197","data-name":"Path 1197",d:"M5.376,42.843,7.319,31.186l.324,11.657H9.91l4.21-11.657L12.338,42.843h3.4L18.329,27.3H12.986L9.748,36.852,9.586,27.3H4.89L2.3,42.843Z",transform:"translate(-2.3 -27.3)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73843","data-name":"Group 73843",transform:"translate(49.705 3.238)",children:(0,I.jsx)("g",{id:"Group_73842","data-name":"Group 73842",children:(0,I.jsx)("path",{id:"Path_1198","data-name":"Path 1198",d:"M36.562,41.729c.971-5.343,1.133-9.714,3.4-8.9A12.708,12.708,0,0,1,41.1,29.1h-.648c-1.457,0-2.59,1.943-2.59,1.943l.324-1.781H35.1L33,41.89h3.562Z",transform:"translate(-33 -29.1)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73845","data-name":"Group 73845",transform:"translate(67.19 2.914)",children:(0,I.jsx)("g",{id:"Group_73844","data-name":"Group 73844",children:(0,I.jsx)("path",{id:"Path_1199","data-name":"Path 1199",d:"M49.952,28.9a11.467,11.467,0,0,0-3.886.648L45.581,32.3a9.57,9.57,0,0,1,3.562-.648c1.133,0,2.1.162,2.1,1.133,0,.648-.162.81-.162.8
11H49.629c-2.752,0-5.829,1.133-5.829,4.857,0,2.914,1.943,3.562,3.076,3.562a4.865,4.865,0,0,0,3.4-1.457l-.162,1.3h2.914l1.3-8.9C54.486,29.062,51.086,28.9,49.952,28.9Zm.81,7.286c0,.486-.324,3.076-2.267,3.076a1.264,1.264,0,0,1-1.3-1.3c0-.81.486-1.943,2.914-1.943C50.6,36.186,50.6,36.186,50.762,36.186Z",transform:"translate(-43.8 -28.9)",fill:"#fff"})})}),(0,I.jsx)("g",{id:"Group_73847","data-name":"Group 73847",transform:"translate(76.905 3.238)",children:(0,I.jsx)("g",{id:"Group_73846","data-name":"Group 73846",children:(0,I.jsx)("path",{id:"Path_1200","data-name":"Path 1200",d:"M53.362,41.729c.971-5.343,1.133-9.714,3.4-8.9A12.708,12.708,0,0,1,57.9,29.1h-.648c-1.457,0-2.59,1.943-2.59,1.943l.324-1.781H51.9L49.8,41.89h3.562Z",transform:"translate(-49.8 -29.1)",fill:"#fff"})})})]}),(0,I.jsxs)("g",{id:"Group_73869","data-name":"Group 73869",transform:"translate(3.414 35.767)",children:[(0,I.jsx)("g",{id:"Group_73850","data-name":"Group 73850",transform:"translate(33.514 1.457)",children:(0,I.jsx)("g",{id:"Group_73849","data-name":"Group 73849",children:(0,I.jsx)("path",{id:"Path_1201","data-name":"Path 1201",d:"M23,39.981a2.43,2.43,0,0,0,2.59,2.752,6.163,6.163,0,0,0,2.429-.486L28.5,39.5a7.012,7.012,0,0,1-.81.162c-1.133,0-1.3-.648-1.133-.971l.971-5.667h1.781l.486-3.076H28.181L28.5,28",transform:"translate(-23 -28)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73852","data-name":"Group 73852",transform:"translate(41.286 3.218)",children:(0,I.jsx)("g",{id:"Group_73851","data-name":"Group 73851",transform:"translate(0)",children:(0,I.jsx)("path",{id:"Path_1202","data-name":"Path 1202",d:"M27.8,36.394c0,4.533,1.457,5.667,4.048,5.667a8.406,8.406,0,0,0,3.4-.486L35.9,38.5a9.706,9.706,0,0,1-3.4.81c-3.562,0-2.914-2.59-2.914-2.59h6.638A20.992,20.992,0,0,0,36.7,33.8a4.387,4.387,0,0,0-4.7-4.7C28.61,28.784,27.8,32.346,27.8,36.394Zm4.048-4.7c1.781,0,2.1,2.1,2.1,2.267h-4.21c0-.162.324-2.267,2.1-2.267Z",transform:"translate(-27.8 -29.087)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73854","data-name":"Group 73854",transform:"translate(58.61)",children:(0,I.jsx)("g",{id:"Group_73853","data-name":"Group 73853",transform:"translate(0)",children:(0,I.jsx)("path",{id:"Path_1203","data-name":"Path 1203",d:"M45.786,42.8l.648-3.562a7.957,7.957,0,0,1-2.752.81c-2.267,0-3.238-1.781-3.238-3.724,0-3.886,1.943-5.99,4.21-5.99a5.407,5.407,0,0,1,2.914.971l.486-3.4a11.384,11.384,0,0,0-3.724-.81c-3.724,0-5.829,3.238-5.829,9.39,0,4.048.324,6.8,4.21,6.8A14.531,14.531,0,0,0,45.786,42.8Z",transform:"translate(-38.5 -27.1)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73856","data-name":"Group 73856",transform:"translate(14.571 3.238)",children:(0,I.jsx)("g",{id:"Group_73855","data-name":"Group 73855",children:(0,I.jsx)("path",{id:"Path_1204","data-name":"Path 1204",d:"M13.081,32.338a9.57,9.57,0,0,1,3.562-.648c1.133,0,2.1.162,2.1,1.133,0,.648-.162.81-.162.81H17.129c-2.752,0-5.829,1.133-5.829,4.857,0,2.914,1.943,3.562,3.076,3.562a4.865,4.865,0,0,0,3.4-1.457l-.162,1.3h2.914l1.3-8.9c0-3.724-3.238-3.886-4.533-3.886m2.429,6.962c0,.486-1.943,3.076-3.886,3.076a1.264,1.264,0,0,1-1.3-1.3c0-.81.486-1.943,2.914-1.943A13.227,13.227,0,0,0,19.719,36.062Z",transform:"translate(-11.3 -29.1)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73858","data-name":"Group 73858",transform:"translate(24.61 2.752)",children:(0,I.jsx)("g",{id:"Group_73857","data-name":"Group 73857",children:(0,I.jsx)("path",{id:"Path_1205","data-name":"Path 1205",d:"M17.5,41.752a13.7,13.7,0,0,0,3.724.324c.81,0,4.857.162,4.857-4.21,0-4.048-3.886-3.238-3.886-4.857,0-.81.648-1.133,1.781-1.133.486,0,2.267.162,2.267.162l.486-2.914a12.3,12.3,0,0,0-3.076-.324c-2.429,0-3.238.971-3.238,4.21,0,3.724,2.429,3.4,2.429,4.857C22.843,38.838,21.71,39,20.9,39",transform:"translate(-17.5 -28.8)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73860","data-name":"Group 73860",transform:"translate(85.15 0.486)",children:(0,I.jsx)("g",{id:"Group_73859","data-name":"Group 73859",children:(0,I.jsx)("path",{id:"Path_1206","data-name":"Path 1206",d:"M61.866,31.61A4.489,4.489,0,0,0,58.79,29.99c-2.914,0-3.886,3.562-3.886,7.771,0,2.59-.324,5.343,2.429,5.343a4.322,4.322,0,0,0,3.076-1.3l-.162,1.133h3.238L65.914,27.4M61.7,35.819c0,1.781-1.457,4.048-3.238,4.048-1.133,0-1.781-.971-1.781-2.59,0-2.59,1.133-4.21,2.59-4.21A2.474,2.474,0,0,1,61.7,35.819Z",transform:"translate(-54.893 -27.4)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73862","data-name":"Group 73862",transform:"translate(0 0.324)",children:(0,I.jsx)("g",{id:"Group_73861","data-name":"Group 73861",children:(0,I.jsx)("path",{id:"Path_1207","data-name":"Path 1207",d:"M5.376,42.843,7.319,31.186l.324,11.657H9.91l4.21-11.657L12.338,42.843h3.4L18.329,27.3H14.281L9.748,36.852,9.586,27.3H7.8L2.3,42.843Z",transform:"translate(-2.3 -27.3)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73864","data-name":"Group 73864",transform:"translate(49.867 3.238)",children:(0,I.jsx)("g",{id:"Group_73863","data-name":"Group 73863",transform:"translate(0)",children:(0,I.jsx)("path",{id:"Path_1208","data-name":"Path 1208",d:"M33.1,41.729h3.4c.971-5.343,1.133-9.714,3.4-8.9A12.708,12.708,0,0,1,41.033,29.1h-.648c-1.457,0-2.59,1.943-2.59,1.943l.324-1.781",transform:"translate(-33.1 -29.1)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73866","data-name":"Group 73866",transform:"translate(67.19 3.238)",children:(0,I.jsx)("g",{id:"Group_73865","data-name":"Group 73865",children:(0,I.jsx)("path",{id:"Path_1209","data-name":"Path 1209",d:"M45.581,32.338a9.57,9.57,0,0,1,3.562-.648c1.133,0,2.1.162,2.1,1.133,0,.648-.162.81-.162.8
11H49.629c-2.752,0-5.829,1.133-5.829,4.857,0,2.914,1.943,3.562,3.076,3.562a4.865,4.865,0,0,0,3.4-1.457l-.162,1.3h2.914l1.3-8.9c0-3.724-3.238-3.886-4.533-3.886m2.429,6.962c0,.486-1.943,3.076-3.886,3.076a1.264,1.264,0,0,1-1.3-1.3c0-.81.486-1.943,2.914-1.943A14.244,14.244,0,0,0,52.219,36.062Z",transform:"translate(-43.8 -29.1)",fill:"#dce5e5"})})}),(0,I.jsx)("g",{id:"Group_73868","data-name":"Group 73868",transform:"translate(77.067 3.238)",children:(0,I.jsx)("g",{id:"Group_73867","data-name":"Group 73867",children:(0,I.jsx)("path",{id:"Path_1210","data-name":"Path 1210",d:"M49.9,41.729h3.4c.971-5.343,1.133-9.714,3.4-8.9A12.708,12.708,0,0,1,57.833,29.1h-.648c-1.457,0-2.59,1.943-2.59,1.943l.324-1.781",transform:"translate(-49.9 -29.1)",fill:"#dce5e5"})})})]})]})}),Jt=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:60.383,viewBox:"0 0 102 60.383",...e,children:(0,I.jsxs)("g",{id:"Group_73871","data-name":"Group 73871",transform:"translate(-798.5 -362.472)",children:[(0,I.jsx)("path",{id:"Path_1166","data-name":"Path 1166",d:"M110.5,74.549a30.161,30.161,0,0,0-49.21-23.415,32.533,32.533,0,0,1,8.619,14.043H67.4A30.108,30.108,0,0,0,59.48,52.7a30.2,30.2,0,0,0-7.872,12.466H49.1a32.58,32.58,0,0,1,8.529-14.008,30.192,30.192,0,1,0,0,46.787A32.576,32.576,0,0,1,49.1,83.934h2.509A30.2,30.2,0,0,0,59.48,96.4,30.1,30.1,0,0,0,67.4,83.919h2.508a32.53,32.53,0,0,1-8.619,14.043A30.161,30.161,0,0,0,110.5,74.549Z",transform:"translate(789.997 318.115)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1167","data-name":"Path 1167",d:"M90.2,98.322l2.085-11.171h2.635l.276,1.1a3.669,3.669,0,0,1,2.911-1.1l-.825,2.91c-.748,0-2.164-.2-3.068,3.147l-.944,5.114H90.2Zm-40.4-14.01h3.038l-.623,2.96h1.635l-.544,2.414H51.753L50.9,94.2c-.156.857-.078,1.637,1.675,1.364l-.2,2.258a4.31,4.31,0,0,1-2.259.546c-.7,0-3-.429-2.414-3.467l2.1-10.593Zm13.163,9.035c.351-1.792,1.169-6.231-4.166-6.231-4.908,0-5.53,4.868-5.647,5.568s-.194,5.647,5.063,5.647a10.372,10.372,0,0,0,3.9-.507l.467-2.3a22.15,22.15,0,0,1-3.428.272c-1.207,0-3.154.078-2.8-2.453ZM46.925,89.765l.7-2.259a7.248,7.248,0,0,0-3-.428c-.429,0-4.075-.045-4.634,2.648-.428,2.064.327,2.918,1.052,3.232,1.169.507,1.831.974,2.454,1.286a.881.881,0,0,1-.39,1.674,11.994,11.994,0,0,1-4.011-.273l-.428,2.3a12.361,12.361,0,0,0,3.583.39c.739,0,4.362.195,4.867-3.155a2.43,2.43,0,0,0-1.052-2.725,17.158,17.158,0,0,0-2.18-1.208c-.623-.272-1.091-1.323.039-1.635a9.936,9.936,0,0,1,3,.156ZM27.219,98.331,29.75,84.857H24.766l-3.7,8.179-.584-8.179H15.613L13,98.331h3.037L17.91,88.6l.818,9.736H21.61l4.245-9.5-1.792,9.5h3.155Zm3.348-10.865L30.1,89.881a33.3,33.3,0,0,1,3.778-.351c1.052.039,2.22-.117,1.869,1.558-.779.078-6.231-.779-7.087,3.894a2.954,2.954,0,0,0,3.193,3.389,3.938,3.938,0,0,0,2.532-.663l.389.623h2.842l1.208-6.075c.312-1.519.817-5.18-4.284-5.18a20.748,20.748,0,0,0-3.973.39Zm49.226.506a3.865,3.865,0,0,0-2.337-.545,4.184,4.184,0,0,0-3.7,3.7c-.507,3.232,1.713,4.828,4.829,3.778l.9,2.726a8.128,8.128,0,0,1-3.7.7c-3.155,0-6.581-2.8-5.024-8.49A7.321,7.321,0,0,1,77.613,84.2a5.036,5.036,0,0,1,4.167,1.792l-1.987,1.985Zm25.9.467c-.585-.428-.934-1.323-2.376-1.323-1.674,0-4.284-.312-5.763,4.751-.99,3.384,1.012,6.465,3.192,6.465a5.334,5.334,0,0,0,2.648-.9l.391.9h3.27L109.7,84.157h-3.194l-.817,4.283Zm-23.717-.973-.468,2.414a33.3,33.3,0,0,1,3.778-.351c1.052.039,2.221-.117,1.869,1.558-.779.078-6.231-.779-7.087,3.894a2.953,2.953,0,0,0,3.192,3.389,3.939,3.939,0,0,0,2.532-.663l.39.623h2.842l1.208-6.075c.312-1.519.817-5.18-4.285-5.18a20.734,20.734,0,0,0-3.972.39Z",transform:"translate(788.108 301.414)",fill:"#fff",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1168","data-name":"Path 1168",d:"M70.1,95.038h3.778c.195-1.091-.156-2.025-1.363-2.025A2.337,2.337,0,0,0,70.1,95.038ZM48.8,97.063a3.386,3.386,0,0,0-2.61.272c-.974.662-1.246,1.829-.233,2.221a2.072,2.072,0,0,0,2.609-1.287l.234-1.206Zm69.359-.351a3.683,3.683,0,0,0-.195-2.725c-.934-1.246-3.083-.261-3.738,2.181-.428,1.6.507,2.8,1.558,2.8,1.13,0,1.83-.9,2.375-2.259Zm-17.953.351a3.384,3.384,0,0,0-2.609.272c-.974.662-1.247,1.829-.233,2.221a2.07,2.07,0,0,0,2.608-1.287l.234-1.206Z",transform:"translate(774.548 297.698)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1169","data-name":"Path 1169",d:"M99.246,100.584l2.064-11.06h2.609l.272,1.091a3.634,3.634,0,0,1,2.882-1.091l-.779,2.921c-.739,0-2.181-.233-3.077,3.075l-.934,5.064H99.246Z",transform:"translate(751.918 299.162)",fill:"#fff",fillRule:"evenodd"})]})}),Qt=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 102 30.924",className:Gt,...e,children:(0,I.jsxs)("g",{id:"_001-visa","data-name":"001-visa",transform:"translate(0 -175.6)",children:[(0,I.jsx)("path",{id:"Path_1170","data-name":"Path 1170",d:"M184.8,209.543l5.181-29.143h8.1l-5.019,29.143Z",transform:"translate(-147.4 -3.829)",fill:"#3c58bf"}),(0,I.jsx)("path",{id:"Path_1171","data-name":"Path 1171",d:"M184.8,209.543l6.638-29.143h6.
1638l-5.019,29.143Z",transform:"translate(-147.4 -3.829)",fill:"#293688"}),(0,I.jsx)("path",{id:"Path_1172","data-name":"Path 1172",d:"M272.771,176.9a20.536,20.536,0,0,0-7.448-1.3c-8.1,0-13.924,4.048-13.924,9.876,0,4.371,4.048,6.638,7.286,8.1S262.9,196,262.9,197.3c0,1.943-2.59,2.914-4.857,2.914a17.6,17.6,0,0,1-7.771-1.619l-1.133-.486L248,204.743a26.252,26.252,0,0,0,9.229,1.619c8.581,0,14.248-4.048,14.248-10.2,0-3.4-2.1-5.99-6.962-8.1-2.914-1.457-4.7-2.267-4.7-3.724,0-1.3,1.457-2.59,4.7-2.59a14.85,14.85,0,0,1,6.152,1.133l.81.324,1.3-6.314Z",transform:"translate(-197.809)",fill:"#3c58bf"}),(0,I.jsx)("path",{id:"Path_1173","data-name":"Path 1173",d:"M272.771,176.9a20.536,20.536,0,0,0-7.448-1.3c-8.1,0-12.467,4.048-12.467,9.876,0,4.371,2.59,6.638,5.829,8.1S262.9,196,262.9,197.3c0,1.943-2.59,2.914-4.857,2.914a17.6,17.6,0,0,1-7.771-1.619l-1.133-.486L248,204.743a26.252,26.252,0,0,0,9.229,1.619c8.581,0,14.248-4.048,14.248-10.2,0-3.4-2.1-5.99-6.962-8.1-2.914-1.457-4.7-2.267-4.7-3.724,0-1.3,1.457-2.59,4.7-2.59a14.85,14.85,0,0,1,6.152,1.133l.81.324,1.3-6.314Z",transform:"translate(-197.809)",fill:"#293688"}),(0,I.jsx)("path",{id:"Path_1174","data-name":"Path 1174",d:"M374.752,180.4c-1.943,0-3.4.162-4.21,2.1L358.4,209.543h8.743l1.619-4.857h10.362l.971,4.857h7.771l-6.8-29.143Zm-3.724,19.429c.486-1.457,3.238-8.581,3.238-8.581s.648-1.781,1.133-2.914l.486,2.752s1.619,7.286,1.943,8.9h-6.8Z",transform:"translate(-285.867 -3.829)",fill:"#3c58bf"}),(0,I.jsx)("path",{id:"Path_1175","data-name":"Path 1175",d:"M376.7,180.4c-1.943,0-3.4.162-4.21,2.1L358.4,209.543h8.743l1.619-4.857h10.362l.971,4.857h7.771l-6.8-29.143Zm-5.667,19.429c.648-1.619,3.238-8.581,3.238-8.581s.648-1.781,1.133-2.914l.486,2.752s1.619,7.286,1.943,8.9h-6.8Z",transform:"translate(-285.867 -3.829)",fill:"#293688"}),(0,I.jsx)("path",{id:"Path_1176","data-name":"Path 1176",d:"M63.343,201.438l-.81-4.21c-1.457-4.857-6.152-10.2-11.333-12.79l7.28
16,25.9h8.743L80.343,181.2H71.6Z",transform:"translate(-40.838 -4.467)",fill:"#3c58bf"}),(0,I.jsx)("path",{id:"Path_1177","data-name":"Path 1177",d:"M63.343,201.438l-.81-4.21c-1.457-4.857-6.152-10.2-11.333-12.79l7.286,25.9h8.743L80.343,181.2H73.219Z",transform:"translate(-40.838 -4.467)",fill:"#293688"}),(0,I.jsx)("path",{id:"Path_1178","data-name":"Path 1178",d:"M0,180.4l1.457.324C11.819,183.152,18.943,189.3,21.7,196.59l-2.914-13.762c-.486-1.943-1.943-2.429-3.724-2.429Z",transform:"translate(0 -3.829)",fill:"#ffbc00"}),(0,I.jsx)("path",{id:"Path_1179","data-name":"Path 1179",d:"M0,180.4H0c10.362,2.429,18.943,8.743,21.7,16.029l-2.752-11.5a3.952,3.952,0,0,0-3.886-3.076Z",transform:"translate(0 -3.829)",fill:"#f7981d"}),(0,I.jsx)("path",{id:"Path_1180","data-name":"Path 1180",d:"M0,180.4H0c10.362,2.429,18.943,8.743,21.7,16.029l-1.943-6.314c-.486-1.943-1.133-3.886-3.4-4.7Z",transform:"translate(0 -3.829)",fill:"#ed7c00"}),(0,I.jsxs)("g",{id:"Group_73815","data-name":"Group 73815",transform:"translate(10.524 179.81)",children:[(0,I.jsx)("path",{id:"Path_1181","data-name":"Path 1181",d:"M72.076,212.59l-5.5-5.5-2.59,6.152-.648-4.048c-1.457-4.857-6.152-10.2-11.333-12.79l7.28
16,25.9h8.743Z",transform:"translate(-52 -196.4)",fill:"#051244"}),(0,I.jsx)("path",{id:"Path_1182","data-name":"Path 1182",d:"M193.057,296.324,186.1,289.2l-1.3,7.124Z",transform:"translate(-157.924 -270.419)",fill:"#051244"}),(0,I.jsx)("path",{id:"Path_1183","data-name":"Path 1183",d:"M262.086,274.8h0c.648.648.971,1.133.81,1.781,0,1.943-2.59,2.914-4.857,2.914a17.6,17.6,0,0,1-7.771-1.619l-1.133-.486L248,284.029a26.252,26.252,0,0,0,9.229,1.619c5.181,0,9.39-1.457,11.819-4.048Z",transform:"translate(-208.333 -258.933)",fill:"#051244"}),(0,I.jsx)("path",{id:"Path_1184","data-name":"Path 1184",d:"M364,240.81h7.61l1.619-4.857H383.59l.971,4.857h7.771l-2.752-11.819-9.714-9.39.486,2.59s1.619,7.286,1.943,8.9h-6.8c.648-1.619,3.238-8.581,3.238-8.581s.648-1.781,1.133-2.914",transform:"translate(-300.857 -214.905)",fill:"#051244"})]})]})}),ea=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:32.944,viewBox:"0 0 102 32.944",...e,children:(0,I.jsx)("path",{id:"_004-visa-1","data-name":"004-visa-1",d:"M38.729,173.9l-13.352,31.86H16.662L10.1,180.335c-.4-1.568-.75-2.138-1.962-2.8A34.644,34.644,0,0,0,0,174.823l.2-.925H14.223a3.841,3.841,0,0,1,3.8,3.249l3.472,18.44L30.07,173.9h8.659Zm34.135,21.453c.039-8.4-11.629-8.862-11.545-12.622.023-1.148,1.11-2.362,3.493-2.669a15.554,15.554,0,0,1,8.128,1.421l1.446-6.753a22.151,22.151,0,0,0-7.709-1.411c-8.146,0-13.88,4.333-13.929,10.532-.053,4.585,4.091,7.143,7.218,8.67,3.21,1.562,4.284,2.56,4.272,3.961-.021,2.138-2.561,3.073-4.931,3.115a17.248,17.248,0,0,1-8.469-2.014l-1.492,6.985a25.141,25.141,0,0,0,9.168,1.695c8.658,0,14.322-4.287,14.349-10.911m21.511,10.407H102L95.347,173.9H88.308a3.759,3.759,0,0,0-3.509,2.335L72.44,205.759h8.651L82.808,201H93.383Zm-9.2-11.288,4.34-11.963,2.5,11.963ZM50.507,173.9l-6.819,31.86H35.444l6.821-31.86Z",transform:"translate(0 -173.319)"})}),ta=e=>{const t=(0,R.useId)(),a=`linear-gradient-${t}`,l=`linear-gradient-2-${t}`;return(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"100%",height:"100%",viewBox:"0 0 102 17.183",...e,className:`${Gt} discover-cc`,children:[(0,I.jsxs)("defs",{children:[(0,I.jsxs)("linearGradient",{id:a,x1:.288,y1:.047,x2:.712,y2:.953,gradientUnits:"objectBoundingBox",children:[(0,I.jsx)("stop",{offset:.383,stopColor:"#e45e26"}),(0,I.jsx)("stop",{offset:1,stopColor:"#f8a020"})]}),(0,I.jsxs)("linearGradient",{id:l,x1:.249,y1:.067,x2:.751,y2:.933,gradientUnits:"objectBoundingBox",children:[(0,I.jsx)("stop",{offset:0,stopColor:"#80391b"}),(0,I.jsx)("stop",{offset:.111,stopColor:"#843b1b",stopOpacity:.816}),(0,I.jsx)("stop",{offset:.235,stopColor:"#92401d",stopOpacity:.608}),(0,I.jsx)("stop",{offset:.365,stopColor:"#a8481f",stopOpacity:.392}),(0,I.jsx)("stop",{offset:.5,stopColor:"#c75323",stopOpacity:.169}),(0,I.jsx)("stop",{offset:.601,stopColor:"#e45e26",stopOpacity:0}),(0,I.jsx)("stop",{offset:1,stopColor:"#f8a020",stopOpacity:0})]})]}),(0,I.jsxs)("g",{id:`_003-discover-${t}`,"data-name":"003-discover",transform:"translate(0 -211.481)",children:[(0,I.jsx)("path",{id:`Path_1211-${t}`,"data-name":"Path 1211",d:"M0,214.234c0-.265.038-.362.339-.357,1.543.022,3.087-.021,4.629.027a8.757,8.757,0,0,1,6.011,2.334,7.234,7.234,0,0,1,2.171,4.019,8.012,8.012,0,0,1-2.686,7.885,7.6,7.6,0,0,1-4.57,1.875c-1.893.153-3.792.031-5.687.073-.227.005-.2-.118-.2-.26C.006,228.231.01,216.817,0,214.234Zm3.156,12.807c0,.219.045.29.277.287.632-.008,1.265,0,1.894-.072a4.9,4.9,0,0,0,3.063-1.3,5.335,5.335,0,0,0,1.538-5.073,4.848,4.848,0,0,0-3.475-3.942,10.189,10.189,0,0,0-2.926-.289c-.281,0-.378.052-.375.36C3.17,218.674,3.166,225.359,3.156,227.041Z",transform:"translate(0 -1.915)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1212-${t}`,"data-name":"Path 1212",d:"M450.5,223.286l5.077,6.791H454.9c-.954,0-1.909-.015-2.862.009a.6.6,0,0,1-.584-.325q-1.984-2.974-3.988-5.935a.492.492,0,0,1-.052-.081c-.08-.2-.253-.184-.406-.153-.169.035-.088.194-.089.293-.005,1.941-.012,3.881,0,5.821,0,.323-.093.385-.393.378-.836-.021-1.672-.014-2.508,0-.211,0-.3-.035-.3-.275q.011-7.832,0-15.664c0-.177.019-.273.238-.268,1.8.038,3.6-.072,5.4.066a5.55,5.55,0,0,1,3.383,1.285,4.484,4.484,0,0,1,1.4,3.836,4.2,4.2,0,0,1-3.405,4.138C450.666,223.217,450.6,223.249,450.5,223.286Zm-3.59-4.39c0,.717.013,1.434-.007,2.15-.007.251.073.3.3.291.47-.019.94-.009,1.41-.059a2.3,2.3,0,0,0,2.26-2.318,2.115,2.115,0,0,0-1.54-2.295,7.129,7.129,0,0,0-2.125-.217c-.234,0-.313.046-.307.3C446.923,217.462,446.911,218.179,446.911,218.9Z",transform:"translate(-354.742 -1.908)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1213-${t}`,"data-name":"Path 1213",d:"M388.79,214.208c0-.243.049-.322.311-.321q4.18.016,8.361,0c.217,0,.3.042.29.277q-.024,1.125,0,2.251c0,.226-.079.256-.275.256-1.726-.007-3.452,0-5.177-.012-.293,0-.352.083-.347.358.017.975.015,1.951,0,2.926,0,.244.065.3.3.3,1.661-.011,3.323,0,4.984-.013.262,0,.313.079.308.32q-.023,1.077,0,2.154c0,.227-.06.281-.283.28-1.651-.01-3.3,0-4.952-.013-.308,0-.365.094-.362.376.015,1.222.013,2.444,0,3.666,0,.243.048.323.31.321,1.726-.013,3.452,0,5.177-.013.258,0,.315.072.31.317-.016.739-.011,1.479,0,2.219,0,.177-.041.237-.229.237q-4.245-.009-8.49,0c-.258,0-.237-.125-.237-.293C388.8,227.189,388.8,216.792,388.79,214.208Z",transform:"translate(-310.825 -1.923)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1214-${t}`,"data-name":"Path 1214",d:"M97.421,224.385a3.823,3.823,0,0,0,1.817,1.811,3.243,3.243,0,0,0,2.73.114,2.111,2.111,0,0,0,1.329-1.956,1.947,1.947,0,0,0-1.229-1.9c-.9-.449-1.871-.715-2.79-1.114A5.7,5.7,0,0,1,96.9,219.7a3.288,3.288,0,0,1-.662-1.643,4.525,4.525,0,0,1,3.339-5.188,6.719,6.719,0,0,1,6.249,1.384c.138.108.185.184.053.349q-.711.891-1.385,1.81c-.136.187-.2.134-.32,0a3.15,3.15,0,0,0-1.841-1.086,2.561,2.561,0,0,0-2.512.774,1.386,1.386,0,0,0,.287,2.123,9.7,9.7,0,0,0,2.2,1.006,15.433,15.433,0,0,1,2.06.954,4.027,4.027,0,0,1,2.188,3.46,5.111,5.111,0,0,1-3.833,5.566,6.409,6.409,0,0,1-7.264-2.7c-.073-.108-.081-.172.02-.268C96.13,225.63,96.768,225.012,97.421,224.385Z",transform:"translate(-76.278 -0.897)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1215-${t}`,"data-name":"Path 1215",d:"M304.165,213.9c1.1,0,2.15.007,3.2-.006a.33.33,0,0,1,.365.257c.966,2.446,3.751,9.452,4.179,10.534.2-.216,2.978-7.272,4.289-10.545.
1052-.131.09-.246.281-.244,1.071.009,2.142,0,3.259,0-.255.612-4.843,11.5-6.885,16.361a.329.329,0,0,1-.371.248c-.407-.015-.815-.014-1.221,0a.3.3,0,0,1-.33-.223c-1.259-3.053-5.674-13.72-6.618-16C304.263,214.161,304.221,214.042,304.165,213.9Z",transform:"translate(-243.17 -1.926)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1216-${t}`,"data-name":"Path 1216",d:"M168.414,216.884a6.938,6.938,0,0,0-1.854-1.368,5.146,5.146,0,0,0-6.969,2.947,5.657,5.657,0,0,0,1.072,6.074,5.12,5.12,0,0,0,4.073,1.613,4.815,4.815,0,0,0,3.211-1.334c.135-.119.266-.244.4-.365.114.062.067.159.067.234,0,1.061,0,2.123,0,3.184a.311.311,0,0,1-.2.344,8.744,8.744,0,0,1-9.9-1.657,8.264,8.264,0,0,1-2.4-5.806,8.422,8.422,0,0,1,5.985-8.2,8.278,8.278,0,0,1,6.321.495c.11.055.2.1.194.254C168.411,214.469,168.414,215.637,168.414,216.884Z",transform:"translate(-124.649 -0.533)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1217-${t}`,"data-name":"Path 1217",d:"M76.707,229.735c0,.266-.039.371-.343.362-.857-.025-1.715-.015-2.573,0-.208,0-.272-.051-.272-.266q.009-7.831,0-15.663c0-.235.077-.282.293-.279.847.011,1.694.017,2.541,0,.28-.007.358.061.356.35C76.7,216.827,76.7,227.162,76.707,229.735Z",transform:"translate(-58.776 -1.92)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsx)("path",{id:`Path_1218-${t}`,"data-name":"Path 1218",d:"M503.923,216.848l.458.613h-.062c-.086,0-.172,0-.258,0a.054.054,0,0,1-.053-.029c-.119-.179-.24-.357-.36-.536a.038.038,0,0,1,0-.007c-.007-.018-.023-.017-.037-.014s-.008.017-.008.026c0,.175,0,.35,0,.526,0,.029-.008.035-.036.034-.075,0-.151,0-.226,0-.019,0-.027,0-.027-.025q0-.707,0-1.414c0-.016,0-.024.021-.024.162,0,.325-.006.487.006a.5.5,0,0,1,.305.116.405.405,0,0,1,.126.346.379.379,0,0,1-.307.374A.137.137,0,0,0,503.923,216.848Zm-.324-.4c0,.065,0,.13,0,.194,0,.023.007.027.027.026.043,0,.085,0,.127-.005a.208.208,0,0,0,.2-.209.191.191,0,0,0-.139-.207.651.651,0,0,0-.192-.02c-.021,0-.028,0-.028.027C503.6,216.322,503.6,216.386,503.6,216.451Z",transform:"translate(-402.381 -3.611)",fill:"#231f20",fillRule:"evenodd"}),(0,I.jsxs)("g",{id:`Group_73870-${t}`,"data-name":"Group 73870",transform:"translate(44.772 211.481)",children:[(0,I.jsx)("ellipse",{id:`Ellipse_1-${t}`,"data-name":"Ellipse 1",cx:8.561,cy:8.591,rx:8.561,ry:8.591,transform:"translate(0 0)",fill:`url(#${a})`}),(0,I.jsx)("ellipse",{id:`Ellipse_2-${t}`,"data-name":"Ellipse 2",cx:8.561,cy:8.591,rx:8.561,ry:8.591,transform:"translate(0 0)",fill:`url(#${l})`})]})]})]})},aa=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:17.183,viewBox:"0 0 102 17.183",...e,className:"discover-cc",children:(0,I.jsxs)("g",{id:"_003-discover","data-name":"003-discover",transform:"translate(0 -211.481)",children:[(0,I.jsx)("path",{id:"Path_1211","data-name":"Path 1211",d:"M0,214.234c0-.265.038-.362.339-.357,1.543.022,3.087-.021,4.629.027a8.757,8.757,0,0,1,6.011,2.334,7.234,7.234,0,0,1,2.171,4.019,8.012,8.012,0,0,1-2.686,7.885,7.6,7.6,0,0,1-4.57,1.875c-1.893.153-3.792.031-5.687.073-.227.005-.2-.118-.2-.26C.006,228.231.01,216.817,0,214.234Zm3.156,12.807c0,.219.045.29.277.287.632-.008,1.265,0,1.894-.072a4.9,4.9,0,0,0,3.063-1.3,5.335,5.335,0,0,0,1.538-5.073,4.848,4.848,0,0,0-3.475-3.942,10.189,10.189,0,0,0-2.926-.289c-.281,0-.378.052-.375.36C3.17,218.674,3.166,225.359,3.156,227.041Z",transform:"translate(0 -1.915)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1212","data-name":"Path 1212",d:"M450.5,223.286l5.077,6.791H454.9c-.954,0-1.909-.015-2.862.009a.6.6,0,0,1-.584-.325q-1.984-2.974-3.988-5.935a.492.492,0,0,1-.052-.081c-.08-.2-.253-.184-.406-.153-.169.035-.088.194-.089.293-.005,1.941-.012,3.881,0,5.821,0,.323-.093.385-.393.378-.836-.021-1.672-.014-2.508,0-.211,0-.3-.035-.3-.275q.011-7.832,0-15.664c0-.177.019-.273.238-.268,1.8.038,3.6-.072,5.4.066a5.55,5.55,0,0,1,3.383,1.285,4.484,4.484,0,0,1,1.4,3.836,4.2,4.2,0,0,1-3.405,4.138C450.666,223.217,450.6,223.249,450.5,223.286Zm-3.59-4.39c0,.717.013,1.434-.007,2.15-.007.251.073.3.3.291.47-.019.94-.009,1.41-.059a2.3,2.3,0,0,0,2.26-2.318,2.115,2.115,0,0,0-1.54-2.295,7.129,7.129,0,0,0-2.125-.217c-.234,0-.313.046-.307.3C446.923,217.462,446.911,218.179,446.911,218.9Z",transform:"translate(-354.742 -1.908)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1213","data-name":"Path 1213",d:"M388.79,214.208c0-.243.049-.322.311-.321q4.18.016,8.361,0c.217,0,.3.042.29.277q-.024,1.125,0,2.251c0,.226-.079.256-.275.256-1.726-.007-3.452,0-5.177-.012-.293,0-.352.083-.347.358.017.975.015,1.951,0,2.926,0,.244.065.3.3.3,1.661-.011,3.323,0,4.984-.013.262,0,.313.079.308.32q-.023,1.077,0,2.154c0,.227-.06.281-.283.28-1.651-.01-3.3,0-4.952-.013-.308,0-.365.094-.362.376.015,1.222.013,2.444,0,3.666,0,.243.048.323.31.321,1.726-.013,3.452,0,5.177-.013.258,0,.315.072.31.317-.016.739-.011,1.479,0,2.219,0,.177-.041.237-.229.237q-4.245-.009-8.49,0c-.258,0-.237-.125-.237-.293C388.8,227.189,388.8,216.792,388.79,214.208Z",transform:"translate(-310.825 -1.923)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1214","data-name":"Path 1214",d:"M97.421,224.385a3.823,3.823,0,0,0,1.817,1.811,3.243,3.243,0,0,0,2.73.114,2.111,2.111,0,0,0,1.329-1.956,1.947,1.947,0,0,0-1.229-1.9c-.9-.449-1.871-.715-2.79-1.114A5.7,5.7,0,0,1,96.9,219.7a3.288,3.288,0,0,1-.662-1.643,4.525,4.525,0,0,1,3.339-5.188,6.719,6.719,0,0,1,6.249,1.384c.138.108.185.184.053.349q-.711.891-1.385,1.81c-.136.187-.2.134-.32,0a3.15,3.15,0,0,0-1.841-1.086,2.561,2.561,0,0,0-2.512.774,1.386,1.386,0,0,0,.287,2.123,9.7,9.7,0,0,0,2.2,1.006,15.433,15.433,0,0,1,2.06.954,4.027,4.027,0,0,1,2.188,3.46,5.111,5.111,0,0,1-3.833,5.566,6.409,6.409,0,0,1-7.264-2.7c-.073-.108-.081-.172.02-.268C96.13,225.63,96.768,225.012,97.421,224.385Z",transform:"translate(-76.278 -0.897)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1215","data-name":"Path 1215",d:"M304.165,213.9c1.1,0,2.15.007,3.2-.006a.33.33,0,0,1,.365.257c.966,2.446,3.751,9.452,4.179,10.534.2-.216,2.978-7.272,4.289-10.545.
1052-.131.09-.246.281-.244,1.071.009,2.142,0,3.259,0-.255.612-4.843,11.5-6.885,16.361a.329.329,0,0,1-.371.248c-.407-.015-.815-.014-1.221,0a.3.3,0,0,1-.33-.223c-1.259-3.053-5.674-13.72-6.618-16C304.263,214.161,304.221,214.042,304.165,213.9Z",transform:"translate(-243.17 -1.926)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1216","data-name":"Path 1216",d:"M168.414,216.884a6.938,6.938,0,0,0-1.854-1.368,5.146,5.146,0,0,0-6.969,2.947,5.657,5.657,0,0,0,1.072,6.074,5.12,5.12,0,0,0,4.073,1.613,4.815,4.815,0,0,0,3.211-1.334c.135-.119.266-.244.4-.365.114.062.067.159.067.234,0,1.061,0,2.123,0,3.184a.311.311,0,0,1-.2.344,8.744,8.744,0,0,1-9.9-1.657,8.264,8.264,0,0,1-2.4-5.806,8.422,8.422,0,0,1,5.985-8.2,8.278,8.278,0,0,1,6.321.495c.11.055.2.1.194.254C168.411,214.469,168.414,215.637,168.414,216.884Z",transform:"translate(-124.649 -0.533)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1217","data-name":"Path 1217",d:"M76.707,229.735c0,.266-.039.371-.343.362-.857-.025-1.715-.015-2.573,0-.208,0-.272-.051-.272-.266q.009-7.831,0-15.663c0-.235.077-.282.293-.279.847.011,1.694.017,2.541,0,.28-.007.358.061.356.35C76.7,216.827,76.7,227.162,76.707,229.735Z",transform:"translate(-58.776 -1.92)",fillRule:"evenodd"}),(0,I.jsx)("path",{id:"Path_1218","data-name":"Path 1218",d:"M503.923,216.848l.458.613h-.062c-.086,0-.172,0-.258,0a.054.054,0,0,1-.053-.029c-.119-.179-.24-.357-.36-.536a.038.038,0,0,1,0-.007c-.007-.018-.023-.017-.037-.014s-.008.017-.008.026c0,.175,0,.35,0,.526,0,.029-.008.035-.036.034-.075,0-.151,0-.226,0-.019,0-.027,0-.027-.025q0-.707,0-1.414c0-.016,0-.024.021-.024.162,0,.325-.006.487.006a.5.5,0,0,1,.305.116.405.405,0,0,1,.126.346.379.379,0,0,1-.307.374A.137.137,0,0,0,503.923,216.848Zm-.324-.4c0,.065,0,.13,0,.194,0,.023.007.027.027.026.043,0,.085,0,.127-.005a.208.208,0,0,0,.2-.209.191.191,0,0,0-.139-.207.651.651,0,0,0-.192-.02c-.021,0-.028,0-.028.027C503.6,216.322,503.6,216.386,503.6,216.451Z",transform:"translate(-402.381 -3.611)",fillRule:"evenodd"}),(0,I.jsxs)("g",{id:"Group_73870","data-name":"Group 73870",transform:"translate(44.772 211.481)",children:[(0,I.jsx)("ellipse",{id:"Ellipse_1","data-name":"Ellipse 1",cx:8.561,cy:8.591,rx:8.561,ry:8.591,transform:"translate(0 0)"}),(0,I.jsx)("ellipse",{id:"Ellipse_2","data-name":"Ellipse 2",cx:8.561,cy:8.591,rx:8.561,ry:8.591,transform:"translate(0 0)"})]})]})}),la=e=>(0,I.jsxs)("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 102 76.43",className:`${Gt} cc-icon cc--jcb`,...e,children:[(0,I.jsx)("rect",{x:.01,y:16.96,width:31.39,height:41.89,className:"jcb-white"}),(0,I.jsxs)("g",{id:"b",children:[(0,I.jsx)("rect",{x:70.61,y:15.51,width:31.39,height:41.89,className:"jcb-white"}),(0,I.jsx)("rect",{x:35.39,y:16.96,width:31.39,height:41.89,className:"jcb-white"}),(0,I.jsx)("path",{id:"c",className:"jcb-blue",d:"M12.36,0C5.64.23.24,5.63.01,12.35.01,15.94.01,30.16,0,44.29c2.91,1.33,5.99,2.24,9.16,2.73,5.01.35,8.12-1.3,8.6-5.48l-.03-15.5h11.08v15.15c-.58,8.68-8.2,10.45-19.78,9.86-3.04-.22-6.06-.7-9.03-1.43,0,14.14,0,26.81,0,26.81h19.29c5.26,0,12.11-4.92,12.11-12.4V0H12.36Z"}),(0,I.jsx)("path",{id:"d",className:"jcb-red",d:"M47.74,0c-6.72.23-12.12,5.63-12.35,12.35v16.9c3.87-3.02,10.11-4.51,18.05-3.89,3.27.19,6.51.7,9.68,1.52v5.36c-2.91-1.43-6.05-2.36-9.28-2.73-7.49-.54-11.42,2.97-11.42,8.64,0,5.11,3.04,9.47,11.39,8.89,3.21-.45,6.34-1.37,9.29-2.72l.02,5.2c-3.85,1.05-7.82,1.63-11.82,1.71-7.4.06-12.62-1.51-15.92-4.06,0,15.1,0,29.27,0,29.27h19.29c5.26,0,12.11-4.92,12.11-12.4V0h-19.04Z"}),(0,I.jsx)("path",{id:"e",className:"jcb-green",d:"M84.34,39.77c-2.11.02-6.72-.02-7.55,0v6.75s7.54.02,7.54.02c1.86-.06,3.33-1.59,3.31-3.45,0-1.83-1.47-3.32-3.3-3.33h0Z"}),(0,I.jsx)("path",{id:"f",className:"jcb-green",d:"M86.72,32.99c.08-1.69-1.21-3.12-2.9-3.21-.03,0-.07,0-.1,0-2.18.05-6.1-.05-6.96.02l-.02,6.15,7.14.05c1.59-.11,2.83-1.42,2.85-3.01Z"}),(0,I.jsx)("path",{id:"g",className:"jcb-green",d:"M82.96,0c-6.72.23-12.12,5.63-12.35,12.35v13.59h18.33c3.65,0,7.94,1.56,7.94,6,0,2.38-1.27,5.07-5.83,5.95v.1c2.67,0,7.29,1.56,7.29,6.27s-4.99,6.21-7.67,6.21l-20.07.02c0,13.8,0,25.96,0,25.96h19.29c5.26,0,12.11-4.92,12.11-12.4V0h-19.04Z"})]})]}),ra=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:76.419,viewBox:"0 0 102 76.419",...e,children:(0,I.jsxs)("g",{id:"jcb",transform:"translate(0 -64.203)",children:[(0,I.jsxs)("g",{id:"Group_73872","data-name":"Group 73872",transform:"translate(0 64.203)",children:[(0,I.jsx)("path",{id:"Path_1224","data-name":"Path 1224",d:"M12.444,64.2A12.792,12.792,0,0,0,.1,76.547c0,3.592,0,17.808-.006,31.939a34.839,34.839,0,0,0,9.156,2.729c5.009.354,8.115-1.3,8.6-5.476l-.025-15.5H28.9v15.149c-.582,8.677-8.195,10.444-19.782,9.86a53.651,53.651,0,0,1-9.025-1.432c0,14.143-.006,26.808-.006,26.808H19.368c5.262,0,12.111-4.917,12.111-12.393V64.2Z",transform:"translate(-0.069 -64.203)"}),(0,I.jsx)("path",{id:"Path_1225","data-name":"Path 1225",d:"M0,286.416v5.336l.023.006c0-1.76,0-3.543,0-5.327Z",transform:"translate(0 -242.147)"})]}),(0,I.jsx)("g",{id:"Group_73873","data-name":"Group 73873",transform:"translate(35.395 64.203)",children:(0,I.jsx)("path",{id:"Path_1226","data-name":"Path 1226",d:"M190.024,64.2a12.792,12.792,0,0,0-12.345,12.344c0,2.276,0,8.816,0,16.9,3.871-3.023,10.109-4.506,18.048-3.894a50.682,50.682,0,0,1,9.68,1.518v5.363a28.382,28.382,0,0,0-9.275-2.732c-7.488-.54-11.417,2.969-11.417,8.64,0,5.1,3.036,9.472,11.384,8.89a33.6,33.6,0,0,0,9.286-2.724l.023,5.2a48.406,48.406,0,0,1-11.813,1.706c-7.4.06-12.618-1.511-15.918-4.06,0,15.1-.006,29.268-.006,29.268h19.282c5.262,0,12.111-4.917,12.111-12.393V64.2Z",transform:"translate(-177.667 -64.204)"})}),(0,I.jsx)("path",{id:"Path_1227","data-name":"Path 1227",d:"M392.966,263.767c-2.112.02-6.718-.021-7.551,0l-.013,6.752,7.551.025a3.425,3.425,0,0,0,3.314-3.447A3.314,3.314,0,0,0,392.966,263.767Z",transform:"translate(-308.623 -159.801)"}),(0,I.jsx)("path",{id:"Path_1228","data-name":"Path 1228",d:"M395.2,216.855a3.055,3.055,0,0,0-3-3.209c-2.175.051-6.1-.054-6.957.022l-.025,6.147,7.134.051A3.05,3.05,0,0,0,395.2,216.855Z",transform:"translate(-308.471 -119.667)"}),(0,I.jsx)("path",{id:"Path_1229","data-name":"Path 1229",d:"M366.777,64.2a12.792,12.792,0,0,0-12.345,12.344c0,1.955,0,7.061,0,13.585H372.76c3.647,0,7.942,1.56,7.942,5.995,0,2.378-1.266,5.072-5.83,5.945v.1c2.665,0,7.285,1.56,7.285,
16.265,0,4.857-4.992,6.206-7.665,6.206l-20.067.02c0,13.8-.006,25.958-.006,25.958H373.7c5.262,0,12.111-4.917,12.111-12.393V64.2Z",transform:"translate(-283.813 0)"})]})}),na=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 102 61.03",className:Gt,...e,children:(0,I.jsxs)("g",{id:"layer1",transform:"translate(-457.41 -631.504)",children:[(0,I.jsx)("path",{id:"path618",d:"M508.41,684.638a30.517,30.517,0,1,0-20.463,7.9,30.409,30.409,0,0,0,20.463-7.9",fill:"#0066cb"}),(0,I.jsx)("path",{id:"path620",d:"M520.205,686.464a30.524,30.524,0,0,0,0-45.238",transform:"translate(-11.795 -1.826)",fill:"#0066cb"}),(0,I.jsx)("path",{id:"path622",d:"M520.205,686.464a30.524,30.524,0,0,0,0-45.238",transform:"translate(-11.795 -1.826)",fill:"none",stroke:"#0066cb",strokeWidth:.31}),(0,I.jsx)("path",{id:"path624",d:"M538.552,631.505a30.406,30.406,0,0,0-20.509,7.9,33.138,33.138,0,0,0-3.085,3.235h6.171a25.159,25.159,0,0,1,2.315,3.229h-10.8q-.953,1.552-1.77,3.229h14.338a27.1,27.1,0,0,1,1.27,3.235H509.6a25.656,25.656,0,0,0-.907,3.229H527.39a30.3,30.3,0,0,1,.681,6.458,29.818,29.818,0,0,1-1.589,9.693H509.6a27.073,27.073,0,0,0,1.27,3.234h14.338a28.647,28.647,0,0,1-1.77,3.23h-10.8a30.647,30.647,0,0,0,2.315,3.23h6.171a33.213,33.213,0,0,1-3.085,3.234,30.515,30.515,0,1,0,20.509-53.133",transform:"translate(-9.633 0)",fill:"#cc0001"}),(0,I.jsx)("path",{id:"path628",d:"M485.291,675.95h-3.857l2.268-11.894-5.218,11.894h-3.176l-.635-11.826-2.54,11.826h-3.494l2.949-15.469h6.035l.09,9.575,4.175-9.575h6.4l-2.994,15.469",transform:"translate(-2.109 -5.443)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path630",d:"M540.056,675.794a9.894,9.894,0,0,1-2.722.409c-1.951,0-3-.973-3-2.764a4.961,4.961,0,0,1,.09-1.129l.227-1.233.182-.992,1.77-9.607h3.766l-.544,2.888h1.951l-.544,3.055h-1.951l-1,5.25a2.522,2.522,0,0,0-.045.521c0,.651.363.936,1.27.936a3.6,3.6,0,0,0,1.044-.118l-.5,2.783",transform:"translate(-14.45 -5.442)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path632",d:"M522.5,667.945c0,1.593.863,2.684,2.9,3.508,1.543.633,1.814.819,1.814,1.389,0,.788-.681,1.139-2.222,1.139a12.279,12.279,0,0,1-3.448-.5l-.5,2.906.136.025.726.13c.227.037.545.075,1,.111.907.068,1.633.106,2.132.106,4.039,0,5.9-1.333,5.9-4.2,0-1.723-.772-2.739-2.678-3.5-1.633-.638-1.814-.775-1.814-1.363,0-.682.635-1.029,1.861-1.029a24.406,24.406,0,0,1,2.767.193l.545-2.913a29.975,29.975,0,0,0-3.358-.248c-4.31,0-5.808,1.934-5.762,4.252",transform:"translate(-11.952 -6.046)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path634",d:"M499.251,670.949a6.974,6.974,0,0,0-.863-.055c-2.132,0-3.221.644-3.221,1.914a1.245,1.245,0,0,0,1.361,1.283c1.542,0,2.677-1.282,2.722-3.142Zm2.586,5.6H498.66l.091-1.307a5.185,5.185,0,0,1-3.993,1.524,3.292,3.292,0,0,1-3.494-3.434c0-3.068,2.45-4.853,6.67-4.853a12.773,12.773,0,0,1,1.543.1,2.493,2.493,0,0,0,.181-.818c0-.837-.681-1.147-2.45-1.147a14.17,14.17,0,0,0-3.176.353l-.5.13-.363.08.544-2.825a17.189,17.189,0,0,1,4.537-.669c3.267,0,4.992,1.277,4.992,3.694a11.61,11.61,0,0,1-.318,2.492l-.772,4.462-.136.8-.091.638-.091.44v.342",transform:"translate(-6.359 -6.045)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path636",d:"M515.394,668.785c0-.26.045-.477.045-.638,0-1.022-.681-1.624-1.815-1.624a2.465,2.465,0,0,0-2.4,2.255l4.175.007Zm1.86,7.487a14.768,14.768,0,0,1-3.9.508c-4.265,0-6.443-1.934-6.443-5.633,0-4.32,2.813-7.5,6.625-7.5,3.13,0,5.127,1.779,5.127,4.573a10.824,10.824,0,0,1-.5,3.1h-7.532a1.422,1.422,0,0,0-.045.4c0,1.456,1.135,2.2,3.357,2.2a10.08,10.08,0,0,0,3.948-.794l-.635,3.144",transform:"translate(-9.297 -6.038)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path638",d:"M562.583,669.327c0-1.314-.544-2.56-2.086-2.56-1.951,0-3.13,2.293-3.13,4.313,0,1.7.816,2.852,2.178,2.826a3.714,3.714,0,0,0,2.9-3.081A7.747,7.747,0,0,0,562.583,669.327Zm3.857,1.5c-.545,4.183-3.494,6.038-7.4,6.038-4.266,0-5.99-2.6-5.99-5.795,0-4.463,2.9-7.481,7.442-7.481,3.947,0,6.035,2.485,6.035,5.678a8.82,8.82,0,0,1-.092,1.56",transform:"translate(-17.965 -6.028)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path640",d:"M570.9,676.933h.136a.265.265,0,0,0,.091-.019c.045-.019.046-.062.046-.1s0-.068-.046-.086c0-.019-.091-.019-.136-.019H
1570.9v.223Zm0,.49h-.182v-.867h.363a.532.532,0,0,1,.227.05.322.322,0,0,1,.09.217.233.233,0,0,1-.136.223l.136.378h-.227l-.136-.341H570.9v.34Zm.136.316a.747.747,0,0,0,0-1.494.748.748,0,1,0,0,1.494Zm-1-.75a1,1,0,1,1,1,.985.994.994,0,0,1-1-.985",transform:"translate(-21.155 -8.36)",fill:"#fff"}),(0,I.jsx)("path",{id:"path642",d:"M486.485,674.85h-3.811l2.268-11.893-5.218,11.893h-3.448l-.635-11.819-2.268,11.819h-3.448l2.949-15.469h5.943l.272,9.582,4.22-9.582h6.171l-2.994,15.469",transform:"translate(-2.35 -5.236)",fill:"#fff"}),(0,I.jsx)("path",{id:"path644",d:"M541.229,674.7a9.922,9.922,0,0,1-2.723.409c-1.951,0-3-.979-3-2.763a10.21,10.21,0,0,1,.091-1.128l.227-1.234.181-1,1.771-9.606h3.766L541,662.269h1.951l-.545,3.062h-1.951l-1,5.249a2.5,2.5,0,0,0-.046.521c0,.651.409.93,1.316.93a3.466,3.466,0,0,0,1-.119l-.5,2.79",transform:"translate(-14.67 -5.236)",fill:"#fff"}),(0,I.jsx)("path",{id:"path646",d:"M552.37,666.761l-.09-.4.772-1.971a1.077,1.077,0,0,1-.273-.037c-.227-.044-.318-.068-.363-.068a1.514,1.514,0,0,0-.362-.031c-1.27,0-2.133.551-3.313,2.039l.409-2.237H545.2l-2.315,12.563h3.767c.5-2.882.726-4.524,1.044-5.888.5-2.262,2.178-3.291,3.4-3.062a1.827,1.827,0,0,1,.408.093l.227.086.635-1.091",transform:"translate(-16.055 -6.115)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path648",d:"M553.906,663.011a2.293,2.293,0,0,0-.408-.136c-.183-.044-.318-.068-.318-.075a2.978,2.978,0,0,0-.408-.031c-1.225,0-2.132.558-3.312,2.046l.363-1.909h-3.448l-2.315,12.581h3.811c1.361-7.691,1.951-9.042,3.766-9.042a4.415,4.415,0,0,1,.454.031l.454.093,1.361-3.557",transform:"translate(-16.276 -5.873)",fill:"#fff"}),(0,I.jsx)("path",{id:"path650",d:"M523.667,666.852c0,1.586.907,2.683,2.95,3.508,1.542.626,1.77.812,1.77,1.389,0,.781-.681,1.134-2.178,1.134a12.269,12.269,0,0,1-3.448-.5l-.544,2.9.181.03.681.123a9.606,9.606,0,0,0,1.044.113c.907.068,1.588.1,2.087.1,4.083,0,5.943-1.326,5.943-4.2,0-1.729-.771-2.739-2.722-3.5-1.588-.638-1.771-.781-1.771-1.37,0-.676.636-1.022,1.861-1.022a25,25,0,0,1,2.768.186l.544-2.912a29.966,29.966,0,0,0-3.4-.249c-4.265,0-5.762,1.935-5.762,4.259",transform:"translate(-12.173 -5.84)",fill:"#fff"}),(0,I.jsx)("path",{id:"path652",d:"M500.309,669.852a6.984,6.984,0,0,0-.863-.049c-2.133,0-3.222.644-3.222,1.914A1.223,1.223,0,0,0,497.586,673c1.543,0,2.632-1.289,2.723-3.148Zm2.767,5.6H499.9l.091-1.3A5.118,5.118,0,0,1,496,675.671a3.28,3.28,0,0,1-3.448-3.434c0-3.063,2.45-4.853,6.67-4.853.409,0,.953.037,1.542.1a3.757,3.757,0,0,0,.136-.818c0-.831-.681-1.14-2.45-1.14a13.465,13.465,0,0,0-3.131.347l-.544.136-.318.081.5-2.833a17.187,17.187,0,0,1,4.537-.663c3.267,0,4.992,1.277,4.992,3.688a14.071,14.071,0,0,1-.272,2.491l-.817,4.469-.136.8-.091.638-.046.433-.044.341",transform:"translate(-6.6 -5.84)",fill:"#fff"}),(0,I.jsx)("path",{id:"path654",d:"M516.43,667.694v-.645c0-1.023-.635-1.618-1.77-1.618-1.225,0-2.087.8-2.45,2.256l4.22.006Zm2,7.487a14.731,14.731,0,0,1-3.858.508c-4.265,0-6.488-1.934-6.488-5.64,0-4.313,2.813-7.493,6.624-7.493,3.131,0,5.127,1.779,5.127,4.568a12.377,12.377,0,0,1-.455,3.111h-7.531a1.424,1.424,0,0,0-.046.4c0,1.457,1.134,2.2,3.312,2.2a10.1,10.1,0,0,0,3.947-.8l-.633,3.149",transform:"translate(-9.518 -5.833)",fill:"#fff"}),(0,I.jsx)("path",{id:"path656",d:"M563.711,668.122c0-1.314-.544-2.559-2.086-2.559-1.951,0-3.13,2.293-3.13,4.313,0,1.71.817,2.858,2.178,2.832a3.713,3.713,0,0,0,2.9-3.081A7.817,7.817,0,0,0,563.711,668.122Zm3.948,1.612c-.59,4.183-3.495,6.042-7.4,6.042-4.311,0-6.035-2.609-6.035-5.8a7.063,7.063,0,0,1,7.487-7.48c3.946,0,6.034,2.485,6.034,5.677a8.737,8.737,0,0,1-.091,1.563",transform:"translate(-18.186 -5.821)",fill:"#fff"})]})}),sa=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:61.03,viewBox:"0 0 102 61.03",...e,children:(0,I.jsxs)("g",{id:"Group_73875","data-name":"Group 73875",transform:"translate(-1360 -619)",children:[(0,I.jsx)("path",{id:"Path_37743","data-name":"Path 37743",d:"M110.5,74.873A30.355,30.355,0,0,0,80.312,44.358a29.7,29.7,0,0,0-19.019,6.849A32.941,32.941,0,0,1,69.912,65.4H67.4A30.473,30.473,0,0,0,59.48,52.786a30.566,30.566,0,0,0-7.872,12.6H49.1a32.993,32.993,0,0,1,8.529-14.158,29.79,29.79,0,0,0-18.934-6.871,30.517,30.517,0,0,0,0,61.03,29.791,29.791,0,0,0,18.934-6.871A32.988,32.988,0,0,1,49.1,84.359h2.509a30.569,30.569,0,0,0,7.872,12.6A30.47,30.47,0,0,0,67.4,84.343h2.508a32.938,32.938,0,0,1-8.619,14.194,29.7,29.7,0,0,0,19.019,6.849A30.354,30.354,0,0,0,110.5,74.873Z",transform:"translate(1351.497 574.643)",fillRule:"evenodd"}),(0,I.jsxs)("g",{id:"layer1",transform:"translate(902.471 -13.145)",children:[(0,I.jsx)("path",{id:"path628",d:"M485.291,675.95h-3.857l2.268-11.894-5.218,11.894h-3.176l-.635-11.826-2.54,11.826h-3.494l2.949-15.469h6.035l.09,9.575,4.175-9.575h6.4l-2.994,15.469",transform:"translate(-2.109 -5.443)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path630",d:"M540.056,675.794a9.894,9.894,0,0,1-2.722.409c-1.951,0-3-.973-3-2.764a4.961,4.961,0,0,1,.09-1.129l.227-1.233.182-.992,1.77-9.607h3.766l-.544,2.888h1.951l-.544,3.055h-1.951l-1,5.25a2.522,2.522,0,0,0-.045.521c0,.651.363.936,1.27.936a3.6,3.6,0,0,0,1.044-.118l-.5,2.783",transform:"translate(-14.45 -5.442)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path632",d:"M522.5,667.945c0,1.593.863,2.684,2.9,3.508,1.543.633,1.814.819,1.814,1.389,0,.788-.681,1.139-2.222,1.139a12.279,12.279,0,0,1-3.448-.5l-.5,2.906.136.025.726.13c.227.037.545.
1075,1,.111.907.068,1.633.106,2.132.106,4.039,0,5.9-1.333,5.9-4.2,0-1.723-.772-2.739-2.678-3.5-1.633-.638-1.814-.775-1.814-1.363,0-.682.635-1.029,1.861-1.029a24.406,24.406,0,0,1,2.767.193l.545-2.913a29.975,29.975,0,0,0-3.358-.248c-4.31,0-5.808,1.934-5.762,4.252",transform:"translate(-11.952 -6.046)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path634",d:"M499.251,670.949a6.974,6.974,0,0,0-.863-.055c-2.132,0-3.221.644-3.221,1.914a1.245,1.245,0,0,0,1.361,1.283c1.542,0,2.677-1.282,2.722-3.142Zm2.586,5.6H498.66l.091-1.307a5.185,5.185,0,0,1-3.993,1.524,3.292,3.292,0,0,1-3.494-3.434c0-3.068,2.45-4.853,6.67-4.853a12.773,12.773,0,0,1,1.543.1,2.493,2.493,0,0,0,.181-.818c0-.837-.681-1.147-2.45-1.147a14.17,14.17,0,0,0-3.176.353l-.5.13-.363.08.544-2.825a17.189,17.189,0,0,1,4.537-.669c3.267,0,4.992,1.277,4.992,3.694a11.61,11.61,0,0,1-.318,2.492l-.772,4.462-.136.8-.091.638-.091.44v.342",transform:"translate(-6.359 -6.045)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path636",d:"M515.394,668.785c0-.26.045-.477.045-.638,0-1.022-.681-1.624-1.815-1.624a2.465,2.465,0,0,0-2.4,2.255l4.175.007Zm1.86,7.487a14.768,14.768,0,0,1-3.9.508c-4.265,0-6.443-1.934-6.443-5.633,0-4.32,2.813-7.5,6.625-7.5,3.13,0,5.127,1.779,5.127,4.573a10.824,10.824,0,0,1-.5,3.1h-7.532a1.422,1.422,0,0,0-.045.4c0,1.456,1.135,2.2,3.357,2.2a10.08,10.08,0,0,0,3.948-.794l-.635,3.144",transform:"translate(-9.297 -6.038)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path638",d:"M562.583,669.327c0-1.314-.544-2.56-2.086-2.56-1.951,0-3.13,2.293-3.13,4.313,0,1.7.816,2.852,2.178,2.826a3.714,3.714,0,0,0,2.9-3.081A7.747,7.747,0,0,0,562.583,669.327Zm3.857,1.5c-.545,4.183-3.494,6.038-7.4,6.038-4.266,0-5.99-2.6-5.99-5.795,0-4.463,2.9-7.481,7.442-7.481,3.947,0,6.035,2.485,6.035,5.678a8.82,8.82,0,0,1-.092,1.56",transform:"translate(-17.965 -6.028)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path640",d:"M570.9,676.933h.136a.265.265,0,0,0,.091-.019c.045-.019.046-.062.046-.1s0-.068-.046-.086c0-.019-.091-.019-.136-.019H570.9v.223Zm0,.49h-.182v-.867h.363a.532.532,0,0,1,.227.05.322.322,0,0,1,.09.217.233.233,0,0,1-.136.223l.136.378h-.227l-.136-.341H570.9v.34Zm.136.316a.747.747,0,0,0,0-1.494.748.748,0,1,0,0,1.494Zm-1-.75a1,1,0,1,1,1,.985.994.994,0,0,1-1-.985",transform:"translate(-21.155 -8.36)",fill:"#fff"}),(0,I.jsx)("path",{id:"path642",d:"M486.485,674.85h-3.811l2.268-11.893-5.218,11.893h-3.448l-.635-11.819-2.268,11.819h-3.448l2.949-15.469h5.943l.272,9.582,4.22-9.582h6.171l-2.994,15.469",transform:"translate(-2.35 -5.236)",fill:"#fff"}),(0,I.jsx)("path",{id:"path644",d:"M541.229,674.7a9.922,9.922,0,0,1-2.723.409c-1.951,0-3-.979-3-2.763a10.21,10.21,0,0,1,.091-1.128l.227-1.234.181-1,1.771-9.606h3.766L541,662.269h1.951l-.545,3.062h-1.951l-1,5.249a2.5,2.5,0,0,0-.046.521c0,.651.409.93,1.316.93a3.466,3.466,0,0,0,1-.119l-.5,2.79",transform:"translate(-14.67 -5.236)",fill:"#fff"}),(0,I.jsx)("path",{id:"path646",d:"M552.37,666.761l-.09-.4.772-1.971a1.077,1.077,0,0,1-.273-.037c-.227-.044-.318-.068-.363-.068a1.514,1.514,0,0,0-.362-.031c-1.27,0-2.133.551-3.313,2.039l.409-2.237H545.2l-2.315,12.563h3.767c.5-2.882.726-4.524,1.044-5.888.5-2.262,2.178-3.291,3.4-3.062a1.827,1.827,0,0,1,.408.093l.227.086.635-1.091",transform:"translate(-16.055 -6.115)",fill:"#231f20"}),(0,I.jsx)("path",{id:"path648",d:"M553.906,663.011a2.293,2.293,0,0,0-.408-.136c-.183-.044-.318-.068-.318-.075a2.978,2.978,0,0,0-.408-.031c-1.225,0-2.132.558-3.312,2.046l.363-1.909h-3.448l-2.315,12.581h3.811c1.361-7.691,1.951-9.042,3.766-9.042a4.415,4.415,0,0,1,.454.031l.454.093,1.361-3.557",transform:"translate(-16.276 -5.873)",fill:"#fff"}),(0,I.jsx)("path",{id:"path650",d:"M523.667,666.852c0,1.586.907,2.683,2.95,3.508,1.542.626,1.77.812,1.77,1.389,0,.781-.681,1.134-2.178,1.134a12.269,12.269,0,0,1-3.448-.5l-.544,2.9.181.03.681.123a9.606,9.606,0,0,0,1.044.113c.907.068,1.588.1,2.087.1,4.083,0,5.943-1.326,5.943-4.2,0-1.729-.771-2.739-2.722-3.5-1.588-.638-1.771-.781-1.771-1.37,0-.676.636-1.022,1.861-1.022a25,25,0,0,1,2.768.186l.544-2.912a29.966,29.966,0,0,0-3.4-.249c-4.265,0-5.762,1.935-5.762,4.259",transform:"translate(-12.173 -5.84)",fill:"#fff"}),(0,I.jsx)("path",{id:"path652",d:"M500.309,669.852a6.984,6.984,0,0,0-.863-.049c-2.133,0-3.222.644-3.222,1.914A1.223,1.223,0,0,0,497.586,673c1.543,0,2.632-1.289,2.723-3.148Zm2.767,5.6H499.9l.091-1.3A5.
1118,5.118,0,0,1,496,675.671a3.28,3.28,0,0,1-3.448-3.434c0-3.063,2.45-4.853,6.67-4.853.409,0,.953.037,1.542.1a3.757,3.757,0,0,0,.136-.818c0-.831-.681-1.14-2.45-1.14a13.465,13.465,0,0,0-3.131.347l-.544.136-.318.081.5-2.833a17.187,17.187,0,0,1,4.537-.663c3.267,0,4.992,1.277,4.992,3.688a14.071,14.071,0,0,1-.272,2.491l-.817,4.469-.136.8-.091.638-.046.433-.044.341",transform:"translate(-6.6 -5.84)",fill:"#fff"}),(0,I.jsx)("path",{id:"path654",d:"M516.43,667.694v-.645c0-1.023-.635-1.618-1.77-1.618-1.225,0-2.087.8-2.45,2.256l4.22.006Zm2,7.487a14.731,14.731,0,0,1-3.858.508c-4.265,0-6.488-1.934-6.488-5.64,0-4.313,2.813-7.493,6.624-7.493,3.131,0,5.127,1.779,5.127,4.568a12.377,12.377,0,0,1-.455,3.111h-7.531a1.424,1.424,0,0,0-.046.4c0,1.457,1.134,2.2,3.312,2.2a10.1,10.1,0,0,0,3.947-.8l-.633,3.149",transform:"translate(-9.518 -5.833)",fill:"#fff"}),(0,I.jsx)("path",{id:"path656",d:"M563.711,668.122c0-1.314-.544-2.559-2.086-2.559-1.951,0-3.13,2.293-3.13,4.313,0,1.71.817,2.858,2.178,2.832a3.713,3.713,0,0,0,2.9-3.081A7.817,7.817,0,0,0,563.711,668.122Zm3.948,1.612c-.59,4.183-3.495,6.042-7.4,6.042-4.311,0-6.035-2.609-6.035-5.8a7.063,7.063,0,0,1,7.487-7.48c3.946,0,6.034,2.485,6.034,5.677a8.737,8.737,0,0,1-.091,1.563",transform:"translate(-18.186 -5.821)",fill:"#fff"})]})]})}),ia=e=>(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 102 66.312",className:Gt,...e,id:"credit-card-icon",children:[(0,I.jsx)("title",{children:"Default Icon"}),(0,I.jsxs)("g",{id:"Group_73874","data-name":"Group 73874",transform:"translate(-578 -943)",children:[(0,I.jsx)("g",{transform:"translate(684.033 928.923)",children:(0,I.jsx)("path",{id:"Path_37742","data-name":"Path 37742",d:"M174.961,226.335a1.984,1.984,0,0,1-.607.884q-2.961,2.953-5.914,5.916c-.078.078-.124.071-.2,0q-1.27-1.277-2.549-2.548a1.121,1.121,0,0,1,0-1.678c.3-.3.606-.6.9-.907.071-.071.112-.07.182,0,.494.5.993.993,1.489,1.489.074.078.118.086.2,0q1.324-1.332,2.654-2.659a.96.96,0,0,0,0-1.392c-1.452-1.454-2.908-2.9-4.355-4.361-.392-.4-.8-.776-1.18-1.187-.235-.255-.491-.491-.743-.728a.953.953,0,0,0-1.294.022q-1.931,1.926-3.859,3.858c-.775.776-1.548,1.555-2.328,2.325a1.055,1.055,0,0,0-.349.933.924.924,0,0,0,.285.539q1.07,1.071,2.141,2.141l6.455,6.458c.112.112.111.126,0,.24-.235.235-.48.47-.709.712a1.559,1.559,0,0,1-.772.517h-.431a1.808,1.808,0,0,1-.832-.556c-1.579-1.594-3.175-3.172-4.752-4.768-1.462-1.48-2.939-2.946-4.413-4.415a1.719,1.719,0,0,1-.56-.841v-.355a1.382,1.382,0,0,1,.353-.654l9.587-9.59c.045-.045.093-.086.142-.128a1.372,1.372,0,0,1,.544-.235h.263l.172.045a1.381,1.381,0,0,1,.623.408l1.763,1.776q3.863,3.879,7.74,7.745a1.11,1.11,0,0,1,.33.66.642.642,0,0,0,.023.092Z",transform:"translate(-242.301 -170.137)",fill:"#1f2326"})}),(0,I.jsx)("path",{id:"card",d:"M90.891,5.9H13.909A12.344,12.344,0,0,0,1.4,18.042V60.07A12.345,12.345,0,0,0,13.909,72.212H90.891A12.344,12.344,0,0,0,103.4,60.07V18.042A12.341,12.341,0,0,0,90.891,5.9Zm6.736,54.17a6.649,6.649,0,0,1-6.736,6.538H13.909A6.646,6.646,0,0,1,7.174,60.07V29.408H97.626Zm0-36.271H7.174V18.042A6.646,6.646,0,0,1,13.909,11.5H90.891a6.649,6.649,0,0,1,6.736,6.538ZM68.758,55.111a2.845,2.845,0,0,1,2.887-2.8h9.623a2.8,2.8,0,1,1,0,5.6H71.645A2.848,2.848,0,0,1,68.758,55.111Z",transform:"translate(576.6 937.1)",fill:"#1f2326"})]})]}),oa=e=>(0,I.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 113.4 98.02",className:`${Gt} cc-icon cc--dinersClub`,...e,children:[(0,I.jsx)("path",{fill:"#fff",d:"M2.05,49.86C2.05,23.72,23.24,2.54,49.37,2.54s47.32,21.18,47.32,47.32-21.18,47.32-47.32,47.32S2.05,75.99,2.05,49.86"}),(0,I.jsx)("path",{fill:"#0d4e96",d:"M49.44,98.02C22.32,98.15,0,76.18,0,49.44,0,20.21,22.32,0,49.44,0h12.71c26.79,0,51.25,20.2,51.25,49.44,0,26.73-24.46,48.58-51.25,48.58h-12.71ZM49.55,4.05c-24.78,0-44.86,20.09-44.86,44.87,0,24.78,20.08,44.86,44.86,44.86,24.78,0,44.86-20.08,44.87-44.86,0-24.78-20.09-44.86-44.87-44.87M39.36,75.46V22.38c-10.66,4.11-18.22,14.43-18.25,26.54.03,12.11,7.59,22.43,18.25,26.53M77.99,48.92c-.02-12.12-7.59-22.45-18.27-26.54v53.09c10.67-4.1,18.25-14.42,18.27-26.54"})]}),ca=e=>(0,I.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 113.4 98.02",...e,className:"cc-icon cc--dinersClub",children:(0,I.jsx)("path",{d:"M49.44,98.02C22.32,98.15,0,76.18,0,49.44,0,20.21,22.32,0,49.44,0h12.71c26.79,0,51.25,20.2,51.25,49.44,0,26.73-24.46,48.58-51.25,48.58h-12.71ZM49.55,4.05c-24.78,0-44.86,20.09-44.8
16,44.87,0,24.78,20.08,44.86,44.86,44.86,24.78,0,44.86-20.08,44.87-44.86,0-24.78-20.09-44.86-44.87-44.87M39.36,75.46V22.38c-10.66,4.11-18.22,14.43-18.25,26.54.03,12.11,7.59,22.43,18.25,26.53M77.99,48.92c-.02-12.12-7.59-22.45-18.27-26.54v53.09c10.67-4.1,18.25-14.42,18.27-26.54"})}),da=e=>(0,I.jsx)("svg",{id:"Layer_1",viewBox:"0 0 512 270",xmlns:"http://www.w3.org/2000/svg",className:"check-icon",...e,children:(0,I.jsxs)("g",{transform:"translate(0, -121)",children:[(0,I.jsx)("circle",{cx:502,cy:234,r:10}),(0,I.jsx)("path",{d:"m508.997 123.999c-1.834-1.833-4.334-2.999-6.997-2.999 0 0-491.991 0-492 0-5.313 0-10 4.485-10 10v250c0 5.449 4.551 10 10 10h492c5.451 0 10-4.551 10-10v-102c0-5.521-4.49-10-10-10s-10 4.479-10 10v92h-472v-230h472v48c0 5.51 4.49 10 10 10s10-4.49 10-10c0 0 0-57.846 0-58 0-2.668-1.169-5.168-3.003-7.001z"}),(0,I.jsx)("path",{d:"m310 226h-260c-5.523 0-10 4.478-10 10s4.477 10 10 10h260c5.523 0 10-4.478 10-10s-4.477-10-10-10z"}),(0,I.jsx)("path",{d:"m280 266h-230c-5.523 0-10 4.478-10 10s4.477 10 10 10h230c5.523 0 10-4.478 10-10s-4.477-10-10-10z"}),(0,I.jsx)("path",{d:"m50 186h60c5.523 0 10-4.478 10-10s-4.477-10-10-10h-60c-5.523 0-10 4.478-10 10s4.477 10 10 10z"}),(0,I.jsx)("path",{d:"m411.998 226h30c5.523 0 10-4.478 10-10s-4.477-10-10-10h-15v-10c0-5.522-4.477-10-10-10s-10 4.478-10 10v10.425c-14.169 2.388-25 14.737-25 29.575 0 16.542 13.458 30 30 30h10c5.514 0 10 4.486 10 10s-4.486 10-10 10h-30c-5.523 0-10 4.478-10 10s4.477 10 10 10h15v10c0 5.522 4.477 10 10 10s10-4.478 10-10v-10.425c14.169-2.388 25-14.737 25-29.575 0-16.542-13.458-30-30-30h-10c-5.514 0-10-4.486-10-10s4.485-10 10-10z"})]})}),ua=e=>(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:389,height:300,...e,children:[(0,I.jsx)("title",{children:"Credit Card"}),(0,I.jsxs)("defs",{children:[(0,I.jsx)("clipPath",{id:"b",children:(0,I.jsx)("rect",{width:338,height:209,fill:"#161c27","data-name":"Rectangle 1734",rx:16,transform:"translate(289 375)"})}),(0,I.jsx)("clipPath",{id:"c",children:(0,I.jsx)("path",{fill:"#fff",d:"M0 0h230.633v195.946H0z","data-name":"Rectangle 1724"})}),(0,I.jsxs)("linearGradient",{id:"d",x2:1,y1:.475,y2:.481,gradientUnits:"objectBoundingBox",children:[(0,I.jsx)("stop",{offset:0,stopColor:"#161c27"}),(0,I.jsx)("stop",{offset:.685,stopColor:"#161c27",stopOpacity:.827}),(0,I.jsx)("stop",{offset:1,stopColor:"#161c27",stopOpacity:0})]}),(0,I.jsxs)("filter",{id:"a",width:389,height:300,x:0,y:0,filterUnits:"userSpaceOnUse",children:[(0,I.jsx)("feOffset",{dy:13}),(0,I.jsx)("feGaussianBlur",{result:"blur",stdDeviation:23}),(0,I.jsx)("feFlood",{floodOpacity:.161}),(0,I.jsx)("feComposite",{in2:"blur",operator:"in"}),(0,I.jsx)("feComposite",{in:"SourceGraphic"})]})]}),(0,I.jsx)("g",{"data-name":"Group 74333",children:(0,I.jsxs)("g",{"data-name":"Group 73843",children:[(0,I.jsx)("g",{filter:"url(#a)",children:(0,I.jsx)("rect",{width:251,height:162,fill:"#161c27","data-name":"Rectangle 1731",rx:31,transform:"translate(69 56)"})}),(0,I.jsxs)("g",{clipPath:"url(#b)","data-name":"Mask Group 3",transform:"translate(-264 -343)",children:[(0,I.jsx)("rect",{width:338,height:209,fill:"#161c27","data-name":"Rectangle 1735",rx:16,transform:"translate(289 375)"}),(0,I.jsx)("g",{"data-name":"Group 73803",opacity:.146,children:(0,I.jsxs)("g",{fill:"#fff",clipPath:"url(#c)","data-name":"Group 73802",transform:"translate(418.436 348.844)",children:[(0,I.jsx)("path",{d:"M134.251 0 61.377 70c13.471 12.968 26.7 25.646 40.068 38.508-8.2 7.932-16.22 15.617-24.393 23.454-13.442-12.909-26.624-25.577-40.034-38.454-5.422 5.02-10.428 9.9-15.315 14.645a4.768 4.768 0 0 0 1.733 2.435q18.072 17.375 36.148 34.745c.542.521 1.281.93 1.432 2.044l-50.561 48.569h10.991q24.669-23.7 49.339-47.407a3.177 3.177 0 0 0 1.3-2.079c-12.985-12.51-26.182-25.14-39.4-37.87a29.777 29.777 0 0 1 4.4-4.132c3.36 3.2 6.623 6.352 9.895 9.493q4.987 4.787 9.971 9.578c3.284 3.154 6.547 6.326 9.855 9.457s6.49 6.448 10.193 9.6c11.868-11.4 23.528-22.6 35.449-34.055-13.439-12.946-26.635-25.576-39.914-38.366a38095.81 38095.81 0 0 1 16.189-15.553L104.58 39.38l15.977-15.347q7.928-7.616 15.854-15.234c3.034-2.927 6.092-5.834 9.177-8.799Z","data-name":"Path 1109"}),(0,I.jsx)("path",{d:"M76.969 8.127 85.433 0h-17.11a382.675 382.675 0 0 0 8.646 8.126","data-name":"Path 1110"}),(0,I.jsx)("path",{d:"M0 0v5.326Q2.854 2.648 5.6 0Z","data-name":"Path 1111"}),(0,I.jsx)("path",{d:"M0 63.128Q17.615 46.221 35.227 29.31c.539-.517.956-1.247 2.02-1.3a28.022 28.022 0 0 1 3.95 3.915C35.855 37.084 30.575 42.141 25.3 47.207q-7.983 7.675-15.973 15.347L0 71.513v10.552l52.479-50.41c-5.307-5.014-10.162-9.963-15.622-14.8C24.494 28.726 12.308 40.433 0 52.255Z","data-name":"Path 1112"}),(0,I.jsx)("path",{d:"m0 145.536 1.18 1.134A3.473 3.473 0 0 1 0 148.214v10.875l10.52-10.112a3.191 3.191 0 0 0 1.48-2.471L0 134.978Z","data-name":"Path 1113"}
1),(0,I.jsx)("path",{d:"M14.87 0Q7.434 7.144 0 14.291v10.164C5.733 19.22 17.924 7.5 25.506 0Z","data-name":"Path 1114"}),(0,I.jsx)("path",{d:"M32.586 147.027C21.634 136.496 10.843 126.138 0 115.72v10.006l21.671 20.82v.677L0 168.04v10.312c10.809-10.393 21.626-20.749 32.586-31.325","data-name":"Path 1115"}),(0,I.jsx)("path",{d:"M0 43.377q18.377-17.67 36.806-35.383c.029-.027.11 0 .167 0s.136-.016.163.01q12.318 11.819 24.627 23.653c.028.027 0 .105 0 .159a.413.413 0 0 1 0 .161c-.02.046-.074.08-.114.118l-.121.115-.12.116-.24.231L0 91.314v10.009l72.206-69.36C71.285 30.271 47.215 7.152 39.1 0h-4.75L0 33Z","data-name":"Path 1116"}),(0,I.jsx)("path",{d:"M91.524 108.22 52.242 70.486c-.08-.078-.164-.152-.239-.233a.445.445 0 0 1-.058-.114L124.963 0h-10.42L41.495 70.169c13.425 12.9 26.606 25.555 39.914 38.345-1.665 1.5-2.831 3.027-4.692 4.168-3.39-3.2-6.646-6.363-9.921-9.5s-6.568-6.308-9.851-9.462c-3.324-3.192-6.624-6.407-9.978-9.572-3.287-3.1-6.39-6.4-10.138-9.494A218931.232 218931.232 0 0 0 1.41 108.675c13.385 12.917 26.6 25.535 39.9 38.374L0 186.732v9.214h.82q25.55-24.533 51.093-49.072-19.857-19.074-39.662-38.107c-.066-.063-.063-.19-.094-.287C13.6 106.875 26.43 94.488 36.7 84.793c.067-.063.195-.066.3-.1.053.008.127 0 .158.025L76.8 122.8a.48.48 0 0 0 .119.059q7.328-7.039 14.652-14.083c.066-.063.068-.188.1-.284a.474.474 0 0 0-.028-.152.6.6 0 0 0-.117-.117","data-name":"Path 1117"}),(0,I.jsx)("path",{d:"M77.301 27.062Q91.363 13.575 105.479 0H95.056q-8.65 8.309-17.3 16.614c-.222.213-.365.581-.879.5Q67.997 8.59 59.059 0H48.398c10 9.885 27.723 26.639 28.9 27.062","data-name":"Path 1118"}),(0,I.jsx)("path",{d:"M196.974 17.29c-.952.17-1.484.925-2.113 1.529q-18.089 17.356-36.17 34.721a3.467 3.467 0 0 1-2.133 1.389l-24.059-23.11L165.623 0h-10.7l-32.98 31.684q17.329 16.647 34.7 33.323c.068.064.194.071.4.141l39.794-38.226 6.865 6.595q13.463 12.932 26.934 25.86V49.042q-15.931-15.283-31.851-30.576a3.134 3.134 0 0 0-1.807-1.176","data-name":"Path 1119"}),(0,I.jsx)("path",{d:"m228.371 0 2.259 2.171V0Z","data-name":"Path 1120"}),(0,I.jsx)("path",{d:"M41.495 195.946q16.875-16.211 33.754-32.417a3.26 3.26 0 0 1 1.938-1.3c11.583 11.123 23.244 22.328 35.1 33.716h9.048c11.92-11.445 23.673-22.743 35.566-34.16 4.6 4.39 8.979 8.616 13.371 12.832q6.667 6.4 13.33 12.8c2.97 2.849 5.936 5.7 8.937 8.525h8.983q14.555-13.974 29.108-27.949v-10.33q-16.9 16.221-33.8 32.458l-5.393-5.181-34-32.654c-.193-.185-.348-.447-.7-.345l-39.744 38.193q-19.834-19.052-39.653-38.083a1.579 1.579 0 0 0-.405-.16l-1.132 1.088-44.734 42.967Z","data-name":"Path 1121"}),(0,I.jsx)("path",{d:"M221.589 195.947q4.523-4.341 9.044-8.685V176.92q-9.9 9.505-19.812 19.027Z","data-name":"Path 1122"}),(0,I.jsx)("path",{d:"m141.394 195.946 13.82-13.273c.508-.487.916-1.12 1.7-1.307.779.186 1.187.819 1.695 1.307q6.915 6.632 13.82 13.273h10.426l-25.409-24.408c-.194-.186-.351-.446-.747-.325l-25.745 24.732Z","data-name":"Path 1123"}),(0,I.jsx)("path",{d:"M61.537 195.946q7.023-6.747 14.045-13.5a5.45 5.45 0 0 0 1.307-1.5 4.9 4.9 0 0 0 1.185 1.381l14.164 13.612h10.759q-12.833-12.326-25.667-24.65c-.067-.065-.193-.072-.4-.144l-.655.629-14.176 13.617q-5.49 5.273-10.976 10.549Z","data-name":"Path 1124"}),(0,I.jsx)("path",{d:"M194.399 0q-18.491 17.749-37.351 35.871a25.36 25.36 0 0 1-4.409-4.144L185.669 0h-10.648l-33 31.7c-.016-.03 0 .016.027.046l14.525 13.961a.6.6 0 0 0 .509.146l39.389-37.838h.728l5.428 5.215q14 13.448 28.006 26.889v-10Q214.946 15.061 199.264 0Z","data-name":"Path 1125"}),(0,I.jsx)("path",{d:"M208.333 0q11.155 10.709 22.3 21.428V11.4Q224.694 5.7 218.759 0Z","data-name":"Path 1126"}),(0,I.jsx)("path",{d:"M230.634 138.17q-16.048 15.451-32.133 30.866c-.462.444-.825 1.062-1.846 1.11-7.95-7.627-16-15.362-23.961-23.013a6 6 0 0 1 1.771-2.211q28.078-26.984 56.168-53.958v-10q-33.881 32.526-67.748 65.064c-.2.193-.4.388-.6.576-.164.15-.334.291-.3.429l34.635 33.27h.583l6.15-5.908q13.638-13.1 27.283-26.2Z","data-name":"Path 1127"}),(0,I.jsx)("path",{d:"M230.633 118.913q-16.058 15.46-32.151 30.888a2.866 2.866 0 0 1-1.724 1.093 35.157 35.157 0 0 1-4.023-3.92 5.1 5.1 0 0 1 1.512-1.8q18.186-17.484 36.386-34.955v-10q-17.722 17.01-35.436 34.03l-12.844 12.338c-.155.149-.353.276-.32.425l14.889 14.3 7.038-6.761q13.333-12.808 26.673-25.609Z","data-name":"Path 1128"}),(0,I.jsx)("path",{d:"M82.947 195.946q-2.771-2.661-5.541-5.324a1.663 1.663 0 0 0-.263-.174h-.509a1.718 1.718 0 0 0-.264.174l-5.542 5.324Z","data-name":"Path 1129"}),(0,I.jsx)("path",{d:"m162.803 195.946-5.543-5.327a.5.5 0 0 0-.442-.168 1.652 1.652 0 0 0-.258.172q-2.772 2.661-5.541 5.324Z","data-name":"Path 1130"}),(0,I.jsx)("path",{d:"M151.795 146.865q-17.4-16.727-34.812-33.447-17.393 16.707-34.736 33.376c-.065.063-.063.19-.092.287 1.34 1.487 28.739 27.876 34.519 33.249h.65q17.211-16.533 34.377-33.03c.067-.065.076-.185.112-.28 0-.053.014-.127-.016-.155m-34.793 23.916-24.924-23.94 24.6-23.635h.487c1.34 1.077 12.7 11.929 24.744 23.638l-24.917 23.934","data-name":"Path 1131"}),(0,I.jsx)("path",{d:"M197.166 36.717c-.029-.027-.11 0-.332 0l-34.8 33.425 34.924 33.547c1.753-1.429 22.8-21.574 33.672-32.2v-2.613q-16.747-16.094-33.467-32.156m-.266 57.38c-1.225-1.012-22.365-21.261-24.7-23.66v-.385l24.655-23.684 24.872 23.884-24.821 23.842","data-name":"Path 1132"}),(0,I.jsx)("path",{d:"m116.867 36.714-34.7 33.335v.462q17.2 16.523 34.379 33.012c.067.064.194.069.294.1 1.25-1.012 32.072-30.548 34.888-33.429l-34.861-33.48m.112 57.341L92.113 70.17l24.865-23.885 24.866 23.885-24.865 23.885","data-name":"Path 1133"}),(0,I.jsx)("path",{d:"M116.899 132.758c-4.862 4.67-9.779 9.393-14.693 14.119-.028.027 0 .106 0 .16s-.025.132 0 .159q7.371 7.089 14.778 14.2 7.36-7.069 14.715-14.145c.063-.06.046-.2.052-.229l-14.852-14.266m.106 18.822c-.03.029-.1.019-.156.026a38.024 38.024 0 0 1-4.788-4.469c-.06-.259.126-.391.283-.541l4.639-4.455 4.927 4.733q-2.452 2.355-4.905 4.706","data-name":"Path 1134"}),(0,I.jsx)("path",{d:"M197.218 56.024c-.061-.059-.206-.037-.236-.042l-14.849 14.264q7.256 6.97 14.6 14.012a.825.825 0 0 0 .29.11c.055 0 .133.015.162-.012q7.38-7.082 14.775-14.187-7.365-7.075-14.737-14.145m-.398 18.812-4.89-4.7 4.967-4.771a45.435 45.435 0 0 1 4.86 4.557c-.515.833-2.052 2.361-4.937 4.911","data-name":"Path 1135"}),(0,I.jsx)("path",{d:"m131.742 70.039-14.645-14.067h-.326l-14.546 13.975v.573q7.177 6.895 14.312 13.742a.856.856 0 0 0 .29.11.971.971 0 0 0 .283-.128q7.269-6.972 14.534-13.947c.151-.144.1-.292.1-.255m-14.7 4.7-4.867-4.675 4.813-4.624 4.868 4.675-4.814 4.624","data-name":"Path 1136"}),(0,I.jsx)("path",{d:"M191.091 109.139a6.039 6.039 0 0 1-1.923 2.691q-9.374 8.994-18.715 18c-.246.237-.391.215-.628-.012q-4.021-3.886-8.072-7.754a3.321 3.321 0 0 1-.3-4.818 3.579 3.579 0 0 1 .3-.287c.955-.918 1.918-1.829 2.861-2.76.224-.218.355-.213.576 0 1.564 1.52 3.145 3.023 4.716 4.533.246.237.372.262.63.014q4.186-4.054 8.4-8.092a2.842 2.842 0 0 0 .1-4.13 2.272 2.272 0 0 0-.113-.107c-4.6-4.423-9.207-8.824-13.79-13.273-1.231-1.207-2.538-2.367-3.738-3.614-.739-.774-1.554-1.493-2.351-2.215a3.107 3.107 0 0 0-4.1.066q-6.114 5.862-12.219 11.742c-2.462 2.367-4.9 4.734-7.37 7.077a3.143 3.143 0 0 0-1.1 2.84 2.782 2.782 0 0 0 .9 1.64q3.386 3.262 6.779 6.516l20.438 19.645c.355.341.35.384 0 .729-.738.71-1.519 1.42-2.245 2.165a4.943 4.943 0 0 1-2.445 1.574h-1.365a5.746 5.746 0 0 1-2.632-1.69c-5-4.852-10.052-9.652-15.045-14.511-4.63-4.5-9.306-8.966-13.972-13.434a5.222 5.222 0 0 1-1.77-2.559v-1.076a4.158 4.158 0 0 1 1.118-1.989l30.354-29.181c.14-.135.3-.263.448-.388a4.438 4.438 0 0 1 1.724-.71h.835l.547.138a4.393 4.393 0 0 1 1.97 1.24l5.58 5.4q12.231 11.806 24.506 23.569a3.332 3.332 0 0 1 1.044 2.007 1.884 1.884 0 0 0 .074.282Z","data-name":"Path 1137"})]})}),(0,I.jsx)("path",{fill:"url(#d)",d:"M0 0h202.276v209.339H0z","data-name":"Rectangle 1729",transform:"translate(405.859 375)"}),(0,I.jsx)("path",{fill:"#f4f6f9",d:"M278.52 526.651h356.865v67.8H278.52Z","data-name":"Path 1160"})]})]})})]}),ha=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16.044 16.033",...e,children:(0,I.jsxs)("g",{id:"close_3_","data-name":"close (3)",transform:"translate(0 -0.168)",children:[(0,I.jsx)("ellipse",{id:"Ellipse_9","data-name":"Ellipse 9",cx:8.022,cy:8.017,rx:8.022,ry:8.017,transform:"translate(0 0.168)",fill:"#e04f5f"}),(0,I.jsxs)("g",{id:"Group_73925","data-name":"Group 73925",transform:"translate(14.352 8.185) rotate(135)",children:[(0,I.jsx)("rect",{id:"Rectangle_1753","data-name":"Rectangle 1753",width:1.755,height:8.952,transform:"translate(3.598 0)",fill:"#fff"}),(0,I.jsx)("rect",{id:"Rectangle_1754","data-name":"Rectangle 1754",width:8.952,height:1.755,transform:"translate(0 3.597)",fill:"#fff"})]})]})}),pa=e=>(0,I.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"close-icon",height:24,width:24,...e,children:(0,I.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),ma=e=>(0,I.jsx)("svg",{id:"Layer_1",height:37.233,viewBox:"0 0 24 24",width:37.233,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",...e,children:(0,I.jsx)("path",{d:"m24 10v-2.091a3 3 0 0 0 -1.563-2.634l-9-4.909a2.993 2.993 0 0 0 -2.874 0l
1-9 4.909a3 3 0 0 0 -1.563 2.634v2.091h3v9h-2v3h-1v2h24v-2h-1v-3h-2v-9zm-10 0v9h-4v-9zm-9 0h3v9h-3zm14 9h-3v-9h3z"})}),fa=e=>{const{className:t,...a}=e;return(0,I.jsxs)("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",height:24,width:90,viewBox:"0 0 90 24",className:`cc-icon cc--l2l3 ${t??""}`.trim(),...a,children:[(0,I.jsx)("path",{id:"b",className:"plate",d:"M12,0h66c6.63,0,12,5.37,12,12h0c0,6.63-5.37,12-12,12H12C5.37,24,0,18.63,0,12h0C0,5.37,5.37,0,12,0Z"}),(0,I.jsx)("g",{id:"c",className:"isolate",children:(0,I.jsxs)("g",{className:"isolate",children:[(0,I.jsx)("path",{className:"ink",d:"M36.1,16v-2.58h-2.57v-.97h2.57v-2.58h1.01v2.58h2.57v.97h-2.57v2.58h-1.01Z"}),(0,I.jsx)("path",{className:"ink",d:"M41.45,16V7.77h1.26v7.18h3.73l.17,1.06h-5.16Z"}),(0,I.jsx)("path",{className:"ink",d:"M48.12,16v-.36c0-.5.09-.92.28-1.28.18-.36.47-.67.86-.93l2.41-1.58c.26-.18.48-.4.67-.68s.28-.6.28-.98c0-.46-.14-.84-.41-1.12s-.67-.42-1.2-.42c-.32,0-.61.07-.86.21s-.45.33-.6.58-.22.52-.22.83v.17c0,.05,0,.1.01.15h-1.14c0-.06-.01-.1-.01-.13v-.09c0-.54.12-1.01.36-1.42.24-.41.57-.73,1-.97.43-.23.92-.35,1.47-.35h.13c.55,0,1.03.11,1.43.32s.72.51.94.88c.22.38.33.81.33,1.31,0,.42-.07.78-.21,1.09-.14.31-.33.58-.56.81-.24.23-.5.45-.8.65l-2.03,1.32c-.18.12-.31.23-.41.34-.1.11-.16.21-.2.31-.04.1-.07.19-.08.28h4.33v1.06h-5.77Z"}),(0,I.jsx)("path",{className:"ink",d:"M54.8,18.05l5.8-10.28h1l-5.78,10.28h-1.01Z"}),(0,I.jsx)("path",{className:"ink",d:"M63.05,16V7.77h1.26v7.18h3.73l.17,1.06h-5.16Z"}),(0,I.jsx)("path",{className:"ink",d:"M72.41,16.12c-.57,0-1.07-.1-1.49-.3-.43-.2-.76-.48-1-.83-.24-.35-.36-.75-.36-1.2v-.22h1.13c0,.55.16.95.48,1.2.32.25.75.37,1.29.37s.96-.12,1.3-.37.5-.61.5-1.1c0-.34-.08-.61-.23-.83-.16-.22-.36-.37-.62-.47-.26-.1-.54-.15-.84-.15h-1.03v-.88h.92c.3,0,.57-.05.81-.16.24-.1.44-.26.59-.46s.22-.46.22-.76-.07-.56-.22-.76c-.14-.2-.34-.35-.58-.44-.24-.1-.52-.14-.82-.14-.5,0-.9.12-1.18.37s-.43.61-.43,1.08h-1.09v-.2c0-.46.12-.85.35-1.18s.56-.59.97-.77c.41-.18.87-.28,1.38-.28h.16c.5,0,.96.09,1.36.27.4.18.72.44.96.77.24.33.35.73.35,1.18,0,.32-.06.6-.17.83-.11.23-.26.43-.46.59s-.41.3-.66.42v.06c.43.14.79.37,1.06.71s.41.78.41,1.32c0,.46-.12.87-.37,1.22-.24.35-.58.62-1.01.82-.43.2-.92.29-1.48.29h-.2Z"})]})}),(0,I.jsx)("g",{id:"d",children:(0,I.jsxs)("g",{id:"e",children:[(0,I.jsx)("circle",{id:"f",className:"ink",cx:18.48,cy:13.92,r:.95}),(0,I.jsx)("path",{id:"g",className:"ink",d:"M27.04,6h-8.87c-1.75,0-3.16,1.42-3.17,3.17v5.07c0,1.75,1.42,3.16,3.17,3.16h8.87c1.75,0,3.16-1.42,3.16-3.16v-5.07c0-1.75-1.42-3.16-3.16-3.17ZM18.17,7.27h8.87c1.05,0,1.9.85,1.9,1.9h-12.67c0-1.05.85-1.9,1.9-1.9h0ZM27.03,16.14h-8.87c-1.05,0-1.9-.85-1.9-1.9v-3.8h12.67v3.8c0,1.05-.85,1.9-1.9,1.9h0Z"})]})})]})},va=e=>{var t,a;return(0,I.jsx)("svg",{className:null==e||null===(t=e.classes)||void 0===t?void 0:t.loader,width:"180",height:"180",viewBox:"-10 -10 183 183",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{className:null==e||null===(a=e.classes)||void 0===a?void 0:a.logoPath,d:"M162.977 83.001C162.087 85.5911 160.496 87.9459 158.379 89.7119C143.442 104.605 128.533 119.557 113.648 134.45C113.06 135.039 112.713 134.98 112.15 134.45C105.742 127.975 99.3094 121.558 92.8559 115.142C89.3499 112.022 89.0303 106.665 92.1408 103.192C92.3662 102.898 92.6034 102.662 92.8559 102.485C95.1389 100.19 97.4402 97.8943 99.6955 95.5985C100.232 95.0687 100.542 95.0687 101.073 95.5985C104.809 99.3659 108.589 103.133 112.343 106.842C112.932 107.43 113.232 107.489 113.849 106.9C120.52 100.19 127.215 93.4793 133.938 86.7686C136.837 84.0019 136.94 79.4101 134.17 76.5257C134.082 76.408 133.993 76.3491 133.901 76.2314C122.914 65.2235 111.897 54.2746 100.942 43.2078C97.9993 40.2057 94.8746 37.3211 92.0078 34.2601C90.2421 32.3175 88.2946 30.4924 86.3865 28.7265C83.582 26.1952 79.315 26.3128 76.5947 28.9029C66.8517 38.6158 57.1176 48.329 47.3899 58.1008C41.5044 63.9874 35.6789 69.8736 29.775 75.7014C27.7675 77.4673 26.7793 80.1163 27.1377 82.7653C27.3749 84.2958 28.1353 85.7677 29.2966 86.8272C34.6924 92.2429 40.093 97.6584 45.5001 103.074L94.3502 151.933C95.1989 152.757 95.1872 152.875 94.3502 153.699C92.5846 155.465 90.72 157.23
11 88.982 159.115C87.4789 160.998 85.4395 162.352 83.1382 163H79.8782C77.4269 162.235 75.2475 160.763 73.5854 158.82C61.6395 146.753 49.5629 134.803 37.6258 122.735C26.561 111.551 15.3849 100.425 4.22996 89.2997C2.21592 87.6515 0.740403 85.4736 0 82.9423V80.2342C0.423172 78.4093 1.34721 76.7025 2.67146 75.2898L75.218 2.7076C75.5535 2.41327 75.9237 2.06031 76.2892 1.76598C77.5169 0.882987 78.9218 0.29433 80.4091 0H82.4025L83.7103 0.352966C85.5313 0.941626 87.1616 2.00133 88.4188 3.41411L101.755 16.8946C121.245 36.4381 140.768 55.9816 160.329 75.4662C161.703 76.8202 162.584 78.5861 162.823 80.4698C162.865 80.7053 162.924 80.9409 163 81.1764L162.977 83.001Z"})})},ga=e=>(0,I.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"InfoIcon",fill:"#a4a9af",width:16,height:16,...e,children:(0,I.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})}),xa=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:200,height:50,viewBox:"0 0 109.283 27.696",id:"logo-wrap",...e,children:(0,I.jsxs)("g",{"data-name":"Group 74145",transform:"translate(-30 -30)",children:[(0,I.jsx)("path",{id:"Path_7","data-name":"Path 7",d:"M181.116,229.468a2.551,2.551,0,0,1-.781,1.137q-3.807,3.8-7.6,7.607c-.1.1-.159.091-.255-.005q-1.633-1.642-3.278-3.276a1.442,1.442,0,0,1,0-2.157c.388-.388.779-.773,1.162-1.
1166.091-.092.144-.09.234,0,.635.642,1.277,1.277,1.915,1.915.1.1.151.111.256.006q1.7-1.713,3.413-3.419a1.234,1.234,0,0,0-.006-1.79c-1.867-1.869-3.739-3.728-5.6-5.608-.5-.51-1.031-1-1.518-1.527-.3-.327-.631-.631-.955-.936a1.225,1.225,0,0,0-1.664.028q-2.483,2.477-4.962,4.961c-1,1-1.99,2-2.993,2.99a1.356,1.356,0,0,0-.448,1.2,1.188,1.188,0,0,0,.367.693q1.375,1.378,2.753,2.753l8.3,8.3c.144.144.142.162,0,.308-.3.3-.617.6-.912.915a2,2,0,0,1-.993.665h-.554a2.325,2.325,0,0,1-1.069-.714c-2.03-2.05-4.082-4.078-6.11-6.131-1.88-1.9-3.779-3.788-5.674-5.676a2.21,2.21,0,0,1-.719-1.081v-.456a1.777,1.777,0,0,1,.454-.84l12.326-12.33c.057-.057.12-.111.182-.164a1.764,1.764,0,0,1,.7-.3h.339l.222.058a1.776,1.776,0,0,1,.8.524l2.266,2.283q4.967,4.988,9.952,9.958a1.427,1.427,0,0,1,.424.848.823.823,0,0,0,.03.119Z",transform:"translate(-123.42 -185.37)",fill:"#149bfe"}),(0,I.jsxs)("g",{id:"logo-text","data-name":"Group 74123",children:[(0,I.jsx)("path",{id:"Path_8","data-name":"Path 8",d:"M490.15,287.84v1.065h-7.81v4.736h7.313v1.067H482.34v5.18h7.9v1.067h-9.15V287.84Z",transform:"translate(-418.072 -250.537)",fill:"#747575"}),(0,I.jsx)("path",{id:"Path_9","data-name":"Path 9",d:"M609.842,287.958a3.729,3.729,0,0,0-.919-1,4.12,4.12,0,0,0-1.194-.616,4.438,4.438,0,0,0-1.369-.211,4.729,4.729,0,0,0-2.241.5,4.427,4.427,0,0,0-1.534,1.31,5.68,5.68,0,0,0-.883,1.854,7.96,7.96,0,0,0,0,4.217,5.667,5.667,0,0,0,.883,1.855,4.427,4.427,0,0,0,1.534,1.31,4.733,4.733,0,0,0,2.241.5,3.982,3.982,0,0,0,1.654-.331,3.9,3.9,0,0,0,1.268-.9,4.588,4.588,0,0,0,.864-1.331,5.564,5.564,0,0,0,.423-1.645h1.25a7.094,7.094,0,0,1-.57,2.186,5.342,5.342,0,0,1-1.139,1.654,4.837,4.837,0,0,1-1.645,1.048,5.771,5.771,0,0,1-2.1.367,6.189,6.189,0,0,1-2.71-.56,5.607,5.607,0,0,1-1.938-1.5,6.356,6.356,0,0,1-1.156-2.172,8.889,8.889,0,0,1,0-5.181,6.455,6.455,0,0,1,1.158-2.177,5.572,5.572,0,0,1,1.938-1.511,6.564,6.564,0,0,1,4.539-.284,5.3,5.3,0,0,1,1.612.817,4.78,4.78,0,0,1,1.209,1.332,4.487,4.487,0,0,1,.616,1.819h-1.25A4.189,4.189,0,0,0,609.842,287.958Z",transform:"translate(-525.152 -248.038)",fill:"#747575"}),(0,I.jsx)("path",{id:"Path_10","data-name":"Path 10",d:"M757.858,287.839a5.723,5.723,0,0,1,1.534.2,3.715,3.715,0,0,1,1.268.621,2.964,2.964,0,0,1,.864,1.066,3.425,3.425,0,0,1,.318,1.529,3.689,3.689,0,0,1-.643,2.169,2.936,2.936,0,0,1-1.915,1.176v.036a2.913,2.913,0,0,1,1.065.34,2.137,2.137,0,0,1,.7.638,2.62,2.62,0,0,1,.386.892,6.594,6.594,0,0,1,.156,1.092q.018.331.036.806c.012.318.037.64.074.964a5.874,5.874,0,0,0,.175.918,1.737,1.737,0,0,0,.321.668h-1.378a1.578,1.578,0,0,1-.174-.45,3.871,3.871,0,0,1-.092-.551c-.018-.189-.034-.376-.046-.56s-.024-.343-.036-.478q-.037-.7-.12-1.387A3.789,3.789,0,0,0,760,296.3a2.174,2.174,0,0,0-.772-.873,2.33,2.33,0,0,0-1.388-.294H753.1v5.824H751.85V287.839Zm-.092,6.228a3.363,3.363,0,0,0,1.083-.174,2.721,2.721,0,0,0,.9-.5,2.5,2.5,0,0,0,.616-.8,2.428,2.428,0,0,0,.229-1.075,2.6,2.6,0,0,0-.7-1.915,2.859,2.859,0,0,0-2.131-.7H753.1v5.163Z",transform:"translate(-661.548 -250.537)",fill:"#747575"}),(0,I.jsx)("path",{id:"Path_11","data-name":"Path 11",d:"M878.633,293.545l-3.7-5.705h-1.47l4.518,6.778C878.2,294.262,878.419,293.9,878.633,293.545Z",transform:"translate(-770.903 -250.537)",fill:"#747575"}),(0,I.jsx)("path",{id:"Path_12","data-name":"Path 12",d:"M929.381,287.822l-4.3,6.651h0c-.216.352-.434.705-.651,1.053l.011.018v5.394h1.25v-5.4l5.181-7.717Z",transform:"translate(-816.737 -250.519)",fill:"#747575"}),(0,I.jsx)("path",{id:"Path_13","data-name":"Path 13",d:"M1022.594,287.836a4.866,4.866,0,0,1,1.6.248,3.361,3.361,0,0,1,1.23.735,3.248,3.248,0,0,1,.79,1.185,4.66,4.66,0,0,1,0,3.16,3.249,3.249,0,0,1-.79,1.185,3.35,3.35,0,0,1-1.23.736,4.867,4.8
167,0,0,1-1.6.248h-4.576v5.62h-1.249V287.836Zm-.276,6.43a3.244,3.244,0,0,0,2.116-.661,2.93,2.93,0,0,0,0-4.037,3.266,3.266,0,0,0-2.116-.662h-4.3v5.365Z",transform:"translate(-899.772 -250.534)",fill:"#747575"}),(0,I.jsx)("path",{id:"Path_14","data-name":"Path 14",d:"M1145.291,287.84v1.065h-4.575v12.051h-1.25V288.905h-4.557V287.84Z",transform:"translate(-1006.008 -250.537)",fill:"#747575"})]})]})}),ba=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:512,height:512,...e,children:(0,I.jsxs)("g",{id:"_01_align_center","data-name":"01 align center",children:[(0,I.jsx)("path",{d:"M24,9a3,3,0,0,0-3-3H19V0H5V6H3A3,3,0,0,0,0,9V21H5v3H19V21h5ZM7,2H17V6H7ZM17,22H7V16H17Zm5-3H19V14H5v5H2V9A1,1,0,0,1,3,8H21a1,1,0,0,1,1,1Z"}),(0,I.jsx)("rect",{x:15,y:10,width:4,height:2})]})}),ja=e=>(0,I.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,I.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})});var _a=a(26122),wa=a(73339),Ma=a(81388);const ya=new Ma.QueryCache({}),Ca=new Ma.QueryClient({defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,networkMode:"always"}},queryCache:ya}),Na=Ma.QueryClientProvider,ka=({children:e,userPoolClientId:t,userPoolId:a})=>{const[l,r]=(0,R.useState)(!1),n=(0,R.useRef)(null),s=(0,R.useRef)(!1);return(0,R.useEffect)(()=>{if(!t||!a)return void(s.current||(s.current=!0));const e=`${t}::${a}`;n.current!==e&&(Ot.Amplify.configure({Auth:{Cognito:{userPoolClientId:t,userPoolId:a,loginWith:{username:!1,email:!0,phone:!1}}}}),n.current=e),r(!0)},[t,a]),l?(0,I.jsx)(wa.Authenticator.Provider,{children:(0,I.jsx)(wa.View,{children:e})}):null},Va=()=>{const{search:e}=window.location,t=new URLSearchParams(e).get("actions"),a={merchantaccounts:"MerchantAccounts",pos:"POS",key:"Key",ach:"ACH",addcustomer:"AddCustomer",addsubscriptions:"AddSubscriptions"}[null==t?void 0:t.toLowerCase().replace(/[<>{}()#?|=]/g,"")];return{isAvailableMenu:["MerchantAccounts","POS","Key","ACH","AddCustomer","AddSubscriptions"].includes(a),preOpenedMenu:a}},Aa=(e,t,a="decimal")=>{if(null==e)return null;let l=null;if("number"!=typeof e||isNaN(e)||(l=e),"string"==typeof e){const t=e.trim();if(!t)return null;const a=t.replace(/,/g,"");/^-?\d+(\.\d+)?$/.test(a)&&(l=Number(a))}return null===l?null:l.toLocaleString("en-US",{style:a,currency:"USD",minimumFractionDigits:t?2:0,maximumFractionDigits:t?2:0})},Sa=e=>{if(e<=0)return"";const t=e%10;return["th","st","nd","rd"][e>3&&e<21||t>3?0:t]},Pa={ach:"BankCheck",ax:"AmericanExpress","american-express":"AmericanExpress",bs:"BancoSantander",dc:"Discover",di:"Discover",discover:"Discover","diners-club":"DinersClub",diners:"DinersClub",dinersclub:"DinersClub","diners club":"DinersClub",gc:"GiftCard",jc:"JCB",jcb:"JCB",maestro:"Maestro",mc:"MasterCard",mastercard:"MasterCard",pp:"Paypal",sh:"Shell",ud:"UnionPay",up:"UnionPay",unionpay:"UnionPay",vi:"Visa",visa:"Visa",default:"Default"},Ta={ach:"BankCheck",ax:"AmericanExpressBlack","american-express":"AmericanExpressBlack",bs:"BancoSantanderBlack",dc:"DiscoverBlack",di:"DiscoverBlack",discover:"DiscoverBlack","diners-club":"DinersClubBlack",diners:"DinersClubBlack",dinersclub:"DinersClubBlack","diners club":"DinersClubBlack",gc:"GiftCardBlack",jc:"JCBBlack",jcb:"JCBBlack",maestro:"MaestroBlack",mc:"MasterCardBlack",mastercard:"MasterCardBlack",pp:"PaypalBlack",sh:"ShellBlack",up:"UnionPayBlack",ud:"UnionPayBlack",unionpay:"UnionPayBlack",vi:"VisaBlack",visa:"VisaBlack",default:"Default"},Da=({searchParams:e,logicOperator:t,pageFilters:a})=>{const l=[...e.keys()].filter(e=>{var t;return"logicOperator"!==e&&(null===(t=Object.keys(a))||void 0===t?void 0:t.includes(z(a,e.split("-")[0])))});if(l.length>1)e.set("logicOperator",t);else if(1===l.length){const r=l[0],n=z(a,r.split("-")[0]),s=e.get(r);!q(a,n)&&(q(a,n)||null!=s&&s.includes("~"))?e.set("logicOperator",t):e.delete("logicOperator")}},Ea={contains:"contains",equals:"equals",startsWith:"starts with",endsWith:"ends with",range:"range"},La=({searchParams:e,pageFilters:t,setSearchParams:a,defaultDate:l})=>{const{items:r,logicOperator:n}=[...e.entries()].reduce((a,[r,n])=>{var s;if("logicOperator"===r)return a.logicOperator="and"===n||"or"===n?n:"and",a;const[i,o]=r.split("-"),c=z(t,i),d=(null==Ea?void 0:Ea[o])||((u=o)?u.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").toLowerCase().trim():u);var u;if(null===(s=Object.keys(t))||void 0===s||!s.includes(c))return a;
1if(q(t,c)){const t=o?d:"range";if(c){const s=n.split("~")[0],i=n.split("~")[1],{formattedStartDate:o,formattedEndDate:d}=X(s,i);if(!ae(o,!0)||!ae(d,!0))return null==e||e.delete(r),a;{const e=n.split("~").map(e=>{if(e.includes("T")&&e.endsWith("Z")){const t=D()(e);return t.isValid()?t.format("MM/DD/YYYY"):e}return e.replace(/-/g,"/")});a.items=[...a.items,{field:c,value:e,operator:t,canBeDeleted:(null==l?void 0:l.field)!==c||(null==l?void 0:l.canBeDeleted)}]}}}else{const e=n.includes("~")?n.split("~"):[n];a.items=[...a.items,...e.map(e=>({field:c,value:e,operator:d}))],l&&c===l.field&&(a.items=[l,...a.items])}return a},{items:[],logicOperator:"and"});return l&&![...e.keys()].some(e=>e.startsWith(Y(t,l.field)))&&r.unshift(l),r.sort((e,a)=>{const l=q(t,e.field),r=q(t,a.field);return l&&!r?-1:!l&&r?1:0}),a(e=>{const a=new URLSearchParams(e);for(const[t,l]of a.entries())if(t.includes("-range")&&l.includes("~")&&l.split("~").some(e=>e.includes("T")&&e.endsWith("Z"))){const e=l.split("~").map(e=>{if(e.includes("T")&&e.endsWith("Z")){const t=D()(e);return t.isValid()?t.format("MM-DD-YYYY"):e}return e}).join("~");a.set(t,e)}if(l&&!a.get(Y(t,l.field)+"-range")){const e=Array.isArray(null==l?void 0:l.value)?l.value.map(e=>e?e.replace(/\//g,"-"):"").join("~"):"";a.set(`${Y(t,l.field)}-range`,e)}return Da({searchParams:a,logicOperator:n,pageFilters:t}),a},{replace:!0}),{items:r,logicOperator:n}},Ra=e=>{if(!e)return"ach";if((e.split("*")[0]||"").replace(/\D/g,"").length<=1)return"ach";const t=e.replace(/\D/g,""),a=[{type:"american-express",pattern:/^3[47]/},{type:"visa",pattern:/^4/},{type:"mastercard",pattern:/^(5[1-5]|2[2-7])/},{type:"unionpay",pattern:/^62/},{type:"diners-club",pattern:/^3(0[0-5]|[68])/},{type:"jcb",pattern:/^35/},{type:"discover",pattern:/^(6011|65|64)/},{type:"maestro",pattern:/^(50|5[6-9]|6)/}].find(({pattern:e})=>e.test(t));return a?a.type:"ach"},$a={ach:[116,30],ax:[50,50],"american-express":[50,50],ud:[57,35],up:[57,35],unionpay:[57,35],vi:[81,24],visa:[81,24],mc:[59,35],mastercard:[59,35],dc:[102,17],discover:[102,17],jc:[49,35],jcb:[49,35],di:[102,35],"diners-club":[102,35],diners:[102,35],dinersclub:[102,35],"diners club":[102,35],maestro:[55,35],default:[55,35]},Ia=e=>{var t,a;const l=(null==e||null===(t=e.row)||void 0===t?void 0:t.original)||(null==e?void 0:e.original)||e,r=(null==l?void 0:l.accountNumberMasked)||(null==l?void 0:l.accountData)||(null==l?void 0:l.defaultCards),n=(null==l?void 0:l.accountScheme)||(null==l?void 0:l.accountType)||(null==l?void 0:l.defaultAccountType)||(null==l?void 0:l.entryMode);if(r){const e=/[\*X]/,t=r.search(e);if((t>-1?r.substring(0,t):r).replace(/\D/g,"").length<=1){const e=da,[t,a]=$a.ach;return e?(0,I.jsx)(e,{width:t,height:a}):null}}if("ACH"===n){const e=da,[t,a]=$a.ach;return e?(0,I.jsx)(e,{width:t,height:a}):null}let s=null==n||null===(a=n.toLowerCase)||void 0===a?void 0:a.call(n);!s&&r&&(s=Ra(r)),s=s||"default";const i=Pa[s]||"Default",o=y[i],[c,d]=$a[s]||$a.default;return o?(0,I.jsx)(o,{width:c,height:d}):null},Fa=e=>{if(null==e||!e.accountNumberMasked)return;if(e.accountNumberAlt)return;const t=Ra(e.accountNumberMasked);return"visa"===t?"VI":"ach"===t?void 0:t},Ha=(e,t,a,l=500)=>{e(r=>{const n={...r};for(const e in t)n[e]={...t[e]};return a.forEach(e=>{n[e]={open:!1,showOnTop:!1,closing:!0}}),setTimeout(()=>{((e,t)=>
1{e(e=>{const a={...e};return t.forEach(e=>{a[e]={...a[e],closing:!1}}),a})})(e,a)},l),n})},Ba=e=>e?e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):"N/A",Za=e=>{let t="",a=!1;for(let l=0;l<e.length;l++){const r=e[l];r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"||"_"===r?a?(t+=r>="a"&&r<="z"?r.toUpperCase():r,a=!1):0===t.length&&r>="A"&&r<="Z"?t+=r.toLowerCase():t+=r>="A"&&r<="Z"?r.toLowerCase():r:a=t.length>0}return t},Oa=/^[a-zA-Z0-9]{10}$/,Ga=(e={})=>{const{amount:t=0,estimatedTax:a=0,surcharge:l=0,surchargeType:r,taxType:n}=e,s="Inclusive"===n?t-t*(a/100):t,i=a/100*t,o=0===t?0:"Percentage"===r?l*(.01*t):l;return{amount:s,tax:i,surcharge:o,total:s+i+o}},qa=({setSearchParams:e,items:t,logicOperator:a,pageFilters:l})=>{e(e=>{const r=new URLSearchParams(e),n=e=>e.toLowerCase().split(/\s+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join(""),s=new Map;t.forEach(({field:e,operator:t,value:a})=>{const i=`${Y(l,e)}-${n(t)}`;if(q(l,e)){if(Array.isArray(a)){const e=a.map(e=>D()(e).format("MM-DD-YYYY")).join("~");r.set(i,e)}}else s.has(i)||s.set(i,new Set),s.get(i).add(a)});const i=new Set(t.map(e=>`${Y(l,e.field)}-${n(e.operator)}`));for(const[t]of Array.from(r.entries())){if("logicOperator"===t||"merchantId"===t)continue;const e=t.split("-"),a=e[0],n=z(l,a);e.length>=2&&Object.keys(l).includes(n)&&!i.has(t)&&r.delete(t)}return s.forEach((e,t)=>{r.set(t,[...e].join("~"))}),Da({searchParams:r,logicOperator:a,pageFilters:l}),r})},Wa=e=>new Map([[`logicOperator${e}`,{inputValue:"and",isValid:!0,isError:!1,errorMessage:""}],[`filterBy0${e}`,{inputValue:"",isValid:!0,isError:!1,errorMessage:""}],[`filterType0${e}`,{inputValue:"",isValid:!0,isError:!1,errorMessage:""}],[`value0${e}`,{inputValue:"",isValid:!1,isError:!1,errorMessage:""}]]),Ya=(e,t)=>{const a=new Map;return a.set(`logicOperator${t}`,{inputValue:(null==e?void 0:e.logicOperator)||"and",isValid:!0,isError:!1,errorMessage:""}),null==e||e.items.forEach((e,l)=>{a.set(`filterBy${l}${t}`,{inputValue:e.field,isValid:!0,isError:!1,errorMessage:""}),a.set(`filterType${l}${t}`,{inputValue:e.operator,isValid:!0,isError:!1,errorMessage:""}),a.set(`value${l}${t}`,{inputValue:e.value,isValid:!0,isError:!1,errorMessage:""})}),a},za=({setSearchParams:e,pageFilters:t,setFilterRows:a,uniqueIdentifier:l,filterSelections:r,setFilterSelections:n,setFilterInputValueMap:s})=>{var i;const o=(null==r||null===(i=r.items)||void 0===i?void 0:i.filter(e=>!1===(null==e?void 0:e.canBeDeleted)))??[],c=o.length>1&&(null==r?void 0:r.logicOperator)||"and",d={...r,items:o,logicOperator:c};qa({setSearchParams:e,items:o,logicOperator:c,pageFilters:t}),n(d),s(o.length>0?Ya(d,l):Wa(l)),a(o.length||1)};var Ua="containedButton__WEBZ4";const Ka=({buttonType:e,className:t="",handleClick:a,disabled:l=!1,children:r})=>{const n=e?{text:"textButton__bq-tu",contained:Ua,outlined:"outlinedButton__yPsHA",containedDark:"containedDarkButton__ZSz3e"}[e]??Ua:"defaultClass__aPm3p";return(0,I.jsx)("button",{className:`${t} ${n}`.trim(),onClick:a,disabled:l,children:r})},Xa=({filterSelections:e,setFilterSelections:t,pageFilters:a,setOpenFilter:l,setFilterInputValueMap:r,setFilterRows:n,uniqueIdentifier:s})=>{const[i,o]=(0,$.useSearchParams)();return(0,I.jsxs)("div",{className:"filterButtons__Vuwj0",children:[(0,I.jsxs)("div",{className:"filterButtonWrap__wxgJl",children:[(0,I.jsx)(F,{}),(0,I.jsx)(Ka,{buttonType:"text",handleClick:()=>{l(!0)},className:"filterButton__DlC3Y",children:"Filters"})]}),(0,I.jsx)(Ka,{buttonType:"text",handleClick:()=>za({setSearchParams:o,filterSelections:e,setFilterSelections:t,pageFilters:a,setFilterInputValueMap:r,setFilterRows:n,uniqueIdentifier:s}),className:"clearFiltersButtonRoot__aSzGp",children:"Clear Filters"})]})};const Ja=({filterSelections:e,setFilterSelections:t,pageFilters:a,setOpenFilter:l,setFilterInputValueMap:r,setFilterRows:n,uniqueIdentifier:s,excludeFilterFromChip:i,quickFilterChips:o,title:c="Filters",className:d,defaultOpen:u=!0})=>{var h;const[p,m]=(0,$.useSearchParams)(),[f,v]=(0,R.useState)(u),g=(null==e||null===(h=e.items)||void 0===h?void 0:h.filter(e=>!(null!=i&&i.includes(e.field))))??[],x=(null==o?void 0:o.filter(e=>null!=e.value&&""!==e.value))??[],b=g.length,j=x.length+b,_=(0,I.jsxs)(I.Fragment,{children:[x.map((t,a)=>{return(0,I.jsxs)(R.Fragment,{children:[0!==a&&(0,I.jsx)("span",{className:ie,children:(null==e?void 0:e.logicOperator)??"and"}),(0,I.jsx)("div",{className:oe,children:(0,I.jsxs)("div",{className:ce,children:[(0,I.jsxs)("span",{className:de,children:[t.label,": ",(l=t.value,l.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()))]}),(0,I.jsx)("div",{className:ue,onClick:()=>{return e=t.paramKey,a=t.onDelete,m(t=>{const a=new URLSearchParams(t);return a.delete(e),a},{replace:!0}),void(null==a||a());var e,a},children:(0,I.jsx)(H,{})})]})})]},t.paramKey);var l}),g.map((l,r)=>{const n=G(a,null==l?void 0:l.field)??Z(null==l?void 0:l.field,!0),s=x.length+r;return(0,I.jsx)(he,{index:s,label:`${n} ${Z(null==l?void 0:l.operator,!1)} `,operator:null==l?void 0:l.operator,field:null==l?void 0:l.field,value:null==l?void 0:l.value,canBeDeleted:(null==l?void 0:l.canBeDeleted)??!0,filterSelections:e,setFilterSelections:t,pageFilters:a,excludeFilterFromChip:i},r)})]});return(0,I.jsxs)("div",{className:`card__KOOin ${d??""}`.trim(),children:[(0,I.jsxs)("div",{className:"header__qc49J",children:[(0,I.jsxs)("button",{type:"button",className:"openButton__XNu-B",onClick:()=>l(!0),"aria-label":"Open filters",children:[(0,I.jsx)(F,{className:"filterIcon__B86Yn"}),(0,I.jsxs)("span",{className:"title__7Jbyb",children:[c,b>0?` (${b})`:""]})]}),(0,I.jsxs)("div",{className:"headerActions__THy1o",children:[j>0&&(0,I.jsx)("button",{type:"button",className:"toggleButton__-c02G",onClick:()=>v(e=>!e),"aria-expanded":f,"aria-label":f?"Hide filters":"Show filters",children:(0,I.jsx)(B,{className:("toggleIcon__fMqol "+(f?"toggleIconOpen__QlGfK":"")).trim()})}),b>0&&(0,I.jsx)("button",{type:"button",className:"clearButton__UtoRp",onClick:()=>za({setSearchParams:m,filterSelections:e,setFilterSelections:t,pageFilters:a,setFilterInputValueMap:r,setFilterRows:n,uniqueIdentifier:s}),children:"Clear all"})]})]}),j>0&&f&&(0,I.jsx)("div",{className:"chipList__-crJH",children:_})]})};const Qa=({setSearchParams:e,pageFilters:t,searchParams:a,setOpenFilter:l,setFilterRows:r,filterSelections:n,uniqueIdentifier:s,setFilterSelections:i,filterInputValueMap:o,handleUpdateUrlParams:c,setFilterInputValueMap:d})=>{var u;const h=(e=>{let a="",l=[];return Array.from(e.entries()).reduce((e,[r,{inputValue:s}])=>{if(r.length>100)return e;const i=r.match(/^(filterBy|filterType|value)(\d+)(?:.{0,50})?$/);if(!i)return e;const[,o,c]=i,d=Number(c);if(e[d]||(e[d]={field:"",operator:"",value:""}),r.includes("filterBy")&&(a=s,q(t,s))){var u,h;const e=null==n||null===(u=n.items)||void 0===u?void 0:u.filter(e=>e.field===a);!1===(null==e||null===(h=e[0])||void 0===h?void 0:h.canBeDeleted)&&(l=e)}if("filterBy"===o){const r=s;var p,m;a=r,q(t,r)&&(null===(p=l)||void 0===p?void 0:p.length)>0&&(e[d].canBeDeleted=null===(m=l[0])||void 0===m?void 0:m.canBeDeleted),e[d].field=r}var f,v;return"filterType"===o&&(e[d].operator=s.toLowerCase()),"value"===o&&(e[d].value=s,"object"==typeof s&&null===(null==s?void 0:s[0])&&(e[d].value=[new Date(null===(f=l[0])||void 0===f?void 0:f.value[0]),new Date(null===(v=l[0])||void 0===v?void 0:v.value[1])])),e},[]).filter(e=>""!==e.field&&""!==e.operator&&(Array.isArray(e.value)?e.value.length>0:""!==e.value))})(o).reduce((e,a)=>{const l=U(t,a.field);return[...e.filter(e=>!l.includes(e.field)),a]},[]);l(!1),setTimeout(()=>{0===(null==h?void 0:h.length)&&d(Wa(s)),r((null==h?void 0:h.length)||1)},500);const p=(null===(u=o.get(`logicOperator${s}`))||void 0===u?void 0:u.inputValue)||"and";i(e=>({...e,items:h,logicOperator:p})),c({setSearchParams:e,searchParams:a,items:h,logicOperator:p,pageFilters:t})},el=(e,t,a)=>{const l=new Map;for(const[n,s]of e.entries()){if(!n.endsWith(a)){l.set(n,s);continue}const e=n.slice(0,-a.length).match(/^(filterBy|filterType|value)(\d+)$/);if(!e){l.set(n,s);continue}const[,,r]=e;Number(r)!==t&&l.set(n,s)}const r=[];for(const[n,s]of l.entries()){if(!n.endsWith(a))continue;const e=n.slice(0,-a.length).match(/^(filterBy|filterType|value)(\d+)$/);if(!e)continue;const[,l,i]=e,o=Number(i);if(o>t){const e=`${l}${o-1}${a}`;r.push({oldKey:n,newKey:e,value:s})}}for(const{oldKey:n,newKey:s,value:i}of r)l.delete(n),l.set(s,i);return l};const tl=({handleOptionClick:e,options:t,selectedValue:a,dropdownRef:l,className:r,optionClickRef:n,dropdownBottomRef:s})=>{const i=(0,R.useRef)([]);return(0,R.useEffect)(()=>{var e;const a=null==t?void 0:t.findIndex(e=>e.isHighlighted),l=null==i||null===(e=i.current)||void 0===e?void 0:e[a];l&&l.scrollIntoView({behavior:"smooth",block:"nearest"})}
1,[t]),(0,I.jsx)("div",{tabIndex:-1,className:`dropdownOptions__4TUz- ${r||""}`,ref:l,onMouseDown:()=>{n&&void 0!==n.current&&(n.current=!0)},onTouchEnd:()=>{n&&void 0!==n.current&&(n.current=!0)},children:(0,I.jsxs)("ul",{className:"list__c8U1k",role:"listbox",tabIndex:-1,children:[t.map((t,l)=>(0,I.jsx)("li",{ref:e=>i.current[l]=e,className:`option__Na0vL ${t.isHighlighted?"highlighted__S-uRM":""} ${a===t.value?"selectedValue__HK9iL":""}`,tabIndex:a===t.value?0:-1,role:"option","aria-selected":a===t.value,onClick:()=>e(t.label,t.value),children:t.displayLabel?t.displayLabel:t.label},l)),0===t.length&&(0,I.jsx)("li",{className:"noOptions__AzR7U",role:"option",children:"No options available"}),s&&(0,I.jsx)("div",{className:"dropdownBottomRef__xaMtZ",ref:s})]})})},al=({name:e,label:t,placeholder:a,inputValueMap:l,setInputValueMap:r,required:n=!0,options:s,onChangeCallback:i,disabled:o=!1,className:c="",dropdownBottomRef:d,setIsDropdownOpenCallback:u,hasActionButton:h=!1})=>{const p=(0,R.useRef)(null),m=(0,R.useRef)(null),f=(0,R.useRef)(!1),v=(0,R.useRef)(!1),g=(0,R.useRef)(!1),x=(0,R.useMemo)(()=>h&&s&&s.length>0?s[0]:null,[h,s]),b=(0,R.useMemo)(()=>h&&s&&s.length>0?s.slice(1):s??[],[h,s]),[j,_]=(0,R.useState)(!1),[w,M]=(0,R.useState)(-1),[y,C]=(0,R.useState)(!1),N=l.get(e),k=(null==N?void 0:N.inputValue)||"",V=null==b?void 0:b.find(e=>e.value===k),A=(null==V?void 0:V.label)||"",S=(null==N?void 0:N.isError)||!1,P=(null==N?void 0:N.errorMessage)||"",T=e=>n&&!e?{isValid:!1,errorMessage:"This field is required"}:{isValid:!0,errorMessage:""},D=(t,a)=>{f.current=!0;const{isValid:n,errorMessage:s}=T(a);_(!1),v.current=!1,M(-1);let o=l;l&&r&&(o=new Map(l),o.set(e,{inputValue:a,isValid:n,isError:!n,errorMessage:s}),r(o)),i&&i({label:t||"",value:a,name:e,inputValueMap:o}),setTimeout(()=>{f.current=!1},100)},E=()=>{C(!0),g.current||(j||o||setTimeout(()=>{_(!0),v.current=!0;const e=null==b?void 0:b.findIndex(e=>e.value===k);M(e>=0?e+(h&&x?1:0):0)},0),p.current&&p.current.focus())},L=b.length+(h&&x?1:0),$=(0,R.useCallback)(()=>{const t=v.current;if(_(!1),v.current=!1,!y||!t)return;const{isValid:a,errorMessage:n}=T(k);if(l&&r){const t=new Map(l);t.set(e,{inputValue:k,isValid:a,isError:!a,errorMessage:n}),r(t)}},[y,k,l,r,e,n,N]),F=(0,R.useRef)(null);return(0,R.useEffect)(()=>{const e=e=>{F.current&&!F.current.contains(e.target)&&setTimeout(()=>{f.current||$()},50)},t=()=>{document.hidden?(g.current=!0,v.current&&(_(!1),v.current=!1)):!document.hidden&&g.current&&setTimeout(()=>{g.current=!1},300)};return document.addEventListener("mousedown",e),document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("visibilitychange",t)}},[$]),(0,R.useEffect)(()=>{u&&u(j)},[j,u]),(0,I.jsxs)("div",{ref:F,className:`container__JPOAH dropDownContainer ${c} ${S?"error__CHpb3":""}`.trim(),onFocus:E,children:[t&&(0,I.jsx)("label",{className:"floatinglabel__LjCSH dropDownFloatinglabel","data-shrink":"true",children:t}),(0,I.jsxs)("div",{className:"wrapper__xNAW3 dropDownWrapper",children:[(0,I.jsx)("div",{tabIndex:0,role:"combobox","aria-expanded":j,"aria-haspopup":"listbox",className:(o?"labelDisabled__cOGAQ":"label__Rd7NT")+" dropDownBox",onClick:E,children:A||(0,I.jsx)("div",{className:"placeholder__fWdch",children:a})}),(0,I.jsx)("input",{tabIndex:0,"aria-invalid":S,className:"input__6lxCf dropDownInput",value:k,ref:p,placeholder:a,readOnly:!0,onFocus:E,onKeyDown:e=>{if(j)if("ArrowDown"===e.key)e.preventDefault(),M(e=>(e+1)%L);else if("ArrowUp"===e.key)e.preventDefault(),M(e=>e<=0?L-1:e-1);else if("Enter"===e.key&&w>=0){if(e.preventDefault(),h&&x&&0===w)D("string"==typeof x.label?x.label:"",x.value);else{const e=b[h&&x?w-1:w];e&&D(e.label,e.value)}M(-1)}else"Tab"===e.key&&(_(!1),v.current=!1,M(-1))}}),(0,I.jsx)("svg",{className:"icon__0eAo0 dropDownIcon",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"ArrowDropDownIcon",children:(0,I.jsx)("path",{d:"M7 10l5 5 5-5z"})}),(0,I.jsx)("fieldset",{"aria-hidden":"true",className:"fieldset__rrmTX dropDownFieldset",children:(0,I.jsx)("legend",{className:"legend__bSzVA dropDownLegend",children:t&&(0,I.jsx)("span",{className:"legendSpan__LilS0 dropDownLegendSpan",children:t})})})]}),j&&!o&&(0,I.jsx)(tl,{handleOptionClick:D,selectedValue:k,options:(()=>{const e=b.map((e,t)=>({...e,isHighlighted:t===(h&&x?w-1:w),displayLabel:e.label}));return h&&x?[{label:"string"==typeof x.label?x.label:"",value:x.value,displayLabel:x.label,isHighlighted:0===w},...e]:e})(),dropdownRef:m,className:"dropdownOptions__3rQJJ dropDownOptions",dropdownBottomRef:d}),S&&P&&(0,I.jsx)("small",{className:"formHelperText__yRzfe dropDownFormHelperText",children:P})]})};const ll=({message:e,children:t,className:a,width:l,open:r,onOpenChange:n,anchorRef:s})=>{const{width:i}=we(),o=i<=650,c=void 0!==r,[d,u]=(0,R.useState)(!1),h=c?!!r:d,[p,m]=(0,R.useState)({x:0,y:0,arrowX:0}),f=(0,R.useRef)(null),v=(0,R.useRef)(null),[g,x]=(0,R.useState)(null);(0,R.useEffect)(()=>{x((()=>{const e=document.getElementById("tooltip-root");
1if(e)return e;const t=document.createElement("div");return t.id="tooltip-root",document.body.appendChild(t),t})())},[]);const b=(0,R.useCallback)(e=>{c||u(e),null==n||n(e)},[c,n]),j=(0,R.useCallback)(()=>{var e;const t=(null==s?void 0:s.current)??f.current,a=f.current??t;if(!t||!a)return;const r=t.getBoundingClientRect(),n=a.getBoundingClientRect(),i=window.innerWidth,o=r.left+r.width/2,c=n.left+n.width/2,d=(null===(e=v.current)||void 0===e?void 0:e.offsetWidth)??0,u=l??(d>0?d:260);let h;h=o<i/3?r.left:o>2*i/3?r.right-u:o-u/2;const p=15,g=c-h;g<p?h-=p-g:g>u-p&&(h+=g-(u-p)),h=Math.max(8,Math.min(h,i-u-8));const x=c-h,b=Math.max(p,Math.min(x,u-p)),j=n.top-8;m({x:h,y:j,arrowX:b})},[l,s]);(0,R.useLayoutEffect)(()=>{if(!h)return;j();const e=()=>j();let t;return window.addEventListener("scroll",e,{passive:!0,capture:!0}),window.addEventListener("resize",e),void 0===l&&v.current&&(t=new ResizeObserver(()=>j()),t.observe(v.current)),()=>{var a;window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e),null===(a=t)||void 0===a||a.disconnect()}},[h,j,l,e]),(0,R.useEffect)(()=>{if(!h||!o)return;const e=e=>{var t,a;const l=e.target;l&&(null!==(t=f.current)&&void 0!==t&&t.contains(l)||null!==(a=v.current)&&void 0!==a&&a.contains(l)||b(!1))},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[h,o,b]);const _=null!=e&&!1!==e&&""!==e,w=()=>{o||_&&b(!0)},M=()=>{o||b(!1)},y=(0,R.isValidElement)(t)?(0,R.cloneElement)(t,{onClick:e=>{var a,l;null===(a=t.props)||void 0===a||null===(l=a.onClick)||void 0===l||l.call(a,e)}}):t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{ref:f,className:`trigger__bpvLZ ${a??""}`.trim(),onClick:e=>{o&&(h||_)&&(e.stopPropagation(),e.preventDefault(),b(!h))},onMouseEnter:w,onMouseLeave:M,onFocus:w,onBlur:M,children:y}),h&&g&&(0,jt.createPortal)((0,I.jsx)("div",{ref:v,className:"bubble__orxo7",style:{left:`${p.x}px`,top:`${p.y}px`,...void 0!==l?{width:`${l}px`}:null,"--arrow-x":`${p.arrowX}px`},role:"tooltip",children:e}),g)]})},rl=[{label:"Contains",value:"contains"},{label:"Equals",value:"equals"},{label:"Starts With",value:"starts with"},{label:"Ends With",value:"ends with"},{label:"Greater Than",value:"greater than"},{label:"Less Than",value:"less than"},{label:"Greater Than/Equal To",value:"greater than or equal to"},{label:"Less Than/Equal To",value:"less than or equal to"},{label:"Range",value:"range"}],nl=[{label:"and",value:"and"},{label:"or",value:"or"}],sl=({columns:e,filterName:t,filterRows:a,openFilter:l,pageFilters:r,setOpenFilter:n,setFilterRows:s,filterSelections:i,uniqueIdentifier:o,setFilterSelections:c,filterInputValueMap:d,setFilterInputValueMap:u})=>{var h;const[p,m]=(0,$.useSearchParams)(),f=(0,R.useRef)(null),v=(0,R.useRef)(d),[g,x]=(0,R.useState)({});return(0,R.useEffect)(()=>{v.current=d},[d]),(0,R.useEffect)(()=>{if(l){var e,t;const a=null==i||null===(e=i.items)||void 0===e?void 0:e.reduce((e,t,a)=>q(r,null==t?void 0:t.field)?{...e,[a]:null==t?void 0:t.field}:e,{}),l=Ya(i,o);u(new Map(l)),x(a),s((null==i||null===(t=i.items)||void 0===t?void 0:t.length)||1)}},[l]),(0,I.jsxs)("div",{className:"filterPanel__wQgIk "+(l?"open__O08tq":"closed__do0Ik"),ref:f,onKeyDown:e=>{if("Enter"===e.key&&!e.defaultPrevented){const t=e.target;"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.closest('[role="listbox"]')||(e.preventDefault(),Qa({setSearchParams:m,pageFilters:r,searchParams:p,setOpenFilter:n,filterInputValueMap:v.current,setFilterRows:s,setFilterInputValueMap:u,filterSelections:i,setFilterSelections:c,handleUpdateUrlParams:qa,uniqueIdentifier:o}))}},children:[(0,I.jsxs)("div",{className:"filterPanelWrap__SE0Vi",children:[(0,I.jsx)("h4",{className:"filterTitle__CfIor",children:t}),(0,I.jsx)("div",{children:null===(h=[...Array(a)])||void 0===h?void 0:h.map((t,l)=>{var n,c,h,p,m,f;const v=null==d||null===(n=d.get(`filterBy${l}${o}`))||void 0===n?void 0:n.inputValue,b=a>1,j=!1!==(null==i||null===(c=i.items[l])||void 0===c?void 0:c.canBeDeleted),_=(null==i||null===(h=i.items)||void 0===h?void 0:h.length)>1&&(null==d||null===(p=d.get(`filterBy0${o}`))||void 0===p?void 0:p.inputValue)&&j,w=g[l],M=[];for(let e=0;e<a;e++){var y;if(e===l)continue;const t=null==d||null===(y=d.get(`filterBy${e}${o}`))||void 0===y?void 0:y.inputValue;t&&M.push(t)}const C=K(r,M),N=(null==e?void 0:e.filter(e=>{const t=Object.entries(g).some(([t,a])=>parseInt(t)!==l&&a===e.accessorKey),a=e.accessorKey===w&&e.header===v,n=C.has(e.accessorKey);return(a||!t)&&!n&&"action"!==e.accessorKey&&(null==r?void 0:r[e.accessorKey])}))??[],k=["greater than","less than","greater than or equal to","less than or equal to"],V="equalsOnl
1y"===O(r,v)||Array.isArray(O(r,v));return(0,I.jsxs)("div",{className:`${b||_||j&&b?"filterWrap__PGMMn":"filterWrapSingle__RtQeh"} ${v&&V?"withTooltip__c1w7z":""}`.trim(),children:[(0===l&&b||_||l>0)&&(0,I.jsx)(Ka,{buttonType:"text",handleClick:j?()=>(e=>{x(t=>{if(e in t){const{[e]:a,...l}=t;return l}return t}),s(a-1==0?1:a-1);const t=el(d,e,o);u(new Map(t))})(l):()=>null,disabled:!j,className:"removeFilterButton__tBd96",children:j&&(0,I.jsx)("div",{children:(0,I.jsx)(pa,{})})}),l>0&&(0,I.jsx)(I.Fragment,{children:1===l?(0,I.jsx)(al,{name:`logicOperator${o}`,label:"Operator",placeholder:"Select",options:null==nl?void 0:nl.map(e=>({label:e.label,value:e.value})),inputValueMap:d,setInputValueMap:u}):(0,I.jsx)("div",{className:"logicOperator__TmhFz",children:(null==d||null===(m=d.get(`logicOperator${o}`))||void 0===m?void 0:m.inputValue)||"and"})}),(0,I.jsx)(al,{name:`filterBy${l}${o}`,label:"Filter By",placeholder:"Select",onChangeCallback:({value:e,inputValueMap:t})=>((e,t,a)=>{x(a=>{if(e in a){const{[e]:t,...l}=a;return l}return q(r,t)?{...a,[e]:t}:a});const l=Array.isArray(O(r,t))||"equalsOnly"===O(r,t),n=new Map(a);t&&l?n.set(`filterType${e}${o}`,{inputValue:"equals",isValid:!0,isError:!1,errorMessage:""}):t&&q(r,t)?n.set(`filterType${e}${o}`,{inputValue:"range",isValid:!0,isError:!1,errorMessage:""}):n.set(`filterType${e}${o}`,{inputValue:"",isValid:!0,isError:!1,errorMessage:""}),n.set(`value${e}${o}`,{inputValue:"",isValid:!0,isError:!1,errorMessage:""}),u(n)})(l,e,t),options:null==N?void 0:N.map(e=>({label:e.header,value:e.accessorKey})),inputValueMap:d,setInputValueMap:u,disabled:!1===j}),(0,I.jsx)(al,{name:`filterType${l}${o}`,label:"Filter Type",placeholder:"Select",options:rl.filter(e=>{const t=e.value;return v&&q(r,v)?"range"===t:v&&"containsEndsWith"===O(r,v)?"contains"===t||"ends with"===t:v&&V?"equals"===t:v&&"numbersOnly"===O(r,v)?"equals"===t||k.includes(t):"range"!==t&&!k.includes(t)}).map(e=>({label:e.label,value:e.value})),inputValueMap:d,setInputValueMap:u}),v&&q(r,v)?(0,I.jsx)(Lt,{name:`value${l}${o}`,index:l,required:!1,inputValueMap:d,setInputValueMap:u,dateRangeType:"futureDate"===O(r,v)?"future":"all"===O(r,v)?"all":"past"}):Array.isArray(O(r,v))&&(null===(f=O(r,v))||void 0===f?void 0:f.length)>0?(0,I.jsx)(al,{name:`value${l}${o}`,label:"Value",placeholder:"Select",options:O(r,v).map(e=>"object"==typeof e&&null!=e&&e.label&&null!=e&&e.value?e:{label:e,value:e}).filter(e=>{const t=new Set;for(let s=0;s<a;s++){var r;if(s!==l&&(null==d||null===(r=d.get(`filterBy${s}${o}`))||void 0===r?void 0:r.inputValue)===v){var n;const e=null==d||null===(n=d.get(`value${s}${o}`))||void 0===n?void 0:n.inputValue;e&&t.add(e)}}return!t.has(e.value)}),inputValueMap:d,setInputValueMap:u}):(0,I.jsx)(_e,{name:`value${l}${o}`,label:"Value",placeholder:"Enter value",showClearButton:!0,inputValueMap:d,setInputValueMap:u}),v&&V&&!Array.isArray(O(r,v))&&(0,I.jsx)("div",{className:"tooltipWrapper__n--rn",children:(0,I.jsx)(ll,{message:"* Only Equals filter type is available for this field",children:(0,I.jsx)(ga,{})})})]},l)})}),(0,I.jsxs)("div",{className:"buttonWrap__ZFh02",children:[(0,I.jsx)(Ka,{buttonType:"text",handleClick:()=>s(a+1),className:"addFilterButton__Axe8q",children:"+ Add Filter"}),(0,I.jsx)(Ka,{buttonType:"contained",handleClick:()=>Qa({setSearchParams:m,pageFilters:r,searchParams:p,setOpenFilter:n,filterInputValueMap:v.current,setFilterRows:s,setFilterInputValueMap:u,filterSelections:i,setFilterSelections:c,handleUpdateUrlParams:qa,uniqueIdentifier:o}),className:"applyFiltersButton__tdV8R",children:"Apply Filters"})]})]}),(0,I.jsx)("div",{className:"filterBottom__GjlC-",onClick:()=>n(!1)})]})};var il=a(62727);const ol=e=>/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(e)||/^rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)$/.test(e)||/^rgba\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*(?:\d(?:\.\d+)?|1|0)\s*\)$/.test(e)||/^hsl\(\s*\d{1,3}\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%\s*\)$/.test(e)||/^hsla\(\s*\d{1,3}\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%\s*,\s*(?:\d(?:\.\d+)?|1|0)\s*\)$/.test(e),cl=({name:e,label:t,placeholder:a,inputValueMap:l,required:r=!0,onChangeCallback:n,setInputValueMap:s,customClassName:i="",defaultValue:o})=>{const c=(0,R.useRef)(null),d=(0,R.useRef)(null),u=(0,R.useRef)(null),[h,p]=(0,R.useState)(!1),m=l.get(e),f=(null==m?void 0:m.inputValue)||o||"",v=(null==m?void 0:m.isError)||!1,g=(null==m?void 0:m.errorMessage)||"",x=(0,R.useMemo)(()=>`swatch-${e}-${(0,Ne.v4)()}`,[e]),b=()=>{p(e=>!e)},j=a=>{let i;if("hex"in a){const{r:e,g:t,b:l,a:r}=a.rgb;i=r&&r<1?`rgba(${e}, ${t}, ${l}, ${r})`:a.hex}else i=a.target.value;const c=ol(i),d=!c&&r?"Please enter a valid color.":"";let u=l;if(l&&s){const t=i||o||"";u=new Map(l),u.set(e,{inputValue:t,isValid:c,isError:!c,errorMessage:d}),s(u)}n&&n({label:t||"",value:i,name:e||"",inputValueMap:u})};return(0,R.useEffect)(()=>{const e=e=>{var t;!h||!d.current||d.current.contains(e.target)||null!==(t=c.current)&&void 0!==t&&t.contains(e.target)||p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[h]),(0,R.useEffect)(()=>{const e=document.createElement("style");return e.setAttribute("data-color-swatch",x),document.head.appendChild(e),u.current=e,()=>{e.remove(),u.current=null}},[x]),(0,R.useEffect)(()=>{const e=u.current;if(null==e||!e.sheet)return;const t=e.sheet;for(;t.cssRules.length>0;)t.deleteRule(0);const a=ol(f)?f:"transparent",l=`[data-swatch="${x}"]{background-color:${a} !important;}`;t.insertRule(l,0)},[f,x]),(0,I.jsxs)("div",{className:`colorPickerContainer__2D-zg colorPickerContainer ${i}`.trim(),children:[(0,I.jsxs)("div",{className:`container__mivX6 textFieldContainer ${v&&r?"error__gQK0r textFieldError":""} ${i}`.trim(),children:[t&&(0,I.jsx)("label",{className:"floatinglabel__zrUms textFieldFloatingLabel","data-shrink":"true",htmlFor:e,children:t}),(0,I.jsxs)("button",{className:"wrapper__Rxvkf textFieldWrapper".trim(),onClick:b,children:[(0,I.jsx)("input",{"aria-invalid":v,id:e,name:e,placeholder:a,type:"text",className:"input__7u6UT textFieldInput",value:f,onChange:j,onBlur:j,ref:c,autoComplete:"off"}),(0,I.jsx)("fieldset",{"aria-hidden":"true",className:"fieldset__H8Znh textFieldFieldset".trim(),children:(0,I.jsx)("legend",{className:"legend__cFzZG textFieldLegend",children:t&&(0,I.jsx)("span",{className:"legendSpan__4qIJb textFieldLegendSpan",children:t})})})]}),v&&g&&(0,I.jsx)("small",{className:"formHelperText__hVk0h textFieldFormHelperText",children:g})]}),(0,I.jsx)("button",{onClick:b,className:"colorBox__U5h4V","data-swatch":x,"data-color":f}),h&&(0,I.jsx)("div",{ref:d,className:"colorPickerPopup__UcZGU colorPickerPopupOverRide",children:(0,I.jsx)(il.xk,{color:f,onChange:j})})]})};var dl={formHelperText:"formHelperText__OV920",container:"container__IjIHO",rowGroup:"rowGroup__FcLQC",columnGroup:"columnGroup__wvG-8",legend:"legend__jNyjD",checkboxLabel:"checkboxLabel__bq2MH",checkbox:"checkbox__djx0u",checkboxBox:"checkboxBox__n-zF0",checkmarkPath:"checkmarkPath__omC73",fixStroke:"fixStroke__-RGdW",animate:"animate__PcK0J",labelText:"labelText__cdNj8",inputWrapper:"inputWrapper__cYmS-",checkboxGroupRow:"checkboxGroupRow__PlKG2",checkmark:"checkmark__GUfDD",error:"error__fsa-1"};const ul=({min:e,max:t,name:a,options:l,className:r,inputValueMap:n,layout:s="row",required:i=!0,onChangeCallback:o,setInputValueMap:c,label:d})=>{const u=(0,R.useId)(),h=n.get(a),p=Array.isArray(null==h?void 0:h.inputValue)?h.inputValue:[],m=i&&(null==h?void 0:h.errorMessage)||"",f=i&&(null==h?void 0:h.isError)||!1,[v,g]=(0,R.useState)([]),x=l=>{const r=l.target,s=r.value,u=r.checked?[...p,s]:p.filter(e=>e!==s);r.checked&&(g(e=>[...e,s]),setTimeout(()=>{var e;g((e=s,t=>t.filter(t=>t!==e)))},200));let h={isValid:!0,isError:!1,errorMessage:""};e&&u.length<e?h={isValid:!1,isError:!0,errorMessage:`Min of: ${e}`}:t&&u.length>t?h={isValid:!1,isError:!0,errorMessage:`Max of: ${t}`}:i&&0===u.length&&(h={isValid:!1,isError:!0,errorMessage:"This field is required"});let m=n;n&&a&&c&&(m=new Map(n),m.set(a,{inputValue:u,isValid:h.isValid,isError:h.isError,errorMessage:h.errorMessage}),c(m)),o&&o({label:String(d||""),value:u,name:a,inputValueMap:m})};return(0,I.jsxs)("fieldset",{className:`${dl.container} ${r||""} ${"row"===s?dl.rowGroup:dl.columnGroup} ${f?dl.error:""}`.trim(),children:[d&&(0,I.jsx)("legend",{className:dl.legend,children:d}),(0,I.jsx)("div",{className:`${dl.checkboxGroupRow} checkboxGroupRow`,children:(l??[]).map(e=>{const t=p.includes(e.value);return(0,I.jsxs)("div",{className:dl.inputWrapper,id:`${a}-wrapper`,children:[(0,I.jsx)("input",{type:"checkbox",id:`${a}-${e.value}
1`,name:a,value:e.value,checked:t,onChange:x,className:dl.checkbox,hidden:!0}),(0,I.jsxs)("label",{className:dl.checkboxLabel,htmlFor:`${a}-${e.value}`,onClick:a=>{a.preventDefault(),x({target:{value:e.value,checked:!t}})},children:[e.startAdornment&&(0,I.jsx)("div",{className:"checkboxBoxStartAdornment",children:e.startAdornment}),(0,I.jsx)("span",{className:`${dl.checkboxBox} checkboxBox`,children:(0,I.jsx)("svg",{className:dl.checkmark,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,I.jsx)("path",{className:[dl.checkmarkPath,v.includes(e.value)?dl.animate:"",t?dl.fixStroke:""].join(" "),fill:"none",d:"M4 10 l5 4 8-8.5"})})}),(0,I.jsx)("span",{className:`${dl.labelText} labelText`,children:e.label}),e.endAdornment&&(0,I.jsx)("div",{className:"checkboxBoxEndAdornment",children:e.endAdornment})]})]},`${u}-${e.value}`)})}),f&&m&&(0,I.jsx)("small",{className:`${dl.formHelperText}`,children:m})]})};var hl={checkboxSingle:"checkboxSingle__mNUqP",formHelperText:"formHelperText__4BRj7",container:"container__VZCbc",rowGroup:"rowGroup__esD8n",legend:"legend__tC8-4",labelText:"labelText__j2jRe",inputWrapper:"inputWrapper__NcX9I",checkboxBox:"checkboxBox__RRhLS",checkboxGroupRow:"checkboxGroupRow__zC1GM",checkmark:"checkmark__71kfs",checkmarkPath:"checkmarkPath__oDsfL",error:"error__spirV",checkboxLabel:"checkboxLabel__RB3tU",checked:"checked__p7qAG",fixStroke:"fixStroke__NNS30",animate:"animate__bqpcD"};const pl=({name:e,label:t,option:a,className:l,endAdornment:r,inputValueMap:n,startAdornment:s,required:i=!0,onChangeCallback:o,setInputValueMap:c,disabled:d=!1})=>{const u=n.get(e),h=(null==u?void 0:u.inputValue)??!1,p=i&&(null==u?void 0:u.errorMessage)||"",m=i&&(null==u?void 0:u.isError)||!1,[f,v]=(0,R.useState)(!1);return(0,I.jsx)("div",{className:hl.checkboxSingle,children:(0,I.jsxs)("fieldset",{className:`${hl.container} ${l||""} ${hl.rowGroup} ${m?hl.error:""}`.trim(),children:[t&&(0,I.jsx)("legend",{className:hl.legend,children:t}),(0,I.jsx)("div",{className:`${hl.checkboxGroupRow} checkboxGroupRow`,children:(0,I.jsxs)("div",{className:hl.inputWrapper,id:`${e}-wrapper`,children:[(0,I.jsx)("input",{type:"checkbox",id:`${e}-${a}`,name:e,value:a,checked:h,onChange:()=>{},hidden:!0,disabled:d}),(0,I.jsxs)("label",{className:`${hl.checkboxLabel} ${h?hl.checked:""}`,onClick:a=>{a.preventDefault(),d||(()=>{const a=!h;a&&v(!0);let l={isValid:!0,isError:!1,errorMessage:""};i&&!a&&(l={isValid:!1,isError:!0,errorMessage:"This field is required"});const r={inputValue:a,isValid:l.isValid,isError:l.isError,errorMessage:l.errorMessage};if(c(t=>{const a=new Map(t);return a.set(e,r),a}),o){const l=new Map(n);l.set(e,r),o({label:String(t||""),value:a,name:e,inputValueMap:l})}})()},onPointerDown:e=>{e.preventDefault(),setTimeout(()=>{var e;null===(e=document.activeElement)||void 0===e||e.blur(),document.body.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}))},0)},children:[s&&(0,I.jsx)("div",{className:"checkboxBoxStartAdornment",children:s}),(0,I.jsx)("span",{className:`${hl.checkboxBox} checkboxBox`,children:(0,I.jsx)("svg",{className:hl.checkmark,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,I.jsx)("path",{className:[hl.checkmarkPath,f?hl.animate:"",h?hl.fixStroke:""].join(" "),fill:"none",d:"M4 10 l5 4 8-8.5"})})}),(0,I.jsx)("span",{className:`${hl.labelText} labelText`,children:a}),r&&(0,I.jsx)("div",{className:"checkboxBoxEndAdornment",children:r})]})]})}),m&&p&&(0,I.jsx)("small",{className:`${hl.formHelperText}`,children:p})]})})};const ml=(e,t)=>
1{if(e.length!==t.length)return!1;const a=[...e].sort((e,t)=>e.id-t.id),l=[...t].sort((e,t)=>e.id-t.id);return JSON.stringify(a)===JSON.stringify(l)},fl=(0,R.forwardRef)(({name:e,label:t,options:a=[],className:l="",placeholder:r="Select",inputValueMap:n,setInputValueMap:s,minTags:i=0,maxTags:o=1/0,hideError:c=!1,onBlurCallback:d,onChangeCallback:u,onFocusCallback:h,onKeyDownCallback:p,disabled:m,onDeleteCallback:f,errorMessage:v,optionClickRef:g},x)=>{const b=(0,R.useRef)(null),j=n.get(e),_=Array.isArray(null==j?void 0:j.inputValue)?j.inputValue:[],w=(null==j?void 0:j.errorMessage)||v,M=(null==j?void 0:j.isError)||!1,[y,C]=(0,R.useState)(a.map((e,t)=>({...e,id:t}))),[N,k]=(0,R.useState)("");(0,R.useImperativeHandle)(x,()=>({addTag:(e,t)=>{A(e,t)}})),(0,R.useEffect)(()=>{const e=a.map((e,t)=>({...e,id:t}));C(t=>ml(t,e)?t:e)},[a]);const V=(t,a=n)=>{var l,r;const c=t.length>=i&&t.length<=o,d=c?"":`You must have between ${i} and ${o} tags.`,u=Array.isArray(null===(l=a.get(e))||void 0===l?void 0:l.inputValue)?null===(r=a.get(e))||void 0===r?void 0:r.inputValue:[];if(!ml(u,t)){const l=new Map(a);l.set(e,{inputValue:t,isValid:c,isError:!c,errorMessage:d}),s(l)}},A=(e,t=n)=>{const a=e?e.value:N,l=e?e.label:N,r=_.some(e=>e.label===a),s=y.some(e=>e.label===a);if(a&&!r&&!s){const e={label:l,value:a,id:y.length},r=[..._,e];var i;V(r,t),C([...y,e]),k(""),null!=b&&b.current&&"function"==typeof b.current.clearInput&&(null===(i=b.current)||void 0===i||i.clearInput())}},S=e=>{const t=null==_?void 0:_.filter(t=>t.label!==e);if(V(t),f){const t=null==_?void 0:_.find(t=>t.label===e);t&&f(t)}};return(0,I.jsxs)("div",{className:`multipleSelect__ucaQ7 ${l} ${M?"error__z1jHv MultipleSelectError":""} ${c?"hideError__7EWoe":""}`.trim(),children:[(0,I.jsx)(_e,{ref:b,name:e,label:t,placeholder:r,inputValueProp:N,className:"multiSelect__ebmJc MultipleSelectInput",startAdornment:(0,I.jsx)(I.Fragment,{children:_.map(e=>(0,I.jsxs)("div",{className:"tag__jvEHN MultipleSelectTag",onMouseDown:()=>S(e.label),children:[e.label,(0,I.jsx)("span",{className:"deleteButton__NuVX8 MultipleSelectdeleteButton",children:"×"})]},(0,Ne.v4)()))}),required:!1,multipleSelect:!0,onKeyDownCallback:a=>{if("Enter"===a.key&&(a.preventDefault(),A()),"Backspace"===a.key&&!N&&_.length>0){a.preventDefault();const e=_[_.length-1];return void S(e.label)}p&&p(a,t||"",N,e,n)},onChangeCallback:({label:e,value:t,name:a,inputValueMap:l})=>{if(k(t),u){const r=l?new Map(l):l;u({label:e,value:t,name:a,inputValueMap:r})}},onBlurCallback:({label:e,value:t,name:a,inputValueMap:l})=>{setTimeout(()=>{null!=g&&g.current?g.current=!1:N.length>0&&A()},0),d&&d({label:e,value:t,name:a,inputValueMap:l})},onFocusCallback:h,disabled:m,autoComplete:"off",displayError:!1}),!c&&(M||w)&&(0,I.jsx)("small",{className:"formHelperText__Ztetv",children:w})]})});const vl=({name:e,label:t,options:a,onChangeCallback:l,required:r=!0,className:n,layout:s="row",inputValueMap:i,setInputValueMap:o})=>{const c=(0,R.useId)(),d=i.get(e),u=(null==d?void 0:d.inputValue)||"",h=r&&(null==d?void 0:d.errorMessage)||"",p=r&&(null==d?void 0:d.isError)||!1,m=a=>{const n=a.target.value,s=n===u?"":n;let c={isValid:!0,isError:!1,errorMessage:""};0===s.length&&r&&(c={isValid:!1,isError:!0,errorMessage:"This field is required"});const d=new Map(i);if(d.set(e,{inputValue:s,isValid:c.isValid,isError:c.isError,errorMessage:c.errorMessage}),o(d),l){const a="string"==typeof t?t:String(t||"");l({label:a,value:s,name:e,inputValueMap:d})}};return(0,I.jsxs)("fieldset",{className:`container__QO43i radioGroupContainer ${n||""} ${"row"===s?"rowGroup__DCVOV":"columnGroup__liTZD"} ${p?"error__HCXnH":""}`.trim(),children:[t&&(0,I.jsx)("legend",{className:"legend__tcfV7 radioGroupLegend",children:t}),(0,I.jsx)("div",{className:"radioGroupRow__I5cAe radioGroupRow",children:(a??[]).map(t=>(0,I.jsxs)("div",{className:"radioGroupOption__ORQo6",children:[(0,I.jsx)("input",{type:"radio",id:`${e}-${t.value}`,name:e,value:t.value,checked:u===t.value,onChange:m,className:"input__gmQeu radioGroupInput"}),(0,I.jsxs)("label",{className:"label__NXEJr radioGroupLabel",htmlFor:`${e}-${t.value}`,onClick:e=>{e.preventDefault(),m({target:{value:t.value}})},children:[t.startAdornment&&(0,I.jsx)("div",{className:"checkboxBoxStartAdornment",children:t.startAdornment}),(0,I.jsx)("div",{className:"labelText__j1SMX radioGroupLabelText",children:t.label}),t.endAdornment&&(0,I.jsx)("div",{className:"checkboxBoxEndAdornment",children:t.endAdornment})]})]},`${c}-${t.value}`))}),p&&h&&(0,I.jsx)("small",{className:"formHelperText__kMnfd radioGroupHelperText",children:h})]})};var gl="paginationButton__R2HYM",xl="loadingDots__I6uM5",bl="loadingDot__JguNz",jl="sortArrow__1-ok4",_l="tableRow__-jm80",wl="paginationIcon__qfFZ-";const Ml=()=>{const[e,t]=(0,R.useState)(!1),[a,l]=(0,R.useState)(1),[r,n]=(0,R.useState)(""),[s,i]=(0,R.useState)(new Map);return(0,R.useEffect)(()=>{const e=(0,Ne.v4)();n(e),i(Wa(e))},[]),{openFilter:e,setOpenFilter:t,filterRows:a,setFilterRows:l,uniqueIdentifier:r,filterInputValueMap:s,setFilterInputValueMap:i}};var yl="header__AnyqB";const Cl=[{label:"Contains",value:"contains"},{label:"Equals",value:"equals"},{label:"Starts With",value:"starts with"},{label:"Ends With",value:"ends with"},{label:"Greater Than",value:"greater than"},{label:"Less Than",value:"less than"},{label:"Greater Than/Equal To",value:"greater than or equal to"},{label:"Less Than/Equal To",value:"less than or equal to"},{label:"Range",value:"range"}],Nl=["greater than","less than","greater than or equal to","less than or equal to"],kl=[{label:"And",value:"and"},{label:"Or",value:"or"}],Vl={inputValue:"",isValid:!0,isError:!1,errorMessage:""},Al=e=>{if(Array.isArray(e)){const[t,a]=e,l=e=>{if(!e)return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?String(e):t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})};return`${l(t)} – ${l(a)}`}return null==e?"":String(e)},Sl=(e,t,a)=>`${e}${t}${a}`,Pl=({columns:e,filterName:t,filterRows:a,openFilter:l,pageFilters:r,setOpenFilter:n,setFilterRows:s,filterSelections:i,uniqueIdentifier:o,setFilterSelections:c,filterInputValueMap:d,setFilterInputValueMap:u})=>{var h,p,m;const[f,v]=(0,$.useSearchParams)(),g=(0,R.useRef)(d),[x,b]=(0,R.useState)(null),[j,_]=(0,R.useState)(!1),[w,M]=(0,R.useState)(null),[y,C]=(0,R.useState)("100%"),[N,k]=(0,R.useState)(!1),V=(0,R.useRef)(0),A=(0,R.useRef)(!1);(0,R.useEffect)(()=>{C(l?"0px":"100%")},[l]);const S=()=>{var e;b(null),_(!1),M(null);const t=Ya(i,o);u(new Map(t)),s((null==i||null===(e=i.items)||void 0===e?void 0:e.length)??0),n(!1)};(0,R.useEffect)(()=>{g.current=d},[d]),(0,R.useEffect)(()=>{var e;if(!l)return;const t=Ya(i,o);u(new Map(t));const a=(null==i||null===(e=i.items)||void 0===e?void 0:e.length)??0;if(s(a),0===a){const e=new Map(t);
1e.set(Sl("filterBy",0,o),{...Vl}),e.set(Sl("filterType",0,o),{...Vl}),e.set(Sl("value",0,o),{...Vl}),u(e),s(1),b(0),_(!0)}else b(null),_(!1);M(null)},[l]);const P=null===x?a:Math.max(0,a-1),T=a,D=(()=>{if(null===x)return[];const e=[];for(let l=0;l<a;l++){var t;if(l===x)continue;const a=null===(t=d.get(Sl("filterBy",l,o)))||void 0===t?void 0:t.inputValue;a&&e.push(a)}return e})(),E=new Set(D.filter(e=>q(r,e))),L=null===x?"":(null===(h=d.get(Sl("filterBy",x,o)))||void 0===h?void 0:h.inputValue)??"",F=null===x?"":(null===(p=d.get(Sl("filterType",x,o)))||void 0===p?void 0:p.inputValue)??"",H=null===x?"":null===(m=d.get(Sl("value",x,o)))||void 0===m?void 0:m.inputValue,B=O(r,L),W=!!L&&q(r,L),Y=Array.isArray(B)&&B.length>0&&!W,z=Array.isArray(B)||"equalsOnly"===B,U=K(r,D),X=(null==e?void 0:e.filter(e=>{const t=E.has(e.accessorKey);return(e.accessorKey===L||!t)&&!U.has(e.accessorKey)&&"action"!==e.accessorKey&&(null==r?void 0:r[e.accessorKey])}))??[],J=Cl.filter(e=>!L||(W?"range"===e.value:"containsEndsWith"===B?"contains"===e.value||"ends with"===e.value:z?"equals"===e.value:"numbersOnly"===B?"equals"===e.value||Nl.includes(e.value):"range"!==e.value&&!Nl.includes(e.value))),Q=null!==x&&!(!L||!F)&&null!=H&&(Array.isArray(H)?H.length>0&&H.every(Boolean):String(H).length>0),ee=new Set(((null==i?void 0:i.items)??[]).filter(e=>!1===(null==e?void 0:e.canBeDeleted)).map(e=>e.field)),te=[];for(let R=0;R<a;R++){var ae,le,re;if(x===R)continue;const e=null===(ae=d.get(Sl("filterBy",R,o)))||void 0===ae?void 0:ae.inputValue,t=null===(le=d.get(Sl("filterType",R,o)))||void 0===le?void 0:le.inputValue,a=null===(re=d.get(Sl("value",R,o)))||void 0===re?void 0:re.inputValue,l=G(r,e)??Z(e,!0),n=!ee.has(e);te.push({i:R,field:e,operator:t,value:a,label:l,canBeDeleted:n})}return(0,I.jsx)("div",{className:`panel__EsCa1 ${l?"open__qGM8h":""} ${N?"dragging__spTI7":""}`.trim(),style:{"--sheet-y":y},role:"dialog","aria-modal":"true","aria-label":t,onClick:e=>e.stopPropagation(),onTouchStart:e=>{e.target.closest(`.${yl}`)&&(V.current=e.touches[0].clientY,A.current=!0,k(!0))},onTouchMove:e=>{if(!A.current)return;const t=e.touches[0].clientY-V.current;t>0&&C(`${t}px`)},onTouchEnd:()=>{A.current&&(A.current=!1,k(!1),(parseInt(y,10)||0)>100?S():C("0px"))},children:(0,I.jsxs)("div",{className:"sheet__ZgJAq",children:[(0,I.jsxs)("div",{className:yl,children:[(0,I.jsx)("h4",{className:"title__RsQ6P",children:t}),(0,I.jsx)("button",{type:"button","aria-label":"Close filters",className:"closeButton__bhfB9",onClick:S,children:(0,I.jsx)("span",{"aria-hidden":"true",children:"×"})})]}),(0,I.jsxs)("div",{className:"body__QM4i7",children:[T>=2&&(0,I.jsxs)("div",{className:"matchRow__l8-Sf",children:[(0,I.jsx)("span",{className:"matchLabel__kzPHX",children:"Operator"}),(0,I.jsx)("div",{className:"matchDropdown__m3mwu",children:(0,I.jsx)(al,{name:`logicOperator${o}`,label:"",placeholder:"and",options:kl,inputValueMap:d,setInputValueMap:u})})]}),te.length>0&&(0,I.jsx)("ul",{className:"chipList__ZeWZv",children:te.map(({i:e,operator:t,value:l,label:r,canBeDeleted:n})=>(0,I.jsxs)("li",{className:"chip__bwdwB",children:[(0,I.jsxs)("button",{type:"button",className:"chipText__c-IXy",onClick:()=>(e=>{if(null!==x)return;const t=new Map;for(const a of["filterBy","filterType","value"]){const l=Sl(a,e,o),r=d.get(l);r&&t.set(l,{...r})}M(t),_(!1),b(e)})(e),disabled:null!==x,"aria-label":`Edit filter ${r}`,children:[(0,I.jsx)("span",{className:"chipField__IA-sK",children:r}),(0,I.jsxs)("span",{className:"chipOperator__siQu9",children:[" ",Z(t,!1)," "]}),(0,I.jsx)("span",{className:"chipValue__TeVMj",children:Al(l)})]}),n&&(0,I.jsx)("button",{type:"button","aria-label":"Remove filter",className:"chipDelete__XeCwt",onClick:()=>(e=>{const t=el(d,e,o);u(new Map(t)),s(Math.max(0,a-1))})(e),disabled:null!==x,children:(0,I.jsx)("span",{"aria-hidden":"true",children:"×"})})]},e))}),null!==x?(0,I.jsxs)("div",{className:"editCard__uj7fA",children:[(0,I.jsx)("div",{className:"editCardHeader__vXAzF",children:j?0===P?"Add Filter":`Filter ${P+1}`:`Edit Filter ${x+1}`}),(0,I.jsx)(al,{name:Sl("filterBy",x,o),label:"Filter By",placeholder:"Select",onChangeCallback:({value:e,inputValueMap:t})=>{if(null===x)return;
1const a=O(r,e),l=q(r,e)?"range":Array.isArray(a)||"equalsOnly"===a?"equals":"",n=new Map(t);n.set(Sl("filterType",x,o),{inputValue:l,isValid:!0,isError:!1,errorMessage:""}),n.set(Sl("value",x,o),{...Vl}),u(n)},options:null==X?void 0:X.map(e=>({label:e.header,value:e.accessorKey})),inputValueMap:d,setInputValueMap:u}),(0,I.jsxs)("div",{className:"filterTypeRow__OfEP6",children:[(0,I.jsx)("div",{className:"filterTypeDropdown__SQBNb",children:(0,I.jsx)(al,{name:Sl("filterType",x,o),label:"Filter Type",placeholder:"Select",options:J.map(e=>({label:e.label,value:e.value})),inputValueMap:d,setInputValueMap:u})}),L&&z&&!Array.isArray(B)&&(0,I.jsx)(ll,{message:"Only Equals filter type is available for this field",className:"tooltipTrigger__ifzrn",width:260,children:(0,I.jsx)(ga,{"aria-label":"Filter type info"})})]}),W?(0,I.jsx)(Lt,{name:Sl("value",x,o),index:x,required:!1,inputValueMap:d,setInputValueMap:u,dateRangeType:"futureDate"===B?"future":"all"===B?"all":"past"}):Y?(0,I.jsx)(al,{name:Sl("value",x,o),label:"Value",placeholder:"Select",options:B.map(e=>"object"==typeof e&&null!=e&&e.label&&null!=e&&e.value?e:{label:e,value:e}).filter(e=>{const t=new Set;for(let n=0;n<a;n++){var l,r;if(n===x)continue;if((null===(l=d.get(Sl("filterBy",n,o)))||void 0===l?void 0:l.inputValue)!==L)continue;const e=null===(r=d.get(Sl("value",n,o)))||void 0===r?void 0:r.inputValue;e&&t.add(String(e))}return!t.has(String(e.value))}),inputValueMap:d,setInputValueMap:u}):(0,I.jsx)(_e,{name:Sl("value",x,o),label:"Value",placeholder:"Enter value",showClearButton:!0,inputValueMap:d,setInputValueMap:u}),(0,I.jsxs)("div",{className:"editActions__TMZWR",children:[(0,I.jsx)(Ka,{buttonType:"text",handleClick:()=>{if(null!==x){if(j){const e=el(d,x,o);u(new Map(e)),s(Math.max(0,a-1))}else if(w){const e=new Map(d);for(const[t,a]of w)e.set(t,a);u(e)}b(null),_(!1),M(null)}},className:"cancelButton__gWdtk",children:"Cancel"}),(0,I.jsx)(Ka,{buttonType:"contained",handleClick:()=>{Q&&(b(null),_(!1),M(null))},disabled:!Q,className:"saveButton__QmfK0",children:"Save Filter"})]})]}):(0,I.jsx)(Ka,{buttonType:"text",handleClick:()=>{const e=a,t=new Map(d);t.set(Sl("filterBy",e,o),{...Vl}),t.set(Sl("filterType",e,o),{...Vl}),t.set(Sl("value",e,o),{...Vl}),u(t),s(e+1),b(e),_(!0),M(null)},className:"addFilterButton__TPeje",children:"+ Add Filter"})]}),(0,I.jsx)("div",{className:"footer__AebLm",children:(0,I.jsx)(Ka,{buttonType:"contained",handleClick:()=>{Qa({setSearchParams:v,pageFilters:r,searchParams:f,setOpenFilter:n,filterInputValueMap:g.current,setFilterRows:s,setFilterInputValueMap:u,filterSelections:i,setFilterSelections:c,handleUpdateUrlParams:qa,uniqueIdentifier:o})},disabled:null!==x,className:"applyButton__zZsdB",children:"Apply Filters"})})]})})};var Tl=a(76559);const Dl=({tableData:e,setApiPage:t,setSorting:a,sorting:l,tableRowData:r,inputValueMap:n,reset:s=!1,gridView:i=null,mobileCardView:o,actionFunctions:c,filterSelections:d,setInputValueMap:u,useFilters:h=!0,rowOnClickFunction:p,setFilterSelections:m,initialPageSize:f=10,hidePagination:v=!1,filterName:x="Table Filters",paginationCount:b=[10,25,50,100],setPageIndex:j,showFetchingData:_=!1,fetchingDataLabel:w="Fetching Data",filterOnlyColumns:M=[],setTableRowData:y,openFilter:C,setOpenFilter:N,filterRows:k,setFilterRows:V,uniqueIdentifier:A,filterInputValueMap:S,setFilterInputValueMap:P,hideFilterButton:T=!1})=>{var D,E;const[L]=(0,$.useSearchParams)(),{width:F}=we(),H=F<=650,Z=100,O=(0,R.useRef)(""),G=(0,R.useRef)(null),q=(0,R.useRef)(null),[W,Y]=(0,R.useState)(null),{tableColumns:z,sortDictionary:U,pageFilters:K}=e,X=Ml(),J=C??X.openFilter,Q=N??X.setOpenFilter,ee=k??X.filterRows,te=V??X.setFilterRows,ae=A??X.uniqueIdentifier,le=S??X.filterInputValueMap,re=P??X.setFilterInputValueMap;(0,R.useLayoutEffect)(()=>{J&&q.current&&Y(q.current.getBoundingClientRect())},[J]);const ne=(null==r?void 0:r.totalCount)||0,[se,ie]=(0,R.useState)(f),[oe,ce]=(0,R.useState)(0),de=(0,R.useRef)(new Map),ue=oe*se,{apiMerchantId:he}=g({searchParams:L}),pe=Math.floor(ue/Z)+1,[me,fe]=(0,R.useState)(new Map([["paginationDropdown",{inputValue:f.toString(),isValid:!0,isError:!1}]]));
1de.current.clear(),null==n||n.forEach((e,t)=>{de.current.set(t,e)});const ve=(0,R.useMemo)(()=>z({actionFunctions:c,inputValueMap:de.current,setInputValueMap:u,merchantId:he,searchParams:L}),[he,s,L,u,z])||[],ge=(0,R.useMemo)(()=>[...ve,...M],[ve,M]);(0,R.useEffect)(()=>{var e,a;null!=r&&null!==(e=r.tableRows)&&void 0!==e&&e.has(pe)||t(pe);const l=(oe+1)*se,n=Math.floor(l/Z)+1;(null==r||null===(a=r.tableRows)||void 0===a||!a.has(n))&&Ne(n)&&l>(n-1)*Z-se&&t(n)},[pe,r,oe,se]),(0,R.useEffect)(()=>{const e=JSON.stringify(d);""!==O.current?O.current!==e&&(O.current=e,ce(0),j&&j(0),t(1),y({tableRows:new Map,totalCount:0})):O.current=e},[d]);const xe=(0,R.useMemo)(()=>{var e,t;return(null===(e=Array.from(null===(t=(null==r?void 0:r.tableRows)??new Map)||void 0===t?void 0:t.values()))||void 0===e?void 0:e.flat())||[]},[r]),be=(0,R.useMemo)(()=>{const e=xe.length<=10?0:oe*se,t=e+se;return(Array.isArray(xe)?xe:[]).slice(e,t).filter(Boolean)},[xe,oe,se]),je=(0,Tl.N4)({data:be,columns:ve,pageCount:Math.ceil(ne/se),manualPagination:!0,state:{pagination:{pageIndex:oe,pageSize:se}},onPaginationChange:e=>{const t="function"==typeof e?e({pageIndex:oe,pageSize:se}):e;j&&j(t.pageIndex),ce(t.pageIndex)},getCoreRowModel:(0,Tl.HT)(),getPaginationRowModel:(0,Tl.kW)(),autoResetPageIndex:!1,manualSorting:!0}),_e=je.getRowModel().rows,Me=0===_e.length,ye=_&&Me,Ce=Me&&!ye,Ne=e=>{const t=e*Z;return t<=ne||t-Z<ne};return(0,I.jsxs)(I.Fragment,{children:[J&&(0,jt.createPortal)((0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"backdrop__pHXXZ",onClick:()=>Q(!1)}),!H&&W&&(0,I.jsx)("div",{style:{position:"fixed",top:W.top,left:W.left,width:W.width,zIndex:1303},children:(0,I.jsx)(sl,{columns:ge,filterName:x,openFilter:J,filterRows:ee,pageFilters:K,setOpenFilter:Q,setFilterRows:te,filterSelections:d,uniqueIdentifier:ae,setFilterSelections:m,filterInputValueMap:le,setFilterInputValueMap:re})})]}),document.body),H&&h&&d&&m&&K&&(0,jt.createPortal)((0,I.jsx)(Pl,{columns:ge,filterName:x,openFilter:J,filterRows:ee,pageFilters:K,setOpenFilter:Q,setFilterRows:te,filterSelections:d,uniqueIdentifier:ae,setFilterSelections:m,filterInputValueMap:le,setFilterInputValueMap:re}),document.body),(0,I.jsxs)("div",{className:"tableContainer__cHghX",ref:q,children:[h&&d&&m&&K&&(0,I.jsx)(I.Fragment,{children:!T&&(0,I.jsx)(Xa,{filterSelections:d,pageFilters:K,setOpenFilter:Q,setFilterRows:te,uniqueIdentifier:ae,setFilterSelections:m,setFilterInputValueMap:re})}),i&&i,!i&&(0,I.jsxs)(I.Fragment,{children:[o&&(0,I.jsx)("div",{className:"mobileOnly__0sEq6",children:ye?(0,I.jsxs)("div",{className:"mobileLoading__O3ZTr",role:"status","aria-live":"polite",children:[(0,I.jsx)("span",{children:w}),(0,I.jsxs)("span",{className:xl,"aria-hidden":"true",children:[(0,I.jsx)("span",{className:bl,children:"."}),(0,I.jsx)("span",{className:bl,children:"."}),(0,I.jsx)("span",{className:bl,children:"."})]})]}):o(_e)}),(0,I.jsxs)("div",{ref:G,onMouseDown:e=>{const t=G.current;if(!t)return;const a=t.getBoundingClientRect(),l=e.clientX-a.left,r=e.clientY-a.top,n=l>=t.clientWidth,s=r>=t.clientHeight;if(n&&t.scrollHeight>t.clientHeight){const e=Math.max(t.clientHeight/t.scrollHeight*t.clientHeight,20),a=t.scrollTop/(t.scrollHeight-t.clientHeight)*(t.clientHeight-e);if(r>=a&&r<=a+e)return;const l=r/t.clientHeight*(t.scrollHeight-t.clientHeight);t.scrollTo({top:l,behavior:"smooth"})}else if(s&&t.scrollWidth>t.clientWidth){const e=Math.max(t.clientWidth/t.scrollWidth*t.clientWidth,20),a=t.scrollLeft/(t.scrollWidth-t.clientWidth)*(t.clientWidth-e);if(l>=a&&l<=a+e)return;const r=l/t.clientWidth*(t.scrollWidth-t.clientWidth);t.scrollTo({left:r,behavior:"smooth"})}},className:"tableWrap__CRtkA "+(o?"desktopOnly__88-uJ":""),children:[(0,I.jsxs)("table",{className:"table__-ZPCW",children:[(0,I.jsx)("thead",{className:"tableHeader__CFqva",children:null==je||null===(D=je.getHeaderGroups())||void 0===D?void 0:D.map(e=>{var r;return(0,I.jsx)("tr",{className:_l,children:null==e||null===(r=e.headers)||void 0===r?void 0:r.map(e=>{var r,n;const s=null===(r=Object.keys(U))||void 0===r?void 0:r.includes(null==e?void 0:e.id),i=null==U?void 0:U[null==e?void 0:e.id],o=(null==l?void 0:l.sortColumn)===i;return(0,I.jsx)("th",{onClick:s?()=>(e=>{ce(0),j&&j(0),t(1),a(t=>{var a;const l=null==e||null===(a=e.column)||void 0===a?void 0:a.id,r=null==U?void 0:U[l];return{sortColumn:r||"",sortOrder:(null==t?void 0:t.sortColumn)===r&&"DESC"===(null==t?void 0:t.sortOrder)?"ASC":"DESC"}})})(e):void 0,className:"tableHeaderCell__eJXOa "+(s?"sortable__DHN7E":""),children:(0,I.jsxs)("span",{className:"headerContent__-erdY",children:[e.isPlaceholder?null:(0,Tl.Kv)(null==e||null===(n=e.column)||void 0===n||null===(n=n.columnDef)||void 0===n?void 0:n.header,null==e?void 0:e.getContext()),o&&(0,I.jsx)("span",{className:"sortIcon__nSZVJ",children:"ASC"===(null==l?void 0:l.sortOrder)?(0,I.jsx)(ja,{className:jl}):(0,I.jsx)(B,{className:jl})})]})},e.id)})},e.id)})}),(0,I.jsx)("tbody",{className:"tableBody__SgUJp",children:Me?(0,I.jsx)("tr",{className:"tableNoResultsRow__RhiXP","aria-hidden":"true",children:(0,I.jsx)("td",{colSpan:je.getVisibleLeafColumns().length})}):null==_e?void 0:_e.map(e=>{var t;return(0,I.jsx)("tr",{className:`${_l} ${p?"clickableRow__9Z26-":""}`.trim(),onClick:p?()=>p(e):void 0,children:null==e||null===(t=e.getVisibleCells())||void 0===t?void 0:t.map(e=>{var t;return(0,I.jsx)("td",{className:"tableCell__ufCx1",children:(0,Tl.Kv)(null==e||null===(t=e.column)||void 0===t||null===(t=t.columnDef)||void 0===t?void 0:t.cell,null==e?void 0:e.getContext())},e.id)})},e.id)})})]}),Ce&&(0,I.jsx)("div",{className:"tableNoResults__Hf6-s noResultsText",role:"status",children:"No results found"}),ye&&(0,I.jsxs)("div",{className:"tableLoading__6-7Vo",role:"status","aria-live":"polite",children:[(0,I.jsx)("span",{children:w}),(0,I.jsxs)("span",{className:xl,"aria-hidden":"true",children:[(0,I.jsx)("span",{className:bl,children:"."}),(0,I.jsx)("span",{className:bl,children:"."}),(0,I.jsx)("span",{className:bl,children:"."})]})]})]}),!v&&(0,I.jsxs)("div",{className:"pagination__BeSdI",children:[(0,I.jsxs)("div",{className:"rowsPerPageWrap__Cu07E",children:[(0,I.jsx)("div",{className:"rowsPerPage__s0xcu",children:"Rows per page:"}),(0,I.jsx)(al,{name:"paginationDropdown",label:"",placeholder:se.toString(),className:"rowsPerPageSelect__7Gy1r",onChangeCallback:e=>(({value:e})=>{const a=Number(e);ce(0),ie(a),j&&j(0);const l=2*a,n=Math.ceil(l/Z);Array.from({length:n},(e,t)=>
1t+1).forEach(e=>{var a;null!=r&&null!==(a=r.tableRows)&&void 0!==a&&a.has(e)||t(e)})})(e),options:null==b?void 0:b.map(e=>({label:e.toString(),value:e.toString()})),inputValueMap:me,setInputValueMap:fe})]}),(0,I.jsx)("span",{className:"pageCount__ECmKa",children:(null==je||null===(E=je.getRowModel())||void 0===E||null===(E=E.rows)||void 0===E?void 0:E.length)>0?(()=>{let e;return e=0===je.getFilteredRowModel().rows.length?0:(null==xe?void 0:xe.length)<=10?1:oe*se+1,`${e}–${Math.min(ne,(oe+1)*se)} of ${ne}`})():"0 of 0"}),(0,I.jsx)(Ka,{className:gl,handleClick:()=>je.previousPage(),disabled:!je.getCanPreviousPage(),children:(0,I.jsx)(Le,{className:wl})}),(0,I.jsx)(Ka,{className:gl,handleClick:()=>(()=>{var e,a;const l=(null===(e=je.getState().pagination)||void 0===e?void 0:e.pageIndex)+1,n=l*se,s=Math.floor(n/Z)+1,i=l*se;var o;if(!(i+se<=xe.length||i<xe.length))return void(null!=r&&null!==(o=r.tableRows)&&void 0!==o&&o.has(s)||!Ne(s)||t(s));const c=s*Z;n>=c-(Z-se)&&n>=c-se&&Ne(s+1)&&(null==r||null===(a=r.tableRows)||void 0===a||!a.has(s+1))&&t(s+1),je.setPageIndex(l)})(),disabled:(oe+1)*se>=ne||(oe+1)*se>xe.length,children:(0,I.jsx)(Ee,{className:wl})})]})]})]})]})};const El=({name:e,label:t,rows:a=4,inputValueMap:l,setInputValueMap:r,onChangeCallback:n,inputType:s,required:i=!0,placeholder:o,classes:c,errorMessage:d,disableOnBlurValidation:u=!1,onBlurCallback:h,maxLength:p,minLength:m})=>{const f=(0,R.useRef)(null),v=l.get(e),g=(null==v?void 0:v.inputValue)||"",x=(null==v?void 0:v.isError)||!1,b=(null==v?void 0:v.errorMessage)||"",j=a=>{let o=a.target.value;const c=s&&je[s]?s:"default";o=je[c].mask(o).maskedValue;let u=l;if(l&&r){const t=je[c].validate({target:{value:o}},i),a=null==t?void 0:t.isValid,n=(null==t?void 0:t.errorMessage)??"",s=!a&&(i||o.length>0)?d||n:"";u=new Map(l),u.set(e,{inputValue:o,isValid:a,isError:!a,errorMessage:s}),r(u)}n&&n({label:t||"",value:o,name:e||"",inputValueMap:u})};return(0,I.jsxs)("div",{className:`container__WEBC- textFieldContainer ${x?"error__DWDms textFieldError":""} ${(null==c?void 0:c.container)||""}`.trim(),children:[(0,I.jsx)("label",{className:"floatingLabel__QAD6s","data-shrink":"true",htmlFor:e,children:t}),(0,I.jsxs)("div",{className:"wrapper__Bn4Tw",children:[(0,I.jsx)("textarea",{rows:a,"aria-invalid":x,autoComplete:"off",id:e,name:e,placeholder:o,className:"textArea__nlK-5",onChange:j,onBlur:a=>{const r=a.target.value;if(f.current&&(f.current.value=r),u||j(a),h){const a=l?new Map(l):new Map;h({label:t||"",value:r,name:e,inputValueMap:a})}},ref:f,value:g,maxLength:p,minLength:m}),(0,I.jsx)("fieldset",{"aria-hidden":"true",className:"fieldset__4NSwI",children:(0,I.jsx)("legend",{className:"legend__WOUnL",children:t&&(0,I.jsx)("span",{className:"legendSpan__OHoz-",children:t})})})]}),x&&b&&(0,I.jsx)("small",{className:"formHelperText__H-nbF textFieldFormHelperText",children:b})]})};const Ll=({name:e,inputValueMap:t,setInputValueMap:a,onChangeCallback:l,color:r})=>{var n;const s=(null==t||null===(n=t.get(e))||void 0===n?void 0:n.inputValue)||!1,i=r?{"--on":r}:void 0;return(0,I.jsxs)("label",{className:"toggle__B2w3m",style:i,children:[(0,I.jsx)("input",{type:"checkbox","aria-label":"controlled",checked:s,onChange:e=>{const{checked:r,name:n}=e.target,s=new Map(t);s.set(n,{inputValue:r,isValid:!0,isError:!1,errorMessage:"This field is required"}),a(s),l&&l({event:e,checked:r,name:n,inputValueMap:s})},name:e}),(0,I.jsx)("span",{className:"slider__xkwNq"})]})};const Rl=({tabs:e,onChangeCallBack:t,className:a,tabsIcons:l,activeTabOverride:r})=>{const[n,s]=(0,R.useState)(0),i=(0,R.useRef)([]),o=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{const e=i.current[n],t=o.current;e&&t&&(t.style.setProperty("width",e.offsetWidth+"px"),t.style.setProperty("left",e.offsetLeft+"px"))},[n]),(0,R.useEffect)(()=>{null!=r&&s(r)},[r]),(0,I.jsx)("div",{className:a,children:(0,I.jsxs)("div",{className:"container__u3BX5",children:[e.map((e,a)=>(0,I.jsx)("button",{ref:e=>i.current[a]=e,className:""+(n===a?"selected__ToUV8":"inactive__KFdMZ"),onClick:()=>(e=>{s(e),null==t||t(e)})(a),type:"button",children:(0,I.jsxs)("div",{className:"buttonContent__RZj9Q",children:[null!=l&&l[a]?(0,I.jsx)("span",{children:l[a]}):null,e]}
1)},`tab-${a}-${e}`)),(0,I.jsx)("span",{ref:o,className:"border__X3dVX"})]})})};const $l=e=>"number"==typeof e?`${e}px`:e,Il=({width:e="100%",height:t="100%",borderRadius:a="4px",className:l})=>{const r=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{const l=r.current;l&&(l.style.setProperty("width",$l(e)),l.style.setProperty("height",$l(t)),l.style.setProperty("border-radius",$l(a)))},[e,t,a]),(0,I.jsx)("div",{ref:r,className:`skeleton__-VV98 ${l||""}`.trim()})};var Fl="autocompleteInput__kvLu6";const Hl=({name:e,label:t,options:a=null,className:l="",placeholder:r,inputValueMap:n,setInputValueMap:s,required:i=!0,multiple:o=!1,minTags:c=0,maxTags:d=1/0,hideError:u=!1,onBlurCallback:h,onChangeCallback:p,onDeleteCallback:m,onKeyDownCallback:f,disabled:v=!1,startAdornment:g,endAdornment:x,enableSearchFilteringForSingle:b=!1,dropdownBottomRef:j,setIsDropdownOpenCallback:_,inputType:y,hasActionButton:C=!1})=>{const N=(0,R.useRef)(null),k=(0,R.useRef)(null),V=(0,R.useRef)(!1),A=(0,R.useMemo)(()=>C&&a&&a.length>0?a[0]:null,[C,a]),S=(0,R.useMemo)(()=>C&&a&&a.length>0?a.slice(1):a,[C,a]),P=(0,R.useMemo)(()=>S?S.map((e,t)=>({...e,label:"string"==typeof e.label?e.label:"",id:t})):[],[S]),T=n.get(e)||{},D=o?"":(null==T?void 0:T.inputValue)||"",E=(null==T?void 0:T.errorMessage)||"This field is required",L=(null==T?void 0:T.isError)||!1,[$,F]=(0,R.useState)(P),[H,B]=(0,R.useState)(!1),[Z,O]=(0,R.useState)(-1),G=()=>{B(!0)},q=(0,R.useMemo)(()=>$,[$,o]);(0,R.useEffect)(()=>{const t=n.get(e);let a="";o||(a="string"==typeof(null==t?void 0:t.inputValue)?(null==t?void 0:t.inputValue)??"":"");const l=M(a,P,o,n,w,e,b,j);F(l)},[n,P,e,o]),(0,R.useEffect)(()=>{const e=e=>{const t=e.target,a=N.current,l=k.current,r=a&&"function"==typeof a.contains&&a.contains(t),n=l&&"function"==typeof l.contains&&l.contains(t);r||n||B(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,R.useEffect)(()=>{_&&_(H)},[H,_]);const W=(a,l=!1,r)=>{O(-1);let c,d=n;d=l?o?((t,a)=>{const l={label:a??t,value:t},r=n.get(e)||{},i=[...Array.isArray(r.inputValue)&&(null==r?void 0:r.inputValue)||[],l],o=new Map(n);return o.set(e,{...r,inputValue:i,isValid:r.isValid??!0,isError:r.isError??!1,errorMessage:r.errorMessage??"",optionValue:t}),s(o),null!=N&&N.current&&"function"==typeof N.current.addTag&&N.current.addTag(l,o),o})(a,r):((t,a)=>{const l=a??t,r=new Map(n);return r.set(e,{inputValue:l,isValid:0!==l.length||i,isError:0===l.length&&i,errorMessage:0===l.length?E:"",optionValue:t}),s(r),r})(a,r):((t,a)=>{if(!o){const l=new Map(n);return l.set(e,{inputValue:t,isValid:0!==t.length||i,isError:0===t.length&&i,errorMessage:0===t.length&&i?E:"",optionValue:a}),s(l),l}return n})(a,r),c=o?l?"":a:l?r??a:a,((t,a=n)=>{if(t){const l=M(t,P,o,a,w,e,b,j);F(l)}else{const t=M("",P,o,a,w,e,b,j);F(t)}B(!0)})(c,d),!o&&l&&B(!1),((a,l=n)=>{if(p){const r=l.get(e).inputValue;p({label:t||"",value:r,name:e,inputValueMap:l,optionValue:a})}})(a,d)},Y=({label:e,value:t})=>{const a="object"==typeof e&&null!==e?e.value:t??"";W(a,!1)},z=(e,t)=>{V.current=!0,W(t,!0,e),V.current=!1},U=q.length+(C&&A?1:0),K=a=>{if(H){if("ArrowDown"===a.key)a.preventDefault(),O(e=>{const t=e+1;return t>=U?0:t});else if("ArrowUp"===a.key)a.preventDefault(),O(e=>{const t=e-1;return t<0?U-1:t});else if("Enter"===a.key){if(a.preventDefault(),Z>=0&&Z<U){if(C&&A&&0===Z)z("string"==typeof A.label?A.label:"",A.value);else{const e=q[C&&A?Z-1:Z];e&&z(e.label,e.value)}O(-1)}}else"Tab"===a.key&&(B(!1),O(-1));if(f){const l=t||"",r=n.get(e).inputValue;f(a,l,r,e,n)}}},X=({inputValueMap:a})=>{const l=new Map(a);if(h){const a=l.get(e).inputValue;h({label:t||"",value:a,name:e,inputValueMap:l})}},J=(0,R.useMemo)(()=>{const e=q.map((e,t)=>({...e,displayLabel:e.displayLabel||e.label,isHighlighted:t===(C&&A?Z-1:Z)}));return C&&A?[{label:"string"==typeof A.label?A.label:"",value:A.value,displayLabel:A.label,isHighlighted:0===Z},...e]:e},[q,Z,C,A]);return(0,I.jsxs)("div",{className:`Autocomplete autocomplete__5vtE- ${l} ${L?"error__dTtBH AutocompleteError":""} ${u?"hideError__FnBts":""}`.trim(),children:[o?(0,I.jsx)(fl,{name:e,label:t,required:i,placeholder:r,inputValueMap:n,setInputValueMap:s,className:`${Fl}`,onChangeCallback:Y,onFocusCallback:G,onKeyDownCallback:K,onBlurCallback:X,onDeleteCallback:a=>{const l=n.get(e)||{};if(Array.isArray(l.inputValue)){const r=l.inputValue.filter(e=>e.label.toLowerCase()!==a.label.toLowerCase()),i=r||[],u=i.length>=c&&i.length<=d,h=u?"":`You must have between ${c} and ${d} tags.`,p={...l,inputValue:r,isValid:u,isError:!u,errorMessage:h},f=new Map(n);f.set(e,p),s(f);const v=M("",P,o,f,w,e,b,j);if(F(v),setTimeout(()=>{B(!0)},0),m){const a=f.get(e).inputValue;m({label:t||"",value:a,name:e,inputValueMap:f})}}},disabled:v,ref:N,minTags:c,maxTags:d,errorMessage:L?E:"",optionClickRef:V},`multiselect-${e}`):(0,I.jsx)(_e,{name:e,label:t,placeholder:r,inputValueMap:n,setInputValueMap:s,className:`${Fl}`,required:i,multipleSelect:o,onChangeCallback:Y,onFocusCallback:G,onKeyDownCallback:K,type:"text",disabled:v,onBlurCallback:X,ref:N,errorMessage:L?E:"",autoComplete:"off",inputValueProp:"string"==typeof D?D:void 0,optionClickRef:V,startAdornment:g,endAdornment:x,inputType:y||"default"},`textfield-${e}`),H&&a&&!v&&(0,I.jsx)(tl,{handleOptionClick:z,selectedValue:o?"":"string"==typeof D?D:"",options:J,dropdownRef:k,className:"dropdownOptions__DNE4Y",optionClickRef:V,dropdownBottomRef:j})]})},Bl=e=>(0,I.jsx)("svg",{focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"HelpOutlineIcon",...e,children:(0,I.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})});
1var Zl="disabled__zBlGb",Ol="dollarSign__iUWzB",Gl="percentSign__L45Ln";const ql=999999999.99,Wl=e=>{const t=e.toString().replace(/,/g,"");return parseFloat(t)},Yl=e=>/^0\.$/.test(e)?e:/^0+$/.test(e)?"0":/^0\d/.test(e)?e.replace(/^0+/,""):e,zl=({keyName:e,hasNextPage:t,searchParams:a,inputValueMap:l,fetchNextPage:r,setInputValueMap:n,surchargeEnabled:s,merchantTaxSummary:i,disableAmount:o=!1,surchargeMessage:c,hideAmount:d=!1,cardType:u,onSurchargeCapped:h})=>{var p,m,f,v,g,x;const[b,j]=(0,R.useState)("Exclusive"),[,_]=nt(),w=(0,R.useRef)(null),[M,y]=(0,R.useState)(!1),C=a.get("actions"),N=`surcharge${e}`,k=`surchargeType${e}`,V="Percentage"===(null===(p=l.get(k))||void 0===p?void 0:p.inputValue),A="None"===(null===(m=l.get(k))||void 0===m?void 0:m.inputValue),S="VI"===u?3:4;(0,R.useEffect)(()=>{var e;if(!s||A)return;const t=l.get(N),a=Wl((null==t?void 0:t.inputValue)||0),r=(null==t?void 0:t.inputValue)??"",i=(null==t||null===(e=t.errorMessage)||void 0===e?void 0:e.startsWith("Surcharge capped at"))??!1;if(a<=0){if(i){const e=new Map(l);e.set(N,{...t,inputValue:r,isValid:!0,isError:!1,errorMessage:""}),n(e),null==h||h(!1)}return}const o=T(a),c=P();if(o){if(!i||(null==t?void 0:t.errorMessage)!==c){const e=new Map(l);e.set(N,{...t,inputValue:r,isValid:!1,isError:!0,errorMessage:c}),n(e),null==h||h(!0)}}else if(i){const e=new Map(l);e.set(N,{...t,inputValue:r,isValid:!0,isError:!1,errorMessage:""}),n(e),null==h||h(!1)}},[u]),(0,R.useEffect)(()=>{if(!w.current||!t||!M)return;const e=new IntersectionObserver(([e])=>{e.isIntersecting&&(null==r||r())},{threshold:1});return e.observe(w.current),()=>e.disconnect()},[w.current,t,r,M]);const P=e=>{if(V)return`Surcharge capped at ${S}%`;const t=e??(Wl(D)||0),a=parseFloat((t*(S/100)).toFixed(2));return`Surcharge capped at $${new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}).format(a)}`},T=(e,t)=>{if(V)return e>S;const a=t??(Wl(D)||0);return!(a<=0)&&e>parseFloat((a*(S/100)).toFixed(2))};(0,R.useEffect)(()=>{var t;if(!s||A||V)return;const a=l.get(N),r=Wl((null==a?void 0:a.inputValue)||0),i=Wl((null===(t=l.get(`amount${e}`))||void 0===t?void 0:t.inputValue)||0)||0;if(i>0&&r>0){var o;const e=P(i),t=T(r,i),s=(null==a||null===(o=a.errorMessage)||void 0===o?void 0:o.startsWith("Surcharge capped at"))??!1,c=(null==a?void 0:a.inputValue)??"";if(t&&!s){const t=new Map(l);t.set(N,{...a,inputValue:c,isValid:!1,isError:!0,errorMessage:e}),n(t),null==h||h(!0)}else if(t&&s&&(null==a?void 0:a.errorMessage)!==e){const t=new Map(l);t.set(N,{...a,inputValue:c,isValid:!1,isError:!0,errorMessage:e}),n(t)}else if(!t&&s){const e=new Map(l);e.set(N,{...a,inputValue:c,isValid:!0,isError:!1,errorMessage:""}),n(e),null==h||h(!1)}}},[null===(f=l.get(`amount${e}`))||void 0===f?void 0:f.inputValue,S,s,A,V]);const D=(null===(v=l.get(`amount${e}`))||void 0===v?void 0:v.inputValue)||0,E=l.get(`tax${e}`),L=(null===(g=l.get(`surcharge${e}`))||void 0===g?void 0:g.inputValue)||0,$=(null===(x=l.get(`surchargeType${e}`))||void 0===x?void 0:x.inputValue)||"Fixed Amount";(0,R.useEffect)(()=>{("ach"===C&&"ACH"===e||"add-subscriptions"===C&&"Asa"===e||a.get("customerID")&&"Asa"===e||"key"===C&&"Key"===e||a.get("customerID")&&"Key"===e||"pos"===C&&"POS"===e||"ChargeAgain"===C&&"KeyCA"===e||"EditSubscription"===C&&"Tes"===e)&&_(e=>({...e,amount:Wl(D),estimatedTax:Wl((null==E?void 0:E.inputValue)||0),surcharge:Wl(L),surchargeType:$,taxType:(null==E?void 0:E.taxType)||"Exclusive"}))},[D,null==E?void 0:E.inputValue,null==E?void 0:E.taxType,L,$,e,C,_]),(0,R.useEffect)(()=>{const t=Wl(D)||0,a=Wl((null==E?void 0:E.inputValue)||0),r=Wl(L)||0,s=(null==E?void 0:E.taxType)||"Exclusive",i=a/100*t,o=0===t?"Percentage"===$?0:r:"Percentage"===$?r*(.01*t):r,c=((e,t,a,l,r)=>("Inclusive"===r?e-e*(t/100):e)+t/100*e+(0===e?"Percentage"===l?0:a:"Percentage"===l?a*(.01*e):a))(t,a,r,$,s),d=`Max: $${ql.toLocaleString()}`,u=c>ql,h=l.get(`amount${e}`),p=l.get(`tax${e}`),m=l.get(N),f=(null==h?void 0:h.errorMessage)===d,v=(null==p?void 0:p.errorMessage)===d,g=(null==m?void 0:m.errorMessage)===d,x=f||v||g;if(u&&!x){const a=new Map(l);if(o>i&&o>t){const e=l.get(N);a.set(N,{inputValue:(null==e?void 0:e.inputValue)??"",isValid:!1,isError:!0,errorMessage:d})}else if(0===t&&i>0){const t=l.get(`tax${e}`);a.set(`tax${e}`,{inputValue:(null==t?void 0:t.inputValue)??"",isValid:!1,isError:!0,errorMessage:d,taxType:null==t?void 0:t.taxType})}else{const t=l.get(`amount${e}`);if(a.set(`amount${e}`,{inputValue:(null==t?void 0:t.inputValue)??"",isValid:!1,isError:!0,errorMessage:d}),i>0){const t=l.get(`tax${e}`);a.set(`tax${e}`,{inputValue:(null==t?void 0:t.inputValue)??"",isValid:!1,isError:!0,errorMessage:d,taxType:null==t?void 0:t.taxType})}if(o>0){const e=l.get(N);a.set(N,{inputValue:(null==e?void 0:e.inputValue)??"",isValid:!1,isError:!0,errorMessage:d})}}n(a)}else if(!u&&x){const t=new Map(l);let a=!1;const r=l.get(`amount${e}`);(null==r?void 0:r.errorMessage)===d&&(t.set(`amount${e}`,{inputValue:r.inputValue??"",isValid:!0,isError:!1,errorMessage:""}),a=!0);const s=l.get(`tax${e}`);(null==s?void 0:s.errorMessage)===d&&(t.set(`tax${e}`,{inputValue:s.inputValue??"",isValid:!0,isError:!1,errorMessage:"",taxType:s.taxType}),a=!0);const i=l.get(N);(null==i?void 0:i.errorMessage)===d&&(t.set(N,{inputValue:i.inputValue??"",isValid:!0,isError:!1,errorMessage:""}),a=!0),a&&n(t)}},[D,null==E?void 0:E.inputValue,null==E?void 0:E.taxType,L,$,e,l,N]);const F=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"inputWrapTax__w6zex",children:[!d&&(0,I.jsx)(_e,{name:`amount${e}`,label:"Amount",placeholder:"0.00",inputType:"currency",inputValueMap:l,disabled:o,setInputValueMap:n,className:o?Zl:"",startAdornment:(0,I.jsx)("span",{className:Ol,children:"$"})}),(0,I.jsx)(Hl,{name:`tax${e}`,label:`Tax (${b})`,options:i,inputValueMap:l,setInputValueMap:n,startAdornment:(0,I.jsx)("span",{className:Gl,children:"%"}),dropdownBottomRef:w,setIsDropdownOpenCallback:y,onChangeCallback:({value:t,inputValueMap:a})=>{if("string"!=typeof t)return;const l=t.match(/^(\d+(?:\.\d+)?)% (Inclusive|Exclusive)(?: \((.*?)\))?$/),r=l?l[1]:"0",s=l?l[2]:"Exclusive";j(s);const i=new Map(a),o=Yl(String(t??""));i.set(`tax${e}`,{inputValue:null!=t&&t.includes("%")?r:o,isValid:!0,isError:!1,errorMessage:"",taxType:s}),n(i)},inputType:"percent",required:!1})]}),s&&(0,I.jsxs)("div",{className:"inputWrap__dUHj2",children:[(0,I.jsx)(al,{name:`surchargeType${e}`,label:"Surcharge Type",placeholder:"Select",inputValueMap:l,setInputValueMap:n,onChangeCallback:({value:e,inputValueMap:t})=>{const a=new Map(t);a.set(N,{inputValue:"",isValid:"None"===e,isError:!1,errorMessage:""}),n(a)},options:[{label:"Percentage",value:"Percentage"},{label:"Fixed Amount",value:"Fixed"},{label:"None",value:"None"}]}),(0,I.jsx)("div",{className:"surchargeField__ufvB2",children:(0,I.jsx)(_e,{name:`surcharge${e}`,label:"Surcharge",inputValueMap:l,setInputValueMap:n,disabled:A,required:!1,inputType:V?"percent":"currency",className:`${A?Zl:""}`.trim(),onChangeCallback:({value:e,inputValueMap:t})=>{const a=V?Yl(e??""):e??"",l=Wl(a||"0"),r=new Map(t),s=r.get(N);if(!a||""===a.trim()||0===l)return r.set(N,{...s,inputValue:a,isValid:!0,isError:!1,errorMessage:""}),n(r),void(null==h||h(!1));T(l)?(r.set(N,{...s,inputValue:a,isValid:!1,isError:!0,errorMessage:P()}),n(r),null==h||h(!0)):(r.set(N,{...s,inputValue:a,isValid:!0,isError:!1,errorMessage:""}),n(r),null==h||h(!1))},onBlurCallback:({value:e,inputValueMap:t})=>{const a=Wl(e||"0");if(e&&""!==e.trim()&&0!==a&&T(a)){const e=new Map(t);setTimeout(()=>{const t=e.get(N);e.set(N,{...t,inputValue:(null==t?void 0:t.inputValue)??"",isValid:!1,isError:!0,errorMessage:P()}),n(e),null==h||h(!0)},0)}},startAdornment:(0,I.jsx)("span",{className:V?Gl:Ol,children:V?"%":"$"})})})]})]});return c?(0,I.jsxs)("div",{className:"taxAndSurchargeWrap__wSxM4 surchargeDisabledWrap__A4tut",children:[F,(0,I.jsx)("div",{className:"surchargeTooltip__zW-mF",children:(0,I.jsx)(ll,{message:"Surcharge disabled. Debit cards are not eligible for surcharge fees.",children:(0,I.jsxs)("div",{className:"surchargeDisabled__-dwK9",children:["Surcharge Disabled ",(0,I.jsx)(Bl,{className:"helpIcon__QF1Mc"})]})})})]}):F};const Ul=({wallet:e,customOnClick:t,customOnDelete:a,showDefault:l,expiredStatus:r})=>{var n;return(0,I.jsxs)("div",{className:"ccContainer__Kqqyd",children:[(0,I.jsxs)("div",{className:"ACH"===(null==e?void 0:e.accountType)?"ccTopWrapACH__UR9E5":"ccTopWrap__e6wJp",children:[((null==e?void 0:e.isDefault)&&l||"expired"===r||"expiring"===r)&&(0,I.jsxs)("div",{className:"buttonContainer__ogLgf",children:[(null==e?void 0:e.isDefault)&&l&&(0,I.jsx)("div",{className:"defaultButton__WUudr",children:"Default"}),"expired"===r&&(0,I.jsx)("div",{className:"expiredButton__pT80H",children:"Expired"}),"expiring"===r&&(0,I.jsx)("div",{className:"expiringButton__EV7GP",children:"Expiring Soon"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"ccName__Jo8Xx",children:null!=e&&e.nameOnAccount?(0,I.jsx)(ll,{message:null==e?void 0:e.nameOnAccount,children:(0,I.jsx)("div",{className:"ccNameText__KtcwQ",children:null==e?void 0:e.nameOnAccount})}):(0,I.jsx)(Il,{height:29,width:200})}),(0,I.jsx)("div",{className:"ccCardTitle__V0yCP",children:"ACH"===(null==e?void 0:e.accountType)?"Account Number":"Card Number"}),(0,I.jsx)("div",{className:"ccNumber__I-MS0",children:e?null==e||null===(n=e.accountNumberMasked)||void 0===n?void 0:n.replace(/X/g,"*"):(0,I.jsx)(Il,{height:29,width:250})})]})]}),(0,I.jsxs)("div",{className:"ACH"===(null==e?void 0:e.accountType)?"ccBottomWrapACH__4CGn4":"ccBottomWrap__Vm5sG",children:[(0,I.jsxs)("div",{className:"ccDateWrap__RLRNb",children:[(0,I.jsx)("div",{className:"ccDateTitle__9AEGg",children:"ACH"===(null==e?void 0:e.accountType)?"Routing Number":"Date"}),(0,I.jsx)("div",{className:"ccDate__rWMM-",children:e?"ACH"===(null==e?void 0:e.accountType)?null==e?void 0:e.accountNumberAlt:null==e?void 0:e.expirationDate:(0,I.jsx)(Il,{height:19,width:44})})]}),(0,I.jsx)("div",{className:"ccLogo__2NmS6",children:"ACH"===(null==e?void 0:e.accountType)?(0,I.jsx)(ma,{}):(0,I.jsx)(I.Fragment,{children:Ia(e)})})]}),t&&(0,I.jsx)(Ka,{handleClick:()=>t(null==e?void 0:e.customerWalletId),buttonType:"contained",className:"updateButton__ZM8T4",children:"Update"}),a&&(0,I.jsx)(Ka,{handleClick:()=>a(null==e?void 0:e.customerWalletId),buttonType:"contained",className:"deleteButton__uykIa",children:"Delete"})]})};const Kl=({showLoading:e})=>{const[t]=Ye();return(0,I.jsx)("div",{className:`processingLoader__o6I8c ${e?"LoaderOpen__tsn9f":"LoaderClosed__NgBKy"} ${t?"navOpen__oy4-5":"navClosed__VXdKF"}`,children:(0,I.jsxs)("div",{className:"processing__ZY-4-",children:[(0,I.jsx)(va,{classes:{loader:"loader__BST-7",logoPath:"logoPath__-PSLw"}}),(0,I.jsxs)("div",{className:"processingText__C3Lp-",children:["Processing",(0,I.jsx)("span",{children:"."}),(0,I.jsx)("span",{children:"."}),(0,I.jsx)("span",{children:"."})]})]})})};var Xl="receiptAccountInfo__VnwwD",Jl="receiptLeftCol__wcWG-",Ql="receiptRightCol__92mIO",er="signatureText__R2ZNX",tr="logoLeft__zhIsI",ar="textLeft__zre23",lr="textCenter__lVg1z",rr="textRight__7KEeD",nr="printButton__ZYqwR";const sr=({label:e,value:t})=>t&&""!==t?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:Jl,children:e}),(0,I.jsx)("div",{className:Ql,children:t})]}):null,ir=({transaction:e,merchantDetails:t,merchantSurcharge:a,printedReceiptSettings:l,logoImagePreview:r,showPrintButton:n=!1,className:s=""})=>{var i,o;const c=(0,R.useRef)(null),d="ACH"===(null==e?void 0:e.accountType),u=(null==l?void 0:l.logoAlign)??0,h=(null==l?void 0:l.headerAlign)??0,p=(null==l?void 0:l.footerAlign)??0,m=le(null==e?void 0:e.created),f=D()(m),v=null==f?void 0:f.isValid(),g=v?f.format("MM/DD/YYYY"):"N/A",x=v?f.format("hh:mm A"):"N/A",b=[tr,"logoCenter__NrHmV","logoRight__QUjco"][u]||tr,j=[ar,lr,rr][h]||ar,_=[ar,lr,rr][p]||ar;return(0,I.jsxs)("div",{className:`receiptContainer__YikWY ${s}`,ref:c,children:[n&&(0,I.jsx)("div",{className:"printButtonContainer__eY-bL",children:(0,I.jsx)(Ka,{className:nr,handleClick:()=>
1{if(!c.current)return;const t=window.open("","_blank");if(!t)return;t.document.head.innerHTML=document.head.innerHTML;const a=t.document.createElement("style");a.textContent=`\n    .${nr} {\n      display: none !important;\n    }\n  `,t.document.head.appendChild(a);const l=t.document.createElement("title");l.textContent=`Receipt - ${null==e?void 0:e.transactionId}`,t.document.head.appendChild(l),t.document.body.className="light",t.document.body.innerHTML=c.current.outerHTML},children:(0,I.jsx)(ba,{className:"printIcon__H7-Kz"})})}),(0,I.jsx)("div",{className:`imageContainer__vZIcR ${b}`,children:r?(0,I.jsx)("div",{className:b,children:(0,I.jsx)("img",{src:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:image")?r:`https://${r}`,alt:"Receipt Logo",className:"image__BazTG"})}):(0,I.jsx)("div",{className:"imagePreview__GtT4Y",children:(0,I.jsx)(xa,{})})}),(0,I.jsx)("div",{className:"headerContainer__YujEV",children:((null==l?void 0:l.headerLine1)||(null==l?void 0:l.headerLine2)||(null==l?void 0:l.headerLine3)||(null==l?void 0:l.headerLine4))&&(0,I.jsxs)("div",{className:j,children:[(null==l?void 0:l.headerLine1)&&(0,I.jsxs)(I.Fragment,{children:[l.headerLine1,(0,I.jsx)("br",{})]}),(null==l?void 0:l.headerLine2)&&(0,I.jsxs)(I.Fragment,{children:[l.headerLine2,(0,I.jsx)("br",{})]}),(null==l?void 0:l.headerLine3)&&(0,I.jsxs)(I.Fragment,{children:[l.headerLine3,(0,I.jsx)("br",{})]}),(null==l?void 0:l.headerLine4)&&(0,I.jsxs)(I.Fragment,{children:[l.headerLine4,(0,I.jsx)("br",{})]})]})}),(0,I.jsxs)("div",{className:Xl,children:[(0,I.jsxs)("div",{className:Jl,children:["Date: ",g]}),(0,I.jsxs)("div",{className:Ql,children:["Time: ",x]}),(0,I.jsx)(sr,{label:"Merchant:",value:(null==t?void 0:t.companyName)||"N/A"}),(0,I.jsx)(sr,{label:"Merchant Id:",value:(null==t?void 0:t.accountIdentifier)||"N/A"}),(0,I.jsx)(sr,{label:"Transaction Id:",value:(null==e?void 0:e.transactionId)||"N/A"})]}),(0,I.jsxs)("div",{className:"receiptTitle__FLnm-",children:[(w=null==e?void 0:e.accountType,w?"Creditcard"===w?"Credit Card":"ACH"===w?"ACH":"":""),(0,I.jsxs)("span",{className:"actionText__7GUzp",children:[" ",(null==e||null===(i=e.action)||void 0===i?void 0:i.toLowerCase())||"N/A"]})]}),(0,I.jsxs)("div",{className:Xl,children:[!d&&(0,I.jsx)(sr,{label:"Card Type",value:(e=>{if(!e)return null;const t=e.toLowerCase();return Pa[t]||null})(null==e?void 0:e.creditCardType)}),(0,I.jsx)(sr,{label:d?"Account#":"Card#",value:(null==e?void 0:e.accountNumberMasked)||"N/A"}),!d&&(0,I.jsx)(sr,{label:"Expiration Date",value:null==e?void 0:e.expirateDate}),(0,I.jsx)(sr,{label:"Entry Mode",value:(null==e?void 0:e.entryMode)||"N/A"})]}),(0,I.jsxs)("div",{className:"receiptAmounts__EYz1I",children:[(0,I.jsx)(sr,{label:"Subtotal",value:Aa(null==e?void 0:e.subTotalAmount,!0,"currency")||"$0.00"}),(0,I.jsx)(sr,{label:"Tax Amount",value:Aa(null==e?void 0:e.taxAmount,!0,"currency")||"$0.00"}),(0,I.jsx)(sr,{label:"Tip Amount",value:Aa(null==e?void 0:e.tipAmount,!0,"currency")||"$0.00"}),(null==a?void 0:a.isEnabled)&&(0,I.jsx)(sr,{label:"Surcharge Amount",value:Aa(null==e?void 0:e.surchargeAmount,!0,"currency")||"$0.00"}),(0,I.jsx)("div",{className:Jl,children:"Total Amount"}),(0,I.jsx)("div",{className:Ql,children:(t=>{var a,l;const r=Aa(t,!0,"currency");return r?"refund"===(null==e||null===(a=e.action)||void 0===a?void 0:a.toLowerCase())||"credit"===(null==e||null===(l=e.action)||void 0===l?void 0:l.toLowerCase())?r.replace("$","$(")+")":r:"$0.00"})(null==e?void 0:e.paymentAmount)}),"authorize"===(null==e||null===(o=e.action)||void 0===o?void 0:o.toLowerCase())&&(null==e?void 0:e.capturedAmount)&&(0,I.jsx)(sr,{label:"Captured Amount",value:Aa(null==e?void 0:e.capturedAmount,!0,"currency")||"$0.00"})]}),(0,I.jsxs)("div",{className:"signatureContainer__-Dqks",children:[(0,I.jsx)("span",{className:"signatureX__Vmi5X",children:"X"}),(0,I.jsx)("div",{className:"signatureLine__GjwUr"})]}),(0,I.jsx)("div",{className:er,children:"Signature"}),(0,I.jsx)("div",{className:er,children:null==e?void 0:e.nameOnAccount}),(0,I.jsx)("div",{className:"transactionStatus__6qVzi",children:(null==e?void 0:e.status)||"N/A"}),(0,I.jsx)("div",{className:"footerContainer__9co-o",children:((null==l?void 0:l.footerLine1)||(null==l?void 0:l.footerLine2)||(null==l?void 0:l.footerLine3)||(null==l?void 0:l.footerLine4))&&(0,I.jsxs)("div",{className:_,children:[(null==l?void 0:l.footerLine1)&&(0,I.jsxs)(I.Fragment,{children:[l.footerLine1,(0,I.jsx)("br",{})]}),(null==l?void 0:l.footerLine2)&&(0,I.jsxs)(I.Fragment,{children:[l.footerLine2,(0,I.jsx)("br",{})]}),(null==l?void 0:l.footerLine3)&&(0,I.jsxs)(I.Fragment,{children:[l.footerLine3,(0,I.jsx)("br",{})]}),(null==l?void 0:l.footerLine4)&&(0,I.jsxs)(I.Fragment,{children:[l.footerLine4,(0,I.jsx)("br",{})]})]})})]});var w};const or=({open:e,onClose:t,onContinue:a,content:l="Are you sure you want to perform this action?",subContent:r="",continueText:n="Yes",cancelText:s="Cancel",continueDisabled:i=!1})=>{const[o,c]=(0,R.useState)(e),[d,u]=(0,R.useState)(!1);return(0,R.useEffect)(()=>
1{if(e)c(!0),u(!1);else if(o){u(!0);const e=setTimeout(()=>{c(!1),u(!1)},300);return()=>clearTimeout(e)}},[e]),o?(0,jt.createPortal)((0,I.jsx)("div",{className:"backdrop__jYpTA",onClick:t,children:(0,I.jsxs)("div",{className:"modal modal__yNG-7 "+(d?"closing__LECtB":""),onClick:e=>e.stopPropagation(),children:[(0,I.jsxs)("div",{className:"content__bHhiE",children:[(0,I.jsx)("div",{className:"contentMain__pcJrF",children:l}),r&&(0,I.jsx)("div",{className:"subContent__EhLKh",children:r})]}),(0,I.jsxs)("div",{className:"actions__SzaF5",children:[n&&(0,I.jsx)(Ka,{className:"continue__GNQtc",buttonType:"contained",handleClick:a,disabled:i,children:n}),s&&(0,I.jsx)(Ka,{className:"cancel__YWZk8",buttonType:"contained",handleClick:t,children:s})]})]})}),document.body):null};var cr="resultsSection__GvE0F",dr="resultsList__ZohL6";const ur=({open:e,onClose:t,title:a,passed:l,failed:r})=>(0,I.jsx)(or,{open:e,onClose:t,onContinue:t,continueText:"",cancelText:"Close",content:(0,I.jsxs)("div",{className:"resultsContent__k8KRr",children:[(0,I.jsx)("h3",{className:"resultsTitle__xW2hr",children:a}),l.length>0&&(0,I.jsxs)("div",{className:cr,children:[(0,I.jsxs)("h4",{className:"resultsSectionTitle__gSSZ9",children:["✓ Successful (",l.length,")"]}),(0,I.jsx)("ul",{className:dr,children:l.map((e,t)=>(0,I.jsxs)("li",{className:"resultsItemSuccess__gLpiM",children:["Transaction #",e.transactionId]},t))})]}),r.length>0&&(0,I.jsxs)("div",{className:cr,children:[(0,I.jsxs)("h4",{className:"resultsSectionTitleError__gl29s",children:["✗ Failed (",r.length,")"]}),(0,I.jsx)("ul",{className:dr,children:r.map((e,t)=>(0,I.jsxs)("li",{className:"resultsItemError__qkVjd",children:["Transaction #",e.transactionId]},t))})]})]})});var hr="checkboxContainer__1Myrh",pr="checkboxGroup__VizBh";const mr=e=>{switch(null==e?void 0:e.toUpperCase().replace(/_/g," ")){case"APPROVED":return"statusApproved__IiO86";case"CAPTURED":return"statusCaptured__sW9Wh";case"SETTLED":return"statusSettled__vTCvd";case"DECLINED":return"statusDeclined__z43z0";case"VOIDED":return"statusVoided__s9fKa";case"ERROR":return"statusError__rNxXg";case"SYNCED":return"statusSynced__3OGKS";case"PENDING":return"statusPending__MoxDf";case"FAILED":return"statusFailed__aaSc2";case"NOT SYNCED":return"statusNotSynced__h-G-W";default:return"statusDefault__JZCPl"}},fr=e=>{switch(null==e?void 0:e.toUpperCase()){case"AUTHORIZE":return"typeAuthorize__cB6Mt";case"SALE":return"typeSale__Dv3BE";case"CREDIT":return"typeCredit__-Pqjr";case"REFUND":return"typeRefund__ZXpAy";case"CAPTURE":return"typeCapture__-TALi";case"VOID":return"typeVoid__9a2P0";case"SETTLE":return"typeSettle__j5Tmh";case"VALIDATE":return"typeValidate__qMIYz";case"ENHANCE":return"typeEnhance__jWEPG";case"SIGNATURE":return"typeSignature__N9pP-";default:return"typeDefault__x9Je3"}},vr=e=>{const t=null==e?void 0:e.type,a=null==e?void 0:e.capturedAmount,l="AUTHORIZE"!==t||a>0?a??(null==e?void 0:e.amount):null==e?void 0:e.amount,r=Aa(l,!0);return r?"CREDIT"===t||"REFUND"===t?`($${r})`:`$${r}`:"N/A"},gr=e=>{const t=(null==e?void 0:e.accountScheme)||(null==e?void 0:e.accountType),a="string"==typeof t?t.toLowerCase():"",l=Pa[a]?a:void 0;return Ia({accountNumberMasked:null==e?void 0:e.accountData,accountScheme:l})},xr=({rows:e,onCardClick:t,formatDate:a,showType:l=!0,showStatus:r=!0,showCustomerName:n=!0,showRefundInput:s=!1,actionFunctions:i,inputValueMap:o,setInputValueMap:c,label:d,idKey:u="id",dateKey:h="transactionDate",statusKey:p="status",renderExtraInfo:m,renderActions:f,renderRowCheckbox:v,renderSelectAllCheckbox:g})=>{if(!e||0===e.length)return(0,I.jsx)("div",{className:"noResults__U-0bi",children:"No results found"});const x=!(!i||!d),b=d?`${d}SelectAll`:"selectAll",j=d?`${d}Checkboxes`:"rowCheckboxes",_=d?`${d}Input_`:"refundInput_",w=!!g||x;return(0,I.jsxs)("div",{className:"cardList__2l-Sj tableRowStriped",children:[w&&(0,I.jsx)("div",{className:hr,children:g?g(e):(0,I.jsx)(ul,{className:pr,name:b,onChangeCallback:({value:t,inputValueMap:a})=>{i.handleSelectAllCheckbox(e,t,a)},options:[{label:"Select All",value:"true"}],inputValueMap:o,setInputValueMap:c,required:!1})}),e.map(e=>{var d;const g=(null==e?void 0:e.original)||e,b=null==g?void 0:g[u],w=null==g?void 0:g[p],M="string"==typeof w?w.charAt(0).toUpperCase()+w.slice(1).toLowerCase():"",y=null==g?void 0:g.type,C="string"==typeof y?y.charAt(0).toUpperCase()+y.slice(1).toLowerCase():"",N=null==g?void 0:g[h],k=v?v(e):x?(0,I.jsx)(ul,{className:pr,name:j,onChangeCallback:({inputValueMap:t})=>{i.handleSelectCheckbox(e,t)},options:[{label:"",value:String(b)}],inputValueMap:o,setInputValueMap:c,required:!1}):null;return(0,I.jsxs)("div",{className:"card__HjNKb",onClick:t?()=>t(e):void 0,children:[(0,I.jsxs)("div",{className:"cardHeader__Cycz8",children:[(0,I.jsxs)("span",{className:"transactionId__bvQmv",children:["#",b]}),(0,I.jsxs)("div",{className:"rightWrap__iNj6H",children:[l&&(0,I.jsx)("span",{className:`type__rtUs8 ${fr(y)}`,children:C}),k&&(0,I.jsx)("div",{className:hr,onClick:e=>e.stopPropagation(),children:k})]})]}),(0,I.jsxs)("div",{className:"cardBody__nW3KR",children:[(0,I.jsx)("div",{className:"cardIcon__Q6YH4",children:gr(g)}
1),(0,I.jsxs)("div",{className:"cardInfo__eJTXE",children:[(0,I.jsx)("div",{className:"amount__F2LQN",children:vr(g)}),n&&(0,I.jsx)("div",{className:"customerName__2Nlvo",children:null!=g&&g.customerName?Ba(g.customerName):"N/A"}),N&&(0,I.jsx)("div",{className:"date__J7c-Z",children:a?a(N):D()(le(N)).format("MMM D · h:mm A")}),m&&m(e)]}),r&&(0,I.jsx)("div",{className:"cardStatus__cdDQb",children:(0,I.jsx)("span",{className:`statusTag__6ZOR7 ${mr(w)}`,children:M})}),f&&(0,I.jsx)("div",{onClick:e=>e.stopPropagation(),children:f(e)}),s&&x&&(0,I.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,I.jsx)(_e,{name:`${_}${null==e||null===(d=e.original)||void 0===d?void 0:d[u]}`,placeholder:"999,999,999.99",className:"rowLinkRefund__FdUNh",inputType:"currency",onChangeCallback:({inputValueMap:t})=>{i.handleInputChange(e,t)},maxLength:14,required:!1,displayError:!1,startAdornment:(0,I.jsx)("span",{className:"startAdornment__kD7sY",children:"$"}),inputValueMap:o,setInputValueMap:c})})]})]},b)})]})};var br="breakdownSheetDragging__dlOFe",jr="breakdownRow__BsTtl",_r="breakdownLabel__71wK8",wr="breakdownValue__-QDig";const Mr=({pricingBreakdown:e,linkLabel:t="View price breakdown",title:a="Price Breakdown"})=>{const[l,r]=(0,R.useState)(!1),[n,s]=(0,R.useState)(!1),[i,o]=(0,R.useState)("100%"),
1c=(0,R.useRef)(0),d=(0,R.useRef)(!1),u=(0,R.useRef)(null),h=(0,R.useRef)(null),p=(0,R.useRef)(null);(0,R.useEffect)(()=>{l&&(o("100%"),requestAnimationFrame(()=>{requestAnimationFrame(()=>o("0px"))}))},[l]),(0,R.useEffect)(()=>{if(h.current){const e=parseInt(i,10);if(e>0){const t=Math.max(0,.45-e/600);h.current.style.setProperty("--backdrop-opacity",String(t))}else h.current.style.removeProperty("--backdrop-opacity")}p.current&&p.current.style.setProperty("--sheet-y",i)},[i]),(0,R.useEffect)(()=>()=>{null!==u.current&&window.clearTimeout(u.current)},[]);const m=()=>{var e;d.current=!1,null===(e=p.current)||void 0===e||e.classList.remove(br),s(!0),o(`${window.innerHeight}px`),null!==u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{r(!1),s(!1),u.current=null},300)};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"breakdownLink__pzsBX",onClick:()=>r(!0),children:t}),(l||n)&&(0,I.jsx)("div",{ref:h,className:"breakdownBackdrop__wkJDn "+(n?"breakdownBackdropClosing__iMJfw":""),onClick:m,children:(0,I.jsxs)("div",{ref:p,className:"breakdownSheet__Kpwzv",onClick:e=>e.stopPropagation(),onTouchStart:e=>{var t;c.current=e.touches[0].clientY,d.current=!0,null===(t=p.current)||void 0===t||t.classList.add(br)},onTouchMove:e=>{if(!d.current)return;const t=e.touches[0].clientY-c.current;t>0&&o(`${t}px`)},onTouchEnd:()=>{var e;d.current=!1,null===(e=p.current)||void 0===e||e.classList.remove(br),(parseInt(i,10)||0)>100?m():o("0px")},children:[(0,I.jsx)("div",{className:"breakdownDragHandle__Pt-P5",children:(0,I.jsx)("span",{className:"breakdownDragPill__I1w3k"})}),(0,I.jsxs)("div",{className:"breakdownHeader__uQ5Or",children:[(0,I.jsx)("span",{className:"breakdownTitle__vK0ZI",children:a}),(0,I.jsx)("button",{className:"breakdownClose__izv4P",onClick:m,type:"button",children:"×"})]}),(0,I.jsxs)("div",{className:jr,children:[(0,I.jsx)("span",{className:_r,children:"Amount"}),(0,I.jsx)("span",{className:wr,children:Aa(e.amount,!0,"currency")})]}),(0,I.jsxs)("div",{className:jr,children:[(0,I.jsx)("span",{className:_r,children:"Estimated tax"}),(0,I.jsx)("span",{className:wr,children:Aa(e.tax,!0,"currency")})]}),(0,I.jsxs)("div",{className:jr,children:[(0,I.jsx)("span",{className:_r,children:"Surcharge"}),(0,I.jsx)("span",{className:wr,children:Aa(e.surcharge,!0,"currency")})]}),(0,I.jsxs)("div",{className:"breakdownRowTotal__cltPM",children:[(0,I.jsx)("span",{className:_r,children:"Total"}),(0,I.jsx)("span",{className:"breakdownTotal__kE2C9",children:Aa(e.total,!0,"currency")})]})]})})]})};const yr=e=>(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,I.jsx)("rect",{x:9,y:9,width:13,height:13,rx:2,ry:2}),(0,I.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),Cr=({tooltip:e,getText:t})=>{const[a,l]=(0,R.useState)(!1),[r,n]=(0,R.useState)(!1),s=(0,R.useRef)(null);return(0,R.useEffect)(()=>()=>{null!==s.current&&window.clearTimeout(s.current)},[]),(0,I.jsx)(ll,{message:a?"Copied!":e,open:r,onOpenChange:n,children:(0,I.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation();const a=t();a&&(navigator.clipboard.writeText(a),l(!0),n(!0),null!==s.current&&window.clearTimeout(s.current),s.current=window.setTimeout(()=>{n(!1),l(!1),s.current=null},2e3))},className:"iconButton__6P3Bn "+(a?"iconCopied__YyXWR":""),children:(0,I.jsx)(yr,{})})})},Nr=()=>{const[e,t]=R.useState(!1),[a,l]=R.useState(!1),r=R.useRef(0);return{dragStart:R.useCallback(e=>{r.current=e.clientX,t(!0)},[]),dragStop:R.useCallback(()=>window.requestAnimationFrame(()=>{l(!1),t(!1)}),[]),dragMove:(t,n)=>{const s=r.current-t.clientX,i=Math.abs(s)>5;e&&i&&l(!0),a&&i&&(r.current=t.clientX,n(s))},dragging:a,position:r,setDragging:l}},kr=new Set,Vr=new Map,Ar=(e,t)=>{const{remoteUrl:l,scope:r,module:n}=e[t],s=`${l}-${r}-${n}`,[i,o]=(0,R.useState)(null),{ready:c}=(e=>{const[t,a]=(0,R.useState)(!1),[l,r]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{if(!e)return;if(kr.has(e))return a(!0),void r(!1);a(!1),r(!1);const t=document.createElement("script");t.src=e,t.type="text/javascript",t.async=!0,t.onload=()=>{kr.add(e),a(!0)},t.onerror=()=>{a(!1),r(!0)},document.head.appendChild(t)},[e]),{errorLoading:l,ready:t}})(l);return(0,R.useEffect)(()=>{i&&o(null)},[s]),(0,R.useEffect)(()=>
1{if(c&&!i){if(Vr.has(s))return void o(Vr.get(s));const e=(0,R.lazy)(((e,t)=>async()=>{await a.I("default");const l=window[e];return await l.init(a.S.default),(await window[e].get(t))()})(r,n));((e,t)=>{if(Vr.size>=50){const e=Vr.keys().next().value;e&&Vr.delete(e)}Vr.set(e,t)})(s,e),o(e)}},[i,c,s]),i},Sr=(e,t)=>{const[a,l]=(0,R.useState)(e);return(0,R.useEffect)(()=>{const a=setTimeout(()=>{l(e)},t);return()=>{clearTimeout(a)}},[e,t]),a},Pr=(e,t,a,l)=>{const[r,n]=(0,R.useState)(),[s,i]=(0,R.useState)(0),o=(0,R.useRef)([]),[c,d]=(0,R.useState)(!1),u=(a,l,r=!1)=>{const n=((e,t=[])=>{if(e&&"*"!==e)try{const a=new URL(e).origin;return t.some(e=>{try{return new URL(e).origin===a}catch{return!1}})?a:void 0}catch{return}})(e,t.allowedOrigins);return!(!a||!n||r&&window.parent!==window&&n===window.location.origin||(a.postMessage(l,n),0))},h=(e,t)=>{try{return u(e.contentWindow,t)}catch(a){return!1}},p=(0,R.useCallback)(e=>{o.current.push(e),i(e=>e+1)},[]),m=(0,R.useCallback)(e=>{var r;const n=((e,t,a)=>{var l,r,n,s,i,o;if(!t||!e.origin)return{isValid:!1,error:"Invalid postMessageConfig or event origin"};if(null===(l=t.allowedOrigins)||void 0===l||!l.includes(e.origin))return{isValid:!1,error:`Unauthorized post message origin: ${e.origin}`};if(a&&a.current&&e.source!==a.current.contentWindow)return{isValid:!1,error:"Invalid post message source"};if(!a&&window.parent!==window&&e.source!==window.parent)return{isValid:!1,error:"Invalid post message source"};if(null===(r=t.allowedMessageTypes)||void 0===r||!r.includes(null===(n=e.data)||void 0===n?void 0:n.type))return{isValid:!1,error:`Invalid post message type: ${null===(i=e.data)||void 0===i?void 0:i.type}`};if("object"!=typeof e.data||null===(null===(s=e.data)||void 0===s?void 0:s.inputData))return{isValid:!1,error:`Invalid post message data format: ${null===(o=e.data)||void 0===o?void 0:o.token}`};const c=(t.requiredFields||[]).filter(t=>!(t in e.data));return c.length>0?{isValid:!1,error:`Missing required post message fields: ${c.join(", ")}`}:{isValid:!0}})(e,t,a);if(n.isValid){var s;if("IFRAME_LOADED"===(null===(r=e.data)||void 0===r?void 0:r.type))return null!=a&&null!==(s=a.current)&&void 0!==s&&s.contentWindow&&h(a.current,{type:"PARENT_THEME",inputData:{theme:l||"light"},timestamp:Date.now()}),void d(!0);p(e.data)}},[t,a,l,e,p]);(0,R.useEffect)(()=>{const e=e=>{var a;null!=t&&null!==(a=t.allowedOrigins)&&void 0!==a&&a.includes(e.origin)&&m(e)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[m,t]),(0,R.useEffect)(()=>{const e=o.current.shift();e&&n({...e})},[s]),(0,R.useEffect)(()=>{0!==o.current.length&&i(e=>e+1)},[r]);const f=(0,R.useCallback)(()=>{o.current=[],n(void 0)},[]);return{sendToParent:e=>{try{return u(window.parent,e,!0)}catch(t){return!1}},sendToIframe:h,isIframeLoaded:c,message:r,clearMessage:f}},Tr=()=>{const e=(0,R.useRef)(new Set);return(0,R.useEffect)(()=>{const t=e.current;return()=>{t.forEach(clearTimeout),t.clear()}},[]),{setSafeTimeout:(0,R.useCallback)((t,a)=>{const l=setTimeout(()=>{t(),e.current.delete(l)},a);return e.current.add(l),l},[]),clearSafeTimeout:(0,R.useCallback)(t=>{clearTimeout(t),e.current.delete(t)},[])}},Dr=({iframeTitle:e,throttleMs:t=16})=>{(0,R.useEffect)(()=>{let a=null,l=null,r=0;const n=()=>{0!==r?(a||(a=(()=>{const t=document.querySelector(`iframe[title="${e}"]`);if(t){let e=t.parentElement;for(;e&&e!==document.body;){const t=window.getComputedStyle(e);if(("auto"===t.overflow||"scroll"===t.overflow||"auto"===t.overflowY||"scroll"===t.overflowY)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}}return document.querySelector(".leftWrap")||document.getElementById("hostRightWrap")||document.querySelector(".hostRightWrap")})()),a&&a!==document.body&&a!==document.documentElement&&"hostRightWrap"!==a.id&&!a.classList.contains("hostRightWrap")&&(a.scrollTop+=r),r=0,l=null):l=null},s=a=>{var s;if("IFRAME_SCROLL"!==(null===(s=a.data)||void 0===s?void 0:s.type))return;const i=document.querySelector(`iframe[title="${e}"]`);if(i&&a.source===i.contentWindow){try{if(new URL(i.src,window.location.href).origin!==a.origin)return}catch{return}{var o;const e=null===(o=a.data.inputData)||void 0===o?void 0:o.deltaY;e&&(r+=e,null===l&&(l=window.setTimeout(n,t)))}}},i=document.querySelector(`iframe[title="${e}"]`);let o=null;return i&&(o=new ResizeObserver(()=>{a=null}
1),o.observe(i)),window.addEventListener("message",s),()=>{window.removeEventListener("message",s),o&&o.disconnect(),null!==l&&clearTimeout(l)}},[e,t])};var Er={colorPicker:"colorPicker__HdMWd",svWrap:"svWrap__U02dw",svHandle:"svHandle__FN7Zh",sliderRow:"sliderRow__NudZg",hue:"hue__XEUG-",alpha:"alpha__f48zV",handleX:"handleX__QOqdS",checker:"checker__teSfj",inputs:"inputs__YDMqL",input:"input__tC6qc",inputBox:"inputBox__P92g-",previewRow:"previewRow__6ll-S",previewBox:"previewBox__0xzzm",code:"code__21-o4",codeLarge:"codeLarge__BCpQs",hexRow:"hexRow__KutjD",rgbaRow:"rgbaRow__9xYVt",toggleWrap:"toggleWrap__jsIax",toggleButton:"toggleButton__4jCPP",copyButton:"copyButton__TPhOO"};const Lr=e=>(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,I.jsx)("path",{d:"M20 6L9 17l-5-5"})}),Rr=e=>/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(e),$r=e=>Math.min(1,Math.max(0,e)),Ir=e=>Math.min(255,Math.max(0,Math.round(e))),Fr=e=>(e%360+360)%360,Hr=e=>{const t=e.trim().match(/^rgba?\s*\(\s*([.\d]+)\s*,\s*([.\d]+)\s*,\s*([.\d]+)(?:\s*,\s*([.\d]+))?\s*\)$/i);return t?{r:Ir(+t[1]),g:Ir(+t[2]),b:Ir(+t[3]),a:null!=t[4]?$r(+t[4]):1}:null},Br=e=>{const t=e.trim().replace(/^#/,"");if(![3,4,6,8].includes(t.length))return null;const a=e=>parseInt(1===e.length?e+e:e,16);let l=0,r=0,n=0,s=255;return 3===t.length||4===t.length?(l=a(t[0]),r=a(t[1]),n=a(t[2]),4===t.length&&(s=a(t[3]))):(l=a(t.slice(0,2)),r=a(t.slice(2,4)),n=a(t.slice(4,6)),8===t.length&&(s=a(t.slice(6,8)))),{r:l,g:r,b:n,a:s/255}},Zr=({r:e,g:t,b:a,a:l=1})=>{const r=e/255,n=t/255,s=a/255,i=Math.max(r,n,s),o=i-Math.min(r,n,s);let c=0;return 0!==o&&(c=i===r?(n-s)/o%6:i===n?(s-r)/o+2:(r-n)/o+4,c*=60,c<0&&(c+=360)),{h:c,s:0===i?0:o/i,v:i,a:l}},Or=({h:e,s:t,v:a,a:l=1})=>{e=Fr(e),t=$r(t);const r=(a=$r(a))*t,n=r*(1-Math.abs(e/60%2-1)),s=a-r;let i=0,o=0,c=0;return e<60?(i=r,o=n,c=0):e<120?(i=n,o=r,c=0):e<180?(i=0,o=r,c=n):e<240?(i=0,o=n,c=r):e<300?(i=n,o=0,c=r):(i=r,o=0,c=n),{r:Math.round(255*(i+s)),g:Math.round(255*(o+s)),b:Math.round(255*(c+s)),a:l}},Gr=e=>{const t=Or(e),a=(({r:e,g:t,b:a,a:l=1})=>{const r=e/255,n=t/255,s=a/255,i=Math.max(r,n,s),o=Math.min(r,n,s);let c=0,d=0;const u=(i+o)/2,h=i-o;if(0!==h){switch(d=u>.5?h/(2-i-o):h/(i+o),i){case r:c=(n-s)/h+(n<s?6:0);break;case n:c=(s-r)/h+2;break;case s:c=(r-n)/h+4}c*=60}return{h:c,s:d,l:u,a:l}})(t),l=(({r:e,g:t,b:a})=>"#"+[e,t,a].map(e=>Ir(e).toString(16).padStart(2,"0")).join(""))(t),r=(({r:e,g:t,b:a,a:l=1})=>"#"+[e,t,a,Math.round(255*$r(l))].map(e=>Ir(e).toString(16).padStart(2,"0")).join(""))(t),n=Number((t.a??1).toFixed(2)),s=`rgba(${t.r}, ${t.g}, ${t.b}, ${n})`;return{hex:l,hex8:r,rgb:{...t,a:n},hsl:a,hsv:{...e,a:n},rgbaString:s}},qr=e=>{if(!e)return{h:0,s:0,v:1,a:1};if("string"==typeof e){const t=Br(e)??Hr(e);return t?Zr(t):{h:0,s:0,v:1,a:1}}return"r"in e?Zr(e):"v"in e?{...e,h:Fr(e.h),s:$r(e.s),v:$r(e.v),a:e.a??1}:"l"in e?Zr((({h:e,s:t,l:a,a:l=1})=>{e=Fr(e),t=$r(t),a=$r(a);const r=(1-Math.abs(2*a-1))*t,n=r*(1-Math.abs(e/60%2-1)),s=a-r/2;let i=0,o=0,c=0;return e<60?(i=r,o=n,c=0):e<120?(i=n,o=r,c=0):e<180?(i=0,o=r,c=n):e<240?(i=0,o=n,c=r):e<300?(i=n,o=0,c=r):(i=r,o=0,c=n),{r:Math.round(255*(i+s)),g:Math.round(255*(o+s)),b:Math.round(255*(c+s)),a:l}})(e)):{h:0,s:0,v:1,a:1}},Wr=e=>(0,R.useCallback)(t=>{var a;const l=t.currentTarget,r=l.getBoundingClientRect(),n=t.target||l,s=t=>{const a=$r((t.clientX-r.left)/r.width),l=$r((t.clientY-r.top)/r.height);e(a,l,!1,r)},i=a=>{var l;const o=$r((a.clientX-r.left)/r.width),c=$r((a.clientY-r.top)/r.height);e(o,c,!0,r),document.removeEventListener("pointermove",s),document.removeEventListener("pointerup",i),null===(l=n.releasePointerCapture)||void 0===l||l.call(n,t.pointerId)};null===(a=n.setPointerCapture)||void 0===a||a.call(n,t.pointerId),document.addEventListener("pointermove",s),document.addEventListener("pointerup",i),s(t.nativeEvent)},[e]),Yr=({hsv:e,style:t,setHsv:a,result:l,onChange:r,hexInput:n,className:s,toggleOpen:i,onChangeEnd:o,disableAlpha:c,handleHexBlur:d,handleHexInput:u,setIsEditingHex:h,isRgbaInput:p=!1})=>{const m=e=>Number((e??1).toFixed(2)).toString(),[f,v]=(0,R.useState)(()=>m(e.a)),[g,x]=(0,R.useState)(p),[b,j]=(0,R.useState)(!1),_=g?l.hex:l.rgbaString,w=(0,R.useMemo)(()=>Or({h:e.h,s:1,v:1,a:1}),[e.h]),M=(0,R.useMemo)(()=>{const{r:t,g:a,b:l}=Or({...e,a:1});return`rgba(${t}, ${a}, ${l}, 1)`},[e]),y=(0,R.useRef)(null);(0,R.useLayoutEffect)(()=>{const a=y.current;a&&(a.style.setProperty("--cp-h",`${e.h}`),a.style.setProperty("--cp-s",`${e.s}`),a.style.setProperty("--cp-v",`${e.v}`),a.style.setProperty("--cp-a",`${e.a??1}`),a.style.setProperty("--cp-sv-x",100*e.s+"%"),a.style.setProperty("--cp-sv-y",100*(1-e.v)+"%"),a.style.setProperty("--cp-hue-x",e.h/360*100+"%"),a.style.setProperty("--cp-alpha-x",100*(e.a??1)+"%"),a.style.setProperty("--cp-sv-color",`rgb(${w.r}, ${w.g}, ${w.b})`),a.style.setProperty("--cp-alpha-color",M),t&&Object.entries(t).forEach(([e,t])=>
1{if(null!=t){const l=e.replace(/([A-Z])/g,"-$1").toLowerCase();a.style.setProperty(l,String(t))}}))},[e,w,M,t]),(0,R.useEffect)(()=>{v(m(e.a))},[e.a]),(0,R.useEffect)(()=>{x(p)},[p]);const C=(0,R.useCallback)((e,t,l)=>{a(a=>{const n={...a,s:e,v:1-t},s=0===n.s?{...n,h:a.h}:n;if(l){const e=Gr(s);o&&o(e),r&&r(e);const t=g?e.rgbaString:1!==e.rgb.a?e.hex8:e.hex;u(t)}return s})},[r,o,g,u]),N=(0,R.useCallback)((e,t,l)=>{a(t=>{const a={...t,h:360*e};if(l){const e=Gr(a);o&&o(e),r&&r(e);const t=g?e.rgbaString:1!==e.rgb.a?e.hex8:e.hex;u(t)}return a})},[r,o,g,u]),k=(0,R.useCallback)((e,t,l)=>{const n=Number($r(e).toFixed(2));a(e=>{const t={...e,a:n};if(l){const e=Gr(t);o&&o(e),r&&r(e);const a=g?e.rgbaString:1!==e.rgb.a?e.hex8:e.hex;u(a)}return t}),v(String(n))},[r,o,g,u]),V=Wr(C),A=Wr(N),S=Wr(k),P=e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur(),null==i||i())},T=(t,l)=>{if(""!==l&&!/^\d+$/.test(l))return;const n=""===l?0:+l,s={...Or(e),[t]:Ir(n)},i=Zr(s);a(i);const o=Gr(i);r(o),u(o.rgbaString)},D=(0,R.useCallback)(()=>{var e;const t=_,a=()=>{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();try{document.execCommand("copy"),j(!0)}finally{document.body.removeChild(e)}};null!==(e=navigator.clipboard)&&void 0!==e&&e.writeText?navigator.clipboard.writeText(t).then(()=>j(!0)).catch(a):a(),window.setTimeout(()=>j(!1),1200)},[_]);return(0,I.jsxs)("div",{ref:y,className:[Er.colorPicker,s].filter(Boolean).join(" "),children:[(0,I.jsx)("div",{className:Er.svWrap,onPointerDown:V,"aria-label":"Color area",role:"application",children:(0,I.jsx)("div",{className:Er.svHandle})}),(0,I.jsxs)("div",{className:Er.sliderRow,onPointerDown:A,children:[(0,I.jsx)("div",{className:Er.hue,"aria-label":"Hue",role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":Math.round(e.h)}),(0,I.jsx)("div",{className:Er.handleX,"data-kind":"hue"})]}),!c&&(0,I.jsxs)("div",{className:Er.sliderRow,onPointerDown:S,children:[(0,I.jsx)("div",{className:`${Er.alpha} ${Er.checker}`,"aria-label":"Alpha",role:"slider","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":Math.round(100*(e.a??1))/100}),(0,I.jsx)("div",{className:Er.handleX,"data-kind":"alpha"})]}),(0,I.jsxs)("div",{className:Er.inputs,children:[!g&&(0,I.jsx)("div",{className:Er.hexRow,children:(0,I.jsxs)("label",{className:Er.input,children:[(0,I.jsx)("span",{children:"HEX"}),(0,I.jsx)("input",{className:Er.inputBox,value:p?1!==l.rgb.a?l.hex8:l.hex:n,onChange:e=>(e=>{if(/^rgba?\s*\(/i.test(e.trim())){const t=Hr(e);if(t){x(!0);const l=Zr(t);a(l);const n=Gr(l);r(n),setTimeout(()=>{u(e)},0),o&&o(n)}}else u(e)})(e.target.value),onKeyDown:e=>{P(e);const t=e.currentTarget;("Backspace"===e.key&&1===t.selectionStart&&1===t.selectionEnd||"Delete"===e.key&&0===t.selectionStart)&&e.preventDefault()},onFocus:e=>{h(!0);const t=e.currentTarget;0===t.selectionStart&&t.setSelectionRange(1,1)},onBlur:d})]})}),g&&(0,I.jsxs)("div",{className:Er.rgbaRow,children:[(0,I.jsxs)("label",{className:Er.input,children:[(0,I.jsx)("span",{children:"R"}),(0,I.jsx)("input",{className:Er.inputBox,value:l.rgb.r,onChange:e=>T("r",e.target.value),onKeyDown:P})]}),(0,I.jsxs)("label",{className:Er.input,children:[(0,I.jsx)("span",{children:"G"}),(0,I.jsx)("input",{className:Er.inputBox,value:l.rgb.g,onChange:e=>T("g",e.target.value),onKeyDown:P})]}),(0,I.jsxs)("label",{className:Er.input,children:[(0,I.jsx)("span",{children:"B"}),(0,I.jsx)("input",{className:Er.inputBox,value:l.rgb.b,onChange:e=>T("b",e.target.value),onKeyDown:P})]}),!c&&(0,I.jsxs)("label",{className:Er.input,children:[(0,I.jsx)("span",{children:"A"}),(0,I.jsx)("input",{className:Er.inputBox,type:"text",maxLength:4,value:f,onChange:t=>{const l=t.target.value.slice(0,4);v(l);const n=Number(l);if(Number.isNaN(n))return;const s=Math.max(0,Math.min(1,n)),i={...e,a:s};a(i);const o=Gr(i);r(o),p&&u(o.rgbaString)},onBlur:()=>{const t=Number(f);(Number.isNaN(t)||t<0||t>1)&&v(m(e.a))},onKeyDown:P})]})]}),(0,I.jsxs)("div",{className:Er.toggleWrap,onClick:()=>x(!g),children:[(0,I.jsx)("div",{className:Er.toggleButton,"aria-label":"Show HEX input",children:(0,I.jsx)(ja,{})}),(0,I.jsx)("div",{className:Er.toggleButton,"aria-label":"Show RGBA inputs",children:(0,I.jsx)(B,{})})]})]}),(0,I.jsxs)("div",{className:Er.previewRow,children:[(0,I.jsx)("div",{className:`${Er.previewBox} ${Er.checker}`}),(0,I.jsx)("code",{className:`${Er.code} ${g?Er.codeLarge:""}`.trim(),children:g?1!==l.rgb.a?l.hex8:l.hex:l.rgbaString}),(0,I.jsx)(ll,{message:"Copy color to clipboard",children:(0,I.jsx)("div",{className:Er.copyButton,onClick:D,children:b?(0,I.jsx)(Lr,{}):(0,I.jsx)(yr,{})})})]})]})}
1,zr=({name:e,value:t,label:a="",onChangeEnd:l,inputValueMap:r,required:n=!0,setInputValueMap:s,disableAlpha:i=!1,customClassName:o="",placeholder:c,defaultValue:d="#000000"})=>{var u,h,p;const[m,f]=(0,R.useState)(!1),v=(null===(u=r.get(e))||void 0===u?void 0:u.inputValue)||t||d,g=/^rgba?\s*\(/i.test(v),[x,b]=(0,R.useState)(v),j=(null===(h=r.get(e))||void 0===h?void 0:h.isError)||!1,_=(null===(p=r.get(e))||void 0===p?void 0:p.errorMessage)||"",[w,M]=(0,R.useState)(()=>qr(v)),y=(0,R.useMemo)(()=>Gr(w),[w]),C=(0,R.useRef)(null),N=(0,R.useRef)(null),[k,V]=(0,R.useState)(!1),A=(0,R.useRef)(v),[S,P]=(0,R.useState)(g),[T,D]=(0,R.useState)(Rr(v)?v.toUpperCase():"#000000");(0,R.useEffect)(()=>{var t;const a=null===(t=r.get(e))||void 0===t?void 0:t.inputValue;if(null!=a&&a!==A.current){const e=Rr(a)?a.toUpperCase():a;b(e),M(qr(e)),D(Rr(e)?e:T),A.current=e,P(/^rgba?\s*\(/i.test(e))}},[r,e]),(0,R.useEffect)(()=>{if(null==t)return;const e=Rr(t)?t.toUpperCase():t;D(Rr(e)?e:T),b(e),M(qr(e))},[t]);const E=e=>{if(V(!0),/^rgba?\s*\(/i.test(e.trim())){P(!0),b(e),A.current=e;const t=Hr(e);if(t){const e=Zr(t);M(e),F(Gr(e))}return}P(!1);let t=e;t.startsWith("#")||(t=`#${t}`),""===t&&(t="#"),b(t),A.current=t;const a=t.trim();if(!/^#?[\da-f]*$/i.test(a))return;const l=a.replace(/^#/,""),r=l.length;if(0===r)return;if(7===r){const e=l.slice(0,6);if(!/^[\da-f]{6}$/i.test(e))return;const t=Br(`#${e}`);if(!t)return;const a={...Zr(t),a:1};return M(a),void F(Gr(a))}if(![3,4,6,8].includes(r))return;const n=Br(`#${l}`);if(!n)return;const s=Zr(n);let i;i=3===r||6===r?{...s,a:1}:{...s,a:s.a??1},M(i),F(Gr(i))},L=()=>{V(!1);const t=x.trim();if(!t){const t=1!==(y.rgb.a??1),a=S?y.rgbaString:t?y.hex8:y.hex;return b(a),A.current=a,void setTimeout(()=>{const t=new Map(r).set(e,{inputValue:a,isValid:!0,isError:!1,errorMessage:""});s(t)},0)}if(/^rgba?\s*\(/i.test(t)){if(Hr(t))return P(!0),A.current=x,void setTimeout(()=>{const t=new Map(r).set(e,{inputValue:x,isValid:!0,isError:!1,errorMessage:""});s(t)},0);{const t=y.rgbaString;return b(t),A.current=t,void setTimeout(()=>{const a=new Map(r).set(e,{inputValue:t,isValid:!0,isError:!1,errorMessage:""});s(a)},0)}}const a=t.startsWith("#")?t:`#${t}`,l=a.slice(1),n=l.length,i=[3,4,6,8].includes(n),o=/^[\da-f]+$/i.test(l);if(!i||!o||!Br(a)){const t=1!==(y.rgb.a??1)?y.hex8:y.hex;return b(t),A.current=t,void setTimeout(()=>{const a=new Map(r).set(e,{inputValue:t,isValid:!0,isError:!1,errorMessage:""});s(a)},0)}A.current=x,setTimeout(()=>{const t=new Map(r).set(e,{inputValue:x,isValid:!0,isError:!1,errorMessage:""});s(t)},0)};(0,R.useEffect)(()=>{if(!m)return;const e=e=>{C.current&&!C.current.contains(e.target)&&(L(),f(!1),Rr(T)&&(null==l||l(T)))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m,T,l]);const $=t??T;(0,R.useLayoutEffect)(()=>{const e=N.current;if(!e)return;const t=Rr(x)||S?x:"#000";e.style.setProperty("background",t)},[x,S]);const F=e=>{const t=!i&&1!==(e.rgb.a??1),a=S?e.rgbaString:t?e.hex8:e.hex;D(a)},H=(0,R.useMemo)(()=>`Color input, current value ${$}`,[$]);return(0,R.useEffect)(()=>{null!=x&&k&&M(e=>{const t=qr(x);if("string"==typeof x){const a=x.trim(),l=/^#([\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(a),r=/^rgba?\s*\(/i.test(a);if(!l&&!r&&0===t.h&&0===t.s&&1===t.v)return e}const a={...t,a:t.a??e.a??1};return 0===a.s&&(a.h=e.h),a})},[x,k]),(0,I.jsxs)("div",{ref:C,className:`colorPickerContainer__NCLiG ${o??""}`,children:[(0,I.jsxs)("div",{className:`container__4ZL8A textFieldContainer ${j&&n?"error__A8Z-Z textFieldError":""} ${o}`.trim(),children:[a&&(0,I.jsx)("label",{className:"floatinglabel__1QzWM textFieldFloatingLabel","data-shrink":"true",htmlFor:e,children:a}),(0,I.jsxs)("div",{className:"wrapper__9IbTa textFieldWrapper".trim(),onClick:()=>f(!0),children:[(0,I.jsx)("input",{"aria-invalid":j,id:e,name:e,type:"text",className:"input__dYLZp textFieldInput",value:x,onChange:e=>E(e.target.value),onKeyDown:e=>{if(S)return;const t=e.currentTarget;("Backspace"===e.key&&1===t.selectionStart&&1===t.selectionEnd||"Delete"===e.key&&0===t.selectionStart)&&e.preventDefault()},onFocus:e=>{if(V(!0),S)return;const t=e.currentTarget;
10===t.selectionStart&&t.setSelectionRange(1,1)},onBlur:L,placeholder:c,inputMode:"text",spellCheck:!1,"aria-label":H}),(0,I.jsx)("fieldset",{"aria-hidden":"true",className:"fieldset__24MAt textFieldFieldset".trim(),children:(0,I.jsx)("legend",{className:"legend__vCCiJ textFieldLegend",children:a&&(0,I.jsx)("span",{className:"legendSpan__tdfFc textFieldLegendSpan",children:a})})})]}),j&&_&&(0,I.jsx)("small",{className:"formHelperText__wfdf- textFieldFormHelperText",children:_})]}),(0,I.jsx)("div",{ref:N,className:"colorBox__0M9w6",onClick:()=>f(!0)}),m&&(0,I.jsx)("div",{className:"colorPickerPopup__T6ytL colorPickerPopupOverRide",role:"dialog","aria-label":"Color picker",children:(0,I.jsx)(Yr,{hsv:w,setHsv:M,result:y,hexInput:x,toggleOpen:()=>f(e=>!e),disableAlpha:i,onChangeEnd:t=>{const a=!i&&1!==(t.rgb.a??1),n=S?t.rgbaString:a?t.hex8:t.hex;D(n),b(n),A.current=n,setTimeout(()=>{const t=new Map(r).set(e,{inputValue:n,isValid:!0,isError:!1,errorMessage:""});s(t),null==l||l(n)},0)},handleHexBlur:L,onChange:F,handleHexInput:E,setIsEditingHex:V,isRgbaInput:S})})]})},Ur=new WeakMap,Kr=({sorting:e,page:t,defaultSort:a={sortColumn:"",sortOrder:"DESC"}})=>{const l=(0,R.useRef)({}),r=(0,R.useRef)(!0),n=(0,R.useRef)(t);r.current&&(Ur.set(l.current,new Set),r.current=!1);const s=Ur.get(l.current);n.current!==t&&(s.clear(),n.current=t);const i=`${e.sortColumn}-${e.sortOrder}`,o=e.sortColumn===a.sortColumn&&e.sortOrder===a.sortOrder,c=s.has(i);return{staleTime:o?0:c?1/0:0,markAsFetched:()=>{c||s.add(i)},isDefaultSort:o,hasBeenFetched:c}},Xr=()=>(0,I.jsx)(I.Fragment,{})}}]);

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.