PageSourceSearch

https://gamdom.com/build/InformationalModal.1BzhPnZT.js

js gamdom.com collected 2026-10-01 12:24:39 UTC 8,012 bytes, 2 lines download raw bytes

1import{j as o,F as x}from"./ThemeProviderV4.BJzwFqdE.js";import{v as i,x as I,r as m,w as j}from"./vendor.DIHqQuRl.js";import{T as M}from"./siteContentLanguages.CB1TAUaL.js";import k,{useModalStore as T}from"./ModalStore.BGz6QLsv.js";import{u as N}from"./ProfileStore.DfCZWeMX.js";import{u as V}from"./InformationalModal.store.DLsb8N55.js";import{a as S}from"./DialogV4.BkFp6o3w.js";import{T as b}from"./TypographyV4.CtNC0Nr7.js";import{g as $}from"./getImageSources.Cg4l6kLq.js";import{B as C}from"./ButtonV4.BtUnhwWI.js";import{P as B}from"./pagination.BXew4lRx.js";import{a as A,S as P}from"./swiper-react.CbzkUy_D.js";import{F as E}from"./chevron-left.icon.B94_884Z.js";import{F as D}from"./chevron-right.icon.DujWBbQ2.js";import"./util.GzQCO_UI.js";import"./errors.DgYkpLMh.js";import"./react-toastify.esm.BcUAK96u.js";import"./urlParameter.util.OFc5A56j.js";import"./PenguinKingJackpotStore.Cb45Dg70.js";import"./slugify.CQkBG-e2.js";import"./index.BmuYOVWj.js";import"./jsonFetch.C_hHwYGZ.js";import"./Dialog.C5SorhYV.js";import"./Button.81SqSNQ8.js";import"./VisuallyHidden.B1HY6dUm.js";import"./CloseButtonV4.hcO_zxkh.js";import"./remove-circle.icon.AifzH9AT.js";import"./IconButtonV4.D0s_OlVn.js";import"./Modal.DrWT2KM1.js";import"./StackV4.fVixnu5O.js";const f="--image-height",u=16,H=i.div.withConfig({displayName:"InformationalModalstyled__ModalContainer",componentId:"sc-ivhxqg-0"})(["",":250px;transform:translate(0);position:relative;display:flex;flex-direction:column;padding:0 ","px ","px;width:600px;max-width:100%;overflow-y:auto;background:",";","{width:100%;overflow-y:auto;min-height:100vh;max-height:100vh;@supports (height:100dvh){min-height:100dvh;max-height:100dvh;}}"],f,u,u,({theme:t})=>t.V4.color.grey2,({theme:t})=>t.V4.breakpoints.down("md")),R=i(S.Header).withConfig({displayName:"InformationalModalstyled__StyledDialogV4Header",componentId:"sc-ivhxqg-1"})(["padding:"," 0;"],({theme:t})=>t.V4.spacing[16]),L=i.div.withConfig({displayName:"ModalCardstyled__Container",componentId:"sc-1kvc4si-0"})(["max-width:100%;display:flex;flex-direction:column;flex-grow:1;"]),F=i.div.withConfig({displayName:"ModalCardstyled__ImageContainer",componentId:"sc-1kvc4si-1"})(["border-radius:12px;height:var(",");position:relative;overflow:hidden;background:",";margin-bottom:16px;"],f,({theme:t})=>t.V4.color.grey2),z=i.img.withConfig({displayName:"ModalCardstyled__Image",componentId:"sc-1kvc4si-2"})(["position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;"]),q=i(b).withConfig({displayName:"ModalCardstyled__Title",componentId:"sc-1kvc4si-3"})(["font-size:20px;font-weight:500;line-height:1.5;margin-bottom:14px;overflow-wrap:break-word;"]),G=i.div.withConfig({displayName:"ModalCardstyled__Description",componentId:"sc-1kvc4si-4"})(["color:",";font-size:14px;font-weight:500;line-height:1.42;overflow-wrap:break-word;margin-bottom:16px"],t=>t.theme.V4.color.grey6),O=i.div.withConfig({displayName:"ModalCardstyled__PlayNowButtonContainer",componentId:"sc-1kvc4si-5"})([""," width:100%;margin-top:auto;display:flex;flex-direction:column;"],({$isInSlider:t})=>!t&&I(["padding-top:16px;"])),w=({modal:t,onSeen:d,dataTestId:c,viewImmediately:n=!1,isInSlider:l=!1})=>{const a=()=>d(t.id);return m.useEffect(()=>{n&&a()},[]),o.jsxs(L,{children:[o.jsx(F,{children:o.jsxs("picture",{children:[$(t.images_url).map((e,s)=>o.jsx("source",{media:e.media,srcSet:x(e.srcSet,{kind:"dyn",type:"informational-modals"})},s)),o.jsx(z,{src:x(t.images_url.desktop,{kind:"dyn",type:"informational-modals"}),loading:"lazy",alt:t.title})]})}),o.jsx(q,{dangerouslySetInnerHTML:{__html:t.title}}),o.jsx(G,{dangerouslySetInnerHTML:{__html:t.description}}),o.jsx(O,{$isInSlider:l,children:o.jsx(C,{variant:"modal-primary",href:t.button_url,dataTestId:"".concat(c,"-play-now-button"),onClick:a,children:t.button_text})})]})},g=32,U=i.div.withConfig({displayName:"Sliderstyled__Container",componentId:"sc-14w4oom-0"})(["position:relative;display:flex;flex-direction:column;flex-grow:1;.swiper-pagination-bullet{&:before{transform-origin:bottom ",";}}.swiper-pagination-bullet-active{&:before{transform-origin:bottom ",";}}"],({$direction:t})=>
1t==="left"?"left":"right",({$direction:t})=>t==="left"?"right":"left"),X=i.div.withConfig({displayName:"Sliderstyled__SwiperContainer",componentId:"sc-14w4oom-1"})(["display:flex;flex-direction:column;gap:24px;flex-grow:1;"]),Q=i.div.withConfig({displayName:"Sliderstyled__SliderButton",componentId:"sc-14w4oom-2"})(["position:absolute;top:calc(18px + var(",") / 2 - ","px);left:calc(-","px + 4px);z-index:2;&.right{left:unset;right:calc(-","px + 4px);}@media (hover:none){:active{background-color:rgba(255,255,255,0.08) !important;}}transition:0.15s opacity ease-in-out;",""],f,g/2,g/2,g/2,({$disabled:t})=>t?I(["opacity:0;pointer-events:none;"]):""),J=i(A).withConfig({displayName:"Sliderstyled__Swiper",componentId:"sc-14w4oom-3"})(['width:100%;display:flex !important;flex-direction:column;align-items:center;flex-grow:1;.swiper-wrapper{align-items:stretch;flex-grow:1;}.swiper-slide{width:100%;height:auto;display:flex;}.swiper-pagination{position:static;display:flex;justify-content:space-between;order:-1;gap:6px;line-height:3px;margin-bottom:15px;}.swiper-pagination-bullet{position:relative;opacity:1 !important;width:unset !important;flex:1;height:3px;margin:0 !important;border-radius:2px;background:#232c32 !important;overflow:hidden;&:before{content:"";position:absolute;width:100%;height:100%;background-color:#00ff86;left:0;transform:scaleX(0);transition:transform 0.4s ease-in-out;}}.swiper-pagination-bullet-active{position:relative;width:unset !important;background:#232c32 !important;overflow:hidden;&:before{transform:scaleX(1);}}']),K=i(C).withConfig({displayName:"Sliderstyled__Button",componentId:"sc-14w4oom-4"})(["width:","px;height:","px;"],g,g),y=({direction:t,onClick:d,dataTestId:c,className:n,disabled:l=!1})=>{const a=t==="left"?o.jsx(E,{width:20,height:20}):o.jsx(D,{width:20,height:20});return o.jsx(Q,{className:n,onClick:d,$disabled:l,children:o.jsx(K,{variant:"secondary",size:"square-small",dataTestId:c,disabled:l,iconStart:a,onPress:d})})},v=500,W=({onSeen:t,dataTestId:d,children:c,className:n})=>{const l=m.useRef(null),[a,e]=m.useState({isBeginning:!0,isEnd:!1,direction:"right"}),s=l.current;return o.jsxs(U,{$direction:a.direction,children:[o.jsx(y,{className:"left",direction:"left",dataTestId:"".concat(d,"-left-button"),disabled:a.isBeginning,onClick:()=>{s==null||s.slidePrev(v)}}),o.jsx(y,{className:"right",direction:"right",dataTestId:"".concat(d,"-right-button"),disabled:a.isEnd,onClick:()=>{s==null||s.slideNext(v)}}),o.jsx(X,{className:n,children:o.jsx(J,{slidesPerView:1,spaceBetween:12,modules:[B],pagination:{bulletClass:"swiper-pagination-bullet ".concat(a.direction)},onBeforeInit:r=>l.current=r,onInit:()=>t(0),onSlideChange:r=>{e({isBeginning:r.isBeginning,isEnd:r.isEnd,direction:r.activeIndex>r.previousIndex?"right":"left"}),t(r.activeIndex)},children:m.Children.map(c,r=>o.jsx(P,{children:r}))})})]})},kt=j(()=>{const t="informational-modal-v4",d=N(),c=T(),n=V(),l=d.loginState==="loggedIn",e=m.useRef(n.modalsToShow).current;if(!l)return k.openModal("login"),null;const s=p=>{e[p]&&n.markModalAsViewed(e[p].id)},r=e.length>1,h=c.getOpenProps("global-info-v4"),_=()=>{h.onClose(),e.length>0&&n.markModalAsViewed(e[0].id)};return e.length?o.jsx(S,{...h,onClose:_,dataTestId:t,children:o.jsxs(H,{children:[o.jsx(R,{variant:"title-center",dataTestId:"".concat(t,"-header"),children:o.jsx(b,{variant:"bold16",textAlign:"center",dataTestId:"".concat(t,"-title"),children:o.jsx(M,{default:"Announcement",id:"cUiLwqdQ"})})}),r?o.jsx(W,{onSeen:s,dataTestId:"".concat(t,"-slider"),children:e.map(p=>o.jsx(w,{modal:p,onSeen:n.markModalAsViewed,dataTestId:"".concat(t,"-modal-card"),isInSlider:!0},p.id))}):o.jsx(w,{modal:e[0],onSeen:n.markModalAsViewed,dataTestId:"".concat(t,"-modal-card"),viewImmediately:!0})]})}):null});export{kt as default};
2//# sourceMappingURL=InformationalModal.1BzhPnZT.js.map

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.