PageSourceSearch

https://ufabet.mobile/react/assets/UI_Fengshui.BYwYpxL0.js

js ufabet.mobile collected 2026-10-04 20:35:55 UTC 6,075 bytes, 1 lines download raw bytes

1import{j as s}from"./vendor-react.ELhBuE2q.js";import{z as C,f as d,a7 as F,W as f}from"./app-shared.CdUkAbk4.js";import{S as m}from"./TextBox.D9WGVcEh.js";import{u as $}from"./usePromotion.CswUxPAO.js";import{F as A,C as w,a as l}from"./FengshuiClouds.P5twYMZm.js";import{c as k}from"./promotionClaim.CmK_ncch.js";import"./vendor-ui.BSTRh9Ug.js";import"./vendor-i18n.DvM0XvO9.js";import"./vendor-router.aN8wpDPU.js";import"./vendor-moment.BLMuvzoS.js";import"./vendor-axios.NIGUFBhG.js";import"./purify.es.CEVJ7K31.js";function h({accent:a}){return s.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-[3px] left-[10%] right-[10%] z-[2] h-px",style:{background:`linear-gradient(90deg, transparent, ${a}99, transparent)`}})}function _({accent:a,className:n=""}){return s.jsx("div",{"aria-hidden":"true",className:`pointer-events-none h-[1px] w-full ${n}`,style:{background:`linear-gradient(90deg, transparent, ${a}80, transparent)`}})}function j({accent:a}){return s.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24","aria-hidden":"true",className:"shrink-0",style:{filter:`drop-shadow(0 0 4px ${a}66)`},children:[s.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:a,strokeWidth:"1.8"}),s.jsx("rect",{x:"8.6",y:"8.6",width:"6.8",height:"6.8",fill:"none",stroke:a,strokeWidth:"1.5"})]})}function H({dataEvent:a,onClose:n}){const{user:o,isModal:r,promotion:y,depositHis:g,t,PromotionDetial:N,goToDetail:p,goToDeposit:b,claimPromotion:v}=$({dataEvent:a,onClose:n}),i=C("fengshui");function x({item:e}){const c=k(e,g);return s.jsx(f,{onClick:c?()=>v(e):()=>b(),styleName:"btn_claim_promotion_fengshui",children:t("get_promotions")})}return s.jsxs(d,{styleName:"bg_layout_promotion_fengshui",className:`relative p-5 ${r?"min-w-[340px] min-h-[260px]":""} `,children:[s.jsx(A,{}),s.jsx(h,{accent:i}),s.jsx(w,{width:130,opacity:.08,float:!0,travel:-80,driftDur:34,className:"absolute -bottom-1 -right-2"}),r?s.jsxs("div",{className:"mt-5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(j,{accent:i}),s.jsx(m,{styleName:"text_title_promotion_fengshui",label:t("you_received_bonus")})]}),s.jsx(_,{accent:i,className:"mt-1"}),s.jsx("div",{className:"my-3",style:{color:"var(--c-primary-200, #8FA89A)",fontFamily:"Prompt"},children:t("can_claim_only_one_promotion")})]}):s.jsxs("div",{className:"mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(j,{accent:i}),s.jsx(m,{styleName:"text_title_promotion_fengshui",label:t("promotion")})]}),s.jsx(_,{accent:i,className:"mt-1"})]}),s.jsx(d,{styleName:"bg_layout_card_list_promotion_fengshui",children:y.map((e,c)=>{var u;return s.jsxs(d,{styleName:"bg_card_promotion_fengshui",className:`relative overflow-hidden ${!r&&e.image?"promo_card_stack_xs":""}`,children:[s.jsx(h,{accent:i}),s.jsx(l,{position:"tl",size:18,offset:2,opacity:.7}),s.jsx(l,{position:"tr",size:18,offset:2,opacity:.7}),s.jsx(l,{position:"bl",size:18,offset:2,opacity:.7}),s.jsx(l,{position:"br",size:18,offset:2,opacity:.7}),!r&&e.image&&s.jsx("img",{loading:"lazy",decoding:"async",className:"default_img_card_list_promotion w-full h-auto min-h-[100px] object-contain self-start cursor-pointer",onClick:()=>p(e),src:F(e.image),style:{border:"1px solid var(--c-primary-700, #2A4435)"}}),s.jsxs("div",{className:`${r?"w-full":""} flex flex-col justify-between gap-2 text-left h-full`,style:!r&&e.image?void 0:{gridColumn:"1 / -1"},children:[s.jsxs("div",{className:"flex flex-col ",children:[s.jsx(m,{styleName:"text_detail_promotion_fengshui",className:"default_text_detail_m_promotion w-fit",label:e.name}),s.jsx(_,{accent:i,className:"my-1"}),s.jsx("div",{className:"default_text_detail_d_promotion",style:{color:"var(--c-surface, #F2EDDC)"},children:s.jsx(N,{data:e})}),e.prom_mode==1&&s.jsxs("div",{className:"text-[13px] font-bold",children:[s.jsxs("span",{className:"default_text_detail_t_promotion",style:{color:"var(--c-primary-200, #8FA89A)"},children:[t("continuous_promotion_type"),":"," "]}),s.jsxs("span",{className:"default_text_detail_d_promotion",style:{color:"var(--c-surface, #F2EDDC)"},children:[e.series_num," ",t("times")," ",(o==null?void 0:o.prom_id)==e.id?`(${((u=o==null?void 0:o.customer)==null?void 0:u.prom_series_count)||"0"} / ${e.series_num})`:""," "]})]}),e.prom_mode==1&&s.jsxs("div",{className:"text-[13px] font-bold",children:[s.jsxs("span",{className:"default_text_detail_t_promotion",style:{color:"var(--c-primary-200, #8FA89A)"},children:[t("extra_bonus"),":"," "]}),s.jsx("span",{className:"default_text_detail_d_promotion",style:{color:i},children:`${parseInt(e.series_bonus)} ${e.prom_bonus_type_index==2?t("baht"):"%"}`})]}),e.prom_mode==1&&(o==null?void 0:o.prom_id)==e.id&&(o==null?void 0:o.prom_end_series_bonus)&&e.prom_bonus_type_index==1&&s.jsxs("div",{className:"text-[13px] font-bold",children:[s.jsxs("span",{className:"default_text_detail_t_promotion",style:{color:"var(--c-primary-200, #8FA89A)"},children:[t("extra_bonus"),":"," "]}),s.jsx("span",{className:"default_text_detail_d_promotion",style:{color:i},children:`${o==null?void 0:o.prom_end_series_bonus} ${t("baht")}`})]}),e.prom_bonus_type_index==1&&e.prom_mode==1&&s.jsxs("div",{className:"default_text_detail_a_promotion",style:{color:"var(--c-primary-200, #8FA89A)"},children:["(",t("bonus_increases_with_deposit")," ",e.series_bonus," % )"]}),e.prom_mode==2&&s.jsxs("div",{className:"text-[13px]",children:[s.jsxs("span",{className:"default_text_detail_t_promotion",style:{color:"var(--c-primary-200, #8FA89A)"},children:[t("specific_game"),":"," "]}),s.jsxs("span",{className:"default_text_detail_d_promotion",style:{color:"var(--c-surface, #F2EDDC)"},children:[e.game_specific?JSON.parse(e.game_specific).join(", "):""," "]})]})]}),r?s.jsx(s.Fragment,{children:s.jsx(x,{item:e})}):s.jsx(s.Fragment,{children:s.jsxs("div",{className:"default_layout_btn_card_list_promotion",children:[s.jsx(f,{onClick:()=>p(e),styleName:"btn_condition_promotion_fengshui",children:t("condition")}),s.jsx(x,{item:e})]})})]})]},`promotion_${c}`)})})]})}export{H as default};

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.