PageSourceSearch

https://www.sunriseslots.com/app/shared/assets/ucc/v5/js/promotions.js?v=1791296520429

js sunriseslots.com collected 2026-10-08 07:24:22 UTC 4,191 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkucc=self.webpackChunkucc||[]).push([[681],{599(s,e,t){t.r(e),t.d(e,{default:()=>f});var o=t(6540),r=t(4498),l=t(2346),a=t(7046),d=t(4824),n=t(37),c=t(4848);const i=()=>(0,c.jsxs)("div",{className:"item",children:[(0,c.jsxs)("div",{className:"box",children:[(0,c.jsx)("div",{className:"placeholder",children:(0,c.jsx)(n.Boc,{className:"icon"})}),(0,c.jsxs)("div",{className:"info",children:[(0,c.jsx)("div",{}),(0,c.jsx)("div",{}),(0,c.jsx)("div",{}),(0,c.jsx)("button",{disabled:!0})]})]}),(0,c.jsx)("div",{className:"bottombox"})]}),m=()=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"custom",children:(0,c.jsx)("div",{className:"placeholder",children:(0,c.jsx)(n.Boc,{className:"icon"})})}),(0,c.jsxs)("div",{className:"regular",children:[(0,c.jsx)(i,{}),(0,c.jsx)(i,{}),(0,c.jsx)(i,{}),(0,c.jsx)(i,{})]})]});var p=t(5946),u=t(4589),j=t(2314),x=t(8502);const h=({data:s})=>{const e=(0,o.useRef)(null),[t,r]=(0,o.useState)(!1);let a={dots:!0,autoplay:!0,adaptiveHeight:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,swipe:!1,initialSlide:0,nextArrow:t&&(0,c.jsx)(x.A,{slider:e.current}),prevArrow:t&&(0,c.jsx)(j.A,{slider:e.current}),responsive:[{breakpoint:567,settings:{arrows:!1,swipe:!0}}]};return(0,o.useEffect)(()=>{r(!0)},[]),(0,c.jsx)(u.A,{ref:e,...a,children:s.map((s,e)=>(0,c.jsx)("div",{children:(0,l.Ay)(s.html)},e))})},g=()=>(0,c.jsxs)("div",{id:"regularpromowildcard",children:[(0,c.jsxs)("div",{className:"bg",children:[(0,c.jsx)("span",{}),(0,c.jsx)("span",{}),(0,c.jsx)("span",{}),(0,c.jsx)("span",{}),(0,c.jsx)("span",{}),(0,c.jsx)("span",{})]}),(0,c.jsx)("h3",{children:(0,c.jsx)(a.sA,{id:"PROMOS.wildcardh3"})}),(0,c.jsx)("p",{children:(0,c.jsx)(a.sA,{id:"PROMOS.wildcardp"})})]}),_=({data:s})=>(0,c.jsx)("div",{id:"custompromos",children:s.map(s=>{let e=s.data;if(s.display_on&&s.display_on.pages&&!s.display_on.pages.includes("ucc_promotions"))return;let t=e.length;if(0!==t){if(1===t){let t=e[0];return(0,c.jsx)("div",{"data-id":s.id,children:(0,l.Ay)(t.html)},s.id)}return(0,c.jsx)(h,{data:e},"1")}})}),v=({data:s})=>(0,c.jsxs)("div",{id:"regularpromos",children:[s.map(s=>(0,c.jsx)(p.A,{promo:s},s.id)),s.length%2!=0&&(0,c.jsx)(g,{})]}),f=()=>{const{config:s,locale:e,UCCCONTROLLER:t}=(0,o.useContext)(r.C),[l,n]=(0,o.useState)(!0),[i,p]=(0,o.useState)(null),[u,j]=(0,o.useState)(null),[x,h]=(0,o.useState)(null),{decrypt_API_response:g,closeAsidePanel:f}=(0,d.D)(),y=(s,e)=>{if(!document.getElementById("custompromo_scripts_"+s)){let t=document.createElement("script");t.id="custompromo_scripts_"+s,t.textContent=e,document.body.appendChild(t)}};return(0,o.useEffect)(()=>{p(null),j(null),n(!0),f(),window.scrollTo({top:0,behavior:"smooth"});const o=new FormData;return o.append("lang",e),o.append("target","ucc_promotions"),fetch(t+"?getpromos",{method:"post",body:o}).then(s=>s.json()).then(e=>{const t=g(e);return t.custom_promos=Object.values(t.custom_promos),t.regular_promos=Object.values(t.regular_promos),h(t.category),t.custom_promos.length>0&&p(t.custom_promos),t.regular_promos.length>0&&j(t.regular_promos),0===t.custom_promos.length&&0===t.regular_promos.length&&window.location.replace(s.pages.promotions),t.custom_promos}).then(s=>{let e="";if(s&&(s.forEach(s=>{s.display_on?s.display_on.pages&&s.display_on.pages.includes("ucc_promotions")&&s.data.forEach(t=>{e+=t.css,t.js&&y(s.id,t.js)}):s.data.forEach(t=>{e+=t.css,t.js&&y(s.id,t.js)})}),e))if(document.getElementById("custompromos_styles"))document.getElementById("custompromos_styles").textContent=e;else{let s=document.createElement("style");s.id="custompromos_styles",s.textContent=e,document.head.appendChild(s)}}).finally(()=>{n(!1)}),()=>{let s=document.getElementById("custompromos_styles");s&&document.head.removeChild(s);let e=document.querySelectorAll('[id^="custompromo_scripts_"]');e&&e.forEach(s=>s.remove())}},[e]),(0,c.jsxs)("div",{id:"promotions",className:l?"skeleton":"","data-category":x,children:[(0,c.jsx)("h1",{children:(0,c.jsx)(a.sA,{id:"MSB.promotions",defaultMessage:"Promotions"})}),(0,c.jsxs)("div",{className:"wrapper",children:[l&&(0,c.jsx)(m,{}),i&&(0,c.jsx)(_,{data:i}),u&&(0,c.jsx)(v,{data:u})]})]})}}}]);

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.