PageSourceSearch

https://www.northstarbets.ca/no_brand_candy-theme/js/app-out/respo…gle-bet-limit.4286b3954795bad354ed.chunk.js

js northstarbets.ca collected 2026-09-24 10:10:22 UTC 5,276 bytes, 2 lines download raw bytes

1export const __webpack_id__=9410;export const __webpack_ids__=[9410];export const __webpack_modules__={97320:(e,t,i)=>{i.r(t),i.d(t,{ResponsibleGamingSingleBetLimit:()=>Z,ResponsibleGamingSingleBetLimitBare:()=>V,default:()=>q});var n=i(67865),a=i.n(n),s=i(10782),r=i(15245),m=i(96540),l=i(15424),c=i(30514),o=i(2040),d=i(27411),g=i(46792),p=i(75132),u=i(37489),b=i(91800),_=i(13646),L=i(57182),f=i(53108),y=i(83312),E=i(27474);const h=({translate:e,refetch:t})=>{const i=(0,f.Z)(),n=(0,y.a)();return(0,m.useCallback)((async({limit:a="0"})=>{try{await(({amount:e})=>(0,E.t)({ID:35793,responses:[35794,35795],description:"Set Player Single Bet Limits",amount:e}))({amount:a}),n(e("setPlayerLimitSuccess"),{variant:"success"}),t(Date.now())}catch(t){return i(t,e("generic.error"))}}),[t,n,e,i])},S=()=>(0,E.t)({ID:35796,responses:[35798,35797],description:"Get Player Single Bet Limits"});var N=i(68767);const C=({data:e})=>{const{configuration:t={},limits:i=[]}=e;return{configuration:t,limit:i.find((e=>!e.pending))||{},pendingLimits:i.filter((e=>e.pending))||[]}};var v=i(64659),I=i(20214);const G=({action:e,setIsLoading:t,setConfirmError:i,fetchLimits:n}
1)=>{const a=(0,y.a)(),s=(0,I.Z)(),r=(0,v.c3)("playtech.mobile.system.responsibleGaming.limits.");return(0,m.useCallback)((async()=>{t(!0),i("");try{await(e=>(0,E.t)({ID:35799,responses:[35800,35801],description:"Accept Player RG Limits",action:e,timePeriods:[],limitType:"singleBet"}))(e),a(r(`${e}Success`),{variant:"success"}),n(Date.now())}catch(e){const n=s(e);i(n),t(!1)}}),[e,t,i,n,s,r,a])},B={pending:"PendingLimitsItem__pending--2qk",pendingInfo:"PendingLimitsItem__pendingInfo--KR5",date:"PendingLimitsItem__date--2Vb",pendingActions:"PendingLimitsItem__pendingActions--2Iu",btn:"PendingLimitsItem__btn--hGD"},P=({limit:e,setConfirmError:t,isFormLoading:i,fetchLimits:n})=>{const a=(0,g.k)(),[s,r]=(0,m.useState)(!1),c=(0,v.c3)("playtech.mobile.system.responsibleGaming.limits."),{startDate:o,limit:{amount:d,currencyCode:p}={},acceptanceNeeded:u}=e,b=0===u||1===u,_={fetchLimits:n,setIsLoading:r,setConfirmError:t},L=G({action:"accept",..._}),f=G({action:"decline",..._});return m.createElement("div",{className:B.pending},m.createElement("div",{className:B.pendingInfo},m.createElement("span",{className:B.text},`${c("to")} ${a.formatCurrency(d,{currencyCode:p})}`),m.createElement("span",{className:B.date},o&&a.getDateTimeShort(a.parseImsDate(o)))),b&&m.createElement("div",{className:B.pendingActions},m.createElement(l.$,{type:"button",color:"negative",onClick:f,className:B.btn,disabled:s||i},c("decline")),m.createElement(l.$,{type:"button",onClick:L,className:B.btn,disabled:s||0===u||i},c("accept"))))},R="PendingLimits__container--39y",k="PendingLimits__title--2ed",w="PendingLimits__error--3Mr",D="PendingLimits__limits--3s1",$=({fetchLimits:e,limits:t,translate:i,isFormLoading:n})=>{const[a,s]=(0,m.useState)("");return m.createElement("div",{className:R},m.createElement("h3",{className:k},i("title.pending")),m.createElement("div",{className:D},a&&m.createElement(b.K,{error:a,className:w,animate:!0}),t.map(((t,i)=>m.createElement(P,{key:i,limit:t,fetchLimits:e,isFormLoading:n,setConfirmError:s})))))},A="ResponsibleGamingSingleBetLimit__container--1Yr",F="ResponsibleGamingSingleBetLimit__title--UQU",x="ResponsibleGamingSingleBetLimit__controls--2W1",K="ResponsibleGamingSingleBetLimit__submit--3EA",M="ResponsibleGamingSingleBetLimit__description--1fm",T="ResponsibleGamingSingleBetLimit__form--7yR",U="ResponsibleGamingSingleBetLimit__field--2CG",V=()=>{const e=(0,d.a)(),t=(0,g.k)(),i=(0,L.N)(),n=(()=>({limit:[(0,N.money)()]}))(),[a,u]=(0,m.useState)(null),{showComponentError:f,showComponentMessage:y}=(0,_.z)(),[{isLoading:E,error:v,data:I},G]=(0,o.w)({fetch:S,onResponse:C}),B=h({translate:i,refetch:G});if((0,m.useEffect)((()=>{if(!e())return;if(v)return void f(i("generic.error"));if(!I)return;const{configuration:t}=I;t?.enabled?u((({limit:e,pendingLimits:t})=>{if(!e)return{};const i=e.limit?.amount;return{...i?{limit:i}:{},pendingLimits:t}})(I)):y(i("notEnabled"))}),[i,e,u,f,I,y,v]),!I)return m.createElement(c.a,null);const{limit:P,pendingLimits:R}=I;return m.createElement("div",{className:`${A} cms-responsible-gaming-single-bet-limit`},m.createElement("h3",{className:F},i("title")),m.createElement(r.F,{tagName:"p",t:i,tKey:"description",className:M}),m.createElement(s.A,{onSubmit:B,initialValues:a,validationConfig:n,fieldsToReplaceComma:["limit"],render:({submitting:e,pristine:n,submitError:a,handleSubmit:s})=>m.createElement("form",{className:T,onSubmit:e=>e.preventDefault()},a&&m.createElement(b.K,{error:a,animate:!0}),m.createElement(p.p,{type:"text",name:"limit",inputMode:"decimal",className:U,label:i("limit.label"),placeholder:i("limit.placeholder"),currencySymbol:t.getCurrencySymbol(P?.currencyCode),"aria-label":i(["limit.label","limit.placeholder","playtech.mobile.system.input.aria-label"])}),Boolean(R.length)&&m.createElement($,{fetchLimits:G,translate:i,limits:R,isFormLoading:e||E}),m.createElement("div",{className:x},m.createElement(l.$,{type:"button",onClick:s,className:K,disabled:e||n||E},i("submit"))))}))},Z=a()((0,u.m)({isForLoggedIn:!0}))(V),q=Z}};
2//# sourceMappingURL=responsible-gaming-single-bet-limit.4286b3954795bad354ed.chunk.js.map

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.