1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99809],{27027:function(e,t,l){var a=l(57437);l(2265);var r=l(92261),s=l(27648);t.Z=e=>{let{title:t,subtitle:l,description:i,bgImage:n,primaryBtnText:o,secondaryBtnText:d,layout:c="default"}=e,u="centered"===c;return(0,a.jsxs)("section",{className:"relative w-full flex items-center overflow-hidden bg-gray-900",children:[(0,a.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,a.jsx)("img",{src:n,alt:"Hero Background",className:"w-full h-full object-cover object-top transition-all duration-500"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/80 via-black/60 to-black/40"}),(0,a.jsx)("div",{className:"absolute bottom-0 w-full h-20 bg-gradient-to-t from-black/20 to-transparent"})]}),(0,a.jsx)("div",{className:"relative z-10 w-full max-w-[1520px] mx-auto px-6 md:px-12 lg:px-20 py-16 ".concat(u?"flex flex-col items-center text-center":""),children:(0,a.jsxs)("div",{className:u?"max-w-5xl":"max-w-6xl",children:[(0,a.jsxs)("div",{className:"space-y-3 mb-8 ".concat(u?"flex flex-col items-center":""),children:[(0,a.jsx)("h1",{className:"text-white font-bold leading-tight tracking-tight drop-shadow-lg ".concat(u?"text-[40px] md:text-[60px] lg:text-[75px]":"text-[40px] md:text-5xl lg:text-6xl"),children:t}),l&&(0,a.jsx)("h2",{className:"text-white/90 font-semibold ".concat(u?"text-[20px] md:text-[24px]":"text-[24px] md:text-2xl lg:text-3xl"),children:l})]}),(0,a.jsx)("p",{className:"text-gray-200 leading-relaxed opacity-90 ".concat(u?"text-[16px] max-w-[1520px] w-full mx-auto text-justify":"text-[16px] md:text-[18px] lg:text-[20px] max-w-2xl mb-10"),children:i}),(o||d)&&(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 ".concat(u?"justify-center items-center mt-10":"items-start"),children:[o&&(0,a.jsx)(s.default,{href:"/buyer-dashboard/",children:(0,a.jsxs)("button",{className:"w-full sm:w-auto bg-[#0070f3] hover:bg-[#0060d0] text-white px-8 py-3.5 rounded-md font-bold text-sm transition-all flex items-center justify-center gap-2 group shadow-xl",children:[o,(0,a.jsx)(r.Z,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})}),d&&(0,a.jsx)(s.default,{href:"/marketplace/",children:(0,a.jsx)("button",{className:"w-full sm:w-auto bg-white hover:bg-gray-100 text-black px-8 py-3.5 rounded-md font-bold text-sm transition-all shadow-md",children:d})})]})]})})]})}},64924:function(e,t,l){var a=l(57437),r=l(2265),s=l(33145),i=l(27648);let n=[{question:"What are the top Vefogix categories?",answer:(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/press-release/",className:"text-[#0971DF] hover:underline",children:"Press Release"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/",className:"text-[#0971DF] hover:underline",children:"SEO"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/",className:"text-[#0971DF] hover:underline",children:"Writing and Translation"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/",className:"text-[#0971DF] hover:underline",children:"Internet Marketing"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/",className:"text-[#0971DF] hover:underline",children:"Program"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/",className:"text-[#0971DF] hover:underline",children:"Graphic And Design"})})]})},{question:"What are the top Vefogix Subcategories?",answer:(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-x-4 gap-y-1",children:[(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/press-release/press-release-packages/",className:"text-[#0971DF] hover:underline",children:"Press Release Packages"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/press-release/combo-packages/",className:"text-[#0971DF] hover:underline",children:"Combo Packages"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/full-seo-packages/",className:"text-[#0971DF] hover:underline",children:"Full SEO Packages"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/local-seo/",className:"text-[#0971DF] hover:underline",children:"Local SEO"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/guest-posts/",className:"text-[#0971DF] hover:underline",children:"Guest Posts"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/on-page-seo/",className:"text-[#0971DF] hover:underline",children:"On Page SEO"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/keyword-research/",className:"text-[#0971DF] hover:underline",children:"Keyword Research"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/video-seo/",className:"text-[#0971DF] hover:underline",children:"Video SEO"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/pbn-links/",className:"text-[#0971DF] hover:underline",children:"PBN Links"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/backlinks/",className:"text-[#0971DF] hover:underline",children:"Backlinks"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/ai-seo-packages/",className:"text-[#0971DF] hover:underline",children:"AI SEO Packages"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/seo/seo-metrics/",className:"text-[#0971DF] hover:underline",children:"SEO Metrics"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/content-writing-services/",className:"text-[#0971DF] hover:underline",children:"Content Writing Services"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/press-release-content/",className:"text-[#0971DF] hover:underline",children:"Press Release Content"})})]}),(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/articles-blog-post/",className:"text-[#0971DF] hover:underline",children:"Articles Blog Post"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/website-content/",className:"text-[#0971DF] hover:underline",children:"Website Content"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/creative-writing/",className:"text-[#0971DF] hover:underline",children:"Creative Writing"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/copywriting/",className:"text-[#0971DF] hover:underline",children:"Copywriting"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/writing-and-translation/resume-writing/",className:"text-[#0971DF] hover:underline",children:"Resume Writing"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/google-ads/",className:"text-[#0971DF] hover:underline",children:"Google Ads"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/social-media-optimization/",className:"text-[#0971DF] hover:underline",children:"Social Media Optimization"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/amazon-ads/",className:"text-[#0971DF] hover:underline",children:"Amazon Ads"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/linkedin-ads/",className:"text-[#0971DF] hover:underline",children:"Linkedin Ads"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/reddit-ads/",className:"text-[#0971DF] hover:underline",children:"Reddit Ads"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/snap-ads/",className:"text-[#0971DF] hover:underline",children:"Snapchat Ads"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/social-media-marketing/",className:"text-[#0971DF] hover:underline",children:"Social Media Marketing"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/influencer-marketing/",className:"text-[#0971DF] hover:underline",children:"Influencer Marketing"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/internet-marketing/marketing-analytics/",className:"text-[#0971DF] hover:underline",children:"Marketing Analytics"})})]}),(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/web-design-web-development/",className:"text-[#0971DF] hover:underline",children:"Web Design Web Development"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/mobile-app-development/",className:"text-[#0971DF] hover:underline",children:"Mobile App Development"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/software-development/",className:"text-[#0971DF] hover:underline",children:"Software Development"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/wordpress-development/",className:"text-[#0971DF] hover:underline",children:"Wordpress Development"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/shopify-development/",className:"text-[#0971DF] hover:underline",children:"Shopify Development"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/wix-development/",className:"text-[#0971DF] hover:underline",children:"Wix Development"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/program/woocommerce/",className:"text-[#0971DF] hover:underline",children:"Woo Commerce"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/logo-design/",className:"text-[#0971DF] hover:underline",children:"Logo Design"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/web-and-app-design/",className:"text-[#0971DF] hover:underline",children:"Web And App Design"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/marketing-design/",className:"text-[#0971DF] hover:underline",children:"Marketing Design"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/print-design/",className:"text-[#0971DF] hover:underline",children:"Print Design"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/books-and-ebooks/",className:"text-[#0971DF] hover:underline",children:"Books and Ebooks"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/graphic-and-design/video-editing/",className:"text-[#0971DF] hover:underline",children:"Video Editing"})})]})]})},{question:"What are the top Vefogix services?",answer:(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/",className:"text-[#0971DF] hover:underline",children:"Marketplace"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/publishers/",className:"text-[#0971DF] hover:underline",children:"Publishers"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/buyers/",className:"text-[#0971DF] hover:underline",children:"Buyers"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/high-quality-link-insertion/",className:"text-[#0971DF] hover:underline",children:"High Quality Link Insertion"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/guest-posting-services/",className:"text-[#0971DF] hover:underline",children:"Guest Posting Services"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/link-building-services/",className:"text-[#0971DF] hover:underline",children:"Link Building Services"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/get-paid-to-link-post/",className:"text-[#0971DF] hover:underline",children:"Get Paid to Link Post"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/content-marketing-services/",className:"text-[#0971DF] hover:underline",children:"Content Marketing Services"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-reseller-services/",className:"text-[#0971DF] hover:underline",children:"SEO Reseller Services"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/all-gigs/",className:"text-[#0971DF] hover:underline",children:"Purchase Backlinks"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/marketplace/all-gigs/",className:"text-[#0971DF] hover:underline",children:"All Gigs"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/",className:"text-[#0971DF] hover:underline",children:"Vefogix"})})]})},{question:"What are the top Vefogix free tools?",answer:(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-x-4 gap-y-1",children:[(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/compet
1itor-guestpost-checker/",className:"text-[#0971DF] hover:underline",children:"Competitor Guestpost Checker"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/amp-validator/",className:"text-[#0971DF] hover:underline",children:"Amp Validator"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/backlink-generator/",className:"text-[#0971DF] hover:underline",children:"Backlink Generator"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/word-counter/",className:"text-[#0971DF] hover:underline",children:"Word Counter"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/keyword-density-checker/",className:"text-[#0971DF] hover:underline",children:"Keyword Density Checker"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/keyword-suggestions/",className:"text-[#0971DF] hover:underline",children:"Keyword Suggestions"})})]}),(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/schema-generator/",className:"text-[#0971DF] hover:underline",children:"Schema Generator"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/schema-validator/",className:"text-[#0971DF] hover:underline",children:"Schema Validator"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/opengraph-generator/",className:"text-[#0971DF] hover:underline",children:"Opengraph Generator"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/twitter-card-generator/",className:"text-[#0971DF] hover:underline",children:"Twitter Card Generator"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/bulk-da-pa-checker-tool/",className:"text-[#0971DF] hover:underline",children:"Bulk DA PA Checker Tool"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/bulk-domain-rating-checker-tool/",className:"text-[#0971DF] hover:underline",children:"Bulk Domain Rating Checker Tool"})})]}),(0,a.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/image-alt-checker/",className:"text-[#0971DF] hover:underline",children:"Image Alt Checker"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/seo-tools/semrush-authority-checker/",className:"text-[#0971DF] hover:underline",children:"Semrush Authority Checker"})})]})]})}];t.default=e=>{let{title:t="Frequently Asked Questions",items:l=[],isUpdated:i=!1,containerClassName:o,wrapperClassName:d}=e,[c,u]=(0,r.useState)(null),m=[...l,...n],h=i?"text-[20px] font-[600]":"text-[16px] md:text-[18px] font-semibold",x=i?"text-[16px] font-[400]":"text-[15px] md:text-[16px] font-medium";return(0,a.jsx)("section",{className:"w-full bg-white relative ".concat(d||""),children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-12 lg:px-14 flex flex-col lg:flex-row items-center lg:gap-20 xl:gap-28 ".concat(o||""),children:[(0,a.jsxs)("div",{className:"w-full lg:w-[35%] flex flex-col items-start justify-start mb-10 lg:mb-0 lg:sticky lg:top-10",children:[(0,a.jsx)("h2",{className:"".concat(i?"text-[26px] font-[600]":"text-[32px] md:text-[40px] font-bold"," text-black text-left leading-tight m-0 mb-8"),children:t}),(0,a.jsx)("div",{className:"hidden lg:flex w-full max-w-[350px] justify-start items-start",children:(0,a.jsx)(s.default,{src:"/images/new/FAQDesign.png",alt:"FAQ Decoration",width:500,height:500,className:"w-full h-auto object-contain",priority:!0})})]}),(0,a.jsx)("div",{className:"w-full lg:flex-1",children:(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("ul",{className:"divide-y divide-gray-200 w-full",children:m.map((e,t)=>(0,a.jsxs)("li",{className:"bg-transparent",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>u(c===t?null:t),className:"w-full flex items-center justify-between gap-6 py-5 text-left group transition-all duration-300 outline-none","aria-expanded":c===t,"aria-controls":"faq-answer-".concat(t),children:[(0,a.jsx)("span",{className:"".concat(h," text-gray-800 leading-snug group-hover:text-[#0971DF] transition-colors pr-4"),children:e.question}),(0,a.jsx)("div",{className:"flex-shrink-0 w-8 h-8 rounded-full border-2 transition-all duration-300 flex items-center justify-center\n ".concat(c===t?"bg-[#0971DF] border-[#0971DF] rotate-45":"bg-transparent border-gray-300 group-hover:border-[#0971DF]"),children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",children:(0,a.jsx)("path",{d:"M8 3V13M3 8H13",stroke:c===t?"white":"#0971DF",strokeWidth:"2.5",strokeLinecap:"round"})})})]}),(0,a.jsx)("div",{id:"faq-answer-".concat(t),className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(c===t?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"),children:(0,a.jsx)("div",{className:"".concat(x," text-gray-600 leading-relaxed pb-6 pr-4 sm:pr-10"),children:function(e,t){if(null==e)return null;if("string"==typeof e){let l=e.trim();return l?/<[a-z/!][\s\S]*?>/i.test(l.trim())?(0,a.jsx)("div",{className:"".concat(t," [&_p]:mb-2 [&_p:last-child]:mb-0 [&_strong]:font-semibold [&_b]:font-semibold [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_a]:text-[#0971DF] [&_a]:underline"),dangerouslySetInnerHTML:{__html:l.replace(/<\/(?:script|style|iframe|object|embed)[^>]*>/gi,"").replace(/<(?:script|style|iframe|object|embed)\b[^>]*>[\s\S]*?<\/(?:script|style|iframe|object|embed)>/gi,"").replace(/<(?:script|style|iframe|object|embed)\b[^>]*\/?>
1/gi,"").replace(/\son\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/javascript:/gi,"")}}):(0,a.jsx)("p",{children:l}):null}return"number"==typeof e||"boolean"==typeof e?(0,a.jsx)("p",{children:String(e)}):(0,r.isValidElement)(e)||Array.isArray(e)?e:null}(e.answer,"faq-rich-answer")})})]},t))})})})]})})}},50415:function(e,t,l){l.d(t,{default:function(){return i}});var a=l(57437),r=l(2265);function s(e){let{title:t,items:l,className:r="",itemLayout:s="numbered"}=e;return(0,a.jsxs)("div",{className:"flex flex-col w-full ".concat(r),children:[(0,a.jsx)("div",{className:"flex items-start mb-8 md:mb-10",children:(0,a.jsxs)("div",{className:"flex flex-col w-max",children:[(0,a.jsx)("h2",{className:"text-[#FACC15] text-[20px] md:text-[26px] font-bold tracking-wide",children:t}),(0,a.jsxs)("div",{className:"flex items-center mt-1.5 md:mt-2 w-full",children:[(0,a.jsx)("div",{className:"h-[2px] bg-[#FACC15] flex-grow"}),(0,a.jsx)("div",{className:"w-[8px] h-[8px] md:w-[10px] md:h-[10px] bg-[#FACC15] rotate-45 transform -ml-[4px] md:-ml-[5px]"})]})]})}),(0,a.jsx)("div",{className:"flex flex-col gap-6 md:gap-8",children:"bullets"===s?(0,a.jsx)("ul",{className:"list-disc pl-5 md:pl-6 space-y-4 md:space-y-5 marker:text-[#FACC15] [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:mt-2 [&_ul_li]:list-item",children:l.map(e=>(0,a.jsx)("li",{className:"text-[#f8fafc] text-[15px] md:text-[16px] leading-relaxed font-normal pl-1",children:e.text},e.id))}):l.map((e,t)=>{let l=String(t+1).padStart(2,"0");return(0,a.jsxs)("div",{className:"flex items-start gap-4 md:gap-6",children:[(0,a.jsxs)("div",{className:"relative w-[42px] h-[42px] md:w-[48px] md:h-[48px] shrink-0 flex items-center justify-center mt-1",children:[(0,a.jsx)("div",{className:"absolute inset-0 border-[1.5px] border-[#FACC15] rotate-45"}),(0,a.jsx)("div",{className:"absolute inset-[5px] md:inset-[6px] bg-[#FACC15] rotate-45"}),(0,a.jsx)("span",{className:"relative z-10 text-[#1e293b] font-extrabold text-[13px] md:text-[15px]",children:l})]}),(0,a.jsx)("p",{className:"text-[#f8fafc] text-[15px] md:text-[16px] leading-relaxed font-normal pt-1.5",children:e.text})]},e.id)})})]})}function i(e){let{sections:t,section1Title:l,section1Items:i=[],section2Title:n,section2Items:o=[],section3Title:d,section3Items:c=[],section4Title:u,section4Items:m=[],itemLayout:h="numbered"}=e,x=null!=t?t:[{title:l,items:i},{title:n,items:o},{title:d,items:c},{title:u,items:m}].filter(e=>e.items.length>0);return(0,a.jsx)("div",{className:"w-full flex items-center justify-center py-12 px-4 sm:px-6",children:(0,a.jsx)("div",{className:"w-full max-w-[1400px] bg-[#1e252e] border border-gray-700 rounded-xl shadow-2xl p-6 md:p-12 lg:p-16 transition-all duration-500",children:x.map((e,t)=>(0,a.jsxs)(r.Fragment,{children:[t>0&&(0,a.jsx)("div",{className:"h-16 md:h-20"}),(0,a.jsx)(s,{title:e.title,items:e.items,itemLayout:h})]},t))})})}},70843:function(e,t,l){var a=l(57437),r=l(99376),s=l(2265),i=l(33145),n=l(27648),o=l(42449),d=l(88997),c=l(91723),u=l(89337),m=l(86595),h=l(53417),x=l(29374),p=l(73247),g=l(40875),f=l(90740),v=l(22135),b=l(32489),j=l(95252),y=l(82023),w=l(10353),N=l(64131),k=l(75186),_=l(16907),D=l(4310),C=l(99551),F=l(21396),S=l(23595);let A=[{label:"Any budget",value:"any",range:[null,null]},{label:"Under $50",value:"under-50",range:[0,50]},{label:"$50 - $100",value:"50-100",range:[50,100]},{label:"$100 - $200",value:"100-200",range:[100,200]},{label:"$200+",value:"200-plus",range:[200,null]},{label:"Custom range",value:"custom",range:[null,null]}],E=[{label:"Any Delivery Time",value:"any",minDays:null,maxDays:null},{label:"7 days or less",value:"7d",minDays:null,maxDays:7},{label:"14 days or less",value:"14d",minDays:null,maxDays:14},{label:"30 days or less",value:"30d",minDays:null,maxDays:30},{label:"Custom range",value:"custom",minDays:null,maxDays:null}],M=[{label:"Any rating",value:"any",min:null,max:null},{label:"4.5+ stars",value:"4.5-5",min:4.5,max:5},{label:"4.0+ stars",value:"4-5",min:4,max:5},{label:"3.5+ stars",value:"3.5-5",min:3.5,max:5},{label:"3.0+ stars",value:"3-5",min:3,max:5},{label:"Custom range",value:"custom",min:null,max:null}],R=[{label:"Best Selling",value:"best_selling"},{label:"Latest",value:"latest"},{label:"Oldest",value:"oldest"},{label:"Price: Low to High",value:"price_asc"},{label:"Price: High to Low",value:"price_desc"},{label:"Alphabetical (A-Z)",value:"alphabetic_asc"},{label:"Alphabetical (Z-A)",value:"alphabetic_desc"}],I=[{id:"hasPrice",label:"Has price",test:e=>"number"==typeof e.start_with},{id:"hasImage",label:"Has cover image",test:e=>{var t,l;return!!(null===(l=e.gig_thumbnail)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.thumbnail_image)}},{id:"isSeo",label:"SEO focused",test:e=>{var t;
1let l=((null===(t=e.subcategory)||void 0===t?void 0:t.title)||"").toLowerCase();return l.includes("seo")||l.includes("google ads")}},{id:"hasReviews",label:"Has reviews",test:e=>Math.floor(5*Math.random())+1>0},{id:"fastDelivery",label:"Fast delivery (â¤3 days)",test:e=>Math.floor(30*Math.random())+1<=3},{id:"topSeller",label:"Top seller",test:e=>Math.random()>.7}],P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:75,l=String(e).trim();if(l.length<=t)return l;let a=l.slice(0,t),r=a.lastIndexOf(" "),s=r>20?a.slice(0,r):a;return"".concat(s,"â¦")},W=e=>null===e||Number.isNaN(e)?"$0":"$".concat(e.toFixed(0)),B=e=>{let t=Number(null!=e?e:0);return!Number.isFinite(t)||t<=0?0:t-0*t/100},L=e=>e?e.startsWith("http")?e:"https://www.vefogix.com".concat(e):"/images/banner/static-packages-banner.webp",T=e=>{var t,l;let a=(e.slug||"").replace(/^\/|\/$/g,"");if(!a)return null;let r=null===(l=e.user_id)||void 0===l?void 0:null===(t=l.username)||void 0===t?void 0:t.replace(/^\/|\/$/g,"");return r?"/".concat(encodeURIComponent(r),"/").concat(a,"/"):null},z=(e,t)=>
1{let[l,a]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let l=setTimeout(()=>a(e),t);return()=>clearTimeout(l)},[e,t]),l},U=e=>{var t,l,p,g,f,v,b,j,y,F,S,A,E,M;let{gig:R,isInWishlist:I=!1,wishlistItemId:z=null,onWishlistChange:U,onOpenChat:q}=e,Z=(0,r.useRouter)(),O=L(null===(l=R.gig_thumbnail)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.thumbnail_image),V=T(R),$=B(R.start_with),[G,H]=(0,s.useState)(I),[Q,K]=(0,s.useState)(z),[Y,X]=(0,s.useState)(!1),[J,ee]=(0,s.useState)(!1),et=(null===(g=R.user_id)||void 0===g?void 0:null===(p=g.seller_profile)||void 0===p?void 0:p.is_verified)||!1,el=null!==(M=null==R?void 0:R.gig_reviews)&&void 0!==M?M:0;(0,s.useEffect)(()=>{H(I),K(z)},[I,z]);let ea=async e=>{if(e.preventDefault(),e.stopPropagation(),!N.default.get("login_access_token")){k.default.error("Please login to add items to wishlist"),Z.push("/signin");return}X(!0);try{if(G&&Q)await (0,_.$f)(Q)&&(H(!1),K(null),null==U||U(Number(R.id),!1,null),k.default.success("Item removed from wishlist"));else{let e=await (0,_.Mp)(Number(R.id));e&&(H(!0),K(e.id),null==U||U(Number(R.id),!0,e.id),k.default.success("Item added to wishlist"))}}catch(e){console.error("Error toggling wishlist:",e),k.default.error("Failed to update wishlist")}finally{X(!1)}},er=async e=>{if(e.preventDefault(),e.stopPropagation(),!N.default.get("login_access_token")){k.default.error("Please login to add items to cart"),Z.push("/signin");return}ee(!0);try{let e=null;try{var t,l;let a=await fetch("".concat(C.BASE_URL,"marketplace/gigservice/").concat(null===(t=R.user_id)||void 0===t?void 0:t.username,"/").concat(R.slug,"/"));if(a.ok){let t=await a.json(),r=(null===(l=t.gig_package)||void 0===l?void 0:l.filter(e=>!1!==e.is_publish))||[],s=r.find(e=>{var t;return null===(t=e.title)||void 0===t?void 0:t.toLowerCase().includes("lite")});s?e=s.id||s.package_id:r.length>0&&(e=r[0].id||r[0].package_id)}}catch(e){console.warn("Failed to fetch gig packages:",e)}await (0,D.Xq)(Number(R.id),e,1),k.default.success("Added to cart")}catch(e){console.error("Error adding to cart:",e),k.default.error("Failed to add item to cart")}finally{ee(!1)}};return(0,a.jsxs)("div",{onClick:e=>{let t=e.target;!(t.closest("a")||t.closest("button"))&&V&&Z.push(V)},className:"group relative flex flex-col overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm transition-all duration-300 hover:-translate-y-1 hover:shadow-lg cursor-pointer p-3",children:[(0,a.jsx)("div",{className:"relative aspect-[2/1] overflow-hidden bg-gray-100 rounded-xl",children:(0,a.jsx)(n.default,{href:V||"#",className:"block w-full h-full",children:(0,a.jsx)(i.default,{src:O,alt:R.title,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-fill transition duration-500 group-hover:scale-105 rounded-xl"})})}),(0,a.jsxs)("div",{className:"flex-1 p-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,a.jsx)(n.default,{href:V||"#",className:"flex-1",children:(0,a.jsx)("h3",{className:"text-base font-semibold text-gray-900 line-clamp-2 hover:text-primarydark transition-colors",children:P((null==R?void 0:R.title)||"",80)})}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1 flex-shrink-0",children:[(0,a.jsx)("button",{onClick:er,disabled:J,className:"flex items-center justify-center w-8 h-8 rounded-full bg-gray-50 hover:bg-gray-100 transition-all hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed text-sky-500 hover:text-sky-600",title:"Add to cart",children:J?(0,a.jsx)(w.Z,{size:"small"}):(0,a.jsx)(o.Z,{className:"w-4 h-4"})}),(0,a.jsx)("button",{onClick:ea,disabled:Y,className:"flex items-center justify-center w-8 h-8 rounded-full bg-gray-50 hover:bg-gray-100 transition-all hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed ".concat(G?"text-red-500":"text-gray-500 hover:text-red-500"),title:G?"Remove from wishlist":"Add to wishlist",children:Y?(0,a.jsx)(w.Z,{size:"small"}):(0,a.jsx)(d.Z,{className:"w-4 h-4 ".concat(G?"fill-current":"")})})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between bg-[#f2f2f2] p-2 mb-2 rounded-2xl",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(c.Z,{className:"h-5 w-5 text-black font-bold"}),(0,a.jsxs)("span",{className:"text-md text-black",children:[null!==R.delivery_days?R.delivery_days:"N/A"," Days "]})]})}),(0,a.jsxs)("div",{className:"w-[120px] shrink-0 text-right",children:[(0,a.jsx)("p",{className:"text-xs font-extrabold text-orange-600",children:"\uD83D\uDD25 Starting at"}),(0,a.jsxs)("div",{className:"flex items-end justify-end gap-1",children:[!1,(0,a.jsx)("p",{className:"text-xl font-bold text-black",children:W($)})]}),!1]})]}),(0,a.jsx)("div",{className:"pt-3 border-t border-gray-100",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,a.jsxs)(n.default,{href:"/publisher/".concat(null===(f=R.user_id
1)||void 0===f?void 0:f.username),className:"flex items-center gap-2 group/seller flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"relative flex-shrink-0",children:[(null===(v=R.user_id)||void 0===v?void 0:v.profile_image)?(0,a.jsx)("img",{src:"".concat(R.user_id.profile_image),alt:(null===(b=R.user_id)||void 0===b?void 0:b.username)||"Seller",className:"w-10 h-10 rounded-full object-cover"}):(0,a.jsx)("div",{className:"w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center text-md font-bold text-gray-600",children:(null===(y=R.user_id)||void 0===y?void 0:null===(j=y.username)||void 0===j?void 0:j.charAt(0).toUpperCase())||"G"}),(null===(F=R.user_id)||void 0===F?void 0:F.is_online)!==void 0&&(0,a.jsx)("div",{className:"absolute bottom-0 right-0",children:(0,a.jsxs)("div",{className:"relative",children:[R.user_id.is_online&&(0,a.jsx)("div",{className:"absolute inset-0 rounded-full bg-green-500 animate-ping opacity-75",style:{width:"100%",height:"100%"}}),(0,a.jsx)("div",{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 rounded-full border border-white ".concat(R.user_id.is_online?"bg-green-500":"bg-gray-400")})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1 min-w-0",children:[(0,a.jsx)("span",{className:"text-md font-medium text-gray-700 group-hover/seller:text-primarydark transition-colors truncate",children:(null===(S=R.user_id)||void 0===S?void 0:S.username)||"Guest Posts"}),et&&(0,a.jsx)("span",{className:"inline-flex shrink-0 text-sky-600",title:"Verified seller","aria-label":"Verified seller",children:(0,a.jsx)(u.Z,{className:"h-4 w-4 fill-sky-500/15",strokeWidth:2,"aria-hidden":!0})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(m.Z,{className:"h-3.5 w-3.5 fill-amber-400 text-amber-400"}),(0,a.jsx)("span",{className:"text-sm font-bold text-gray-900",children:el.toFixed(1)}),(0,a.jsxs)("span",{className:"text-xs text-gray-500",children:["(",R.review_count||0,")"]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),null==q||q(R)},className:"inline-flex shrink-0 items-center justify-center w-8 h-8 rounded-full text-primarydark bg-primarydark/5 hover:bg-primarydark/10 transition-colors",title:"Chat with ".concat((null===(A=R.user_id)||void 0===A?void 0:A.username)||"seller"),"aria-label":"Chat with ".concat((null===(E=R.user_id)||void 0===E?void 0:E.username)||"seller"),children:(0,a.jsx)(h.Z,{className:"h-[17px] w-[17px]"})}),(0,a.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),null==q||q(R,!0)},className:"inline-flex shrink-0 items-center justify-center w-8 h-8 rounded-full text-primarydark bg-primarydark/5 hover:bg-primarydark/10 transition-colors",title:"Request a video consultation","aria-label":"Request a video consultation",children:(0,a.jsx)(x.Z,{className:"h-[17px] w-[17px]"})})]})]})})]})]})};t.Z=e=>{let{initialGigs:t=[],initialCount:l=0,initialCategory:i,initialSubcategory:n,initialSort:o,initialRating:d="any",title:u="Popular Gigs",subtitle:h,showTitle:x=!0,className:w=""}=e,D=(0,r.useRouter)();(0,r.useSearchParams)();let C=(0,r.usePathname)(),{userdata:P}
1=(0,S.U)(),[W,B]=(0,s.useState)([]),L=function(e){var t;let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=null===(t=e.user_id)||void 0===t?void 0:t.id;if(!a){k.default.error("Seller information is unavailable for this gig.");return}if(!N.default.get("login_access_token")){let e=C||window.location.pathname,t="".concat(e).concat(window.location.search);D.push("/signin?redirect=".concat(encodeURIComponent(t)));return}if((null==P?void 0:P.id)&&String(P.id)===String(a)){(0,k.default)("This is your own gig.",{icon:"â¹ï¸"});return}B(t=>{var r,s;return t.some(e=>e.publisherId===String(a))?t:[...t,{publisherId:String(a),publisherName:(null===(r=e.user_id)||void 0===r?void 0:r.username)||"Seller",publisherAvatar:(null===(s=e.user_id)||void 0===s?void 0:s.profile_image)||void 0,gigId:Number(e.id),gigSlug:String(e.slug||""),openConsultation:l}]})},[T,q]=(0,s.useState)(t||[]),[Z,O]=(0,s.useState)(!1),[V,$]=(0,s.useState)(null),[G,H]=(0,s.useState)(l||0),[Q,K]=(0,s.useState)(20===t.length),[Y,X]=(0,s.useState)(1),[J,ee]=(0,s.useState)(!1),[et,el]=(0,s.useState)(""),[ea,er]=(0,s.useState)(A[0].value),[es,ei]=(0,s.useState)(o||R[0].value),[en,eo]=(0,s.useState)(E[0].value),[ed,ec]=(0,s.useState)(d),[eu,em]=(0,s.useState)(""),[eh,ex]=(0,s.useState)(""),[ep,eg]=(0,s.useState)(""),[ef,ev]=(0,s.useState)(""),[eb,ej]=(0,s.useState)(""),[ey,ew]=(0,s.useState)(""),[eN,ek]=(0,s.useState)([]),[e_,eD]=(0,s.useState)(null),[eC,eF]=(0,s.use
1State)(!1),[eS,eA]=(0,s.useState)(!1),[eE,eM]=(0,s.useState)(new Map),[eR,eI]=(0,s.useState)(!1),eP=(0,s.useRef)(!1),eW=(0,s.useRef)({}),eB=(0,s.useRef)(!0),eL=z(et,800),eT=z(eu,800),ez=z(eh,800),eU=z(ep,800),eq=z(ef,800),eZ=z(eb,800),eO=z(ey,800),eV=(0,s.useMemo)(()=>{var e,t;if("custom"===ea){let e=""===eT.trim()?null:Number(eT),t=""===ez.trim()?null:Number(ez);return["number"!=typeof e||Number.isNaN(e)?null:e,"number"!=typeof t||Number.isNaN(t)?null:t]}return null!==(t=null===(e=A.find(e=>e.value===ea))||void 0===e?void 0:e.range)&&void 0!==t?t:[null,null]},[ea,eT,ez]),e$=eV[0],eG=eV[1],eH=(0,s.useMemo)(()=>{var e;if("custom"===en){let e=""===eU.trim()?null:Number(eU);return"number"!=typeof e||Number.isNaN(e)?null:e}return(null===(e=E.find(e=>e.value===en))||void 0===e?void 0:e.minDays)||null},[en,eU]),eQ=(0,s.useMemo)(()=>{var e;if("custom"===en){let e=""===eq.trim()?null:Number(eq);return"number"!=typeof e||Number.isNaN(e)?null:e}return(null===(e=E.find(e=>e.value===en))||void 0===e?void 0:e.maxDays)||null},[en,eq]),eK=(0,s.useMemo)(()=>{var e;if("custom"===ed){let e=""===eZ.trim()?null:Number(eZ);return"number"!=typeof e||Number.isNaN(e)?null:e}return(null===(e=M.find(e=>e.value===ed))||void 0===e?void 0:e.min)||null},[ed,eZ]),eY=(0,s.useMemo)(()=>{var e;if("custom"===ed){let e=""===eO.trim()?null:Number(eO);return"number"!=typeof e||Number.isNaN(e)?null:e}return(null===(e=M.find(e=>e.value===ed))||void 0===e?void 0:e.max)||null},[ed,eO]);(0,s.useEffect)(()=>{(async()=>{if(!N.default.get("login_access_token")){eM(new Map);return}try{let e=await (0,_.IQ)(),t=new Map;e.forEach(e=>t.set(e.gig_id,{itemId:e.id})),eM(t)}catch(e){console.error("Error fetching wishlist items:",e)}})()},[]);let eX=(0,s.useCallback)((e,t,l)=>{eM(a=>{let r=new Map(a);return t&&l?r.set(e,{itemId:l}):r.delete(e),r})},[]),eJ=(0,s.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!eP.current){eP.current=!0,t?ee(!0):O(!0),$(null);try{let a=new URLSearchParams;a.set("page",String(e)),a.set("page_size","20"),eL.trim()&&a.set("search",eL.trim()),i&&a.set("category",i),n&&a.set("subcategory",n),null!==e$&&a.set("min_price",String(e$)),null!==eG&&a.set("max_price",String(eG)),null!==eH&&a.set("min_delivery",String(eH)),null!==eQ&&a.set("max_delivery",String(eQ)),null!==eK&&a.set("min_rating",String(eK)),null!==eY&&a.set("max_rating",String(eY)),es&&a.set("sort",es);let r=await fetch("".concat("/api/marketplace/gigservice","?").concat(a.toString()),{cache:"no-store"});if(!r.ok){var l;let e=r.status,t=null;try{t=await r.json()}catch(e){}let a=(null==t?void 0:null===(l=t.error)||void 0===l?void 0:l.message)||(null==t?void 0:t.error)||"API returned ".concat(e);throw{status:e,message:a,details:t}}let s=await r.json(),o=[],d=0;Array.isArray(s)?(o=s,d=s.length):s.results&&Array.isArray(s.results)?(o=s.results,d=s.count||s.results.length):s.data&&Array.isArray(s.data)&&(o=s.data,d=s.data.length),t?q(e=>[...e,...o]):(q(o),X(1)),H(d),K(20===o.length),t&&X(e)}catch(a){let e=null==a?void 0:a.status,l=(null==a?void 0:a.message)||(null==a?void 0:a.message)||"Unable to load services. Please try again.";console.error("Filter fetch error (".concat(e,"):"),a),404===e?(console.warn("Category/resource not found (404)"),$("Category not found. Redirecting to 404 page..."),t||(q([]),setTimeout(()=>{window.location.href="/not-found"},1500))):(e&&e>=500?(console.error("Server error:",l),$("Server error. Please try again later.")):e&&e>=400?(console.error("Client error (".concat(e,"):"),l),$(l||"Unable to load services. Please try again.")):(console.error("Unexpected error:",a),$("Unable to load services. Please try again.")),t||q([]))}finally{eP.current=!1,t?ee(!1):O(!1)}}},[eL,e$,eG,eH,eQ,eK,eY,es,i,n]);(0,s.useEffect)(()=>{eB.current&&t.length>0&&(q(t),H(l||t.length),K(20===t.length)),eB.current&&(eB.current=!1)},[t,l]),(0,s.useEffect)(()=>{if(eB.current)return;let e=setTimeout(()=>{eP.current||eJ(1,!1)},300);return()=>clearTimeout(e)},[eL,e$,eG,eH,eQ,eK,eY,es,i,n,eJ]);let e0=(0,s.useCallback)(async()=>{if(eP.current||!Q||J)return;let e=Y+1;await eJ(e,!0)},[Y,Q,J,eJ]),e1=(0,s.useMemo)(()=>{let e=[...T];switch(eN.length>0&&(e=e.filter(e=>eN.every(t=>{let l=I.find(e=>e.id===t);return!l||l.test(e)}))),es){case"latest":e.sort((e,t)=>
1t.id-e.id);break;case"oldest":e.sort((e,t)=>e.id-t.id);break;case"price_asc":e.sort((e,t)=>(e.start_with||0)-(t.start_with||0));break;case"price_desc":e.sort((e,t)=>(t.start_with||0)-(e.start_with||0));break;case"alphabetic_asc":e.sort((e,t)=>e.title.localeCompare(t.title));break;case"alphabetic_desc":e.sort((e,t)=>t.title.localeCompare(e.title))}return e},[T,eN,es]),e2=(0,s.useMemo)(()=>{var e,t,l,a,r,s;let i=[];if(et.trim()&&i.push({label:"Search: ".concat(et),onRemove:()=>el("")}),ea!==A[0].value){if("custom"===ea){let e=eu?"$".concat(eu):"Min",t=eh?"$".concat(eh):"Max";i.push({label:"Budget: ".concat(e," â ").concat(t),onRemove:()=>{er(A[0].value),em(""),ex("")}})}else{let l=null!==(t=null===(e=A.find(e=>e.value===ea))||void 0===e?void 0:e.label)&&void 0!==t?t:"Budget";i.push({label:l,onRemove:()=>er(A[0].value)})}}if(en!==E[0].value){if("custom"===en){let e=ep?"".concat(ep," days"):"Min",t=ef?"".concat(ef," days"):"Max";i.push({label:"Delivery: ".concat(e," â ").concat(t),onRemove:()=>{eo(E[0].value),eg(""),ev("")}})}else{let e=null!==(a=null===(l=E.find(e=>e.value===en))||void 0===l?void 0:l.label)&&void 0!==a?a:"Delivery";i.push({label:e,onRemove:()=>eo(E[0].value)})}}if(ed!==M[0].value){if("custom"===ed){let e=eb?"".concat(eb," stars"):"Min",t=ey?"".concat(ey," stars"):"Max";i.push({label:"Rating: ".concat(e," â ").concat(t),onRemove:()=>{ec(M[0].value),ej(""),ew("")}})}else{let e=null!==(s=null===(r=M.find(e=>e.value===ed))||void 0===r?void 0:r.label)&&void 0!==s?s:"Rating";i.push({label:e,onRemove:()=>ec(M[0].value)})}}return eN.forEach(e=>{let t=I.find(t=>t.id===e);t&&i.push({label:t.label,onRemove:()=>e5(e)})}),i},[et,ea,eu,eh,en,ep,ef,ed,eb,ey,eN]),e5=(0,s.useCallback)(e=>{ek(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),e3=(0,s.useCallback)(()=>{eI(!0),el(""),er(A[0].value),em(""),ex(""),eo(E[0].value),eg(""),ev(""),ec(M[0].value),ej(""),ew(""),ei(o||R[0].value),ek([])},[o]),e4=(0,s.useCallback)((e,t)=>{null==t||t.stopPropagation(),er(e),"custom"!==e&&eD(null),eI(!0)},[]),e7=(0,s.useCallback)((e,t)=>{null==t||t.stopPropagation(),eo(e),"custom"!==e&&eD(null),eI(!0)},[]),e9=(0,s.useCallback)((e,t)=>{null==t||t.stopPropagation(),ec(e),"custom"!==e&&eD(null),eI(!0)},[]),e6=(0,s.useCallback)((e,t)=>{let l=t.replace(/[^0-9]/g,"");er("custom"),"min"===e?em(l):ex(l)},[]),e8=(0,s.useCallback)((e,t)=>{let l=t.replace(/[^0-9]/g,"");eo("custom"),"min"===e?eg(l):ev(l)},[]),te=(0,s.useCallback)((e,t)=>{let l=t.replace(/[^0-9.]/g,"");ec("custom"),"min"===e?ej(l):ew(l)},[]);(0,s.useEffect)(()=>{let e=()=>eA(window.scrollY>500);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);let tt=(0,s.useCallback)(e=>{let t=e.target,l=Object.values(eW.current).some(e=>null==e?void 0:e.contains(t)),a=t.closest("[data-dropdown]");!e_||l||a||eD(null)},[e_]);(0,s.useEffect)(()=>(document.addEventListener("mousedown",tt),()=>document.removeEventListener("mousedown",tt)),[tt]);let tl=e2.length>0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("section",{className:"bg-gradient-to-r from-[#006CD9] from-[0%] to-[#003973] to-[52%] py-2 md:sticky top-30 z-30 max-w-full overflow-x-hidden",children:(0,a.jsx)("div",{className:"container mx-auto p-2",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-2 lg:gap-4",children:[(0,a.jsx)("div",{className:"flex-1 min-w-full sm:min-w-[250px]",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(p.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 h-4 w-4"}),(0,a.jsx)("input",{value:et,onChange:e=>{el(e.target.value),eI(!0)},placeholder:"Search services...",className:"w-full rounded-xl border border-slate-300 bg-slate-50 py-2.5 pl-10 pr-12 text-sm focus:border-primarydark focus:outline-none focus:ring-1 focus:ring-primarydark"}),et&&(0,a.jsx)("button",{onClick:()=>el(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs font-semibold text-slate-400 hover:text-primarydark",children:"Clear"})]})}),(0,a.jsxs)("div",{className:"relative w-full sm:w-auto ",children:[(0,a.jsx)("select",{value:es,onChange:e=>{ei(e.target.value),eI(!0)},className:"rounded-xl w-full justify-between border border-slate-300 bg-white px-4 py-2.5 pr-10 text-md font-bold text-slate-700 focus:border-primarydark focus:outline-none focus:ring-1 focus:ring-primarydark appearance-none",children:R.map(e=>(0,a.jsxs)("option",{value:e.value,children:["Sort: ",e.label]},e.value))}),(0,a.jsx)(g.Z,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400 pointer-events-none"})]}),(0,a.jsxs)("button",{onClick:()=>eF(!0),className:"flex w-full sm:w-auto justify-between items-center gap-2 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-md font-bold text-slate-700 hover:border-primarydark hover:text-primarydark",children:[(0,a.jsx)(f.Z,{className:"h-5 w-5",strokeWidth:2.6,fill:"none"}),"Filters",(0,a.jsx)("span",{children:" "})]}),tl&&(0,a.jsx)("button",{onClick:e3,className:"flex w-full sm:w-auto justify-between items-center gap-2 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-md font-bold text-slate-700 hover:border-primarydark hover:text-primarydark",children:"Clear All"})]})})}),(0,a.jsxs)("div",{className:"bg-[#f6f7fb] max-w-full overflow-x-hidden ".concat(w),children:[(0,a.jsxs)("div",{className:"container mx-auto px-4 py-6",children:[x&&(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-2",children:u}),h&&(0,a.jsx)("p",{className:"text-gray-500 mt-1",children:h}),(0,a.jsx)("div",{className:"w-16 h-[3px] bg-gray-900 rounded-full"})]}),(0,a.jsxs)("div",{className:"mb-4 text-sm text-gray-500",children:["Showing ",e1.length," of ",G," services"]}),V?(0,a.jsx)("div",{className:"rounded-lg bg-red-50 px-4 py-3 text-sm text-red-700",children:V}):Z?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-4 gap-6",children:[...Array(20)].map((e,t)=>(0,a.jsxs)("div",{className:"animate-pulse rounded-xl border border-gray-100 bg-white p-4",children:[(0,a.jsx)("div",{className:"aspect-[2/1] rounded-lg bg-gray-200 mb-3"}),(0,a.jsx)("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),(0,a.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]},t))}):e1.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-4 gap-6",children:e1.map(e=>{let t=eE.get(e.id);return(0,a.jsx)(U,{gig:e,isInWishlist:!!t,wishlistItemId:(null==t?void 0:t.itemId)||null,onWishlistChange:eX,onOpenChat:L},e.id)})}),Q&&T.length>0&&(0,a.jsx)("div",{className:"mt-8 text-center",children:J?(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primarydark border-t-transparent"})}):(0,a.jsx)("button",{onClick:e0,className:"rounded-lg border border-gray-300 bg-white px-6 py-2 text-sm font-medium hover:border-primarydark",children:"Load More Services"})}),!Q&&T.length>0&&(0,a.jsx)("div",{className:"mt-8 text-center text-sm text-gray-500",children:"You've reached the end!"})]}):(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("p",{className:"text-gray-500",children:"No services match your filters."}),(0,a.jsx)("button",{onClick:e3,className:"mt-3 text-primarydark hover:underline",children:"Reset filters"})]})]}),eS&&(0,a.jsx)("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"fixed bottom-6 right-6 z-50 rounded-full bg-primarydark p-3 text-white shadow-lg hover:bg-primary transition-transform hover:scale-110",children:(0,a.jsx)(v.Z,{className:"h-5 w-5"})}),eC&&(0,a.jsx)("div",{className:"fixed inset-0 z-9999 flex items-center justify-center bg-black/50 p-4",onClick:()=>eF(!1),children:(0,a.jsxs)("div",{className:"relative w-full max-w-4xl max-h-[90vh] bg-white rounded-2xl shadow-xl overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-200",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"Advanced Filters"}),(0,a.jsx)("button",{onClick:()=>eF(!1),className:"p-1.5 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-lg transition-colors",children:(0,a.jsx)(b.Z,{className:"h-5 w-5"})})]}),(0,a.jsx)("div",{className:"overflow-y-auto max-h-[calc(90vh-140px)]",children:(0,a.jsxs)("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-sm font-semibold text-gray-900 mb-3 flex items-center gap-2",children:[(0,a.jsx)(j.Z,{className:"h-4 w-4 text-primarydark"}),"Budget"]}
1),(0,a.jsxs)("div",{className:"space-y-2 max-h-[320px] overflow-y-auto pr-2",children:[A.map(e=>{let t=ea===e.value;return(0,a.jsxs)("button",{onClick:t=>e4(e.value,t),className:"flex w-full items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-left transition-colors ".concat(t?"bg-primarydark text-white":"bg-gray-50 text-gray-700 hover:bg-gray-100"),children:[(0,a.jsx)("div",{className:"h-4 w-4 rounded border-2 flex items-center justify-center ".concat(t?"border-white":"border-gray-300"),children:t&&(0,a.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"})}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]},e.value)}),"custom"===ea&&(0,a.jsx)("div",{className:"p-3 border border-gray-200 rounded-lg space-y-3",children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Min Amount"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",children:"$"}),(0,a.jsx)("input",{type:"number",value:eu,onChange:e=>e6("min",e.target.value),placeholder:"0",className:"w-full rounded-lg border border-gray-300 pl-8 py-1.5 text-sm focus:border-primarydark focus:outline-none"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max Amount"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",children:"$"}),(0,a.jsx)("input",{type:"number",value:eh,onChange:e=>e6("max",e.target.value),placeholder:"500",className:"w-full rounded-lg border border-gray-300 pl-8 py-1.5 text-sm focus:border-primarydark focus:outline-none"})]})]})]})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-sm font-semibold text-gray-900 mb-3 flex items-center gap-2",children:[(0,a.jsx)(c.Z,{className:"h-4 w-4 text-primarydark"}),"Delivery Time"]}),(0,a.jsxs)("div",{className:"space-y-2 max-h-[320px] overflow-y-auto pr-2",children:[E.map(e=>{let t=en===e.value;return(0,a.jsxs)("button",{onClick:t=>e7(e.value,t),className:"flex w-full items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-left transition-colors ".concat(t?"bg-primarydark text-white":"bg-gray-50 text-gray-700 hover:bg-gray-100"),children:[(0,a.jsx)("div",{className:"h-4 w-4 rounded border-2 flex items-center justify-center ".concat(t?"border-white":"border-gray-300"),children:t&&(0,a.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"})}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]},e.value)}),"custom"===en&&(0,a.jsx)("div",{className:"p-3 border border-gray-200 rounded-lg space-y-3",children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Min Days"}),(0,a.jsx)("input",{type:"number",value:ep,onChange:e=>e8("min",e.target.value),placeholder:"0",className:"w-full rounded-lg border border-gray-300 px-3 py-1.5 text-sm focus:border-primarydark focus:outline-none"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max Days"}),(0,a.jsx)("input",{type:"number",value:ef,onChange:e=>e8("max",e.target.value),placeholder:"30",className:"w-full rounded-lg border border-gray-300 px-3 py-1.5 text-sm focus:border-primarydark focus:outline-none"})]})]})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-sm font-semibold text-gray-900 mb-3 flex items-center gap-2",children:[(0,a.jsx)(m.Z,{className:"h-4 w-4 text-primarydark"}),"Rating"]}),(0,a.jsxs)("div",{className:"space-y-2 max-h-[320px] overflow-y-auto pr-2",children:[M.map(e=>{let t=ed===e.value;return(0,a.jsx)("button",{onClick:t=>e9(e.value,t),className:"flex w-full items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-left transition-colors ".concat(t?"bg-primarydark text-white":"bg-gray-50 text-gray-700 hover:bg-gray-100"),children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"h-4 w-4 roun
1ded border-2 flex items-center justify-center ".concat(t?"border-white":"border-gray-300"),children:t&&(0,a.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"})}),"any"!==e.value&&(0,a.jsx)("div",{className:"flex items-center",children:[void 0,void 0,void 0,void 0,void 0].map((t,l)=>(0,a.jsx)(m.Z,{className:"h-3 w-3 ".concat(l<Math.floor(e.min||0)?"fill-amber-400 text-amber-400":"text-gray-300")},l))}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]})},e.value)}),"custom"===ed&&(0,a.jsx)("div",{className:"p-3 border border-gray-200 rounded-lg space-y-3",children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Min Rating"}),(0,a.jsx)("input",{type:"number",step:"0.1",min:"0",max:"5",value:eb,onChange:e=>te("min",e.target.value),placeholder:"0.0",className:"w-full rounded-lg border border-gray-300 px-3 py-1.5 text-sm focus:border-primarydark focus:outline-none"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max Rating"}),(0,a.jsx)("input",{type:"number",step:"0.1",min:"0",max:"5",value:ey,onChange:e=>te("max",e.target.value),placeholder:"5.0",className:"w-full rounded-lg border border-gray-300 px-3 py-1.5 text-sm focus:border-primarydark focus:outline-none"})]})]})})]})]})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Sort By"}),(0,a.jsx)("div",{className:"space-y-2",children:R.map(e=>{let t=es===e.value;return(0,a.jsxs)("button",{onClick:()=>{ei(e.value),eI(!0)},className:"flex w-full items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-left transition-colors ".concat(t?"bg-primarydark text-white":"bg-gray-50 text-gray-700 hover:bg-gray-100"),children:[(0,a.jsx)("div",{className:"h-4 w-4 rounded border-2 flex items-center justify-center ".concat(t?"border-white":"border-gray-300"),children:t&&(0,a.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"})}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]},e.value)})})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-sm font-semibold text-gray-900 mb-3 flex items-center gap-2",children:[(0,a.jsx)(y.Z,{className:"h-4 w-4 text-primarydark"}),"Quality Signals"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:I.map(e=>{let t=eN.includes(e.id);return(0,a.jsx)("button",{onClick:()=>{e5(e.id),eI(!0)},className:"px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ".concat(t?"bg-primarydark text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:e.label},e.id)})})]})]})]})}),(0,a.jsxs)("div",{className:"flex gap-3 px-6 py-4 border-t border-gray-200 bg-gray-50",children:[(0,a.jsx)("button",{onClick:e3,className:"flex-1 px-4 py-2.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",children:"Reset All"}),(0,a.jsx)("button",{onClick:()=>eF(!1),className:"flex-1 px-4 py-2.5 text-sm font-medium text-white bg-primarydark rounded-lg hover:bg-primary transition-colors",children:"Apply Filters"})]})]})})]}),W.length>0&&(0,a.jsx)("div",{className:"fixed bottom-4 right-4 z-[99998] flex flex-row-reverse gap-3 items-end max-h-[calc(100vh-8rem)] overflow-x-auto overflow-y-hidden",children:W.map(e=>(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(F.Z,{publisherId:e.publisherId,publisherName:e.publisherName,publisherAvatar:e.publisherAvatar,currentUserId:String((null==P?void 0:P.id)||""),currentUserName:(null==P?void 0:P.username)||(null==P?void 0:P.first_name)||"User",currentUserAvatar:(null==P?void 0:P.profile_picture)||void 0,gigId:e.gigId,gigSlug:e.gigSlug,openConsultationOnMount:e.openConsultation,onClose:()=>{B(t=>t.filter(t=>t.publisherId!==e.publisherId))}})},e.publisherId))})]})}},20735:function(e,t,l){l.d(t,{u:function(){return a}});let a=[{title:"What This Marketplace Offers",items:[{id:1,text:"Vefogix connects you with professionals offering a wide range of digital services across multiple categories. From strategy and execution to optimization and support, the marketplace is designed to help you find the right expertise for your specific goals."},{id:2,text:"\n Each service listed here is created by experienced providers, allowing you to compare options based on scope, deliverables, and pricing.\n \n <ul>\n <li>Compare services easily</li>\n <li>Understand deliverables clearly</li>\n <li>\n Flexible pricing options\n <ul>\n <li>Budget-friendly plans</li>\n <li>Premium packages</li>\n </ul>\n </li>\n <li>Choose based on your project needs</li>\n </ul>\n\n Whether you're starting a new project or improving an existing one, you can explore solutions that match your requirements.\n "},{id:3,text:"The platform makes it easier to discover services, evaluate offerings, and choose what works best for your business or project."}]},{title:"Why Choose Services on Vefogix",items:[{id:1,text:"Vefogix is built to simplify how businesses and individuals connect with service providers. Instead of searching across multiple platforms, you can find everything in one place and make informed decisions based on your needs."},{id:2,text:"You get access to a variety of services with clear details, helping you understand what each provider offers. This makes it easier to compare, select, and move forward with confidence."},{id:3,text:"The marketplace supports flexibility, whether you're looking for one-time services or ongoing support. It is designed to help you save time while ensuring you find the right fit for your project."}]},{title:"How It Works",items:[{id:1,text:"Start by exploring available services within the category. Review listings to understand what each provider offers, including scope, timelines, and deliverables."},{id:2,text:"Once you find a suitable option, you can move forward by selecting the service that aligns with your requirements. This streamlined process helps you go from discovery to execution without unnecessary complexity."}]},{title:"Who This Is For",items:[{id:1,text:"This marketplace is designed for businesses, startups, agencies, and individuals looking for reliable services across different domains."},{id:2,text:"Whether you need help with a specific task or a complete project, you can find professionals who match your requirements and deliver based on your goals."}]}]},4310:function(e,t,l){l.d(t,{LL:function(){return u},Xq:function(){return o},bd:function(){return d},fq:function(){return n},h2:function(){return c},zt:function(){return m}});var a=l(83464),r=l(64131),s=l(99551),i=l(75186);async function n(){try{let e=r.default.get("login_access_token");if(!e)return console.warn("â ï¸ [Cart] No auth token - returning empty cart"),[];let t="".concat(s.BASE_URL,"marketplace/cart/"),l=await a.default.get(t,{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},validateStatus:e=>e<500});if(404===l.status)return console.warn("â ï¸ [Cart] API endpoint not found (404) - Cart feature may not be available on server"),[];if(l.status>=400)return console.error("â [Cart] API error:",{status:l.status,data:l.data}),[];return l.data.results||[]}catch(a){var e,t,l;return console.error("â [Cart] Error fetching cart items:",{error:a.message,status:null===(e=a.response)||void 0===e?void 0:e.status,data:null===(t=a.response)||void 0===t?void 0:t.data}),(null===(l=a.response)||void 0===l?void 0:l.status)&&404!==a.response.status&&i.default.error("Failed to load cart items"),[]}}async function o(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{let o=r.default.get("login_access_token");if(!o)return console.warn("â ï¸ [Cart] No auth token - user not logged in"),i.default.error("Please login to add packages to cart"),null;try{let i=await n(),o=i.find(l=>
1{let a=l.gig.id===e,r=null===l.package_id&&null==t||null!==l.package_id&&l.package_id===t;return a&&r});if(o){let t=o.quantity+l;console.log("\uD83D\uDD04 [Cart] Exact match found for gig ".concat(e,", updating quantity from ").concat(o.quantity," to ").concat(t));let a=await d(o.id,t);if(a)return window.dispatchEvent(new CustomEvent("vefogix:cart-updated")),a;console.warn("â ï¸ [Cart] Failed to update existing item, will try to add new item")}let c=i.find(t=>t.gig.id===e);if(c&&null==t!=(null===c.package_id)){console.log("\uD83D\uDD04 [Cart] Found same gig ".concat(e," with different package setup. Merging into existing cart item ").concat(c.id));let i=null!=t?t:c.package_id,n=c.quantity+l,o=r.default.get("login_access_token");if(o)try{let e=await a.default.put("".concat(s.BASE_URL,"marketplace/cart/").concat(c.id,"/"),{package_id:i,quantity:n},{headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"}});return window.dispatchEvent(new CustomEvent("vefogix:cart-updated")),e.data}catch(e){console.warn("â ï¸ [Cart] Failed to update package_id, will add as new item",e)}}}catch(e){console.warn("â ï¸ [Cart] Error checking existing cart items, proceeding with add:",e)}let c=await a.default.post("".concat(s.BASE_URL,"marketplace/cart/"),{gig_id:e,package_id:t||null,quantity:l},{headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"}});return window.dispatchEvent(new CustomEvent("vefogix:cart-updated")),c.data}catch(t){var o,c,u,m;console.error("â [Cart] Error adding to cart:",{error:t.message,status:null===(o=t.response)||void 0===o?void 0:o.status,data:null===(c=t.response)||void 0===c?void 0:c.data});let e=(null===(m=t.response)||void 0===m?void 0:null===(u=m.data)||void 0===u?void 0:u.error)||"Failed to add package to cart";return i.default.error(e),null}}async function d(e,t){try{let l=r.default.get("login_access_token");if(!l)return null;let i=await a.default.put("".concat(s.BASE_URL,"marketplace/cart/").concat(e,"/"),{quantity:t},{headers:{Authorization:"Bearer ".concat(l),"Content-Type":"application/json"}});return window.dispatchEvent(new CustomEvent("vefogix:cart-updated")),i.data}catch(e){return console.error("Error updating cart item:",e),i.default.error("Failed to update cart package"),null}}async function c(e){try{let t=r.default.get("login_access_token");if(!t)return!1;return await a.default.delete("".concat(s.BASE_URL,"marketplace/cart/").concat(e,"/"),{headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}}),window.dispatchEvent(new CustomEvent("vefogix:cart-updated")),!0}catch(e){return console.error("Error removing from cart:",e),i.default.error("Failed to remove package from cart"),!1}}async function u(){try{let e=r.default.get("login_access_token");if(!e)return!1;return await a.default.delete("".concat(s.BASE_URL,"marketplace/cart/clear/"),{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}),window.dispatchEvent(new CustomEvent("vefogix:cart-updated")),!0}catch(e){return console.error("Error clearing cart:",e),i.default.error("Failed to clear cart"),!1}}async function m(){try{return(await n()).reduce((e,t)=>e+t.quantity,0)}catch(e){return console.warn("â ï¸ [Cart] Error getting cart count:",e),0}}},16907:function(e,t,l){l.d(t,{$f:function(){return d},IQ:function(){return n},Mp:function(){return o},QM:function(){return u},RE:function(){return c}});var a=l(83464),r=l(64131),s=l(99551),i=l(75186);async function n(){try{let e=r.default.get("login_access_token");if(!e)return[];let t="".concat(s.BASE_URL,"marketplace/wishlist/"),l=await a.default.get(t,{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},validateStatus:e=>e<500});if(404===l.status)return console.warn("â ï¸ [Wishlist] API endpoint not found (404) - Wishlist feature may not be available on server"),[];if(l.status>=400)return console.error("â [Wishlist] API error:",{status:l.status,data:l.data}),[];return l.data.results||[]}catch(a){var e,t,l;return console.error("â [Wishlist] Error fetching wishlist items:",{error:a.message,status:null===(e=a.response)||void 0===e?void 0:e.status,data:null===(t=a.response)||void 0===t?void 0:t.data}),(null===(l=a.response)||void 0===l?void 0:l.status)&&404!==a.response.status&&i.default.error("Failed to load wishlist items"),[]}}async function o(e,t){try{let l=r.default.get("login_access_token");if(!l)return console.warn("â ï¸ [Wishlist] No auth token - user not logged in"),i.default.error("Please login to add items to wishlist"),null;let n={gig_id:e};null!=t&&(n.package_id=t);let o=await a.default.post("".concat(s.BASE_URL,"marketplace/wis
1hlist/"),n,{headers:{Authorization:"Bearer ".concat(l),"Content-Type":"application/json"}});return window.dispatchEvent(new CustomEvent("vefogix:wishlist-updated")),o.data}catch(t){var l,n,o,d,c,u,m;console.error("â [Wishlist] Error adding to wishlist:",{error:t.message,status:null===(l=t.response)||void 0===l?void 0:l.status,data:null===(n=t.response)||void 0===n?void 0:n.data});let e=(null===(d=t.response)||void 0===d?void 0:null===(o=d.data)||void 0===o?void 0:o.error)||(null===(u=t.response)||void 0===u?void 0:null===(c=u.data)||void 0===c?void 0:c.message)||"Failed to add item to wishlist";return(null===(m=t.response)||void 0===m?void 0:m.status)===400&&e.includes("already")?i.default.error("Item already in wishlist"):i.default.error(e),null}}async function d(e){try{let t=r.default.get("login_access_token");if(!t)return!1;return await a.default.delete("".concat(s.BASE_URL,"marketplace/wishlist/").concat(e,"/"),{headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}}),window.dispatchEvent(new CustomEvent("vefogix:wishlist-updated")),!0}catch(e){return console.error("Error removing from wishlist:",e),i.default.error("Failed to remove item from wishlist"),!1}}async function c(e,t){try{let l=r.default.get("login_access_token");if(!l)return console.warn("â ï¸ [Wishlist] No auth token - returning false"),{isInWishlist:!1,itemId:null};let i=null!=t?"".concat(s.BASE_URL,"marketplace/wishlist/check/").concat(e,"/?package_id=").concat(t):"".concat(s.BASE_URL,"marketplace/wishlist/check/").concat(e,"/"),n=await a.default.get(i,{headers:{Authorization:"Bearer ".concat(l),"Content-Type":"application/json"}});return{isInWishlist:n.data.is_in_wishlist||!1,itemId:n.data.wishlist_item_id||null}}catch(e){var l,i;return console.error("â [Wishlist] Error checking wishlist status:",{error:e.message,status:null===(l=e.response)||void 0===l?void 0:l.status,data:null===(i=e.response)||void 0===i?void 0:i.data}),{isInWishlist:!1,itemId:null}}}async function u(){try{return(await n()).length}catch(e){return console.warn("â ï¸ [Wishlist] Error getting wishlist count:",e),0}}}}]);
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.