1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CXaxkCCC.js","assets/react-DB81jz4e.js","assets/classnames-DblanS9F.js","assets/ACSW-logo-CWwFB0bU.js","assets/react-toastify-B2OMGJ7B.js","assets/clsx-B-dksMZM.js","assets/react-toastify-tmFy8hrY.css","assets/index-DmBApqGs.js","assets/react-dom--nYcEvQ9.js","assets/scheduler-DYLXRpC5.js","assets/react-router-dom-DMHC1CQm.js","assets/react-router-uRydC1lc.js","assets/@remix-run-CeDW-7A3.js","assets/prop-types-Be4xmBvl.js","assets/axios-Dq7h7Pqt.js","assets/urijs-C0etshlb.js","assets/@uidotdev-D54Fghg6.js","assets/immer-C1FJ5K63.js","assets/tailwind-merge-yGZq-iow.js","assets/lucide-react-Bg-_0OiK.js","assets/react-select-B7u53dsa.js","assets/@babel-DtHYjXaH.js","assets/@emotion-DqIYrxhE.js","assets/hoist-non-react-statics-DQogQWOa.js","assets/stylis-DDa9OTMq.js","assets/@floating-ui-CPfcQq1M.js","assets/use-isomorphic-layout-effect-E4JuTat1.js","assets/memoize-one-BdPwpGay.js","assets/rc-slider-Bvi4xFsO.js","assets/rc-util-Cai3Zzp5.js","assets/rc-slider-TD34ZkBl.css","assets/react-colorful-Cf6LBH0k.js","assets/localforage-C9nJVLvA.js","assets/index-BtFFOF_I.css","assets/index-CVtF1aO4.js","assets/no-scroll-bar-B2jY3ysk.js","assets/index-BWASJWh6.js","assets/calculating-visual-viewport-size-Ciw1jt8I.js","assets/replace-url-BKEVlwmy.js","assets/initial-values-gz-QGEe2.js","assets/correct-url-to-display-for-article-B9qI3uXZ.js","assets/my-list-action-zfIRtQNg.js"])))=>i.map(i=>d[i]); 2import{_ as h,u as b}from"./index-DmBApqGs.js";import{r,j as e}from"./react-DB81jz4e.js";import{c as g}from"./correct-url-to-display-for-article-B9qI3uXZ.js";import{m as j}from"./modules-carousel-VW6MUl1L.js";import"./react-toastify-B2OMGJ7B.js";import{M as k}from"./my-list-action-zfIRtQNg.js";import{u as v,L as u}from"./use-post-like-handler-w6-tUlMv.js";import{L as f}from"./react-router-dom-DMHC1CQm.js";import{S as L,a as y}from"./swiper-ChGwzcpX.js";/* empty css */import"./react-dom--nYcEvQ9.js";import"./classnames-DblanS9F.js";import"./scheduler-DYLXRpC5.js";import"./prop-types-Be4xmBvl.js";import"./axios-Dq7h7Pqt.js";import"./urijs-C0etshlb.js";import"./react-router-uRydC1lc.js";import"./@remix-run-CeDW-7A3.js";import"./@uidotdev-D54Fghg6.js";import"./immer-C1FJ5K63.js";import"./clsx-B-dksMZM.js";import"./tailwind-merge-yGZq-iow.js";import"./lucide-react-Bg-_0OiK.js";import"./react-select-B7u53dsa.js";import"./@babel-DtHYjXaH.js";import"./@emotion-DqIYrxhE.js";import"./hoist-non-react-statics-DQogQWOa.js";import"./stylis-DDa9OTMq.js";import"./@floating-ui-CPfcQq1M.js";import"./use-isomorphic-layout-effect-E4JuTat1.js";import"./memoize-one-BdPwpGay.js";import"./rc-slider-Bvi4xFsO.js";import"./rc-util-Cai3Zzp5.js";import"./react-colorful-Cf6LBH0k.js";import"./localforage-C9nJVLvA.js";const N=r.lazy(()=>h(()=>import("./index-CXaxkCCC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])).then(s=>({default:s.Img}))),z=r.lazy(()=>h(()=>import("./index-CVtF1aO4.js"),__vite__mapDeps([34,1,2,4,5,6,35,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])).then(s=>({default:s.ModalHandler}))),M=r.lazy(()=>h(()=>import("./index-BWASJWh6.js"),__vite__mapDeps([36,7,1,2,8,9,10,11,12,13,14,15,4,5,6,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,37,38,39,40,41])).then(s=>({default:s.CommunityModal}))),C=({article:s,url:t,setArticleId:i,setModalIsOpen:n,handlePost:l,handleDelete:d})=>{const{t:o}=b(),a=new Date(s.publishDate).toLocaleDateString(),[c,x]=r.useState(s.likesCount),{handlePostLike:m,data:p}=v();return r.useEffect(()=>{p&&(x(p),l(s.id,k.like,p))},[p]),r.useEffect(()=>{s.isLiked&&x(s.likesCount)},[s.likesCount,s.isLiked]),e.jsxs("article",{className:"flex h-full flex-col rounded-lg bg-white",children:[e.jsxs(f,{to:g(t,s.slug),onClick:w=>{w.preventDefault(),i(s.id),n(!0)},className:"flex flex-1",children:[e.jsx("div",{className:"m-4 shrink-0 rounded-lg",children:e.jsx(N,{src:s.image,alt:s.title,className:"size-20 shrink-0 rounded-lg object-cover"})}),e.jsx("div",{className:"flex",children:e.jsxs("div",{className:"h-full",children:[e.jsx("div",{className:"mx-4 mt-4 text-xs leading-5 text-gray-600",children:a}),e.jsx("span",{className:"mx-4 my-2 block flex-1 font-bold",children:s.title})]})})]}),e.jsx("div",{className:"w-full",children:e.jsxs("div",{className:"flex items-center justify-between px-4 pb-4",children:[e.jsx("div",{className:"dropshadow rounded-full bg-white px-2 py-1 text-sm font-semibold text-darkPink transition duration-500 ease-in-out",children:e.jsxs("div",{className:`has-tooltip relative flex ${s.isLiked?"pointer-events-none":"cursor-pointer"} items-center`,children:[e.jsxs("div",{className:"tooltip dropshadow -bottom-2 rounded-full bg-white p-3 lg:-bottom-3 lg:flex",children:[e.jsxs("button",{className:"mb-2 block size-7 rounded-full border-2 border-yellow-500 bg-white lg:mb-0",type:"button",onClick:()=>m(s.id,u.face),"aria-label":o("like-the-article"),"data-tkey":"like-the-article",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"stroke-yellow-500 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.182 15.182a4.5 4.5 0 01-6.364 0M21 12a9 9 0 11-18 0 9 9 0 0118 0zM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75zm-.375 0h.008v.015h-.008V9.75zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75zm-.375 0h.008v.015h-.008V9.75z"})}),e.jsx("span",{className:"hidden",children:o("like-the-article")})]}),e.jsxs("button",{className:"mb-2 block size-7 rounded-full border-2 border-yellow-500 bg-white lg:mb-0 lg:ml-2",type:"button",onClick:()=>m(s.id,u.star),"aria-label":o("like-the-article"),"data-tkey":"like-the-article",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"stroke-yellow-500 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})}),e.jsx("span",{className:"hidden",children:o("like-the-article")})]}),e.jsxs("button",{className:"mb-2 block size-7 rounded-full border-2 border-yellow-500 bg-white lg:mb-0 lg:ml-2",type:"button",onClick:()=>m(s.id,u.heart),"aria-label":o("like-the-article"),"data-tkey":"like-the-article",children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"stroke-yellow-500 p-1","aria-labelledby":"likeIconTitle",children:[e.jsx("title",{id:"likeIconTitle",children:"Like"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})]}),e.jsx("span",{className:"hidden",children:o("like-the-article")})]}),e.jsxs("button",{className:"mb-0 block size-7 rounded-full border-2 border-yellow-500 bg-white lg:mb-0 lg:ml-2",type:"button",onClick:()=>m(s.id,u.thumbsUp),children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"stroke-yellow-500 p-1",role:"img",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.9
208c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z"})}),e.jsx("span",{className:"hidden",children:o("like-the-article")})]})]}),s!=null&&s.isLiked?e.jsxs(e.Fragment,{children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6 rounded-full border border-yellow-500 bg-white stroke-yellow-500 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.182 15.182a4.5 4.5 0 01-6.364 0M21 12a9 9 0 11-18 0 9 9 0 0118 0zM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75zm-.375 0h.008v.015h-.008V9.75zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75zm-.375 0h.008v.015h-.008V9.75z"})}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"-ml-4 size-6 rounded-full border border-yellow-500 bg-white stroke-yellow-500 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"-ml-4 size-6 rounded-full border border-yellow-500 bg-white stroke-yellow-500 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"-ml-4 size-6 rounded-full border border-yellow-500 bg-white stroke-yellow-500 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6 rounded-full border border-purple-300 bg-purple-50 stroke-purple-300 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.182 15.182a4.5 4.5 0 01-6.364 0M21 12a9 9 0 11-18 0 9 9 0 0118 0zM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75zm-.375 0h.008v.015h-.008V9.75zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75zm-.375 0h.008v.015h-.008V9.75z"})}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"-ml-4 size-6 rounded-full border border-purple-300 bg-purple-50 stroke-purple-300 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"-ml-4 size-6 rounded-full border border-purple-300 bg-purple-50 stroke-purple-300 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"-ml-4 size-6 rounded-full border border-purple-300 bg-purple-50 stroke-purple-300 p-1",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.9
208c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z"})})]}),e.jsx("span",{className:"ml-3 font-semibold",children:c})]})}),e.jsx("button",{type:"button",className:"rounded-lg border border-gray-300 bg-white px-2 py-1.5 text-sm font-semibold text-darkPink transition duration-500 ease-in-out hover:border-purple-200 hover:text-purple-400 hover:shadow lg:rounded-full",onClick:()=>{if(s.isInReadingList){d(s.id);return}l(s.id,k.add,0)},"aria-label":s.isInReadingList?o("community-delete_to_list"):o("community-add_to_list"),children:e.jsx("span",{className:"font-semibold",children:s!=null&&s.isInReadingList?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"mr-3 inline-block font-semibold",children:"-"}),o("community-delete_to_list")]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"mr-3 inline-block font-semibold",children:"+"}),o("community-add_to_list")]})})})]})})]},s.id)},_={640:{slidesPerView:1,spaceBetween:10,slidesPerGroup:1},768:{slidesPerView:1,spaceBetween:20,slidesPerGroup:1},1024:{slidesPerView:1,spaceBetween:30,slidesPerGroup:1}},me=({articles:s,url:t,handlePost:i,handleDelete:n})=>{const[l,d]=r.useState(!1),[o,a]=r.useState("");return s.length>0?e.jsxs("section",{className:"mt-8 overflow-hidden",children:[e.jsx(z,{isOpen:l,children:e.jsx(M,{modalIsOpen:l,setModalIsOpen:d,articleId:o,setArticleId:a,url:t,handlePost:i,handleDelete:n})}),e.jsxs(L,{className:"carousel relative",modules:j,navigation:{nextEl:".swiper-custom-next",prevEl:".swiper-custom-prev"},keyboard:!0,pagination:{el:".swiper-pagination",type:"progressbar"},breakpoints:_,a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide"},children:[s.map(c=>e.jsx(y,{children:e.jsx(C,{article:c,url:t,setArticleId:a,setModalIsOpen:d,handlePost:i,handleDelete:n})},c.id)),e.jsx("div",{className:"relative z-40 -mt-12 flex items-center justify-center",children:e.jsxs("nav",{className:"flex items-center justify-end",children:[e.jsx("div",{className:"swiper-custom-prev rounded-full border-2 bg-white p-1.5",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"size-6",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 18L9 12L15 6"})})}),e.jsx("div",{className:"swiper-custom-next ml-2 rounded-full border-2 bg-white p-1.5",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"size-6",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 6L15 12L9 18"})})})]})})]})]}):null};export{me as SpotLight};
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.