1import{j as s}from"./vendor-react.ELhBuE2q.js";import{z as j,f as d,a7 as h,W as N,aX as b}from"./app-shared.CdUkAbk4.js";import{S as m}from"./TextBox.D9WGVcEh.js";import{u as g}from"./usePromotion.CswUxPAO.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";import"./promotionClaim.CmK_ncch.js";function z({dataEvent:x,onClose:c}){const i=j("texas"),{user:t,isModal:a,promotion:p,t:o,PromotionDetial:f,goToDetail:l,BtnClaimPromotion:n}=g({dataEvent:x,onClose:c}),_=({label:e})=>s.jsxs("div",{className:"flex flex-col items-center w-full mt-4 mb-3",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2",children:[s.jsx(b,{size:20,strokeWidth:2.2,style:{color:i,filter:`drop-shadow(0 0 5px ${i}80)`},"aria-hidden":"true"}),s.jsx(m,{styleName:"text_title_promotion_texas",label:e})]}),s.jsx("div",{"aria-hidden":"true",className:"mt-1.5",style:{height:"2px",width:"120px",background:`linear-gradient(90deg, transparent, ${i}, #F8D766, ${i}, transparent)`}})]});return s.jsxs("div",{className:`p-5 ${a?"min-w-[340px] min-h-[260px]":""}`,children:[a?s.jsx(_,{label:o("you_received_bonus")}):s.jsx(_,{label:o("promotion")}),a&&s.jsx("div",{className:"my-3 text-center",style:{color:"#FFE6C8",fontFamily:"Prompt"},children:o("can_claim_only_one_promotion")}),s.jsx(d,{styleName:"bg_layout_card_list_promotion_texas",children:p.map((e,u)=>{var r;return s.jsxs(d,{styleName:"bg_card_list_promotion_texas",className:`grid grid-cols-[clamp(100px,26%,200px)_1fr] gap-3 items-stretch ${!a&&e.image?"promo_card_stack_xs":""}`,children:[!a&&e.image&&s.jsx("img",{loading:"lazy",decoding:"async",className:"default_img_card_list_promotion_texas cursor-pointer",onClick:()=>l(e),src:h(e.image),alt:e.name}),s.jsxs("div",{className:`${a?"w-full":""} flex flex-col justify-between gap-2 text-left h-full`,style:!a&&e.image?void 0:{gridColumn:"1 / -1"},children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx(m,{styleName:"text_detail_promotion_texas",className:"default_text_detail_m_promotion_texas w-fit",label:e.name}),s.jsx("div",{className:"default_text_detail_d_promotion_texas",children:s.jsx(f,{data:e})}),e.prom_mode==1&&s.jsxs("div",{className:"text-[13px] font-bold",children:[s.jsxs("span",{className:"default_text_detail_t_promotion_texas",children:[o("continuous_promotion_type"),":"," "]}),s.jsxs("span",{className:"default_text_detail_d_promotion_texas",children:[e.series_num," ",o("times")," ",(t==null?void 0:t.prom_id)==e.id?`(${((r=t==null?void 0:t.customer)==null?void 0:r.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_texas",children:[o("extra_bonus"),":"," "]}),s.jsx("span",{className:"default_text_detail_d_promotion_texas",children:`${parseInt(e.series_bonus)} ${e.prom_bonus_type_index==2?o("baht"):"%"}`})]}),e.prom_mode==1&&(t==null?void 0:t.prom_id)==e.id&&(t==null?void 0:t.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_texas",children:[o("extra_bonus"),":"," "]}),s.jsx("span",{className:"default_text_detail_d_promotion_texas",children:`${t==null?void 0:t.prom_end_series_bonus} ${o("baht")}`})]}),e.prom_bonus_type_index==1&&e.prom_mode==1&&s.jsxs("div",{className:"default_text_detail_a_promotion_texas",children:["(",o("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_texas",children:[o("specific_game"),":"," "]}),s.jsxs("span",{className:"default_text_detail_d_promotion_texas",children:[e.game_specific?JSON.parse(e.game_specific).join(", "):""," "]})]})]}),a?s.jsx(n,{item:e}):s.jsxs("div",{className:"default_layout_btn_card_list_promotion_texas",children:[s.jsx(N,{onClick:()=>l(e),styleName:"btn_condition_promotion_texas",children:o("condition")}),s.jsx(n,{item:e})]})]})]},`promo_${u}`)})})]})}export{z 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.