{"version":3,"file":"betslip.js","sources":["../node_modules/preact/dist/preact.module.js","../node_modules/preact/hooks/dist/hooks.module.js","../node_modules/preact/compat/dist/compat.module.js","../node_modules/@preact/signals-core/dist/signals-core.module.js","../node_modules/@preact/signals/dist/signals.module.js","../node_modules/js-cookie/dist/js.cookie.mjs","../src/components/📰Templates/Betslip/Header/Header.tsx","../src/components/💠Molecules/Tabs/Tabs.tsx","../src/helper/currencyFormatter.ts","../src/locales/en/translation.ts","../src/components/💠Molecules/Sportsbook/BookItem/BooksItem.tsx","../src/helper/detectAdBlock.ts","../src/components/💎Atoms/AffLink/AffLink.tsx","../src/components/🔷Organisms/Sportsbooks/CompareList/CompareList.tsx","../src/components/📰Templates/Betslip/Footer/Footer.tsx","../src/helper/calculator.ts","../src/components/💠Molecules/Callout/Callout.tsx","../src/components/💠Molecules/Betslip/PartnerWager/PartnerWager.tsx","../src/components/💎Atoms/Form/Checkbox/Checkbox.tsx","../src/components/💎Atoms/Odds/Odds.tsx","../src/components/💠Molecules/Betslip/GameInfo/GameInfo.tsx","../src/helper/aa-event-dispatcher.ts","../src/components/🔷Organisms/Betslip/Parlay/Parlay.tsx","../src/components/🔷Organisms/Betslip/Straight/Straight.tsx","../src/components/📰Templates/Betslip/Main/Main.tsx","../src/helper/DataAttributeHelper.ts","../src/api/ApiRequest.ts","../src/types/TeamVm.ts","../src/types/GameVm.ts","../src/types/BettingSideVm.ts","../src/types/SportsbookVm.ts","../src/types/enums/BettingSideEnum.ts","../src/constant/constant.ts","../src/types/BetVm.ts","../src/api/ApiService.ts","../src/components/💠Molecules/Modal/Modal.tsx","../src/components/💎Atoms/Modal/Footer/ModalFooter.tsx","../src/components/💎Atoms/Modal/Body/ModalBody.tsx","../src/components/💠Molecules/Betslip/Modal/ToggleModal.tsx","../src/types/SportsbookComparisonItemVm.ts","../src/types/StraightComparisonVm.ts","../src/helper/converter.ts","../src/types/ParlayComparisonVm.ts","../src/types/BetSlipVm.ts","../src/main.tsx","../src/message.tsx","../src/betSlips.ts","../node_modules/web-vitals/dist/web-vitals.js","../src/index.js"],"sourcesContent":["var n,l,u,t,i,o,r,f,e,c,s,a,h={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){var l=n.parentNode;l&&l.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)\"key\"==r?i=u[r]:\"ref\"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),\"function\"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function k(n){return n.children}function b(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l {t.empty_parlay_message.description} {t.empty_message.description} {t.system_messages.api_connection.description}\r\n {tabKeys.map((type, index) => {\r\n return (\r\n
\r\n )\r\n\r\n};","// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat\r\n\r\nexport const currencyFormatter = new Intl.NumberFormat('en', {\r\n style: 'currency',\r\n currency: 'USD',\r\n minimumFractionDigits: 2,\r\n });\r\n\r\n\r\nexport function formatInputFieldCurrency(event: any) {\r\n let inputValue = event.target.value\r\n if (inputValue === \"\") { return }\r\n\r\n if (inputValue.indexOf(\".\") >= 0) {\r\n const decimalPosition = inputValue.indexOf(\".\")\r\n let leftSide = inputValue.substring(0, decimalPosition);\r\n let rightSide = inputValue.substring(decimalPosition);\r\n\r\n leftSide = leftSide.replace(/^0+/, \"\");\r\n leftSide = formatNumber(leftSide);\r\n\r\n rightSide = formatNumber(rightSide);\r\n rightSide = rightSide.substring(0, 2);\r\n inputValue = \"$\" + leftSide + \".\" + rightSide;\r\n }else {\r\n inputValue = formatNumber(inputValue);\r\n inputValue = \"$\" + inputValue;\r\n }\r\n\r\n event.target.value = inputValue;\r\n return;\r\n}\r\n\r\nfunction formatNumber(n: string) {\r\n return n.replace(/\\D/g, \"\").replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\r\n}\r\n\r\nexport function parseWager(wager: string): number {\r\n // Remove non-numeric characters except for the decimal point\r\n const numericWager = wager.replace(/[^0-9.]/g, '');\r\n return parseFloat(numericWager);\r\n}","export const translation = \r\n{\r\n \"header\": {\r\n \"tagline\": \"BetSlip\"\r\n },\r\n \"tabs\": {\r\n \"tab1\": \"Straight\",\r\n \"tab2\": \"Parlay\"\r\n },\r\n \"straight_content\": {\r\n \"button\": \"Clear this bet from BetSlip\",\r\n },\r\n \"parlay_content\": {\r\n 'total': \"Leg Parlay\",\r\n },\r\n \"books_list\": {\r\n \"heading\": \"Compare books from the list below\",\r\n \"table_col_parlay\": \"Odds*\",\r\n \"table_col_straight\": \"Total Wager*\",\r\n \"table_col_2\": \"To Win\",\r\n \"disclaimer\": \"*Sportbooks may not offer all odds.\",\r\n \"compare_more\": \"Compare more odds\",\r\n \"compare_less\": \"Compare less odds\",\r\n \"cta\": \"Sign up\",\r\n \"cta_quickBet\": \"Bet now\"\r\n },\r\n \"wager_card\": {\r\n \"label\": \"Wager\",\r\n \"payout\": \"To Win\"\r\n },\r\n \"footer\": {\r\n \"button\": \"Clear old Bets from BetSlip\",\r\n \"cta\": \"Bet at \",\r\n \"cta_quickBet\": \"Quick Bet at \",\r\n \"total\": \"Total to win\"\r\n },\r\n \"empty_message\": {\r\n \"heading\": \"Your BetSlip is empty, add selections to get you started.\",\r\n \"description\": \"Organize your bets while you research and compare 'To Win' amounts for different books.\",\r\n \"footnote\": \"*This slip is not an integrated betting feature\"\r\n },\r\n \"empty_parlay_message\": {\r\n \"heading\": \"You need at least 2 selections for a Parlay Bet\",\r\n \"description\": \"A Parlay is a bet on two or more teams. You can combine different sports, points, spreads and money lines. To win the parlay bet all selections must win.\",\r\n },\r\n \"warning_messages\": {\r\n \"maximun_selection\": \"You can only add a maximum of 12 legs\",\r\n \"same_game_parlay\": \"Same Game Parlay odds can not be calculated\",\r\n \"match_in_progress\": \"Your games have already started\",\r\n \"different_partners\": \"Your selections are not from the same sportsbook. We've picked the best odds from your selected sportsbooks.\"\r\n },\r\n \"modal\": {\r\n \"betslip_cta\": \"Add to BetSlip\",\r\n \"betslip_cta_disabled\": \"View in BetSlip\"\r\n },\r\n \"pop_up_modal\": {\r\n \"heading\": \"Check out our new free BetSlip feature!\",\r\n \"features\": [\r\n \"Organize your BetSlip while you research\",\r\n \"Add bets from multiple leagues\",\r\n \"Find the best payouts for straight bets and parlays\",\r\n \"Transfer your BetSlip from Covers to a sportsbook in seconds with [LOGO]\"\r\n ],\r\n \"description\": \"[ICON] Look for this icon in the sportsbook list\",\r\n \"disclaimer\": \"*Participating sportsbooks only. Only available in regulated states.\",\r\n \"cta\": \"Try it now\"\r\n },\r\n \"system_messages\": {\r\n \"api_connection\": {\r\n \"heading\": \"System Error\",\r\n \"description\": \"The API connection has failed. Please our contact IT team.\"\r\n }\r\n },\r\n }","import React from \"preact/compat\";\r\nimport { BooksItemProps } from './bookItem.type';\r\nimport { AffLink } from \"../../../💎Atoms/AffLink/AffLink\";\r\nimport { currencyFormatter } from \"../../../../helper/currencyFormatter\";\r\nimport { translation } from \"../../../../locales/en/translation\";\r\n\r\nexport const BooksItem: React.FunctionComponent\r\n {/* {partnerSelected.providerBookId !== null && partnerSelected.providerBookId !== '' ? \r\n \r\n : \"\"} */}\r\n
\r\n :\r\n
\r\n
\r\n :\r\n ''\r\n }\r\n
\r\n {t.empty_message.footnote}
\r\n \r\n \r\n {props.t.description.replaceAll('[ICON]', \"\")}\r\n \r\n
\r\n{props.t.disclaimer}
\r\n \r\n