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0CAA2C,CAC1C,MACA,MAED,0CAA2C,CAC1C,KACA,MAED,gDAAiD,CAChD,MACA,KACA,MAED,+CAAgD,CAC/C,MACA,KACA,MAED,0DAA2D,CAC1D,KACA,KACA,MAED,yCAA0C,CACzC,MACA,MAED,gDAAiD,CAChD,MACA,MAED,0CAA2C,CAC1C,MACA,KACA,MAED,iDAAkD,CACjD,MACA,MAED,2CAA4C,CAC3C,MACA,KACA,MAED,gDAAiD,CAChD,MACA,MAED,8CAA+C,CAC9C,MACA,KACA,MAED,0CAA2C,CAC1C,MACA,KACA,KAED,8CAA+C,CAC9C,KACA,MAED,qDAAsD,CACrD,MACA,MAED,wCAAyC,CACxC,MACA,MAED,2CAA4C,CAC3C,MACA,KAED,6CAA8C,CAC7C,MACA,MAED,0CAA2C,CAC1C,MACA,MAED,sDAAuD,CACtD,MACA,MAED,gDAAiD,CAChD,MACA,MAED,2CAA4C,CAC3C,KACA,MAED,kDAAmD,CAClD,MACA,MAED,iDAAkD,CACjD,MACA,KACA,OAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOnD,QAAQC,UAAUJ,MAAK,WAC7B,IAAIyD,EAAI,IAAIC,MAAM,uBAAyBJ,EAAM,KAEjD,MADAG,EAAEE,KAAO,mBACHF,CACP,IAGD,IAAIG,EAAMR,EAAIE,GAAMO,EAAKD,EAAI,GAC7B,OAAOzD,QAAQ2D,IAAIF,EAAI1B,MAAM,GAAGkB,IAAIG,EAAoBE,IAAIzD,MAAK,WAChE,OAAOuD,EAAoBM,EAC5B,GACD,CACAR,EAAoBU,KAAO,WAAa,OAAOC,OAAOD,KAAKX,EAAM,EACjEC,EAAoBQ,GAAK,MACzBI,EAAOC,QAAUb,C,oDC9MjB/C,OAAO6D,MAAQA,EAAAA,C","sources":["webpack://Dansapp/./app/javascript/features/routes/students.js","webpack://Dansapp/./app/javascript/packs/portal/students/index.js","webpack://Dansapp/./app/javascript/utils/routes/fetch_route.js","webpack://Dansapp/./app/javascript/utils/routes/load_controller.js","webpack://Dansapp/./app/javascript/utils/routes/resolve_route.js","webpack://Dansapp/./app/javascript/shared/theme-light.js","webpack://Dansapp/./app/javascript/features/ lazy ^\\.\\/.*_controller$ namespace object","webpack://Dansapp/./app/javascript/utils/rails.js"],"sourcesContent":["const routes = {\n '/portal/:schoolSlug/students/classes': ['portal/students/controllers', 'classes'],\n '/portal/:schoolSlug/students/products/:id': ['portal/students/controllers', 'products']\n};\n\nexport default routes;\n","import { loadController, fetchRoute } from 'utils/routes';\nimport routes from 'features/routes/students';\n\nfetchRoute(routes).then((route) => {\n loadController(route);\n});\n","import { resolveRoute } from '.';\n\nexport const fetchRoute = (routes) => {\n return new Promise((resolve) => {\n const currentPath = window.location.pathname;\n const route = resolveRoute(routes, currentPath);\n\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', () => {\n resolve(route);\n });\n } else {\n resolve(route);\n }\n });\n};\n\nexport default fetchRoute;\n","export const loadController = (route) => {\n if (!route) return;\n\n const [path, controllerName] = route.controller;\n const fullPath = `features/${path}/${controllerName}_controller`;\n\n import('features/controllers/application_controller')\n .then((mod) => {\n window.ApplicationController = mod.default;\n\n return import(`features/${path}/${controllerName}_controller`);\n })\n .then((mod) => {\n const ControllerClass = mod.default;\n\n new ControllerClass().initialize();\n })\n .catch((error) => {\n console.error(`Failed to load ${fullPath} in ${window.location.pathname}: `, error);\n });\n};\n","const normalizeRoutePatternAndPath = (pattern, windowPath) => {\n const cleanedHashPath = windowPath.split('#')[0];\n const cleanedWindowPath = cleanedHashPath.replace(/\\/\\/+/g, '/');\n const normalizedPattern = pattern.endsWith('/') ? pattern.slice(0, -1) : pattern;\n const normalizedPath = cleanedWindowPath.endsWith('/') ? cleanedWindowPath.slice(0, -1) : cleanedWindowPath;\n return { normalizedPattern, normalizedPath };\n};\n\nconst createRegexFromPattern = (normalizedPattern) => {\n return normalizedPattern\n .replace(/\\*/g, '.*')\n .replace(/:[\\w]+/g, '([\\\\w-]+)')\n .replace(/\\//g, '\\\\/');\n};\n\nconst getParamsFromMatch = (match, normalizedPattern) => {\n const params = {};\n const paramNames = normalizedPattern.match(/:\\w+/g);\n if (paramNames) {\n paramNames.forEach((name, index) => {\n params[name.substring(1)] = match[index + 1];\n });\n }\n return params;\n};\n\nconst extractRouteParameters = (normalizedPattern, normalizedPath) => {\n const regexPattern = `^${createRegexFromPattern(normalizedPattern)}$`;\n const match = normalizedPath.match(new RegExp(regexPattern));\n return match ? getParamsFromMatch(match, normalizedPattern) : null;\n};\n\nconst matchRoute = (pattern, windowPath) => {\n const { normalizedPattern, normalizedPath } = normalizeRoutePatternAndPath(pattern, windowPath);\n return extractRouteParameters(normalizedPattern, normalizedPath);\n};\n\nexport const resolveRoute = (routes, windowPath) => {\n for (const path in routes) {\n const params = matchRoute(path, windowPath);\n if (params !== null) return { controller: routes[path], params };\n }\n return null;\n};\n","document.addEventListener('DOMContentLoaded', () => {\n $.App.activateLightSidebarTheme();\n});\n","var map = {\n\t\"./calendar/controllers/klasses_controller\": [\n\t\t68643,\n\t\t4121,\n\t\t9084,\n\t\t8643\n\t],\n\t\"./controllers/application_controller\": [\n\t\t88608,\n\t\t4121,\n\t\t8608\n\t],\n\t\"./payment_form/controllers/confirmations_controller\": [\n\t\t84543,\n\t\t4121,\n\t\t9084,\n\t\t7933,\n\t\t6924\n\t],\n\t\"./payment_form/controllers/orders_controller\": [\n\t\t18024,\n\t\t4121,\n\t\t9084,\n\t\t7933,\n\t\t8024\n\t],\n\t\"./payment_form/controllers/payments_controller\": [\n\t\t943,\n\t\t4121,\n\t\t943\n\t],\n\t\"./portal/students/controllers/classes_controller\": [\n\t\t14958,\n\t\t4121,\n\t\t4958\n\t],\n\t\"./portal/students/controllers/products_controller\": [\n\t\t54915,\n\t\t4121,\n\t\t4915\n\t],\n\t\"./portal/teachers/controllers/dance_classes/show_controller\": [\n\t\t24637,\n\t\t4637\n\t],\n\t\"./portal/teachers/controllers/dashboards_controller\": [\n\t\t3174,\n\t\t3174\n\t],\n\t\"./portal/teachers/controllers/klasses/index_controller\": [\n\t\t53114,\n\t\t3114\n\t],\n\t\"./portal/teachers/controllers/klasses/show_controller\": [\n\t\t35161,\n\t\t4121,\n\t\t5161\n\t],\n\t\"./portal/teachers/controllers/seasons/show_controller\": [\n\t\t10515,\n\t\t515\n\t],\n\t\"./portal/teachers/controllers/seasons_controller\": [\n\t\t38753,\n\t\t8753\n\t],\n\t\"./portal/teachers/controllers/teachers_controller\": [\n\t\t9260,\n\t\t9260\n\t],\n\t\"./portal/teachers/controllers/tickets_controller\": [\n\t\t78924,\n\t\t8924\n\t],\n\t\"./portal/teachers/controllers/workshops_controller\": [\n\t\t47293,\n\t\t7293\n\t],\n\t\"./school/controllers/calendars_controller\": [\n\t\t76798,\n\t\t6798\n\t],\n\t\"./school/controllers/chargebacks_controller\": [\n\t\t49127,\n\t\t9127\n\t],\n\t\"./school/controllers/charges_controller\": [\n\t\t79868,\n\t\t9868\n\t],\n\t\"./school/controllers/courses_controller\": [\n\t\t7848,\n\t\t7848\n\t],\n\t\"./school/controllers/dance_classes_controller\": [\n\t\t49989,\n\t\t4121,\n\t\t9989\n\t],\n\t\"./school/controllers/danceschools_controller\": [\n\t\t87676,\n\t\t4121,\n\t\t7676\n\t],\n\t\"./school/controllers/discount_codes/products_controller\": [\n\t\t8026,\n\t\t4121,\n\t\t8026\n\t],\n\t\"./school/controllers/events_controller\": [\n\t\t16609,\n\t\t8990\n\t],\n\t\"./school/controllers/klasses/index_controller\": [\n\t\t78630,\n\t\t8630\n\t],\n\t\"./school/controllers/klasses_controller\": [\n\t\t24815,\n\t\t4121,\n\t\t4815\n\t],\n\t\"./school/controllers/mailing_groups_controller\": [\n\t\t22693,\n\t\t2693\n\t],\n\t\"./school/controllers/mailings_controller\": [\n\t\t58944,\n\t\t4121,\n\t\t8944\n\t],\n\t\"./school/controllers/members/index_controller\": [\n\t\t98947,\n\t\t8947\n\t],\n\t\"./school/controllers/members/new_controller\": [\n\t\t46293,\n\t\t4121,\n\t\t6293\n\t],\n\t\"./school/controllers/members_controller\": [\n\t\t20846,\n\t\t4121,\n\t\t846\n\t],\n\t\"./school/controllers/memberships_controller\": [\n\t\t2083,\n\t\t2083\n\t],\n\t\"./school/controllers/plans/installments_controller\": [\n\t\t69877,\n\t\t9877\n\t],\n\t\"./school/controllers/plans_controller\": [\n\t\t55203,\n\t\t5203\n\t],\n\t\"./school/controllers/pricings_controller\": [\n\t\t70504,\n\t\t504\n\t],\n\t\"./school/controllers/punchcards_controller\": [\n\t\t47984,\n\t\t7984\n\t],\n\t\"./school/controllers/seasons_controller\": [\n\t\t43893,\n\t\t3893\n\t],\n\t\"./school/controllers/subscription_events_controller\": [\n\t\t11538,\n\t\t1538\n\t],\n\t\"./school/controllers/subscriptions_controller\": [\n\t\t24801,\n\t\t4801\n\t],\n\t\"./school/controllers/teachers_controller\": [\n\t\t6803,\n\t\t6803\n\t],\n\t\"./school/controllers/workshops/index_controller\": [\n\t\t97336,\n\t\t7336\n\t],\n\t\"./school/controllers/workshops/show_controller\": [\n\t\t21235,\n\t\t4121,\n\t\t1235\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 63690;\nmodule.exports = webpackAsyncContext;","import Rails from '@rails/ujs';\nwindow.Rails = Rails;\n"],"names":["fetchRoute","routes","then","route","loadController","Promise","resolve","currentPath","window","location","pathname","resolveRoute","document","readyState","addEventListener","_route$controller","_slicedToArray","controller","path","controllerName","fullPath","mod","ApplicationController","ControllerClass","initialize","error","console","matchRoute","pattern","windowPath","_normalizeRoutePatter","cleanedWindowPath","split","replace","normalizedPattern","endsWith","slice","normalizedPath","normalizeRoutePatternAndPath","regexPattern","createRegexFromPattern","match","RegExp","params","paramNames","forEach","name","index","substring","getParamsFromMatch","extractRouteParameters","$","App","activateLightSidebarTheme","map","webpackAsyncContext","req","__webpack_require__","o","e","Error","code","ids","id","all","keys","Object","module","exports","Rails"],"sourceRoot":""}