@sticky-studio-npm/ui-core 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-bundle.es.js +3 -2
- package/dist/ui-bundle.umd.js +1 -1
- package/package.json +1 -1
package/dist/ui-bundle.es.js
CHANGED
|
@@ -5795,13 +5795,14 @@ const Ga = F(() => {
|
|
|
5795
5795
|
{
|
|
5796
5796
|
className: `sf-buy-btn ${r ? "disabled" : ""}`,
|
|
5797
5797
|
type: "button",
|
|
5798
|
-
"aria-label": `${_}
|
|
5798
|
+
"aria-label": `${_} buy`,
|
|
5799
5799
|
onClick: () => {
|
|
5800
5800
|
P(), t?.(e.id);
|
|
5801
5801
|
},
|
|
5802
5802
|
children: /* @__PURE__ */ E("span", { className: "sf-buy-btn__label", children: [
|
|
5803
5803
|
_,
|
|
5804
|
-
"
|
|
5804
|
+
" ",
|
|
5805
|
+
N("BUY")
|
|
5805
5806
|
] })
|
|
5806
5807
|
}
|
|
5807
5808
|
) })
|
package/dist/ui-bundle.umd.js
CHANGED
|
@@ -32,4 +32,4 @@ Use 'override' annotation for methods overridden by subclass.`)}}var qo=Or(0),Wo
|
|
|
32
32
|
${e?"disabled":""}
|
|
33
33
|
${n||s||r&&o?"slam-stop":""}
|
|
34
34
|
`,type:"button",onClick:t.bind(ut),onMouseUp:u,onTouchEnd:u,onKeyUp:c=>{(c.key===" "||c.key==="Enter")&&u(c)},children:p.jsx("span",{className:`spin-btn_label ${o&&r||s?"":"hidden"}`,children:s||r})})}),Kr=({onClick:e,disabled:n=!1,className:t,isActive:r})=>{const o=s=>{s.currentTarget.blur()};return p.jsx("button",{className:`${t} ${n?"disabled":""} ${r?"active":""}`,type:"button",onClick:e?()=>{n||(I(),e())}:void 0,onMouseUp:o,onTouchEnd:o,onKeyUp:s=>{(s.key===" "||s.key==="Enter")&&o(s)}})},xa=$(()=>{const{balance:e,betAmount:n,displayCurrency:t,setNextBetAmount:r,setPrevBetAmount:o}=ne,{lastWinAmount:s}=Rr,{setIsTurbo:u,isTurbo:c}=re,{open:f}=j,{activeAnteBet:v,activeBonusFeature:m,activeInReelFeature:i,setActiveAnteBet:a}=pe,{isUIVisible:l,isAutoPlayDisabled:d,isBuyBonusDisabled:h,isBetAmountLabelsDisabled:b}=ut,_=w.useMemo(()=>v?.imagePath||i?.imagePath||m?.imagePath,[v,m,i]),y=w.useCallback(()=>{Ee.playSound(bn.BuyBonusClick),v?a.call(pe,null):f.call(j,H.buyBonus)},[v,a]);return p.jsxs("div",{className:`ui-footer ${l?"":"hidden"}`,children:[p.jsxs("div",{className:"top-row",children:[p.jsxs("div",{className:"left-group",children:[p.jsx(ha,{imagePath:_,disabled:h,onClick:y,isAnteBet:!!v,isBonus:!!m}),p.jsxs("div",{className:"balance-info",children:[p.jsx(Pt,{label:N("LAST_WIN"),value:`${s} ${t}`}),p.jsx(Pt,{label:N("BALANCE"),value:`${e} ${t}`})]})]}),p.jsxs("div",{className:"bet-control",children:[p.jsx(ga,{highlighted:!!v,value:v?v.availableBets[ne.betIndex]:n,currency:t,onClick:()=>{f.call(j,H.bet)},disabled:b}),p.jsxs("div",{className:"bet-box",children:[p.jsx(Hr,{onClick:()=>{o.call(ne)},className:"bet-btn minus",disabled:b}),p.jsx(Da,{onClick:()=>console.log("Spin"),state:"active"}),p.jsx(Hr,{onClick:()=>{r.call(ne)},className:"bet-btn plus",disabled:b})]}),p.jsx(Kr,{className:"quick-spin",onClick:()=>{u.call(re,!c)},isActive:c}),p.jsx(Kr,{className:"auto-spin",onClick:()=>{f.call(j,H.autoplay)},isActive:!1,disabled:d})]})]}),p.jsx("div",{className:"bottom-row",children:p.jsxs("div",{className:"balance-info",children:[p.jsx(Pt,{label:N("LAST_WIN"),value:`${s} ${t}`}),p.jsx(Pt,{label:N("BALANCE"),value:`${e} ${t}`})]})})]})}),Ba=({onMount:e,onUnmount:n,className:t})=>{const r=w.useRef(null);return w.useEffect(()=>(r.current&&e&&e(r.current),()=>{n?.()}),[e,n]),p.jsx("div",{ref:r,className:t,style:{width:"100%",height:"100%",position:"relative"}})};function Va(e){const n=w.useRef(null);return w.useEffect(()=>{if(typeof e!="function")return;const t=r=>{const o=n.current;if(!o)return;const s=r.target;s&&(o.contains(s)||e(r))};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e]),n}const Ma=$(()=>{const{volume:e,setVolume:n}=re,[t,r]=w.useState(!1),o=Va(()=>r(!1)),s=w.useCallback(()=>{I(),re.toggleMute(),t||r(!0)},[t,r]);return p.jsxs("div",{className:"sound-controller",children:[t&&p.jsxs("div",{className:"volume-control",ref:o,children:[p.jsx("input",{type:"range",min:0,max:100,value:e,onChange:u=>n.call(re,Number(u.target.value)),className:"slider","aria-label":"Volume"}),p.jsx("span",{className:"volume-value",children:e})]}),p.jsx("button",{className:`btn-sound ${e===0?"inactive":""}`,"aria-label":"Toggle Sound",onClick:s})]})}),La=$(()=>{const{open:e}=j,{isUIVisible:n}=ut;return n?p.jsxs("div",{className:"settings-section",children:[p.jsx(Ma,{}),p.jsx("button",{className:"btn-settings","aria-label":"Open Settings",onClick:()=>{I(),e.call(j,H.settings)}})]}):null}),Pa="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='45'%20viewBox='0%200%2034%2045'%20fill='none'%3e%3cpath%20d='M7.69062%2031.7333H7.06121L9.3091%2028.0889L11.9167%2024C12.636%2022.9333%2012.666%2021.8074%2012.0066%2020.6222C11.527%2019.6741%2011.0475%2018.8148%2010.5679%2018.0444L11.1973%2017.6889C11.1973%2017.6296%2011.1674%2017.5704%2011.1074%2017.5111L10.3881%2017.6889C10.2083%2017.6296%2010.0284%2017.4222%209.8486%2017.0667C9.72871%2016.7111%209.63879%2016.5037%209.57885%2016.4444C9.15924%2016.1481%208.85952%2015.7037%208.67969%2015.1111L9.12927%2014.5778C8.94944%2014.4%208.88949%2014.2815%208.94944%2014.2222C9.06933%2013.4518%209.33907%2012.9185%209.75868%2012.6222C10.0584%2012.563%2010.0284%2012.3556%209.66877%2012L8.40994%2014.5778C7.93039%2013.9852%207.66065%2013.6%207.6007%2013.4222C7.6007%2013.1852%207.8105%2012.7704%208.23011%2012.1778C8.40994%2012%208.5598%2011.7926%208.67969%2011.5556C8.85952%2011.1407%208.94944%2010.6963%208.94944%2010.2222L8.40994%2011.3778C8.11022%2011.8519%207.69062%2011.9704%207.15112%2011.7333C7.15112%2011.4963%207.18109%2011.3481%207.24104%2011.2889C7.36093%2011.1704%207.51079%2011.0815%207.69062%2011.0222C7.87045%2010.9037%208.02031%2010.7852%208.1402%2010.6667L7.78053%2010.4C7.78053%2010.3407%207.81051%2010.2815%207.87045%2010.2222C7.87045%209.98518%207.90042%209.83704%207.96036%209.77778C7.54076%2010.1926%207.12115%2010.2222%206.70154%209.86667C6.82143%209.51111%206.88137%209.3037%206.88137%209.24444L6.97129%209.06666L7.15112%208.8C6.97129%208.85926%206.73151%208.88889%206.43179%208.88889C6.43179%208.53333%206.46177%208.32592%206.52171%208.26666C6.70154%207.79259%206.70154%207.34815%206.52171%206.93333L6.07213%207.28889C5.77241%207.46667%205.23292%207.46667%204.45365%207.28889C4.15393%206.6963%204.30379%206.13333%204.90322%205.6C4.84328%205.6%204.66345%205.62963%204.36373%205.68889C4.12395%205.68889%203.94412%205.68889%203.82423%205.68889C3.82423%206.22222%203.79426%206.60741%203.73432%206.84444C3.37465%206.25185%203.19482%205.86666%203.19482%205.68889C3.13488%205.62963%203.07494%205.6%203.01499%205.6L2.74524%205.33333L1.21667%202.66666L1.03684%202.13333C0.677179%201.00741%201.09679%200.355554%202.29566%200.177775H3.73432C3.97409%200.177775%204.42367%200.207404%205.08306%200.266663C5.80238%200.266663%206.25196%200.266663%206.43179%200.266663C7.33095%200.148146%208.05028%200.503704%208.58978%201.33333C9.18921%202.16296%2010.2982%203.94074%2011.9167%206.66667C12.0366%206.78518%2012.0965%207.05185%2012.0965%207.46666C12.8158%207.58518%2013.2354%208.14815%2013.3553%209.15555L14.0746%2010.0444L15.6032%2012.8C15.6032%2012.9185%2015.6332%2013.0074%2015.6931%2013.0667L16.5923%2014.4L17.7612%2014.0444L18.3906%2013.6C18.8102%2013.1852%2019.2298%2012.6519%2019.6494%2012L21.5377%209.06666L23.336%206.4C24.2951%204.97778%2025.0144%203.82222%2025.494%202.93333L26.0335%201.86667C26.573%201.80741%2026.8727%201.74815%2026.9326%201.68889C27.0525%201.57037%2027.0525%201.24444%2026.9326%200.71111C27.5321%200.355554%2028.5211%200.177775%2029.8998%200.177775C31.4584%200.0592581%2032.2676%200%2032.3276%200L32.5074%200.62222L32.8671%200.266663L32.957%200.35555C33.0169%200.414812%2033.0769%200.444444%2033.1368%200.444444C33.8561%200.799999%2034.0959%201.27407%2033.8561%201.86667C33.7362%202.28148%2033.3766%203.05185%2032.7771%204.17777L32.3276%204.35555L31.878%205.51111C31.0987%206.45926%2030.0497%208%2028.7309%2010.1333C27.5321%2012.0296%2026.6928%2013.3333%2026.2133%2014.0444C25.9136%2014.4%2024.6547%2016.4148%2022.4368%2020.0889L21.8973%2021.0667C21.5976%2021.7778%2021.6575%2022.4296%2022.0772%2023.0222L23.6956%2025.8667C23.6956%2025.9852%2023.7556%2026.1037%2023.8755%2026.2222C23.9954%2026.3407%2023.9654%2026.4889%2023.7856%2026.6667L24.3251%2026.9333C24.5648%2027.4074%2025.0744%2028.237%2025.8536%2029.4222C26.6329%2030.6074%2027.0525%2031.2593%2027.1124%2031.3778C27.1124%2031.4963%2027.1424%2031.5852%2027.2024%2031.6444C26.543%2031.9407%2026.4231%2032.2963%2026.8427%2032.7111C26.8427%2032.7704%2026.8127%2032.8296%2026.7528%2032.8889C26.7528%2032.9481%2026.7528%2033.0074%2026.7528%2033.0667C26.7528%2033.2444%2026.8427%2033.4222%2027.0225%2033.6C27.2024%2033.4222%2027.4122%2033.037%2027.6519%2032.4444C28.1914%2033.037%2028.4012%2033.5704%2028.2814%2034.0444C28.9407%2034.4%2029.2704%2034.9037%2029.2704%2035.5556C29.2704%2035.6741%2029.3004%2035.7333%2029.3603%2035.7333C29.6001%2035.9704%2029.9898%2036.5037%2030.5292%2037.3333L31.6082%2039.0222L31.9679%2039.5556C32.1477%2039.9704%2032.0878%2040.237%2031.7881%2040.3556H31.9679L32.5074%2040.1778L33.6763%2042.4C34.3956%2044%2033.9161%2044.8%2032.2376%2044.8C32.1777%2044.8%2032.1477%2044.7704%2032.1477%2044.7111C32.1477%2044.3556%2032.0878%2044.1778%2031.9679%2044.1778C31.7881%2044.1778%2031.6682%2044.2074%2031.6082%2044.2667C31.6082%2044.3259%2031.6082%2044.4444%2031.6082%2044.6222C31.6682%2044.7407%2031.6982%2044.8296%2031.6982%2044.8889H28.3713C27.5321%2044.8889%2026.7828%2044.4741%2026.1234%2043.6444L24.9545%2041.7778L21.8973%2036.8889L20.9082%2035.0222L20.0091%2033.5111L18.4805%2031.2C18.4805%2031.1407%2018.3307%2030.9037%2018.0309%2030.4889C17.6113%2029.9556%2017.1618%2029.8074%2016.6822%2030.0444C16.2626%2030.2222%2015.9029%2030.4593%2015.6032%2030.7556C15.3634%2031.0519%2015.1536%2031.3778%2014.9738%2031.7333L11.1973%2037.6L9.3091%2040.4444L9.12927%2040.7111V40.3556C9.06933%2040.1185%209.03935%2039.9407%209.03935%2039.8222C8.5598%2040.1185%208.40994%2040.4444%208.58978%2040.8C8.58978%2040.8593%208.67969%2040.8889%208.85952%2040.8889L7.51079%2043.2L6.70154%2042.7556C6.70154%2042.8148%206.70154%2043.0222%206.70154%2043.3778C6.76149%2043.7333%206.79146%2043.9704%206.79146%2044.0889C6.43179%2044.6815%205.80238%2044.9778%204.90322%2044.9778C4.06401%2045.037%202.92508%2044.9778%201.48642%2044.8C0.107712%2044.6222%20-0.311896%2043.8519%200.2276%2042.4889L0.407431%2042.1333L3.19482%2037.6L3.91415%2038.4889C4.03404%2037.9556%203.91415%2037.5111%203.55449%2037.1556L4.45365%2035.9111L5.17297%2034.8444L6.16205%2033.9556C6.1021%2033.5407%206.40182%2032.7704%207.06121%2031.6444V31.8222L7.42087%2032.2667L7.51079%2032.0889C7.51079%2032.0296%207.54076%2031.9407%207.6007%2031.8222V31.7333C7.90042%2031.7926%208.05028%2031.763%208.05028%2031.6444C8.11022%2031.4667%208.11022%2031.2889%208.05028%2031.1111C7.8105%2031.1111%207.69062%2031.3185%207.69062%2031.7333ZM9.03935%2030.5778C9.45896%2030.637%209.69874%2030.637%209.75868%2030.5778C9.81863%2030.5185%209.78865%2030.2519%209.66877%2029.7778H8.85952C8.97941%2030.2519%209.03935%2030.5481%209.03935%2030.6667C8.79958%2030.6667%208.61975%2030.7259%208.49986%2030.8444C8.49986%2030.9037%208.52983%2030.9926%208.58978%2031.1111C8.64972%2031.1704%208.70966%2031.1704%208.76961%2031.1111C8.8895%2031.1111%208.97941%2030.9333%209.03935%2030.5778ZM21.2679%2012.8L20.9982%2012.3556L20.099%2012.7111C20.2189%2012.9481%2020.3987%2013.2148%2020.6385%2013.5111C21.0581%2013.4518%2021.2679%2013.2148%2021.2679%2012.8ZM30.6192%2040.8C30.0797%2041.0963%2030.0197%2041.5407%2030.4393%2042.1333C30.739%2041.4815%2030.799%2041.037%2030.6192%2040.8ZM22.5267%2012.1778C22.9463%2011.7037%2023.0363%2011.2593%2022.7965%2010.8444C22.3169%2011.2593%2022.227%2011.7037%2022.5267%2012.1778ZM3.46457%205.06666L4.63348%204.44444L3.91415%204.17777L3.37466%204.97778C3.37466%205.03704%203.40463%205.06666%203.46457%205.06666ZM22.3469%2026.4L22.1671%2026.1333C21.9872%2026.4889%2021.8973%2026.7259%2021.8973%2026.8444L22.0772%2027.0222L22.257%2027.1111C22.257%2027.0519%2022.3169%2026.963%2022.4368%2026.8444C22.6167%2026.6667%2022.5867%2026.5185%2022.3469%2026.4ZM24.1452%2012.1778V11.5556C24.1452%2011.437%2024.0553%2011.3778%2023.8755%2011.3778L23.6057%2011.4667C23.6057%2011.9407%2023.7856%2012.1778%2024.1452%2012.1778ZM6.25196%2035.2889C6.25196%2035.5852%206.28194%2035.8222%206.34188%2036C6.52171%2035.7037%206.49174%2035.4667%206.25196%2035.2889ZM10.0284%208.88889L9.39902%209.77778C9.81863%209.6%2010.0284%209.3037%2010.0284%208.88889ZM28.1015%2039.5556C28.3413%2039.2%2028.3113%2038.8741%2028.0116%2038.5778C27.9517%2038.6963%2027.9217%2038.8741%2027.9217%2039.1111C27.9217%2039.1704%2027.9517%2039.2296%2028.0116%2039.2889C28.0116%2039.4074%2028.0416%2039.4963%2028.1015%2039.5556ZM29.8099%2037.0667C29.75%2037.4815%2029.8699%2037.7185%2030.1696%2037.7778C30.2895%2037.4222%2030.1696%2037.1852%2029.8099%2037.0667ZM3.01499%2042.4889C3.07494%2042.4296%203.16485%2042.4%203.28474%2042.4L3.19482%2042.2222C3.19482%2042.0444%203.19482%2041.8963%203.19482%2041.7778L3.10491%2041.8667H2.92508L3.01499%2042.0444C3.01499%2042.2222%203.01499%2042.3704%203.01499%2042.4889ZM11.2873%208.17778H11.4671C11.587%208.05926%2011.6469%207.91111%2011.6469%207.73333L11.3772%207.64444C11.3772%207.7037%2011.3472%207.79259%2011.2873%207.91111C11.2873%208.02963%2011.2873%208.11852%2011.2873%208.17778ZM29.5402%2038.8444L29.72%2038.4889V38.1333C29.6001%2038.1333%2029.5102%2038.1037%2029.4503%2038.0444C29.3304%2038.3407%2029.3603%2038.6074%2029.5402%2038.8444ZM28.641%206.31111H28.4612C28.4012%206.37037%2028.3713%206.51852%2028.3713%206.75555C28.4312%206.81481%2028.4912%206.84444%2028.5511%206.84444V6.57778L28.641%206.31111ZM28.0116%2037.1556C28.1914%2036.9185%2028.1615%2036.7111%2027.9217%2036.5333C27.9217%2036.6519%2027.9517%2036.7704%2028.0116%2036.8889V37.1556ZM24.7746%2032.7111C24.7147%2032.6518%2024.6248%2032.6222%2024.5049%2032.6222C24.5049%2032.8593%2024.4749%2033.0074%2024.415%2033.0667H24.6847C24.6847%2033.0074%2024.6847%2032.9481%2024.6847%2032.8889C24.7447%2032.8296%2024.7746%2032.7704%2024.7746%2032.7111ZM25.404%2033.9556H25.5839C25.5839%2033.8963%2025.5539%2033.8074%2025.494%2033.6889C25.494%2033.5704%2025.494%2033.5111%2025.494%2033.5111H25.404C25.3441%2033.5704%2025.2842%2033.6%2025.2242%2033.6C25.3441%2033.7185%2025.404%2033.837%2025.404%2033.9556ZM9.66877%2030.8444H9.48893V31.2889H9.57885C9.63879%2031.2296%209.66877%2031.0815%209.66877%2030.8444ZM6.52171%2041.8667L6.43179%2042.1333C6.43179%2042.1926%206.49174%2042.2815%206.61163%2042.4L6.79146%2042.2222C6.79146%2042.163%206.70154%2042.0444%206.52171%2041.8667ZM5.3528%2039.1111H5.53264C5.53264%2038.8148%205.44272%2038.637%205.26289%2038.5778C5.32283%2038.6963%205.3528%2038.8741%205.3528%2039.1111ZM29.9897%206.48889H30.2595V5.95555H30.0797L29.9897%206.22222V6.48889ZM27.2024%209.6H27.3822C27.3822%209.36296%2027.3522%209.21481%2027.2923%209.15555H27.1124C27.1124%209.39259%2027.1424%209.54074%2027.2024%209.6ZM11.3772%2027.6444V28.3556C11.557%2028.1185%2011.557%2027.8815%2011.3772%2027.6444ZM4.54356%208.08889L5.53264%207.46666L6.07213%207.28889C6.13207%207.22963%206.25196%207.2%206.43179%207.2C6.49174%207.67407%206.34188%208%205.98222%208.17778C5.62255%208.35555%205.143%208.32592%204.54356%208.08889ZM6.43179%208.88889C6.73151%208.88889%206.97129%208.85926%207.15112%208.8L6.97129%209.06666L6.88137%209.24444L6.52171%209.6C6.22199%209.77778%205.98222%209.68889%205.80238%209.33333L6.07213%209.06666H5.98222C6.04216%209.06666%206.1021%209.03703%206.16205%208.97778C6.22199%208.97778%206.31191%208.94815%206.43179%208.88889ZM6.34188%2011.0222V10.2222L7.24104%2010.4C7.06121%2010.8741%206.76149%2011.0815%206.34188%2011.0222ZM5.98222%209.06666H6.07213C5.59258%209.06666%205.29286%208.97778%205.17297%208.8C5.29286%208.8%205.44272%208.74074%205.62255%208.62222C5.80238%208.5037%205.92227%208.41481%205.98222%208.35555V9.06666Z'%20fill='white'/%3e%3c/svg%3e",Ia=$(()=>{const{betAmount:e,displayCurrency:n,setNextBetAmount:t,setPrevBetAmount:r}=ne;return p.jsxs("div",{className:"overlay-bet-controller",children:[p.jsx("div",{className:"decrease-bet",onClick:()=>{I(),r.call(ne)}}),p.jsxs("div",{className:"bet-amount",children:[e," ",n]}),p.jsx("div",{className:"increase-bet",onClick:()=>{I(),t.call(ne)}})]})}),qr=({value:e,onClick:n,active:t})=>p.jsx("div",{className:`rectLabel ${t?"current-active":""}`,onClick:()=>{I(),n(e)},children:p.jsx("span",{children:e})}),ka=$(()=>{const{betAmountRange:e,setBet:n,betAmount:t}=ne,{activeAnteBet:r}=pe,{close:o}=j;return p.jsx("div",{className:"bet-popup-container",children:e.map((s,u)=>{const c=t===s;return p.jsx(qr,{value:r?r.availableBets[u]:s,active:c,onClick:()=>{n.call(ne,s),o.call(j)}},u)})})}),kt=({checked:e,onChange:n})=>p.jsx("button",{className:`ap-toggle ${e?"ap-toggle--on":"ap-toggle--off"}`,"aria-pressed":e,onClick:()=>{I(),n(!e)},type:"button",children:p.jsx("span",{className:"ap-toggle__knob"})}),yn=({active:e,onClick:n,children:t})=>p.jsx("button",{className:`ap-limit ${e?"ap-limit--active":""}`,onClick:n?()=>{I(),n()}:void 0,type:"button",children:t}),Wr=({active:e,onClick:n,children:t})=>p.jsx("button",{className:`ap-tab ${e?"ap-tab--active":""}`,onClick:n?()=>{I(),n()}:void 0,type:"button",children:t}),ja=({value:e,placeholder:n,inputType:t="text",className:r="",autoFocus:o=!0,onSubmit:s,onCancel:u})=>{const[c,f]=w.useState(""),v=w.useRef(null),m=w.useRef(!1);w.useEffect(()=>{f(e??""),m.current=!1},[e]),w.useEffect(()=>{o&&setTimeout(()=>{v.current?.focus(),v.current?.select()},0)},[o]);const i=()=>{m.current||(m.current=!0,s(c.trim()))},a=()=>{i()},l=d=>{d.key==="Enter"?(d.preventDefault(),i(),v.current?.blur()):d.key==="Escape"&&(f(e??""),u?.(),v.current?.blur())};return p.jsx("input",{ref:v,className:`ap-limit ${r}`,type:"number",value:c,placeholder:n,onChange:d=>f(d.target.value),onBlur:a,onKeyDown:l,inputMode:t==="number"?"numeric":void 0,"aria-label":"custom limit input"})},Fa=$(()=>{const{specialFeatureSwitcherOn:e,setSpecialFeatureSwitcher:n,countRange:t,count:r,setCount:o,lossLimit:s,winLimit:u,setLossLimit:c,limitsRange:f,setWinLimit:v,setIsStarted:m}=we,[i,a]=w.useState(0),[l,d]=w.useState(!1),[h,b]=w.useState(""),_=w.useMemo(()=>i?u:s,[i,u,s]),y=w.useMemo(()=>i?v.bind(we):c.bind(we),[i,v,c]);w.useEffect(()=>{const O=_&&!f.includes(_);b(O?_:0)},[_,u]);const E=!!r&&r>0;return p.jsxs("div",{className:"autoplay-wrap",children:[p.jsx("h3",{className:"ap-title",children:N("NUMBER_OF_SPINS")}),p.jsx("div",{className:"autoplay-count",children:t.map((O,B)=>{const L=r===O;return p.jsx(qr,{value:O,active:L,onClick:o.bind(we,O)},B)})}),p.jsxs("div",{className:"ap-switch-row",children:[p.jsx("div",{className:"ap-switch-label",children:N("STOP_ON_SPECIAL")}),p.jsx("div",{className:"ap-switch-control",children:p.jsx(kt,{checked:e,onChange:O=>n.call(we,O)})})]}),p.jsxs("div",{className:"ap-tabs",children:[p.jsx(Wr,{active:!i,onClick:()=>a(0),children:N("LOSS_LIMIT")}),p.jsx(Wr,{active:!!i,onClick:()=>a(1),children:N("WIN_LIMIT")})]}),p.jsx("div",{className:"ap-limits-panel",children:p.jsx("div",{className:"ap-limits-inner",children:p.jsxs("div",{className:"ap-limit-grid",children:[f.map((O,B)=>p.jsx(yn,{active:_===O,onClick:()=>y(O),children:`${O}x ${N("BET")}`},B)),p.jsx(yn,{active:!_,onClick:()=>y(null),children:N("NO_LIMIT")}),l?p.jsx(ja,{value:""+h,inputType:"number",onSubmit:O=>{const B=O.trim();if(B===""){d(!1);return}const L=Number(B);b(L??0),y(L),d(!1)},onCancel:()=>{d(!1)}}):p.jsx(yn,{onClick:()=>{d(!0)},active:!!_&&_===Number(h),children:h?`${h}x ${N("BET")}`:N("CUSTOM")})]})})}),p.jsx("div",{className:"ap-start-row",children:p.jsx("button",{className:`ap-start-btn ${E?"":"ap-start-btn--disabled"}`,onClick:()=>{I(),m.call(we,!0)},type:"button",disabled:!E,children:N("START_AUTOPLAY")})})]})}),Xr=({onClick:e,label:n,className:t})=>p.jsxs("button",{className:`sp-action ${t}`,type:"button",onClick:()=>{I(),e()},children:[p.jsx("span",{className:"sp-action__icon","aria-hidden":"true"}),p.jsx("span",{className:"sp-action__label",children:n})]}),lt=({onToggle:e,label:n,checked:t=!1})=>p.jsxs("div",{className:"sp-row",children:[p.jsx("div",{className:"sp-switch",children:p.jsx(kt,{checked:t,onChange:()=>{e(!t)}})}),p.jsx("div",{className:"sp-label",children:n})]}),Ua=$(()=>{const{introSkip:e,spaceToSkip:n,musicOn:t,soundsOn:r,spaceToSpin:o,setSpaceToSpin:s,setIntroSkip:u,setSpaceToSkip:c,setSoundsOn:f,setMusicOn:v}=re,{open:m}=j;return p.jsxs("div",{className:"sp-wrap",children:[p.jsxs("div",{className:"sp-actions",children:[p.jsx(Xr,{onClick:m.bind(j,H.history),className:"sp-action--history",label:N("HISTORY")}),p.jsx(Xr,{onClick:j.open.bind(j,H.payTable),className:"sp-action--paytable",label:N("PAY_TABLE")})]}),p.jsx("h3",{className:"sp-section-title",children:N("AUDIO")}),p.jsxs("div",{className:"sp-rows",children:[p.jsx(lt,{onToggle:v.bind(re),checked:t,label:N("MUSIC")}),p.jsx(lt,{onToggle:f.bind(re),checked:r,label:N("SOUNDS")})]}),p.jsx("h3",{className:"sp-section-title",children:N("GAME_LAUNCH")}),p.jsx("div",{className:"sp-rows",children:p.jsx(lt,{onToggle:u.bind(re),checked:e,label:N("SKIP_INTRO")})}),p.jsx("h3",{className:"sp-section-title only-landscape",children:N("KEYBOARD")}),p.jsxs("div",{className:"sp-rows only-landscape",children:[p.jsx(lt,{onToggle:s.bind(re),checked:o,label:N("SPACE_BAR_TO_SPIN")}),p.jsx(lt,{onToggle:c.bind(re),checked:n,label:N("SPACE_BAR_TO_SKIP")})]})]})}),$a=({date:e,currencyCode:n,betAmount:t,winAmount:r})=>{const[o,s]=w.useState(!1);return p.jsxs("div",{className:`history-item ${o?"active":""}`,role:"row",children:[p.jsx("span",{className:"date-section",children:e}),p.jsxs("span",{className:"bet-section",children:[t,p.jsx("span",{className:"currency",children:n})]}),p.jsxs("span",{className:"win-section",children:[r,p.jsxs("span",{className:"currency",children:[" ",n]})]})]})},Ha=$(()=>{const{data:e}=Gr;return p.jsxs("div",{className:"history-wrap",role:"list","aria-label":"History list",children:[p.jsxs("div",{className:"history-item history-item--head",role:"row",children:[p.jsx("span",{className:"date-section",children:N("DATE")}),p.jsx("span",{className:"bet-section",children:N("BET")}),p.jsx("span",{className:"win-section",children:N("WIN")})]}),e.map((n,t)=>p.jsx($a,{date:n.date,betAmount:n.betAmount,winAmount:n.winAmount,currencyCode:n.currencyCode,id:"aa"},t))]})}),Ga=$(({item:e,type:n,onBuy:t,disabled:r})=>{const{activeAnteBet:o,setActiveAnteBet:s}=pe,u=e.title.split(`
|
|
35
|
-
`),[c,f]=w.useState(!1),[v,m]=w.useState(84),[i,a]=w.useState(0),[l,d]=w.useState(!1),h=w.useRef(null);w.useLayoutEffect(()=>{const y=h.current;if(!y)return;const E=()=>{const B=getComputedStyle(y),L=B.getPropertyValue("--max-description-height").trim();let ie=84;if(L){const D=L.match(/^(-?\d+(\.\d+)?)(px)?$/);D&&(ie=Number(D[1]))}else{const D=B.getPropertyValue("max-height").trim();D&&D.endsWith("px")&&(ie=Number(D.replace("px","")))}const We=y.scrollHeight;m(ie),a(We),d(We>ie+1)};E();const O=new ResizeObserver(E);return O.observe(y),window.addEventListener("resize",E),()=>{O.disconnect(),window.removeEventListener("resize",E)}},[e.description]);const b=c?Math.max(i,v):v,_=`${e.availableBets[ne.betIndex]} ${ne.displayCurrency}`;return p.jsxs("div",{className:"sf-card",role:"group","aria-label":u.join(" "),children:[p.jsxs("div",{className:"sf-card__title",children:[e.title,e.description&&p.jsx("div",{ref:h,className:`sf-card__description ${c?"open":""} ${l?"expandable":""}`,style:{maxHeight:`${b}px`},onClick:()=>{l&&(I(),f(y=>!y))},children:p.jsx("div",{children:e.description})})]}),p.jsx("div",{className:"sf-card__content",children:p.jsx("div",{className:`sf-card__image-wrap ${c?"hidden":""}`,children:e.imagePath?p.jsx("img",{src:e.imagePath,alt:u[0]}):p.jsx("div",{className:"sf-card__image-placeholder"})})}),p.jsx("div",{className:`sf-card__bottom ${n}`,children:n==="ante"?p.jsxs("div",{className:"sf-card__ante-cluster",children:[p.jsx("div",{className:"sf-card__price-wrap",children:p.jsx("span",{className:"sf-card__price",children:_})}),p.jsx("div",{className:`sf-card__toggle ${r?"disabled":""}`,children:p.jsx(kt,{checked:o===e,onChange:y=>s.call(pe,y?e.id:null)})})]}):p.jsx("button",{className:`sf-buy-btn ${r?"disabled":""}`,type:"button","aria-label":`${_}
|
|
35
|
+
`),[c,f]=w.useState(!1),[v,m]=w.useState(84),[i,a]=w.useState(0),[l,d]=w.useState(!1),h=w.useRef(null);w.useLayoutEffect(()=>{const y=h.current;if(!y)return;const E=()=>{const B=getComputedStyle(y),L=B.getPropertyValue("--max-description-height").trim();let ie=84;if(L){const D=L.match(/^(-?\d+(\.\d+)?)(px)?$/);D&&(ie=Number(D[1]))}else{const D=B.getPropertyValue("max-height").trim();D&&D.endsWith("px")&&(ie=Number(D.replace("px","")))}const We=y.scrollHeight;m(ie),a(We),d(We>ie+1)};E();const O=new ResizeObserver(E);return O.observe(y),window.addEventListener("resize",E),()=>{O.disconnect(),window.removeEventListener("resize",E)}},[e.description]);const b=c?Math.max(i,v):v,_=`${e.availableBets[ne.betIndex]} ${ne.displayCurrency}`;return p.jsxs("div",{className:"sf-card",role:"group","aria-label":u.join(" "),children:[p.jsxs("div",{className:"sf-card__title",children:[e.title,e.description&&p.jsx("div",{ref:h,className:`sf-card__description ${c?"open":""} ${l?"expandable":""}`,style:{maxHeight:`${b}px`},onClick:()=>{l&&(I(),f(y=>!y))},children:p.jsx("div",{children:e.description})})]}),p.jsx("div",{className:"sf-card__content",children:p.jsx("div",{className:`sf-card__image-wrap ${c?"hidden":""}`,children:e.imagePath?p.jsx("img",{src:e.imagePath,alt:u[0]}):p.jsx("div",{className:"sf-card__image-placeholder"})})}),p.jsx("div",{className:`sf-card__bottom ${n}`,children:n==="ante"?p.jsxs("div",{className:"sf-card__ante-cluster",children:[p.jsx("div",{className:"sf-card__price-wrap",children:p.jsx("span",{className:"sf-card__price",children:_})}),p.jsx("div",{className:`sf-card__toggle ${r?"disabled":""}`,children:p.jsx(kt,{checked:o===e,onChange:y=>s.call(pe,y?e.id:null)})})]}):p.jsx("button",{className:`sf-buy-btn ${r?"disabled":""}`,type:"button","aria-label":`${_} buy`,onClick:()=>{I(),t?.(e.id)},children:p.jsxs("span",{className:"sf-buy-btn__label",children:[_," ",N("BUY")]})})})]})}),An=({features:e,type:n,title:t,onBuy:r,disabled:o})=>p.jsxs(p.Fragment,{children:[p.jsx("h2",{className:"sf-section-title",children:t}),p.jsx("div",{className:"sf-grid",children:e.map((s,u)=>p.jsx(Ga,{item:s,type:n,onBuy:r,disabled:o},u))})]}),Ra=$(()=>{const{anteBets:e,inReelFeatures:n,bonusFeatures:t,buyHandler:r,activeAnteBet:o}=pe;return p.jsxs("div",{className:"sf-wrap",children:[e.length?p.jsx(An,{features:e,type:It.ante,title:N("ANTE_BETS")},0):null,n.length?p.jsx(An,{features:n,type:It.buy,title:"Reel Features",onBuy:r.bind(pe)},1):null,t.length?p.jsx(An,{features:t,type:It.buy,title:N("BONUS"),onBuy:r.bind(pe),disabled:!!o},2):null]})}),Ka=$(({payTableComponent:e})=>{const{activePopup:n}=j;if(!n)return null;const t=w.useMemo(()=>{switch(n){case H.bet:return ka;case H.autoplay:return Fa;case H.settings:return Ua;case H.history:return Ha;case H.buyBonus:return Ra;case H.payTable:return e;default:return null}},[n]);return t?p.jsx(t,{}):null}),qa=({configs:e,text:n,onClick:t})=>p.jsx("button",{type:"button",className:"additional-btn",style:{"--btn-bg":e?.background??"transparent","--btn-color":e?.color??"inherit"},onClick:typeof t=="function"?()=>{I(),t()}:void 0,children:n}),Wa=$(()=>{const{activeDialog:e}=st;return e?p.jsxs("div",{className:"dialogs-wrap","aria-live":"polite",children:[p.jsx("span",{className:"title",children:e?.title}),e?.imagePath&&p.jsx("img",{className:"dialog-image",src:e.imagePath,alt:e.title??"dialog image"}),p.jsx("span",{className:"message",children:e?.message}),e.toggle&&p.jsx(kt,{checked:e.toggle.value,onChange:()=>e.toggle?.onClick()}),p.jsx("div",{className:"additional-btns",children:e?.buttons?.map((n,t)=>p.jsx(qa,{configs:n.configs,text:n.text,onClick:n.onClick},t))})]}):null}),Xa=$(({payTableComponent:e})=>{const n=j.activePopup,t=st.activeDialog;if(!n&&!t)return null;const r=s=>{s.target===s.currentTarget&&(I(),j.close(),st.close())},o=()=>{I(),j.close(),st.close()};return p.jsxs("div",{className:`overlay ${t?"dialog":""}`,onClick:r,role:"presentation",children:[!t&&p.jsxs("header",{className:"overlay-header",children:[typeof n=="string"&&p.jsx("span",{className:"popup-title",children:N(n.toUpperCase()).toUpperCase()}),p.jsx("div",{className:"overlay-close","aria-label":"Close",onClick:o,children:p.jsx("img",{src:Pa,alt:"Close"})})]}),p.jsxs("div",{className:"overlay-body",children:[p.jsxs("div",{className:"overlay-content",role:"dialog","aria-modal":"true",children:[t&&p.jsx(Wa,{}),!t&&n&&p.jsx(Ka,{payTableComponent:e})]}),!t&&n===H.buyBonus&&p.jsx(Ia,{})]})]})});function Za({payTableComponent:e}){return p.jsxs("div",{className:"app",children:[p.jsxs("div",{className:"game-container",children:[p.jsx(Ba,{}),p.jsx(La,{}),p.jsx(xa,{})]}),p.jsx(Xa,{payTableComponent:e})]})}const Ya=()=>null;function za(e,n=Ya,t=r=>r){if(!e){console.error("element not found");return}va(t),Jr.createRoot(e).render(p.jsx(w.StrictMode,{children:p.jsx(Za,{payTableComponent:n})}))}x.BASE_SOUND_NAMES=bn,x.DEFAULT_BG_MUSIC_KEY=gn,x.LOCAL_STORAGE_ITEM_NAMES=F,x.PopupNames=H,x.autoplayStore=we,x.betStore=ne,x.bonusFeatureTypes=It,x.bonusStore=pe,x.createUi=za,x.defaultDialogButtonsConfigs=hn,x.defaultDialogs=Ur,x.defaultDialogsNames=Fr,x.dialogStore=st,x.historyStore=Gr,x.popupStore=j,x.resultStore=Rr,x.settingsStore=re,x.soundService=Ee,x.uiStore=ut,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
|