1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3279],{5323:(e,t,n)=>{var r=n(75448),s=n(94175),o=n(83720),i=n(65930);e.exports=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),s(e,r(t,1),[])})},17578:(e,t,n)=>{var r=n(57408);e.exports=function(e,t,n){for(var s=-1,o=e.criteria,i=t.criteria,c=o.length,a=n.length;++s<c;){var l=r(o[s],i[s]);if(l){if(s>=a)return l;return l*("desc"==n[s]?-1:1)}}return e.index-t.index}},20067:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},32227:(e,t,n)=>{"use strict";n.d(t,{B:()=>G,BX:()=>D,Ds:()=>y,GN:()=>P,GO:()=>x,IA:()=>_,KM:()=>v,Kh:()=>O,LJ:()=>I,L_:()=>R,Np:()=>f,PY:()=>C,RZ:()=>g,TL:()=>h,V6:()=>A,_Q:()=>k,_w:()=>U,b$:()=>S,bR:()=>p,bt:()=>j,cT:()=>N,fx:()=>B,gK:()=>E,g_:()=>z,io:()=>m,lk:()=>$,nU:()=>b,pY:()=>T,sz:()=>L,wr:()=>w});var r=n(59860),s=n(66284);n(95710);var o=n(60861),i=n(65442),c=n(4999);let a=["token"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,s.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let u=(e,t,n,r)=>(0,c.Em)(e,t,n,r),p=(e,t)=>u(`/v1/leagues/${e.leagueId}/injuries`,"GET",null,t),h=(e,t)=>u("/v1/user/forgotPassword","POST",{email:e.email},t),g=(e,t)=>u("/v1/me/reset","POST",{password:e.password},t),b=(e,t)=>{let n=Object.assign({},e);return u(`/v1/me/picks/history${(0,c.eA)(n)}`,"GET",null,t)},m=(e,t)=>u(`/v1/content/${e.id}?preview=true`,"GET",null,t),f=(e,t)=>{let n=(0,c.eA)({type:e.type});return u(`/v1/content/game/${e.gameId}${n}`,"GET",null,t)},_=(e,t)=>
1{let n=[],r=[];e.favorites.forEach(e=>{if(e.prefs){let t=d({},e);delete t.team,n.push(t)}else r.push(e.team_id)});let s=[];return n.length>0&&s.push(u("/v1/me/favorites","PUT",{favorites:n},t)),r.length>0&&s.push(u("/v1/me/favorites","DELETE",{team_ids:r},t)),Promise.all(s).then(e=>{for(let t of e)if("error"in t)return t.error;if(e&&e.length>0&&"response"in e[0])return{response:e[0].response}})},y=(e,t)=>e.search?u(`/v1/teams/search?search=${e.search}`,"GET",null,t):{response:{teams:[]}},x=(e,t)=>u(`/v1/standings/${e.league}`,"GET",null,t),v=({systemType:e,query:t},n)=>u(`/v1/betlabs/systems/${e}${(0,c.eA)(t)}`,"GET",null,n),w=(e,t)=>u(`/v1/betlabs/systems/${e}/follow`,"POST",null,t),j=(e,t)=>u(`/v1/betlabs/systems/${e}/unfollow`,"POST",null,t),k=(e,t)=>u("/v1/betlabs/systems/upsell","POST",null,t),A=(e,t)=>u("/v1/betlabs/systems/me/notifications","POST",e,t),O=(e,t)=>u("/v1/betlabs/systems/me/notifications/all","POST",e,t),$=(e,t)=>{let{token:n}=e,s=(0,r.A)(e,a);t.headers={authorization:n};let o=(0,c.eA)(d(d({},s),{},{returnUrl:"https://www.actionnetwork.com/"}));return u(`/v1/betsync/link${o}`,"GET",null,t)},S=e=>u(`/v1/users/${e.userId}/following`),T=e=>u(`/v1/users/${e.expertId}/follow`,"POST",null,{authorization:e.token}),P=e=>u(`/v1/users/${e.expertId}/unfollow`,"POST",null,{authorization:e.token}),E=e=>u(`/v1/users/${e.userId}${(0,c.eA)({includeSocialReactions:e.includeSocialReactions})}`,"GET",null),N=e=>u(`/v1/leagues/${e}/teams`),z=()=>u("/v1/config/experimentation","GET"),C=(e,t)=>{let n=e.page?.toString()||"";return u(`/v1/content/items/tags/${e.tag}${(0,c.eA)({page:n,limit:e.limit||30,type:e.type,ignoreTag:!e.includeIgnore,noindexTag:!e.includeNoIndex})}`,"GET",null,t)},I=(e,t)=>(0,o.Dx)(e.category)||e.category.includes(".")||e.page&&(0,o.Dx)(e.page.toString())?Promise.resolve({error:(0,i.R9)()}):u(`/v1/content/items/categories/${e.category}${(0,c.eA)({page:e.page,type:e.type,limit:e.limit||30})}`,"GET",null,t),U=(e,t)=>(0,o.Dx)(e.category)||e?.category?.includes(".")||(0,o.Dx)(e.page?.toString())?Promise.resolve({error:(0,i.R9)()}):u(`/v1/content/items/stream${(0,c.eA)({page:e.page,limit:e.limit||30,meta:e.meta||!0,type:e.type||"article",ignoreTag:!e.includeIgnore,noindexTag:!e.includeNoIndex})}`,"GET",null,t);function R(e){let t=encodeURIComponent(e.searchText);return u(`/v2/teams/search?text=${t}`)}function D(e){let t=encodeURIComponent(e.searchText);return u(`/v2/players/search?text=${t}`)}function G(e){let t=encodeURIComponent(e.searchText);return u(`/v2/events/search?text=${t}`)}function B(e){let t=encodeURIComponent(e.searchText);return u(`/v2/content/authors/search?text=${t}`)}function L(e){let t=encodeURIComponent(e.searchText);return u(`/v2/content/articles/search?text=${t}`)}},38568:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/betsync-testing",function(){return n(38933)}])},38933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>z,default:()=>C});var r=n(66284),s=n(14232),o=n(89099),i=n.n(o),c=n(94931),a=n(57558),l=n(90539),d=n(17712),u=n(36148),p=n(40474),h=n(32227),g=n(43181),b=n(66374);let m={height:"60px",width:"60px",borderRadius:"50%",border:`12px solid ${b.A.color.ui.foreground}`,boxShadow:`0 0 0px 1px ${b.A.color.ui.background}`,[`@media (min-width: ${b.A.media.tablet})`]:{height:"90px",width:"90px"}},f={display:"flex",justifyContent:"center"},_={width:"300px",[`@media (min-width: ${b.A.media.tablet})`]:{width:"400px"}},y=(0,g.A)("div",{target:"eckp3h11"})(m,";background:",e=>e.bookColor?`#${e.bookColor}`:b.A.color.ui.success,";"),x=(0,g.A)("div",{target:"eckp3h10"})("padding:",b.A.spacing.large," ",b.A.spacing.medium," ",b.A.spacing.huge," ",b.A.spacing.medium,";font-weight:bold;flex-direction:column;width:100%;display:flex;justify-content:space-between;flex-direction:column;& .betsync{&__header{text-align:center;font-family:",b.A.font.header,";",f,";}&__error{width:100%;display:",e=>e.error&&e.clicked?"block":"none",";text-align:center;color:",b.A.color.text.error,";font-size:",b.A.fontSize.subcaption,";height:20px;}&__placeholder{width:100%;display:",e=>e.error&&e.clicked?"none":"block",";height:20px;}&__sub-header{padding-top:",b.A.spacing.medium,";text-align:center;font-size:",b.A.fontSize.caption,";color:",b.A.color.text.secondary,";letter-spacing:0.12px;}&__main-container{",f,";flex-direction:column;padding-bottom:100px;}&__row{",f,";position:relative;}&__main{",_,";",f,";padding-top:",b.A.spacing.large,";}&__main-enabled{margin:auto auto;}&__circle{border-radius:50%;height:90px;width:90px;",f,";align-items:center;border:1px solid ",b.A.color.ui.border,";box-shadow:0 6px 18px 0px rgba(0, 0, 0, 0.12);}&__action-logo{",m,";}&__book-logo{",m,";background:",e=>e.bookColor?`#${e.bookColor}`:b.A.color.ui.success,";}&__logos{",_,";display:flex;justify-content:space-between;position:absolute;top:-13px;}&__checks{padding:",b.A.spacing.large," 0;font-size:",b.A.fontSize.caption,";color:",b.A.color.text.secondary,";letter-spacing:0.22px;}&__check{padding-top:",b.A.spacing.small,";}&__checkmark{background:",b.A.color.ui.success,";border-radius:2px;height:18px;width:18px;margin-right:",b.A.spacing.small,";}&__button{font-size:",b.A.fontSize.body,";width:100%;}&__image--tablet{display:none;}}@media (min-width: ",b.A.media.tablet,"){padding:",b.A.spacing.huge,";& .betsync__image--mobile{display:none;}& .betsync__image--tablet{display:inline-block;}& .betsync__header{font-size:",b.A.fontSize.title,";}& .betsync__main{padding-top:",b.A.spacing.huge,";}& .betsync__checks{padding-top:",b.A.spacing.huge,";}& .betsync__sub-header{padding-top:",b.A.spacing.large,";font-size:",b.A.fontSize.body,";}& .betsync__circle{height:135px;width:135px;}& .betsync__checks{font-size:",b.A.fontSize.body,";}& .betsync__image{height:97px;}}@media only screen and (min-width: 320px) and (max-width: 374px){& .betsync__header{font-size:",b.A.fontSize.body,";}& .betsync__sub-header{font-size:",b.A.fontSize.subcaption,";}& .betsync__checks{font-size:",b.A.fontSize.subcaption,";}}"),v=(0,g.A)("span",{target:"e1aofu3g0"})({name:"1cwhq16",styles:"display:flex;justify-content:flex-end;flex-direction:column"});var w=n(37876);let j=({side:e})=>(0,w.jsx)(v,{children:(0,w.jsx)("span",{children:(0,w.jsx)("svg",{height:"25",width:"44",children:"left"===e?(0,w.jsx)("path",{stroke:b.A.color.ui.success,strokeWidth:"1.5",d:"M1 24L43 1"}):(0,w.jsx)("path",{stroke:b.A.color.ui.success,strokeWidth:"1.5",d:"M1 1L43 24"})})})});function k({copy:e}){return(0,w.jsxs)("div",{className:"betsync__check",children:[(0,w.jsx)("span",{children:(0,w.jsx)(d.A,{className:"betsync__checkmark",fill:b.A.color.ui.foreground})}),(0,w.jsx)("span",{children:e})]})}function A(){return(0,w.jsxs)("div",{className:"betsync__checks",children:[(0,w.jsx)(k,{copy:"Action never saves login information"}),(0,w.jsx)(k,{copy:"Action never accesses personal details"}),(0,w.jsx)(k,{copy:"Action only accesses your bet data"})]})}function O({bookColor:e,bookLogo:t}){return(0,w.jsxs)(s.Fragment,{children:[(0,w.jsx)("div",{className:"betsync__row",children:(0,w.jsxs)("div",{className:"betsync__main",children:[(0,w.jsx)(j,{side:"left"}),(0,w.jsxs)("div",{className:"betsync__circle",children:[(0,w.jsx)(a.A,{className:"betsync__image--mobile",width:65,height:65,sizes:"(max-width: 65px) 35vw, 65p
1x",image:"https://assets.actionnetwork.com/[email protected]",alt:"Betsync"}),(0,w.jsx)(a.A,{className:"betsync__image--tablet",width:97,height:97,sizes:"(max-width: 97px) 35vw, 97px",image:"https://assets.actionnetwork.com/[email protected]",alt:"Betsync"})]}),(0,w.jsx)(j,{side:"right"})]})}),(0,w.jsx)("div",{className:"betsync__row",children:(0,w.jsxs)("div",{className:"betsync__logos",children:[t?(0,w.jsx)("img",{className:"betsync__book-logo",src:t}):(0,w.jsx)(y,{bookColor:e}),(0,w.jsx)(l.A,{className:"betsync__action-logo"})]})})]})}function $(){return(0,w.jsx)("div",{className:"betsync__main betsync__main-enabled",children:(0,w.jsx)("div",{className:"betsync__row",children:(0,w.jsx)(l.A,{className:"betsync__action-logo"})})})}let S=({book:e,returnUrl:t,context:n})=>{let{0:r,1:o}=(0,s.useState)(!1),{0:a,1:l}=(0,s.useState)(null),[{isLoggedIn:d,token:g}]=p.A.useContainer(),{handlePopover:b}=u.A.useContainer();(0,s.useEffect)(()=>{let e=a?.linkUrl||null,t=a?.isEnabled||null;e&&t&&i().push(e)},[a]),(0,s.useEffect)(()=>{let r=async()=>{if(!g)return;let r=await (0,h.lk)({bookId:e.id,token:g,context:n},{});if("error"in r)return void l(null);let s=r.response,o=s?.link_url||"",i=s?.is_enabled||!1;l({linkUrl:i?decodeURIComponent(t):o,isEnabled:i})};d&&r()},[e,d,g,t,n]);let m=e.meta?.primary_color,f=e.meta?.logos?.thumbnail,_=a?.isEnabled?`You are already synced with ${e.display_name}!`:`Connect ${e.display_name}`,y=a?.isEnabled?`If you need to unlink your account, go to your ${e.display_name} profile or the Action app.`:"No more manual bet tracking! We securely link your sportsbooks with Action.";return(0,w.jsxs)(x,{clicked:r,error:!a?.linkUrl,bookColor:m,children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("span",{className:"betsync__header",children:_}),(0,w.jsx)("div",{className:"betsync__row",children:(0,w.jsx)("div",{className:"betsync__sub-header",children:y})}),(0,w.jsx)("div",{className:"betsync__main-container",children:a?.isEnabled?(0,w.jsx)($,{}):(0,w.jsx)(O,{bookColor:m,bookLogo:f})}),(0,w.jsx)("div",{className:"betsync__row",children:a?.isEnabled?null:(0,w.jsx)(A,{})})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"betsync__error",children:"Unable to connect"}),(0,w.jsx)("div",{className:"betsync__placeholder"}),(0,w.jsx)(c.A,{isButton:!0,className:"betsync__button",href:a?.linkUrl?a?.linkUrl:"#",onClick:()=>{d?o(!0):b("register")},i13n:{action:"Bet Sync Button Click",category:"Bet Sync",label:"Bet Sync Page"},children:"CONTINUE"})]})]})};var T=n(8315),P=n(56020);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var z=!0;let C=({proUpsell:e,book:t,returnUrl:n,context:r,mainNav:s,pageNav:o})=>(0,w.jsx)(T.A,{children:(0,w.jsx)(P.A,N(N({},{title:"BetSync Testing",description:"BetSync Testing",noContainer:!1,proUpsell:e,mainNav:s,pageNav:o}),{},{children:(0,w.jsx)(S,{book:t,returnUrl:n,context:r})}))})},57408:(e,t,n)=>{var r=n(76014);e.exports=function(e,t){if(e!==t){var n=void 0!==e,s=null===e,o=e==e,i=r(e),c=void 0!==t,a=null===t,l=t==t,d=r(t);if(!a&&!d&&!i&&e>t||i&&c&&l&&!a&&!d||s&&c&&l||!n&&l||!o)return 1;if(!s&&!i&&!d&&e<t||d&&n&&o&&!s&&!i||a&&n&&o||!c&&o||!l)return -1}return 0}},62656:(e,t)=>{"use strict";function n(e,t){return e=e||"switchboard.actionnetwork.com",`https://${e}/offers${r(t)}`}function r(e){let t=new URLSearchParams;Object.keys(e).forEach(n=>{let r=e[n];[null,void 0].includes(r)||(Array.isArray(r)?t.set(n,r.join(",")):t.set(n,r))});let n=decodeURIComponent(t.toString());return n.length?"?"+n:""}t.sk=function(e,t,r={}){let{alternate_link:s,internal_identifiers:o}=e;return o.includes("quickslip")&&s?`${s}?context=${t}`:o.includes("app-internal")&&s?s:n(e.switchboard_domain,{...r,context:t})},t.D2=n,t.JP=r},94175:(e,t,n)=>{var r=n(59930),s=n(23550),o=n(47871),i=n(96640),c=n(20067),a=n(99969),l=n(17578),d=n(27148),u=n(93007);e.exports=function(e,t,n){t=t.length?r(t,function(e){return u(e)?function(t){return s(t,1===e.length?e[0]:e)}:e}):[d];var p=-1;return t=r(t,a(o)),c(i(e,function(e,n,s){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return l(e,t,n)})}},96640:(e,t,n)=>{var r=n(3979),s=n(27136);e.exports=function(e,t){var n=-1,o=s(e)?Array(e.length):[];return r(e,function(e,r,s){o[++n]=t(e,r,s)}),o}}},e=>{e.O(0,[3795,8230,1808,5177,1919,8966,210,4989,1048,8255,6593,8792],()=>e(e.s=38568)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.