1import{o as B,z as I,f as m,j as r,F as w,l as D,G as l,i as P,a as k,b as S,q as _}from"./@vue-4474Gfnj.js";/* empty css */import{_ as N}from"./app-CC255QP7.js";import"./axios-DjWHqwoD.js";import"./@inertiajs-7zqq8wgj.js";import"./qs-C7saBnVC.js";import"./side-channel-BLCytySV.js";import"./es-errors-B3qLL4WI.js";import"./object-inspect--bXPCECa.js";import"./side-channel-list-BCZJqq54.js";import"./side-channel-map-D4vBmt7j.js";import"./get-intrinsic-DvtG1oIa.js";import"./es-object-atoms-BR76m4z7.js";import"./math-intrinsics-DP1tGiab.js";import"./gopd-C1lCZ5Qs.js";import"./es-define-property-D_7cP-M3.js";import"./has-symbols-BaUvM3gb.js";import"./get-proto-MZ3MALak.js";import"./dunder-proto-C6VzgWTX.js";import"./call-bind-apply-helpers-C9UlVOU4.js";import"./function-bind-CHqF18-c.js";import"./hasown-DwiY0sux.js";import"./call-bound-B0s5y60d.js";import"./side-channel-weakmap-Kf8cPeRJ.js";import"./lodash-es-DY0-vtN4.js";import"./laravel-precognition-BqdyoEeO.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";const O={key:0,class:"slider midlebanner",style:{"padding-bottom":"0px"}},$=["href"],j=["src","alt"],A=["href"],C=["value"],F=["href"],L=["value"],M={__name:"SeamlessBanners",props:{banners:{type:Array,default:()=>[]},user:{type:Object,default:null}},setup(b){const a=b,h=S(()=>(a.banners||[]).filter(t=>t&&t.provider==="IDNSLOT"&&t.type==="TWO_BUTTONS")),n=k(0),o=k(null);let i=null;const s=()=>h.value.length;function u(t=0){o.value&&(t?(o.value.style.transition="none",o.value.style.transform=`translateX(calc(-${n.value*100}% + ${t}px))`):(o.value.style.transition="transform 300ms ease",o.value.style.transform=`translateX(-${n.value*100}%)`))}function d(t){s()&&(n.value=(t+s())%s(),u())}function T(){d(n.value+1)}let c=!1,f=0;function X(t){o.value&&(c=!0,f=t.touches&&t.touches[0]&&t.touches[0].clientX||t.clientX||0,o.value.style.transition="none",clearInterval(i))}function x(t){if(!c||!o.value)return;const e=(t.touches&&t.touches[0]&&t.touches[0].clientX||t.clientX||0)-f;u(e)}function v(t){if(!c)return;c=!1;const e=(t.changedTouches&&t.changedTouches[0]&&t.changedTouches[0].clientX||t.clientX||0)-f,p=50;e>p?d(n.value-1):e<-p?d(n.value+1):u(),g()}function g(){clearInterval(i),s()&&(i=setInterval(T,4e3))}return B(()=>{u(),g()}),I(()=>clearInterval(i)),(t,y)=>(_(),m("div",null,[s()>0?(_(),m("div",O,[r("div",{class:"slider-viewport",onPointerdown:l(X,["prevent"]),onPointermove:l(x,["prevent"]),onPointerup:l(v,["prevent"]),onPointercancel:l(v,["prevent"]),onPointerleave:l(v,["prevent"])},[r("div",{class:"track",ref_key:"track",ref:o},[(_(!0),m(w,null,D(h.value,(e,p)=>(_(),m("div",{key:p,class:"bannerslide slide"},[r("a",{class:"col-lg-12",href:e.image_link_type==="must_authenticated"?a.user?e.image_link:t.route("register"):e.image_link},[r("img",{src:e.image,class:"the-game",alt:e.title,width:"396",height:"112"},null,8,j)],8,$),r("a",{class:"col-lg-6 mb-2",href:e.button_1_type==="must_authenticated"?a.user?e.button_1_link:t.route("register"):e.button_1_link},[r("input",{class:"btn btn-blue",value:e.button_1_label,type:"button"},null,8,C)],8,A),r("a",{class:"col-lg-6 mb-2",href:e.button_2_type==="must_authenticated"?a.user?e.button_2_link:t.route("register"):e.button_2_link},[r("input",{class:"btn btn-green",value:e.button_2_label,type:"button"},null,8,L)],8,F)]))),128))],512)],32)])):P("",!0)]))}},ft=N(M,[["__scopeId","data-v-2c71fd8a"]]);export{ft 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.