1import{U as Ie,a as je,c as Oe,d as Be,R as I}from"./app-87ee2351.js";import{j as S,k as j,l as h,h as W,i as x,r as u,A as _,a as D,C as Re,n as De,o as Fe,f as H,w as xe,a3 as Pe,a4 as ye,B as y,O as Ve,v as $e,s as A,G as L,u as z,F as Se,K as Ce,H as ke,q as Ue,L as ze}from"./runtime-core.esm-bundler-42b5c9ff.js";import{_ as He,I as We}from"./Item.vue_vue_type_script_setup_true_lang-ebe6ef84.js";import{w as Te}from"./preload-helper-585d359e.js";class Xe{async getFeatureReaders(){const e={page:"1",is_featured:"true",sorted_by:"realtimeDESC",type:Ie.READER.toString()},s=new URLSearchParams(e).toString(),{data:r}=await je.get(`/users?${s}`);return r.data.data??[]}}const Ye=new Xe;const Ge={},Ze={class:"w-6 mobile:w-3",width:"38",height:"74",viewBox:"0 0 38 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qe(t,e){return S(),j("svg",Ze,[...e[0]||(e[0]=[h("path",{d:"M32.5 0.249992C33.7267 0.247596 34.9155 0.674812 35.86 1.45749C36.3917 1.89822 36.8311 2.43951 37.1532 3.05033C37.4753 3.66115 37.6737 4.32951 37.7371 5.01714C37.8005 5.70477 37.7276 6.39814 37.5226 7.05756C37.3177 7.71698 36.9846 8.32948 36.5425 8.85999L13.0225 37L35.7025 65.1925C36.1386 65.7295 36.4643 66.3474 36.6608 67.0107C36.8573 67.674 36.9208 68.3695 36.8476 69.0574C36.7745 69.7453 36.5661 70.412 36.2344 71.0191C35.9027 71.6262 35.4544 72.1617 34.915 72.595C34.3718 73.0729 33.7357 73.4334 33.0466 73.6539C32.3575 73.8743 31.6302 73.9499 30.9105 73.876C30.1907 73.8021 29.494 73.5801 28.8641 73.2242C28.2342 72.8682 27.6847 72.3859 27.25 71.8075L1.89254 40.3075C1.12036 39.3681 0.69823 38.1898 0.69823 36.9737C0.69823 35.7577 1.12036 34.5794 1.89254 33.64L28.1425 2.13999C28.6692 1.50465 29.3382 1.00242 30.0953 0.674033C30.8524 0.345657 31.6763 0.20037 32.5 0.249992Z",fill:"url(#paint0_linear_213_343)"},null,-1),h("defs",null,[h("linearGradient",{id:"paint0_linear_213_343",x1:"0",y1:"0",x2:"38",y2:"74",gradientUnits:"userSpaceOnUse"},[h("stop",{"stop-color":"#458aff"}),h("stop",{offset:"1","stop-color":"#fb369f"})])],-1)])])}const Ke=Oe(Ge,[["render",qe]]),Je={},Qe={class:"w-6 mobile:w-3",width:"38",height:"74",viewBox:"0 0 38 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function et(t,e){return S(),j("svg",Qe,[...e[0]||(e[0]=[h("path",{d:"M5.49999 73.75C4.27332 73.7524 3.08453 73.3252 2.13999 72.5425C1.60838 72.1018 1.16895 71.5605 0.846853 70.9497C0.524755 70.3388 0.326324 69.6705 0.262926 68.9828C0.199528 68.2952 0.272408 67.6018 0.477392 66.9424C0.682376 66.283 1.01543 65.6705 1.45749 65.14L24.9775 37L2.2975 8.8075C1.8614 8.27048 1.53573 7.65258 1.33922 6.9893C1.1427 6.32601 1.07921 5.63043 1.15239 4.94254C1.22557 4.25464 1.43398 3.58798 1.76564 2.98089C2.0973 2.3738 2.54568 1.83824 3.08499 1.40499C3.62819 0.927051 4.26431 0.566547 4.95344 0.346104C5.64256 0.125662 6.36982 0.0500423 7.08956 0.123988C7.8093 0.197934 8.50598 0.41985 9.13589 0.775809C9.7658 1.13177 10.3153 1.61409 10.75 2.19249L36.1075 33.6925C36.8797 34.6319 37.3018 35.8102 37.3018 37.0262C37.3018 38.2423 36.8797 39.4206 36.1075 40.36L9.85749 71.86C9.33083 72.4953 8.6618 72.9976 7.9047 73.326C
17.1476 73.6543 6.32375 73.7996 5.49999 73.75Z",fill:"url(#paint0_linear_213_346)"},null,-1),h("defs",null,[h("linearGradient",{id:"paint0_linear_213_346",x1:"0",y1:"0",x2:"38",y2:"74",gradientUnits:"userSpaceOnUse"},[h("stop",{"stop-color":"#458aff"}),h("stop",{offset:"1","stop-color":"#fb369f"})])],-1)])])}const tt=Oe(Je,[["render",et]]);/** 2 * Vue 3 Carousel 0.2.4 3 * (c) 2022 4 * @license MIT 5 */const g={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},Ae={itemsToShow:{default:g.itemsToShow,type:Number},itemsToScroll:{default:g.itemsToScroll,type:Number},wrapAround:{default:g.wrapAround,type:Boolean},snapAlign:{default:g.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:g.transition,type:Number},breakpoints:{default:g.breakpoints,type:Object},autoplay:{default:g.autoplay,type:Number},pauseAutoplayOnHover:{default:g.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:g.mouseDrag,type:Boolean},touchDrag:{default:g.touchDrag,type:Boolean},dir:{default:g.dir,validator(t){return["rtl","ltr"].includes(t)}},settings:{default(){return{}},type:Object}};function nt({config:t,slidesCount:e}){const{snapAlign:s,wrapAround:r,itemsToShow:l=1}=t;if(r)return Math.max(e-1,0);let o;switch(s){case"start":o=e-l;break;case"end":o=e-1;break;case"center":case"center-odd":o=e-Math.ceil((l-.5)/2);break;case"center-even":o=e-Math.ceil(l/2);break;default:o=0;break}return Math.max(o,0)}function at({config:t,slidesCount:e}){const{wrapAround:s,snapAlign:r,itemsToShow:l=1}=t;let o=0;if(s||l>e)return o;switch(r){case"start":o=0;break;case"end":o=l-1;break;case"center":case"center-odd":o=Math.floor((l-1)/2);break;case"center-even":o=Math.floor((l-2)/2);break;default:o=0;break}return o}function ne({val:t,max:e,min:s}){return e<s?t:Math.min(Math.max(t,s),e)}function st({config:t,currentSlide:e,slidesCount:s}){const{snapAlign:r,wrapAround:l,itemsToShow:o=1}=t;let m=e;switch(r){case"center":case"center-odd":m-=(o-1)/2;break;case"center-even":m-=(o-2)/2;break;case"end":m-=o-1;break}return l?m:ne({val:m,max:s-o,min:0})}function ot(t){var e,s,r;return t?((s=(e=t[0])===null||e===void 0?void 0:e.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?t:((r=t[0])===null||r===void 0?void 0:r.children)||[]:[]}function ae({val:t,max:e,min:s=0}){return t>e?ae({val:t-(e+1),max:e,min:s}):t<s?ae({val:t+(e+1),max:e,min:s}):t}function rt(t,e){let s;return function(...r){const l=this;s||(t.apply(l,r),s=!0,setTimeout(()=>s=!1,e))}}function lt(t,e){let s;return function(...r){s&&clearTimeout(s),s=setTimeout(()=>{t(...r),s=null},e)}}var it=W({name:"ARIA",setup(){const t=x("currentSlide",u(0)),e=x("slidesCount",u(0));return()=>_("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},`Item ${t.value+1} of ${e.value}`)}}),ut=W({name:"Carousel",props:Ae,setup(t,{slots:e,emit:s,expose:r}){var l;const o=u(null),m=u([]),b=u(0),c=u(1);let v=u({}),f=Object.assign({},g);const n=D(Object.assign({},f)),i=u((l=n.modelValue)!==null&&l!==void 0?l:0),C=u(0),F=u(0),O=u(0),B=u(0);let M,X;y("config",n),y("slidesCount",c),y("currentSlide",i),y("maxSlide",O),y("minSlide",B),y("slideWidth",b);function oe(){const a=Object.assign(Object.assign({},t),t.settings);v=u(Object.assign({},a.breakpoints)),f=Object.assign(Object.assign({},a),{settings:void 0,breakpoints:void 0}),re(f)}function P(){const a=Object.keys(v.value).map(d=>Number(d)).sort((d,T)=>+T-+d);let p=Object.assign({},f);a.some(d=>window.matchMedia(`(min-width: ${d}px)`).matches?(p=Object.assign(Object.assign({},p),v.value[d]),!0):!1),re(p)}function re(a){Object.entries(a).forEach(([p,d])=>n[p]=d)}const le=lt(()=>{v.value&&(P(),R()),V()},16);function V(){if(!o.value)return;const a=o.value.getBoundingClientRect();b.value=a.width/n.itemsToShow}function R(){c.value=Math.max(m.value.length,1),!(c.value<=0)&&(F.value=Math.ceil((c.value-1)/2),O.value=nt({config:n,slidesCount:c.value}),B.value=at({config:n,slidesCount:c.value}),n.wrapAround||(i.value=ne({val:i.value,max:O.value,min:B.value})))}Re(()=>{v.value&&(P(),R()),De(()=>setTimeout(V,16)),de(),window.addEventListener("resize",le,{passive:!0})}),Fe(()=>{X&&clearTimeout(X),M&&clearInterval(M),window.removeEventListener("resize",le,{passive:!0})});let w=!1;const $={x:0,y:0},U={x:0,y:0},k=D({x:0,y:0}),Y=u(!1),Me=()=>{Y.value=!0},Ee=()=>{Y.value=!1};function ie(a){w=a.type==="touchstart",!(!w&&a.button!==0||E.value)&&(w||a.preventDefault(),$.x=w?a.touches[0].clientX:a.clientX,$.y=w?a.touches[0].clientY:a.clientY,document.addEventListener(w?"touchmove":"mousemove",ue,!0),document.addEventListener(w?"touchend":"mou
5seup",ce,!0))}const ue=rt(a=>{U.x=w?a.touches[0].clientX:a.clientX,U.y=w?a.touches[0].clientY:a.clientY;const p=U.x-$.x,d=U.y-$.y;k.y=d,k.x=p},16);function ce(){const a=n.dir==="rtl"?-1:1,p=Math.sign(k.x)*.4,d=Math.round(k.x/b.value+p)*a;if(d&&!w){const T=K=>{K.stopPropagation(),window.removeEventListener("click",T,!0)};window.addEventListener("click",T,!0)}N(i.value-d),k.x=0,k.y=0,document.removeEventListener(w?"touchmove":"mousemove",ue,!0),document.removeEventListener(w?"touchend":"mouseup",ce,!0)}function de(){!n.autoplay||n.autoplay<=0||(M=setInterval(()=>{n.pauseAutoplayOnHover&&Y.value||G()},n.autoplay))}function fe(){!n.autoplay||n.autoplay<=0||(M&&(clearInterval(M),M=null),de())}const E=u(!1);function N(a){if(i.value===a||E.value)return;E.value=!0,fe();const p=n.wrapAround?a:ne({val:a,max:O.value,min:B.value});C.value=i.value,i.value=p,X=setTimeout(()=>{const d=ae({val:p,max:O.value,min:0});n.wrapAround&&(i.value=d),s("update:modelValue",d),E.value=!1},n.transition)}function G(){N(i.value+n.itemsToScroll)}function ve(){N(i.value-n.itemsToScroll)}const pe={slideTo:N,next:G,prev:ve};y("nav",pe),y("isSliding",E);const me=H(()=>st({config:n,currentSlide:i.value,slidesCount:c.value}));y("slidesToScroll",me);const Ne=H(()=>{const a=n.dir==="rtl"?-1:1,p=me.value*b.value*a;return{transform:`translateX(${k.x-p}px)`,transition:`${E.value?n.transition:0}ms`,margin:n.wrapAround?`0 -${c.value*b.value}px`:"",width:"100%"}});function ge(){oe()}function he(){oe(),P(),R(),V(),fe()}function _e(){R()}Object.keys(Ae).forEach(a=>{["modelValue"].includes(a)||xe(()=>t[a],he)}),xe(()=>t.modelValue,a=>{a!==i.value&&N(Number(a))}),ge(),Pe(()=>{c.value!==m.value.length&&_e()});const be={config:n,slidesCount:c,slideWidth:b,currentSlide:i,maxSlide:O,minSlide:B,middleSlide:F};r({updateBreakpointsConfigs:P,updateSlidesData:R,updateSlideWidth:V,initCarousel:ge,restartCarousel:he,updateCarousel:_e,slideTo:N,next:G,prev:ve,nav:pe,data:be});const Z=e.default||e.slides,q=e.addons,we=D(be);return()=>{const a=ot(Z==null?void 0:Z(we)),p=(q==null?void 0:q(we))||[];a.forEach((J,Q)=>J.props.index=Q);let d=a;if(n.wrapAround){const J=a.map((ee,te)=>ye(ee,{index:-a.length+te,isClone:!0})),Q=a.map((ee,te)=>ye(ee,{index:a.length+te,isClone:!0}));d=[...J,...a,...Q]}m.value=a;const T=_("ol",{class:"carousel__track",style:Ne.value,onMousedown:n.mouseDrag?Te(ie,["capture"]):null,onTouchstart:n.touchDrag?Te(ie,["capture"]):null},d),K=_("div",{class:"carousel__viewport"},T);return _("section",{ref:o,class:{carousel:!0,"carousel--rtl":n.dir==="rtl"},dir:n.dir,"aria-label":"Gallery",tabindex:"0",onMouseenter:Me,onMouseleave:Ee},[K,p,_(it)])}}});const ct={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},se=t=>{const e=t.name;if(!e||typeof e!="string")return;const s=ct[e],r=_("path",{d:s}),l=t.title||e,o=_("title",l);return _("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img",ariaLabel:l},[o,r])};se.props={name:String,title:String};const dt=(t,{slots:e,attrs:s})=>{const{next:r,prev:l}=e||{},o=x("config",D(Object.assign({},g))),m=x("maxSlide",u(1)),b=x("minSlide",u(1)),c=x("currentSlide",u(1)),v=x("nav",{}),{dir:f,wrapAround:n}=o,i=f==="rtl",C=_("button",{type:"button",class:["carousel__prev",!n&&c.value<=b.value&&"carousel__prev--disabled",s==null?void 0:s.class],"aria-label":"Navigate to previous slide",onClick:v.prev},(l==null?void 0:l())||_(se,{name:i?"arrowRight":"arrowLeft"})),F=_("button",{type:"button",class:["carousel__next",!n&&c.value>=m.value&&"carousel__next--disabled",s==null?void 0:s.class],"aria-label":"Navigate to next slide",onClick:v.next},(r==null?void 0:r())||_(se,{name:i?"arrowLeft":"arrowRight"}));return[C,F]};var Le=W({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:e}){const s=x("config",D(Object.assign({},g))),r=x("currentSlide",u(0)),l=x("slidesToScroll",u(0)),o=x("slideWidth",u(0)),m=x("isSli
5ding",u(!1)),b=H(()=>({width:o.value?`${o.value}px`:"100%"})),c=()=>t.index===r.value,v=()=>t.index===r.value-1,f=()=>t.index===r.value+1,n=()=>{const i=Math.floor(l.value),C=Math.ceil(l.value+s.itemsToShow-1);return t.index>=i&&t.index<=C};return()=>{var i;return _("li",{style:b.value,class:{carousel__slide:!0,"carousel_slide--clone":t.isClone,"carousel__slide--visible":n(),"carousel__slide--active":c(),"carousel__slide--prev":v(),"carousel__slide--next":f(),"carousel__slide--sliding":m.value},"aria-hidden":!n()},(i=e.default)===null||i===void 0?void 0:i.call(e))}}});const ft={class:"pb-8"},vt={class:"container pt-3 featured-psychics-container"},pt={id:"featuredTest",class:"feature-psychics readers mobile:w-3/4 mobile:mx-auto"},mt={key:2,style:{height:"400px"}},gt={class:"more-buttons lg:pb-8 pb-4 md:pb-12 flex justify-center sm:mt-5 mt-8"},xt=W({__name:"FeaturedPsychics",setup(t){const e=Be(),s={itemsToShow:1,snapAlign:"center",wrapAround:!1,autoplay:6e3},r=u({700:{itemsToShow:2},820:{itemsToShow:3},880:{itemsToShow:3}}),l=u(!1),o=u([]),m=H(()=>{const c={[I.ONLINE]:1,[I.BUSY]:2,[I.OFFLINE]:3},v=o.value.filter(f=>f.type===2);return o.value.map(f=>{const n=e.users.find(i=>i.id===f.id);return{...f,realtime_status:n?n.realtime_status:f.realtime_status??I.OFFLINE}}),v.slice().sort((f,n)=>{const i=c[f.realtime_status??I.OFFLINE],C=c[n.realtime_status??I.OFFLINE];return i-C})}),b=async()=>{try{o.value=await Ye.getFeatureReaders(),e.setOnlineUsers(o.value),l.value=!0}catch{}};return Ve(()=>{b()}),(c,v)=>{const f=$e("router-link");return S(),j("section",ft,[h("div",vt,[v[1]||(v[1]=h("h1",{class:"text-2xl md:text-3xl lg:text-4xl mb-5 md:mb-2 font-bold drop-shadow-lg text-center",style:{background:"linear-gradient(135deg, #ff29d8, #e708b7, #189bdc, #189bdc)","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}}," Our Online Psychics ",-1)),h("div",pt,[A(z(ut),{settings:s,breakpoints:r.value},{addons:L(()=>[A(z(dt),null,{prev:L(()=>[A(Ke)]),next:L(()=>[A(tt)]),_:1})]),default:L(()=>[l.value?(S(!0),j(Se,{key:0},Ce(m.value,n=>(S(),ke(z(Le),{key:n.id},{default:L(()=>[A(He,{disableMargin:!0,class:"slide-item carousel__item h-full",reader:n},null,8,["reader"])]),_:2},1024))),128)):(S(!0),j(Se,{key:1},Ce([...Array(5).keys()],n=>(S(),ke(z(Le),{key:`plh-${n}`},{default:L(()=>[A(We,{disableMargin:!0,class:"slide-item carousel__item h-full"})]),_:1}))),128)),o.value.length===0?(S(),j("div",mt)):Ue("",!0)]),_:1},8,["breakpoints"])]),h("div",gt,[A(f,{to:"/our-psychics",class:"px-8 py-3 border border-[#fb369f] bg-[#fb369f] text-white rounded-full text-lg font-bold shadow-md hover:bg-white hover:text-[#fb369f]"},{default:L(()=>[...v[0]||(v[0]=[ze(" View all Our Psychics ",-1)])]),_:1})])])])}}});export{xt as _};
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.