1import{u as o,e as g,r as h,j as e,D as p,S as j,c as b,b as f,L as y,d as v}from"./main-Dwl6_Lp9.js";import{A as N}from"./AlertCardMeta-B2at-gIw.js";const L=(i,s,t)=>(i?.[t]||[]).filter(l=>s.includes(l)||!s.length).length,C=()=>{const i=o(a=>a?.auth?.isLogin),{data:s,isFetching:t}=g(void 0),d=o(a=>a.seenUnseen.unseenMap),n=h.useRef(null),l=()=>{n.current?.go("<")},r=()=>{n.current?.go(">")};return!t&&(!s?.data||s.data.length===0)?null:e.jsx("section",{className:"next-events-section daily-alert-sec py-0",id:"location-alerts-section",children:e.jsx("div",{className:"container",children:t?e.jsx(p,{}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"daily-alrt-slide-tbn d-flex justify-content-between align-items-center",children:[e.jsx("div",{className:"mobile-daily-content",children:e.jsx("h3",{className:" next-event-title location-heading-animation",children:"Location-Based Daily Alerts"})}),e.jsxs("div",{className:"d-flex gap-2 align-items-center nw-mobile-slide-btn",children:[e.jsx("button",{onClick:l,className:"btn btn-light rounded-circle shadow-sm based-prev",children:"â¹"}),e.jsx("button",{onClick:r,className:"btn btn-light rounded-circle shadow-sm based-next",children:"âº"})]})]}),e.jsx(j,{options:{perPage:2,gap:"1rem",arrows:!1,pagination:!1,autoplay:s?.data?.length>2,type:s?.data?.length>2?"loop":"slide",pauseOnHover:!0,breakpoints:{992:{perPage:1},...s?.data?.length<=1&&{type:"slide",autoplay:!1}}},"aria-label":"Location Based Daily Alerts Slider",ref:n,children:s?.data?.map((a,c)=>{const m=L(d,a?.postIds||[],a.id),u=a.cat_icon_image&&a.cat_icon_image.trim()!==""?a.cat_icon_image:b;return e.jsx(f,{children:e.jsx("div",{className:"location-card-animation",style:{animationDelay:`${c*1}s`},children:e.jsx(y,{to:"#",onClick:x=>x.preventDefault(),"data-bs-toggle":"modal","data-bs-target":"#dailyAlertAppGate",children:e.jsx("div",{className:"casting-crd","data-aos":"fade-up","data-aos-delay":"50",children:e.jsxs("div",{className:"casting-content-bx d-flex align-items-start",children:[e.jsx("div",{className:"me-3",children:e.jsx("div",{className:"casting-pic-bx",children:e.jsx("img",{src:u,alt:"Casting Call",loading:"lazy",decoding:"async"})})}),e.jsxs("div",{children:[e.jsx("h5",{className:"text-capitalize",children:a.cat_name}),e.jsxs("span",{children:[e.jsx("i",{className:"fas fa-location"})," ",a.state_name]}),e.jsx("span",{children:v(a?.lastPost)})]}),e.jsx(N,{smartDateLabel:a?.lastPost?.smart_date_label,isMuted:a?.isMuted,isLogin:i,unseenCount:m})]})})})})},a.id)})})]})})})};export{C 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.