@igamingcareer/igaming-components 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7752,7 +7752,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7752
7752
|
`,children:[n.jsx("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(qt,{className:"w-4 h-4 mr-1"}),i.location||"Remote"]})}),n.jsxs("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(ca,{className:"w-4 h-4 mr-1"}),i.department||"Full-time"]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"h-3.5 w-3.5 mr-1.5"}),n.jsx("span",{children:u})]})]}),n.jsx("div",{className:"hidden mt-2 text-xs text-gray-500",children:h})]}),n.jsxs("div",{className:`mt-auto pt-4 flex items-center space-x-3 ${o==="list"?"md:mt-0 md:ml-4":""}`,children:[n.jsx("button",{onClick:c,className:`
|
|
7753
7753
|
p-2 rounded-lg transition-colors
|
|
7754
7754
|
${a?"text-yellow-600 bg-yellow-50 hover:bg-yellow-100":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"}
|
|
7755
|
-
`,"aria-label":a?"Unsave job":"Save job",children:n.jsx(Bt,{size:20,className:`transition-colors ${a?"fill-blue-600 text-yellow-600":""}`})}),n.jsx("a",{href:i.
|
|
7755
|
+
`,"aria-label":a?"Unsave job":"Save job",children:n.jsx(Bt,{size:20,className:`transition-colors ${a?"fill-blue-600 text-yellow-600":""}`})}),n.jsx("a",{href:i.description&&i.description!=""?"/jobs/"+(i.slug||i.id):i.link,target:i.description&&i.description!=""?"_self":"_blank",rel:"noopener noreferrer",className:`flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
|
|
7756
7756
|
transition-colors text-sm font-medium text-center`,onClick:s,children:"Apply Now"})]})]})},fq=({jobs:i,onSaveJob:e,onViewJob:t,isJobSaved:a})=>i.length===0?n.jsxs("div",{className:"no-results",children:[n.jsx("h3",{children:"No jobs found matching your criteria"}),n.jsx("p",{children:"Try adjusting your filters or search term"})]}):n.jsx("div",{className:"jobs-grid",children:i.map(o=>n.jsx(Zj,{job:o,onSaveJob:e,onViewJob:t,isSaved:a(o)},o.link))}),gq=({currentPage:i,totalPages:e,setCurrentPage:t})=>{if(e<=1)return null;const a=[];if(e<=5)for(let s=1;s<=e;s++)a.push(s);else if(i<=3)for(let s=1;s<=5;s++)a.push(s);else if(i>=e-2)for(let s=e-4;s<=e;s++)a.push(s);else for(let s=i-2;s<=i+2;s++)a.push(s);return n.jsxs("div",{className:"pagination",children:[n.jsx("button",{className:"pagination-button prev-button",disabled:i===1,onClick:()=>t(i-1),children:n.jsx(Ht,{})}),a.map(s=>n.jsx("button",{className:`pagination-button ${i===s?"active":""}`,onClick:()=>t(s),children:s},s)),n.jsx("button",{className:"pagination-button next-button",disabled:i===e,onClick:()=>t(i+1),children:n.jsx(Ft,{})})]})},xq=({isOpen:i,onClose:e,filterKeys:t,filtersData:a,activeFilters:o,handleFilterChange:s,handleSearchChange:c,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:y})=>n.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${i?"opacity-100":"opacity-0 pointer-events-none"}`,children:n.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${i?"transform translate-x-0":"transform translate-x-full"}`,children:n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"flex justify-between items-center mb-4",children:[n.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),n.jsx("button",{onClick:e,className:"text-gray-500 hover:text-gray-700",children:n.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsx("div",{className:"mb-4",children:n.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:u=>c(u.target.value)})}),t.map(u=>{var p;return n.jsxs("div",{className:"mb-4",children:[n.jsx("label",{htmlFor:`mobile-${u}`,className:"block text-sm font-medium text-gray-700 mb-1",children:u.replace(/_/g," ")}),n.jsxs("select",{id:`mobile-${u}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:k=>s(u,k.target.value),value:o[u]||"",children:[n.jsxs("option",{value:"",children:["Select ",u.replace(/_/g," ")]}),(p=a[u])==null?void 0:p.map(k=>n.jsx("option",{value:k,children:k},k))]})]},u)}),Object.keys(o).length>0&&n.jsxs("div",{className:"mt-4",children:[n.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(o).map(([u,p])=>n.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[n.jsxs("span",{children:[u.replace(/_/g," "),": ",p]}),n.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>s(u,""),children:"×"})]},u)),n.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),vq=({apiUrl:i,itemsPerPage:e,filterKeys:t,enableSearch:a,enablePagination:o,enableMobileFilter:s,banners:c})=>{const[l,d]=b.useState([]),[h,y]=b.useState([]),[u,p]=b.useState(1),[k,g]=b.useState({}),[m,f]=b.useState([]),[x,w]=b.useState({}),[L,j]=b.useState(""),[C,N]=b.useState([]),[I,A]=b.useState(!1);b.useEffect(()=>{fetch(`${i}/items`).then(B=>B.json()).then(B=>{d(B),y(B);const O=S(B);w(O)}).catch(B=>console.error("Error fetching items:",B))},[i]);const S=B=>{const O={};B.forEach(Q=>{t.forEach(me=>{O[me]||(O[me]=new Set);const Ae=Q[me];Ae!=null&&O[me].add(String(Ae))})});const X={};return Object.keys(O).forEach(Q=>{X[Q]=Array.from(O[Q])}),X},q=B=>{const O=S(B);w(O)},F=(B,O)=>{g(X=>{const Q=O?{...X,[B]:O}:{...X};O||delete Q[B];const me=K(l,Q,m);return y(me),p(1),q(me),Q})},D=B=>{if(j(B),B){const O=l.map(X=>X.title).filter((X,Q,me)=>X&&X.toLowerCase().includes(B.toLowerCase())&&me.indexOf(X)===Q).slice(0,5);N(O)}else N([])},V=B=>{if(B.key==="Enter"&&L.trim()){B.preventDefault();const O=[...m,L.trim()];f(O);const X=K(l,k,O);y(X),p(1),q(X),j("")}},W=B=>{const O=m.filter(Q=>Q!==B);f(O);const X=K(l,k,O);y(X),p(1),q(X)},K=(B,O,X)=>{let Q=B.filter(me=>Object.entries(O).every(([Ae,at])=>{const De=me[Ae];return typeof De=="string"&&De.toLowerCase()===at.toLowerCase()}));return X.length>0&&(Q=Q.filter(me=>X.every(Ae=>me.title.toLowerCase().includes(Ae.toLowerCase())))),Q},U=()=>{g({}),f([]),y(l),p(1),q(l)},ae=()=>{A(!I)},J=B=>{},de=B=>{},ke=B=>!1,ce=Math.ceil(h.length/e),_e=h.slice((u-1)*e,u*e);return n.jsxs("div",{className:"flex flex-col min-h-screen",children:[n.jsx("div",{className:"flex-grow",children:n.jsxs("div",{className:"job-listings-container",children:[n.jsx("div",{className:"header-container",children:n.jsxs("div",{className:"header-content",children:[n.jsx("h1",{className:"main-title",children:"Job Listings"}),n.jsxs("p",{className:"items-count",children:["Total: ",n.jsx("span",{className:"count-value",children:h.length})]})]})}),n.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:ae,children:I?"Close Filters":"Open Filters"}),n.jsxs("div",{className:"hidden md:block filters-container",children:[n.jsx(mq,{searchTerm:L,handleSearchChange:D,handleSearchKeyDown:V,suggestions:C}),n.jsx(kq,{filterKeys:t,filtersData:x,activeFilters:k,handleFilterChange:F,searchFilters:m,removeSearchFilter:W,clearAllFilters:U,searchableFilters:["company"]})]}),n.jsx(xq,{isOpen:I,onClose:ae,filterKeys:t,filtersData:x,activeFilters:k,handleFilterChange:F,handleSearchChange:D,searchTerm:L,clearAllFilters:U,handleSearchKeyDown:V,searchFilters:m,removeSearchFilter:W}),n.jsxs("div",{className:"flex flex-col md:flex-row",children:[n.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[n.jsx("h2",{className:"section-title",children:"Open Positions"}),n.jsx(fq,{jobs:_e,onSaveJob:J,onViewJob:de,isJobSaved:ke}),n.jsx(gq,{currentPage:u,totalPages:ce,setCurrentPage:p})]}),n.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:n.jsx("div",{className:"sticky top-4",children:c.sidebar.enabled&&c.sidebar.url&&n.jsx(qo,{position:"sidebar",url:c.sidebar.url,link:c.sidebar.link,alt:c.sidebar.alt})})})]})]})}),c.bottom.enabled&&c.bottom.url&&n.jsx(qo,{position:"top",url:c.bottom.url,link:c.bottom.link,alt:c.bottom.alt})]})},Mq=({title:i="Subscribe to our newsletter",description:e="The latest job opportunities and career tips, weekly in your inbox.",links:t=[]})=>{const[a,o]=b.useState(!1),[s,c]=b.useState(null);b.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(o(!0),c(d))}catch{}},[]);const l=d=>{d.preventDefault()};return n.jsx("footer",{className:"bg-gray-800 text-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[n.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[n.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:n.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(t)&&t.map((d,h)=>{var y;return Array.isArray(d)&&d.length>0?n.jsxs("div",{className:"mt-12 md:mt-0",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((y=d[0])==null?void 0:y.text)||"Section"}),n.jsx("ul",{className:"mt-4 space-y-4",children:d.map((u,p)=>n.jsx("li",{children:n.jsx("a",{href:u.url,className:"hover:text-gray-300",children:u.text})},p))})]},h):null})})}),n.jsxs("div",{className:"mt-8 xl:mt-0",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:i}),n.jsx("p",{className:"mt-4 text-base text-gray-300",children:e}),a?n.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",s?` as ${s}`:"","!"]}):n.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[n.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),n.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),n.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:n.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),n.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:n.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},wq=({logo:i="",links:e=[],buttonText:t="Post a Job",buttonUrl:a="/post-job"})=>n.jsx("nav",{className:"bg-white shadow-md",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex justify-between h-16",children:[n.jsxs("div",{className:"flex",children:[n.jsx("div",{className:"flex-shrink-0 flex items-center",children:n.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:i?n.jsx("img",{src:i,alt:"Logo",className:"h-6 w-6"}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:n.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),n.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:e.map((o,s)=>n.jsx("a",{href:o.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:o.text},s))})]}),n.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:n.jsx("a",{href:a,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:t})})]})})}),Xj=({savedJobsCount:i})=>{const[e,t]=b.useState("");b.useEffect(()=>{typeof window<"u"&&t(window.location.pathname)},[]);const a=o=>e===o;return n.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:n.jsxs("div",{className:"grid grid-cols-5 h-16",children:[n.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${a("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(na,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),n.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${a("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(ca,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),n.jsxs("a",{href:"/saved","aria-label":"Saved Jobs",className:`flex flex-col items-center justify-center relative ${a("/saved")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Qi,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Saved"}),i>0&&n.jsx("span",{className:"absolute -top-1 -right-1 bg-primary-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs",children:i})]}),n.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${a("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Wn,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),n.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${a("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Ci,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},bq=i=>{const e=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],t=["Engineering","Marketing","Sales","Design","Product","HR"],a=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],o=["New York","San Francisco","Austin","Seattle","Chicago"],s=["USA","Canada","UK","Germany","Australia"],c=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:i},(d,h)=>{const y=l(120);return{id:`job-${h}`,title:`${t[h%t.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:e[h%e.length],department:t[h%t.length],location:a[h%a.length],city:o[h%o.length],country:s[h%s.length],company_type:c[h%c.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${e[h%e.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:y,created_at:y,sponsored:h%7===0}})},Jj=({activeDateFilter:i,onDateFilterChange:e,dateFieldLabel:t="Published",options:a=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>n.jsxs("div",{className:"date-filter",children:[t&&n.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[t,":"]}),n.jsx("select",{id:"date-filter",value:i,onChange:o=>e(o.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:a.map(o=>n.jsx("option",{value:o.value,children:o.label},o.value))})]}),Yj=({activeDateFilter:i,handleDateFilterChange:e,filterKeys:t,searchableFilters:a,dateFieldLabel:o,activeFilters:s,handleFilterChange:c,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:y=!1,isMobileFilterOpen:u,toggleMobileFilter:p,dateOptions:k=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>n.jsx("div",{children:n.jsxs("div",{className:u?"block":"hidden",children:[n.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>p(!u)}),n.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),n.jsx("button",{onClick:()=>p(!u),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:o}),n.jsx(Jj,{activeDateFilter:i,onDateFilterChange:e,dateFieldLabel:"",options:k})]}),t.map(g=>{var m;return n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:g.replace(/_/g," ")}),a.includes(g)?n.jsx(ow,{options:d[g]||[],value:s[g]||"",onChange:f=>c(g,f),placeholder:`Select ${g.replace(/_/g," ")}`,className:"w-full"}):n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:s[g]||"",onChange:f=>c(g,f.target.value),children:[n.jsxs("option",{value:"",children:["Select ",g.replace(/_/g," ")]}),(m=d[g])==null?void 0:m.map(f=>n.jsx("option",{value:f,children:f},f))]})]},g)}),n.jsx("div",{className:"mt-6",children:n.jsxs("button",{onClick:l,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${y?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[n.jsx(Bt,{size:16,className:"mr-2"}),n.jsxs("span",{children:["Saved Jobs (",h.length,")"]})]})}),n.jsx("div",{className:"mt-6 pt-6 border-t border-gray-200",children:n.jsx("button",{onClick:()=>p(!u),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),Ab=({totalColumns:i=2})=>n.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:n.jsx("div",{className:"max-w-7xl mx-auto",children:n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),n.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${i} gap-6`,children:[...Array(4)].map((e,t)=>n.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[n.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),n.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),n.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},t))})]})})}),Nb=({data:i,onSelect:e,placeholder:t="Search...",debounceMs:a=250,onTyping:o,className:s="",showSubmitButton:c=!1})=>{const[l,d]=b.useState(""),[h,y]=b.useState([]),[u,p]=b.useState(!1),k=b.useRef(null),g=x=>{d(x),p(!0),o&&o(x)},m=()=>{d(""),y([]),p(!1),o==null||o("")},f=x=>{e(x),d(""),y([]),p(!1)};return b.useEffect(()=>{k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{if(!l){y([]);return}const x=i.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,L,j)=>j.indexOf(w)===L).slice(0,5);y(x)},a)},[l,i]),n.jsxs("div",{className:`relative w-full ${s}`,children:[n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-4 w-4 text-gray-400"})}),n.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:t,value:l,onChange:x=>g(x.target.value),onFocus:()=>p(h.length>0),onBlur:()=>setTimeout(()=>p(!1),200),onKeyDown:x=>{x.key==="Enter"&&l.trim()&&(x.preventDefault(),f(l.trim()))}}),l&&!c&&n.jsx("button",{onClick:m,className:"absolute inset-y-0 right-2 flex items-center",children:n.jsx(bt,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),c&&n.jsx("button",{onClick:()=>l.trim()&&f(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:n.jsx(gt,{className:"h-4 w-4"})})]}),u&&h.length>0&&n.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((x,w)=>n.jsx("li",{children:n.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>f(x),children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(gt,{className:"h-4 w-4 mr-2 text-gray-400"}),x]})})},w))})]})},qb=({onSearchChange:i,title:e="Gaming News",description:t="Latest news and insights from the gaming industry",searchPlaceholder:a="Search news...",popularTags:o=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:s=c=>`?q=${encodeURIComponent(c)}`})=>(b.useState(""),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),n.jsx("p",{className:"hidden lg:block text-gray-600",children:t})]})})})}),n.jsx("div",{className:"bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[n.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),o.map(c=>n.jsxs("a",{href:s(c),className:"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent text-yellow-600 bg-yellow-50 hover:bg-yellow-100 cursor-pointer",children:["#",c]},c))]})})})})]})),Cq=i=>i.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function Pb(i){const e=Cq(i),t={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},a=[...t.gambling,...t.compliance,...t.business,...t.format,...t.misc];for(const o of a)if(new RegExp(`\\b${o.replace(/\s+/g,"\\s+")}\\b`,"i").test(e))return o;return null}function Lq(i){const e=Pb(i);return e||jq(i)}function jq(i){const e=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),t=i.toLowerCase().split(/\W+/).filter(s=>s.length>2&&!e.has(s)),a={};for(const s of t)a[s]=(a[s]||0)+1;const o=Object.entries(a).sort((s,c)=>c[1]-s[1]);return o.length>0?o[0][0]:null}const _b=({filters:i,onClearAll:e,handleCreateAlert:t,className:a=""})=>i.length===0?null:n.jsxs("div",{className:`flex flex-wrap gap-2 ${a}`,children:[i.map(o=>n.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[o.label&&n.jsxs("span",{className:"font-medium mr-1",children:[o.label,":"]}),n.jsx("span",{children:o.value}),n.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:o.onRemove,"aria-label":`Remove ${o.label||o.key} filter`,children:n.jsx(St,{size:14})})]},`${o.key}-${o.value}`)),n.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:e,children:"Clear All"}),n.jsx("button",{onClick:t,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),Sq=({viewMode:i,onToggle:e,className:t=""})=>n.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${t}`,children:[n.jsxs("button",{onClick:e,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${i==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":i==="grid",children:[n.jsx(wt,{size:16,className:"mr-1.5"}),n.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),n.jsxs("button",{onClick:e,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${i==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":i==="list",children:[n.jsx(lo,{size:16,className:"mr-1.5"}),n.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),Iq=({value:i,onChange:e,options:t=[5,10,20,50],className:a=""})=>n.jsxs("div",{className:`flex items-center ${a}`,children:[n.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),n.jsx("select",{id:"items-per-page",value:i,onChange:o=>e(Number(o.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:t.map(o=>n.jsx("option",{value:o,children:o},o))})]}),zb=({viewMode:i,onToggleViewMode:e,selectedItemsPerPage:t,onItemsPerPageChange:a,totalCount:o,startIndex:s,endIndex:c,title:l})=>n.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),n.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",n.jsx("span",{className:"font-semibold text-gray-900",children:s}),"–",n.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",n.jsx("span",{className:"font-semibold text-gray-900",children:o})," articles"]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[n.jsx(Sq,{viewMode:i,onToggle:e}),n.jsx(Iq,{value:t,onChange:a})]})]})}),Aq=({title:i,description:e,ctaText:t,ctaLink:a,bgColor:o="bg-yellow-50",textColor:s="text-yellow-800"})=>n.jsx("div",{className:`promo-card ${o} p-4 rounded-lg shadow-sm hidden md:block`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:`font-bold text-lg ${s}`,children:i}),n.jsx("p",{className:`text-sm mt-1 ${s} opacity-90`,children:e})]}),n.jsx("a",{href:a,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:t})]})}),Nq=({items:i,cardType:e,viewMode:t,savedJobs:a,onSaveJob:o,onViewJob:s,firstItemRef:c=null})=>{const[l,d]=b.useState([]),[h,y]=b.useState(null);b.useEffect(()=>{try{if(!Array.isArray(i)){console.error("❌ Items is not an array:",i),y("Invalid data format received"),d([]);return}const p=[...i];i.length>5&&p.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),d(p),y(null)}catch(p){console.error("Error processing items:",p),y(`Error processing items: ${p instanceof Error?p.message:String(p)}`),d([])}},[i]);const u=(p,k)=>{const m=k===0&&!p.isPromo?{ref:c}:{};try{if(p.isPromo)return n.jsx("div",{className:"col-span-full my-4",children:n.jsx(Aq,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${k}`);if(!p||typeof p!="object")return console.error("❌ Invalid item detected:",p),n.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),n.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const f=p.id?`${p._id}-${k}`:p.slug?`${p.slug}-${k}`:`item-${k}`;switch(e){case"job":return n.jsx("div",{...m,children:n.jsx(Zj,{job:p,onSaveJob:o,onViewJob:s,isSaved:a.includes(p.id||p.slug||p.link)})},f);default:return console.warn(`⚠️ Unknown cardType: ${e}`),n.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[n.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),n.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(f){return console.error("Error rendering card:",f),n.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),n.jsx("p",{className:"text-red-600 text-sm",children:f instanceof Error?f.message:String(f)})]})}};return h?n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[n.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),n.jsx("p",{children:h})]}):l.length===0?n.jsxs("div",{className:"no-results",children:[n.jsx("h3",{children:"No items found matching your criteria"}),n.jsx("p",{children:"Try adjusting your filters or search term"})]}):n.jsx("div",{className:t==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":t,children:l.map((p,k)=>u(p,k))})},Tb=({currentPage:i,totalPages:e,onPageChange:t})=>{if(e<=1)return null;const a=5,o=Math.max(1,i-Math.floor(a/2)),s=Math.min(e,o+a-1),c=[];for(let l=o;l<=s;l++)c.push(l);return n.jsx("div",{className:"mt-6 flex justify-center",children:n.jsxs("nav",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>t(Math.max(1,i-1)),disabled:i===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:n.jsx(Ht,{})}),c.map(l=>n.jsx("button",{onClick:()=>t(l),className:`px-3 py-2 text-sm font-medium rounded-md ${i===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),n.jsx("button",{onClick:()=>t(Math.min(e,i+1)),disabled:i===e,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:n.jsx(Ft,{})})]})})},qq=({jobs:i,onViewJob:e})=>!i||i.length===0?null:n.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[n.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:i.map(t=>n.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e(t),children:[n.jsxs("div",{className:"flex items-center mb-2",children:[n.jsx("img",{src:t.logo||"/placeholder.svg?height=30&width=30",alt:`${t.company} logo`,className:"w-6 h-6 mr-2"}),n.jsx("h3",{className:"font-medium text-sm truncate",children:t.title})]}),n.jsx("p",{className:"text-xs text-gray-600 truncate",children:t.company}),n.jsx("p",{className:"text-xs text-gray-500 truncate",children:t.location})]},t._id||t.slug||t.link))})]}),Pq=(i,e,t="date")=>{if(e==="all")return i;const a=new Date,o=new Date(a.getFullYear(),a.getMonth(),a.getDate());return i.filter(s=>{const c=s[t]||s.created_at||s.published_at||s.scraped_at;if(!c)return!1;const l=new Date(c);switch(e){case"today":return l>=o;case"this_week":{const d=new Date(a);return d.setDate(a.getDate()-a.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(a.getFullYear(),a.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(a);return d.setDate(a.getDate()-30),l>=d}case"last_90_days":{const d=new Date(a);return d.setDate(a.getDate()-90),l>=d}default:return!0}})},_q=(i,e)=>i.filter(t=>{var a,o,s,c,l;if(e.jobTypes.length>0){const d=((a=t.department)==null?void 0:a.toLowerCase())||"";if(!e.jobTypes.some(h=>d.includes(h)))return!1}if(e.experienceLevels.length>0){const d=((o=t.title)==null?void 0:o.toLowerCase())||"";if(!e.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(e.country&&!(((s=t.location)==null?void 0:s.toLowerCase())||((c=t.city)==null?void 0:c.toLowerCase())||"").includes(e.country.toLowerCase())||e.city&&!(((l=t.company_type)==null?void 0:l.toLowerCase())||"").includes(e.city.toLowerCase()))}),wo=(i,e)=>{const t={};for(const a of i)for(const o of e){t[o]||(t[o]=new Set);const s=a[o];Array.isArray(s)?s.forEach(c=>{typeof c=="string"&&c.trim()&&t[o].add(c.trim())}):typeof s=="string"&&s.trim()&&t[o].add(s.trim())}return Object.fromEntries(Object.entries(t).map(([a,o])=>[a,Array.from(o)]))},Kj=i=>{const e=new URLSearchParams(window.location.search);i==="all"?e.delete("date_filter"):e.set("date_filter",i);const t=`${window.location.pathname}?${e.toString()}`;window.history.replaceState({},"",t)},ot=(i,e,t,a,o="date")=>{let s=i.filter(c=>Object.entries(e).every(([l,d])=>{const h=c[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(y=>typeof y=="string"&&y.toLowerCase()===d.toLowerCase()):!1}));return t.length>0&&(s=s.filter(c=>t.every(l=>{var d,h;return((d=c.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=c.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),s=Pq(s,a),s},Qj=({dateFieldLabel:i,activeDateFilter:e,onDateFilterChange:t,filterKeys:a,searchableFilters:o,filtersData:s,activeFilters:c,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:y})=>n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:i}),n.jsx(Jj,{activeDateFilter:e,onDateFilterChange:t,dateFieldLabel:""})]}),a.map(u=>{var p;return n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:u.replace(/_/g," ")}),o.includes(u)?n.jsx(ow,{options:s[u]||[],value:c[u]||"",onChange:k=>l(u,k),placeholder:`Select ${u.replace(/_/g," ")}`,className:"w-full"}):n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:c[u]||"",onChange:k=>l(u,k.target.value),children:[n.jsxs("option",{value:"",children:["Select ",u.replace(/_/g," ")]}),(p=s[u])==null?void 0:p.map(k=>n.jsx("option",{value:k,children:k},k))]})]},u)}),n.jsx("div",{className:"mt-6",children:n.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[n.jsx(Bt,{size:16,className:"mr-2"}),n.jsxs("span",{children:["Saved Jobs (",y.length,")"]})]})})]})});function bo(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function cC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function zq(...i){return e=>{let t=!1;const a=i.map(o=>{const s=cC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():cC(i[o],null)}}}}function sw(...i){return v.useCallback(zq(...i),i)}function Tq(i,e){const t=v.createContext(e),a=s=>{const{children:c,...l}=s,d=v.useMemo(()=>l,Object.values(l));return n.jsx(t.Provider,{value:d,children:c})};a.displayName=i+"Provider";function o(s){const c=v.useContext(t);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${i}\``)}return[a,o]}function Dq(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];const h=u=>{var x;const{scope:p,children:k,...g}=u,m=((x=p==null?void 0:p[i])==null?void 0:x[d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})};h.displayName=s+"Provider";function y(u,p){var m;const k=((m=p==null?void 0:p[i])==null?void 0:m[d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,Rq(o,...e)]}function Rq(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}var ew=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Hq=v[" useId ".trim().toString()]||(()=>{}),Fq=0;function bw(i){const[e,t]=v.useState(Hq());return ew(()=>{i||t(a=>a??String(Fq++))},[i]),i||(e?`radix-${e}`:"")}var Vq=v[" useInsertionEffect ".trim().toString()]||ew;function Eq({prop:i,defaultProp:e,onChange:t=()=>{},caller:a}){const[o,s,c]=Bq({defaultProp:e,onChange:t}),l=i!==void 0,d=l?i:o;{const y=v.useRef(i!==void 0);v.useEffect(()=>{const u=y.current;u!==l&&console.warn(`${a} is changing from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=l},[l,a])}const h=v.useCallback(y=>{var u;if(l){const p=Oq(y)?y(i):y;p!==i&&((u=c.current)==null||u.call(c,p))}else s(y)},[l,i,s,c]);return[d,h]}function Bq({defaultProp:i,onChange:e}){const[t,a]=v.useState(i),o=v.useRef(t),s=v.useRef(e);return Vq(()=>{s.current=e},[e]),v.useEffect(()=>{var c;o.current!==t&&((c=s.current)==null||c.call(s,t),o.current=t)},[t,o]),[t,a,s]}function Oq(i){return typeof i=="function"}function Cw(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}var Uq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eS=Uq.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{});function Gq(i,e){i&&KS.flushSync(()=>i.dispatchEvent(e))}function lC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function Wq(...i){return e=>{let t=!1;const a=i.map(o=>{const s=lC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():lC(i[o],null)}}}}function tS(...i){return v.useCallback(Wq(...i),i)}function aS(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function $q(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function Zq(i,e=globalThis==null?void 0:globalThis.document){const t=$q(i);v.useEffect(()=>{const a=o=>{o.key==="Escape"&&t(o)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[t,e])}var Xq="DismissableLayer",rb="dismissableLayer.update",Jq="dismissableLayer.pointerDownOutside",Yq="dismissableLayer.focusOutside",dC,rS=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nS=v.forwardRef((i,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=i,h=v.useContext(rS),[y,u]=v.useState(null),p=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=v.useState({}),g=tS(e,I=>u(I)),m=Array.from(h.layers),[f]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(f),w=y?m.indexOf(y):-1,L=h.layersWithOutsidePointerEventsDisabled.size>0,j=w>=x,C=eP(I=>{const A=I.target,S=[...h.branches].some(q=>q.contains(A));!j||S||(o==null||o(I),c==null||c(I),I.defaultPrevented||l==null||l())},p),N=tP(I=>{const A=I.target;[...h.branches].some(q=>q.contains(A))||(s==null||s(I),c==null||c(I),I.defaultPrevented||l==null||l())},p);return Zq(I=>{w===h.layers.size-1&&(a==null||a(I),!I.defaultPrevented&&l&&(I.preventDefault(),l()))},p),v.useEffect(()=>{if(y)return t&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(dC=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),hC(),()=>{t&&h.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=dC)}},[y,p,t,h]),v.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),hC())},[y,h]),v.useEffect(()=>{const I=()=>k({});return document.addEventListener(rb,I),()=>document.removeEventListener(rb,I)},[]),n.jsx(eS.div,{...d,ref:g,style:{pointerEvents:L?j?"auto":"none":void 0,...i.style},onFocusCapture:Cw(i.onFocusCapture,N.onFocusCapture),onBlurCapture:Cw(i.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Cw(i.onPointerDownCapture,C.onPointerDownCapture)})});nS.displayName=Xq;var Kq="DismissableLayerBranch",Qq=v.forwardRef((i,e)=>{const t=v.useContext(rS),a=v.useRef(null),o=tS(e,a);return v.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),n.jsx(eS.div,{...i,ref:o})});Qq.displayName=Kq;function eP(i,e=globalThis==null?void 0:globalThis.document){const t=aS(i),a=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let d=function(){iS(Jq,t,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=d,e.addEventListener("click",o.current,{once:!0})):d()}else e.removeEventListener("click",o.current);a.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",s),e.removeEventListener("click",o.current)}},[e,t]),{onPointerDownCapture:()=>a.current=!0}}function tP(i,e=globalThis==null?void 0:globalThis.document){const t=aS(i),a=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!a.current&&iS(Yq,t,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,t]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function hC(){const i=new CustomEvent(rb);document.dispatchEvent(i)}function iS(i,e,t,{discrete:a}){const o=t.originalEvent.target,s=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:t});e&&o.addEventListener(i,e,{once:!0}),a?Gq(o,s):o.dispatchEvent(s)}function yC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function aP(...i){return e=>{let t=!1;const a=i.map(o=>{const s=yC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():yC(i[o],null)}}}}function rP(...i){return v.useCallback(aP(...i),i)}var nP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],iP=nP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{});function uC(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}var Lw="focusScope.autoFocusOnMount",jw="focusScope.autoFocusOnUnmount",pC={bubbles:!1,cancelable:!0},oP="FocusScope",oS=v.forwardRef((i,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=i,[l,d]=v.useState(null),h=uC(o),y=uC(s),u=v.useRef(null),p=rP(e,m=>d(m)),k=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(a){let m=function(L){if(k.paused||!l)return;const j=L.target;l.contains(j)?u.current=j:ea(u.current,{select:!0})},f=function(L){if(k.paused||!l)return;const j=L.relatedTarget;j!==null&&(l.contains(j)||ea(u.current,{select:!0}))},x=function(L){if(document.activeElement===document.body)for(const C of L)C.removedNodes.length>0&&ea(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",f);const w=new MutationObserver(x);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",f),w.disconnect()}}},[a,l,k.paused]),v.useEffect(()=>{if(l){mC.add(k);const m=document.activeElement;if(!l.contains(m)){const x=new CustomEvent(Lw,pC);l.addEventListener(Lw,h),l.dispatchEvent(x),x.defaultPrevented||(sP(yP(sS(l)),{select:!0}),document.activeElement===m&&ea(l))}return()=>{l.removeEventListener(Lw,h),setTimeout(()=>{const x=new CustomEvent(jw,pC);l.addEventListener(jw,y),l.dispatchEvent(x),x.defaultPrevented||ea(m??document.body,{select:!0}),l.removeEventListener(jw,y),mC.remove(k)},0)}}},[l,h,y,k]);const g=v.useCallback(m=>{if(!t&&!a||k.paused)return;const f=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(f&&x){const w=m.currentTarget,[L,j]=cP(w);L&&j?!m.shiftKey&&x===j?(m.preventDefault(),t&&ea(L,{select:!0})):m.shiftKey&&x===L&&(m.preventDefault(),t&&ea(j,{select:!0})):x===w&&m.preventDefault()}},[t,a,k.paused]);return n.jsx(iP.div,{tabIndex:-1,...c,ref:p,onKeyDown:g})});oS.displayName=oP;function sP(i,{select:e=!1}={}){const t=document.activeElement;for(const a of i)if(ea(a,{select:e}),document.activeElement!==t)return}function cP(i){const e=sS(i),t=kC(e,i),a=kC(e.reverse(),i);return[t,a]}function sS(i){const e=[],t=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function kC(i,e){for(const t of i)if(!lP(t,{upTo:e}))return t}function lP(i,{upTo:e}){if(getComputedStyle(i).visibility==="hidden")return!0;for(;i;){if(e!==void 0&&i===e)return!1;if(getComputedStyle(i).display==="none")return!0;i=i.parentElement}return!1}function dP(i){return i instanceof HTMLInputElement&&"select"in i}function ea(i,{select:e=!1}={}){if(i&&i.focus){const t=document.activeElement;i.focus({preventScroll:!0}),i!==t&&dP(i)&&e&&i.select()}}var mC=hP();function hP(){let i=[];return{add(e){const t=i[0];e!==t&&(t==null||t.pause()),i=fC(i,e),i.unshift(e)},remove(e){var t;i=fC(i,e),(t=i[0])==null||t.resume()}}}function fC(i,e){const t=[...i],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function yP(i){return i.filter(e=>e.tagName!=="A")}var uP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pP=uP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{}),kP=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},mP="Portal",cS=v.forwardRef((i,e)=>{var l;const{container:t,...a}=i,[o,s]=v.useState(!1);kP(()=>s(!0),[]);const c=t||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return c?qC.createPortal(n.jsx(pP.div,{...a,ref:e}),c):null});cS.displayName=mP;function fP(i,e){return v.useReducer((t,a)=>e[t][a]??t,i)}var cw=i=>{const{present:e,children:t}=i,a=gP(e),o=typeof t=="function"?t({present:a.isPresent}):v.Children.only(t),s=sw(a.ref,xP(o));return typeof t=="function"||a.isPresent?v.cloneElement(o,{ref:s}):null};cw.displayName="Presence";function gP(i){const[e,t]=v.useState(),a=v.useRef(null),o=v.useRef(i),s=v.useRef("none"),c=i?"mounted":"unmounted",[l,d]=fP(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=Ro(a.current);s.current=l==="mounted"?h:"none"},[l]),ew(()=>{const h=a.current,y=o.current;if(y!==i){const p=s.current,k=Ro(h);i?d("MOUNT"):k==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(y&&p!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=i}},[i,d]),ew(()=>{if(e){let h;const y=e.ownerDocument.defaultView??window,u=k=>{const m=Ro(a.current).includes(CSS.escape(k.animationName));if(k.target===e&&m&&(d("ANIMATION_END"),!o.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=k=>{k.target===e&&(s.current=Ro(a.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{y.clearTimeout(h),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(h=>{a.current=h?getComputedStyle(h):null,t(h)},[])}}function Ro(i){return(i==null?void 0:i.animationName)||"none"}function xP(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var vP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_o=vP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{}),Sw=0;function MP(){v.useEffect(()=>{const i=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",i[0]??gC()),document.body.insertAdjacentElement("beforeend",i[1]??gC()),Sw++,()=>{Sw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Sw--}},[])}function gC(){const i=document.createElement("span");return i.setAttribute("data-radix-focus-guard",""),i.tabIndex=0,i.style.outline="none",i.style.opacity="0",i.style.position="fixed",i.style.pointerEvents="none",i}var At=function(){return At=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},At.apply(this,arguments)};function lS(i,e){var t={};for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&e.indexOf(a)<0&&(t[a]=i[a]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(i);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(i,a[o])&&(t[a[o]]=i[a[o]]);return t}function wP(i,e,t){if(t||arguments.length===2)for(var a=0,o=e.length,s;a<o;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return i.concat(s||Array.prototype.slice.call(e))}var O9="right-scroll-bar-position",U9="width-before-scroll-bar",bP="with-scroll-bars-hidden",CP="--removed-body-scroll-bar-size";function Iw(i,e){return typeof i=="function"?i(e):i&&(i.current=e),i}function LP(i,e){var t=b.useState(function(){return{value:i,callback:e,facade:{get current(){return t.value},set current(a){var o=t.value;o!==a&&(t.value=a,t.callback(a,o))}}}})[0];return t.callback=e,t.facade}var jP=typeof window<"u"?v.useLayoutEffect:v.useEffect,xC=new WeakMap;function SP(i,e){var t=LP(null,function(a){return i.forEach(function(o){return Iw(o,a)})});return jP(function(){var a=xC.get(t);if(a){var o=new Set(a),s=new Set(i),c=t.current;o.forEach(function(l){s.has(l)||Iw(l,null)}),s.forEach(function(l){o.has(l)||Iw(l,c)})}xC.set(t,i)},[i]),t}function IP(i){return i}function AP(i,e){e===void 0&&(e=IP);var t=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:i},useMedium:function(s){var c=e(s,a);return t.push(c),function(){t=t.filter(function(l){return l!==c})}},assignSyncMedium:function(s){for(a=!0;t.length;){var c=t;t=[],c.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var c=[];if(t.length){var l=t;t=[],l.forEach(s),c=t}var d=function(){var y=c;c=[],y.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),t={push:function(y){c.push(y),h()},filter:function(y){return c=c.filter(y),t}}}};return o}function NP(i){i===void 0&&(i={});var e=AP(null);return e.options=At({async:!0,ssr:!1},i),e}var dS=function(i){var e=i.sideCar,t=lS(i,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return v.createElement(a,At({},t))};dS.isSideCarExport=!0;function qP(i,e){return i.useMedium(e),dS}var hS=NP(),Aw=function(){},lw=v.forwardRef(function(i,e){var t=v.useRef(null),a=v.useState({onScrollCapture:Aw,onWheelCapture:Aw,onTouchMoveCapture:Aw}),o=a[0],s=a[1],c=i.forwardProps,l=i.children,d=i.className,h=i.removeScrollBar,y=i.enabled,u=i.shards,p=i.sideCar,k=i.noRelative,g=i.noIsolation,m=i.inert,f=i.allowPinchZoom,x=i.as,w=x===void 0?"div":x,L=i.gapMode,j=lS(i,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,N=SP([t,e]),I=At(At({},j),o);return v.createElement(v.Fragment,null,y&&v.createElement(C,{sideCar:hS,removeScrollBar:h,shards:u,noRelative:k,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!f,lockRef:t,gapMode:L}),c?v.cloneElement(v.Children.only(l),At(At({},I),{ref:N})):v.createElement(w,At({},I,{className:d,ref:N}),l))});lw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lw.classNames={fullWidth:U9,zeroRight:O9};var PP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _P(){if(!document)return null;var i=document.createElement("style");i.type="text/css";var e=PP();return e&&i.setAttribute("nonce",e),i}function zP(i,e){i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}function TP(i){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(i)}var DP=function(){var i=0,e=null;return{add:function(t){i==0&&(e=_P())&&(zP(e,t),TP(e)),i++},remove:function(){i--,!i&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},RP=function(){var i=DP();return function(e,t){v.useEffect(function(){return i.add(e),function(){i.remove()}},[e&&t])}},yS=function(){var i=RP(),e=function(t){var a=t.styles,o=t.dynamic;return i(a,o),null};return e},HP={left:0,top:0,right:0,gap:0},Nw=function(i){return parseInt(i||"",10)||0},FP=function(i){var e=window.getComputedStyle(document.body),t=e[i==="padding"?"paddingLeft":"marginLeft"],a=e[i==="padding"?"paddingTop":"marginTop"],o=e[i==="padding"?"paddingRight":"marginRight"];return[Nw(t),Nw(a),Nw(o)]},VP=function(i){if(i===void 0&&(i="margin"),typeof window>"u")return HP;var e=FP(i),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},EP=yS(),qi="data-scroll-locked",BP=function(i,e,t,a){var o=i.left,s=i.top,c=i.right,l=i.gap;return t===void 0&&(t="margin"),`
|
|
7757
7757
|
.`.concat(bP,` {
|
|
7758
7758
|
overflow: hidden `).concat(a,`;
|
package/dist/index.mjs
CHANGED
|
@@ -37298,8 +37298,8 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
|
|
|
37298
37298
|
/* @__PURE__ */ n.jsx(
|
|
37299
37299
|
"a",
|
|
37300
37300
|
{
|
|
37301
|
-
href: i.
|
|
37302
|
-
target: "_blank",
|
|
37301
|
+
href: i.description && i.description != "" ? "/jobs/" + (i.slug || i.id) : i.link,
|
|
37302
|
+
target: i.description && i.description != "" ? "_self" : "_blank",
|
|
37303
37303
|
rel: "noopener noreferrer",
|
|
37304
37304
|
className: `flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
|
|
37305
37305
|
transition-colors text-sm font-medium text-center`,
|
package/package.json
CHANGED