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IAAMiD,EAAKgV,QACjBD,EAAME,MAAMlB,MAAQ,IACpBgB,EAAM/W,UAAY,iBAGlBsL,EAAMlL,YAAY0W,GAClBxL,EAAMlL,YAAY2W,GAClBF,EAAazW,YAAYkL,GAEzBsL,EAAaxW,YAAYyW,EAC3B,EAEAtf,SAASC,iBAAiB,cAAc,WACtCD,SAASiB,iBAAiB,mBAAmB1B,SAAQ,SAACqD,GAAO,OAAK2a,EAAU3a,EAAQ,GACtF,G,kBC/HA5C,SAASC,iBAAiB,cAAc,WAEtC,IAAM0f,EAAe3f,SAASG,cAAc,kBACtCyf,EAAW5f,SAASG,cAAc,cAClC0f,EAAgB7f,SAASG,cAAc,sBAE7Cyf,EAAS3f,iBAAiB,SAAS,WACjC0f,EAAa9f,UAAUC,OAAO,UAC9B6f,EAAa9f,UAAUE,IAAI,OAC7B,IAEA8f,EAAc5f,iBAAiB,SAAS,WACtC0f,EAAa9f,UAAUE,IAAI,UAC3B4f,EAAa9f,UAAUC,OAAO,OAChC,GACF,G,ixBCfAZ,OAAO4gB,yBAA2B,SAACC,EAAU7d,GAC3C,IAEM8d,EAAqBvW,EAFRvH,EAASE,QAAQ,gBACNnB,iBAAiB,2BACJ2I,QAAO,SAAAC,GAAI,OAAIA,EAAK9H,OAAO,IACtE,GAAIie,EAAmB9e,OAAS6e,EAC9B,IAAK,IAAI5e,EAAI,EAAGA,EAAI6e,EAAmB9e,OAAQC,IACzC6e,EAAmB7e,GAAGT,OAASwB,EAASxB,QAE1Csf,EAAmB7e,GAAGY,SAAU,EAIxC,C","sources":["webpack://jumpstart-app/./app/javascript/src/ sync ^\\.\\/.*$","webpack://jumpstart-app/./app/javascript/packs/application.js","webpack://jumpstart-app/./app/javascript/src/add_card_details.js","webpack://jumpstart-app/./app/javascript/src/announcement_modal.js","webpack://jumpstart-app/./app/javascript/src/class_age_requirement.js","webpack://jumpstart-app/./app/javascript/src/collapse_sidebar.js","webpack://jumpstart-app/./app/javascript/src/compare_btn.js","webpack://jumpstart-app/./app/javascript/src/confirm.js","webpack://jumpstart-app/./app/javascript/src/delete_in_edit_profile.js","webpack://jumpstart-app/./app/javascript/src/delete_nested_new_user.js","webpack://jumpstart-app/./app/javascript/src/disable_button.js","webpack://jumpstart-app/./app/javascript/src/disable_checkout_button.js","webpack://jumpstart-app/./app/javascript/src/disable_send_testimony.js","webpack://jumpstart-app/./app/javascript/src/ec_modal.js","webpack://jumpstart-app/./app/javascript/src/edit_announcement_modal.js","webpack://jumpstart-app/./app/javascript/src/experience_profile_pics.js","webpack://jumpstart-app/./app/javascript/src/hide_timeslots.js","webpack://jumpstart-app/./app/javascript/src/lazysrc.js","webpack://jumpstart-app/./app/javascript/src/manage_admin_teachers_checkbox.js","webpack://jumpstart-app/./app/javascript/src/manage_upload_gallery_pics.js","webpack://jumpstart-app/./app/javascript/src/modal_btn.js","webpack://jumpstart-app/./app/javascript/src/nested_modal.js","webpack://jumpstart-app/./app/javascript/src/preview_school_image.js","webpack://jumpstart-app/./app/javascript/src/preview_teacher_file.js","webpack://jumpstart-app/./app/javascript/src/preview_user_image.js","webpack://jumpstart-app/./app/javascript/src/scroller/activescroller.js","webpack://jumpstart-app/./app/javascript/src/search/Dropdown.js","webpack://jumpstart-app/./app/javascript/src/search/autosearch.js","webpack://jumpstart-app/./app/javascript/src/search/search_announcement.js","webpack://jumpstart-app/./app/javascript/src/search/search_category.js","webpack://jumpstart-app/./app/javascript/src/search/search_course.js","webpack://jumpstart-app/./app/javascript/src/search/search_educator.js","webpack://jumpstart-app/./app/javascript/src/search/util.js","webpack://jumpstart-app/./app/javascript/src/star_rating.js","webpack://jumpstart-app/./app/javascript/src/stop_enrolment_modal.js","webpack://jumpstart-app/./app/javascript/src/student_profile_modal.js","webpack://jumpstart-app/./app/javascript/src/testimonial_read_more.js","webpack://jumpstart-app/./app/javascript/src/tick_checkbox.js","webpack://jumpstart-app/./app/javascript/src/toggle_btn.js","webpack://jumpstart-app/./app/javascript/src/toggle_course_public.js","webpack://jumpstart-app/./app/javascript/src/trix-editor-overrides.js","webpack://jumpstart-app/./app/javascript/src/turbo_native/bridge.js","webpack://jumpstart-app/./app/javascript/src/upload-filename.js","webpack://jumpstart-app/./app/javascript/src/upload_gallery_pics.js","webpack://jumpstart-app/./app/javascript/src/uppy.js","webpack://jumpstart-app/./app/javascript/src/venue_modal.js","webpack://jumpstart-app/./app/javascript/src/venue_tag_limit.js"],"sourcesContent":["var map = {\n\t\"./actiontext\": 782,\n\t\"./actiontext.js\": 782,\n\t\"./add_card_details\": 528,\n\t\"./add_card_details.js\": 528,\n\t\"./announcement_modal\": 2429,\n\t\"./announcement_modal.js\": 2429,\n\t\"./application\": 3458,\n\t\"./application.js\": 3458,\n\t\"./class_age_requirement\": 8341,\n\t\"./class_age_requirement.js\": 8341,\n\t\"./collapse_sidebar\": 1271,\n\t\"./collapse_sidebar.js\": 1271,\n\t\"./compare_btn\": 1843,\n\t\"./compare_btn.js\": 1843,\n\t\"./confirm\": 7850,\n\t\"./confirm.js\": 7850,\n\t\"./delete_in_edit_profile\": 5146,\n\t\"./delete_in_edit_profile.js\": 5146,\n\t\"./delete_nested_new_user\": 1668,\n\t\"./delete_nested_new_user.js\": 1668,\n\t\"./direct_uploads\": 2345,\n\t\"./direct_uploads.js\": 2345,\n\t\"./disable_button\": 3538,\n\t\"./disable_button.js\": 3538,\n\t\"./disable_checkout_button\": 4888,\n\t\"./disable_checkout_button.js\": 4888,\n\t\"./disable_send_testimony\": 4295,\n\t\"./disable_send_testimony.js\": 4295,\n\t\"./ec_modal\": 4227,\n\t\"./ec_modal.js\": 4227,\n\t\"./edit_announcement_modal\": 397,\n\t\"./edit_announcement_modal.js\": 397,\n\t\"./experience_profile_pics\": 6519,\n\t\"./experience_profile_pics.js\": 6519,\n\t\"./forms\": 5719,\n\t\"./forms.js\": 5719,\n\t\"./hide_timeslots\": 7346,\n\t\"./hide_timeslots.js\": 7346,\n\t\"./lazysrc\": 5107,\n\t\"./lazysrc.js\": 5107,\n\t\"./manage_admin_teachers_checkbox\": 3430,\n\t\"./manage_admin_teachers_checkbox.js\": 3430,\n\t\"./manage_upload_gallery_pics\": 8940,\n\t\"./manage_upload_gallery_pics.js\": 8940,\n\t\"./modal_btn\": 7305,\n\t\"./modal_btn.js\": 7305,\n\t\"./nested_modal\": 6426,\n\t\"./nested_modal.js\": 6426,\n\t\"./preview_school_image\": 7257,\n\t\"./preview_school_image.js\": 7257,\n\t\"./preview_teacher_file\": 4779,\n\t\"./preview_teacher_file.js\": 4779,\n\t\"./preview_user_image\": 6306,\n\t\"./preview_user_image.js\": 6306,\n\t\"./scroller/activescroller\": 1947,\n\t\"./scroller/activescroller.js\": 1947,\n\t\"./search/Dropdown\": 5662,\n\t\"./search/Dropdown.js\": 5662,\n\t\"./search/autosearch\": 107,\n\t\"./search/autosearch.js\": 107,\n\t\"./search/search_announcement\": 6276,\n\t\"./search/search_announcement.js\": 6276,\n\t\"./search/search_category\": 8473,\n\t\"./search/search_category.js\": 8473,\n\t\"./search/search_course\": 6214,\n\t\"./search/search_course.js\": 6214,\n\t\"./search/search_educator\": 3756,\n\t\"./search/search_educator.js\": 3756,\n\t\"./search/util\": 1874,\n\t\"./search/util.js\": 1874,\n\t\"./star_rating\": 2690,\n\t\"./star_rating.js\": 2690,\n\t\"./stop_enrolment_modal\": 5849,\n\t\"./stop_enrolment_modal.js\": 5849,\n\t\"./student_profile_modal\": 3073,\n\t\"./student_profile_modal.js\": 3073,\n\t\"./testimonial_read_more\": 5406,\n\t\"./testimonial_read_more.js\": 5406,\n\t\"./tick_checkbox\": 2962,\n\t\"./tick_checkbox.js\": 2962,\n\t\"./timezone\": 5810,\n\t\"./timezone.js\": 5810,\n\t\"./toggle_btn\": 7609,\n\t\"./toggle_btn.js\": 7609,\n\t\"./toggle_course_public\": 8700,\n\t\"./toggle_course_public.js\": 8700,\n\t\"./trix-editor-overrides\": 3008,\n\t\"./trix-editor-overrides.js\": 3008,\n\t\"./turbo_native/bridge\": 7022,\n\t\"./turbo_native/bridge.js\": 7022,\n\t\"./upload-filename\": 3285,\n\t\"./upload-filename.js\": 3285,\n\t\"./upload_gallery_pics\": 8382,\n\t\"./upload_gallery_pics.js\": 8382,\n\t\"./uppy\": 968,\n\t\"./uppy.js\": 968,\n\t\"./venue_modal\": 6334,\n\t\"./venue_modal.js\": 6334,\n\t\"./venue_tag_limit\": 9212,\n\t\"./venue_tag_limit.js\": 9212\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 2144;","/* eslint no-console:0 */\n// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n//\n// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate\n// layout file, like app/views/layouts/application.html.erb\n\nimport 'core-js/stable'\nimport 'regenerator-runtime/runtime'\n\n// Rails functionality\nimport Rails from \"@rails/ujs\"\nimport { Turbo } from \"@hotwired/turbo-rails\"\n\n// Make accessible for Electron and Mobile adapters\nwindow.Rails = Rails\nwindow.Turbo = Turbo\n\nrequire(\"@rails/activestorage\").start()\nrequire(\"channels\")\nrequire(\"trix\")\nrequire(\"@rails/actiontext\")\n\n// Stimulus controllers\nimport \"controllers\"\n\n// Jumpstart Pro & other Functionality\nconst components = require.context(\"src\", true)\ncomponents.keys().forEach(components)\n\nimport LocalTime from \"local-time\"\nLocalTime.start()\n\n// ADD YOUR JAVACSRIPT HERE\n\n// ADD YOUR SCSS HERE\nimport \"stylesheets/application.scss\"\nimport \"@fortawesome/fontawesome-free/css/all.css\";\n\n// Start Rails UJS\nRails.start()\n","window.openAddCardDetail = btn => {\n const AddCardDetailComponent = btn.nextElementSibling\n AddCardDetailComponent.classList.remove('hidden')\n AddCardDetailComponent.classList.add('flex')\n}\n\n","document.addEventListener(\"turbo:load\", () => {\n // --------------------------------- New Emergency Contact -----------------------\n const announcementOverlay = document.querySelector('#a-overlay')\n const aBtn = document.querySelector('#a-btn')\n const closeAnnouncementMdl = document.querySelector('#close-a-modal')\n\n aBtn.addEventListener('click', () => {\n announcementOverlay.classList.remove('hidden')\n announcementOverlay.classList.add('flex')\n })\n\n closeAnnouncementMdl.addEventListener('click', () => {\n announcementOverlay.classList.add('hidden')\n announcementOverlay.classList.remove('flex')\n })\n});\n","document.addEventListener(\"turbo:load\", () => {\n const agerange = document.querySelector('.agerange')\n const minage = document.querySelector('.minage')\n const maxage = document.querySelector('.maxage')\n const agerequirement = document.querySelector('.agerequirement')\n\n agerequirement.onchange = (e) => {\n if (e.target.value == 'any_age') {\n agerange.classList.add(\"hidden\")\n }\n else if (e.target.value == 'age_range') {\n agerange.classList.remove(\"hidden\")\n maxage.classList.remove(\"hidden\") \n }\n else {\n agerange.classList.remove(\"hidden\")\n maxage.classList.add(\"hidden\")\n } \n }\n})\n","document.addEventListener(\"turbo:load\", function() {\n const sidebar = document.querySelector('.collapse-sidebar') || document.querySelector('.sidebar-small');\n const arrow = document.querySelector('.arrow-back')\n arrow.onclick = function () {\n if (arrow.innerHTML == 'navigate_before') {\n sidebar.classList.replace('collapse-sidebar', 'sidebar-small');\n arrow.innerHTML = 'chevron_right';\n //code to change width of message when closing sidebar\n const recipient = document.querySelectorAll(\".recipient\");\n if (recipient.length > 0) {\n for (let i = 0; i < recipient.length; i++) {\n recipient[i].classList.add(\"recipient-closed\");\n recipient[i].classList.remove(\"recipient\");\n recipient[i].nextSibling.classList.add(\"hover-action-recipient-closed\");\n recipient[i].nextSibling.classList.remove(\"hover-action-recipient\");\n }\n }\n const sender = document.querySelectorAll(\".sender\");\n if (sender.length > 0) {\n for (let i = 0; i < sender.length; i++) {\n sender[i].classList.add(\"sender-closed\");\n sender[i].classList.remove(\"sender\");\n // sender[i].nextSibling.classList.add(\"hover-action-sender-closed\");\n // sender[i].nextSibling.classList.remove(\"hover-action-sender\");\n\n }\n }\n } else {\n sidebar.classList.replace('sidebar-small', 'collapse-sidebar');\n arrow.innerHTML = 'navigate_before';\n //code to change width of message when opening sidebar\n const recipient = document.querySelectorAll(\".recipient-closed\");\n if (recipient.length > 0) {\n for (let i = 0; i < recipient.length; i++) {\n recipient[i].classList.remove(\"recipient-closed\");\n recipient[i].classList.add(\"recipient\");\n recipient[i].nextSibling.classList.remove(\"hover-action-recipient-closed\");\n recipient[i].nextSibling.classList.add(\"hover-action-recipient\");\n }\n }\n const sender = document.querySelectorAll(\".sender-closed\");\n if (sender.length > 0) {\n for (let i = 0; i < sender.length; i++) {\n sender[i].classList.remove(\"sender-closed\");\n sender[i].classList.add(\"sender\");\n }\n }\n } \n }\n})\n","document.addEventListener(\"turbo:load\", () => {\n const compare = document.getElementById('compareSubmit');\n const closeMdl = document.getElementById('close-modal');\n closeMdl.addEventListener('click', () => {\n compare.classList.add('hidden');\n compare.classList.remove('flex')\n })\n})\n\n//function for compare courses\nwindow.compareBanner = clicked_id => {\n let count = 0;\n const checkboxes = document.getElementsByName(\"courses_ids[]\");\n const currentId = \"selected-course-\" + clicked_id;\n const compare = document.getElementById('compareSubmit');\n compare.classList.remove('hidden');\n const compareCount = document.getElementById('compare-count');\n //count total number of checked checkboxes\n for (let i = 0; i < checkboxes.length; i++) {\n if (checkboxes[i].checked === true) {\n count++;\n checked(checkboxes[i]);\n }\n else { \n uncheck(checkboxes[i]);\n }\n }\n //uncheck a checkbox if there are already 3 checked checkboxes\n if (count > 3) {\n for (let i = 0; i < checkboxes.length; i++) {\n if (checkboxes[i].id === currentId && checkboxes[i].checked === true) {\n checkboxes[i].checked = false;\n uncheck(checkboxes[i]);\n count--;\n } \n }\n } \n compareCount.innerHTML = count + \" / 3 are selected\";\n}\n\n//function for compare educators\nwindow.compareBannerEducators = clicked_id => {\n let count = 0;\n const checkboxes = document.getElementsByName(\"profiles_ids[]\");\n const currentId = \"selected-profile-\" + clicked_id;\n const compare = document.getElementById('compareSubmit');\n compare.classList.remove('hidden');\n const compareCount = document.querySelector('.compare-count');\n //count total number of checked checkboxes\n for (var i = 0; i < checkboxes.length; i++) {\n if (checkboxes[i].checked === true) {\n count++;\n checked(checkboxes[i]);\n }\n else { \n uncheck(checkboxes[i]);\n }\n }\n //uncheck a checkbox if there are already 3 checked checkboxes\n if (count > 3) {\n for (var i = 0; i < checkboxes.length; i++) {\n if (checkboxes[i].id === currentId && checkboxes[i].checked === true) {\n checkboxes[i].checked = false;\n uncheck(checkboxes[i]);\n count--;\n }\n }\n } \n compareCount.innerHTML = count + \" / 3 are selected\";\n}\n\n//function to change frontend styling, turning the checkbox green with green border \nconst checked = checkbox => {\n const compareIcon = checkbox.closest('label').querySelector('.compare-checkbox');\n compareIcon.classList.remove('text-eerie-black-60');\n compareIcon.classList.add('text-emerald-100');\n compareIcon.innerHTML = \"check_box\";\n const compareContent = checkbox.closest('label').querySelector('.compare-content');\n compareContent.innerHTML = \"Selected\";\n const compareDiv = checkbox.closest('label').querySelector('.selected-content-compare');\n compareDiv.classList.add('border-emerald-100', 'border-2', 'bg-cyan-green');\n}\n\n//function to change frontend styling, returning the checkbox styling to default\nconst uncheck = checkbox => {\n const compareIcon = checkbox.closest('label').querySelector('.compare-checkbox');\n compareIcon.innerHTML = \"check_box_outline_blank\";\n compareIcon.classList.remove('text-emerald-100');\n compareIcon.classList.add('text-eerie-black-60');\n const compareContent = checkbox.closest('label').querySelector('.compare-content');\n compareContent.innerHTML = \"Select to compare\";\n const compareDiv = checkbox.closest('label').querySelector('.selected-content-compare');\n compareDiv.classList.remove('border-emerald-100', 'border-2', 'bg-cyan-green');\n}\n","// Custom TailwindCSS modals for confirm dialogs\n\nconst Rails = require(\"@rails/ujs\")\n\n// Cache a copy of the old Rails.confirm since we'll override it when the modal opens\nconst old_confirm = Rails.confirm;\n\n// Elements we want to listen to for data-confirm\nconst elements = ['a[data-confirm]', 'button[data-confirm]', 'input[type=submit][data-confirm]']\n\nconst createConfirmModal = (element) => {\n var id = 'confirm-modal-' + String(Math.random()).slice(2, -1);\n var confirm = element.dataset.confirm\n\n var content = `\n
\n
\n\n
\n

${confirm}

\n\n
\n \n \n
\n
\n
\n
\n `\n\n element.insertAdjacentHTML('afterend', content)\n\n var modal = element.nextElementSibling\n element.dataset.confirmModal = `#${id}`\n\n modal.addEventListener(\"keyup\", (event) => {\n if(event.key === \"Escape\") {\n event.preventDefault()\n element.removeAttribute(\"data-confirm-modal\")\n modal.remove()\n }\n })\n\n modal.querySelector(\"[data-behavior='cancel']\").addEventListener(\"click\", (event) => {\n event.preventDefault()\n element.removeAttribute(\"data-confirm-modal\")\n modal.remove()\n })\n modal.querySelector(\"[data-behavior='commit']\").addEventListener(\"click\", (event) => {\n event.preventDefault()\n\n // Allow the confirm to go through\n Rails.confirm = () => { return true }\n\n // Click the link again\n element.click()\n\n // Remove the confirm attribute and modal\n element.removeAttribute(\"data-confirm-modal\")\n Rails.confirm = old_confirm\n\n modal.remove()\n })\n\n modal.querySelector(\"[data-behavior='commit']\").focus()\n return modal\n}\n\n// Checks if confirm modal is open\nconst confirmModalOpen = (element) => {\n return !!element.dataset.confirmModal;\n}\n\nconst handleConfirm = (event) => {\n // If there is a modal open, let the second confirm click through\n if (confirmModalOpen(event.target)) {\n return true\n\n // First click, we need to spawn the modal\n } else {\n createConfirmModal(event.target)\n return false\n }\n}\n\n// When a Rails confirm event fires, we'll handle it\nRails.delegate(document, elements.join(', '), 'confirm', handleConfirm)\n","window.onDeleteInManageProfile = deleteIcon => {\n const label = deleteIcon.closest(\".deleteParentElement\");\n label.classList.add(\"hidden\");\n}\n","// javascript to set deleted nested users in admins and teachers to nil so that they will not be created\nwindow.deleteNestedNewUser = bin => {\n let textField = bin.closest(\".admins_teachers\").querySelector(\".form-group__form-control\")\n textField.value = '';\n}\n","document.addEventListener(\"turbo:load\", function() {\n // disable create button on load if there is no default value in select tag\n const checkout = document.getElementById(\"create-account\");\n const select = document.querySelector(\"select\");\n\n // if default value is empty\n if (select.selectedIndex == -1) {\n checkout.disabled = true;\n }\n})","document.addEventListener(\"turbo:load\", function() {\n // disable checkout button on load since no profiles will be selected\n const checkout = document.getElementById(\"checkout-button\");\n // selects all the modals\n const forms = document.querySelectorAll('.backdrop-filter')\n const student_profile_id = document.querySelectorAll(\"[id^='selected-user']\");\n const startDate = document.getElementById(\"start_date\");\n\n checkout.addEventListener('click', () => {\n // on checking out, destroy all the modals to prevent interference in form submission\n forms.forEach(e => e.remove())\n })\n const anychecked = (e) => e.checked;\n if (Array.from(student_profile_id).some(anychecked)) {\n checkout.disabled = false;\n }\n else {\n // when a student is checked, set checkout button to true\n checkout.disabled = true;\n }\n\n let selectStartDate = startDate.options[startDate.selectedIndex]\n let lastSelectedStartDate = localStorage.getItem('startDate')\n if (lastSelectedStartDate) {\n startDate.value = lastSelectedStartDate\n // prompt user before closing/refresh the page to remove localStorage\n window.onbeforeunload = function() {\n localStorage.removeItem(\"startDate\");\n return '';\n };\n }\n\n startDate.onchange = function () {\n lastSelectedStartDate = startDate.options[startDate.selectedIndex].value;\n localStorage.setItem('startDate', lastSelectedStartDate);\n }\n})\n\n//when a student profile/emergency contact is selected, function checks whether to disable the checkout button\nwindow.disable_button = clicked_contact => {\n var can_checkout = false;\n const checkout = document.getElementById(\"checkout-button\");\n const student_profiles = document.getElementsByName(\"student_profile_ids[]\");\n for (var i = 0; i < student_profiles.length; i++) {\n // as long as one profile is selected the button cannot be disabled\n if (student_profiles[i].checked === true) {\n const emergency_contacts = document.getElementsByClassName(\"emergency-contacts-enrolments\")\n for (var j = 0; j < emergency_contacts.length; j++) {\n if (emergency_contacts[j].checked === true) {\n const course_address = document.getElementsByClassName(\"course-address-enrolments\")\n for (var k = 0; k < course_address.length; k++) {\n if (course_address[k].checked === true) {\n can_checkout = true;\n checkout.disabled = false;\n break;\n } else {\n checkout.disabled = true;\n }\n }\n }\n }\n if (can_checkout) {\n break;\n }\n } else {\n checkout.disabled = true;\n }\n }\n}\n\nwindow.disabled_profile_alert = profile => {\n if (profile.classList.contains('disable-checkbox')) {\n alert(\"This student is currently enrolled to this lesson!\")\n }\n}\n","document.addEventListener(\"turbo:load\", function() {\n // obtain submit button and disable it\n const submit_button = document.getElementById(\"submit-testimony\");\n submit_button.disabled = true;\n})\n\nwindow.disable_testimony = click_star => {\n const submit_button = click_star.closest(\".stars\").querySelector(\"#submit-testimony\")\n submit_button.disabled = false;\n}\n","document.addEventListener(\"turbo:load\", () => {\n // --------------------------------- New Emergency Contact -----------------------\n const ecBtns = document.querySelectorAll('.ec-btn')\n const closeEcMdls = document.querySelectorAll('.close-ec-modal')\n\n ecBtns.forEach(btn => {\n btn.addEventListener('click', () => {\n let overlay = btn.closest(\".ec-container\").querySelector(\".ec-overlay\")\n overlay.classList.remove('hidden')\n overlay.classList.add('flex')\n })\n })\n\n closeEcMdls.forEach(mdl => {\n mdl.addEventListener('click', () => {\n let overlay = mdl.closest(\".ec-container\").querySelector(\".ec-overlay\")\n overlay.classList.add('hidden')\n overlay.classList.remove('flex')\n })\n })\n});\n","document.addEventListener(\"turbo:load\", () => {\n // --------------------------------- New Emergency Contact -----------------------\n const editAnnouncementOverlay = document.querySelector('#edit-announcement-overlay')\n const editAnnouncementBtn = document.querySelector('#edit-announcement-btn')\n const closeEditAnnouncementMdl = document.querySelector('#close-edit-announcement-modal')\n\n editAnnouncementBtn.addEventListener('click', () => {\n editAnnouncementOverlay.classList.remove('hidden')\n editAnnouncementOverlay.classList.add('flex')\n })\n\n closeEditAnnouncementMdl.addEventListener('click', () => {\n editAnnouncementOverlay.classList.add('hidden')\n editAnnouncementOverlay.classList.remove('flex')\n })\n});\n","window.displayFile = input => {\n if (fileValidation()){\n console.log(\"checking?\")\n const label = input.nextElementSibling;\n const infoArea = label.nextElementSibling;\n infoArea.innerHTML = input.files[0].name + ' is uploaded';\n infoArea.classList.remove(\"hidden\");\n }\n}\n\nwindow.displayFileFirst = input => {\n if (fileValidation()){\n const label = input.closest(\".wrapper\").nextElementSibling;\n const infoArea = label.nextElementSibling;\n infoArea.innerHTML = input.files[0].name + ' is uploaded';\n infoArea.classList.remove(\"hidden\");\n }\n}\n\n// similar to displayfilefirst but added background for files uploaded, used in manage (awards and certs)\nwindow.manageDisplayFileFirst = input => {\n const fileField = input.closest(\".wrapper\").firstElementChild;\n if (fileValidation(fileField)){\n console.log(\"ENTERED\")\n const label = input.closest(\".wrapper\").nextElementSibling;\n const infoArea = label.querySelector(\".file-upload-filename\");\n infoArea.innerHTML = input.files[0].name;\n infoArea.classList.remove(\"hidden\");\n }\n}\n\nwindow.displayLogo = input => {\n const label = input.nextElementSibling;\n const infoArea = label.nextElementSibling;\n infoArea.innerHTML = input.files[0].name + ' is uploaded';\n const output = input.closest(\".ancestor\").querySelector(\".teacher-card-pic\");\n\n const reader = new FileReader();\n reader.addEventListener('load', event => {\n output.src = event.target.result;\n });\n reader.readAsDataURL(input.files[0]);\n}\n\nfunction fileValidation(fileField) {\n var filePath = fileField.value;\n\n\n // Allowing file type\n var allowedExtensions =\n /(\\.jpg|\\.jpeg|\\.png|\\.pdf)$/i;\n\n if (!allowedExtensions.exec(filePath)) {\n alert('Invalid file type. Only jpeg or png files are supported.');\n fileField.value = '';\n return false;\n }\n\n const maxFileSize = 1024 * 1024 * 2// 1024 * 1024 = 1MB\n for (let i = 0; i < fileField.files.length; i++) {\n if (fileField.files[i].size > maxFileSize) {\n // event.preventDefault()\n alert(\"Invalid file size. Only files up to size 2MB are supported.\");\n fileField.value = '';\n return false;\n }\n }\n return true;\n}\n","document.addEventListener(\"turbo:load\", function() {\n const timeslotContainer = document.getElementById('timeslot-container');\n const allScheduleBtn = document.getElementById('all-schedules');\n allScheduleBtn.onclick = function () {\n if (allScheduleBtn.checked === true) {\n timeslotContainer.classList.add('hidden');\n } else {\n timeslotContainer.classList.remove('hidden');\n }\n }\n})\n","// Lazily loads elements with a data-src attribute.\n// This is useful for speeding up initial page rendering.\n//\n// \n// \n\ndocument.addEventListener(\"turbo:load\", () => {\n document.querySelectorAll('[data-src]').forEach((element) =>{\n element.setAttribute('src', element.getAttribute('data-src'))\n })\n})\n","// used in manage/users page to add styling to the checkbox\nwindow.manage_checkbox_admin = checkbox => {\n console.log(document.querySelectorAll(\"[id^='admin_']\"))\n if (checkbox.innerHTML == \"check_box\") {\n // if checkbox is checked, means user wants to remove admin role\n // need to check if user has at least school teacher role before unchecking\n let teacher_checkbox = checkbox.closest(\".admin-checkbox\").nextElementSibling.querySelector(\".teacher-role-checkbox\")\n if (teacher_checkbox.innerHTML == \"check_box\") {\n // TEMPORARY: disallow unchecking of school_admin\n alert(\"Please contact support to remove admin role.\");\n // to check if document.querySelectorAll(\".admin-checkbox\").length < 0\n // or prevent first school_admin from deselect forever document.querySelectorAll(\"[id^='admin_']\")[0]\n // user already has teacher role, safe to uncheck\n // checkbox.classList.remove(\"text-emerald-100\");\n // checkbox.innerHTML = \"check_box_outline_blank\";\n } else {\n // user does not have teacher role, admin role will not be removed, show error msg\n alert(\"A user must at least have one role.\");\n // using alert for now, will change to error modal pop up once design is done, code below is for the pop up\n // checkbox.closest(\".admin-and-teachers\").querySelector('.role-error-message').classList.remove(\"hidden\"); \n\n }\n } else {\n // if checkbox was checked, means user wants to add admin role\n checkbox.classList.add(\"text-emerald-100\");\n checkbox.innerHTML = \"check_box\";\n }\n}\n\nwindow.manage_checkbox_teacher = checkbox => {\n if (checkbox.innerHTML == \"check_box\") {\n // if checkbox is checked, means user wants to remove teacher role\n // need to check if user at least has school admin role before unchecking\n let admin_checkbox = checkbox.closest(\".teacher-checkbox\").previousElementSibling.querySelector(\".admin-role-checkbox\")\n if (admin_checkbox.innerHTML == \"check_box\") {\n // user already has admin role, safe to uncheck\n checkbox.classList.remove(\"text-emerald-100\");\n checkbox.innerHTML = \"check_box_outline_blank\";\n } else {\n // user does not have admin role, teacher role will not be removed, show error msg\n alert(\"A user must at least have one role.\");\n // using alert for now, will change to error modal pop up once design is done, code below is for the pop up\n // checkbox.closest(\".admin-and-teachers\").querySelector('.role-error-message').classList.remove(\"hidden\");\n }\n } else {\n // if checkbox was checked, means user wants to add teacher role\n checkbox.classList.add(\"text-emerald-100\");\n checkbox.innerHTML = \"check_box\";\n }\n}\n\n// used to close warning message\nwindow.closeModal = close => {\n close.closest('.role-error-message').classList.add(\"hidden\")\n}\n","// used in management, when school admin upload pics in gallery it will appear\ndocument.addEventListener(\"turbo:load\", () => {\n const input = document.getElementById( 'user_accounts_attributes_0_school_attributes_photos' ) ?? document.getElementById( 'course_photos' ) ?? document.getElementById ( 'user_accounts_attributes_0_teacher_profile_attributes_photos' );\n let output = document.getElementById('upload-gallery-pics');\n input.addEventListener( 'change', showFileName );\n function showFileName( event ) {\n let input = event.srcElement;\n let files = input.files;\n output.innerHTML = \"\";\n for (var i = 0; i < files.length; i++) {\n let newImage = document.createElement('img');\n newImage.className = 'h-24 px-2 py-2';\n newImage.src = URL.createObjectURL(files[i]);\n let wrapperClass = document.createElement('div');\n wrapperClass.className = 'col-span-1';\n wrapperClass.appendChild(newImage);\n output.appendChild(wrapperClass)\n }\n }\n})\n","document.addEventListener(\"turbo:load\", () => {\n // --------------------------------- New Question ------------------------------\n const overlay = document.querySelector('#overlay')\n const questBtn = document.querySelector('#question-btn')\n const closeMdl = document.querySelector('#close-modal')\n\n questBtn.addEventListener('click', () => {\n overlay.classList.remove('hidden')\n overlay.classList.add('flex')\n })\n\n closeMdl.addEventListener('click', () => {\n overlay.classList.add('hidden')\n overlay.classList.remove('flex')\n })\n})\n","document.addEventListener(\"turbo:load\", () => {\n // For nested venues in the course weekly schedules page\n\n // Following code is for the initial one venue modal on page load\n const parentNests = document.querySelectorAll('.parent-nest');\n const addBtn = document.querySelector('.add-location');\n parentNests.forEach((parentNest) => {\n const overlay = parentNest.querySelector('.overlay');\n const modalBtn = parentNest.querySelector('.modal-btn');\n const closeMdl = parentNest.querySelector('.close-modal');\n const deleteMdl = parentNest.querySelector('.delete-modal');\n const saveMdl = parentNest.querySelector('.save-modal');\n const venue = parentNest.querySelector('.venue');\n\n modalBtn.addEventListener('click', () => {\n overlay.classList.remove('hidden');\n overlay.classList.add('flex');\n })\n\n closeMdl.addEventListener('click', () => {\n overlay.classList.add('hidden');\n overlay.classList.remove('flex');\n })\n\n deleteMdl.addEventListener('click', () => {\n overlay.querySelectorAll(\".address-fields\").forEach((field) => {\n field.value = \"\";\n })\n venue.innerHTML = \"\"\n overlay.classList.add('hidden');\n overlay.classList.remove('flex');\n })\n\n saveMdl.addEventListener('click', () => {\n let address = [...parentNest.querySelectorAll(\".address-fields\")].map(x=>x.value);\n let regions = [...parentNest.querySelectorAll(\".region-fields\")].filter(word => word.checked).map(x=>x.getAttribute('data-region'));\n parentNest.querySelector(\".venue\").innerHTML = regions.concat(address).filter(item => item).join(\", \");\n if (address[0] || !parentNest.querySelector(\".address-fields\").required) { // line 1 is not empty\n overlay.classList.add('hidden');\n overlay.classList.remove('flex');\n }\n })\n\n // Following code is for the new venue modals added\n addBtn.addEventListener('click', () => {\n setTimeout(function() {\n let newNested = addBtn.parentElement.previousSibling;\n let newOverlay = newNested.querySelector('.overlay');\n let newModalBtn = newNested.querySelector('.modal-btn');\n let newCloseMdl = newNested.querySelector('.close-modal');\n let newDeleteMdl = newNested.querySelector('.delete-modal');\n let newSaveMdl = newNested.querySelector('.save-modal');\n newModalBtn.addEventListener('click', () => {\n newOverlay.classList.remove('hidden');\n newOverlay.classList.add('flex');\n })\n\n newCloseMdl.addEventListener('click', () => {\n newOverlay.classList.add('hidden');\n newOverlay.classList.remove('flex');\n })\n\n newDeleteMdl.addEventListener('click', () => {\n newNested.querySelectorAll(\".address-fields\").forEach((field) => {\n field.value = \"\";\n })\n newNested.querySelector(\".venue\").innerHTML = \"\"\n newOverlay.classList.add('hidden');\n newOverlay.classList.remove('flex');\n })\n\n newSaveMdl.addEventListener('click', () => {\n let address = [...newNested.querySelectorAll(\".address-fields\")].map(x=>x.value);\n let regions = [...newNested.querySelectorAll(\".region-fields\")].filter(word => word.checked).map(x=>x.getAttribute('data-region'));\n newNested.querySelector(\".venue\").innerHTML = regions.concat(address).filter(item => item).join(\", \");\n if (address[0] || !parentNest.querySelector(\".address-fields\").required) { // line 1 is not empty\n newOverlay.classList.add('hidden');\n newOverlay.classList.remove('flex');\n }\n })\n }, 500);\n })\n });\n})\n","document.addEventListener(\"turbo:load\", () => {\n const output = document.getElementById(\"profile-pic\");\n document.querySelector('#user_accounts_attributes_0_school_attributes_avatar').addEventListener('change', (event) => {\n let file = event.target.files[0];\n const reader = new FileReader();\n reader.addEventListener('load', event => {\n output.src = event.target.result;\n });\n reader.readAsDataURL(file);\n });\n});\n","document.addEventListener(\"turbo:load\", () => {\n const output = document.getElementById(\"profile-pic\");\n document.querySelector('#user_accounts_attributes_0_teacher_profile_attributes_avatar').addEventListener('change', (event) => {\n let file = event.target.files[0];\n const reader = new FileReader();\n reader.addEventListener('load', event => {\n output.src = event.target.result;\n });\n reader.readAsDataURL(file);\n });\n});\n","// used in manage, to display a parent's avatar\ndocument.addEventListener(\"turbo:load\", () => {\n const output = document.getElementById(\"profile-pic\");\n document.querySelector('#user_avatar').addEventListener('change', (event) => {\n let file = event.target.files[0];\n const reader = new FileReader();\n reader.addEventListener('load', event => {\n output.src = event.target.result;\n });\n reader.readAsDataURL(file);\n });\n});\n","window.addEventListener(\"scroll\", event => {\n let mainNavLinks = document.querySelectorAll(\"a.side-anchor\");\n let fromTop = window.scrollY + 5;\n \n mainNavLinks.forEach(link => {\n let section = document.querySelector(link.hash);\n if (\n section.offsetTop <= fromTop &&\n section.offsetTop + section.offsetHeight > fromTop\n ) {\n link.parentElement.classList.add(\"current\");\n } else {\n link.parentElement.classList.remove(\"current\");\n }\n });\n});\n","// This file is for Algolia InstantSearch Dropdown option together with util.js\n\nimport { panel } from 'instantsearch.js/es/widgets';\n\nimport {\n hasClassName,\n addClassName,\n removeClassName,\n capitalize,\n} from './util.js';\n\nconst CLASS_OPENED = 'ais-Dropdown--opened';\nconst CLASS_BUTTON = 'ais-Dropdown-button';\nconst CLASS_CLOSE_BUTTON = 'ais-Dropdown-close';\n\nconst cx = (...args) => args.filter(Boolean).join(' ');\n\nexport function createDropdown(\n baseWidget,\n {\n cssClasses: userCssClasses = {},\n buttonText,\n buttonClassName,\n closeOnChange,\n } = {}\n) {\n // Merge class names with the default ones and the ones from user\n const cssClasses = {\n root: cx('ais-Dropdown', userCssClasses.root),\n button: cx(CLASS_BUTTON, userCssClasses.button),\n buttonRefined: cx(\n 'ais-Dropdown-button--refined',\n userCssClasses.buttonRefined\n ),\n closeButton: cx(CLASS_CLOSE_BUTTON, userCssClasses.closeButton),\n };\n const makeWidget = panel({\n cssClasses,\n templates: {\n header: (options) => {\n const { widgetParams } = options;\n\n let text;\n if (typeof buttonText === 'string') {\n text = buttonText;\n } else if (typeof buttonText === 'function') {\n text = buttonText(options);\n } else {\n // See if the widget has `attribute`\n const attribute =\n widgetParams && widgetParams.attribute\n ? capitalize(widgetParams.attribute)\n : '';\n // Get the number of refinements if the widget has `items`\n const nbRefinements = (options.items || []).filter(\n (item) => item.isRefined\n ).length;\n // Format the button text\n text =\n nbRefinements > 0 ? `${attribute} (${nbRefinements})` : attribute;\n }\n\n const classNames = [cssClasses.button];\n if (typeof buttonClassName === 'string') {\n classNames.push(buttonClassName);\n } else if (typeof buttonClassName === 'function') {\n classNames.push(buttonClassName(options));\n } else if ((options.items || []).find((item) => item.isRefined)) {\n classNames.push(cssClasses.buttonRefined);\n }\n\n return `\n \n `;\n },\n footer: ``,\n },\n })(baseWidget);\n\n return (widgetParams) => {\n const widget = makeWidget(widgetParams);\n let cleanUp;\n let state = {};\n\n // Return a modified version of the widget\n return {\n ...widget,\n init: (options) => {\n const rootElem = document\n .querySelector(widgetParams.container)\n .querySelector('.ais-Panel');\n const headerElem = rootElem.querySelector('.ais-Panel-header');\n const closeButtonElem = rootElem.querySelector(\n '.' + CLASS_CLOSE_BUTTON\n );\n\n const open = () => {\n addClassName(rootElem, CLASS_OPENED);\n // This 'click' event is still being propagated,\n // so we add this event listener in the next tick.\n // Otherwise, it will immediately close the panel again.\n setTimeout(() => {\n state.windowClickListener = (event) => {\n // Close if the outside is clicked\n if (!rootElem.contains(event.target)) {\n close();\n }\n };\n // Add an event listener when the panel is opened\n window.addEventListener('click', state.windowClickListener);\n }, 0);\n };\n const close = () => {\n removeClassName(rootElem, CLASS_OPENED);\n // Remove the event listener when the panel is closed\n window.removeEventListener('click', state.windowClickListener);\n delete state.windowClickListener;\n };\n const isOpened = () => hasClassName(rootElem, CLASS_OPENED);\n const toggle = () => {\n if (isOpened()) {\n close();\n } else {\n open();\n }\n };\n\n // Add a click listener to the header (button)\n const buttonListener = (event) => {\n if (!event.target.matches('.' + CLASS_BUTTON)) {\n return;\n }\n toggle();\n };\n headerElem.addEventListener('click', buttonListener);\n\n closeButtonElem.addEventListener('click', close);\n\n // Setup a clean-up function, which will be called in `dispose`.\n cleanUp = () => {\n headerElem.removeEventListener('click', buttonListener);\n if (state.windowClickListener) {\n window.removeEventListener('click', state.windowClickListener);\n }\n };\n\n // Whenever uiState changes, it closes the panel.\n options.instantSearchInstance.use(() => ({\n subscribe() {},\n unsubscribe() {},\n onStateChange() {\n if (\n isOpened() &&\n (closeOnChange === true ||\n (typeof closeOnChange === 'function' &&\n closeOnChange() === true))\n ) {\n close();\n }\n },\n }));\n return widget.init.call(widget, options);\n },\n dispose: (options) => {\n if (typeof cleanUp === 'function') {\n cleanUp();\n }\n return widget.dispose.call(widget, options);\n },\n };\n };\n}\n","// autocomplete\nimport algoliasearch from 'algoliasearch/lite';\nimport { autocomplete, getAlgoliaResults } from '@algolia/autocomplete-js';\nimport '@algolia/autocomplete-theme-classic';\n\ndocument.addEventListener(\"turbo:before-visit\", function() {\n // to prevent duplicate rendering of search bar\n if (window.location.pathname == \"/\") {\n Turbo.clearCache();\n };\n});\n\ndocument.addEventListener(\"turbo:load\", function() {\n const searchClient = algoliasearch(process.env.ALGOLIASEARCH_APPLICATION_ID, process.env.ALGOLIASEARCH_API_KEY_SEARCH);\n autocomplete({\n container: '#autocomplete',\n detachedMediaQuery: 'none',\n openOnFocus: false, // dropdown appears once search bar clicked\n placeholder: 'What class are you looking for?',\n getSources({ query }) {\n return [\n // return timeslots\n {\n sourceId: 'courses',\n getItems() {\n return getAlgoliaResults({\n searchClient,\n queries: [\n {\n indexName: 'Course',\n query,\n params: {\n hitsPerPage: 5,\n },\n }\n ]\n });\n },\n getItemInputValue({ item }) {\n return item.name;\n },\n getItemUrl({ item }) {\n return \"/marketplace/courses?Course[query]=\" + item.name;\n },\n templates: {\n item({ item, createElement }) {\n // dropdown items are links by default\n return createElement('div', {\n dangerouslySetInnerHTML: {\n __html: `
${item.name}
`,\n },\n });\n },\n },\n }\n ];\n },\n });\n // redirect to search courses results after pressing enter or clicking the button\n document.querySelector(\"#autocomplete form\").addEventListener(\"submit\", function(e) {\n Turbo.visit(\"/marketplace/courses?Course[query]=\" + document.querySelector(\"#autocomplete input\").value);\n });\n});\n","import algoliasearch from 'algoliasearch/lite';\nimport instantsearch from 'instantsearch.js';\nimport { searchBox, hits, index } from 'instantsearch.js/es/widgets';\n\ndocument.addEventListener(\"turbo:load\", function() {\n const searchClient = algoliasearch(process.env.ALGOLIASEARCH_APPLICATION_ID, process.env.ALGOLIASEARCH_API_KEY_SEARCH);\n const search_announcement = instantsearch ({\n indexName: 'Announcement',\n searchClient,\n });\n\n search_announcement.addWidgets([\n searchBox({\n container: \"#search_announcement\",\n placeholder: \"Any particular name?\",\n }),\n hits({\n container: \"#hits_announcements\",\n templates: {\n empty: '
No matching school found.
',\n item:\n `
\n
TO: Swimming Basic Lesson, Monday 1230pm
\n
What is movement 2030?
\n
s a dead rat for attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? i meant to do that now i shall wash myself intently and destroy house in 5 seconds pretend
\n
Announced by Jonathan Lau, on 09/19/21 3:47pm
\n
\n
\n
TO: Swimming Basic Lesson, Monday 1230pm
\n
Hello world
\n
Vel deserunt maiores
\n
Announced by Jonathan Lau, on 09/18/21 12:05pm
\n
\n
\n
TO: Swimming Basic Lesson, Monday 1230pm
\n
Paloe tech nerdists
\n
Eum deserunt enim qu
\n
Announced by Jonathan Lau, on 09/18/21 12:38pm
\n
`\n },\n }),\n ]);\n search_announcement.start();\n});\n\n","import { createDropdown } from '../../src/search/Dropdown';\nimport algoliasearch from 'algoliasearch/lite';\nimport instantsearch from 'instantsearch.js';\nimport { searchBox, hits, refinementList, rangeInput, numericMenu, clearRefinements, configure, sortBy, pagination, stats} from 'instantsearch.js/es/widgets';\n\n\ndocument.addEventListener(\"turbo:load\", function () {\n const searchClient = algoliasearch(process.env.ALGOLIASEARCH_APPLICATION_ID, process.env.ALGOLIASEARCH_API_KEY_SEARCH);\n const search = instantsearch({\n indexName: 'Course',\n searchClient,\n routing: false,\n\n });\n \n // 1. Create dropdown for category, as \"subjects on frontend\"\n const refinementListDropdown_category = createDropdown(\n refinementList,\n {\n buttonText: 'Subjects',\n cssClasses: { root: 'subjects_dropdown_css' },\n }\n );\n // 2. Create dropdown for location\n const refinementListDropdown_location = createDropdown(\n refinementList,\n {\n buttonText: 'Locations',\n cssClasses: { root: 'location_dropdown_css' },\n }\n );\n // 3. Create dropdown for price/session\n const rangeInputDropdown_price_session = createDropdown(\n rangeInput,\n {\n buttonText: 'Price / session',\n precision: 2,\n }\n );\n // 4. Create dropdown for ratings\n const numericMenuDropdown_ratings = createDropdown(\n numericMenu,\n {\n buttonText: 'Ratings',\n cssClasses: { root: 'ratings_dropdown_css' },\n }\n );\n // 5. Create dropdown for Timings\n const refinementListDropdown_timings = createDropdown(\n refinementList,\n {\n buttonText: 'Timings',\n cssClasses: { root: 'timings_dropdown_css' },\n }\n );\n // 6. Create dropdown for day_of_week, as \"Days\" on frontend\n const refinementListDropdown_day_of_week = createDropdown(\n refinementList,\n {\n buttonText: 'Day',\n cssClasses: { root: 'day_dropdown_css' },\n }\n );\n\n const filterValues = document.getElementById('filters').dataset;\n // Instantiate the custom widget\n search.addWidgets([\n configure({\n filters: filterValues.category ? `conditioned_category:'${filterValues.category}'` : undefined,\n hitsPerPage: 25\n }),\n searchBox({\n container: '#searchbox_category',\n }),\n hits({\n container: \"#hits_category\",\n templates: {\n empty: '
No matching course found.
',\n // all variables here with {{}} are attributes from algolia, can be found under Course model file for Algolia Search\n item:function(data) {\n if (data.published == true && data.educator_name) {\n return `\n
\n
\n
\n \n
\n
\n
\n
${data.conditioned_category} Lesson
\n \n

${data.name}

\n
\n
${data.price == null ? \"Enquire for price\" : \"$\" + data.price + \"/\" + data.interval}
\n

By ${data.educator_name}

\n
\n
\n
\n
${data.number_of_testimonials > 0 ? data.rating : 5}
\n \n
(${data.number_of_testimonials})
\n
\n
${data.multiple_venues ? \"Multiple Locations\" : data.display_venue}
\n Whatsapp\n
\n
\n
\n
`\n }\n }\n }\n }),\n\n pagination({\n container: '#pagination_container',\n scrollTo: '#hits_category', // Optional: Scroll to the hits container after changing page\n showFirst: false, // Optional: Hide first page button\n showLast: false, // Optional: Hide last page button\n labels: {\n previous: '‹ Previous',\n next: 'Next ›',\n },\n cssClasses: {\n root: 'pagination',\n item: 'pagination-item',\n link: 'pagination-link',\n active: 'pagination-link-active',\n disabled: 'pagination-link-disabled',\n },\n }),\n\n stats({\n container: '#stats_container',\n templates: {\n text: function(data) {\n const hitsText = `There ${data.nbHits > 1 || data.nbHits ===0 ? 'are' : 'is'} ${data.nbHits} ${filterValues.category} class${data.nbHits > 1 ? 'es' : ''}`;\n const locationText = filterValues.location ? ` in ${filterValues.location}` : '';\n return `${hitsText}${locationText}.`;\n },\n },\n }),\n\n \n refinementListDropdown_category({\n container: '#dropdown_category_category',\n attribute: \"conditioned_category\",\n searchable: true,\n }),\n refinementListDropdown_location({\n container: '#dropdown_category_location',\n attribute: \"locations.region\",\n searchable: true,\n showMore: true,\n sortBy: ['name:asc'],\n }),\n rangeInputDropdown_price_session({\n container: '#dropdown_category_price_session',\n attribute: \"price_session.amount\",\n }),\n numericMenuDropdown_ratings({\n container: '#dropdown_category_ratings',\n attribute: \"rating\",\n items: [\n { start: 5, label: '5.0' },\n { start: 4.0, end: 5.0, label: '4.0 and above' },\n { start: 3.0, end: 5.0, label: '3.0 and above' },\n { start: 2.0, end: 5.0, label: '2.0 and above' },\n { start: 1.0, end: 5.0, label: '1.0 and above' },\n ],\n }),\n refinementListDropdown_timings({\n container: '#dropdown_category_timing',\n attribute: \"timing.time_of_day\",\n }),\n refinementListDropdown_day_of_week({\n container: '#dropdown_category_day_of_week',\n attribute: \"timeslots.day_of_week\",\n searchable: false,\n })\n ]);\n\n // set the location query on page loads and make it able to be search afterwards\n let initialRender = true;\n let userClearedInput = false;\n const handleInput = () => {\n userClearedInput = true;\n search.off('input', handleInput);\n };\n const handleBlur = () => {\n if (!userClearedInput && searchBox.value.trim() === '') {\n searchBox.value = `${filterValues.location}`;\n }\n };\n const handleRender = () => {\n const searchBox = document.querySelector('#searchbox_category input');\n if (initialRender && searchBox) {\n console.log('Setting value:', `${filterValues.location}`);\n searchBox.value = `${filterValues.location}`;\n initialRender = false;\n\n // Add 'input' and 'blur' event listeners after setting initial value\n search.on('input', handleInput);\n searchBox.addEventListener('blur', handleBlur);\n\n // Trigger Algolia search after setting the initial value\n searchBox.dispatchEvent(new Event('input'));\n }\n };\n search.on('render', handleRender);\n search.start();\n});\n","import { createDropdown } from '../../src/search/Dropdown';\nimport algoliasearch from 'algoliasearch/lite';\nimport instantsearch from 'instantsearch.js';\nimport { searchBox, hits, refinementList, rangeInput , numericMenu, currentRefinements , clearRefinements, pagination, configure, sortBy, geoSearch } from 'instantsearch.js/es/widgets';\nimport { connectInfiniteHits } from 'instantsearch.js/es/connectors';\nimport { connectGeoSearch } from 'instantsearch.js/es/connectors';\nimport { MarkerClusterer } from \"@googlemaps/markerclusterer\";\nimport { Loader } from \"@googlemaps/js-api-loader\"\n\ndocument.addEventListener(\"turbo:load\", function() {\n const searchClient = algoliasearch(process.env.ALGOLIASEARCH_APPLICATION_ID, process.env.ALGOLIASEARCH_API_KEY_SEARCH);\n const search = instantsearch({\n indexName: 'Course',\n searchClient,\n routing: true,\n });\n const currentURL = window.location.origin;\n\n const loader = new Loader({\n apiKey: process.env.GOOGLE_MAPS_API_KEY,\n version: \"weekly\",\n });\n let markers = [];\n let isSecondRendering = false;\n let markerCluster = null;\n\n const renderGeoSearch = (renderOptions, isFirstRendering) => {\n const {\n items,\n currentRefinement,\n refine,\n clearMapRefinement,\n widgetParams,\n } = renderOptions;\n\n const {\n initialZoom,\n initialPosition,\n container,\n } = widgetParams;\n\n if (isFirstRendering) {\n loader.load().then(() => {\n const storedZoom = localStorage.getItem('mapZoom');\n const storedPosition = localStorage.getItem('mapPosition');\n const defaultZoom = 11;\n const defaultCenter = { lat: 1.3521, lng: 103.8198 };\n const map = new google.maps.Map(document.getElementById(\"gmaps\"), {\n zoom: storedZoom ? parseInt(storedZoom) : defaultZoom,\n center: storedPosition ? JSON.parse(storedPosition) : defaultCenter,\n styles: [{\n featureType: \"poi\",\n stylers: [{ visibility: \"off\" }]\n }]\n });\n google.maps.event.addListener(map, 'bounds_changed', function() {\n localStorage.setItem('mapZoom', map.getZoom());\n localStorage.setItem('mapPosition', JSON.stringify(map.getCenter()));\n var bounds = map.getBounds();\n var ne = bounds.getNorthEast();\n var sw = bounds.getSouthWest();\n refine({\n northEast: { lat: ne.lat(), lng: ne.lng() },\n southWest: { lat: sw.lat(), lng: sw.lng() },\n });\n //do whatever you want with those bounds\n });\n window.map = map;\n });\n };\n\n if (!isFirstRendering) {\n loader.load().then(() => {\n const infoWindow = new google.maps.InfoWindow();\n markers = [];\n markers = items.map((data) => {\n const marker = new google.maps.Marker({\n position: data._geoloc,\n title: data.name,\n });\n marker.addListener(\"click\", () => {\n infoWindow.close();\n infoWindow.setContent(\n `
\n
\n
${data.conditioned_category} Lesson
\n \n
${data.name}
\n
\n
${data.multiple_venues ? \"Multiple Locations\" : data.display_venue}
\n
\n
${data.price == null ? \"Enquire for price\" : \"$\" + data.price + \"/\" + data.interval}
\n
\n
${data.number_of_testimonials > 0 ? data.rating : 5}
\n
star
\n
(${data.number_of_testimonials})
\n
\n
\n
\n
`\n );\n infoWindow.setOptions({disableAutoPan: true});\n infoWindow.open(map, marker);\n });\n return marker;\n });\n if (isSecondRendering) {\n markerCluster.clearMarkers();\n }\n // Add a marker clusterer to manage the markers.\n markerCluster = new MarkerClusterer({ markers, map, onClusterClick});\n function onClusterClick(cluster) {\n map.setCenter(cluster.latLng);\n map.setZoom(map.getZoom() + 4);\n let results = document.getElementById(\"hits_course\");\n let btn = document.getElementById(\"toggle_btn\");\n if (btn) {\n if (results.classList.contains(\"hidden\")) {\n results.classList.remove(\"hidden\");\n btn.innerHTML = \"Map\";\n } else {\n results.classList.add(\"hidden\");\n btn.innerHTML = \"List\";\n }\n }\n }\n isSecondRendering = true;\n });\n };\n }\n\n // Create the custom widget\n const customGeoSearch = connectGeoSearch(\n renderGeoSearch\n );\n\n // 1. Create dropdown for category, as \"subjects on frontend\"\n const refinementListDropdown_category = createDropdown(\n refinementList,\n {\n buttonText: 'Subjects',\n cssClasses: { root: 'subjects_dropdown_css' },\n }\n );\n // 2. Create dropdown for location\n const refinementListDropdown_location = createDropdown(\n refinementList,\n {\n buttonText: 'Locations',\n cssClasses: { root: 'location_dropdown_css' },\n }\n );\n // 3. Create dropdown for price/session\n const rangeInputDropdown_price_session = createDropdown(\n rangeInput,\n {\n buttonText: 'Price / session',\n precision: 2,\n }\n );\n // 4. Create dropdown for ratings\n const numericMenuDropdown_ratings = createDropdown(\n numericMenu,\n {\n buttonText: 'Ratings',\n cssClasses: { root: 'ratings_dropdown_css' },\n }\n );\n // 5. Create dropdown for Timings\n const refinementListDropdown_timings = createDropdown(\n refinementList,\n {\n buttonText: 'Timings',\n cssClasses: { root: 'timings_dropdown_css' },\n }\n );\n // 6. Create dropdown for day_of_week, as \"Days\" on frontend\n const refinementListDropdown_day_of_week = createDropdown(\n refinementList,\n {\n buttonText: 'Day',\n cssClasses: { root: 'day_dropdown_css' },\n }\n );\n\n // Instantiate the custom widget\n search.addWidgets([\n configure({\n hitsPerPage: 500,\n }),\n searchBox({\n container: '#searchbox_course',\n }),\n hits({\n container: \"#hits_course\",\n templates: {\n empty: '
No matching course found.
',\n // all variables here with {{}} are attributes from algolia, can be found under Course model file for Algolia Search\n item:function(data) {\n if (data.published == true && data.educator_name) {\n return `\n
\n
\n
\n \n
\n
\n
\n
${data.conditioned_category} Lesson
\n \n

${data.name}

\n
\n
${data.price == null ? \"Enquire for price\" : \"$\" + data.price + \"/\" + data.interval}
\n

By ${data.educator_name}

\n
\n
\n
\n
${data.number_of_testimonials > 0 ? data.rating : 5}
\n \n
(${data.number_of_testimonials})
\n
\n
${data.multiple_venues ? \"Multiple Locations\" : data.display_venue}
\n Whatsapp\n
\n
\n
\n
`\n }\n }\n }\n }),\n customGeoSearch({\n container: document.getElementById(\"gmaps\"),\n initialZoom: 10,\n initialPosition: {\n lat: 1.3521,\n lng: 103.8198,\n },\n }),\n refinementListDropdown_category({\n container: '#dropdown_course_category',\n attribute: \"conditioned_category\",\n searchable: true,\n }),\n refinementListDropdown_location({\n container: '#dropdown_course_location',\n attribute: \"locations.region\",\n searchable: true,\n showMore: true,\n sortBy: ['name:asc'],\n }),\n rangeInputDropdown_price_session({\n container: '#dropdown_course_price_session',\n attribute: \"price_session.amount\",\n }),\n numericMenuDropdown_ratings({\n container: '#dropdown_course_ratings',\n attribute: \"rating\",\n items: [\n { start: 5, label: '5.0' },\n { start: 4.0, end: 5.0, label: '4.0 and above' },\n { start: 3.0, end: 5.0, label: '3.0 and above' },\n { start: 2.0, end: 5.0, label: '2.0 and above' },\n { start: 1.0, end: 5.0, label: '1.0 and above' },\n ],\n }),\n refinementListDropdown_timings({\n container: '#dropdown_course_timing',\n attribute: \"timing.time_of_day\",\n }),\n refinementListDropdown_day_of_week({\n container: '#dropdown_course_day_of_week',\n attribute: \"timeslots.day_of_week\",\n searchable: false,\n })\n ]);\n search.start();\n});\n","import algoliasearch from 'algoliasearch/lite';\nimport instantsearch from 'instantsearch.js';\nimport { searchBox, hits, index, configure, pagination } from 'instantsearch.js/es/widgets';\nimport { connectInfiniteHits } from 'instantsearch.js/es/connectors';\n\ndocument.addEventListener(\"turbo:load\", function() {\n const searchClient = algoliasearch(process.env.ALGOLIASEARCH_APPLICATION_ID, process.env.ALGOLIASEARCH_API_KEY_SEARCH);\n const search_educator = instantsearch ({\n indexName: 'SchoolTeacher',\n searchClient,\n });\n\n const currentURL = window.location.origin;\n\n // infinite scroll\n let lastRenderArgs;\n\n const infiniteHits = connectInfiniteHits(\n (renderArgs, isFirstRender) => {\n const { hits, showMore, widgetParams } = renderArgs;\n const { container } = widgetParams;\n lastRenderArgs = renderArgs;\n\n if (isFirstRender) {\n const sentinel = document.createElement('div');\n container.appendChild(document.createElement('hits_schoolteacher'));\n container.querySelector('hits_schoolteacher').classList.add(\"grid\", \"grid-cols-2\", \"md:grid-cols-3\", \"lg:grid-cols-4\", \"gap-4\");\n container.appendChild(sentinel);\n\n const observer = new IntersectionObserver(entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting && !lastRenderArgs.isLastPage) {\n showMore();\n }\n });\n });\n observer.observe(sentinel);\n\n return;\n }\n container.querySelector('hits_schoolteacher').innerHTML = hits\n .map(\n hit =>\n `
\n
\n
\n
\n
\n \n
\n

${hit.name}

\n
${hit.duration}
\n
\n
\n
\n
${hit.rating}
\n \n
(${hit.number_of_testimonials})
\n
\n Whatsapp\n
${hit.one_sentence_pitch}
\n
\n \n
\n
${hit.username}
\n
${hit.reviews}
\n
\n
\n
See profile and classes
\n
\n
\n \n
\n
`\n )\n .join('');\n }\n );\n\n search_educator.addWidgets([\n configure({\n hitsPerPage: 12,\n }),\n searchBox({\n container: \"#searchbox_educators\",\n placeholder: \"Any particular name?\",\n }),\n infiniteHits({\n container: document.querySelector('#hits_schoolteacher'),\n templates: {\n // not sure why this no longer works.\n empty: '
No matching educator found.
',\n },\n }),\n ])\n search_educator.start();\n});\n\n","// To be used for Algolia Search for Dropdown.js file\n\nexport function hasClassName(elem, className) {\n return elem.className.split(' ').indexOf(className) >= 0;\n}\n\nexport function addClassName(elem, className) {\n elem.className = [...elem.className.split(' '), className].join(' ');\n}\n\nexport function removeClassName(elem, className) {\n elem.className = elem.className\n .split(' ')\n .filter((name) => name !== className)\n .join(' ');\n}\n\nexport function capitalize(str) {\n if (typeof str !== 'string') return '';\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n","document.addEventListener(\"turbo:load\", function() {\n let allBtn = document.querySelectorAll('.rate')\n for (let i = 0; i < allBtn.length; i++){\n allBtn[i].onclick = function () {\n allBtn.forEach((starBtn) => {\n if (starBtn.nextElementSibling.classList.contains('text-jonquil-100')){\n starBtn.nextElementSibling.classList.remove('text-jonquil-100')\n }\n })\n for (let j= 0; j {\n const stopEnrolmentOverlay = btn.nextElementSibling\n stopEnrolmentOverlay.classList.remove('hidden')\n stopEnrolmentOverlay.classList.add('flex')\n}\n\nwindow.closeStopEnrolmentModal = btn => {\n const stopEnrolmentOverlay = btn.closest('#stop-enrolment-overlay')\n stopEnrolmentOverlay.classList.remove('flex')\n stopEnrolmentOverlay.classList.add('hidden')\n}\n","document.addEventListener(\"turbo:load\", () => {\n // --------------------------------- New Student Profile -----------------------\n const profileBtns = document.querySelectorAll('.profile-btn')\n const closeProfileMdls = document.querySelectorAll('.close-profile-modal')\n\n profileBtns.forEach(btn => {\n btn.addEventListener('click', () => {\n let overlay = btn.closest(\".student-profile-container\").querySelector(\".profile-overlay\")\n overlay.classList.remove('hidden')\n overlay.classList.add('flex')\n })\n })\n\n closeProfileMdls.forEach(mdl => {\n mdl.addEventListener('click', () => {\n let overlay = mdl.closest(\".student-profile-container\").querySelector(\".profile-overlay\")\n overlay.classList.add('hidden')\n overlay.classList.remove('flex')\n })\n })\n});\n","document.addEventListener(\"turbo:load\", () => {\n const testimonials = document.getElementsByClassName(\"line-clamp-testimonial\");\n testimonials.forEach((t) => {\n if (!((t.offsetHeight < t.scrollHeight) || (t.offsetWidth < t.scrollWidth))) {\n // testimonial didnt overflow, hide the button\n t.nextElementSibling.classList.add(\"hidden\")\n }\n })\n});\n\nwindow.readMoreTestimonials = button => {\n const testimonial = button.previousElementSibling;\n // expand the testimonial if it has been line clamped\n if (testimonial.classList.contains(\"line-clamp-testimonial\")) {\n testimonial.classList.remove(\"line-clamp-testimonial\");\n button.innerHTML = \"Read less\"\n } else {\n // let the user reduce the size of testimonial\n testimonial.classList.add(\"line-clamp-testimonial\");\n button.innerHTML = \"Read more\"\n } \n}\n\n","// used in both manage and registration; mostly css styling of the checkbox to hide textbox if untick, and show textbox if ticked\ndocument.addEventListener(\"turbo:load\", function() {\n const checkboxArray = document.querySelectorAll('.checkbox');\n const textboxArray = document.querySelectorAll('.textbox');\n checkboxArray.forEach((checkbox) => {\n let textbox = checkbox.closest(\".ancestor\").querySelector(\".textbox\");\n if (textbox.innerHTML != \"\") {\n checkbox.previousSibling.checked = true;\n textbox.classList.remove('hidden');\n }\n checkbox.onclick = function () {\n if(textbox.classList.contains(\"hidden\")) {\n textbox.classList.remove('hidden');\n } else {\n textbox.classList.add('hidden');\n }\n } \n }); \n});\n\nwindow.tickCheckbox = input => {\n let textbox = input.closest(\".ancestor\").querySelector(\".textbox\");\n if(textbox.classList.contains(\"hidden\")) {\n textbox.classList.remove('hidden');\n } else {\n textbox.classList.add('hidden');\n }\n}\n","document.addEventListener(\"turbo:load\", function() {\n const switchbtnArray = document.querySelectorAll('.slider');\n const textboxArray = document.querySelectorAll('.textbox');\n\n switchbtnArray.forEach((switchbtn) => {\n switchbtn.onclick = function () {\n let textbox = switchbtn.closest(\".ancestor\").querySelector(\".textbox\");\n if(textbox.classList.contains(\"hidden\")) {\n textbox.classList.remove('hidden');\n } else {\n textbox.classList.add('hidden');\n }\n } \n }); \n});\n","document.addEventListener(\"turbo:load\", function() {\n const courseType = document.getElementById('course-type');\n const paymentType = document.getElementById('payment-type');\n const privatePricing = document.getElementById('private-pricings');\n const publicPricing = document.getElementById('public-pricings');\n const attendanceBasedWording = document.getElementById('attendance-based-wording');\n const fifthWeekDropDown = document.getElementById('include-fifth-week-dropdown')\n const privateNumClass = document.getElementById('num-private-class-charged')\n const groupDeposit = document.getElementById('group-deposit')\n const publicClassAmount = document.getElementById('course_plan_attributes_amount')\n const privateClassAmount = document.getElementById('course_plan_attributes_pricings_attributes_0_amount')\n const privateClassNumStudent = document.getElementById('course_plan_attributes_pricings_attributes_0_number_of_students')\n\n if (courseType.value === \"true\") {\n // When class is public on page load\n publicPricing.classList.remove('hidden');\n privatePricing.classList.add('hidden');\n // set all private related to false\n privatePricing.required = false;\n privateClassAmount.required = false\n privateClassNumStudent.required = false\n // set all public related to true and validate min. amount\n publicPricing.required = true;\n publicClassAmount.required = true\n publicClassAmount.min = 10\n }\n\n if (courseType.value === \"false\") {\n // When class is private on page load\n publicPricing.classList.add('hidden');\n privatePricing.classList.remove('hidden');\n // set all private related to true\n privatePricing.required = true;\n privateClassAmount.required = true;\n privateClassNumStudent.required = true;\n privateClassAmount.min = 10;\n privateClassNumStudent.min = 1;\n // set all public related to false\n publicPricing.required = false;\n publicClassAmount.required = false;\n }\n\n if (paymentType.value === \"subscription\"){\n fifthWeekDropDown.classList.remove('hidden');\n groupDeposit.classList.remove('hidden');\n attendanceBasedWording.classList.add('hidden');\n privateNumClass.classList.add('hidden');\n\n } else {\n fifthWeekDropDown.classList.add('hidden');\n groupDeposit.classList.add('hidden');\n attendanceBasedWording.classList.remove('hidden');\n privateNumClass.classList.remove('hidden');\n }\n\n paymentType.onchange = e => {\n if (e.target.value === \"subscription\"){\n // Show deposit on subscription\n groupDeposit.classList.remove('hidden');\n fifthWeekDropDown.classList.remove('hidden');\n privateNumClass.classList.add('hidden');\n attendanceBasedWording.classList.add('hidden');\n } else {\n // Hide deposit on attendance based\n groupDeposit.classList.add('hidden');\n fifthWeekDropDown.classList.add('hidden');\n privateNumClass.classList.remove('hidden');\n attendanceBasedWording.classList.remove('hidden');\n }\n }\n\n courseType.onchange = (e) => {\n // When public plan is chosen\n if (e.target.value === \"true\"){\n publicPricing.classList.remove('hidden');\n privatePricing.classList.add('hidden');\n // set all public related to true and set min value to 10\n publicPricing.required = true;\n publicClassAmount.required = true;\n publicClassAmount.min = 10;\n // set all private related to false\n privatePricing.required = false;\n privateClassAmount.required = false;\n privateClassNumStudent.required = false;\n\n } else {\n // Private plan\n publicPricing.classList.add('hidden');\n privatePricing.classList.remove('hidden');\n // set all private related to true and set min amount to 10 and student > 0\n privatePricing.required = true;\n privateClassAmount.required = true;\n privateClassNumStudent.required = true;\n privateClassAmount.min = 10;\n privateClassNumStudent.min = 1;\n // set all public related to false\n publicPricing.required = false;\n publicClassAmount.required = false;\n }\n }\n});\n","window.addEventListener(\"trix-file-accept\", function(event) {\n const maxFileSize = 1024 * 1024 // 1MB\n if (event.file.size > maxFileSize) {\n event.preventDefault()\n alert(\"Only support attachment files upto size 1MB!\")\n }\n const acceptedTypes = ['image/jpeg', 'image/png']\n if (!acceptedTypes.includes(event.file.type)) {\n event.preventDefault()\n alert(\"Only support attachment of jpeg or png files\")\n }\n})\n","class Bridge {\n // Toggles navbar visibility in browser from iOS\n static toggleNavBar() {\n const event = new CustomEvent(\"toggle-nav-bar\")\n window.dispatchEvent(event)\n }\n\n // Sends a message to the native app, if active.\n static postMessage(name, data = {}) {\n window.webkit?.messageHandlers?.nativeApp?.postMessage({name, ...data})\n }\n}\n\n// Expose this on the window object so TurboNative can interact with it\nwindow.TurboNativeBridge = Bridge\nexport default Bridge\n","document.addEventListener(\"turbo:load\", () => {\n const input = document.getElementById( 'course_photos' );\n const infoArea = document.getElementById( 'file-upload-filename');\n\n input.addEventListener( 'change', showFileName );\n function showFileName( event ) { \n let input = event.srcElement; \n let fileName = input.files[0].name; \n infoArea.textContent = 'File name: ' + fileName;\n infoArea.classList.remove(\"hidden\");\n }\n})\n","\ndocument.addEventListener(\"turbo:load\", () => {\n const input = document.getElementById( 'user_accounts_attributes_0_school_attributes_photos' );\n const infoArea = document.getElementById( 'file-upload-filename');\n input.addEventListener( 'change', showFileName );\n function showFileName( event ) { \n let input = event.srcElement; \n let files = input.files;\n infoArea.innerHTML = 'Files uploaded are:' \n for (var i = 0; i < files.length; i++) {\n infoArea.innerHTML += '
' + files[i].name;\n } \n }\n})\n","const Uppy = require(\"@uppy/core\");\nconst Dashboard = require(\"@uppy/dashboard\");\nconst ActiveStorageUpload = require(\"@excid3/uppy-activestorage-upload\");\n\nrequire(\"@uppy/core/dist/style.css\");\nrequire(\"@uppy/dashboard/dist/style.css\");\n\nconst createPhotosGallery = (uppy, element, field_name) => {\n uppy.on('complete', (res) => {\n res.successful.forEach(file => {\n appendUploadedFile(element, file, field_name);\n // This is for selecting primary image on save\n createRadioButtonWithImages(element, file, \"create\");\n })\n });\n}\n\nconst editPhotosGallery = (uppy, element, field_name) => {\n uppy.on('complete', (res) => {\n console.log(\"IM HERE 2\");\n res.successful.forEach(file => {\n appendUploadedFile(element, file, field_name);\n // This is for selecting primary image on save\n createRadioButtonWithImages(element, file, \"edit\");\n })\n });\n}\n\nconst setupUppy = (element) => {\n let trigger = element.querySelector('[data-behavior=\"uppy-trigger\"]');\n let form = element.closest('form');\n let direct_upload_url = document.querySelector(\"meta[name='direct-upload-url']\").getAttribute('content');\n const wrapperClass = document.querySelector(\".wrapper\");\n let field_name = wrapperClass.dataset.uppy;\n\n let uppy = new Uppy({\n autoProceed: true,\n allowMultipleUploads: false,\n logger: Uppy.debugLogger,\n restrictions: {\n // 5MB max size\n maxFileSize: 5 * 1024 * 1024,\n maxNumberOfFiles: 100,\n minNumberOfFiles: null,\n // Only allow images\n allowedFileTypes: ['image/*']\n },\n });\n\n uppy.use(ActiveStorageUpload, {\n directUploadUrl: direct_upload_url\n });\n\n uppy.use(Dashboard, {\n inline: true,\n id: 'Dashboard',\n theme: 'light',\n target: '.dashboard-body',\n note: 'Images and video only, 2–3 files, up to 2 MB',\n width: 650,\n height: 300,\n thumbnailWidth: 280,\n metaFields: [\n { id: 'name', name: 'Name', placeholder: 'file name' }\n ]\n });\n\n if(document.querySelector(\".createPhotosGallery\") !== null){\n createPhotosGallery(uppy, element, field_name);\n } else {\n editPhotosGallery(uppy, element, field_name);\n }\n}\n\nconst appendUploadedFile = (element, file, field_name) => {\n const wrapperClass = document.querySelector(\".wrapper\");\n const hiddenField = document.createElement(\"input\");\n\n hiddenField.setAttribute('type', 'hidden');\n hiddenField.setAttribute('name', field_name);\n hiddenField.setAttribute('data-pending-upload', true);\n hiddenField.setAttribute('value', file.response.id);\n\n wrapperClass.appendChild(hiddenField);\n}\n\nconst createRadioButtonWithImages = (element, file, page) => {\n let previewImage = document.getElementById('previewImages');\n // Only show header when page is on create\n if (page == \"create\") {\n let headerForPreivew = document.getElementById('headerForPreview');\n // Display header\n headerForPreivew.classList.remove(\"hidden\");\n }\n\n // Add col-span-1 and mr-3\n let labelWrapper = document.createElement(\"div\");\n labelWrapper.className = \"col-span-1 mr-3\"\n\n // Creating labels\n let label = document.createElement(\"label\");\n label.for = file.response.id;\n\n // Creating radio buttons\n let radioButton = document.createElement(\"input\");\n radioButton.type = \"radio\";\n radioButton.name = \"primaryImage\";\n radioButton.value = file.response.id\n radioButton.id = file.response.id;\n radioButton.className = \"my-3 radio-buttons\";\n\n // Creating images\n let image = document.createElement(\"img\");\n image.src = file.preview;\n image.style.width = 600;\n image.className = \"h-auto rounded\";\n\n // Append both radio buttons and images to label, then append label to previewImage\n label.appendChild(radioButton);\n label.appendChild(image);\n labelWrapper.appendChild(label);\n\n previewImage.appendChild(labelWrapper);\n}\n\ndocument.addEventListener('turbo:load', () => {\n document.querySelectorAll('.dashboard-body').forEach((element) => setupUppy(element));\n});","document.addEventListener(\"turbo:load\", () => {\n // --------------------------------- New Venue -----------------------\n const venueOverlay = document.querySelector('#venue-overlay')\n const venueBtn = document.querySelector('#venue-btn')\n const closeVenueMdl = document.querySelector('#close-venue-modal')\n\n venueBtn.addEventListener('click', () => {\n venueOverlay.classList.remove('hidden')\n venueOverlay.classList.add('flex')\n })\n\n closeVenueMdl.addEventListener('click', () => {\n venueOverlay.classList.add('hidden')\n venueOverlay.classList.remove('flex')\n })\n});\n","window.limitNumCheckBoxSelected = (numLimit, checkbox) => {\n const parentNest = checkbox.closest('.parent-nest')\n const checkboxes = parentNest.querySelectorAll('input[type=\"checkbox\"]');\n const selectedCheckboxes = [...checkboxes].filter(word => word.checked)\n if (selectedCheckboxes.length > numLimit) {\n for (let i = 0; i < selectedCheckboxes.length; i++) {\n if (selectedCheckboxes[i].value == checkbox.value) {\n // revert most recent selection if above limit\n selectedCheckboxes[i].checked = false;\n }\n }\n }\n}\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","window","Rails","Turbo","require","components","forEach","LocalTime","openAddCardDetail","btn","AddCardDetailComponent","nextElementSibling","classList","remove","add","document","addEventListener","announcementOverlay","querySelector","aBtn","closeAnnouncementMdl","agerange","maxage","onchange","target","value","sidebar","arrow","onclick","innerHTML","replace","recipient","querySelectorAll","length","i","nextSibling","sender","compare","getElementById","compareBanner","clicked_id","count","checkboxes","getElementsByName","currentId","compareCount","checked","uncheck","compareBannerEducators","checkbox","compareIcon","closest","old_confirm","confirm","delegate","join","event","dataset","confirmModal","element","String","Math","random","slice","content","concat","insertAdjacentHTML","modal","key","preventDefault","removeAttribute","click","focus","createConfirmModal","onDeleteInManageProfile","deleteIcon","deleteNestedNewUser","bin","checkout","selectedIndex","disabled","forms","student_profile_id","startDate","Array","from","some","options","lastSelectedStartDate","localStorage","getItem","onbeforeunload","removeItem","setItem","disable_button","clicked_contact","can_checkout","student_profiles","emergency_contacts","getElementsByClassName","j","course_address","k","disabled_profile_alert","profile","contains","alert","disable_testimony","click_star","ecBtns","closeEcMdls","overlay","mdl","editAnnouncementOverlay","editAnnouncementBtn","closeEditAnnouncementMdl","fileValidation","fileField","filePath","exec","files","size","displayFile","input","console","log","infoArea","name","displayFileFirst","manageDisplayFileFirst","firstElementChild","displayLogo","output","reader","FileReader","src","result","readAsDataURL","timeslotContainer","allScheduleBtn","setAttribute","getAttribute","manage_checkbox_admin","manage_checkbox_teacher","previousElementSibling","closeModal","close","_ref","_document$getElementB","srcElement","newImage","createElement","className","URL","createObjectURL","wrapperClass","appendChild","questBtn","closeMdl","parentNests","addBtn","parentNest","modalBtn","deleteMdl","saveMdl","venue","field","address","_toConsumableArray","x","regions","filter","word","item","required","setTimeout","newNested","parentElement","previousSibling","newOverlay","newModalBtn","newCloseMdl","newDeleteMdl","newSaveMdl","file","mainNavLinks","fromTop","scrollY","link","section","hash","offsetTop","offsetHeight","CLASS_OPENED","CLASS_BUTTON","CLASS_CLOSE_BUTTON","cx","_len","arguments","args","_key","Boolean","createDropdown","baseWidget","undefined","_ref$cssClasses","cssClasses","userCssClasses","buttonText","buttonClassName","closeOnChange","root","button","buttonRefined","closeButton","makeWidget","panel","templates","header","text","widgetParams","attribute","capitalize","nbRefinements","items","isRefined","classNames","push","find","apply","footer","cleanUp","widget","state","_objectSpread","init","rootElem","container","headerElem","closeButtonElem","removeClassName","removeEventListener","windowClickListener","isOpened","hasClassName","toggle","addClassName","buttonListener","matches","instantSearchInstance","use","subscribe","unsubscribe","onStateChange","call","dispose","location","pathname","clearCache","searchClient","algoliasearch","process","autocomplete","detachedMediaQuery","openOnFocus","placeholder","getSources","query","sourceId","getItems","getAlgoliaResults","queries","indexName","params","hitsPerPage","getItemInputValue","_ref2","getItemUrl","_ref3","_ref4","dangerouslySetInnerHTML","__html","visit","search_announcement","instantsearch","addWidgets","searchBox","hits","empty","start","search","routing","refinementListDropdown_category","refinementList","refinementListDropdown_location","rangeInputDropdown_price_session","rangeInput","precision","numericMenuDropdown_ratings","numericMenu","refinementListDropdown_timings","refinementListDropdown_day_of_week","filterValues","configure","filters","category","data","published","educator_name","course_url","conditioned_category","price","interval","number_of_testimonials","rating","stars","multiple_venues","display_venue","mobile","pagination","scrollTo","showFirst","showLast","labels","previous","next","active","stats","hitsText","nbHits","locationText","searchable","showMore","sortBy","label","end","initialRender","userClearedInput","handleInput","off","handleBlur","trim","on","dispatchEvent","Event","currentURL","origin","loader","Loader","apiKey","version","markers","isSecondRendering","markerCluster","customGeoSearch","connectGeoSearch","renderOptions","isFirstRendering","refine","currentRefinement","clearMapRefinement","initialZoom","initialPosition","load","then","storedZoom","storedPosition","google","maps","Map","zoom","parseInt","center","JSON","parse","lat","lng","styles","featureType","stylers","visibility","addListener","getZoom","stringify","getCenter","bounds","getBounds","ne","getNorthEast","sw","getSouthWest","northEast","southWest","infoWindow","InfoWindow","marker","Marker","position","_geoloc","title","setContent","objectID","setOptions","disableAutoPan","open","clearMarkers","MarkerClusterer","onClusterClick","cluster","setCenter","latLng","setZoom","results","lastRenderArgs","search_educator","infiniteHits","connectInfiniteHits","renderArgs","isFirstRender","sentinel","IntersectionObserver","entries","entry","isIntersecting","isLastPage","observe","hit","url","duration","one_sentence_pitch","testimonialavatar","username","reviews","elem","split","indexOf","str","charAt","toUpperCase","allBtn","_loop","starBtn","openStopEnrolmentModal","stopEnrolmentOverlay","closeStopEnrolmentModal","profileBtns","closeProfileMdls","t","scrollHeight","offsetWidth","scrollWidth","readMoreTestimonials","testimonial","checkboxArray","textbox","tickCheckbox","switchbtnArray","switchbtn","courseType","paymentType","privatePricing","publicPricing","attendanceBasedWording","fifthWeekDropDown","privateNumClass","groupDeposit","publicClassAmount","privateClassAmount","privateClassNumStudent","min","includes","type","Bridge","_classCallCheck","CustomEvent","_window$webkit","webkit","messageHandlers","nativeApp","postMessage","TurboNativeBridge","fileName","textContent","Uppy","Dashboard","ActiveStorageUpload","setupUppy","direct_upload_url","field_name","uppy","autoProceed","allowMultipleUploads","logger","debugLogger","restrictions","maxFileSize","maxNumberOfFiles","minNumberOfFiles","allowedFileTypes","directUploadUrl","inline","theme","note","width","height","thumbnailWidth","metaFields","res","successful","appendUploadedFile","createRadioButtonWithImages","createPhotosGallery","editPhotosGallery","hiddenField","response","page","previewImage","labelWrapper","radioButton","image","preview","style","venueOverlay","venueBtn","closeVenueMdl","limitNumCheckBoxSelected","numLimit","selectedCheckboxes"],"sourceRoot":""}