PageSourceSearch

http://balmy.dev/react/assets/UI_Pirate.f1gSK2E_.js

js balmy.dev collected 2026-10-05 07:00:12 UTC 4,250 bytes, 1 lines download raw bytes

1import{j as e}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 p}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 D({dataEvent:m,onClose:c}){const i=j("pirate"),{user:o,isModal:a,promotion:x,t:s,PromotionDetial:f,goToDetail:r,BtnClaimPromotion:l}=g({dataEvent:m,onClose:c}),n=({label:t})=>e.jsxs("div",{className:"flex flex-col items-center w-full mt-4 mb-3",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx(b,{size:20,strokeWidth:2.2,style:{color:i,filter:`drop-shadow(0 0 5px ${i}80)`},"aria-hidden":"true"}),e.jsx(p,{styleName:"text_title_promotion_pirate",label:t})]}),e.jsx("div",{"aria-hidden":"true",className:"mt-1.5",style:{height:"2px",width:"120px",background:`linear-gradient(90deg, transparent, ${i}, #3ef0b4, ${i}, transparent)`}})]});return e.jsxs("div",{className:`p-5 ${a?"min-w-[340px] min-h-[260px]":""}`,children:[a?e.jsx(n,{label:s("you_received_bonus")}):e.jsx(n,{label:s("promotion")}),a&&e.jsx("div",{className:"my-3 text-center",style:{color:"#cfeee2",fontFamily:"Prompt"},children:s("can_claim_only_one_promotion")}),e.jsx(d,{styleName:"bg_layout_card_list_promotion_pirate",children:x.map((t,u)=>{var _;return e.jsxs(d,{styleName:"bg_card_list_promotion_pirate",className:`grid grid-cols-[clamp(100px,26%,200px)_1fr] gap-3 items-stretch ${!a&&t.image?"promo_card_stack_xs":""}`,children:[!a&&t.image&&e.jsx("img",{loading:"lazy",decoding:"async",className:"default_img_card_list_promotion_pirate cursor-pointer",onClick:()=>r(t),src:h(t.image),alt:t.name}),e.jsxs("div",{className:`${a?"w-full":""} flex flex-col justify-between gap-2 text-left h-full`,style:!a&&t.image?void 0:{gridColumn:"1 / -1"},children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(p,{styleName:"text_detail_promotion_pirate",className:"default_text_detail_m_promotion_pirate w-fit",label:t.name}),e.jsx("div",{className:"default_text_detail_d_promotion_pirate",children:e.jsx(f,{data:t})}),t.prom_mode==1&&e.jsxs("div",{className:"text-[13px] font-bold",children:[e.jsxs("span",{className:"default_text_detail_t_promotion_pirate",children:[s("continuous_promotion_type"),":"," "]}),e.jsxs("span",{className:"default_text_detail_d_promotion_pirate",children:[t.series_num," ",s("times")," ",(o==null?void 0:o.prom_id)==t.id?`(${((_=o==null?void 0:o.customer)==null?void 0:_.prom_series_count)||"0"} / ${t.series_num})`:""," "]})]}),t.prom_mode==1&&e.jsxs("div",{className:"text-[13px] font-bold",children:[e.jsxs("span",{className:"default_text_detail_t_promotion_pirate",children:[s("extra_bonus"),":"," "]}),e.jsx("span",{className:"default_text_detail_d_promotion_pirate",children:`${parseInt(t.series_bonus)} ${t.prom_bonus_type_index==2?s("baht"):"%"}`})]}),t.prom_mode==1&&(o==null?void 0:o.prom_id)==t.id&&(o==null?void 0:o.prom_end_series_bonus)&&t.prom_bonus_type_index==1&&e.jsxs("div",{className:"text-[13px] font-bold",children:[e.jsxs("span",{className:"default_text_detail_t_promotion_pirate",children:[s("extra_bonus"),":"," "]}),e.jsx("span",{className:"default_text_detail_d_promotion_pirate",children:`${o==null?void 0:o.prom_end_series_bonus} ${s("baht")}`})]}),t.prom_bonus_type_index==1&&t.prom_mode==1&&e.jsxs("div",{className:"default_text_detail_a_promotion_pirate",children:["(",s("bonus_increases_with_deposit")," ",t.series_bonus," %)"]}),t.prom_mode==2&&e.jsxs("div",{className:"text-[13px]",children:[e.jsxs("span",{className:"default_text_detail_t_promotion_pirate",children:[s("specific_game"),":"," "]}),e.jsxs("span",{className:"default_text_detail_d_promotion_pirate",children:[t.game_specific?JSON.parse(t.game_specific).join(", "):""," "]})]})]}),a?e.jsx(l,{item:t}):e.jsxs("div",{className:"default_layout_btn_card_list_promotion_pirate",children:[e.jsx(N,{onClick:()=>r(t),styleName:"btn_condition_promotion_pirate",children:s("condition")}),e.jsx(l,{item:t})]})]})]},`promo_${u}`)})})]})}export{D 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.