PageSourceSearch

https://magicmarkets.com/_next/static/chunks/0utxqzoy1u0kq.js

js magicmarkets.com collected 2026-10-02 01:35:48 UTC 89,718 bytes, 19 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ec89-ba88-7a70-b244-6029fba975ca")}catch(e){}}();;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a3293b77-a3d5-8b7c-ab5b-017ce1005478")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,705023,685294,438882,558398,270741,241606,960553,223398,33605,e=>{"use strict";var t,a,s=e.i(16239);e.s(["SettingsIcon",()=>s.default],705023);var r=e.i(71670),l=((t={}).TRADING="trading",t.DISPLAY="display",t.ACCOUNT="account",t.NOTIFICATIONS="notifications",t.ADVANCED="advanced",t.REWARDS="rewards",t.API="api",t);let n=(0,r.allEnumValues)(l);e.s(["ALL_SETTINGS_CATEGORIES",0,n,"SettingsCategoryEnum",()=>l],685294);var i=e.i(843476),o=e.i(632781),u=e.i(9306),u=u,c=e.i(271645),d=e.i(301005),f=e.i(499980),m=e.i(641864),g=e.i(963234),p=e.i(225915),h=e.i(611116),x=e.i(519455),y=e.i(793479),v=e.i(110204),N=e.i(748528),b=e.i(735581),j=e.i(359530),E=e.i(959190),C=e.i(54289),T=e.i(959612),M=e.i(802009),A=e.i(975121);e.s(["AccountSettings",0,()=>{let e=(0,d.useIntl)(),t=(0,T.useJWT)(),{logout:a}=(0,T.useLogout)(),s=(0,C.useCanVerifyAccount)();(0,j.useFetchKycStatus)();let[r,l]=(0,c.useState)(""),[n,S]=(0,c.useState)(""),[w,I]=(0,c.useState)(),[_,k]=(0,c.useState)(),[L,O]=(0,c.useState)(),[R,D]=(0,c.useState)(!1),[P,F]=(0,c.useState)(!1),[B,U]=(0,c.useState)(!1),[H,G]=(0,c.useState)(!1),[z,V]=(0,c.useState)(),[Y,q]=(0,c.useState)(),[K,Q]=(0,c.useState)(),X=(0,c.useMemo)(()=>(0,E.addMagicAuthHeaders)(t,{}).config,[t]),Z=(0,c.useCallback)(()=>{D(!1),q(void 0),V(void 0),Q(void 0)},[]),J=(0,c.useCallback)(async()=>{if(t&&X){F(!0),O(void 0);try{let{data:t}=await m.MagicApi.getMultiFactorAuthStatus({},X);if(t.result===p.MultiFactorAuthResultEnum.EMAIL_OTP_REQUIRED){Z(),k(t.email_otp_ref),I(t.email),S("");return}if(t.result!==p.MultiFactorAuthResultEnum.OK){Z(),k(void 0),I(void 0),O((0,M.formatMagicApiLoginError)(t.result,{intl:e}));return}k(void 0),I(void 0),S("");let a=t.player,s=a?.status===p.MultiFactorAuthStatusEnum.ENABLED;D(s),q(s?void 0:a?.key_uri),V(s?void 0:a?.key_secret),Q(s?a?.["2fa_ref"]:void 0)}catch(t){A.Logger.error(t),O((0,M.formatMagicApiLoginError)("INTERNAL_ERROR",{intl:e}))}finally{F(!1)}}},[X,Z,e,t]);(0,c.useEffect)(()=>{J()},[J]);let W=(0,c.useCallback)(e=>{l(e.target.value.replace(/\D/g,"").slice(0,b.AUTHENTICATOR_CODE_LENGTH)),O(void 0)},[]),$=(0,c.useCallback)(e=>{S(e.target.value.replace(/\D/g,"").slice(0,b.EMAIL_OTP_CODE_LENGTH)),O(void 0)},[]),ee=(0,c.useCallback)(async()=>{if(_&&n.length===b.EMAIL_OTP_CODE_LENGTH&&!H){G(!0),O(void 0);try{let t=await m.MagicApi.verifyOTP({email_otp_ref:_,otp:n});if(t.data.result===g.AuthResultEnum.OK){S(""),await J();return}O((0,M.formatMagicApiLoginError)(t.data.result||"INTERNAL_ERROR",{intl:e}))}catch(t){A.Logger.error(t),O((0,M.formatMagicApiLoginError)("INTERNAL_ERROR",{intl:e}))}finally{G(!1)}}},[n,_,e,H,J]),et=(0,c.useCallback)(async()=>{if(t&&X&&r.length===b.AUTHENTICATOR_CODE_LENGTH){U(!0),O(void 0);try{let t=await m.MagicApi.enableMultiFactorAuth({"2fa_code":r},X);if("OK"===t.data.result){l(""),await a();return}O((0,M.formatMagicApiLoginError)(t.data.result||"INTERNAL_ERROR",{intl:e}))}catch(t){A.Logger.error(t),O((0,M.formatMagicApiLoginError)("INTERNAL_ERROR",{intl:e}))}finally{U(!1)}}},[X,r,e,t,a]),ea=(0,c.useCallback)(async()=>{if(t&&X&&K&&r.length===b.AUTHENTICATOR_CODE_LENGTH){U(!0),O(void 0);try{let t=await m.MagicApi.disableMultiFactorAuth({"2fa_code":r,"2fa_ref":K},X);if("OK"===t.data.result){l(""),await a();return}O((0,M.formatMagicApiLoginError)(t.data.result||"INTERNAL_ERROR",{intl:e}))}catch(t){A.Logger.error(t),O((0,M.formatMagicApiLoginError)("INTERNAL_ERROR",{intl:e}))}finally{U(!1)}}},[X,r,e,t,a,K]),es=(0,c.useCallback)(()=>{l(""),O(void 0),J()},[J]),er=(0,c.useMemo)(()=>r.length===b.AUTHENTICATOR_CODE_LENGTH&&!B,[r.length,B]),el=(0,c.useMemo)(()=>!!(Y||z),[z,Y]),en=(0,c.useMemo)(()=>er&&!!K,[er,K]),ei=(0,c.useMemo)(()=>!!_&&n.length===b.EMAIL_OTP_CODE_LENGTH&&!H,[n.length,_,H]),eo=(0,c.useMemo)(()=>!!_,[_]),eu=(0,c.useMemo)(()=>!eo&&!R&&el,[el,R,eo]);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[s&&(0,i.jsxs)("div",{className:"flex w-full flex-col items-start gap-3",children:[(0,i.jsx)("h2",{className:"text-base font-semibold first-letter:capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"9xyevc70Mw1MHnKd",defaultMessage:[{type:0,value:"identity verification"}]})}),(0,i.jsx)("p",{className:"text-muted-foreground text-sm font-light first-letter:capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"SnCR01O7x9G3aC0E",defaultMessage:[{type:0,value:"verify your identity to remove the limit on how much you can deposit."}]})}),(0,i.jsx)(N.VerifyAccountButton,{})]}),eo&&(0,i.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-3",children:[(0,i.jsx)("h2",{className:"text-base font-semibold",children:(0,i.jsx)(d.FormattedMessage,{id:"JIPGnSU8Kb/pEr1x",defaultMessage:[{type:0,value:"Two factor authentication"}]})}),P&&(0,i.jsx)(o.Loader2,{className:"text-muted-foreground size-4 animate-spin"})]}),(0,i.jsx)("p",{className:"text-muted-foreground text-sm font-light",children:(0,i.jsx)(d.FormattedMessage,{id:"Db17AQYT/uhqs8Rq",defaultMessage:[{type:0,value:"Confirm your email with a one-time code before managing authenticator settings."}]})}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-3 sm:max-w-xs",children:[(0,i.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,i.jsx)(d.FormattedMessage,{id:"ISyxkL32h8D/LueE",defaultMessage:[{type:0,value:"Enter the code sent to "},{type:1,value:"email"},{type:0,value:"."}],values:{email:w||"—"}})}),(0,i.jsx)(v.Label,{htmlFor:"settings-mfa-email-otp",className:"text-sm capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"EBspN0Bg+2z5REJx",defaultMessage:[{type:0,value:"Email code"}]})}),(0,i.jsx)(y.Input,{id:"settings-mfa-email-otp",inputMode:"numeric",autoComplete:"one-time-code",maxLength:b.EMAIL_OTP_CODE_LENGTH,value:n,onChange:$,placeholder:e.formatMessage({id:"btqLYl5sXmsEjvaV",defaultMessage:[{type:0,value:"6-digit code"}]})}),(0,i.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,i.jsx)(x.Button,{type:"button",disabled:!ei,onClick:()=>{ee()},children:H?(0,i.jsx)(o.Loader2,{className:"size-4 animate-spin"}):(0,i.jsx)(d.FormattedMessage,{id:"Zko3keavP9EwUJXe",defaultMessage:[{type:0,value:"Verify email"}]})}),(0,i.jsx)(x.Button,{type:"button",variant:"secondary",disabled:P||H,onClick:()=>{J()},children:(0,i.jsx)(d.FormattedMessage,{id:"ctUvB8wSC19eN3ID",defaultMessage:[{type:0,value:"Resend code"}]})})]})]})]}),eu&&(0,i.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,i.jsxs)("div",{className:"flex w-full items-start justify-between gap-3",children:[(0,i.jsx)("h2",{className:"text-base font-semibold",children:(0,i.jsx)(d.FormattedMessage,{id:"aUYgqFL5VrfnwFRd",defaultMessage:[{type:0,value:"Two factor authentication"}]})}),P&&(0,i.jsx)(o.Loader2,{className:"text-muted-foreground size-4 animate-spin"})]}),(0,i.jsx)("p",{className:"text-muted-foreground text-sm font-light",children:(0,i.jsx)(d.FormattedMessage,{id:"cXGCKJbj+kFMSJHz",defaultMessage:[{type:0,value:"Scan this QR code with an authenticator app to add your account. If you don't have an authenticator app, we recommend using Google Authenticator or Microsoft Authenticator."}]})}),(0,i.jsxs)("div",{className:"relative flex w-full justify-center py-2",children:[(0,i.jsx)(x.Button,{type:"button",variant:"secondary",size:"icon",className:"absolute top-0 right-0 size-8",disabled:P,onClick:es,"aria-label":e.formatMessage({id:"vFWsONCaTfcr2KCU",defaultMessage:[{type:0,value:"Refresh setup code"}]}),children:(0,i.jsx)(u.default,{className:"size-4"})}),Y?(0,i.jsx)("div",{className:"rounded-md bg-white p-3",children:(0,i.jsx)(f.default,{value:Y,size:180})}):null]}),z&&(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("p",{className:"text-muted-foreground text-sm font-light",children:(0,i.jsx)(d.FormattedMessage,{id:"Pe0DI0N7xQ3MzgfN",defaultMessage:[{type:0,value:"Alternatively you can enter the following code manually into your authenticator app."}]})}),(0,i.jsx)(h.CopyToClipboard,{"aria-label":"Copy authenticator setup key from account settings",textToCopy:z,className:"w-fit max-w-full",children:(0,i.jsx)("button",{"aria-label":"Copy authenticator setup key from account settings",type:"button",className:"cursor-pointer text-left font-mono text-sm font-semibold tracking-wide break-all",children:z})})]}),(0,i.jsxs)("p",{className:"text-muted-foreground text-sm font-light",children:[(0,i.jsx)(d.FormattedMessage,{id:"rRiSqJvJUvwkM1cW",defaultMessage:[{type:0,value:"Once this is complete, submit the authentication code shown in your authenticator app to complete the setup."}]}),(0,i.jsx)("span",{className:"block font-bold",children:(0,i.jsx)(d.FormattedMessage,{id:"axqDHgrRSdFzDz+g",defaultMessage:[{type:0,value:"You will be logged out after enabling two factor authentication."}]})})]}),(0,i.jsxs)("form",{className:"flex w-full flex-col gap-2 sm:flex-row sm:items-center",onSubmit:e=>{e.preventDefault(),et()},children:[(0,i.jsx)(y.Input,{id:"settings-authenticator-code",className:"sm:flex-1",inputMode:"numeric",autoComplete:"one-time-code",maxLength:b.AUTHENTICATOR_CODE_LENGTH,value:r,onChange:W,placeholder:e.formatMessage({id:"POcYVdAiK2uUqa2o",defaultMessage:[{type:0,value:"Your Authentication Code"}]})}),(0,i.jsx)(x.Button,{"aria-label":"Submit authenticator code to enable two-factor authentication",type:"submit",disabled:!er,className:"sm:min-w-24",children:B?(0,i.jsx)(o.Loader2,{className:"size-4 animate-spin"}):(0,i.jsx)(d.FormattedMessage,{id:"l9/HSezo8sJvX7ug",defaultMessage:[{type:0,value:"Submit"}]})})]})]}),!eo&&!R&&!P&&!el&&(0,i.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,i.jsx)(d.FormattedMessage,{id:"f2qk+QgwxFJAeYhM",defaultMessage:[{type:0,value:"Authenticator setup details are not available yet. Try again in a moment."}]})}),!eo&&R&&(0,i.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-3",children:[(0,i.jsx)("h2",{className:"text-base font-semibold",children:(0,i.jsx)(d.FormattedMessage,{id:"bWrbucNJdXYR2mFf",defaultMessage:[{type:0,value:"Two factor authentication"}]})}),P&&(0,i.jsx)(o.Loader2,{className:"text-muted-foreground size-4 animate-spin"})]}),(0,i.jsxs)("p",{className:"text-muted-foreground text-sm font-light",children:[(0,i.jsx)(d.FormattedMessage,{id:"tHVJYIBXbAGqv7VV",defaultMessage:[{type:0,value:"Disable Two Factor Authentication and remove the requirement to use an authenticator app to log in to your account."}]}),(0,i.jsx)("span",{className:"block font-bold",children:(0,i.jsx)(d.FormattedMessage,{id:"Lm8eoRcCmAxnn9gP",defaultMessage:[{type:0,value:"You will be logged out after disabling two factor authentication."}]})})]}),(0,i.jsxs)("form",{className:"flex w-full flex-col gap-2 sm:flex-row sm:items-center",onSubmit:e=>{e.preventDefault(),ea()},children:[(0,i.jsx)(y.Input,{id:"settings-authenticator-disable-code",className:"sm:flex-1",inputMode:"numeric",autoComplete:"one-time-code",maxLength:b.AUTHENTICATOR_CODE_LENGTH,value:r,onChange:W,placeholder:e.formatMessage({id:"X5HrzxlNxUbmqkW+",defaultMessage:[{type:0,value:"Enter The Code From Your Authenticator App"}]})}),(0,i.jsx)(x.Button,{"aria-label":"Disable two-factor authentication in account settings",type:"submit",variant:"destructive",disabled:!en,className:"sm:min-w-24",children:B?(0,i.jsx)(o.Loader2,{className:"size-4 animate-spin"}):(0,i.jsx)(d.FormattedMessage,{id:"3cNuHbLrtQ8FaIPC",defaultMessage:[{type:0,value:"Disable"}]})})]})]}),L&&(0,i.jsx)("p",{className:"text-destructive text-sm",children:L})]})}],438882),e.i(952596);var S=e.i(730345),w=e.i(451067);let I=({preference:e})=>{var t;let a;return t={intl:(0,d.useIntl)()},a=(0,w.defaultedIntl)(t?.intl),e===S.PreferencesEnum.BETSLIP_DEFAULT_DURATION?a.formatMessage({id:"aW6lR1KrNELyuyu5",defaultMessage:[{type:0,value:"default order expiry"}]}):e===S.PreferencesEnum.BETSLIP_DEFAULT_STAKE?a.formatMessage({id:"CVRF1fvwOY0pC7PX",defaultMessage:[{type:0,value:"default order amount"}]}):e===S.PreferencesEnum.BETSLIP_IN_RUNNING_DEFAULT_STAKE?a.formatMessage({id:"akEaD1puq14vpofk",defaultMessage:[{type:0,value:"live event default stake"}]}):e===S.PreferencesEnum.BETSLIP_MAX_STAKE?a.formatMessage({id:"ddCAkElfN+BCruXa",defaultMessage:[{type:0,value:"order limit"}]}):e===S.PreferencesEnum.BETSLIP_IN_RUNNING_MAX_STAKE?a.formatMessage({id:"Z0LicT7UjrCrnR2G",defaultMessage:[{type:0,value:"live event order limit"}]}):e===S.PreferencesEnum.BETSLIP_PLACEMENT_CONFIRMATION?a.formatMessage({id:"/CI0tXL7mFgNgrU5",defaultMessage:[{type:0,value:"confirm orders before placing"}]}):e===S.PreferencesEnum.GLOBAL_LANGUAGE?a.formatMessage({id:"/Ew/bu3ccZAno3+i",defaultMessage:[{type:0,value:"language"}]}):e===S.PreferencesEnum.GLOBAL_PRO?a.formatMessage({id:"woWzg9jk72chKb3R",defaultMessage:[{type:0,value:"pro"}]}):e===S.PreferencesEnum.GLOBAL_PRICE_FORMAT?a.formatMessage({id:"XtdiHRTRW1KjTakQ",defaultMessage:[{type:0,value:"price format"}]}):e===S.PreferencesEnum.GLOBAL_TIMEZONE?a.formatMessage({id:"0MOxnTr/4N2z6JY5",defaultMessage:[{type:0,value:"timezone"}]}):e===S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_RED_CARD?a.formatMessage({id:"Xp5Q6p1dU9qbUr68",defaultMessage:[{type:0,value:"player gets red card"}]}):e===S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_SCORE?a.formatMessage({id:"X4sjiMfX4k8uHgXS",defaultMessage:[{type:0,value:"team / player scores"}]}):e===S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_STAGE?a.formatMessage({id:"j2FA4jMF
2BftmIF5s",defaultMessage:[{type:0,value:"event starts"}]}):e===S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_DONE?a.formatMessage({id:"45a1RKqlbvcFjVer",defaultMessage:[{type:0,value:"done"}]}):e===S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_SETTLED?a.formatMessage({id:"ZPX7VhttPwMgRB8m",defaultMessage:[{type:0,value:"settled"}]}):e===S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_FAILED?a.formatMessage({id:"pE+12SNqArKqgnOg",defaultMessage:[{type:0,value:"failed"}]}):void 0};e.s(["FormattedPreference",0,I],558398);var _=e.i(699375),k=e.i(638843);let L=()=>{let{betslipPlacementConfirmation:e,setBetslipPlacementConfirmation:t}=(0,k.useBetslipPlacementConfirmation)();return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-3",children:[(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.BETSLIP_PLACEMENT_CONFIRMATION})})}),(0,i.jsx)(_.Switch,{id:"bet-placement-confirmation",checked:!!e,onCheckedChange:t})]}),(0,i.jsx)("p",{className:"text-muted-foreground text-sm font-light",children:(0,i.jsx)(d.FormattedMessage,{id:"WJdOeoM6AM2Jd81F",defaultMessage:[{type:0,value:"When this setting is enabled you will be required to confirm orders placed via a dialog."}]})})]})};var O=e.i(967489);e.i(991694);var R=e.i(256548);let D=()=>{let{betslipDefaultDuration:e,setBetslipDefaultDuration:t}=(0,k.useBetslipDefaultDuration)(),{betslipDefaultKeepOpenIr:a,setBetslipDefaultKeepOpenIr:s}=(0,k.useBetslipDefaultKeepOpenIr)(),r=(0,R.useBetslipTimeoutOptions)(),l=(0,c.useMemo)(()=>r.find(t=>t.value.duration===e&&t.value.keepOpenIr===a),[e,a,r]),n=(0,c.useCallback)(e=>{let a=r.find(t=>t.label===e);a&&(t(a.value.duration),s(a.value.keepOpenIr))},[r,t,s]);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.BETSLIP_DEFAULT_DURATION})}),(0,i.jsxs)(O.Select,{name:"default-order-expiry",value:l?.label,onValueChange:n,children:[(0,i.jsx)(O.SelectTrigger,{"aria-label":"Choose default order expiry in Settings modal",className:"w-full",children:(0,i.jsx)(O.SelectValue,{})}),(0,i.jsx)(O.SelectContent,{children:r.map(e=>(0,i.jsx)(O.SelectItem,{value:e.label,children:e.label},e.label))})]})]})};var P=e.i(479783);let F=()=>{let e=(0,C.useCurrentCustomer)(),t=(0,d.useIntl)(),{inRunningDefaultStake:a,setInRunningDefaultStake:s}=(0,k.useBetslipInRunningDefaultStake)(),r=(0,c.useMemo)(()=>e?.ccy_code,[e?.ccy_code]),l=(0,c.useCallback)(e=>s(null!=e.value&&r?[r,e.value]:void 0),[r,s]);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.BETSLIP_IN_RUNNING_DEFAULT_STAKE})}),(0,i.jsx)(P.CurrencyInput,{currency:e?.ccy_code,value:a?.[1],onChange:l,maxLength:9,placeholder:t.formatMessage({id:"FbKNoPy4ylatyTzy",defaultMessage:[{type:0,value:"none"}]}),wrapperClassName:"w-full",inputContainerClassName:"w-full"})]})},B=()=>{let e=(0,C.useCurrentCustomer)(),t=(0,d.useIntl)(),{defaultStake:a,setDefaultStake:s}=(0,k.useBetslipDefaultStake)(),r=(0,c.useMemo)(()=>e?.ccy_code,[e?.ccy_code]),l=(0,c.useCallback)(e=>s(null!=e.value&&r?[r,e.value]:void 0),[r,s]);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.BETSLIP_DEFAULT_STAKE})}),(0,i.jsx)(P.CurrencyInput,{currency:e?.ccy_code,value:a?.[1],onChange:l,maxLength:9,placeholder:t.formatMessage({id:"gSY0CZS/tnnnupBs",defaultMessage:[{type:0,value:"none"}]}),wrapperClassName:"w-full",inputContainerClassName:"w-full"})]})};var U=e.i(728148);let H=()=>{let e=(0,C.useCurrentCustomer)(),t=(0,d.useIntl)(),{inRunningMaxStake:a,setInRunningMaxStake:s}=(0,k.useBetslipInRunningMaxStake)(),r=(0,c.useMemo)(()=>e?.ccy_code,[e?.ccy_code]),l=(0,c.useCallback)(e=>s(null!=e.value&&r?[r,e.value]:void 0),[r,s]);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.BETSLIP_IN_RUNNING_MAX_STAKE})}),(0,i.jsx)(P.CurrencyInput,{currency:e?.ccy_code,value:a?.[1],onChange:l,max:U.MAX_STAKE,placeholder:t.formatMessage({id:"e1PRkUY8QuHHQEry",defaultMessage:[{type:0,value:"unlimited"}]}),wrapperClassName:"w-full",inputContainerClassName:"w-full"})]})},G=()=>{let e=(0,C.useCurrentCustomer)(),t=(0,d.useIntl)(),a=(0,c.useMemo)(()=>e?.ccy_code,[e?.ccy_code]),{betslipMaxStake:s,setBetslipMaxStake:r}=(0,k.useBetslipMaxStake)(),l=(0,c.useCallback)(e=>r(null!=e.value&&a?[a,e.value]:void 0),[a,r]);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.BETSLIP_MAX_STAKE})}),(0,i.jsx)(P.CurrencyInput,{currency:a,value:s?.[1],onChange:l,max:U.MAX_STAKE,placeholder:t.formatMessage({id:"e1PRkUY8QuHHQEry",defaultMessage:[{type:0,value:"unlimited"}]}),wrapperClassName:"w-full",inputContainerClassName:"w-full"})]})};var z=e.i(532181),V=e.i(975157);let Y=({isSelected:e,onSelect:t,children:a,className:s})=>{let[r,l]=(0,c.useState)([]),[n,o]=(0,c.useState)(!1),u=(0,c.useRef)(0),d=(0,c.useCallback)(e=>{let a=e.currentTarget.getBoundingClientRect(),s=e.clientX-a.left,r=e.clientY-a.top,n=u.current++;l(e=>[...e,{id:n,x:s,y:r}]),setTimeout(()=>l(e=>e.filter(e=>e.id!==n)),600),t()},[t]);return(0,i.jsxs)(z.motion.button,{"data-selected":e||void 0,onClick:d,onHoverStart:()=>o(!0),onHoverEnd:()=>o(!1),animate:{scale:e?1.03:1},whileTap:{scale:.97},transition:{type:"spring",stiffness:400,damping:25},className:(0,V.cn)("group relative flex flex-col items-center justify-center overflow-hidden border p-4","cursor-pointer transition-[border-color,box-shadow] duration-200 select-none",e?"border-primary ring-primary/20 rounded-[1.25rem] ring-2":"hover:border-primary/40 border-border rounded-[1rem]",s),children:[(0,i.jsx)("span",{className:(0,V.cn)("bg-secondary pointer-events-none absolute inset-0 transition-opacity duration-200","opacity-0 group-hover:opacity-20","group-data-selected:opacity-70")}),r.map(e=>(0,i.jsx)(z.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:4,opacity:0}
2,transition:{duration:.6,ease:"easeOut"},className:"bg-primary/20 pointer-events-none absolute size-12 rounded-full",style:{left:e.x-24,top:e.y-24}},e.id)),(0,i.jsx)("div",{className:(0,V.cn)("relative z-1 flex w-full flex-col items-center transition-opacity duration-200",e?"opacity-100":"opacity-50 group-hover:opacity-75"),children:"function"==typeof a?a({isHovered:n}):a})]})};e.s(["OptionCard",0,Y],270741);var q=e.i(280996);let K=()=>{let{allowDangerBookies:e,setAllowDangerBookies:t}=(0,k.useBetslipAllowDangerBookies)(),a=(0,q.useCloseAllBetslips)();return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"TGSpE4zR8xPyXsit",defaultMessage:[{type:0,value:"live order preference"}]})}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,i.jsx)(Y,{isSelected:!!e,onSelect:()=>{t(!0),a()},className:"gap-3 p-4",children:(0,i.jsxs)("div",{className:"space-y-1 text-center",children:[(0,i.jsx)("span",{className:"text-foreground text-sm font-semibold capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"YN3iNyXVvCwxpKnP",defaultMessage:[{type:0,value:"better prices"}]})}),(0,i.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed text-balance",children:(0,i.jsx)(d.FormattedMessage,{id:"ffrrnc21Ht0eiQCG",defaultMessage:[{type:0,value:"Check more providers for the best deal."}]})})]})}),(0,i.jsx)(Y,{isSelected:!e,onSelect:()=>{t(!1),a()},className:"gap-3 p-4",children:(0,i.jsxs)("div",{className:"space-y-1 text-center",children:[(0,i.jsx)("span",{className:"text-foreground text-sm font-semibold capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"li2rowCJSGmfp8TA",defaultMessage:[{type:0,value:"quicker orders"}]})}),(0,i.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed text-balance",children:(0,i.jsx)(d.FormattedMessage,{id:"VWKi+EiiRtpxpM1R",defaultMessage:[{type:0,value:"Prefer providers with quick order acceptance."}]})})]})})]})]})};e.s(["AdvancedSettings",0,()=>(0,i.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,i.jsx)("h2",{className:"hidden text-base font-semibold capitalize md:block",children:(0,i.jsx)(d.FormattedMessage,{id:"zhyrSqjZVQadFI6u",defaultMessage:[{type:0,value:"Advanced"}]})}),(0,i.jsxs)("div",{className:"grid w-full grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,i.jsx)(B,{}),(0,i.jsx)(F,{})]}),(0,i.jsxs)("div",{className:"grid w-full grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,i.jsx)(G,{}),(0,i.jsx)(H,{})]}),(0,i.jsx)(D,{}),(0,i.jsx)(L,{}),(0,i.jsx)(K,{})]})],241606);var Q=e.i(508734),X=e.i(482022),Z=e.i(204289),J=e.i(912775),W=e.i(137074),$=e.i(199032),ee=e.i(257428),et=e.i(772436),ea=e.i(784774),es=e.i(677572),er=e.i(746798),el=e.i(799828),en=e.i(101460),ei=e.i(512969),eo=e.i(727200);let eu=e=>{let{executeQuery:t,isQueryPending:a,isQueryFulfilled:s,isQueryRejected:r,currentAction:l}=(0,eo.useSirenApiQuery)(ei.getTokensThunk,{},e);return{getTokens:t,isGetTokensPending:a,isGetTokensFulfilled:s,isGetTokensRejected:r,getTokensAction:l}};var ec=e.i(968895),ed=e.i(101231),ef=e.i(301721),em=e.i(689664),eg=e.i(926441),ep=e.i(569119),eh=e.i(445483),ex=e.i(925740),ey=e.i(872628),ev=e.i(848276);let eN=({tokenId:e})=>{var t;let a=(t={tokenId:e},(0,ec.useKeyDependentSelector)(e=>t?.tokenId?e.tokens.tokens[t.tokenId]:void 0,void 0)),{updateToken:s}=(()=>{let e=(0,c.useMemo)(()=>void 0,[void 0]),t=(0,c.useMemo)(()=>({...void 0,shouldQuery:!1}),[void 0]),{executeQuery:a,isQueryPending:s,isQueryFulfilled:r,isQueryRejected:l,currentAction:n}=(0,eo.useSirenApiQuery)(ei.updateTokenThunk,e,t);return{updateToken:a,isUpdateTokenPending:s,isUpdateTokenFulfilled:r,isUpdateTokenRejected:l,updateTokenAction:n}})(),{deleteToken:r}=(()=>{let e=(0,c.useMemo)(()=>void 0,[void 0]),t=(0,c.useMemo)(()=>({...void 0,shouldQuery:!1}),[void 0]),{executeQuery:a,isQueryPending:s,isQueryFulfilled:r,isQueryRejected:l,currentAction:n}=(0,eo.useSirenApiQuery)(ei.deleteTokenThunk,e,t);return{deleteToken:a,isDeleteTokenPending:s,isDeleteTokenFulfilled:r,isDeleteTokenRejected:l,deleteTokenAction:n}})(),{getTokens:l}
2=eu(),[n,o]=(0,c.useState)(new Date-new Date(a?.created_at??0)<2*ex.SECOND_IN_MS),[u,f]=(0,c.useState)(a?.name??""),[m,g]=(0,c.useState)(a?.expires_at?(0,ey.getISODate)(a.expires_at):""),p=(0,c.useCallback)(async()=>{await s({tokenId:e,name:u,expires_at:m}),await l()},[s,l,e,u,m]),v=(0,c.useCallback)(async()=>{await r({tokenId:e}),await l()},[r,l,e]),N=(0,c.useMemo)(()=>a?.token===eh.OBSCURED_TOKEN,[a?.token]),b=(0,c.useMemo)(()=>+new Date>+new Date(a?.expires_at??0),[a?.expires_at]),j=(0,c.useMemo)(()=>!a?.cleared&&!b,[a?.cleared,b]);return a?(0,i.jsxs)(c.default.Fragment,{children:[(0,i.jsxs)(ea.TableRow,{className:(0,V.cn)(!N&&"border-b-0"),children:[(0,i.jsx)(ea.TableCell,{className:(0,V.cn)("",!j&&"text-muted-foreground"),children:n?(0,i.jsx)(y.Input,{value:u,onChange:e=>f(e.currentTarget.value)}):a.name}),(0,i.jsx)(ea.TableCell,{children:(0,i.jsx)("div",{className:(0,V.cn)("w-32",!j&&"text-muted-foreground"),children:(0,ev.formatDateToString)(a.created_at)})}),(0,i.jsx)(ea.TableCell,{children:(0,i.jsx)("div",{className:(0,V.cn)("w-32",!j&&"text-muted-foreground"),children:n?(0,i.jsx)(y.Input,{type:"date",value:m,onChange:e=>g(e.currentTarget.value),className:"w-full"}):(0,ev.formatDateToString)(a.expires_at)})}),(0,i.jsx)(ea.TableCell,{children:(0,i.jsx)("div",{className:(0,V.cn)("w-16 rounded-md bg-emerald-600 px-2 py-1 text-center text-xs text-white",!j&&"bg-muted-foreground"),children:a.cleared?(0,i.jsx)(d.FormattedMessage,{id:"2Qaj2tfdXipBZtkb",defaultMessage:[{type:0,value:"Disabled"}]}):b?(0,i.jsx)(d.FormattedMessage,{id:"dXkG5i+GIZfHBCkO",defaultMessage:[{type:0,value:"Expired"}]}):(0,i.jsx)(d.FormattedMessage,{id:"xUzM9fbtzKY6MecO",defaultMessage:[{type:0,value:"Active"}]})})}),(0,i.jsx)(ea.TableCell,{children:(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[n?(0,i.jsx)(x.Button,{"aria-label":"Save API key changes in Settings modal",className:"bg-emerald-600 hover:bg-emerald-700",disabled:a.cleared,onClick:()=>{p(),o(!1)},children:(0,i.jsx)(em.Check,{className:"h-4 w-4"})}):(0,i.jsx)(x.Button,{"aria-label":"Edit API key in Settings modal",variant:"ghost",disabled:a.cleared,onClick:()=>o(!0),children:(0,i.jsx)(eg.Edit,{className:"h-4 w-4"})}),(0,i.jsx)(x.Button,{"aria-label":"Delete API key in Settings modal",variant:"ghost",onClick:v,disabled:a.cleared,children:(0,i.jsx)(ep.Trash,{className:"h-4 w-4"})})]})})]}),!N&&j&&(0,i.jsx)(ea.TableRow,{children:(0,i.jsxs)(ea.TableCell,{colSpan:99,children:[(0,i.jsx)("div",{className:"mb-2 text-xs text-red-600",children:(0,i.jsx)(d.FormattedMessage,{id:"Yiy9sPyqawWdjGsP",defaultMessage:[{type:0,value:"Copy this now as it will not be accessible after this page is refreshed."}]})}),(0,i.jsxs)("pre",{className:(0,V.cn)(el.SENSITIVE_FIELD_CLASS,"bg-muted relative rounded-md border p-2 py-4 text-xs"),children:[a.token,(0,i.jsx)(h.CopyToClipboard,{"aria-label":"Copy API key from Settings modal",textToCopy:a.token,className:"absolute top-1/2 right-2 -translate-y-1/2",children:(0,i.jsx)(x.Button,{"aria-label":"Copy API key from Settings modal",variant:"secondary",size:"sm",children:(0,i.jsx)(Q.Copy,{})})})]})]})})]},a.tokenId):null};var eb=((a={}).CURL="curl",a.JAVASCRIPT="javascript",a.PYTHON="python",a);let ej=`fetch(
3  '$baseUrl/v2/orders/', 
4  { 
5    headers: { 
6      'X-Api-Key': '$apiKey',
7    }
8  }
9)`,eE=`requests.get(
10  '$baseUrl/v2/orders/',
11  headers={ 
12    'X-Api-Key': '$apiKey',
13  }
14)`,eC=`curl -X GET "$baseUrl/v2/orders/" \\
15  -H "X-Api-Key: $apiKey"
16`,eT={[eb.CURL]:eC,[eb.JAVASCRIPT]:ej,[eb.PYTHON]:eE};e.s(["ApiSettings",0,()=>{let e=(0,d.useIntl)(),[t,a]=(0,c.useState)(eb.CURL),[s,r]=(0,c.useState)(""),l=(0,c.useMemo)(()=>{let e=J.axios.defaults.baseURL===W.SirenApiHostToUrlMap[$.ApiHostsEnum.RELATIVE]?window.location.origin:J.axios.defaults.baseURL||"",a=eT[t].replace("$baseUrl",e);return s&&(a=a.replace("$apiKey",s??"")),a},[s,t]),{getTokens:n,isGetTokensFulfilled:o}=eu(),{createToken:u}=(()=>{let e=(0,c.useMemo)(()=>void 0,[void 0]),t=(0,c.useMemo)(()=>({...void 0,shouldQuery:!1}),[void 0]),{executeQuery:a,isQueryPending:s,isQueryFulfilled:r,isQueryRejected:l,currentAction:n}
16=(0,eo.useSirenApiQuery)(ei.createTokenThunk,e,t);return{createToken:a,isCreateTokenPending:s,isCreateTokenFulfilled:r,isCreateTokenRejected:l,createTokenAction:n}})(),f=(0,ec.useKeyDependentSelector)(e=>e.tokens.tokens,void 0),[m,g]=(0,c.useState)(!1),p=(0,C.useCurrentCustomer)(),v=(0,C.useCustomerAccountingInfo)({customerId:p?.customer_id}),N=(0,c.useMemo)(()=>(v?.smart_credit?.value||0)+(v?.current_balance?.value||0)+(v?.credit_limit?.value||0)-(v?.open_stakes?.value||0),[v?.smart_credit?.value,v?.current_balance?.value,v?.credit_limit?.value,v?.open_stakes?.value]),b=(0,c.useCallback)(()=>{u({name:"New API Key"})},[u]),j=(0,c.useMemo)(()=>Object.values(f).filter(e=>!e.cleared).length,[f]);return(0,c.useEffect)(()=>{n()},[]),(0,i.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,i.jsx)("h2",{className:"flex w-full items-center justify-between gap-2 overflow-hidden font-bold capitalize",children:(0,i.jsx)("span",{className:"w-full",children:(0,i.jsx)(d.FormattedMessage,{id:"q25F9YY1H7hTvcaN",defaultMessage:[{type:0,value:"API settings"}]})})}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4 overflow-hidden",children:[(0,i.jsx)("div",{className:"flex items-center justify-between",children:(0,i.jsxs)("div",{className:"mr-4 flex w-full items-center gap-3",children:[null!=N&&N<10&&(0,i.jsx)("div",{className:"text-muted-foreground text-sm font-normal",children:(0,i.jsx)(d.FormattedMessage,{id:"VgQjvOIVnb/dwKvv",defaultMessage:[{type:0,value:"You need to have a balance of at least "},{type:1,value:"minBalance"},{type:0,value:" to create an api key."}],values:{minBalance:(0,ed.formatCurrencyToString)(10,p?.ccy_code,{minimumFractionDigits:0,maximumFractionDigits:0})}})}),(0,i.jsxs)(er.Tooltip,{open:j>=16&&void 0,children:[(0,i.jsx)(er.TooltipTrigger,{asChild:!0,children:(0,i.jsxs)(x.Button,{disabled:!o||j>=16||!N||N<10,onClick:b,className:"ml-auto",children:[(0,i.jsx)("span",{className:"first-letter:capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"dZkL5JwXDd/lrRzb",defaultMessage:[{type:0,value:"add API key"}]})}),(0,i.jsx)(Z.PlusIcon,{className:"h-4 w-4"})]})}),(0,i.jsx)(er.TooltipContent,{children:(0,i.jsx)(d.FormattedMessage,{id:"1+kIqhIgnrek5hd6",defaultMessage:[{type:0,value:"Maximum number of active API keys reached."}]})})]})]})}),(0,i.jsxs)(ea.Table,{children:[(0,i.jsx)(ea.TableHeader,{children:(0,i.jsxs)(ea.TableRow,{children:[(0,i.jsx)(ea.TableHead,{className:"w-full",children:(0,i.jsx)(d.FormattedMessage,{id:"JzCsmW++9jC/lVxQ",defaultMessage:[{type:0,value:"Name"}]})}),(0,i.jsx)(ea.TableHead,{children:(0,i.jsx)(d.FormattedMessage,{id:"P9UX/3eGw+KodLaB",defaultMessage:[{type:0,value:"Created"}]})}),(0,i.jsx)(ea.TableHead,{children:(0,i.jsx)(d.FormattedMessage,{id:"/We7FfZl06CdsvXd",defaultMessage:[{type:0,value:"Expires"}]})}),(0,i.jsx)(ea.TableHead,{children:(0,i.jsx)(d.FormattedMessage,{id:"XGYfOV4maR6f1qUx",defaultMessage:[{type:0,value:"Status"}]})}),(0,i.jsx)(ea.TableHead,{})]})}),(0,i.jsx)(ea.TableBody,{children:Object.values(f).sort((e,t)=>e.created_at>t.created_at?-1:1).map(e=>(!m||!e.cleared)&&(0,i.jsx)(eN,{tokenId:e.tokenId},e.tokenId))})]}),(0,i.jsxs)("div",{className:"ml-2 flex items-center gap-2 text-sm font-normal",children:[(0,i.jsx)(ee.Checkbox,{checked:m,onCheckedChange:e=>g(!0===e)}),(0,i.jsx)(d.FormattedMessage,{id:"/yyaPjY8/0CGH25b",defaultMessage:[{type:0,value:"Hide inactive api keys"}]})]})]}),(0,i.jsx)(et.Separator,{orientation:"horizontal"}),(0,i.jsx)("h2",{className:"flex w-full items-center justify-between gap-2 overflow-hidden font-bold capitalize",children:(0,i.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,i.jsx)(d.FormattedMessage,{id:"y5gN7S3hPJPQG4Wj",defaultMessage:[{type:0,value:"API Documentation"}]}),(0,i.jsxs)(ef.Link,{href:en.PathsEnum.API_DOCS,target:"_blank",className:"ml-6 inline-flex items-center gap-1 text-sm font-normal text-blue-500",children:[(0,i.jsx)(d.FormattedMessage,{id:"/t8HmSdijMN7Ijre",defaultMessage:[{type:0,value:"Full documentation"}]}),(0,i.jsx)(X.ExternalLink,{className:"size-3.5"})]})]})}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,i.jsxs)("div",{className:"mb-4 flex w-full items-center gap-3",children:[(0,i.jsx)("span",{className:"whitespace-nowrap",children:(0,i.jsx)(d.FormattedMessage,{id:"Nk49u8m4ZaLm9CAE",defaultMessage:[{type:0,value:"Example Request"}]})}),(0,i.jsx)(y.Input,{placeholder:e.formatMessage({id:"WFJaP5cTlHPgSE53",defaultMessage:[{type:0,value:"Enter your API key here..."}]}),value:s,onChange:e=>r(e.currentTarget.value)})]}),(0,i.jsx)(es.Tabs,{value:t,onValueChange:e=>a(e),children:(0,i.jsxs)(es.TabsList,{variant:"pills",className:"gap-1",children:[(0,i.jsx)(es.TabsTrigger,{"aria-label":"Show cURL API example in Settings modal",value:eb.CURL,variant:"pills",className:"text-xs",children:(0,i.jsx)(d.FormattedMessage,{id:"t5GN9LfudtGceMKp",defaultMessage:[{type:0,value:"cURL"}]})}),(0,i.jsx)(es.TabsTrigger,{"aria-label":"Show JavaScript API example in Settings modal",value:eb.JAVASCRIPT,variant:"pills",className:"text-xs",children:(0,i.jsx)(d.FormattedMessage,{id:"UGUq9kCeyt81kXdE",defaultMessage:[{type:0,value:"JS"}]})}),(0,i.jsx)(es.TabsTrigger,{"aria-label":"Show Python API example in Settings modal",value:eb.PYTHON,variant:"pills",className:"text-xs",children:(0,i.jsx)(d.FormattedMessage,{id:"piAEk3GKX4UigfvQ",defaultMessage:[{type:0,value:"Python"}]})})]})}),(0,i.jsxs)("div",{className:"relative mt-1",children:[(0,i.jsx)("pre",{className:(0,V.cn)(el.SENSITIVE_FIELD_CLASS,"bg-muted overflow-x-auto rounded-md border p-2 pt-4 pr-12 text-xs"),children:l}),(0,i.jsx)(h.CopyToClipboard,{"aria-label":"Copy API example request from Settings modal",textToCopy:l,className:"absolute top-2 right-2",children:(0,i.jsx)(x.Button,{"aria-label":"Copy API example request from Settings modal",variant:"secondary",size:"sm",children:(0,i.jsx)(Q.Copy,{})})})]})]})]})}],960553);var eM=e.i(593698),eA=e.i(76063),eS=e.i(430321);let ew=[{value:eA.ThemeOptionsEnum.CHARCOAL,canvasClassName:"bg-[oklch(0.17_0.012_245)]",chipClassName:"border-[oklch(0.3_0.016_245)] bg-[oklch(0.19_0.013_245)]",logoClassName:"bg-[oklch(0.68_0.22_39)]",mutedBarClassName:"bg-[oklch(0.67_0.022_245)]",surfaceClassName:"border-[oklch(0.3_0.016_245)] bg-[oklch(0.21_0.014_245)]",textBarClassName:"bg-[oklch(0.94_0.008_245)]"},{value:eA.ThemeOptionsEnum.DARK,canvasClassName:"bg-[oklch(0.136_0.009_82.5)]",chipClassName:"border-[oklch(0.275_0.007_76)] bg-[oklch(0.175_0.008_80)]",logoClassName:"bg-[oklch(0.68_0.22_39)]",mutedBarClassName:"bg-[oklch(0.71_0.006_75)]",surfaceClassName:"border-[oklch(0.275_0.007_76)] bg-[oklch(0.2_0.008_78)]",textBarClassName:"bg-[oklch(0.96_0.006_75)]"},{value:eA.ThemeOptionsEnum.LIGHT,canvasClassName:"bg-[oklch(0.94_0.018_58)]",chipClassName:"border-[oklch(0.83_0.024_56)] bg-[oklch(0.91_0.022_56)]",logoClassName:"bg-[oklch(0.66_0.22_39)]",mutedBarClassName:"bg-[oklch(0.42_0.028_48)]",surfaceClassName:"border-[oklch(0.83_0.024_56)] bg-[oklch(0.985_0.01_58)]",textBarClassName:"bg-[oklch(0.16_0.014_50)]"},{value:eA.ThemeOptionsEnum.TAUPE,canvasClassName:"bg-[oklch(0.965_0.005_50)]",chipClassName:"border-[oklch(0.87_0.01_40)] bg-[oklch(0.935_0.01_55)]",logoClassName:"bg-[oklch(0.66_0.22_39)]",mutedBarClassName:"bg-[oklch(0.51_0.014_35)]",surfaceClassName:"border-[oklch(0.87_0.01_40)] bg-[oklch(1_0_0)]",textBarClassName:"bg-[oklch(0.22_0.012_35)]"}
16],eI="transition-transform duration-150 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover:duration-200 motion-reduce:transition-none motion-reduce:group-hover:translate-y-0",e_=()=>{let{theme:e,setTheme:t}=(0,k.useTheme)(),a=(0,d.useIntl)();return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"uDmHB5dihHjhjgL4",defaultMessage:[{type:0,value:"Theme"}]})}),(0,i.jsx)("div",{role:"group","aria-label":a.formatMessage({id:"5yvZ6ErWn+dreS3N",defaultMessage:[{type:0,value:"theme"}]}),className:"grid w-full grid-cols-2 gap-3 md:grid-cols-4",children:ew.map(({value:s,canvasClassName:r,chipClassName:l,logoClassName:n,mutedBarClassName:o,surfaceClassName:u,textBarClassName:c})=>{var d;let f,m=e===s;return(0,i.jsxs)(z.motion.button,{type:"button","aria-pressed":m,onClick:()=>{(0,eS.transitionTheme)(s),t(s)},animate:{scale:m?1.02:1},whileTap:{scale:.97},transition:{type:"spring",stiffness:400,damping:25},className:(0,V.cn)("group relative flex w-full cursor-pointer flex-col overflow-hidden rounded-xl border text-left select-none","transition-[border-color,box-shadow] duration-200","focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none",m?"border-primary ring-primary/20 ring-2":"border-border hover:border-primary/40"),children:[(0,i.jsxs)("span",{"aria-hidden":!0,className:(0,V.cn)("relative block h-20 w-full overflow-hidden",r),children:[(0,i.jsx)("span",{className:(0,V.cn)("absolute top-2.5 left-2.5 size-1.5 rounded-full",n)}),(0,i.jsx)("span",{className:(0,V.cn)("absolute top-2.5 left-5 h-1.5 w-7 rounded-full opacity-50",o)}),(0,i.jsxs)("span",{className:(0,V.cn)("absolute inset-x-2.5 top-7 bottom-0 block rounded-t-md border border-b-0 p-2","group-hover:-translate-y-1",eI,u),children:[(0,i.jsx)("span",{className:(0,V.cn)("block h-1.5 w-12 max-w-[60%] rounded-full",c)}),(0,i.jsx)("span",{className:(0,V.cn)("mt-1.5 block h-1.5 w-8 max-w-[40%] rounded-full opacity-60",o)}),(0,i.jsxs)("span",{className:"absolute right-1.5 bottom-1.5 flex gap-1",children:[(0,i.jsx)("span",{className:(0,V.cn)("block h-4 w-5 rounded-[5px] border","group-hover:-translate-y-0.5",eI,l)}),(0,i.jsx)("span",{className:(0,V.cn)("block h-4 w-5 rounded-[5px] border","delay-[40ms] group-hover:-translate-y-1",eI,l)})]})]})]}),(0,i.jsxs)("span",{className:"bg-card flex w-full items-center justify-between gap-2 border-t border-inherit px-3 py-2",children:[(0,i.jsx)("span",{className:(0,V.cn)("truncate text-sm font-medium transition-colors duration-150",m?"text-foreground":"text-muted-foreground group-hover:text-foreground"),children:(d={intl:a},f=(0,w.defaultedIntl)(d?.intl),s===eA.ThemeOptionsEnum.DARK?f.formatMessage({id:"CUgkeQamfzeL+R7O",defaultMessage:[{type:0,value:"dark"}]}):s===eA.ThemeOptionsEnum.LIGHT?f.formatMessage({id:"9pW2tN3jSydUoDz4",defaultMessage:[{type:0,value:"light"}]}):s===eA.ThemeOptionsEnum.TAUPE?f.formatMessage({id:"2FsB08O7OOB4yfSA",defaultMessage:[{type:0,value:"taupe"}]}):s===eA.ThemeOptionsEnum.CHARCOAL?f.formatMessage({id:"qNcIKsV7GTxewGq/",defaultMessage:[{type:0,value:"charcoal"}]}):void 0)?.toSentenceCase()}),m?(0,i.jsx)(z.motion.span,{initial:{opacity:0,scale:.4},animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:500,damping:30},className:"bg-primary text-primary-foreground flex size-4 shrink-0 items-center justify-center rounded-full",children:(0,i.jsx)(eM.CheckIcon,{className:"size-3",strokeWidth:3})}):null]})]},s)})})]})};var ek=e.i(635580);let eL=()=>{let{timeZone:e,setTimeZone:t}=(0,k.useTimeZone)(),[a,s]=(0,c.useState)(!1),r=(0,c.useMemo)(()=>(a?Array.from(ek.ALL_TIME_ZONES):e?[e]:[]).map(e=>{let t=(e=>{try{let t=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(new Date).find(e=>"timeZoneName"===e.type);return t?.value??""}catch{return""}})(e);return{gmtOffset:t,offsetValue:Number(t.slice(3).replace(":",".")),timeZone:e}}).sort((e,t)=>e.offsetValue-t.offsetValue||e.timeZone.localeCompare(t.timeZone)),[a,e]);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,i.jsx)(v.Label,{className:"text-sm font-medium capitalize",children:(0,i.jsx)(I,{preference:S.PreferencesEnum.GLOBAL_TIMEZONE})}),(0,i.jsxs)(O.Select,{name:"timeZone",defaultValue:e,onOpenChange:s,onValueChange:e=>e&&t(e),children:[(0,i.jsx)(O.SelectTrigger,{"aria-label":"Choose time zone in Settings modal",className:"w-full",children:(0,i.jsx)(O.SelectValue,{})}),(0,i.jsx)(O.SelectContent,{children:r.map(({gmtOffset:e,timeZone:t})=>(0,i.jsxs)(O.SelectItem,{value:t,children:[t?.toSentenceCase()," (",e,")"]},t))})]})]})};var eO=e.i(998303);e.s(["DisplaySettings",0,()=>(0,i.jsxs)("div",{className:"flex w-full flex-col items-start gap-8",children:[(0,i.jsx)("h2",{className:"hidden text-base font-semibold capitalize lg:block",children:(0,i.jsx)(d.FormattedMessage,{id:"iLuo/nyP4EXfkdhs",defaultMessage:[{type:0,value:"Display"}]})}),(0,i.jsx)(eO.ProSwitch,{}),(0,i.jsx)(e_,{}),(0,i.jsx)(eL,{})]})],223398);var eR=e.i(584456),eD=e.i(807216);
16let eP=({notification:e,push:t,sound:a})=>{let s=(0,d.useIntl)(),{preference:r,setPreference:l}=(0,eD.usePreference)(t),{preference:n,setPreference:o}=(0,eD.usePreference)(a),u=(0,c.useMemo)(()=>(0,eR.isClient)()&&window.Notification&&"denied"===window.Notification.permission,[]),f=(0,c.useCallback)(e=>{!e||u?l(!1):window.Notification&&("granted"===window.Notification.permission?l(!0):window.Notification.requestPermission().then(e=>{l("granted"===e)}))},[l,u]);return(0,i.jsxs)(ea.TableRow,{children:[(0,i.jsx)(ea.TableCell,{className:"text-muted-foreground p-2 capitalize",children:(0,i.jsx)(I,{preference:e})}),(0,i.jsx)(ea.TableCell,{className:"p-2 text-center",children:u?(0,i.jsxs)(er.Tooltip,{children:[(0,i.jsx)(er.TooltipTrigger,{asChild:!0,children:(0,i.jsxs)("div",{className:"inline-block",children:[" ",(0,i.jsx)(ee.Checkbox,{checked:!u&&r,onCheckedChange:e=>f(!0===e),disabled:u||!window.Notification})]})}),(0,i.jsx)(er.TooltipContent,{className:"first-letter:capitalize",children:s.formatMessage({id:"2u/AQrSOsqGUFPLX",defaultMessage:[{type:0,value:"to enable push notifications you must grant access to this page in your browser"}]})})]}):window.Notification?(0,i.jsx)(ee.Checkbox,{checked:!u&&r,onCheckedChange:e=>f(!0===e),disabled:u||!window.Notification}):(0,i.jsxs)(er.Tooltip,{children:[(0,i.jsx)(er.TooltipTrigger,{asChild:!0,children:(0,i.jsx)("div",{className:"inline-block",children:(0,i.jsx)(ee.Checkbox,{checked:!u&&r,onCheckedChange:e=>f(!0===e),disabled:u||!window.Notification})})}),(0,i.jsx)(er.TooltipContent,{className:"first-letter:capitalize",children:s.formatMessage({id:"HvIpQ5gPYmktZjQ4",defaultMessage:[{type:0,value:"push notifications are not supported on this device"}]})})]})}),(0,i.jsx)(ea.TableCell,{className:"p-2 text-center",children:(0,i.jsx)(ee.Checkbox,{checked:n,onCheckedChange:e=>o(!0===e)})})]})},eF=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.TableRow,{children:(0,i.jsx)(ea.TableCell,{colSpan:3,className:"p-2 capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"4r+UDY1sDZpZo0Q4",defaultMessage:[{type:0,value:"event"}]})})}),(0,i.jsx)(eP,{notification:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_STAGE,push:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_STAGE_PUSH,sound:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_STAGE_SOUNDS}),(0,i.jsx)(eP,{notification:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_SCORE,push:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_SCORE_PUSH,sound:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_SCORE_SOUNDS}),(0,i.jsx)(eP,{notification:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_RED_CARD,push:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_RED_CARD_PUSH,sound:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_EVENT_RED_CARD_SOUNDS})]}),eB=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea.TableRow,{children:(0,i.jsx)(ea.TableCell,{colSpan:3,className:"p-2 capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"rsSyN1XKcaZ53nh8",defaultMessage:[{type:0,value:"orders status"}]})})}),(0,i.jsx)(eP,{notification:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_DONE,push:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_DONE_PUSH,sound:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_DONE_SOUNDS}),(0,i.jsx)(eP,{notification:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_SETTLED,push:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_SETTLED_PUSH,sound:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_SETTLED_SOUNDS}),(0,i.jsx)(eP,{notification:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_FAILED,push:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_FAILED_PUSH,sound:S.PreferencesEnum.DISPLAY_NOTIFICATIONS_ORDER_FAILED_SOUNDS})]});e.s(["NotificationsAndSoundsSettings",0,()=>{let e=(0,c.useMemo)(()=>(0,eR.isClient)()&&window.Notification&&"denied"===window.Notification.permission,[]);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,i.jsx)("h2",{className:"hidden text-base font-semibold capitalize lg:block",children:(0,i.jsx)(d.FormattedMessage,{id:"1BeJO1arp+7zkZMJ",defaultMessage:[{type:0,value:"Notification settings"}]})}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[e?(0,i.jsx)("span",{className:"text-destructive text-sm first-letter:capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"fLcgahQnyUX4ZhSQ",defaultMessage:[{type:0,value:"to enable push notifications you must grant access to this page in y
16our browser"}]})}):window.Notification?null:(0,i.jsx)("span",{className:"text-destructive text-sm first-letter:capitalize",children:(0,i.jsx)(d.FormattedMessage,{id:"YT0gEaZQrppBaMOU",defaultMessage:[{type:0,value:"push notifications are not supported on this device"}]})}),(0,i.jsxs)(ea.Table,{children:[(0,i.jsx)(ea.TableHeader,{className:"bg-transparent",children:(0,i.jsxs)(ea.TableRow,{children:[(0,i.jsx)(ea.TableHead,{className:"w-30"}),(0,i.jsx)(ea.TableHead,{className:"text-center text-xs font-semibold whitespace-normal capitalize before:hidden",children:(0,i.jsx)(d.FormattedMessage,{id:"0ZSgRjJOv6rS8we+",defaultMessage:[{type:0,value:"push notifications"}]})}),(0,i.jsx)(ea.TableHead,{className:"text-center text-xs font-semibold whitespace-normal capitalize before:hidden",children:(0,i.jsx)(d.FormattedMessage,{id:"2QWohqehIlgYOB9A",defaultMessage:[{type:0,value:"sounds"}]})})]})}),(0,i.jsxs)(ea.TableBody,{children:[(0,i.jsx)(eF,{}),(0,i.jsx)(eB,{})]})]})]})]})}],33605)},364569,e=>{"use strict";var t=e.i(832198);e.s(["Zap",()=>t.default])},232189,(e,t,a)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,a)=>{"use strict";var s=e.r(232189);function r(){}function l(){}l.resetWarningCache=r,t.exports=function(){function e(e,t,a,r,l,n){if(n!==s){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return a.PropTypes=a,a}},745009,(e,t,a)=>{t.exports=e.r(865156)()},499980,e=>{"use strict";let t,a,s,r,l,n,i;var o=e.i(745009);let u=function(e,t){let a=e,s=c[t],r=null,l=0,n=null,i=[],o={},u=function(e,t){r=function(e){let t=Array(e);for(let a=0;a<e;a+=1){t[a]=Array(e);for(let s=0;s<e;s+=1)t[a][s]=null}return t}(l=4*a+17),f(0,0),f(l-7,0),f(0,l-7),j(),b(),T(e,t),a>=7&&E(e),null==n&&(n=S(a,s,i)),M(n,t)},f=function(e,t){for(let a=-1;a<=7;a+=1)if(!(e+a<=-1)&&!(l<=e+a))for(let s=-1;s<=7;s+=1)t+s<=-1||l<=t+s||(0<=a&&a<=6&&(0==s||6==s)||0<=s&&s<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=s&&s<=4?r[e+a][t+s]=!0:r[e+a][t+s]=!1)},N=function(){let e=0,t=0;for(let a=0;a<8;a+=1){u(!0,a);let s=d.getLostPoint(o);(0==a||e>s)&&(e=s,t=a)}return t},b=function(){for(let e=8;e<l-8;e+=1)null==r[e][6]&&(r[e][6]=e%2==0);for(let e=8;e<l-8;e+=1)null==r[6][e]&&(r[6][e]=e%2==0)},j=function(){let e=d.getPatternPosition(a);for(let t=0;t<e.length;t+=1)for(let a=0;a<e.length;a+=1){let s=e[t],l=e[a];if(null==r[s][l])for(let e=-2;e<=2;e+=1)for(let t=-2;t<=2;t+=1)-2==e||2==e||-2==t||2==t||0==e&&0==t?r[s+e][l+t]=!0:r[s+e][l+t]=!1}},E=function(e){let t=d.getBCHTypeNumber(a);for(let a=0;a<18;a+=1){let s=!e&&(t>>a&1)==1;r[Math.floor(a/3)][a%3+l-8-3]=s}for(let a=0;a<18;a+=1){let s=!e&&(t>>a&1)==1;r[a%3+l-8-3][Math.floor(a/3)]=s}},T=function(e,t){let a=s<<3|t,n=d.getBCHTypeInfo(a);for(let t=0;t<15;t+=1){let a=!e&&(n>>t&1)==1;t<6?r[t][8]=a:t<8?r[t+1][8]=a:r[l-15+t][8]=a}for(let t=0;t<15;t+=1){let a=!e&&(n>>t&1)==1;t<8?r[8][l-t-1]=a:t<9?r[8][15-t-1+1]=a:r[8][15-t-1]=a}r[l-8][8]=!e},M=function(e,t){let a=-1,s=l-1,n=7,i=0,o=d.getMaskFunction(t);for(let t=l-1;t>0;t-=2)for(6==t&&(t-=1);;){for(let a=0;a<2;a+=1)if(null==r[s][t-a]){let l=!1;i<e.length&&(l=(e[i]>>>n&1)==1),o(s,t-a)&&(l=!l),r[s][t-a]=l,-1==(n-=1)&&(i+=1,n=7)}if((s+=a)<0||l<=s){s-=a,a=-a;break}}},A=function(e,t){let a=0,s=0,r=0,l=Array(t.length),n=Array(t.length);for(let i=0;i<t.length;i+=1){let o=t[i].dataCount,u=t[i].totalCount-o;s=Math.max(s,o),r=Math.max(r,u),l[i]=Array(o);for(let t=0;t<l[i].length;t+=1)l[i][t]=255&e.getBuffer()[t+a];a+=o;let c=d.getErrorCorrectPolynomial(u),f=m(l[i],c.getLength()-1).mod(c);n[i]=Array(c.getLength()-1);for(let e=0;e<n[i].length;e+=1){let t=e+f.getLength()-n[i].length;n[i][e]=t>=0?f.getAt(t):0}}let i=0;for(let e=0;e<t.length;e+=1)i+=t[e].totalCount;let o=Array(i),u=0;for(let e=0;e<s;e+=1)for(let a=0;a<t.length;a+=1)e<l[a].length&&(o[u]=l[a][e],u+=1);for(let e=0;e<r;e+=1)for(let a=0;a<t.length;a+=1)e<n[a].length&&(o[u]=n[a][e],u+=1);return o},S=function(e,t,a){let s=g.getRSBlocks(e,t),r=p();for(let t=0;t<a.length;t+=1){let s=a[t];r.put(s.getMode(),4),r.put(s.getLength(),d.getLengthInBits(s.getMode(),e)),s.write(r)}let l=0;for(let e=0;e<s.length;e+=1)l+=s[e].dataCount;if(r.getLengthInBits()>8*l)throw"code length overflow. ("+r.getLengthInBits()+">"+8*l+")";for(r.getLengthInBits()+4<=8*l&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*l)&&(r.put(236,8),!(r.getLengthInBits()>=8*l));){;r.put(17,8)}return A(r,s)};o.addData=function(e,t){let a=null;switch(t=t||"Byte"){case"Numeric":a=h(e);break;case"Alphanumeric":a=x(e);break;case"Byte":a=y(e);break;case"Kanji":a=v(e);break;default:throw"mode:"+t}i.push(a),n=null},o.isDark=function(e,t){if(e<0||l<=e||t<0||l<=t)throw e+","+t;return r[e][t]},o.getModuleCount=function(){return l},o.make=function(){if(a<1){let e=1;for(;e<40;e++){let t=g.getRSBlocks(e,s),a=p();for(let t=0;t<i.length;t++){let s=i[t];a.put(s.getMode(),4),a.put(s.getLength(),d.getLengthInBits(s.getMode(),e)),s.write(a)}let r=0;for(let e=0;e<t.length;e++)r+=t[e].dataCount;if(a.getLengthInBits()<=8*r)break}a=e}u(!1,N())},o.createTableTag=function(e,t){e=e||2;let a="";a+='<table style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: '+(t=void 0===t?4*e:t)+'px;"><tbody>';for(let t=0;t<o.getModuleCount();t+=1){a+="<tr>";for(let s=0;s<o.getModuleCount();s+=1)a+='<td style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: 0px; width: '+e+"px;"+(" height: "+e)+"px; background-color: "+(o.isDark(t,s)?"#000000":"#ffffff")+';"/>';a+="</tr>"}return a+"</tbody></table>"},o.createSvgTag=function(e,t,a,s){let r={};"object"==typeof arguments[0]&&(r=arguments[0],e=r.cellSize,t=r.margin,a=r.alt,s=r.title),e=e||2,t=void 0===t?4*e:t,(a="string"==typeof a?{text:a}:a||{}).text=a.text||null,a.id=a.text?a.id||"qrcode-description":null,(s="string"==typeof s?{text:s}:s||{}).text=s.text||null,s.id=s.text?s.id||"qrcode-title":null;let l=o.getModuleCount()*e+2*t,n,i,u,c="",d;for(d="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",c+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',c+=r.scalable?"":' width="'+l+'px" height="'+l+'px"',c+=' viewB
16ox="0 0 '+l+" "+l+'" ',c+=' preserveAspectRatio="xMinYMin meet"',c+=s.text||a.text?' role="img" aria-labelledby="'+w([s.id,a.id].join(" ").trim())+'"':"",c+=">",c+=s.text?'<title id="'+w(s.id)+'">'+w(s.text)+"</title>":"",c+=a.text?'<description id="'+w(a.id)+'">'+w(a.text)+"</description>":"",c+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',c+='<path d="',i=0;i<o.getModuleCount();i+=1)for(u=i*e+t,n=0;n<o.getModuleCount();n+=1)o.isDark(i,n)&&(c+="M"+(n*e+t)+","+u+d);return c+='" stroke="transparent" fill="black"/>',c+="</svg>"},o.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;let a=o.getModuleCount()*e+2*t,s=t,r=a-t;return C(a,a,function(t,a){if(!(s<=t)||!(t<r)||!(s<=a)||!(a<r))return 1;{let r=Math.floor((t-s)/e),l=Math.floor((a-s)/e);return+!o.isDark(l,r)}})},o.createImgTag=function(e,t,a){e=e||2,t=void 0===t?4*e:t;let s=o.getModuleCount()*e+2*t,r="";return r+="<img",r+=' src="',r+=o.createDataURL(e,t),r+='"',r+=' width="',r+=s,r+='"',r+=' height="',r+=s,r+='"',a&&(r+=' alt="',r+=w(a),r+='"'),r+="/>"};let w=function(e){let t="";for(let a=0;a<e.length;a+=1){let s=e.charAt(a);switch(s){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=s}}return t},I=function(e){let t,a,s,r,l;e=void 0===e?2:e;let n=+o.getModuleCount()+2*e,i=e,u=n-e,c={"██":"█","█ ":"▀"," █":"▄","  ":" "},d={"██":"▀","█ ":"▀"," █":" ","  ":" "},f="";for(t=0;t<n;t+=2){for(s=Math.floor((t-i)/1),r=Math.floor((t+1-i)/1),a=0;a<n;a+=1)l="█",i<=a&&a<u&&i<=t&&t<u&&o.isDark(s,Math.floor((a-i)/1))&&(l=" "),i<=a&&a<u&&i<=t+1&&t+1<u&&o.isDark(r,Math.floor((a-i)/1))?l+=" ":l+="█",f+=e<1&&t+1>=u?d[l]:c[l];f+="\n"}return n%2&&e>0?f.substring(0,f.length-n-1)+Array(n+1).join("▀"):f.substring(0,f.length-1)};return o.createASCII=function(e,t){let a,s,r,l;if((e=e||1)<2)return I(t);e-=1,t=void 0===t?2*e:t;let n=o.getModuleCount()*e+2*t,i=t,u=n-t,c=Array(e+1).join("██"),d=Array(e+1).join("  "),f="",m="";for(a=0;a<n;a+=1){for(r=Math.floor((a-i)/e),m="",s=0;s<n;s+=1)l=1,i<=s&&s<u&&i<=a&&a<u&&o.isDark(r,Math.floor((s-i)/e))&&(l=0),m+=l?c:d;for(r=0;r<e;r+=1)f+=m+"\n"}return f.substring(0,f.length-1)},o.renderTo2dContext=function(e,t){t=t||2;let a=o.getModuleCount();for(let s=0;s<a;s++)for(let r=0;r<a;r++)e.fillStyle=o.isDark(s,r)?"black":"white",e.fillRect(r*t,s*t,t,t)},o};u.stringToBytes=function(e){let t=[];for(let a=0;a<e.length;a+=1){let s=e.charCodeAt(a);t.push(255&s)}return t},u.createStringToBytes=function(e,t){let a=function(){let a=j(e),s=function(){let e=a.read();if(-1==e)throw"eof";return e},r=0,l={};for(;;){let e=a.read();if(-1==e)break;let t=s(),n=s(),i=s(),o=String.fromCharCode(e<<8|t),u=n<<8|i;l[o]=u,r+=1}if(r!=t)throw r+" != "+t;return l}();return function(e){let t=[];for(let s=0;s<e.length;s+=1){let r=e.charCodeAt(s);if(r<128)t.push(r);else{let r=a[e.charAt(s)];"number"==typeof r?(255&r)==r?t.push(r):(t.push(r>>>8),t.push(255&r)):t.push(63)}}return t}};let c={L:1,M:0,Q:3,H:2},d=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a={},s=function(e){let t=0;for(;0!=e;)t+=1,e>>>=1;return t},a.getBCHTypeInfo=function(e){let t=e<<10;for(;s(t)-s(1335)>=0;)t^=1335<<s(t)-s(1335);return(e<<10|t)^21522},a.getBCHTypeNumber=function(e){let t=e<<12;for(;s(t)-s(7973)>=0;)t^=7973<<s(t)-s(7973);return e<<12|t},a.getPatternPosition=function(e){return t[e-1]},a.getMaskFunction=function(e){switch(e){case 0:return function(e,t){return(e+t)%2==0};case 1:return function(e,t){return e%2==0};case 2:return function(e,t){return t%3==0};case 3:return function(e,t){return(e+t)%3==0};case 4:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case 5:return function(e,t){return e*t%2+e*t%3==0};case 6:return function(e,t){return(e*t%2+e*t%3)%2==0};case 7:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},a.getErrorCorrectPolynomial=function(e){let t=m([1],0);for(let a=0;a<e;a+=1)t=t.multiply(m([1,f.gexp(a)],0));return t},a.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;
16case 4:case 8:return 8;default:throw"mode:"+e}if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+e}if(t<41)switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+e}throw"type:"+t},a.getLostPoint=function(e){let t=e.getModuleCount(),a=0;for(let s=0;s<t;s+=1)for(let r=0;r<t;r+=1){let l=0,n=e.isDark(s,r);for(let a=-1;a<=1;a+=1)if(!(s+a<0)&&!(t<=s+a))for(let i=-1;i<=1;i+=1)r+i<0||t<=r+i||(0!=a||0!=i)&&n==e.isDark(s+a,r+i)&&(l+=1);l>5&&(a+=3+l-5)}for(let s=0;s<t-1;s+=1)for(let r=0;r<t-1;r+=1){let t=0;e.isDark(s,r)&&(t+=1),e.isDark(s+1,r)&&(t+=1),e.isDark(s,r+1)&&(t+=1),e.isDark(s+1,r+1)&&(t+=1),(0==t||4==t)&&(a+=3)}for(let s=0;s<t;s+=1)for(let r=0;r<t-6;r+=1)e.isDark(s,r)&&!e.isDark(s,r+1)&&e.isDark(s,r+2)&&e.isDark(s,r+3)&&e.isDark(s,r+4)&&!e.isDark(s,r+5)&&e.isDark(s,r+6)&&(a+=40);for(let s=0;s<t;s+=1)for(let r=0;r<t-6;r+=1)e.isDark(r,s)&&!e.isDark(r+1,s)&&e.isDark(r+2,s)&&e.isDark(r+3,s)&&e.isDark(r+4,s)&&!e.isDark(r+5,s)&&e.isDark(r+6,s)&&(a+=40);let s=0;for(let a=0;a<t;a+=1)for(let r=0;r<t;r+=1)e.isDark(r,a)&&(s+=1);return a+10*(Math.abs(100*s/t/t-50)/5)},a),f=function(){let e=Array(256),t=Array(256);for(let t=0;t<8;t+=1)e[t]=1<<t;for(let t=8;t<256;t+=1)e[t]=e[t-4]^e[t-5]^e[t-6]^e[t-8];for(let a=0;a<255;a+=1)t[e[a]]=a;let a={};return a.glog=function(e){if(e<1)throw"glog("+e+")";return t[e]},a.gexp=function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]},a}(),m=function(e,t){if(void 0===e.length)throw e.length+"/"+t;let a=function(){let a=0;for(;a<e.length&&0==e[a];)a+=1;let s=Array(e.length-a+t);for(let t=0;t<e.length-a;t+=1)s[t]=e[t+a];return s}(),s={};return s.getAt=function(e){return a[e]},s.getLength=function(){return a.length},s.multiply=function(e){let t=Array(s.getLength()+e.getLength()-1);for(let a=0;a<s.getLength();a+=1)for(let r=0;r<e.getLength();r+=1)t[a+r]^=f.gexp(f.glog(s.getAt(a))+f.glog(e.getAt(r)));return m(t,0)},s.mod=function(e){if(s.getLength()-e.getLength()<0)return s;let t=f.glog(s.getAt(0))-f.glog(e.getAt(0)),a=Array(s.getLength());for(let e=0;e<s.getLength();e+=1)a[e]=s.getAt(e);for(let s=0;s<e.getLength();s+=1)a[s]^=f.gexp(f.glog(e.getAt(s))+t);return m(a,0).mod(e)},s},g=(r=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],l=function(e,t){let a={};return a.totalCount=e,a.dataCount=t,a},n={},i=function(e,t){switch(t){case c.L:return r[(e-1)*4+0];case c.M:return r[(e-1)*4+1];case c.Q:return r[(e-1)*4+2];case c.H:return r[(e-1)*4+3];default:return}},n.getRSBlocks=function(e,t){let a=i(e,t);if(void 0===a)throw"bad rs block @ typeNumber:"+e+"/errorCorrectionLevel:"+t;let s=a.length/3,r=[];for(let e=0;e<s;e+=1){let t=a[3*e+0],s=a[3*e+1],n=a[3*e+2];for(let e=0;e<t;e+=1)r.push(l(s,n))}return r},n),p=function(){let e=[],t=0,a={};return a.getBuffer=function(){return e},a.getAt=function(t){return(e[Math.floor(t/8)]>>>7-t%8&1)==1},a.put=function(e,t){for(let s=0;s<t;s+=1)a.putBit((e>>>t-s-1&1)==1)},a.getLengthInBits=function(){return t},a.putBit=function(a){let s=Math.floor(t/8);e.length<=s&&e.push(0),a&&(e[s]|=128>>>t%8),t+=1},a},h=function(e){let t={};t.getMode=function(){return 1},t.getLength=function(t){return e.length},t.write=function(t){let s=0;for(;s+2<e.length;)t.put(a(e.substring(s,s+3)),10),s+=3;s<e.length&&(e.length-s==1?t.put(a(e.substring(s,s+1)),4):e.length-s==2&&t.put(a(e.substring(s,s+2)),7))};let a=function(e){let t=0;for(let a=0;a<e.length;a+=1)t=10*t+s(e.charAt(a));return t},s=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;throw"illegal char :"+e};return t},x=function(e){let t={};t.getMode=function(){return 2},t.getLength=function(t){return e.length},t.write=function(t){let s=0;for(;s+1<e.length;)t.put(45*a(e.charAt(s))+a(e.charAt(s+1)),11),s+=2;s<e.length&&t.put(a(e.charAt(s)),6)};let a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;if("A"<=e&&e<="Z")return e.charCodeAt(0)-65+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return t},y=function(e){let t=u.stringToBytes(e),a={};return a.getMode=function(){return 4},a.getLength=function(e){return t.length},a.write=function(e){for(let a=0;a<t.length;a+=1)e.put(t[a],8)},a},v=function(e){let t=u.stringToBytes,a=t("友");
16if(2!=a.length||(a[0]<<8|a[1])!=38726)throw"sjis not supported.";let s=t(e),r={};return r.getMode=function(){return 8},r.getLength=function(e){return~~(s.length/2)},r.write=function(e){let t=0;for(;t+1<s.length;){let a=(255&s[t])<<8|255&s[t+1];if(33088<=a&&a<=40956)a-=33088;else if(57408<=a&&a<=60351)a-=49472;else throw"illegal char at "+(t+1)+"/"+a;a=(a>>>8&255)*192+(255&a),e.put(a,13),t+=2}if(t<s.length)throw"illegal char at "+(t+1)},r},N=function(){let e=[],t={};return t.writeByte=function(t){e.push(255&t)},t.writeShort=function(e){t.writeByte(e),t.writeByte(e>>>8)},t.writeBytes=function(e,a,s){a=a||0,s=s||e.length;for(let r=0;r<s;r+=1)t.writeByte(e[r+a])},t.writeString=function(e){for(let a=0;a<e.length;a+=1)t.writeByte(e.charCodeAt(a))},t.toByteArray=function(){return e},t.toString=function(){let t="";t+="[";for(let a=0;a<e.length;a+=1)a>0&&(t+=","),t+=e[a];return t+"]"},t},b=function(){let e=0,t=0,a=0,s="",r={},l=function(e){s+=String.fromCharCode(n(63&e))},n=function(e){if(e<0)throw"n:"+e;if(e<26)return 65+e;if(e<52)return 97+(e-26);if(e<62)return 48+(e-52);if(62==e)return 43;else if(63==e)return 47;else throw"n:"+e};return r.writeByte=function(s){for(e=e<<8|255&s,t+=8,a+=1;t>=6;)l(e>>>t-6),t-=6},r.flush=function(){if(t>0&&(l(e<<6-t),e=0,t=0),a%3!=0){let e=3-a%3;for(let t=0;t<e;t+=1)s+="="}},r.toString=function(){return s},r},j=function(e){let t=0,a=0,s=0,r={};r.read=function(){for(;s<8;){if(t>=e.length){if(0==s)return -1;throw"unexpected end of file./"+s}let r=e.charAt(t);if(t+=1,"="==r)return s=0,-1;r.match(/^\s$/)||(a=a<<6|l(r.charCodeAt(0)),s+=6)}let r=a>>>s-8&255;return s-=8,r};let l=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;else throw"c:"+e};return r},E=function(e,t){let a=Array(e*t),s={};s.setPixel=function(t,s,r){a[s*e+t]=r},s.write=function(a){a.writeString("GIF87a"),a.writeShort(e),a.writeShort(t),a.writeByte(128),a.writeByte(0),a.writeByte(0),a.writeByte(0),a.writeByte(0),a.writeByte(0),a.writeByte(255),a.writeByte(255),a.writeByte(255),a.writeString(","),a.writeShort(0),a.writeShort(0),a.writeShort(e),a.writeShort(t),a.writeByte(0);let s=l(2);a.writeByte(2);let r=0;for(;s.length-r>255;)a.writeByte(255),a.writeBytes(s,r,255),r+=255;a.writeByte(s.length-r),a.writeBytes(s,r,s.length-r),a.writeByte(0),a.writeString(";")};let r=function(e){let t=0,a=0,s={};return s.write=function(s,r){if(s>>>r!=0)throw"length over";for(;t+r>=8;)e.writeByte(255&(s<<t|a)),r-=8-t,s>>>=8-t,a=0,t=0;a=s<<t|a,t+=r},s.flush=function(){t>0&&e.writeByte(a)},s},l=function(e){let t=1<<e,s=(1<<e)+1,l=e+1,i=n();for(let e=0;e<t;e+=1)i.add(String.fromCharCode(e));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(s));let o=N(),u=r(o);u.write(t,l);let c=0,d=String.fromCharCode(a[0]);for(c+=1;c<a.length;){let e=String.fromCharCode(a[c]);c+=1,i.contains(d+e)?d+=e:(u.write(i.indexOf(d),l),4095>i.size()&&(i.size()==1<<l&&(l+=1),i.add(d+e)),d=e)}return u.write(i.indexOf(d),l),u.write(s,l),u.flush(),o.toByteArray()},n=function(){let e={},t=0,a={};return a.add=function(s){if(a.contains(s))throw"dup key:"+s;e[s]=t,t+=1},a.size=function(){return t},a.indexOf=function(t){return e[t]},a.contains=function(t){return void 0!==e[t]},a};return s},C=function(e,t,a){let s=E(e,t);for(let r=0;r<t;r+=1)for(let t=0;t<e;t+=1)s.setPixel(t,r,a(t,r));let r=N();s.write(r);let l=b(),n=r.toByteArray();for(let e=0;e<n.length;e+=1)l.writeByte(n[e]);return l.flush(),"data:image/gif;base64,"+l};u.stringToBytes;var T=e.i(271645);function M(){return(M=Object.assign.bind()).apply(null,arguments)}function A(e,t){if(null==e)return{};var a,s,r=function(e,t){if(null==e)return{};var a={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;a[s]=e[s]}return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)a=l[s],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var S=["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"],w={bgColor:o.default.oneOfType([o.default.object,o.default.string]).isRequired,bgD:o.default.string.isRequired,fgColor:o.default.oneOfType([o.default.object,o.default.string]).isRequired,fgD:o.default.string.isRequired,size:o.default.number.isRequired,title:o.default.string,viewBoxSize:o.default.number.isRequired,xmlns:o.default.string},I=(0,T.forwardRef)(function(e,t){var a=e.bgColor,s=e.bgD,r=e.fgD,l=e.fgColor,n=e.size,i=e.title,o=e.viewBoxSize,u=e.xmlns,c=A(e,S);return T.default.createElement("svg",M({},c,{height:n,ref:t,viewBox:"0 0 ".concat(o," ").concat(o),width:n,xmlns:void 0===u?"http://www.w3.org/2000/svg":u}),i?T.default.createElement("title",null,i):null,T.default.createElement("path",{d:s,fill:a}),T.default.createElement("path",{d:r,fill:l}))});I.displayName="QRCodeSvg",I.propTypes=w;var _=["bgColor","fgColor","level","size","value"];u.stringToBytes=function(e){return Array.from(new TextEncoder().encode(e))};var k={bgColor:o.default.oneOfType([o.default.object,o.default.string]),fgColor:o.default.oneOfType([o.default.object,o.default.string]),level:o.default.string,size:o.default.number,value:o.default.string.isRequired},L=(0,T.forwardRef)(function(e,t){var a=e.bgColor,s=e.fgColor,r=e.level,l=e.size,n=e.value,i=A(e,_),o=u(0,void 0===r?"L":r);o.addData(n),o.make();var c=o.getModuleCount(),d=Array.from({length:c},function(e,t){return Array.from({length:c},function(e,a){return o.isDark(t,a)})});return T.default.createElement(I,M({},i,{bgColor:void 0===a?"#FFFFFF":a,bgD:d.map(function(e,t){return e.map(function(e,a){return e?"":"M ".concat(a," ").concat(t," l 1 0 0 1 -1 0 Z")}).join(" ")}).join(" "),fgColor:void 0===s?"#000000":s,fgD:d.map(function(e,t){return e.map(function(e,a){return e?"M ".concat(a," ").concat(t," l 1 0 0 1 -1 0 Z"):""}).join(" ")}).join(" "),ref:t,size:void 0===l?256:l,viewBoxSize:c}))});L.displayName="QRCode",L.propTypes=k,e.s(["default",0,L],499980)},533393,e=>{"use strict";var t=e.i(199032);let a={[t.ApiHostsEnum.PRODUCTION]:"https://www.magic.markets/api",[t.ApiHostsEnum.RELATIVE]:"/api",[t.ApiHostsEnum.DEVELOPMENT]:"https://dev.magicmarkets.com/api"};e.s(["MagicApiHostToUrlMap",0,a])},460976,e=>{"use strict";var t=e.i(843476);e.i(317644);var a=e.i(581439),s=e.i(271645),r=e.i(967489),l=e.i(74076);let n="master";var i=e.i(975157);e.s(["FrontendOriginSelect",0,({origin:e,options:o,changeTo:u,className:c})=>{let d=(0,a.useCookies)(),f=(0,s.useMemo)(()=>e?o.find(t=>t.url===e)?.value||`Unknown Branch: ${e}`:n,[e,o]),m=(0,s.useCallback)(t=>{let a=o.find(e=>e.value===t)||o.find(e=>e.value===n);if(a&&e!==a.url){d.set(l.CookieNameEnum.FRONTEND_ORIGIN,a.url);let e=new URLSearchParams(window.location.search);e.delete("origin"),window.location.href=`${window.location.href.split("?")[0]}${Array.from(e.entries()).length?`?${e}`:""}`}},[d,o,e]);return(0,s.useEffect)(()=>{u&&m(u)},[u,m]),(0,t.jsxs)(r.Select,{name:"branch",defaultValue:f,onValueChange:m,children:[(0,t.jsx)(r.SelectTrigger,{className:(0,i.cn)("w-64",c),children:(0,t.jsx)(r.SelectValue,{})}),(0,t.jsx)(r.SelectContent,{children:o.map(e=>(0,t.jsx)(r.SelectItem,{value:e.value,children:e.label},e.value))})]})}],460976)},311033,91511,296719,e=>{"use strict";var t,a=e.i(843476),s=e.i(334780);e.s(["Globe",()=>s.default],91511);var s=s;e.i(317644);var r=e.i(581439),l=e.i(271645),n=e.i(301005),i=e.i(191802),o=e.i(967489),u=e.i(74076),c=e.i(853813),d=e.i(876729),f=e.i(666290),m=e.i(227539),g=e.i(382573),p=e.i(975157),h=e.i(777631),x=((t={}).FULL="full",t.TILE="tile",t);e.s(["GeoOverrideVariantEnum",()=>x],296719);let y="auto",v=[{country:c.CountriesEnum.BRAZIL,level:f.AccessLevelEnum.OPEN},{country:c.CountriesEnum.UNITED_KINGDOM,level:f.AccessLevelEnum.BROWSE},{country:c.CountriesEnum.CHINA,level:f.AccessLevelEnum.BLOCKED}];e.s(["GeoOverride",0,({variant:e=x.FULL})=>{let t=(0,n.useIntl)(),c=(0,r.useCookies)(),{accessLevel:N}=(0,m.useGeoRestriction)(),{geoCountry:b,isGeoOverrideAvailable:j}=(0,i.useMetaContext)(),E=(0,l.useMemo)(()=>[...d.BROWSE_COUNTRIES,...d.BLOCKED_COUNTRIES].map(e=>({value:e,label:(0,g.formatCountryToString)(e,{intl:t})||e})).sort((e,t)=>
16e.label.localeCompare(t.label)),[t]),C=(0,l.useCallback)(e=>{e===y?c.remove(u.CookieNameEnum.GEO_OVERRIDE,{path:"/"}):c.set(u.CookieNameEnum.GEO_OVERRIDE,e,{path:"/"}),window.location.reload()},[c]),T=(0,l.useMemo)(()=>e===x.TILE,[e]),M=(0,l.useMemo)(()=>`${b||"??"} \xb7 ${N}`,[N,b]);return j?(0,a.jsxs)(o.Select,{value:c.get(u.CookieNameEnum.GEO_OVERRIDE)||y,onValueChange:C,children:[(0,a.jsxs)(o.SelectTrigger,{"aria-label":"Browse as territory",className:(0,p.cn)("text-xs font-semibold shadow-none dark:shadow-none",T?(0,p.cn)(h.HEADER_GHOST_TRIGGER_CLASS,"dark:hover:bg-accent border-0 bg-transparent px-0 py-0 data-[size=default]:h-9 dark:bg-transparent"):(0,p.cn)(h.HEADER_TRIGGER_CLASS,"dark:bg-card dark:hover:bg-secondary/60 h-10 gap-1.5 px-3 data-[size=default]:h-10")),icon:T?(0,a.jsx)("span",{className:"hidden"}):void 0,children:[(0,a.jsx)(s.default,{className:(0,p.cn)(T?h.HEADER_GHOST_ICON_CLASS:"size-3.5","text-current")}),T?null:(0,a.jsx)("span",{children:M})]}),(0,a.jsxs)(o.SelectContent,{children:[(0,a.jsx)(o.SelectGroup,{children:(0,a.jsxs)(o.SelectLabel,{children:["Now: ",M]})}),(0,a.jsx)(o.SelectItem,{value:y,children:"Auto — real location"}),(0,a.jsxs)(o.SelectGroup,{children:[(0,a.jsx)(o.SelectLabel,{children:"Quick picks"}),v.map(({country:e,level:s})=>(0,a.jsxs)(o.SelectItem,{value:e,children:[s," — ",(0,g.formatCountryToString)(e,{intl:t})||e]},s))]}),(0,a.jsxs)(o.SelectGroup,{children:[(0,a.jsx)(o.SelectLabel,{children:"Levels with no territory"}),(0,a.jsxs)(o.SelectItem,{value:f.AccessLevelEnum.BROWSE_GATED,children:[f.AccessLevelEnum.BROWSE_GATED," — browse plus email capture"]})]}),(0,a.jsxs)(o.SelectGroup,{children:[(0,a.jsx)(o.SelectLabel,{children:"Every territory in the map"}),(0,a.jsx)(o.SelectItem,{value:"ZZ",children:"Unresolvable location"}),E.map(({value:e,label:t})=>(0,a.jsxs)(o.SelectItem,{value:e,children:[t," (",e,")"]},e))]})]})]}):null}],311033)},333559,e=>{"use strict";var t=e.i(843476),a=e.i(705023),s=e.i(271645),r=e.i(301005),l=e.i(519455),n=e.i(561993),i=e.i(371365),o=e.i(961852),u=e.i(280996),c=e.i(638843),d=e.i(402985),f=e.i(537446),m=e.i(989447),g=e.i(975157),p=e.i(776639),h=e.i(685294),x=e.i(438882),y=e.i(241606),v=e.i(960553),N=e.i(223398),b=e.i(33605),j=e.i(482022),E=e.i(604570),C=e.i(611116),T=e.i(101460),M=e.i(958759),A=e.i(301721);let S=()=>{let{referralUrl:e,referralUrlDisplay:a}=(0,M.useReferralUrl)(),n=(0,s.useRef)(!1);(0,s.useEffect)(()=>{n.current||(n.current=!0,E.default.capture(i.PostHogEventEnum.REWARDS_TAB_VIEWED,{entry_point:i.AnalyticsEntryPointEnum.SETTINGS_MODAL}))},[]);let o=(0,s.useCallback)(()=>{E.default.capture(i.PostHogEventEnum.REFERRAL_CODE_SHARED,{entry_point:i.AnalyticsEntryPointEnum.SETTINGS_MODAL})},[]);return(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,t.jsx)("h2",{className:"hidden text-base font-semibold capitalize md:block",children:(0,t.jsx)(r.FormattedMessage,{id:"H13JczuP7ZJt8iUw",defaultMessage:[{type:0,value:"Rewards"}]})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h3",{className:"text-base font-semibold",children:(0,t.jsx)(r.FormattedMessage,{id:"GIdbJi5kwXO2sHI5",defaultMessage:[{type:0,value:"Refer friends. Earn a monthly dividend."}]})}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,t.jsx)(r.FormattedMessage,{id:"p+sHgTITu/UkVWrw",defaultMessage:[{type:0,value:"Invite people who trade to MagicMarkets. The more they trade, the more you earn, paid monthly in USDT to your account."}]})})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:(0,t.jsx)(r.FormattedMessage,{id:"VQNp4czvi5GZkWHW",defaultMessage:[{type:0,value:"Your referral link"}]})}),(0,t.jsxs)("div",{className:"border-border flex w-full items-center gap-2 rounded-md border p-2",children:[(0,t.jsx)("span",{className:"text-foreground flex-1 truncate font-mono text-sm",children:a}),e&&(0,t.jsx)(C.CopyToClipboard,{"aria-label":"Copy referral link from rewards settings",textToCopy:e,isLink:!0,onCopySuccess:o,children:(0,t.jsx)(l.Button,{"aria-label":"Copy referral link from rewards settings",variant:"secondary",size:"sm",className:"shrink-0",children:(0,t.jsx)(r.FormattedMessage,{id:"zcrFj0xqmwQtinYz",defaultMessage:[{type:0,value:"Copy"}]})})})]}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:(0,t.jsx)(r.FormattedMessage,{id:"t+LDtgY5CoAYtJzw",defaultMessage:[{type:0,value:"Anyone who signs up through this link counts as your referral."}]})})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsx)("h3",{className:"text-base font-semibold",children:(0,t.jsx)(r.FormattedMessage,{id:"EL7nuAi7NW1n1uX/",defaultMessage:[{type:0,value:"How 
16it works"}]})}),(0,t.jsxs)("ol",{className:"text-muted-foreground marker:text-primary list-outside list-decimal pl-5 text-sm marker:font-semibold",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.FormattedMessage,{id:"btmO4rGQ+NL02TIq",defaultMessage:[{type:0,value:"Copy your link and share it anywhere."}]})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.FormattedMessage,{id:"vxvNL5rDgHv54rEo",defaultMessage:[{type:0,value:"People who sign up through it are attributed to you."}]})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.FormattedMessage,{id:"XILlJs9eCNnL4MAG",defaultMessage:[{type:0,value:"Your dividend is paid monthly and appears in your transaction history as Referral dividend."}]})})]})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-1.5",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,t.jsx)(r.FormattedMessage,{id:"aHi48MiLB/qTHB8D",defaultMessage:[{type:0,value:"By sharing your referral link you accept the "},{children:[{type:0,value:"Referral Program terms"}],type:8,value:"link"},{type:0,value:"."}],values:{link:e=>(0,t.jsx)(A.Link,{href:T.PathsEnum.REFERRAL_PROGRAM,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500",children:e})}})}),(0,t.jsxs)(A.Link,{href:T.PathsEnum.REFERRAL_PROGRAM,target:"_blank",rel:"noopener noreferrer",className:"text-primary inline-flex items-center gap-1 text-sm font-normal",children:[(0,t.jsx)(r.FormattedMessage,{id:"JYnBPi5U9suEpSJG",defaultMessage:[{type:0,value:"Learn more about the Referral Program"}]}),(0,t.jsx)(j.ExternalLink,{className:"size-3.5"})]})]})]})};var w=e.i(558398),I=e.i(110204),_=e.i(270741);e.i(952596);var k=e.i(730345),L=e.i(379252),O=e.i(664223);let R=()=>{let{priceFormat:e,setPriceFormat:a}=(0,c.usePriceFormat)(),s=(0,r.useIntl)();return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsx)(I.Label,{className:"text-sm font-medium capitalize",children:(0,t.jsx)(w.FormattedPreference,{preference:k.PreferencesEnum.GLOBAL_PRICE_FORMAT})}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:Array.from(L.ALL_PRICE_TYPE_IDS).map(r=>{let l=e===r;return(0,t.jsxs)(_.OptionCard,{isSelected:l,onSelect:()=>a(r),className:"gap-2",children:[(0,t.jsx)("span",{className:"text-foreground font-mono text-lg font-semibold",children:L.PriceTypeExamples[r]}),(0,t.jsx)("span",{className:(0,g.cn)("mt-1 text-xs transition-colors duration-200",l?"text-primary font-medium":"text-muted-foreground"),children:(0,O.formatPriceTypeToString)(r,{intl:s})?.toSentenceCase()})]},r)})})]})},D=()=>(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-8",children:[(0,t.jsx)("h2",{className:"hidden text-base font-semibold capitalize md:block",children:(0,t.jsx)(r.FormattedMessage,{id:"8AydNCNM/F1P2Wl5",defaultMessage:[{type:0,value:"Trading"}]})}),(0,t.jsx)(R,{})]}),P=({category:e})=>e===h.SettingsCategoryEnum.TRADING?(0,t.jsx)(D,{}):e===h.SettingsCategoryEnum.DISPLAY?(0,t.jsx)(N.DisplaySettings,{}):e===h.SettingsCategoryEnum.NOTIFICATIONS?(0,t.jsx)(b.NotificationsAndSoundsSettings,{}):e===h.SettingsCategoryEnum.ADVANCED?(0,t.jsx)(y.AdvancedSettings,{}):e===h.SettingsCategoryEnum.REWARDS?(0,t.jsx)(S,{}):e===h.SettingsCategoryEnum.ACCOUNT?(0,t.jsx)(x.AccountSettings,{}):e===h.SettingsCategoryEnum.API?(0,t.jsx)(v.ApiSettings,{}):void 0;var F=e.i(191913);let B=s.default.memo(({category:e})=>e===h.SettingsCategoryEnum.TRADING?(0,t.jsx)(r.FormattedMessage,{id:"DWXwon4QYchx1Ppt",defaultMessage:[{type:0,value:"Trading"}]}):e===h.SettingsCategoryEnum.DISPLAY?(0,t.jsx)(r.FormattedMessage,{id:"VIzcdBFrr9/ZVM96",defaultMessage:[{type:0,value:"Display"}]}):e===h.SettingsCategoryEnum.NOTIFICATIONS?(0,t.jsx)(r.FormattedMessage,{id:"HQtOO5aAsJp/PidG",defaultMessage:[{type:0,value:"Notifications"}]}):e===h.SettingsCategoryEnum.ADVANCED?(0,t.jsx)(r.FormattedMessage,{id:"GlLRnIIQNq7DzonM",defaultMessage:[{type:0,value:"Advanced"}]}):e===h.SettingsCategoryEnum.REWARDS?(0,t.jsx)(r.FormattedMessage,{id:"0+Akh3fO4Ig1XDlp",defaultMessage:[{type:0,value:"Rewards"}]}):e===h.SettingsCategoryEnum.ACCOUNT?(0,t.jsx)(r.FormattedMessage,{id:"5WbK/J+pefxIRqcN",defaultMessage:[{type:0,value:"Account"}]}):(0,t.jsx)(r.FormattedMessage,{id:"IiHj68BO8mmKfSir",defaultMessage:[{type:0,value:"API"}]}),F.areObjectsShallowlyEqual);e.s(["OpenSettingsButton",0,()=>{let e=(0,r.useIntl)(),{setIsSettingsDialogOpen:s}=(0,d.useSetIsSettingsDialogOpen)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{role:"button","aria-label":e.formatMessage({id:"1PUubxSPOtxB5+0Q",defaultMessage:[{type:0,value:"Open Settings modal from account menu"}]}),onClick:()=>s(!0),className:"text-foreground flex w-full cursor-pointer items-center gap-2 text-sm font-normal capitalize",children:[(0,t.jsx)(a.SettingsIcon,{className:"h-4 w-4"}),(0,t.jsx)(r.FormattedMessage,{id:"gvNEZbC4g1SVWpnG",defaultMessage:[{type:0,value:"settings"}]})]})})},"SettingsDialog",0,()=>{let e=(0,r.useIntl)(),{isSettingsDialogOpen:a}=(0,d.useIsSettingsDialogOpen)(),{setIsSettingsDialogOpen:x}=(0,d.useSetIsSettingsDialogOpen)(),{isPro:y}=(0,c.useIsPro)(),v=(0,u.useCloseAllBetslips)(),N=(0,s.useRef)(void 0),[b,j]=s.default.useState(h.SettingsCategoryEnum.TRADING);(0,s.useEffect)(()=>
16{if(a)void 0===N.current&&(N.current=y);else{let e=N.current;N.current=void 0,void 0!==e&&e!==y&&(v(i.BetslipCloseReasonEnum.PAGE_UNLOAD),m.hashHistory.clearHashBetslips())}},[v,y,a]);let E=s.default.useMemo(()=>Array.from(h.ALL_SETTINGS_CATEGORIES).map(e=>({id:e})),[]);return(0,f.useIsMediaTypeOrBigger)(o.MediaTypeEnum.SMALL_LAPTOP)?(0,t.jsx)(p.Dialog,{open:a,onOpenChange:x,children:(0,t.jsxs)(p.DialogContent,{closeButtonLabel:e.formatMessage({id:"jqwR1QxyaF6Z7Nn1",defaultMessage:[{type:0,value:"Close Settings modal"}]}),className:"flex flex-col p-0 sm:h-full sm:w-full sm:max-w-full md:h-160 md:w-260 md:max-w-none","aria-describedby":void 0,children:[(0,t.jsx)(p.DialogHeader,{className:"sr-only",children:(0,t.jsx)(p.DialogTitle,{children:(0,t.jsx)(r.FormattedMessage,{id:"YyOY4rwCOfreENv7",defaultMessage:[{type:0,value:"Settings"}]})})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden md:flex-row",children:[(0,t.jsxs)("div",{className:"md:bg-muted/30 border-border relative flex w-full overflow-x-scroll border-r border-b pr-6 md:w-64 md:flex-col md:border-0",children:[(0,t.jsx)("div",{className:"via-background to-background fixed top-0 right-0 h-16 w-12 bg-linear-to-r from-transparent via-25% md:hidden"}),(0,t.jsx)("nav",{className:"flex gap-1 p-4 md:flex-col",children:E.map(e=>(0,t.jsx)(l.Button,{variant:b===e.id?"secondary":"ghost",className:(0,g.cn)("hover:bg-secondary/30 text-muted-foreground w-full justify-start font-normal transition-colors",b===e.id?"bg-secondary/60 text-foreground":""),onClick:()=>j(e.id),children:(0,t.jsx)(B,{category:e.id})},e.id))})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,t.jsx)("div",{className:"p-6",children:(0,t.jsx)(P,{category:b})})})]})]})}):(0,t.jsx)(n.Drawer,{open:a,onOpenChange:x,children:(0,t.jsxs)(n.DrawerContent,{className:"flex h-[85vh] flex-col overflow-hidden px-0 focus:outline-none",children:[(0,t.jsx)(n.DrawerTitle,{className:"sr-only",children:(0,t.jsx)(r.FormattedMessage,{id:"NPOcRZzpaxx3J8Bq",defaultMessage:[{type:0,value:"Settings"}]})}),(0,t.jsx)("nav",{className:"scrollbar-hide flex shrink-0 gap-1 overflow-x-auto px-4 pt-2 pb-3",children:E.map(e=>(0,t.jsx)(l.Button,{variant:b===e.id?"secondary":"ghost",className:(0,g.cn)("hover:bg-secondary/30 text-muted-foreground w-fit shrink-0 justify-start font-normal transition-colors",b===e.id?"bg-secondary/60 text-foreground":""),onClick:()=>j(e.id),children:(0,t.jsx)(B,{category:e.id})},e.id))}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pb-[calc(1rem+env(safe-area-inset-bottom))]",children:(0,t.jsx)(P,{category:b})})]})})}],333559)},735581,e=>{"use strict";e.s(["AUTHENTICATOR_CODE_LENGTH",0,6,"EMAIL_OTP_CODE_LENGTH",0,6])},958759,e=>{"use strict";var t=e.i(271645),a=e.i(54289);let s=/^https?:\/\//;e.s(["useReferralUrl",0,()=>{let e=(0,a.useMagicCurrentCustomer)(),r=e?.uuid,[l,n]=(0,t.useState)(void 0);return(0,t.useEffect)(()=>n(window.location.origin),[]),(0,t.useMemo)(()=>{if(!r||!l)return{referralUrl:void 0,referralUrlDisplay:void 0};let e=new URL("/",l);e.searchParams.set("p_ref",r);let t=e.toString();return{referralUrl:t,referralUrlDisplay:t.replace(s,"")}},[l,r])}])},802009,e=>{"use strict";var t=e.i(301005);e.i(827455),e.i(451067),e.i(879884),e.s(["formatMagicApiLoginError",0,(e,{intl:a,isSignupMode:s,retryAfterSeconds:r})=>{if("LOGIN_INVALID"===e&&void 0!==s)return a.formatMessage(s?{defaultMessage:"that code is not valid. if you already have an account, log in instead.",description:"Location: Auth card, code step in sign-up mode. Purpose: Explain that a rejected code most likely means the address already has an account. Context: Alert below the auth card. Type: Description"}:{defaultMessage:"that code is not valid. if you have not created an account yet, sign up instead.",description:"Location: Auth card, code step in log-in mode. Purpose: Explain that a rejected code most likely means the address has no account yet. Context: Alert below the auth card. Type: Description"}).toSentenceCase();if("RATE_LIMITED"===e&&r&&r>0)return a.formatMessage({id:"kgsDyoi7bEibpHmh",defaultMessage:[{type:0,value:"too many attempts. try again in "},{type:1,value:"seconds"},{type:0,value:"s"}]},{seconds:r}).toSentenceCase();let l=(0,t.defineMessages)({"2FA_INVALID":{id:"KNaEGI6Jb3dAhOMN",defaultMessage:[{type:0,value:"invalid two-factor authentication code."}]},"2FA_REQUIRED":{id:"wXD6y6jLVi1n5v5r",defaultMessage:[{type:0,value:"two-factor authentication is required."}]},BLOCKED:{id:"CNVCq9lbk6n/Lcai",defaultMessage:[{type:0,value:"your account has been blocked."}]},CAPTCHA_INVALID:{id:"XRbdfzsAmcc/dzmq",defaultMessage:[{type:0,value:"that captcha could not be verified. please, try again."}]},CAPTCHA_REQUIRED:{id:"3jpFTBOzGJPwmZ6j",defaultMessage:[{type:0,value:"please complete the captcha."}]},COUNTRY_BLOCKED:{id:"Mne67DdLjXBTlxxw",defaultMessage:[{type:0,value:"access from your country is blocked."}]},EMAIL_OTP_INVALID:{id:"8SbUhu0DAkCiQnE4",defaultMessage:[{type:0,value:"that c
16ode is not valid. please check and try again."}]},EMAIL_OTP_REQUIRED:{id:"3fHhopCcRDb04rND",defaultMessage:[{type:0,value:"please, enter the code sent to your email."}]},EXCLUDED:{id:"ULVkXi4p/Nf96ecS",defaultMessage:[{type:0,value:"your account is currently excluded."}]},JWT_VERIFICATION_FAILED:{id:"Pi0EQppTWFzlLiag",defaultMessage:[{type:0,value:"your session is not valid. please, login again or contact support, if the issue continues."}]},INTERNAL_ERROR:{id:"IB/BogBLlHlfsjZz",defaultMessage:[{type:0,value:"something went wrong. please try again."}]},INVALID_2FA:{id:"KNaEGI6Jb3dAhOMN",defaultMessage:[{type:0,value:"invalid two-factor authentication code."}]},INVALID_AUTHENTICITY_TOKEN:{id:"kJLsCE7hYoXgZaGN",defaultMessage:[{type:0,value:"your token in invalid. please sign in again."}]},LOGIN_INVALID:{id:"aDiYK6T23ZPxG4ov",defaultMessage:[{type:0,value:"invalid credentials."}]},NOT_ALLOWED:{id:"CcFjQGdeEhKB/7qq",defaultMessage:[{type:0,value:"this action is not allowed."}]},NOT_SIGNED_IN:{id:"IDOs3aEm6RNaeSie",defaultMessage:[{type:0,value:"you must be signed in to continue."}]},RATE_LIMITED:{id:"QMpbmlAU5Gg0MHpG",defaultMessage:[{type:0,value:"too many attempts. please wait and try again."}]},REQUIRE_2FA:{id:"wXD6y6jLVi1n5v5r",defaultMessage:[{type:0,value:"two-factor authentication is required."}]},RESTRICTED_COUNTRY:{id:"hRiU5g0IQXvPJlPu",defaultMessage:[{type:0,value:"access is restricted in your country."}]},SELF_EXCLUSION:{id:"unpMNvz6BuaHFoTi",defaultMessage:[{type:0,value:"your account is self-excluded."}]},VALIDATION_ERROR:{id:"80Ix40RqU7yQdPck",defaultMessage:[{type:0,value:"some of the provided information is invalid."}]}});return e in l?a.formatMessage(l[e]).toSentenceCase():e.trim()?e.toSentenceCase():a.formatMessage(l.INTERNAL_ERROR).toSentenceCase()}])},512969,e=>{"use strict";var t=e.i(754594),a=e.i(43829);let s=(0,a.createSirenApiRequestThunk)("tokens/getTokens",t.SirenApi.getTokens),r=(0,a.createSirenApiRequestThunk)("tokens/createToken",t.SirenApi.createToken),l=(0,a.createSirenApiRequestThunk)("tokens/updateToken",t.SirenApi.updateToken),n=(0,a.createSirenApiRequestThunk)("tokens/deleteToken",t.SirenApi.deleteToken);e.s(["createTokenThunk",0,r,"deleteTokenThunk",0,n,"getTokensThunk",0,s,"updateTokenThunk",0,l])}]);
17
18//# debugId=a3293b77-a3d5-8b7c-ab5b-017ce1005478
19//# chunkId=01a0ec89-ba88-7a70-b244-6029fba975ca

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.