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AIC,OAAQ,KACrE,OAAHR,QAAG,IAAHA,GAAU,QAAPG,EAAHH,EAAKhE,aAAK,IAAAmE,OAAP,EAAHA,EAAa5E,KAFP0E,EAIZ,OAEHzG,EAAAA,EAAAA,KAAA,UAAQC,UAAU,YAAYgD,QAASA,IAAMS,OAAOtE,SAASuE,OAAO,GAADX,OAAIY,qCAAyC1D,SAC7G2F,EAAQvB,EAAUvC,GAAU6C,aAAeN,EAAUvC,GAAU2C,cA3B2BiB,EA8BhG,YAMH,C","sources":["components/common/SocialMediaCommonComponents/SocialMediaSlider.jsx","pages/Home/components/FAQSection.jsx","pages/Home/components/WhyLegisPricing.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport youtube from \"../../../utils/images/youtube.png\";\nimport insta from \"../../../utils/images/insta.png\";\nimport twitch from \"../../../utils/images/twitch.png\";\nimport facebook from \"../../../utils/images/facebook.png\";\nimport google from \"../../../utils/images/google.png\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Autoplay, Navigation } from \"swiper/modules\";\nimport axiosInstance from '../../../services/axiosInstance';\nimport { useLocation } from 'react-router-dom';\n\nconst SocialMediaSlider = () => {\n const [socialLogos, setSocialLogos] = useState(null)\n const location = useLocation()\n\n const logos = [\n { name: \"YouTube\", imageUrl: youtube },\n { name: \"Instagram\", imageUrl: insta },\n { name: \"Twitch\", imageUrl: twitch },\n { name: \"Facebook\", imageUrl: facebook },\n { name: \"Google\", imageUrl: google },\n ];\n useEffect(() => {\n fetchData()\n }, [location?.pathname])\n\n const fetchData = async () => {\n try {\n \n const response = await axiosInstance(`/api/get-all-social-media-logo`)\n setSocialLogos(response?.data)\n } catch (err) {\n console.log(\"error\", err)\n }\n }\n return (\n
\n \n {socialLogos && socialLogos?.socialMediaLogos?.length>0 ? socialLogos?.socialMediaLogos \n .map((logo, index) => (\n \n {\"logo\"}\n \n )) : null\n }\n {/* {logos\n .map((logo, index) => (\n \n {\"logo\"}\n \n )) \n } */}\n \n
\n )\n}\n\nexport default SocialMediaSlider","import { faMinus, faPlus } from '@fortawesome/free-solid-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport axios from 'axios';\nimport React, { useEffect, useState } from 'react'\nimport { useTranslation } from 'react-i18next';\nimport i18n from '../../../i18n';\nimport axiosInstance from '../../../services/axiosInstance';\n\n\nconst FAQSection = () => {\n const [openIndex, setOpenIndex] = useState(null);\n const [subsPlanfaq, setSubPlanfaq] = useState(null);\n const [questionsData, setQuestionsData] = useState(null)\n const { t } = useTranslation();\n const language = i18n.language\n\n useEffect(()=>{\n // fetchData();\n fetchMusicFaq()\n },[])\n const fetchData = async()=> {\n try {\n const response = await axiosInstance.get(`/api/get-all-licenses/pay-once-use-for-a-lifetime/en`)\n setSubPlanfaq(response.data)\n if (response) {\n let questions = response.data?.subscriptionPlan?.map((item)=>{\n return [...item.get_questions]\n }).flat()\n setQuestionsData(questions)\n }\n } catch (err) {\n console.error(err)\n }\n }\n const fetchMusicFaq = async()=> {\n try {\n const response = await axiosInstance.get(`/api/get-all-faqs`)\n setSubPlanfaq(response.data)\n if (response) {\n console.log(\"all faq \", response.data)\n setQuestionsData(response?.data?.faq)\n }\n } catch (err) {\n console.error(err)\n }\n }\n const toggleFAQ = (index) => {\n setOpenIndex(openIndex === index ? null : index);\n };\n const faqData = [\n {\n question: \"How much does it cost?\",\n answer:\n \"The PRO version costs $36 per year or $5 per month, offering features like whitelisting up to 10 YouTube channels, adding users, accessing stems, and an ad-free experience. Individual users can also use a limited Freemium version, while businesses can trial premium features for 14 days before subscribing.\",\n },\n {\n question: \"How often do you add new content?\",\n answer:\n \"We regularly update our library with new tracks, ensuring you always have fresh content for your projects.\",\n },\n {\n question: \"Can I use Legis music on Podcasts?\",\n answer:\n \"Yes, our licensing covers podcasts, allowing you to use our music without copyright issues.\",\n },\n {\n question: \"What is YouTube Content ID?\",\n answer:\n \"YouTube Content ID is a system that helps track copyrighted content on YouTube to ensure rightful ownership and monetization.\",\n },\n {\n question: \"Do you have a partner or affiliate program I can sign up for?\",\n answer:\n \"Yes! We offer an affiliate program where you can earn commissions by referring others to our platform.\",\n },\n {\n question: \"Is your music exclusive to TuneCutter?\",\n answer:\n \"Some of our tracks are exclusive, while others are available on multiple platforms to ensure a wide variety of content.\",\n },\n ];\n const faqSection= {\n \"en\": {\n \"title\": \"Frequently Asked Questions\",\n \"description\": \"We have you covered! If you can’t find the answer you’re looking for, please Contact us.\"\n },\n \"es\": {\n \"title\": \"Preguntas Frecuentes\",\n \"description\": \"¡Te tenemos cubierto! Si no encuentras la respuesta que buscas, por favor Contáctanos.\"\n },\n \"fr\": {\n \"title\": \"Foire Aux Questions\",\n \"description\": \"Nous avons ce qu'il vous faut ! Si vous ne trouvez pas la réponse que vous cherchez, veuillez Nous contacter.\"\n }\n }\n return (\n
\n
\n
\n

{faqSection?.[language].title}

\n

\n
\n
\n {questionsData?.map((faq, index) => \n {\n console.log(\"faqItem \", faq?.question?.[language])\n return (\n
\n
toggleFAQ(index)}>\n \n \n \n

{faq?.question?.[language]}

\n {/*

{faq.question}

*/}\n
\n {openIndex === index && (\n
\n

\n {/* {faq.answer} */}\n

\n
\n )}\n
\n )\n})\n }\n
\n
\n \n \n
\n
\n
\n )\n}\n\nexport default FAQSection","\n// import React, { useEffect, useState } from 'react';\n// import legisBg from \"../../../utils/images/why_legis_bg.jpg\";\n// import whiteround from \"../../../utils/images/white_round_tick.png\";\n// import { useTranslation } from 'react-i18next';\n// import i18n from '../../../i18n';\n\n// const WhyLegisPricing = ({ licenceData }) => {\n// const { t } = useTranslation();\n// const language = i18n.language;\n\n// const [billingCycle, setBillingCycle] = useState('monthly');\n\n// const monthlyPrice = 9.99;\n// const yearlyPrice = 60;\n// const monthlyEffective = yearlyPrice / 12;\n// const discountPercent = Math.round((1 - (monthlyEffective / monthlyPrice)) * 100); // 50%\n\n// const discountAmountData = licenceData?.subscriptionPlan?.map((res, i)=>{\n// console.log('res 123654789', res)\n// const title = res?.title?.[language];\n// const isPro = title === 'Pro';\n \n// })\n// console.log('licenceData?.subscriptionPlan', licenceData?.subscriptionPlan);\n\n// const plansData = {\n// en: {\n// title: \"Freemium\",\n// name: \"Free\",\n// para: \"\",\n// submitBtn: \"FREE Sign Up\",\n// titlePro: \"Pro\",\n// submitBtnPro: \"14 Day trial\",\n// monthly: {\n// amount: \"$9.99\",\n// per: \"Per month\",\n// note: `Save up to ${discountPercent}% by paying yearly`,\n// },\n// yearly: {\n// amount: \"$5.00\",\n// per: \"Per month,\",\n// note: ` billed yearly at $60`,\n// save: `SAVE ${discountPercent}%`\n// }\n// },\n// es: {\n// title: \"Freemium\",\n// name: \"Gratis\",\n// para: \"\",\n// submitBtn: \"Regístrate GRATIS\",\n// titlePro: \"Pro\",\n// submitBtnPro: \"Prueba de 14 días\",\n// monthly: {\n// amount: \"$9.99\",\n// per: \"por mes\",\n// note: `Ahorra hasta un ${discountPercent}% pagando anualmente`,\n// },\n// yearly: {\n// amount: \"$5.00\",\n// per: \"por mes, facturado anualmente a $60\",\n// note: `facturado anualmente a $60`,\n// save: `AHORRA ${discountPercent}%`\n// }\n// },\n// fr: {\n// title: \"Freemium\",\n// name: \"Gratuit\",\n// para: \"\",\n// submitBtn: \"Inscription GRATUITE\",\n// titlePro: \"Pro\",\n// submitBtnPro: \"Essai de 14 jours\",\n// monthly: {\n// amount: \"9.99$\",\n// per: \"par mois\",\n// note: `Économisez jusqu'à ${discountPercent}% en payant annuellement`,\n// },\n// yearly: {\n// amount: \"5$\",\n// per: \"par mois, facturé 60$ annuellement\",\n// note: `facturé 60$ annuellement`,\n// save: `ÉCONOMISEZ ${discountPercent}%`\n// }\n// }\n// };\n\n// return (\n//
\n//
\n//
\n//
\n//

{t(\"whyLegisMusic\")}

\n//

{t(\"whyLegisDesc\")}{t(\"whyLegisSpanOne\")}{t(\"whyLegisDesc2\")}{t(\"whyLegisSpanTwo\")}{t(\"whyLegisSpanThree\")}

\n//
\n\n//
\n//
    \n//
  • \n// setBillingCycle('monthly')}\n// aria-pressed={billingCycle === 'monthly'}\n// >Monthly\n//
  • \n//
  • \n// setBillingCycle('yearly')}\n// aria-pressed={billingCycle === 'yearly'}\n// >Yearly\n//
  • \n//
\n//
\n\n//
\n// {licenceData?.subscriptionPlan?.length > 0 && licenceData.subscriptionPlan.map((data, i) => {\n// const title = data?.title?.[language] || '';\n// const isPro = title === 'Pro';\n// console.log('test this page', {data, i, title, isPro});\n// return (\n// data?.mostpopular === 1 && (\n//
\n// {isPro && billingCycle === 'yearly' && (\n//
{plansData[language].yearly.save}
\n// )}\n\n//

{title} {isPro ? plansData[language][billingCycle].amount : plansData[language].name}

\n// {isPro && (\n// <>\n//

{plansData[language][billingCycle].per}

\n// {billingCycle === 'monthly' ? \n//

{plansData[language].monthly.note}

\n// :\n//

{plansData[language].yearly.note}

\n// }\n// \n// )}\n//
    \n// {[...data.include_masters]\n// .sort((a, b) => b?.pivot?.availability_for_plan - a?.pivot?.availability_for_plan)\n// .map((res, j) => res?.pivot?.include_id_both === 1 && (\n//
  • \n// checkImage\n// {res?.title?.[language]}\n//
  • \n// ))}\n//
\n// \n//
\n// )\n// );\n// })}\n//
\n//
\n//
\n//
\n// );\n// };\n\n// export default WhyLegisPricing;\n\n\nimport React, { useEffect, useState } from 'react';\nimport legisBg from \"../../../utils/images/why_legis_bg.jpg\";\nimport whiteround from \"../../../utils/images/white_round_tick.png\";\nimport { useTranslation } from 'react-i18next';\nimport i18n from '../../../i18n';\n\nconst WhyLegisPricing = ({ licenceData }) => {\n const { t } = useTranslation();\n const language = i18n.language;\n\n const [billingCycle, setBillingCycle] = useState('monthly');\n\n const monthlyPrice = 9.99;\n const yearlyPrice = 60;\n const monthlyEffective = yearlyPrice / 12;\n\n const discountPercent = Math.round((1 - (monthlyEffective / monthlyPrice)) * 100); // 50%\n\n const plansData = {\n en: {\n title: \"Freemium\",\n name: \"Free\",\n para: \"\",\n submitBtn: \"FREE Sign Up\",\n titlePro: \"Pro\",\n submitBtnPro: \"14 Day trial\",\n monthly: {\n amount: `$${monthlyPrice.toFixed(2)}`,\n per: \"Per month\",\n note: `Save up to ${discountPercent}% by paying yearly`,\n },\n yearly: {\n amount: `$${(yearlyPrice / 12).toFixed(2)}`,\n per: \"Per month,\",\n note: ` billed yearly at $${yearlyPrice}`,\n save: `SAVE ${discountPercent}%`\n }\n },\n es: {\n title: \"Freemium\",\n name: \"Gratis\",\n para: \"\",\n submitBtn: \"Regístrate GRATIS\",\n titlePro: \"Pro\",\n submitBtnPro: \"Prueba de 14 días\",\n monthly: {\n amount: `$${monthlyPrice.toFixed(2)}`,\n per: \"por mes\",\n note: `Ahorra hasta un ${discountPercent}% pagando anualmente`,\n },\n yearly: {\n amount: `$${(yearlyPrice / 12).toFixed(2)}`,\n per: \"por mes, facturado anualmente a $60\",\n save: `AHORRA ${discountPercent}%`\n }\n },\n fr: {\n title: \"Freemium\",\n name: \"Gratuit\",\n para: \"\",\n submitBtn: \"Inscription GRATUITE\",\n titlePro: \"Pro\",\n submitBtnPro: \"Essai de 14 jours\",\n monthly: {\n amount: `$${monthlyPrice.toFixed(2)}`,\n per: \"par mois\",\n note: `Économisez jusqu'à ${discountPercent}% en payant annuellement`,\n },\n yearly: {\n amount: `$${(yearlyPrice / 12).toFixed(2)}`,\n per: \"par mois, facturé 60$ annuellement\",\n save: `ÉCONOMISEZ ${discountPercent}%`\n }\n }\n };\n\n const handleBillingCycleChange = (cycle) => {\n setBillingCycle(cycle);\n };\n\n return (\n
\n
\n
\n
\n

{t(\"whyLegisMusic\")}

\n

{t(\"whyLegisDesc\")}{t(\"whyLegisSpanOne\")}{t(\"whyLegisDesc2\")}{t(\"whyLegisSpanTwo\")}{t(\"whyLegisSpanThree\")}

\n
\n\n
\n
    \n
  • \n handleBillingCycleChange('monthly')}\n aria-pressed={billingCycle === 'monthly'}\n >Monthly\n
  • \n
  • \n handleBillingCycleChange('yearly')}\n aria-pressed={billingCycle === 'yearly'}\n >Yearly\n
  • \n
\n
\n\n
\n {licenceData?.subscriptionPlan?.length > 0 && licenceData.subscriptionPlan.map((data, i) => {\n const title = data?.title?.[language] || '';\n const isPro = title === 'Pro';\n return (\n data?.mostpopular === 1 && (\n
\n {isPro && billingCycle === 'yearly' && (\n
{plansData[language].yearly.save}
\n )}\n\n

{title} {isPro ? plansData[language][billingCycle].amount : plansData[language].name}

\n {isPro && (\n <>\n

{plansData[language][billingCycle].per}

\n {billingCycle === 'monthly' ? \n

{plansData[language].monthly.note}

\n :\n

{plansData[language].yearly.note}

\n }\n \n )}\n
    \n {[...data.include_masters]\n .sort((a, b) => b?.pivot?.availability_for_plan - a?.pivot?.availability_for_plan)\n .map((res, j) => res?.pivot?.include_id_both === 1 && (\n
  • \n checkImage\n {res?.title?.[language]}\n
  • \n ))}\n
\n \n
\n )\n );\n })}\n
\n
\n
\n
\n );\n};\n\nexport default WhyLegisPricing;\n"],"names":["SocialMediaSlider","_socialLogos$socialMe","socialLogos","setSocialLogos","useState","location","useLocation","useEffect","fetchData","pathname","async","response","axiosInstance","data","err","console","log","_jsx","className","children","Swiper","spaceBetween","loop","autoplay","delay","modules","Autoplay","breakpoints","slidesPerView","centeredSlides","socialMediaLogos","length","map","logo","index","SwiperSlide","src","full_image_url","alt","FAQSection","openIndex","setOpenIndex","subsPlanfaq","setSubPlanfaq","questionsData","setQuestionsData","t","useTranslation","language","i18n","fetchMusicFaq","get","_response$data2","faq","error","faqSection","_jsxs","title","dangerouslySetInnerHTML","__html","description","_faq$question","_faq$question2","_faq$answer","question","concat","onClick","toggleFAQ","FontAwesomeIcon","icon","faMinus","faPlus","answer","style","color","window","assign","process","_ref","_licenceData$subscrip","licenceData","billingCycle","setBillingCycle","monthlyPrice","discountPercent","Math","round","plansData","en","name","para","submitBtn","titlePro","submitBtnPro","monthly","amount","toFixed","per","note","yearly","save","es","fr","handleBillingCycleChange","cycle","backgroundImage","legisBg","subscriptionPlan","i","_data$title","isPro","mostpopular","_Fragment","include_masters","sort","a","b","_b$pivot","_a$pivot","pivot","availability_for_plan","res","j","_res$pivot","_res$title","include_id_both","whiteround","loading","width","height"],"sourceRoot":""}