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,WAAY,KACZ,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,UAAW,KACX,aAAc,KACd,QAAS,KACT,WAAY,KACZ,OAAQ,KACR,UAAW,KACX,QAAS,KACT,WAAY,KACZ,QAAS,KACT,aAAc,IACd,gBAAiB,IACjB,WAAY,KACZ,UAAW,KACX,aAAc,KACd,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,YAAa,IACb,eAAgB,IAChB,UAAW,KACX,OAAQ,KACR,UAAW,KACX,aAAc,KACd,gBAAiB,KACjB,OAAQ,KACR,UAAW,KACX,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,MAIf,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,EAC5B,CACA,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KACjDK,EAAEE,KAAO,mBACT,MAAMF,CACP,CACA,OAAOP,EAAIE,EACZ,CACAD,EAAeS,KAAO,SAASC,IAC9B,OAAOC,OAAOF,KAAKV,EACpB,EACAC,EAAeY,QAAUT,EACzBU,EAAOC,QAAUd,EACjBA,EAAeE,GAAK,I","sources":["webpack://clever-sis-integration/./app/javascript/react_entrypoints/ sync ^\\.\\/.*$","webpack://clever-sis-integration/./app/javascript/api.ts","webpack://clever-sis-integration/./app/javascript/bootstrap.ts","webpack://clever-sis-integration/./app/javascript/environment.ts","webpack://clever-sis-integration/./app/javascript/components/SmartLink.tsx","webpack://clever-sis-integration/./app/javascript/components/TableTitle.tsx","webpack://clever-sis-integration/./app/javascript/types/account.ts","webpack://clever-sis-integration/./app/javascript/components/CleverType.tsx","webpack://clever-sis-integration/./app/javascript/components/FormatTime.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/ImportBatchStore.ts","webpack://clever-sis-integration/./app/javascript/routes/accounts/components/Pills.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/components/AccountHeader.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/SubAccountSettings.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/components/SetupButton.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/SubAccountList.tsx","webpack://clever-sis-integration/./app/javascript/util.ts","webpack://clever-sis-integration/./app/javascript/routes/accounts/components/BlueprintCourseSelect.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/components/CoursesTable.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/SubAccountView.tsx","webpack://clever-sis-integration/./app/javascript/routes/accounts/routes.tsx","webpack://clever-sis-integration/./app/javascript/routes/routes.tsx","webpack://clever-sis-integration/./app/javascript/react_entrypoints/AccountNavigation.tsx","webpack://clever-sis-integration/./app/javascript/routes/crosslisting/CrosslistingPage.tsx","webpack://clever-sis-integration/./app/javascript/react_entrypoints/CourseHomeSubNavigation.tsx","webpack://clever-sis-integration/./app/javascript/react_entrypoints/LaunchError.tsx","webpack://clever-sis-integration/./app/javascript/react_entrypoints/LoginLanding.tsx","webpack://clever-sis-integration/./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["var map = {\n\t\"./AccountNavigation\": 2758,\n\t\"./AccountNavigation.tsx\": 2758,\n\t\"./CourseHomeSubNavigation\": 3525,\n\t\"./CourseHomeSubNavigation.tsx\": 3525,\n\t\"./LaunchError\": 9898,\n\t\"./LaunchError.tsx\": 9898,\n\t\"./LoginLanding\": 1391,\n\t\"./LoginLanding.tsx\": 1391\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 = 8808;","import axios, { Axios, AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';\nimport deepEqual from 'deep-eql';\nimport { observable } from 'mobx';\nimport { Class, Promisable } from 'type-fest';\n// import { FormApi } from 'final-form';\n\n// import { transformHttpErrors } from '@inst_proserv/formkit';\nimport { AlertManager } from '@toolkit/components/AlertManager';\nimport { DataPage } from '@toolkit/components/DataPaginator';\nimport { DataFetcher } from '@toolkit/util/DataFetcher';\nimport { transformHttpErrors } from '@inst_proserv/formkit';\n\nimport { urlJoin } from '@matchlighter/common_library/strings';\nimport { Form } from '@matchlighter/cognizant_forms';\n\nimport { env } from './environment';\nimport { captureException } from '@sentry/browser';\n\nfunction isSomeHttpError(err: Error): err is AxiosError {\n return (err as any).response !== undefined;\n}\n\nexport function isHttpError(err: Error, code?: number | string | RegExp): err is AxiosError {\n if (isSomeHttpError(err)) {\n if (!code) return true;\n\n if (typeof code == 'number') return err.response.status == code;\n if (typeof code == 'string') code = new RegExp(`^${code.replace(/x/g, '\\\\d')}$`);\n\n return code.test(String(err.response.status));\n } else {\n return false;\n }\n}\n\nexport async function compareRequests(reqParams: AxiosRequestConfig, lastResponse?: AxiosResponse) {\n if (lastResponse && lastResponse.config.url == reqParams.url && deepEqual(reqParams.params, lastResponse.config.params)) {\n return lastResponse;\n } else {\n return await API.request(reqParams)\n }\n}\n\nexport class APIBase extends Axios {\n constructor(config: (AxiosRequestConfig & { subURL?: string }) = {}) {\n super({\n ...axios.defaults,\n baseURL: `/organizations/${env.organization_id}/${config.subURL || ''}`,\n headers: {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n 'X-CSRF-Token': env.csrf_token,\n 'Authorization': 'token=' + env.session_key\n },\n withCredentials: true,\n ...config,\n })\n }\n\n get base_url() {\n return this.defaults.baseURL;\n }\n\n create_href(to: string) {\n return `${this.base_url}${to}?session_key=${env.session_key}`;\n }\n\n request, D = any>(config: AxiosRequestConfig): Promise {\n if (config.data instanceof FormData) {\n config.headers ||= {}\n config.headers['Content-Type'] = 'multipart/form-data';\n }\n return super.request(config)\n }\n\n saveModel(url, data, id = data.id) {\n return API.request({\n method: id ? 'PUT' : 'POST',\n url: urlJoin(url, id || ''),\n data,\n })\n }\n\n fetcher(url: string, { transform, ...params }: ConstructorParameters['1'] & { transform?: (data) => D } = {}) {\n return new DataFetcher(async (url_params) => {\n const response = await API.get(url, {\n params: { ...url_params },\n });\n let data = response.data;\n if (transform) data = await transform(data);\n data = observable(data, {})\n return data as any;\n }, params)\n }\n\n async download_file(file: string, { in_tab = false }: { in_tab?: boolean } = {}) {\n const tokenResponse = await this.get(`api/v1/link_token`);\n const token = tokenResponse.data['token'];\n\n const url = new URL(file, new URL(this.base_url, window.location as any));\n url.searchParams.set('session_token', token);\n\n const element = document.createElement('a');\n element.setAttribute('href', url.toString());\n if (in_tab) {\n element.setAttribute('target', '_blank');\n } else {\n element.setAttribute('download', '');\n }\n document.body.appendChild(element);\n element.click();\n document.body.removeChild(element);\n }\n\n async protectedRequest(options: { action: string, form?: Form }, act: () => Promisable): Promise {\n try {\n return await act();\n } catch (ex) {\n if (isHttpError(ex, '4xx')) {\n const body = ex.response?.data as any;\n const err = body?.error || body?.message;\n if (err) {\n AlertManager.default.addAlert(err, { level: \"error\", timeout: 10000 });\n }\n if (options.form && body['errors']) {\n return transformHttpErrors(ex, options.form) as any;\n }\n if (err) return false;\n }\n let message = 'Internal error occurred';\n if (options?.action) {\n message += ` ${options.action}`;\n }\n AlertManager.default.addAlert(message, { level: \"error\", timeout: 10000 });\n captureException(ex);\n console.error(ex);\n }\n }\n}\n\nexport function class_transformer>(cls: R): (data) => InstanceType {\n return (d) => new cls(d)\n}\n\nexport function transform_page(page: DataPage, transform: (item: T) => R): DataPage {\n return {\n ...page,\n items: page.items.map(transform),\n }\n}\n\nexport function page_transformer(transform: (item: T) => R): (data: T) => DataPage\nexport function page_transformer>(transform: R): (data) => DataPage>\nexport function page_transformer(transform) {\n return (page: DataPage) => {\n if (transform.prototype) {\n return transform_page(page, (d) => new transform(d))\n } else {\n return transform_page(page, transform)\n }\n };\n}\n\nexport function saveApiModel(url, data, id?) {\n return API.saveModel(url, data, id)\n}\n\nexport const API = new APIBase();\n// fetcherConfig.api.backend = API\n","\nimport './screen.scss';\nimport { env } from './environment';\n\n// Configure Sentry\nimport * as Sentry from '@sentry/browser';\nif (env.environment != 'development') {\n Sentry.init({\n dsn: env.sentry_dsn,\n environment: env.environment,\n });\n}\n\n// Configure MobX\nimport * as mobx from 'mobx';\nmobx.configure({\n enforceActions: 'observed',\n})\n\n// Configure Moment\nimport moment from 'moment-timezone';\nmoment.tz.setDefault(env.timezone || moment.tz.guess());\n\nconst console_error = console.error;\nconsole.error = (...args) => {\n if (args[0] == \"Warning: %s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.%s\" && args[1] == 'ProxyingComponent')\n return;\n console_error(...args);\n}\n","import { env } from \"@toolkit/environment\";\n\ndeclare module \"@toolkit/environment\" {\n export interface Environment {\n organization_id: number;\n session_key: string;\n sentry_dsn?: string;\n environment?: string;\n timezone: string;\n\n current_user: any;\n\n params\n base_path\n canvas_url\n post_message_token: string;\n brand_variables: any;\n launch_params\n regexps?: { [key: string]: RegExp }\n\n root_launch?: boolean;\n initial_route?: string;\n\n permissions: {\n super_user: boolean;\n [key: string]: any;\n }\n }\n}\n\nif (env.regexps) {\n const regexes = {}\n for (let [k, str] of Object.entries(env.regexps)) {\n regexes[k] = new RegExp(str)\n }\n env.regexps = regexes;\n}\n\nif (env.environment == 'development') {\n window['ENV'] = env;\n console.log(env);\n}\n\nexport { env }\n","import React from 'react';\nimport { Link as RouteLink, LinkProps as RouteLinkProps } from 'react-router-dom';\n\nimport { Link } from '@instructure/ui-link';\nimport { Button } from '@instructure/ui-buttons'\n\nconst ABS_URL = new RegExp('^(?:[a-z]+:)?//', 'i');\nexport const resolveLink = (link: RouteLinkProps['to'], inProps?, children?) => {\n const { active, button, ...props } = inProps;\n if (children) props['children'] = children;\n\n if (button) {\n props['variant'] = props['variant'] || 'link';\n } else {\n if (props['isWithinText'] == undefined) props['isWithinText'] = false;\n }\n\n const Component: any = button ? Button : Link;\n\n if (active === false) return ;\n if (typeof link == 'function') return \n if (link && typeof link == 'string' && ABS_URL.test(link)) return \n if (link) return \n return ;\n}\n\ninterface SmartLinkProps extends Partial {\n to?: RouteLinkProps['to'],\n active?: boolean,\n button?: boolean,\n\n [key: string]: any\n}\n\nexport const SmartLink: React.FunctionComponent = ({ to, ...rest }) => {\n return resolveLink(to, rest);\n}\n","import pluralize from \"pluralize\";\nimport { ReactNode } from \"react\";\nimport { observer } from \"mobx-react\";\n\nimport { Flex, Text, View } from \"@instructure/ui\";\n\nimport { DataFetcher, DataPage } from \"@inst_proserv/toolkit/util/DataFetcher\";\n\nexport const TableTitle = observer(({ title, fetcher }: { title: string, fetcher?: DataFetcher }) => {\n let subnote: ReactNode = null;\n\n if (fetcher && fetcher.data) {\n subnote = \n {fetcher.data.total_count} on {fetcher.data.page_count} {pluralize(\"page\", fetcher.data.page_count)}\n \n }\n\n return <>\n \n \n {title}\n \n \n \n {subnote}\n \n \n \n \n})\n","import { observable } from \"mobx\";\n\nimport { DataPage } from \"@inst_proserv/toolkit/util/DataFetcher\";\n\nimport { CleverLink } from \"./common\";\n\nexport interface Account {\n id: number;\n parent_account_id: number;\n ancestors?: Account[];\n ancestry_depth: number;\n sis_id: string;\n name: string;\n clever_link: CleverLink;\n\n descendants?: DataPage;\n\n parent_account?: Account;\n}\n\n// I'm debating if I like the functional approach on these, or if I'd prefer hydrating the raw API responses into class instances...\n\nexport function getDistrictAccount(acc: Account): Account {\n if (acc.clever_link?.type === \"CleverDistrict\") return acc;\n if (acc.ancestors) return acc.ancestors.find(acc => acc.clever_link?.type === \"CleverDistrict\");\n return acc.parent_account ? getDistrictAccount(acc.parent_account) : null;\n}\n\nexport function getAccountType(acc: Account): \"School\" | \"District\" {\n if (acc.clever_link) acc.clever_link.type === \"CleverSchool\" ? \"School\" : \"District\";\n return getDistrictAccount(acc) ? \"School\" : \"District\";\n}\n\nexport function transform_accounts_response(data: Account) {\n const accs_by_id = {};\n\n data = observable(data, {}, { deep: true });\n\n for (let acc of [data, ...data.ancestors, ...data?.descendants?.items]) {\n accs_by_id[acc.id] = observable(acc);\n }\n\n for (let acc of [data, ...data.ancestors, ...data?.descendants?.items]) {\n acc.parent_account = accs_by_id[acc.parent_account_id];\n }\n\n return data;\n}\n\nexport function transform_accounts_page(data: DataPage, context?: Account) {\n const accs_by_id = {};\n if (context) accs_by_id[context.id] = context;\n data.items = (data.items || []).map(acc => {\n acc = observable(acc);\n accs_by_id[acc.id] = acc;\n acc.parent_account = accs_by_id[acc.parent_account_id];\n return acc;\n })\n return data;\n}\n","import { CleverLink } from \"@/types/common\";\n\nexport const CleverType = ({ resource }: { resource: CleverLink }) => {\n const rtype = resource.type == \"CleverDistrict\" ? \"District\" : \"School\";\n const includesType = (resource.resource?.name as string)?.toLowerCase().endsWith(rtype.toLowerCase());\n\n if (includesType) return null;\n return <>({rtype});\n}\n","import React, { useMemo } from \"react\";\nimport moment, { Moment } from \"moment\";\n\nexport const FormatTime: React.FC<{ time: Moment | string, format?: string }> = ({ time, format }) => {\n if (!time) return '-';\n const momentTime = useMemo(() => typeof time == 'string' ? moment(time) : time, [time]);\n return momentTime.format(format || 'LLL') as any;\n}\n\nexport const FormatTimeRange: React.FC<{ start: Moment | string, end: Moment | string, format?: string }> = ({ start, end, format }) => {\n if (!start && !end) return <>All;\n\n if (!start) {\n return <>\n Before \n \n }\n\n if (!end) {\n return <>\n After \n \n }\n return <>\n to \n \n}\n","\nimport { action, observable } from \"mobx\";\nimport { useContext } from \"react\";\n\nimport { subscribe_channel } from \"@toolkit/cable\";\nimport { env } from \"@toolkit/environment\";\nimport { AbstractStore } from \"@toolkit/util/abstract_store\";\n\nimport { Account, getDistrictAccount } from \"@/types/account\";\n\nexport interface ImportBatch {\n id;\n district_id;\n current_stage;\n finished_at;\n updated_at;\n message;\n workflow_state;\n}\n\nexport class ImportBatchStore extends AbstractStore {\n static Context = this.context();\n\n @observable.shallow\n private accessor batches: Record = {};\n\n activate() {\n subscribe_channel(\"ImportBatchChannel\", {\n account_id: env.launch_account_id,\n }, action((data) => {\n this.batches[data.district_id] = data;\n }));\n }\n\n batchFor(account: Account) {\n const dist = getDistrictAccount(account);\n if (!dist) return null;\n\n const batch = this.batches[dist.clever_link.clever_id];\n if (!batch) return null;\n if (account.clever_link.last_successful_sync && account.clever_link.last_successful_sync > batch.updated_at) return null;\n\n return batch;\n }\n\n static use(account: Account): ImportBatch\n static use(): ImportBatchStore\n static use(account?: Account) {\n if (account) {\n return this.use().batchFor(account);\n } else {\n return useContext(this.Context);\n }\n }\n}\n","\nimport { Account } from \"@/types/account\";\nimport { IconWarningLine, Pill, Tooltip } from \"@instructure/ui\";\nimport { observer } from \"mobx-react\";\nimport { ImportBatchStore } from \"../ImportBatchStore\";\n\nexport const NotSharedPill = () => {\n return <>\n {/* */}\n Sharing Not Configured\n {/* */}\n \n};\nexport const NoSisIdPill = () => {\n return <>\n {/* */}\n SIS ID Not Found\n {/* */}\n \n};\nexport const PendingFirstPill = () => {\n return <>\n {/* */}\n Pending First Sync\n {/* */}\n \n};\n\nexport const AccountStatusPill = observer(({ account }: { account: Account }) => {\n if (!account.sis_id) return ;\n if (account.clever_link) {\n if (!account.clever_link.shared) return ;\n\n const current_import = ImportBatchStore.use(account);\n let last_sync_time = account.clever_link.last_successful_sync;\n if (current_import?.workflow_state == \"completed\") {\n last_sync_time = current_import.finished_at;\n }\n\n if (!last_sync_time) return ;\n }\n return null;\n})\n","import { observer } from \"mobx-react\";\nimport { Component } from \"react\";\n\nimport { Flex, Heading, IconButton, IconMoreLine, IconSubaccountsLine, Menu, Spinner, Text, Tooltip, View } from \"@instructure/ui\";\n\nimport { Separated } from \"@matchlighter/common_library/components/Separators\";\nimport { env } from \"@toolkit/environment\";\nimport { emulate_instui } from \"@toolkit/util/index\";\n\nimport { API } from \"@/api\";\nimport { CleverType } from \"@/components/CleverType\";\nimport { FormatTime } from \"@/components/FormatTime\";\nimport { Account } from \"@/types/account\";\nimport { Spacing } from \"@/types/common\";\nimport { ImportBatchStore } from \"../ImportBatchStore\";\nimport { NotSharedPill } from \"./Pills\";\n\nexport const AccountByline = ({ data, detailed, last_sync }: { data: Account, detailed?: boolean, last_sync?: boolean }) => {\n let show_sis_id = true;\n const bits = [];\n\n if (detailed) {\n if (data.clever_link) {\n show_sis_id = data.clever_link.clever_id != data.sis_id;\n bits.push();\n bits.push(<>SSO Provider: {data.clever_link?.sso_provider || Not Configured})\n if (last_sync !== false) {\n bits.push();\n }\n } else {\n bits.push(Account Not Linked);\n }\n }\n\n if (show_sis_id) {\n bits.unshift(<>\n SIS ID: {data.sis_id || Missing}\n )\n }\n\n return \n}\n\nexport const AccountName = ({ account }: { account: Account }) => {\n {/* {account.clever_link?.resource?.name || account.name} */ }\n return account.name;\n}\n\nexport const AccountHeader = observer(({ account, detail, margin }: { account: Account, detail?: boolean, margin?: Spacing }) => {\n return \n \n \n \n \n \n \n \n \n \n \n {detail && account.clever_link && !account.clever_link.shared && <>\n \n \n \n }\n \n \n \n \n \n \n \n \n \n})\n\nconst SyncNowMenuItem = emulate_instui(Menu.Item)(observer(\n ({ account, ...rest }: { account: Account }) => {\n const batch = ImportBatchStore.use(account);\n const isSyncing = batch?.workflow_state == 'pending';\n return {\n API.protectedRequest({ action: \"Begin Clever sync\" }, async () => {\n await API.post(`api/v1/accounts/${account.id}/sync_clever_now`);\n })\n }}>\n {isSyncing && }\n Sync from Clever\n \n }\n));\n\nexport class AccountActionsMenu extends Component<{ account: Account }, {}> {\n render() {\n const account = this.props.account;\n const menu_items = [];\n\n if (env.permissions.trigger_sync) {\n menu_items.push();\n }\n\n if (!menu_items.length) return null;\n\n return \n }\n >\n {menu_items}\n \n }\n}\n\nconst LastSyncedStatus = observer(({ account }: { account: Account }) => {\n let message = Never;\n\n const current_import = ImportBatchStore.use(account);\n if (current_import && current_import.workflow_state == \"pending\") {\n message = Syncing Now;\n } else if (!account.clever_link?.shared) {\n // Noop\n } else if (current_import && current_import.workflow_state == \"completed\" || account.clever_link?.last_successful_sync) {\n const time = current_import?.finished_at || account.clever_link.last_successful_sync;\n message = ;\n }\n\n return <>\n Last Synced: \n {message}\n \n \n})\n\nconst CleverResourceToken = ({ account }: { account: Account }) => {\n const cl = account.clever_link;\n let resource = Not Linked;\n\n if (cl) {\n if (cl.resource?.name) {\n resource = \n {cl.resource.name} \n \n } else {\n resource = <>\n {cl.clever_id} \n ;\n }\n }\n\n return <>\n Clever Resource: {resource}\n \n}\n","import { runInAction } from \"mobx\";\nimport { observer } from \"mobx-react\";\nimport { Component } from \"react\";\n\nimport { Flex, RadioInput, RadioInputGroup, TextInput } from \"@instructure/ui\";\n\nimport { FormSubmitDisabledReason, showFormPrompt, validators } from \"@inst_proserv/formkit\";\n\nimport { Field } from \"@matchlighter/cognizant_forms/components\";\n\nimport { API } from \"@/api\";\nimport { Account, getAccountType, getDistrictAccount } from \"@/types/account\";\nimport { AccountHeader } from \"./components/AccountHeader\";\n\nconst clever_validator = (value: string) => {\n if (!value || !value.match(/^[0-9a-f]{24}$/)) {\n return \"Must be a 24-character hexadecimal string\";\n }\n}\n\n@observer\nexport class SubAccountSettings extends Component<{ account: Account }> {\n static showAsModal = async (account: Account) => {\n const accType = getAccountType(account);\n return await showFormPrompt(, {\n title: `Link Clever ${accType}`,\n size: \"small\",\n submit(values: any, form) {\n return API.protectedRequest({ action: \"updating settings\", form}, async () => {\n const response = await API.post(`api/v1/accounts/${account.id}/settings`, {\n clever_resource_type: `Clever${accType}`,\n ...values,\n })\n runInAction(() => {\n Object.assign(account, response.data);\n })\n })\n },\n })\n }\n\n render() {\n const { account } = this.props;\n const type = getAccountType(account);\n const districtAccount = getDistrictAccount(account);\n\n const link = account.clever_link\n\n return <>\n \n\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n }\n}\n","import { action } from \"mobx\";\nimport { observer } from \"mobx-react\";\nimport { Component } from \"react\";\n\nimport { Button, IconAdminToolsLine, Tooltip } from \"@instructure/ui\";\n\nimport { Account } from \"@/types/account\";\nimport { SubAccountSettings } from \"../SubAccountSettings\";\nimport { getDistrictAccount } from \"@/types/account\";\n\n@observer\nexport class SetupButton extends Component<{ account: Account, callback?: (result) => void }> {\n @action.bound\n async handleSetup() {\n const result = await SubAccountSettings.showAsModal(this.props.account);\n this.props.callback?.(result);\n }\n\n render() {\n const { account } = this.props;\n\n let disabled_reason: string;\n if (!account.sis_id) disabled_reason = \"This account does not have a SIS ID\";\n\n if (account.ancestry_depth > 1 && !getDistrictAccount(account)) {\n disabled_reason = \"District account must be configured first\";\n }\n\n const btn = }\n withBackground={false}\n color=\"primary\"\n onClick={this.handleSetup}\n >\n Set Up\n ;\n\n if (disabled_reason) {\n return {btn};\n } else {\n return btn;\n }\n }\n}\n","import { observer } from \"mobx-react\";\nimport { Component } from \"react\";\n\nimport { Flex, Heading, IconArrowNestLine, IconSubaccountsLine, Table as InstTable, Link, Text, View } from \"@instructure/ui\";\n\nimport { ATColumnSpec, AsyncTable } from \"@toolkit/components/AsyncTable\";\nimport { env } from \"@toolkit/environment\";\nimport { DataPage } from \"@toolkit/util/DataFetcher\";\nimport { emulate_instui } from \"@toolkit/util/index\";\n\nimport { API } from \"@/api\";\nimport { SmartLink } from \"@/components/SmartLink\";\nimport { TableTitle } from \"@/components/TableTitle\";\nimport { Account, transform_accounts_page } from \"@/types/account\";\nimport { AccountActionsMenu, AccountByline, AccountName } from \"./components/AccountHeader\";\nimport { AccountStatusPill } from \"./components/Pills\";\nimport { SetupButton } from \"./components/SetupButton\";\n\nconst COLUMNS: ATColumnSpec[] = [\n { key: \"name\", title: \"Canvas Sub-Account\" },\n { key: \"setup\", title: \"\", width: \"0\" },\n]\n\n@observer\nexport class SubAccountListView extends Component {\n render() {\n return <>\n Integration Account Index\n\n \n\n \n \n }\n}\n\n@observer\nexport class SubAccountList extends Component<{ sub_account?: Account }> {\n accounts_fetcher = API.fetcher>(`api/v1/accounts/${this.props.sub_account?.id || 'top'}/sub_accounts`, {\n transform: (page) => transform_accounts_page(page, this.props.sub_account),\n initial: this.props.sub_account?.descendants,\n })\n\n render() {\n return <>\n }\n />\n \n }\n}\n\n\nconst AccountNameLink = ({ data }: { data: Account }) => {\n if (!data.clever_link) return {data.name};\n return \n \n \n}\n\n@observer\n@emulate_instui(InstTable.Row)\nclass Row extends Component<{ data: Account }, {}> {\n render_actions() {\n const account = this.props.data;\n if (account.clever_link) {\n return \n } else {\n return \n }\n }\n\n render() {\n const { data: row, ...rest } = this.props;\n const level = row.ancestry_depth - 1;\n const indent = Math.max(0, level - 1);\n\n return <>\n \n \n \n \n
\n \n {level > 0 && \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 \n {this.render_actions()}\n \n
\n
\n
\n \n }\n}\n","\nexport function groupBy(arr: T[], key: string | ((item: T) => string)): { [key: string]: T[] } {\n const result = {};\n for (let item of arr) {\n const k = typeof key == 'string' ? item[key] : key(item);\n if (!result[k]) result[k] = [];\n result[k].push(item);\n }\n return result;\n}\n\nexport function default_calc_property(obj: O, prop: keyof O, getter: (object: O) => T) {\n if ((obj as Object).hasOwnProperty(prop)) return;\n\n Object.defineProperty(obj, prop, {\n get: function () { return getter(this) },\n set: (value: T) => {\n Object.defineProperty(obj, prop, { value, writable: true });\n },\n enumerable: true,\n configurable: true,\n })\n}\n","\nimport { observable } from \"mobx\";\nimport { observer } from \"mobx-react\";\nimport { Component } from \"react\";\n\nimport { Select } from \"@instructure/ui\";\nimport { Text } from \"@instructure/ui-text\";\nimport { View } from \"@instructure/ui-view\";\n\nimport { toTitleCase } from '@matchlighter/common_library/strings';\n\n// import { AsyncSelect, WAsyncSelectProps, FetchUserError } from \"../components/TempAsyncSelect\";\nimport { AsyncSelect, FetchUserError, WAsyncSelectProps } from \"@toolkit/components/AsyncSelect\";\n\nimport { API } from \"@/api\";\nimport { BlueprintCourse } from \"@/types/common\";\nimport { groupBy } from \"@/util\";\n\nlet last_acc_id;\nlet last_promise;\n\nasync function fetchAccountBlueprints(account: number) {\n if (last_acc_id != account) {\n last_acc_id = account;\n last_promise = null;\n }\n\n if (!last_promise) {\n last_promise = API.get(`api/v1/accounts/${account}/blueprints`, {\n // params: { search_term: search, page: search ? '1' : 'all' },\n })\n };\n\n return await last_promise;\n}\n\n@observer\nexport class BlueprintCourseSelect extends Component & { account_id: number }> {\n @observable accessor options;\n\n fetch = async (search) => {\n if (search && search.length < 3) throw new FetchUserError(\"Type at least 3 characters to search\");\n\n const response = await fetchAccountBlueprints(this.props.account_id);\n\n let items = [];\n for (let [type, data] of Object.entries(response.data as Record)) {\n let i = 0;\n for (let v of data) {\n v['type'] = type;\n if (search) {\n if (!v.name.toLowerCase().includes(search.toLowerCase())) continue;\n }\n items.push(v);\n if (++i >= 5) break;\n }\n }\n\n return items;\n }\n\n renderGroupLabel = (type: string) => {\n let label = \"Gradient Primaries\";\n\n if (type != \"root\") {\n label = toTitleCase(type) + \" Overrides\";\n }\n\n return \n {label}\n \n }\n\n renderOptions: WAsyncSelectProps['renderOptions'] = (opts, { render_option }) => {\n const grouped = groupBy(opts, 'type');\n\n if (Object.keys(grouped).length == 1) {\n return opts.map(render_option);\n }\n\n return Object.entries(grouped).map(([type, opts]) => {\n return \n {opts.map(render_option)}\n \n })\n }\n\n render() {\n const { ...pass } = this.props\n return opt?.name}\n renderOptions={this.renderOptions}\n // should_cache_options={false}\n // fetch_on_open=\"always\"\n renderOption={(opt: BlueprintCourse, meta) => {\n return <>\n \n {opt.name}\n \n \n {opt.sis_course_id}\n \n \n }}\n />\n }\n}\n","import { action, computed, observable, runInAction, toJS } from \"mobx\";\nimport { observer } from \"mobx-react\";\nimport { Component } from \"react\";\nimport { Prompt } from \"react-router\";\n\nimport { Button, Flex, IconBlueprintLine, IconCheckMarkIndeterminateLine, IconCompleteLine, IconCoursesLine, IconUserLine, Table as InstTable, Link, ScreenReaderContent, Text, View } from \"@instructure/ui\";\n\nimport { ATColumnSpec, AsyncTable } from \"@toolkit/components/AsyncTable\";\nimport { WorkingButton } from \"@toolkit/components/WorkingButton\";\nimport { env } from \"@toolkit/environment\";\nimport { DataPage } from \"@toolkit/util/DataFetcher\";\nimport { emulate_instui } from \"@toolkit/util/index\";\n\nimport { API } from \"@/api\";\nimport { TableTitle } from \"@/components/TableTitle\";\nimport { Account } from \"@/types/account\";\nimport { BlueprintCourse, CleverUser, Course } from \"@/types/common\";\nimport { BlueprintCourseSelect } from \"./BlueprintCourseSelect\";\n\nconst COLUMNS: ATColumnSpec[] = [\n { key: \"name\", title: \"Canvas Course\", sortable: true },\n { key: \"teacher\", title: \"Teacher\", sortable: true },\n { key: \"blueprint\", title: \"Blueprint Parent Course\" },\n { key: \"actions\", title: \"\", textAlign: \"end\", width: \"200px\" },\n]\n\nconst CourseTile = observer(({ course }: { course: Course }) => {\n return <>\n \n \n \n \n {course.is_blueprint ? : }\n \n \n \n\n \n {course.name}\n\n \n \n {course.is_blueprint ? \"Blueprint SIS\" : \"Clever\"} ID: {course.sis_id || None}\n \n \n \n \n \n});\nconst UserTile = observer(({ user }: { user: CleverUser }) => {\n return <>\n \n \n \n \n \n \n \n \n\n \n {user.name.last}, {user.name.first} {user.name.middle}\n\n \n \n SIS ID: {user.roles?.teacher?.sis_id || None}\n \n \n \n \n \n});\n\n@observer\nexport class CoursesTable extends Component<{ account: Account }> {\n courses_fetcher = API.fetcher(`api/v1/accounts/${this.props.account.id}/courses?page_size=10`, {});\n\n @observable accessor blueprints_map: Record = {};\n\n @action.bound\n promptNavigation(location: any, action: string) {\n if (Object.values(this.blueprints_map).filter(v => !!v).length) {\n return \"You have unsaved changes. Are you sure you want to leave?\";\n }\n return true;\n }\n\n render() {\n if (!this.props.account.clever_link) {\n return <>\n \n This account is not linked to Clever\n \n }\n\n return <>\n \n\n \n\n }\n />\n \n }\n}\n\n@observer\n@emulate_instui(InstTable.Row)\nclass Row extends Component<{ data: Course, account: Account, blueprint_map: Record }, {}> {\n @computed get selected_blueprint() {\n return this.props.blueprint_map[this.props.data.id];\n }\n\n @action.bound\n handleBlueprintSelected(bp: BlueprintCourse) {\n this.props.blueprint_map[this.props.data.id] = bp;\n }\n\n @action.bound\n async handleLinkClicked() {\n const course = this.props.data;\n await API.protectedRequest({ action: \"linking Blueprint\" }, async () => {\n const response = await API.post(`api/v1/courses/${this.props.data.id}/blueprint`, { blueprint_course_id: this.selected_blueprint.id });\n runInAction(() => {\n console.log(toJS(course), response.data)\n Object.assign(course, response.data);\n delete this.props.blueprint_map[course.id];\n })\n })\n }\n\n @action.bound\n handleCancelClicked() {\n delete this.props.blueprint_map[this.props.data.id];\n }\n\n renderBlueprintCell() {\n const { data: row, ...rest } = this.props;\n if (row.blueprint_course) {\n const bp = row.blueprint_course;\n return <>\n \n \n }\n\n return \n }\n\n renderActionCell() {\n const { data: row, ...rest } = this.props;\n\n if (row.blueprint_course) {\n return <>\n Linked\n \n }\n\n if (this.selected_blueprint) {\n return <>\n \n  \n Link\n \n }\n\n return ;\n }\n\n render() {\n const { data: row, ...rest } = this.props;\n return <>\n \n \n \n \n\n \n \n \n\n \n {this.renderBlueprintCell()}\n \n\n \n {this.renderActionCell()}\n \n \n \n }\n}\n\n","import { observer } from \"mobx-react\";\nimport { Component } from \"react\";\nimport { RouteComponentProps } from \"react-router-dom\";\n\nimport { Breadcrumb, Flex, View } from \"@instructure/ui\";\n\nimport { env } from \"@toolkit/environment\";\n\nimport { API } from \"@/api\";\nimport { SmartLink } from \"@/components/SmartLink\";\nimport { Account, getAccountType, transform_accounts_response } from \"@/types/account\";\nimport { SubAccountList } from \"./SubAccountList\";\nimport { AccountHeader } from \"./components/AccountHeader\";\nimport { CoursesTable } from \"./components/CoursesTable\";\nimport { SetupButton } from \"./components/SetupButton\";\n\n@observer\nexport class SubAccountView extends Component> {\n account_fetcher = API.fetcher(`api/v1/accounts/${this.props.match.params.account}`, {\n transform: transform_accounts_response,\n })\n\n get account() { return this.account_fetcher.data }\n\n componentDidMount(): void {\n this.account_fetcher.activate();\n }\n\n renderCoursesTable() {\n if (this.account.clever_link?.type == \"CleverDistrict\") {\n return <>\n {/* School Accounts */}\n \n \n }\n\n if (!this.account.clever_link) {\n if (getAccountType(this.account) == \"School\" && env.permissions.super_user) {\n return <>\n \n \n
This account has not yet been paired to a Clever School
\n
\n
\n \n
\n
\n \n }\n\n return <>\n \n
This account has not been configured for use with Clever
\n
\n \n }\n\n return \n }\n\n build_breadcrumbs() {\n let breadcrumbs = [];\n for (let acc of this.account.ancestors || []) {\n breadcrumbs.push({acc.name})\n }\n if (env.root_launch) {\n breadcrumbs.shift();\n breadcrumbs.unshift(Index)\n }\n breadcrumbs.push({this.account.name})\n return breadcrumbs;\n }\n\n render() {\n if (this.account_fetcher.fetchStatus != \"loaded\") return null;\n\n return <>\n \n\n \n \n \n \n \n\n {this.renderCoursesTable()}\n \n }\n}\n","import { route } from '@matchlighter/common_library/react_router/route_draw';\nimport { SubAccountListView } from './SubAccountList';\nimport { SubAccountView } from './SubAccountView';\n\nexport const routes = () => {\n route('/', { component: SubAccountListView, exact: true });\n route(':account/', { component: SubAccountView, keyBy: \"match_path\" });\n}\n","import { route } from '@matchlighter/common_library/react_router/route_draw'\n\nimport { routes as account_routes } from './accounts/routes'\n\nexport const AccountNavRoutes = route('/', {}, () => {\n route('accounts/', account_routes);\n}).renderAllRouteLayers();\n","\nimport { Component } from \"react\";\n\nimport { View } from \"@instructure/ui-view\";\n\nimport { ForceTrailingSlashes } from '@matchlighter/common_library/react_router/ForceTrailingSlashes';\n\nimport { AlertProvider, AlertsContainer } from \"@toolkit/components/AlertManager\";\nimport { ApplyCanvasTheme } from \"@toolkit/components/ApplyCanvasTheme\";\nimport { PromptContainer, PromptProvider } from \"@toolkit/components/PromptManager\";\nimport { PositionedWaterMark } from \"@toolkit/components/watermark/index\";\nimport { LtiRouter as Router } from \"@toolkit/extra/LtiHistory\";\n\nimport '@/bootstrap';\nimport '@/screen.scss';\nimport { env } from \"@/environment\";\nimport { AccountNavRoutes } from \"@/routes/routes\";\nimport { ImportBatchStore } from \"@/routes/accounts/ImportBatchStore\";\n\nexport default class AccountNavLaunch extends Component {\n batch_store = new ImportBatchStore();\n\n componentDidMount(): void {\n this.batch_store.activate();\n }\n\n render() {\n return <>\n \n \n\n \n \n \n \n \n \n \n {/* */}\n\n \n \n {Object.values(AccountNavRoutes)}\n \n \n \n \n \n \n \n \n }\n}\n","import { action } from \"mobx\";\nimport { observer } from \"mobx-react\";\nimport { Component } from \"react\";\n\nimport { Flex, Heading, Text, View } from \"@instructure/ui\";\nimport { WorkingButton } from \"@toolkit/components/WorkingButton\";\nimport { env } from \"@toolkit/environment\";\nimport { DataFetcher } from \"@toolkit/util/DataFetcher\";\n\nimport { Separated } from \"@matchlighter/common_library/components/Separators\";\nimport { toTitleCase } from \"@matchlighter/common_library/strings\";\n\nimport { API } from \"@/api\";\nimport { CrosslistSection } from \"@/types/common\";\n\nasync function refetchAll(fetchers: DataFetcher[]) {\n for (const fetcher of fetchers) {\n fetcher.forceRefetch(true);\n }\n await Promise.all(fetchers.map(fetcher => fetcher.catchupToCurrent()));\n}\n\n@observer\nexport class CrosslistingPage extends Component {\n current_sections = API.fetcher(`api/v1/courses/${env.launch_course_id}/crosslisting/current_sections`);\n available_sections = API.fetcher(`api/v1/courses/${env.launch_course_id}/crosslisting/valid_sections`);\n\n componentDidMount(): void {\n this.current_sections.activate();\n this.available_sections.activate();\n }\n\n @action.bound async refresh() {\n await refetchAll([this.current_sections, this.available_sections]);\n }\n\n render() {\n return <>\n Configure Crosslisting\n \n \n Crosslist Sections from other Content Courses into this one\n \n \n \n \n Sections in this Course\n \n \n \n Crosslist more Sections\n\n \n\n \n Don't see a Section you're looking for? It may already be crosslisted or it may be linked to a different Blueprint.\n \n \n \n \n }\n}\n\nconst SectionsPanel = ({ sections, refresh }: { sections: CrosslistSection[], refresh: () => Promise }) => {\n return
\n {sections.map(section => )}\n
\n}\n\n@observer\nclass SectionTile extends Component<{ section: CrosslistSection, refreshLists?: () => Promise }> {\n\n @action.bound async crosslist() {\n await API.protectedRequest({ action: `crosslisting Section '${this.props.section.name}'` }, () => {\n return API.post(`api/v1/courses/${env.launch_course_id}/crosslisting/crosslist`, {\n course_id: env.launch_course_id,\n section_id: this.props.section.canvas_id,\n })\n })\n await this.props.refreshLists?.();\n }\n\n @action.bound async decrosslist() {\n await API.protectedRequest({ action: `decrosslisting Section '${this.props.section.name}'` }, () => {\n return API.post(`api/v1/courses/${env.launch_course_id}/crosslisting/decrosslist`, {\n course_id: env.launch_course_id,\n section_id: this.props.section.canvas_id,\n })\n })\n await this.props.refreshLists?.();\n }\n\n render() {\n const { section } = this.props;\n const isCrosslisted = !!section.original_course_canvas_id;\n const isOwnedCourse = env.launch_course_id == section.course_canvas_id && section.original_course_canvas_id == null;\n\n let action = null;\n if (!isOwnedCourse) {\n if (isCrosslisted) {\n action = Decrosslist\n } else {\n action = Crosslist\n }\n }\n\n const bits = [\n <>SIS ID: {section.client_sis_id || \"N/A\"},\n <>Grade: {section.grade || \"N/A\"},\n ]\n\n return
\n \n \n \n \n \n {section.name}\n \n \n {/* {!isOwnedCourse && <>\n \n From: {section.owning_course?.name}\n \n } */}\n \n Subject: {section.subject ? toTitleCase(section.subject) : \"N/A\"}\n \n \n \n \n \n \n {action}\n \n \n \n
\n }\n}\n","\nimport { Component } from \"react\";\n\nimport { View } from \"@instructure/ui-view\";\n\nimport { ForceTrailingSlashes } from '@matchlighter/common_library/react_router/ForceTrailingSlashes';\n\nimport { AlertProvider, AlertsContainer } from \"@toolkit/components/AlertManager\";\nimport { ApplyCanvasTheme } from \"@toolkit/components/ApplyCanvasTheme\";\nimport { PromptContainer, PromptProvider } from \"@toolkit/components/PromptManager\";\nimport { PositionedWaterMark } from \"@toolkit/components/watermark/index\";\nimport { LtiRouter as Router } from \"@toolkit/extra/LtiHistory\";\n\nimport '@/bootstrap';\nimport '@/screen.scss';\n\nimport { env } from \"@/environment\";\nimport { CrosslistingPage } from \"@/routes/crosslisting/CrosslistingPage\";\n\nexport default class CourseHomeSubNavigation extends Component {\n render() {\n return <>\n \n \n\n \n \n \n \n \n \n {/* */}\n\n \n \n \n \n \n \n \n \n \n \n }\n}\n","import React, { Component } from \"react\";\n\nimport { Alert } from \"@instructure/ui-alerts\";\n\nimport { ApplyCanvasTheme } from \"@toolkit/components/ApplyCanvasTheme\";\nimport { LtiFitHelper } from \"@toolkit/components/ScrollHacksManager\";\nimport { PositionedWaterMark } from \"@toolkit/components/watermark/index\";\n\nimport '@/bootstrap';\nimport '@/screen.scss';\n\nexport default class GeneralError extends Component<{ message: string | React.ReactElement }> {\n render() {\n return <>\n \n \n\n \n
\n {this.props.message}\n
\n
\n \n }\n}\n","\nimport { Component } from \"react\";\n\nimport { AlertManager, AlertProvider, AlertsContainer, DeclAlert } from \"@inst_proserv/toolkit/components/AlertManager\";\nimport { Button, Heading, IconCanvasLogoLine, Link, Text, View } from \"@instructure/ui\";\n\nimport '@/bootstrap';\nimport '@/screen.scss';\n\nimport '@/routes/login/screen.scss';\nimport { env } from \"@toolkit/environment\";\n\nexport default class LoginLanding extends Component {\n componentDidMount(): void {\n const urlParams = new URLSearchParams(window.location.search);\n const message = urlParams.get('message');\n if (message) {\n AlertManager.default.addAlert(message, {\n level: 'error',\n timeout: 0,\n })\n }\n }\n\n render() {\n return <>\n \n \n\n
\n
\n
\n \"Gradient\n
\n
\n
\n
\n
\n \"Gradient\n
\n \"Gradient\n
\n
\n \n
\n
\n
\n
\n \n }\n}\n\nclass LoginForm extends Component {\n\n render() {\n return <>\n Sign In\n Select an authentication method below:\n\n Students / Faculty\n \n Select your school/district authentication and document provider below:\n \n }\n >\n Google\n \n }\n >\n Microsoft\n \n\n Parents / Observers\n \n To view your child/student’s progress, parents or guardians must register and set up their Canvas username and password. If you have completed registration and have your Canvas username & password, select Canvas below.\n \n
}\n >\n Canvas\n \n\n \n Terms and Conditions\n  | \n Privacy Policy\n \n \n }\n}\n","var map = {\n\t\"./af\": 2786,\n\t\"./af.js\": 2786,\n\t\"./ar\": 867,\n\t\"./ar-dz\": 4130,\n\t\"./ar-dz.js\": 4130,\n\t\"./ar-kw\": 6135,\n\t\"./ar-kw.js\": 6135,\n\t\"./ar-ly\": 6440,\n\t\"./ar-ly.js\": 6440,\n\t\"./ar-ma\": 7702,\n\t\"./ar-ma.js\": 7702,\n\t\"./ar-sa\": 6040,\n\t\"./ar-sa.js\": 6040,\n\t\"./ar-tn\": 7100,\n\t\"./ar-tn.js\": 7100,\n\t\"./ar.js\": 867,\n\t\"./az\": 1083,\n\t\"./az.js\": 1083,\n\t\"./be\": 9808,\n\t\"./be.js\": 9808,\n\t\"./bg\": 8338,\n\t\"./bg.js\": 8338,\n\t\"./bm\": 7438,\n\t\"./bm.js\": 7438,\n\t\"./bn\": 8905,\n\t\"./bn-bd\": 6225,\n\t\"./bn-bd.js\": 6225,\n\t\"./bn.js\": 8905,\n\t\"./bo\": 1560,\n\t\"./bo.js\": 1560,\n\t\"./br\": 1278,\n\t\"./br.js\": 1278,\n\t\"./bs\": 622,\n\t\"./bs.js\": 622,\n\t\"./ca\": 2468,\n\t\"./ca.js\": 2468,\n\t\"./cs\": 5822,\n\t\"./cs.js\": 5822,\n\t\"./cv\": 877,\n\t\"./cv.js\": 877,\n\t\"./cy\": 7373,\n\t\"./cy.js\": 7373,\n\t\"./da\": 4780,\n\t\"./da.js\": 4780,\n\t\"./de\": 9740,\n\t\"./de-at\": 217,\n\t\"./de-at.js\": 217,\n\t\"./de-ch\": 894,\n\t\"./de-ch.js\": 894,\n\t\"./de.js\": 9740,\n\t\"./dv\": 5300,\n\t\"./dv.js\": 5300,\n\t\"./el\": 837,\n\t\"./el.js\": 837,\n\t\"./en-au\": 8348,\n\t\"./en-au.js\": 8348,\n\t\"./en-ca\": 7925,\n\t\"./en-ca.js\": 7925,\n\t\"./en-gb\": 2243,\n\t\"./en-gb.js\": 2243,\n\t\"./en-ie\": 6436,\n\t\"./en-ie.js\": 6436,\n\t\"./en-il\": 7207,\n\t\"./en-il.js\": 7207,\n\t\"./en-in\": 4175,\n\t\"./en-in.js\": 4175,\n\t\"./en-nz\": 6319,\n\t\"./en-nz.js\": 6319,\n\t\"./en-sg\": 1662,\n\t\"./en-sg.js\": 1662,\n\t\"./eo\": 2915,\n\t\"./eo.js\": 2915,\n\t\"./es\": 5655,\n\t\"./es-do\": 5251,\n\t\"./es-do.js\": 5251,\n\t\"./es-mx\": 6112,\n\t\"./es-mx.js\": 6112,\n\t\"./es-us\": 1146,\n\t\"./es-us.js\": 1146,\n\t\"./es.js\": 5655,\n\t\"./et\": 5603,\n\t\"./et.js\": 5603,\n\t\"./eu\": 7763,\n\t\"./eu.js\": 7763,\n\t\"./fa\": 6959,\n\t\"./fa.js\": 6959,\n\t\"./fi\": 1897,\n\t\"./fi.js\": 1897,\n\t\"./fil\": 2549,\n\t\"./fil.js\": 2549,\n\t\"./fo\": 4694,\n\t\"./fo.js\": 4694,\n\t\"./fr\": 4470,\n\t\"./fr-ca\": 3049,\n\t\"./fr-ca.js\": 3049,\n\t\"./fr-ch\": 2330,\n\t\"./fr-ch.js\": 2330,\n\t\"./fr.js\": 4470,\n\t\"./fy\": 5044,\n\t\"./fy.js\": 5044,\n\t\"./ga\": 9295,\n\t\"./ga.js\": 9295,\n\t\"./gd\": 2101,\n\t\"./gd.js\": 2101,\n\t\"./gl\": 8794,\n\t\"./gl.js\": 8794,\n\t\"./gom-deva\": 7884,\n\t\"./gom-deva.js\": 7884,\n\t\"./gom-latn\": 3168,\n\t\"./gom-latn.js\": 3168,\n\t\"./gu\": 5349,\n\t\"./gu.js\": 5349,\n\t\"./he\": 4206,\n\t\"./he.js\": 4206,\n\t\"./hi\": 94,\n\t\"./hi.js\": 94,\n\t\"./hr\": 316,\n\t\"./hr.js\": 316,\n\t\"./hu\": 2138,\n\t\"./hu.js\": 2138,\n\t\"./hy-am\": 1423,\n\t\"./hy-am.js\": 1423,\n\t\"./id\": 9218,\n\t\"./id.js\": 9218,\n\t\"./is\": 135,\n\t\"./is.js\": 135,\n\t\"./it\": 626,\n\t\"./it-ch\": 150,\n\t\"./it-ch.js\": 150,\n\t\"./it.js\": 626,\n\t\"./ja\": 9183,\n\t\"./ja.js\": 9183,\n\t\"./jv\": 4286,\n\t\"./jv.js\": 4286,\n\t\"./ka\": 2105,\n\t\"./ka.js\": 2105,\n\t\"./kk\": 7772,\n\t\"./kk.js\": 7772,\n\t\"./km\": 8758,\n\t\"./km.js\": 8758,\n\t\"./kn\": 9282,\n\t\"./kn.js\": 9282,\n\t\"./ko\": 3730,\n\t\"./ko.js\": 3730,\n\t\"./ku\": 1408,\n\t\"./ku.js\": 1408,\n\t\"./ky\": 3291,\n\t\"./ky.js\": 3291,\n\t\"./lb\": 6841,\n\t\"./lb.js\": 6841,\n\t\"./lo\": 5466,\n\t\"./lo.js\": 5466,\n\t\"./lt\": 7010,\n\t\"./lt.js\": 7010,\n\t\"./lv\": 7595,\n\t\"./lv.js\": 7595,\n\t\"./me\": 9861,\n\t\"./me.js\": 9861,\n\t\"./mi\": 5493,\n\t\"./mi.js\": 5493,\n\t\"./mk\": 5966,\n\t\"./mk.js\": 5966,\n\t\"./ml\": 7341,\n\t\"./ml.js\": 7341,\n\t\"./mn\": 5115,\n\t\"./mn.js\": 5115,\n\t\"./mr\": 370,\n\t\"./mr.js\": 370,\n\t\"./ms\": 9847,\n\t\"./ms-my\": 1237,\n\t\"./ms-my.js\": 1237,\n\t\"./ms.js\": 9847,\n\t\"./mt\": 2126,\n\t\"./mt.js\": 2126,\n\t\"./my\": 6165,\n\t\"./my.js\": 6165,\n\t\"./nb\": 4924,\n\t\"./nb.js\": 4924,\n\t\"./ne\": 6744,\n\t\"./ne.js\": 6744,\n\t\"./nl\": 3901,\n\t\"./nl-be\": 9814,\n\t\"./nl-be.js\": 9814,\n\t\"./nl.js\": 3901,\n\t\"./nn\": 3877,\n\t\"./nn.js\": 3877,\n\t\"./oc-lnc\": 2135,\n\t\"./oc-lnc.js\": 2135,\n\t\"./pa-in\": 5858,\n\t\"./pa-in.js\": 5858,\n\t\"./pl\": 4495,\n\t\"./pl.js\": 4495,\n\t\"./pt\": 9520,\n\t\"./pt-br\": 7971,\n\t\"./pt-br.js\": 7971,\n\t\"./pt.js\": 9520,\n\t\"./ro\": 6459,\n\t\"./ro.js\": 6459,\n\t\"./ru\": 1793,\n\t\"./ru.js\": 1793,\n\t\"./sd\": 950,\n\t\"./sd.js\": 950,\n\t\"./se\": 490,\n\t\"./se.js\": 490,\n\t\"./si\": 124,\n\t\"./si.js\": 124,\n\t\"./sk\": 4249,\n\t\"./sk.js\": 4249,\n\t\"./sl\": 4985,\n\t\"./sl.js\": 4985,\n\t\"./sq\": 1104,\n\t\"./sq.js\": 1104,\n\t\"./sr\": 9131,\n\t\"./sr-cyrl\": 9915,\n\t\"./sr-cyrl.js\": 9915,\n\t\"./sr.js\": 9131,\n\t\"./ss\": 5893,\n\t\"./ss.js\": 5893,\n\t\"./sv\": 8760,\n\t\"./sv.js\": 8760,\n\t\"./sw\": 1172,\n\t\"./sw.js\": 1172,\n\t\"./ta\": 7333,\n\t\"./ta.js\": 7333,\n\t\"./te\": 3110,\n\t\"./te.js\": 3110,\n\t\"./tet\": 2095,\n\t\"./tet.js\": 2095,\n\t\"./tg\": 4257,\n\t\"./tg.js\": 4257,\n\t\"./th\": 9041,\n\t\"./th.js\": 9041,\n\t\"./tk\": 9005,\n\t\"./tk.js\": 9005,\n\t\"./tl-ph\": 5768,\n\t\"./tl-ph.js\": 5768,\n\t\"./tlh\": 9444,\n\t\"./tlh.js\": 9444,\n\t\"./tr\": 2397,\n\t\"./tr.js\": 2397,\n\t\"./tzl\": 8254,\n\t\"./tzl.js\": 8254,\n\t\"./tzm\": 1106,\n\t\"./tzm-latn\": 699,\n\t\"./tzm-latn.js\": 699,\n\t\"./tzm.js\": 1106,\n\t\"./ug-cn\": 9288,\n\t\"./ug-cn.js\": 9288,\n\t\"./uk\": 7691,\n\t\"./uk.js\": 7691,\n\t\"./ur\": 3795,\n\t\"./ur.js\": 3795,\n\t\"./uz\": 6791,\n\t\"./uz-latn\": 588,\n\t\"./uz-latn.js\": 588,\n\t\"./uz.js\": 6791,\n\t\"./vi\": 5666,\n\t\"./vi.js\": 5666,\n\t\"./x-pseudo\": 4378,\n\t\"./x-pseudo.js\": 4378,\n\t\"./yo\": 5805,\n\t\"./yo.js\": 5805,\n\t\"./zh-cn\": 3839,\n\t\"./zh-cn.js\": 3839,\n\t\"./zh-hk\": 5726,\n\t\"./zh-hk.js\": 5726,\n\t\"./zh-mo\": 9807,\n\t\"./zh-mo.js\": 9807,\n\t\"./zh-tw\": 4152,\n\t\"./zh-tw.js\": 4152\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 = 6700;"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","webpackContextKeys","Object","resolve","module","exports","isSomeHttpError","err","response","undefined","isHttpError","status","RegExp","replace","test","String","async","compareRequests","reqParams","lastResponse","config","url","deepEqual","params","API","request","APIBase","Axios","constructor","super","axios","defaults","baseURL","env","organization_id","subURL","headers","csrf_token","session_key","withCredentials","base_url","this","create_href","to","data","FormData","saveModel","method","urlJoin","fetcher","transform","DataFetcher","get","url_params","observable","download_file","file","in_tab","tokenResponse","token","URL","window","location","searchParams","set","element","document","createElement","setAttribute","toString","body","appendChild","click","removeChild","protectedRequest","options","act","ex","error","message","AlertManager","default","addAlert","level","timeout","form","transformHttpErrors","action","captureException","console","class_transformer","cls","d","transform_page","page","items","page_transformer","prototype","saveApiModel","environment","Sentry","dsn","sentry_dsn","mobx","enforceActions","moment","setDefault","timezone","guess","console_error","args","regexps","regexes","k","str","entries","log","ABS_URL","resolveLink","link","inProps","children","active","button","props","Component","Button","Link","React","_extends","onClick","target","href","as","RouteLink","SmartLink","rest","TableTitle","observer","title","subnote","Text","size","total_count","page_count","pluralize","Fragment","Flex","margin","Item","weight","View","getDistrictAccount","acc","clever_link","type","ancestors","find","parent_account","getAccountType","transform_accounts_response","accs_by_id","deep","descendants","parent_account_id","transform_accounts_page","context","CleverType","resource","rtype","includesType","name","toLowerCase","endsWith","FormatTime","time","format","momentTime","useMemo","FormatTimeRange","start","end","_dec","shallow","ImportBatchStore","AbstractStore","_init_batches","_initProto","_applyDecs","static","batches","v","activate","subscribe_channel","account_id","launch_account_id","district_id","batchFor","account","dist","batch","clever_id","last_successful_sync","updated_at","use","useContext","Context","NotSharedPill","Pill","color","NoSisIdPill","IconWarningLine","PendingFirstPill","AccountStatusPill","sis_id","shared","current_import","last_sync_time","workflow_state","finished_at","AccountByline","detailed","last_sync","show_sis_id","bits","push","CleverResourceToken","sso_provider","LastSyncedStatus","unshift","Separated","sep","AccountName","AccountHeader","detail","alignItems","Heading","IconSubaccountsLine","shouldGrow","height","AccountActionsMenu","SyncNowMenuItem","emulate_instui","Menu","isSyncing","disabled","post","Spinner","renderTitle","render","menu_items","permissions","trigger_sync","key","length","trigger","IconButton","withBackground","screenReaderLabel","IconMoreLine","cl","Tooltip","renderTip","clever_validator","value","match","_SubAccountSettings","_identity","SubAccountSettings","_initClass","c","districtAccount","style","display","gap","Field","validate","initialValue","TextInput","renderLabel","validators","RadioInputGroup","description","RadioInput","label","FormSubmitDisabledReason","showAsModal","accType","showFormPrompt","submit","values","clever_resource_type","runInAction","assign","_SetupButton","bound","SetupButton","handleSetup","result","callback","disabled_reason","ancestry_depth","btn","interaction","renderIcon","IconAdminToolsLine","COLUMNS","width","_SubAccountListView","SubAccountListView","_SubAccountList","SubAccountList","_initClass2","accounts_fetcher","sub_account","initial","AsyncTable","hover","columns","renderRow","_Row","AccountNameLink","InstTable","Row","_initClass3","render_actions","row","indent","Math","max","Cell","direction","paddingLeft","IconArrowNestLine","canvas_url","groupBy","arr","item","default_calc_property","obj","prop","getter","hasOwnProperty","defineProperty","writable","enumerable","configurable","last_acc_id","last_promise","fetchAccountBlueprints","_BlueprintCourseSelec","BlueprintCourseSelect","_init_options","fetch","search","FetchUserError","i","includes","renderGroupLabel","toTitleCase","renderOptions","opts","render_option","grouped","Select","Group","pass","AsyncSelect","minSearchLength","getOptionLabel","opt","renderOption","meta","highlighted","selected","sis_course_id","sortable","textAlign","CourseTile","course","is_blueprint","IconBlueprintLine","IconCoursesLine","UserTile","user","IconUserLine","last","first","middle","roles","teacher","_CoursesTable","CoursesTable","_init_blueprints_map","courses_fetcher","blueprints_map","promptNavigation","filter","padding","Prompt","blueprint_map","_dec2","_dec3","_dec4","_dec5","_initProto2","computed","selected_blueprint","handleBlueprintSelected","bp","handleLinkClicked","blueprint_course_id","toJS","handleCancelClicked","renderBlueprintCell","blueprint_course","onValueChanged","renderActionCell","IconCompleteLine","WorkingButton","IconCheckMarkIndeterminateLine","teachers","_SubAccountView","SubAccountView","account_fetcher","componentDidMount","renderCoursesTable","super_user","build_breadcrumbs","breadcrumbs","root_launch","shift","Breadcrumb","fetchStatus","routes","route","component","exact","keyBy","AccountNavRoutes","account_routes","renderAllRouteLayers","AccountNavLaunch","batch_store","Router","initialEntries","initial_route","ForceTrailingSlashes","ApplyCanvasTheme","PromptProvider","AlertProvider","Provider","PromptContainer","AlertsContainer","PositionedWaterMark","maxWidth","refetchAll","fetchers","forceRefetch","Promise","all","catchupToCurrent","_CrosslistingPage","CrosslistingPage","current_sections","launch_course_id","available_sections","refresh","SectionsPanel","sections","maxHeight","overflowY","overflowX","section","_SectionTile","canvas_id","refreshLists","SectionTile","crosslist","course_id","section_id","decrosslist","isCrosslisted","original_course_canvas_id","isOwnedCourse","course_canvas_id","client_sis_id","grade","shadow","borderRadius","shouldShrink","wordBreak","subject","CourseHomeSubNavigation","GeneralError","LtiFitHelper","mode","position","zIndex","left","top","Alert","variant","LoginLanding","urlParams","URLSearchParams","className","src","alt","LoginForm","fontSize","IconCanvasLogoLine","isWithinText"],"sourceRoot":""}