1import{aA as j,A as o,l as f,r as O,a3 as q,P as T,L as M,bV as po,c6 as mo,ft as uo}from"./index.40d342e9.1791468131499.js";import{l as bo}from"./index.56f327d8.1791468131499.js";import{u as W,r as vo}from"./agentation.5bb278ab.1791468131499.js";import{A as _o,a as fo,b as ho,c as xo}from"./index.adec3b78.1791468131499.js";import Z from"./popup-wrapper_beta.33bb2d73.1791468131499.js";import{S as z,O as B}from"./option_beta.9f11821c.1791468131499.js";import{T as J}from"./table.bba472df.1791468131499.js";import oo from"./SmallLoading.91d9ae4e.1791468131499.js";import K from"./button.2fd19070.1791468131499.js";import{b as Po,c as Co,d as go,e as eo}from"./seamless-hook.072ab5c5.1791468131499.js";import I from"./text.8a5578a3.1791468131499.js";import{e as Q,Q as jo,bG as U}from"./store.016afc78.1791468131499.js";import R from"./image-helper.16e71c4e.1791468131499.js";import No from"./transaction-button.selector.13d39adc.1791468131499.js";import{I as X}from"./input.4e484b26.1791468131499.js";import"./index.cbdc45e1.1791468131499.js";import"./index.8c0b8555.1791468131499.js";import"./index.e55debec.1791468131499.js";import"./index.d9c981e0.1791468131499.js";import"./index.66ef353b.1791468131499.js";import"./warning.883c7a3c.1791468131499.js";import"./selector.4b536653.1791468131499.js";import"./Translation.47eeeadc.1791468131499.js";import"./withTranslation.a6818040.1791468131499.js";import"./floatingNotification.constant.27687fe7.1791468131499.js";import"./dayjs.min.d5a1da16.1791468131499.js";import"./matchPredictionModules.59d916eb.1791468131499.js";import"./oddsFeedModules.090fa001.1791468131499.js";import"./promotionModules.50dc86d8.1791468131499.js";import"./index.d73faf44.1791468131499.js";import"./miniLazyComponent.41633251.1791468131499.js";const yo="_confirmationPopupWrapper_1tqab_1",Do="_confirmationPopupContent_1tqab_20",Ao="_confirmationPopupContentBody_1tqab_26",So="_confirmationPopupContentTitle_1tqab_39",Io="_confirmationPopupContentDescription_1tqab_48",$o="_confirmationPopupContentFooter_1tqab_58",wo="_cancelButton_1tqab_66",N={confirmationPopupWrapper:yo,confirmationPopupContent:Do,confirmationPopupContentBody:Ao,confirmationPopupContentTitle:So,confirmationPopupContentDescription:Io,confirmationPopupContentFooter:$o,cancelButton:wo},to=({chilrdren:a,customClassName:i,isOpen:t,title:p,description:r,onConfirm:v,onCancel:_,onClose:d})=>{const{t:n}=W("promotion"),b={submitProps:{id:"add-bank-btn",className:"standard-submit-button",buttonText:n("global:entity.action.confirm","Confirm"),hideButtonImg:!0,onClickFunction:v},cancelProps:{id:"cancel-bank-btn",className:`standard-submit-button ${N?.cancelButton}`,buttonText:n("global:entity.action.cancel","Cancel"),hideButtonImg:!0,onClickFunction:_}};return o.jsxs(Z,{className:`${i} ${N?.confirmationPopupWrapper}`,isOpen:t,version:2,closeFunc:d,children:[o.jsx("div",{className:"standard-popup-modal-header",children:o.jsx("div",{id:"close-btn",className:"standard-modal-close",onClick:()=>d&&d(),children:o.jsx(R,{displaySVG:"cross-icon",isSVG:!0,svgType:"SVGTransfer"})})}),o.jsxs("div",{className:`${N?.confirmationPopupContent}`,children:[a||o.jsxs("div",{className:`${N?.confirmationPopupContentBody}`,children:[o.jsx("div",{className:`${N?.confirmationPopupContentTitle}`,children:p}),o.jsx("div",{className:`${N?.confirmationPopupContentDescription}`,children:r})]}),o.jsx("div",{className:`${N?.confirmationPopupContentFooter}`,children:o.jsx(No,{...b})})]})]})};to.propTypes={chilrdren:j.node,customClassName:j.string,isOpen:j.bool.isRequired,title:j.string,description:j.string,onConfirm:j.func.isRequired,onCancel:j.func.isRequired};const To="_promoCodeDetailPopup_tced2_2",Wo="_seamlessPromoHeader_tced2_12",Lo="_promoCodeFormFieldContainer_tced2_21",Fo="_promoCodeFormFieldWrapper_tced2_32",Vo="_promoCodeDropdown_tced2_41",Bo="_promoCodeWrapper_tced2_50",Oo="_promoCodeFormFieldContainerTutorial_tced2_50",Mo="_specialPromoCodeWrapper_tced2_59",Ro="_label_tced2_63",ko="_viewPromoButtonTutorial_tced2_67",Eo="_viewPromoButton_tced2_67",Go="_applyPromoButton_tced2_77",Ho="_promoHeaderTitle_tced2_105",qo="_bonusDetailsTableTitle_tced2_106",Ko="_currencySymbol_tced2_122",Qo="_promoContentContainer_tced2_134",Uo="_bonusDetailsTableWrapper_tced2_139",Yo="_productDetailsTableWrapper_tced2_140",zo="_promoInfoTable_tced2_214",Jo="_promoInfoRow_tced2_224",Xo="_promoInfoLabel_tced2_233",Zo="_promoInfoValue_tced2_234",oe="_fullWidth_tced2_259",ee="_termsLink_tced2_263",te="_promoCodeValidationContainer_tced2_277",ne="_validInvalidImg_tced2_282",re="_header_tced2_324",ae="_slideDown_tced2_1",se="_slideUp_tced2_1",ie="_depositAmountWrapper_tced2_362",le="_depositAmountTitle_tced2_376",ce="_depositAmountCalculationWrapper_tced2_387",pe="_depositAmountInputWrapper_tced2_399",me="_depositAmountInput_tced2_399",de="_bonusAmountWrapper_tced2_447",ue="_turnoverAmountWrapper_tced2_448",be="_amountLabel_tced2_456",ve="_amountValue_tced2_460",_e="_depositAmountInfo_tced2_479",fe="_calculationResultWrapper_tced2_500",e={promoCodeDetailPo
1pup:To,seamlessPromoHeader:Wo,promoCodeFormFieldContainer:Lo,promoCodeFormFieldWrapper:Fo,promoCodeDropdown:Vo,promoCodeWrapper:Bo,promoCodeFormFieldContainerTutorial:Oo,specialPromoCodeWrapper:Mo,label:Ro,viewPromoButtonTutorial:ko,viewPromoButton:Eo,applyPromoButton:Go,promoHeaderTitle:Ho,bonusDetailsTableTitle:qo,currencySymbol:Ko,promoContentContainer:Qo,bonusDetailsTableWrapper:Uo,productDetailsTableWrapper:Yo,promoInfoTable:zo,promoInfoRow:Jo,promoInfoLabel:Xo,promoInfoValue:Zo,fullWidth:oe,termsLink:ee,promoCodeValidationContainer:te,validInvalidImg:ne,"promo-accordion-container":"_promo-accordion-container_tced2_288","promo-accordion-wrapper":"_promo-accordion-wrapper_tced2_288","promo-accordion-root":"_promo-accordion-root_tced2_292","promo-accordion-item":"_promo-accordion-item_tced2_299","promo-accordion-trigger":"_promo-accordion-trigger_tced2_304","drop-down-arrow":"_drop-down-arrow_tced2_304",header:re,"promo-accordion-content":"_promo-accordion-content_tced2_343",slideDown:ae,slideUp:se,depositAmountWrapper:ie,depositAmountTitle:le,depositAmountCalculationWrapper:ce,depositAmountInputWrapper:pe,depositAmountInput:me,bonusAmountWrapper:de,turnoverAmountWrapper:ue,amountLabel:be,amountValue:ve,depositAmountInfo:_e,calculationResultWrapper:fe},he=a=>a?.code||"",xe=a=>Object.keys(a||{})?.length>0,Pe=(a,i)=>a?i?.bonusName:null,Ce=(a,i,t)=>a||(i&&t?.specialCode?t?.bonusName:null),ge=({t:a,seamlessPromotionsList:i,isPendingPromoQueue:t,selectedPromoCode:p})=>{const r=(i||[]).find(v=>v?.code===p);return!p&&t?a("global:global.form.pleaseSelect","--- Please Select ---"):r?r.bonusName:!i||i.length<=0?a("reports:reports.noDataAvailable","No Data Available"):a("global:global.form.pleaseSelect","--- Please Select ---")},je=({seamlessPromotionsList:a,selectedPromoCode:i,pendingPromoCodeName:t,appliedSpecialPromoCode:p,memberPromotionStatus:r,isPendingPromoQueue:v,isLoadingSeamlessPromotionQueue:_,isSpecialCodeDisabled:d})=>{const n=a?.length>0&&i!=="",b=t!==null&&p!==null,m=r?.length>0;return n||b||v||m||_||d},Ne=({seamlessPromotionsList:a,selectedPromoCode:i,isLoadingSeamlessPromotionQueue:t,isPromoCodeDisabled:p})=>a?.length<=0&&!i||t||p,tt=({depositAmount:a,selectedSeamlessPromoObj:i=null,specialPromoCode:t="",isValidSpecialPromoCode:p=!0,onSeamlessPromoCodeChange:r,isPromoCodeDisabled:v,isSpecialCodeDisabled:_,showApplyPromoButton:d=!1,onApplyCryptoPromo:n,isAppliedPromo:b=!1})=>{const m=f.useDispatch(),{t:s}=W(["transaction","global","settings","reports","promotion"]),y=f.useSelector(c=>c?.user),C=f.useSelector(c=>c?.seamless),h=f.useSelector(c=>c?.tutorialSlice),D=f.useSelector(c=>c?.screen);i=C?.selectedSeamlessPromoObj?.fromSpecialForYou?C?.selectedSeamlessPromoObj:i;const{memberPromotionStatus:L}=Po(),{data:A,isLoading:g}=Co(v),{seamlessPromotionsList:u,isLoadingSeamlessPromotion:k}=go(),E=y?.account,{isApplyingPromotionId:$}=C,x=he(i),w=xe(A),F=Pe(w,A),P=Ce(t,w,A);O.useEffect(()=>{u?.length>0&&m(q.updateSeamlessPromoList(u))},[m,u]),O.useEffect(()=>{if($&&u?.length>0){const c=u?.find(S=>S?.id===$);c&&(r&&r({selectedSeamlessPromoObj:c,specialPromoCode:"",isValidSpecialPromoCode:!0}),m(q.updateSelectedSeamlessPromo(c)))}},[$,u]);const G=ge({t:s,seamlessPromotionsList:u,isPendingPromoQueue:w,selectedPromoCode:x}),V=async(c,S,io)=>{const{isValidSpecialPromoCode:lo,specialPromoInfo:co}=await uo(c,S,io);r&&r({selectedSeamlessPromoObj:i,specialPromoCode:S,isValidSpecialPromoCode:lo,specialPromo:co})},H=je({seamlessPromotionsList:u,selectedPromoCode:x,pendingPromoCodeName:F,appliedSpecialPromoCode:!1,memberPromotionStatus:L,isLoadingSeamlessPromotionQueue:g,isSpecialCodeDisabled:_}),l=Ne({seamlessPromotionsList:u,selectedPromoCode:x,isLoadingSeamlessPromotionQueue:g,isPromoCodeDisabled:v,isAppliedPromo:b}),no=()=>{r&&r({selectedSeamlessPromoObj:null,specialPromoCode:"",isValidSpecialPromoCode:!0})},ro=c=>{r&&r({selectedSeamlessPromoObj:c,specialPromoCode:"",isValidSpecialPromoCode:!0}),m(q.updateSelectedSeamlessPromo(c))},ao=async c=>{r&&r({selectedSeamlessPromoObj:i,specialPromoCode:c,isValidSpecialPromoCode:p}),await V(E,c,a)},Y=()=>!u||u.length<=0,so=()=>o.jsxs("div",{className:`${e.promoCodeWrapper} standard-form-field`,children:[o.jsxs("div",{id:"promoCodeFormFieldContainer",className:e.promoCodeFormFieldContainerTutorial,children:[o.jsx("label",{className:`${e.label} standard-label`,children:s("transaction:transaction.transfer.promoCodeOptional2","Promo Code (Optional)")}),o.jsxs("div",{className:`${e.promoCodeFormFieldWrapper} standard-form-field-wrapper`,children:[o.jsx(z,{name:"promo-code",id:"promoCode",selectedLabel:s("global:global.form.pleaseSelect","--- Please Select ---"),disabled:!1,showLoading:!1,children:o.jsx(B,{id:"promoOption",className:"active",disabled:!0,optionLabel:s("global:global.form.pleaseSelect","--- Please Select ---")})}),o.jsx("div",{})]})]}),o.jsx("div",{className:"view-promo-info-container",id:"viewPromoInfoContainer",children:o.jsx(K,{className:`${e.viewPromoButton} ${e.viewPromoButtonTutorial}`,children:D?.isMobile?o.jsx(I,{textKey:"global:entity.action.view",children:s("global:entity.action.view","View")}):o.jsx(I,{textKey:"settings:settings.viewInfo",children:s("settings:settings.viewInfo","Vie
1w info")})})})]});return o.jsx(o.Fragment,{children:o.jsxs("div",{className:`${e.promoCodeFormFieldContainer} standard-form-container`,children:[h?.isTourOpen?so():o.jsxs("div",{className:`${e.promoCodeWrapper} standard-form-field`,id:"promoCodeFormFieldContainer",children:[o.jsx("label",{className:`${e.label} standard-label`,children:s("transaction:transaction.transfer.promoCodeOptional2","Promo Code (Optional)")}),o.jsxs("div",{className:`${e.promoCodeFormFieldWrapper} standard-form-field-wrapper`,children:[o.jsx(z,{name:"promo-code",selectedLabel:i?.fromSpecialForYou?i?.bonusName:G,disabled:l||b,showLoading:g,children:u?.length>0?o.jsxs(o.Fragment,{children:[o.jsx(B,{optionLabel:s("global:global.form.pleaseSelect","--- Please Select ---"),onClickFunction:()=>{no()}}),(u||[]).map(c=>o.jsx(B,{className:x===c.code?"active":"",optionLabel:c.bonusName,onClickFunction:()=>{ro(c)}},c.id))]}):k?o.jsx(oo,{}):o.jsx(B,{className:"disabled",optionLabel:s("reports:reports.noDataAvailable","No Data Available")})}),o.jsx("div",{}),x&&o.jsx("div",{className:"view-promo-info-container",children:o.jsx(K,{id:"viewPromoButton",className:e.viewPromoButton,onClick:()=>{m(Q({item:T.PROMO_CODE_DETAIL,isVisible:!0})),m(jo({item:T.PROMO_CODE_DETAIL,config:{prefilledDepositAmount:parseFloat(a)}}))},children:D?.isMobile?o.jsx(I,{textKey:"global:entity.action.view",children:s("global:entity.action.view","View")}):o.jsx(I,{textKey:"settings:settings.viewInfo",children:s("settings:settings.viewInfo","View info")})})}),d&&!Y()&&o.jsx("div",{className:"apply-promo-container",children:o.jsx(K,{className:e.applyPromoButton,disabled:Y()||!x||b,onClick:()=>{n?.()},children:b?o.jsxs(o.Fragment,{children:[o.jsx(M,{className:"promo-info-icon",src:"/public/html/images/general/checkmark.svg",isSvg:!0}),o.jsx(I,{textKey:"promotion:promotion.applied",children:s("promotion:promotion.applied","Applied")})]}):o.jsx(o.Fragment,{children:o.jsx(I,{textKey:"promotion:promotion.apply2",children:s("promotion:promotion.apply2","Apply")})})})})]})]}),o.jsxs("div",{className:`${e.specialPromoCodeWrapper} standard-form-field`,id:"specialPromoCodeWrapper",children:[o.jsx("label",{className:`${e.label} standard-label`,children:s("transaction:transaction.transfer.specialCodeOptional","Special Code (Optional)")}),o.jsx("div",{className:"standard-form-field-wrapper",children:o.jsx(bo.DebounceInput,{className:"standard-input",type:"text",placeholder:s("transaction:transaction.transfer.specialCode","Special Code"),disabled:H,value:P,onChange:async c=>{const{value:S}=c.target;await ao(S)}})}),P&&P!==""&&!p&&o.jsxs("div",{className:`${e.promoCodeValidationContainer}`,children:[o.jsx(R,{displaySVG:"beta-invalid",className:`${e.validInvalidImg}`,isSVG:!0,svgType:"SVGTransfer"}),o.jsx("span",{className:"specialCodeInvalid",children:s("transaction:transaction.transfer.promocode-invalid","Invalid Promo Code")})]}),P&&P!==""&&p&&o.jsxs("div",{className:`${e.promoCodeValidationContainer}`,children:[o.jsx(R,{displayImg:po.specialPromoCodeValid,className:`${e.validInvalidImg}`,style:{cursor:"pointer"},alt:"valid.png"}),o.jsx("span",{className:"specialCodeValid",children:s("transaction:transaction.transfer.promocode-valid","Valid Promo Code")})]})]})]})})},nt=()=>{const a=f.useDispatch(),i=vo.useHistory(),{t}=W("promotion"),{popupModalReducer:p,language:r,screen:v,menuSlice:_}=f.useSelector(l=>({popupModalReducer:l.popupModalReducer,language:l.language,screen:l.screen,menuSlice:l.menuSlice})),{selectedSeamlessPromoObj:d}=f.useSelector(l=>l?.seamless);let{seamlessPromoInfo:n}=eo({promoId:d?.promoData?.walletType?.toString()==="0"?null:d?.id,subCategoryMenus:_?.processedBaseMenuSettings?.subCategoryMenus,t});n=n||d?.promoData;const b=T.PROMO_CODE_DETAIL,m=p?.config?.[b]?.prefilledDepositAmount,[s,y]=O.useState(m),C=p?.items?.[b],h=!n,D=n?.categoryProvidersMap?Object.keys(n.categoryProvidersMap):[],L=D?.length>0,A=s*n?.rate/100,g=s<n?.minDeposit?0:n?.maxBonus?Math.min(A,n?.maxBonus):A,u=s<n?.minDeposit?0:(s+g)*n?.targetMultiplier,k=[{title:t("promotion:promotion.promoDetail.minDeposit","Min Deposit"),dataIndex:"minDeposit"},{title:t("promotion:promotion.promoDetail.rate","Bonus"),dataIndex:"bonus"},{title:t("promotion:promotion.promoDetail.maxBonus","Max Bonus"),dataIndex:"maxBonus"},{title:t("promotion:promotion.promoDetail.turnover","Turnover"),dataIndex:"turnover"},{title:t("promotion:promotion.promoDetail.validityPeriod","Validity Period"),dataIndex:"validityPeriod"}],E=!h&&L?[{minDeposit:r?.currencyLang+" "+window.SPL_Other.formatAmou
1nt(n?.minDeposit),bonus:n?.rate,maxBonus:r?.currencyLang+" "+window.SPL_Other.formatAmount(n?.maxBonus),turnover:(n?.targetMultiplier||"0")+"x",validityPeriod:n?.validity?`${n?.validity} ${t("promotion:promotion.days","day(s)")}`:"-"}]:[],$=[{title:t("promotion:promotion.promoDetail.products","Products"),dataIndex:"products"},{title:t("promotion:promotion.promoDetail.applicable-providers","Applicable Providers"),dataIndex:"applicableProviders"}],x=h?[]:[{label:t("promotion:promotion.promoDetail.minDeposit","Min Deposit"),value:`${r?.currencyLang} ${window.SPL_Other.formatAmount(n?.minDeposit)}`},{label:t("promotion:promotion.promoDetail.rate","Bonus"),value:`${n?.rate}%`},{label:t("promotion:promotion.promoDetail.maxBonus","Max Bonus"),value:`${r?.currencyLang} ${window.SPL_Other.formatAmount(n?.maxBonus)}`},{label:t("promotion:promotion.promoDetail.turnover","Turnover"),value:`${n?.targetMultiplier||"0"}x`},{label:t("promotion:promotion.promoDetail.validityPeriod","Validity Period"),value:n?.validity?`${n?.validity} ${t("promotion:promotion.days","day(s)")}`:"-"}],w=!h&&L?(D||[]).map(l=>({products:t(U(l)),applicableProviders:n.categoryProvidersMap[l]||"-"})):[],F=h?[]:(D||[]).map(l=>({label:t(U(l)),value:n.categoryProvidersMap[l]||"-"})),P=()=>{a(Q({item:T.PROMO_CODE_DETAIL,isVisible:!1}))},G=()=>o.jsxs("div",{className:`standard-popup-modal-header ${e?.seamlessPromoHeader}`,children:[o.jsx("span",{className:`${e?.promoHeaderTitle}`,children:d?.bonusName}),o.jsx("div",{id:"close-btn",className:"standard-modal-close",onClick:P,children:o.jsx(R,{displaySVG:"cross-icon",isSVG:!0,svgType:"SVGTransfer"})})]}),V=()=>{a(Q({item:T.PROMO_CODE_DETAIL,isVisible:!1})),i.push("/info-centre/tnc#terms")},H=()=>v?.isMobile?o.jsxs("div",{className:"standard-popup-modal-body seamless-promo-body",children:[o.jsx("div",{className:`${e?.promoInfoTable} p`,children:(x||[]).map(l=>o.jsxs("div",{className:e.promoInfoRow,children:[o.jsx("div",{className:`${e.promoInfoLabel}`,children:l.label}),o.jsx("div",{className:`${e.promoInfoValue} Regular`,children:l.value})]},l.label))}),o.jsx("div",{className:`${e?.promoInfoTable} p`,children:F.length>0?F.map(l=>o.jsxs("div",{children:[o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoLabel} ${e.fullWidth}`,children:t("promotion:promotion.promoDetail.products","Product")})}),o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoValue} ${e.fullWidth} Regular`,children:l.label})}),o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoLabel} ${e.fullWidth}`,children:t("promotion:promotion.promoDetail.applicable-providers","Applicable Providers")})}),o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoValue} ${e.fullWidth} Regular`,children:l.value})})]},l.label)):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoLabel} ${e.fullWidth}`,children:t("promotion:promotion.promoDetail.products","Product")})}),o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoValue} ${e.fullWidth} Regular`,children:"-"})}),o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoLabel} ${e.fullWidth}`,children:t("promotion:promotion.promoDetail.applicable-providers","Applicable Providers")})}),o.jsx("div",{className:e.promoInfoRow,children:o.jsx("div",{className:`${e.promoInfoValue} ${e.fullWidth} Regular`,children:"-"})})]})}),!d?.hideDepositAmount&&o.jsxs("div",{className:`${e?.depositAmountWrapper}`,children:[o.jsx("div",{className:`${e?.depositAmountTitle}`,children:t("promotion:promotion.promoDetail.depositAmount","Deposit Amount")}),o.jsxs("div",{className:`${e?.depositAmountCalculationWrapper}`,children:[o.jsxs("div",{className:`${e?.depositAmountInputWrapper}`,children:[o.jsx("span",{className:`${e?.currencySymbol}`,children:r?.currencyLang}),o.jsx(X,{debouncedInputMS:500,type:"number",className:`${e?.depositAmountInput}`,name:"depositAmount",value:s,onChange:l=>y(parseFloat(l.target.value)),placeholder:window.SPL_Other.formatAmou
1nt(n?.minDeposit)})]}),o.jsxs("div",{className:`${e?.depositAmountInfo}`,children:[o.jsx(M,{className:"info-icon",src:"/public/html/images/general/info.svg",isSvg:!0}),o.jsx("span",{children:t("promotion:promotion.promoDetail.depositAmountInfo","Enter your deposit amount to see your potential bonus.")})]}),o.jsxs("div",{className:`${e?.calculationResultWrapper}`,children:[o.jsxs("div",{className:`${e?.bonusAmountWrapper}`,children:[o.jsx("span",{className:`${e?.amountLabel}`,children:t("promotion:promotion.promoDetail.bonusAmount","Bonus Amount")}),o.jsx("span",{className:`${e?.amountValue}`,children:r?.currencyLang+" "+window.SPL_Other.formatAmount(g)})]}),o.jsxs("div",{className:`${e?.turnoverAmountWrapper}`,children:[o.jsx("span",{className:`${e?.amountLabel}`,children:t("promotion:promotion.promoDetail.turnoverAmount","Turnover Amount")}),o.jsx("span",{className:`${e?.amountValue}`,children:r?.currencyLang+" "+window.SPL_Other.formatAmount(u)})]})]})]})]}),o.jsxs("div",{className:`${e?.termsLink} small`,onClick:V,children:["*",t("promotion:promotion.promoDetail.termsNConditions-apply","Terms & Conditions Apply")]})]}):o.jsx("div",{className:"standard-popup-modal-body seamless-promo-body",children:o.jsxs("div",{className:`${e?.promoContentContainer}`,children:[o.jsxs("div",{className:`${e?.bonusDetailsTableWrapper}`,children:[o.jsxs("div",{className:`${e?.bonusDetailsTableTitle}`,children:[t("promotion:promotion.promoDetail.bonusDetails","Bonus Details"),":"]}),o.jsx(J,{columns:k,dataSource:E,isScrollable:!0,emptyDesc:"No data available",isLoading:h})]}),o.jsx("div",{className:`${e?.productDetailsTableWrapper}`,children:o.jsx(J,{columns:$,dataSource:w,isScrollable:!0,emptyDesc:"No data available",isLoading:h})}),!d?.hideDepositAmount&&o.jsxs("div",{className:`${e?.depositAmountWrapper}`,children:[o.jsx("div",{className:`${e?.depositAmountTitle}`,children:t("promotion:promotion.promoDetail.depositAmount","Deposit Amount")}),o.jsxs("div",{className:`${e?.depositAmountCalculationWrapper}`,children:[o.jsxs("div",{className:`${e?.depositAmountInputWrapper}`,children:[o.jsx("span",{className:`${e?.currencySymbol}`,children:r?.currencyLang}),o.jsx(X,{debouncedInputMS:500,type:"number",className:`${e?.depositAmountInput}`,name:"depositAmount",value:s,onChange:l=>y(parseFloat(l.target.value)),placeholder:window.SPL_Other.formatAmount(n?.minDeposit)})]}),o.jsx("span",{children:"="}),o.jsxs("div",{className:`${e?.bonusAmountWrapper}`,children:[o.jsx("span",{className:`${e?.amountLabel}`,children:t("promotion:promotion.promoDetail.bonusAmount","Bonus Amount")}),o.jsx("span",{className:`${e?.amountValue}`,children:r?.currencyLang+" "+window.SPL_Other.formatAmount(g)})]}),o.jsxs("div",{className:`${e?.turnoverAmountWrapper}`,children:[o.jsx("span",{className:`${e?.amountLabel}`,children:t("promotion:promotion.promoDetail.turnoverAmount","Turnover Amount")}),o.jsx("span",{className:`${e?.amountValue}`,children:r?.currencyLang+" "+window.SPL_Other.formatAmount(u)})]})]}),o.jsxs("div",{className:`${e?.depositAmountInfo}`,children:[o.jsx(M,{className:"info-icon",src:"/public/html/images/general/info.svg",isSvg:!0}),o.jsx("span",{children:t("promotion:promotion.promoDetail.depositAmountInfo","Deposit Amount Info")})]})]}),o.jsxs("div",{className:`${e?.termsLink} small`,onClick:V,children:["*",t("promotion:promotion.promoDetail.termsNConditions-apply","Terms & Conditions Apply")]})]})});return o.jsx(Z,{className:`${e?.promoCodeDetailPopup}`,isOpen:C,version:2,shouldCloseOnEsc:!0,closeFunc:P,children:o.jsxs(o.Fragment,{children:[G(),h?o.jsx(oo,{}):o.jsx(o.Fragment,{children:H()})]})})},rt=()=>{const{t:a}=W("transaction"),i=f.useSelector(m=>m.menuSlice),{selectedSeamlessPromoObj:t}=f.useSelector(m=>m?.seamless),{seamlessPromoInfo:p}=eo({promoId:t?.id,subCategoryMenus:i?.processedBaseMenuSettings?.subCategoryMenus,t:a}),[r,v]=O.useState(void 0),_=p?.categoryProvidersMap?Object.keys(p.categoryProvidersMap):[],d=_?.length>0,n=()=>o.jsx(_o,{className:e["promo-accordion-root"],type:"single",collapsible:!0,value:r,onValueChange:m=>{v(m)},children:(b||[]).map(m=>{const{key:s,title:y,content:C}=m;return o.jsxs(fo,{id:s,value:s,className:e["promo-accordion-item"],onClick:()=>{mo(s)},children:[o.jsxs(ho,{className:e["promo-accordion-trigger"],children:[o.jsx("span",{className:e.header,children:a(y)}),o.jsx(M,{src:"/public/html/images/icon/arrow-down-grey.svg",isSVG:!0})]}
1),o.jsx(xo,{className:e["promo-accordion-content"],children:C})]},s)})}),b=d?(_||[]).map(m=>({key:m,title:a(U(m)),content:p.categoryProvidersMap[m]||"-"})):[{key:"-",title:"-",content:"-"}];return o.jsx("div",{className:e["promo-accordion-container"],children:o.jsx("div",{className:e["promo-accordion-wrapper"],children:_?.length>0?n():a("reports:reports.noDataAvailable","No Data Available")})})},at=({isOpen:a,onConfirm:i,onCancel:t,onClose:p})=>{const{t:r}=W("promotion");return o.jsx(to,{customClassName:`${e?.promoCodeSwitchConfirmationPopup}`,isOpen:a,title:r("promotion:promotion.promotion-in-progress.title","Promotion in progress"),description:r("promotion:promotion.promotion-in-progress.description","Applying for this new promo will cancel the previous promotion"),onConfirm:i,onCancel:t,onClose:p})};export{tt as PromoCode,rt as PromoCodeAccordion,nt as PromoCodeDetailPopup,at as PromoCodeSwitchConfirmationPopup};
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.