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BAEf,OAAO,gBAAC,IAAD,CACL7C,MAAM,6BAA6B8C,YAAY,qEAC/C,gBAACC,EAAA,EAAD,KAEE,6BAAQF,EAAR,kBACA,wBAAM5B,KAAK,cAAc+B,QAASH,IAClC,wBAAMI,SAAS,WAAWD,QAAYH,EAAL,mBACjC,wBAAMI,SAAS,WAAWD,QAASJ,IACnC,wBAAMK,SAAS,SAASD,QAAO,4CAC/B,wBAAMC,SAAS,iBAAiBD,QAASH,IAEzC,wBAAMK,SAAS,OAAOF,QAAYH,EAAL,mBAC7B,wBAAMK,SAAS,cAAcF,QAASH,IAEtC,wBAAMI,SAAS,gBAAgBD,QAAYH,EAAL,mBACtC,wBAAMI,SAAS,sBAAsBD,QAASH,IAC9C,wBAAMI,SAAS,eAAeD,QAASJ,IACvC,wBAAMK,SAAS,oBAAoBD,QAASJ,KAE9C,uBAAK/C,UAAU,+DACb,uBAAKA,UAAU,oBACb,uBAAKA,UAAU,6BAEjB,uBAAKA,UAAU,8BACb,gBAACE,EAAA,EAAD,CAAWC,MAAM,2BACjB,uBAAKH,UAAU,SACb,gBAAC8C,EAAD,SAIN,uBAAK9C,UAAU,SACb,gBAAC,IAAD,OA/BJ,C","sources":["webpack://waxcarvers-fe/./src/components/Common/NewsLetterPlug.jsx","webpack://waxcarvers-fe/./src/components/Common/PageTitle.jsx","webpack://waxcarvers-fe/./src/components/Shop/SalesTable.jsx","webpack://waxcarvers-fe/./src/components/Shop/LessonStore.jsx","webpack://waxcarvers-fe/./src/pages/lesson-store.js"],"sourcesContent":["import React from \"react\";\n\nexport const JoinNewsLetterButton = () => (\n
\n
\n
\n

\n Always know what I'm up to!\n

\n
\n
\n \n Get weekly emails!\n \n
\n
\n
\n
\n
\n);\n","import React from \"react\";\n\nexport const PageTitle = ({ title, subtitle }) => (\n
\n

{title}

\n

\n {subtitle}\n

\n
\n);\n\nexport const PageSubTitle = ({ title, subtitle, color }) => (\n
\n \n {title}\n \n

\n {subtitle}\n

\n
\n);\n","import React, { useContext } from 'react'\nimport { LessonStoreContext } from './LessonStoreContext'\n\nconst LessonList = ({ lessons, selectedLessons, selectLesson }) => {\n\n function classNames (...classes) {\n return classes.filter(Boolean).join(' ')\n }\n\n return (\n
\n
\n \n
\n \n {lesson.name}\n \n
\n
\n \n Select\n selectLesson(lesson.id)}\n className=\"h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500\" />\n \n
\n \n \n ))}\n \n \n )\n\n}\n\nexport const SalesTable = ({ openCheckout, selectLesson, selectedLessons }) => {\n const ctx = useContext(LessonStoreContext)\n const lessons = ctx?.lessons ?? []\n return
\n
\n
\n

Individual classes

\n

Here's is a list of available individual classes. Select the ones you\n want to purchase and click the checkout button.

\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n}\n","import { SalesTable } from './SalesTable'\nimport React, { useCallback, useState } from 'react'\nimport { SlideOut } from '../Common/SlideOut'\nimport LessonStoreContext from './LessonStoreContext'\n\nconst LessonStoreContents = () => {\n const [slideOutOpen, setSlideOutOpen] = useState(false)\n const [selectedLessons, setSelectedLessons] = useState([])\n const selectLesson = useCallback((id) => {\n if (selectedLessons.includes(id)) {\n setSelectedLessons(selectedLessons.filter(it => it !== id))\n } else {\n setSelectedLessons([...selectedLessons, id])\n }\n }, [selectedLessons, setSelectedLessons])\n return (<>\n \n
\n setSlideOutOpen(true)}\n selectLesson={selectLesson}\n selectedLessons={selectedLessons} />\n
\n )\n}\n\nexport const LessonStore = () =>\n \n
\n \n
\n
\n\n","import Layout from '../components/layout'\nimport { Helmet } from 'react-helmet'\nimport { PageTitle } from '../components/Common/PageTitle'\nimport { JoinNewsLetterButton } from '../components/Common/NewsLetterPlug'\nimport React from 'react'\nimport { LessonStore } from '../components/Shop/LessonStore'\n\nconst LessonStorePage = () => {\n const bannerImg = 'http://images.waxcarvers.com.s3-website-eu-west-1.amazonaws.com/waxcarvers.png'\n const attributes = {\n title: 'Lesson Store',\n description: 'Buy Individual Lessons'\n }\n return \n \n\n {attributes.title} ¦ Wax Carvers\n \n \n \n \n \n\n \n \n\n \n \n \n \n \n
\n
\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n \n
\n \n}\nexport default LessonStorePage\n"],"names":["JoinNewsLetterButton","className","href","PageTitle","title","subtitle","PageSubTitle","color","LessonList","lessons","selectedLessons","selectLesson","classNames","classes","filter","Boolean","join","role","map","lesson","key","name","bgColor","alt","src","images","type","id","checked","includes","onChange","SalesTable","openCheckout","ctx","useContext","LessonStoreContext","onClick","LessonStoreContents","slideOutOpen","setSlideOutOpen","useState","setSelectedLessons","useCallback","it","SlideOut","isOpen","setOpen","LessonStore","bannerImg","attributes","description","Helmet","content","property","itemProp"],"sourceRoot":""}