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AHI0zB,OAAO,KAAO5Q,EAAK6Q,OAAO,QAChBD,OAAO,KAEH,GACzB,CAAC1zB,G,6LCTN,MAAM+2B,EAAeA,CAACC,EAAiCC,KACrDjsB,EAAAA,EAAAA,GAAO,IAAIzD,KAAKyvB,GAAeC,EAAK,CAAEpF,OAAQsB,EAAAA,IAEnC/H,EAA2B4L,GACtCD,EAAaC,EAAc,4BAChBpnB,EAA4BonB,GACvCD,EAAaC,EAAc,+CAChBlN,EAA6BkN,GACxCD,EAAaC,EAAc,OAChBrN,EAA8BqN,GACzCD,EAAaC,EAAc,SAChB3N,EACX2N,GACGD,EAAaC,EAAc,c,oCCjBjB,SAASpgB,EAAee,GACrC,OAAQA,GACN,IAAK,OACH,MAAO,eACT,IAAK,SACH,MAAO,eACT,IAAK,aACH,MAAO,qBAEb,C,mGCTO,MAAMnK,EAAgB0pB,GACpBA,EAAIC,gB,oCCDN,SAASrL,EAAwBsL,GACtC,OAAQA,GACN,KAAK,EACH,MAAO,eACT,KAAK,EACH,MAAO,eAEb,CAEO,SAASpL,EAAmBwC,GACjC,OACO,KADCA,EAEG,SAEAA,EAAIjlB,UAEjB,C,4LCdO,MAAM7B,GAAc2vB,EAAAA,EAAAA,GACzB,CACEzI,OAAOtnB,EAAAA,EAAAA,GAAW,IAAIC,MACtBsnB,IAAK,IAAItnB,MAAKD,EAAAA,EAAAA,GAAW,IAAIC,MAAQ+vB,UAAY,QAEnD,CAAEC,KAAM,KACRx6B,KAAK4K,IAASqD,EAAAA,EAAAA,GAAOrD,EAAM,WAIhBsD,EAAkBA,CAACzD,EAAO,IAAID,QACzC,MAAMiwB,EAAUhwB,EAAKiwB,aACfC,EAAeF,EAAU,GAAK,GAAKA,EAAU,GAAKA,EAClDG,GAAcC,EAAAA,EAAAA,GAAWpwB,EAAMkwB,GACrC,OAAO1sB,EAAAA,EAAAA,GAAO2sB,EAAa,QAAQ,C","sources":["webpack://app/./app/javascript/components/ sync ^\\.\\/.*$","webpack://app/./app/javascript/components/AddresseeSelect.tsx","webpack://app/./app/javascript/components/AddresseeSelectView.tsx","webpack://app/./app/javascript/components/AnnouncementForm/AIAssistant.tsx","webpack://app/./app/javascript/components/AnnouncementForm/AIAssistantConfirmation.tsx","webpack://app/./app/javascript/components/AnnouncementForm/AIAssistantSection.tsx","webpack://app/./app/javascript/components/AnnouncementForm/AddresseeSelector.tsx","webpack://app/./app/javascript/components/AnnouncementForm/AddresseeSelectorView.tsx","webpack://app/./app/javascript/components/AnnouncementForm/FilesSection.tsx","webpack://app/./app/javascript/components/AnnouncementForm/IssuedDateSection.tsx","webpack://app/./app/javascript/components/AnnouncementForm/index.tsx","webpack://app/./app/javascript/components/BillAddresseeSelector.tsx","webpack://app/./app/javascript/components/BillAddresseeSelectorView.tsx","webpack://app/./app/javascript/components/BillForm.tsx","webpack://app/./app/javascript/components/BillGroupDetails.tsx","webpack://app/./app/javascript/components/BillGroupsReport.tsx","webpack://app/./app/javascript/components/BillGroupsReport/TableRow.tsx","webpack://app/./app/javascript/components/BillItemTemplatesPage.tsx","webpack://app/./app/javascript/components/ClassroomEnrollmentPage.tsx","webpack://app/./app/javascript/components/ClassroomEnrollmentPage/ClassroomEnrollmentAddressFormSection.tsx","webpack://app/./app/javascript/components/ClassroomEnrollmentPage/ClassroomEnrollmentConfirmDialog.tsx","webpack://app/./app/javascript/components/ClassroomEnrollmentPage/ClassroomEnrollmentCustomFieldFormSection.tsx","webpack://app/./app/javascript/components/ClassroomEnrollmentPage/ClassroomEnrollmentStudentFormSection.tsx","webpack://app/./app/javascript/components/ClassroomEnrollmentPage/ClassroomEnrollmentUserFormSection.tsx","webpack://app/./app/javascript/components/CoverStripe.tsx","webpack://app/./app/javascript/components/Dialog.tsx","webpack://app/./app/javascript/components/ErrorBanner.tsx","webpack://app/./app/javascript/components/EventForm/ParticipantsSelector.tsx","webpack://app/./app/javascript/components/EventForm/ParticipantsSelectorView.tsx","webpack://app/./app/javascript/components/EventForm/RemainingParticipantsCount.tsx","webpack://app/./app/javascript/components/EventForm/index.tsx","webpack://app/./app/javascript/components/FabButton.tsx","webpack://app/./app/javascript/components/HelpModal.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Config.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/ConfigDeleteClassroom.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/ConfigSubscription.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Courses.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Cover.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Header.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Notice.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Page.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Summary.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/TabHeader.tsx","webpack://app/./app/javascript/components/ManagementClassroomSettings/Tabs.tsx","webpack://app/./app/javascript/components/ManagementCustomFieldsPage.tsx","webpack://app/./app/javascript/utils/localize.ts","webpack://app/./app/javascript/components/ManagementCustomFieldsPage/ManagementCustomFieldsItem.tsx","webpack://app/./app/javascript/components/ManagementCustomFieldsPage/ManagementCustomFieldsItemForm.tsx","webpack://app/./app/javascript/components/ManagementMemberPage.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/ManagementMemberPageContainer.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberAnnouncements.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberBills.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberCustomFieldItem.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberCustomFieldItemForm.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberCustomFields.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberDescriptionForm.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberDetails.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberEventGroupUpdatingModal.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberEvents.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberFamilies.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberFloatingView.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/MemberRecurrenceBillsUpdatingModal.tsx","webpack://app/./app/javascript/components/ManagementMemberPage/api.ts","webpack://app/./app/javascript/components/ModalBackButton.tsx","webpack://app/./app/javascript/components/RecurrenceBillDateSelector.tsx","webpack://app/./app/javascript/components/Schedules.tsx","webpack://app/./app/javascript/components/Schedules/Calendar.tsx","webpack://app/./app/javascript/components/Schedules/CalendarNavigationLabel.tsx","webpack://app/./app/javascript/components/Schedules/CalendarTileContent.tsx","webpack://app/./app/javascript/components/Schedules/CalendarTileDay.tsx","webpack://app/./app/javascript/components/Schedules/EventItem.tsx","webpack://app/./app/javascript/components/Schedules/EventItemFooter.tsx","webpack://app/./app/javascript/components/Schedules/EventItemParticipation.tsx","webpack://app/./app/javascript/components/Schedules/EventList.tsx","webpack://app/./app/javascript/components/Schedules/EventListEmpty.tsx","webpack://app/./app/javascript/components/Schedules/PersonStatus.tsx","webpack://app/./app/javascript/components/Snackbar.tsx","webpack://app/./app/javascript/components/TextAvatar.tsx","webpack://app/./app/javascript/components/Toast/toast.tsx","webpack://app/./app/javascript/components/Toast/toaster.tsx","webpack://app/./app/javascript/components/Toast/use-toast.tsx","webpack://app/./app/javascript/utils/request.ts","webpack://app/./app/javascript/hooks/api.ts","webpack://app/./app/javascript/packs/file-to-base64.ts","webpack://app/./app/javascript/packs/snackbar.ts","webpack://app/./app/javascript/utils/color-class-name.ts","webpack://app/./app/javascript/utils/localize-date.ts","webpack://app/./app/javascript/utils/localize-gender.ts","webpack://app/./app/javascript/utils/number-format.ts","webpack://app/./app/javascript/utils/recurrence-bill-deadline-convertor.ts","webpack://app/./app/javascript/utils/selectable-time-options.ts"],"sourcesContent":["var map = {\n\t\"./AddresseeSelect\": 1730,\n\t\"./AddresseeSelect.tsx\": 1730,\n\t\"./AddresseeSelectView\": 8281,\n\t\"./AddresseeSelectView.tsx\": 8281,\n\t\"./AnnouncementForm\": 9948,\n\t\"./AnnouncementForm/\": 9948,\n\t\"./AnnouncementForm/AIAssistant\": 1038,\n\t\"./AnnouncementForm/AIAssistant.tsx\": 1038,\n\t\"./AnnouncementForm/AIAssistantConfirmation\": 4293,\n\t\"./AnnouncementForm/AIAssistantConfirmation.tsx\": 4293,\n\t\"./AnnouncementForm/AIAssistantSection\": 1693,\n\t\"./AnnouncementForm/AIAssistantSection.tsx\": 1693,\n\t\"./AnnouncementForm/AddresseeSelector\": 9277,\n\t\"./AnnouncementForm/AddresseeSelector.tsx\": 9277,\n\t\"./AnnouncementForm/AddresseeSelectorView\": 9162,\n\t\"./AnnouncementForm/AddresseeSelectorView.tsx\": 9162,\n\t\"./AnnouncementForm/FilesSection\": 6488,\n\t\"./AnnouncementForm/FilesSection.tsx\": 6488,\n\t\"./AnnouncementForm/IssuedDateSection\": 6156,\n\t\"./AnnouncementForm/IssuedDateSection.tsx\": 6156,\n\t\"./AnnouncementForm/index\": 9948,\n\t\"./AnnouncementForm/index.tsx\": 9948,\n\t\"./BillAddresseeSelector\": 4796,\n\t\"./BillAddresseeSelector.tsx\": 4796,\n\t\"./BillAddresseeSelectorView\": 4403,\n\t\"./BillAddresseeSelectorView.tsx\": 4403,\n\t\"./BillForm\": 4175,\n\t\"./BillForm.tsx\": 4175,\n\t\"./BillGroupDetails\": 9284,\n\t\"./BillGroupDetails.tsx\": 9284,\n\t\"./BillGroupsReport\": 3483,\n\t\"./BillGroupsReport.tsx\": 3483,\n\t\"./BillGroupsReport/TableRow\": 7660,\n\t\"./BillGroupsReport/TableRow.tsx\": 7660,\n\t\"./BillItemTemplatesPage\": 5554,\n\t\"./BillItemTemplatesPage.tsx\": 5554,\n\t\"./ClassroomEnrollmentPage\": 1604,\n\t\"./ClassroomEnrollmentPage.tsx\": 1604,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentAddressFormSection\": 6379,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentAddressFormSection.tsx\": 6379,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentConfirmDialog\": 4382,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentConfirmDialog.tsx\": 4382,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentCustomFieldFormSection\": 6590,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentCustomFieldFormSection.tsx\": 6590,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentStudentFormSection\": 9832,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentStudentFormSection.tsx\": 9832,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentUserFormSection\": 7254,\n\t\"./ClassroomEnrollmentPage/ClassroomEnrollmentUserFormSection.tsx\": 7254,\n\t\"./CoverStripe\": 8986,\n\t\"./CoverStripe.tsx\": 8986,\n\t\"./Dialog\": 9950,\n\t\"./Dialog.tsx\": 9950,\n\t\"./ErrorBanner\": 7496,\n\t\"./ErrorBanner.tsx\": 7496,\n\t\"./EventForm\": 5247,\n\t\"./EventForm/\": 5247,\n\t\"./EventForm/ParticipantsSelector\": 1450,\n\t\"./EventForm/ParticipantsSelector.tsx\": 1450,\n\t\"./EventForm/ParticipantsSelectorView\": 1889,\n\t\"./EventForm/ParticipantsSelectorView.tsx\": 1889,\n\t\"./EventForm/RemainingParticipantsCount\": 4500,\n\t\"./EventForm/RemainingParticipantsCount.tsx\": 4500,\n\t\"./EventForm/index\": 5247,\n\t\"./EventForm/index.tsx\": 5247,\n\t\"./FabButton\": 619,\n\t\"./FabButton.tsx\": 619,\n\t\"./HelpModal\": 8644,\n\t\"./HelpModal.tsx\": 8644,\n\t\"./ManagementClassroomSettings\": 7009,\n\t\"./ManagementClassroomSettings.tsx\": 7009,\n\t\"./ManagementClassroomSettings/Config\": 6420,\n\t\"./ManagementClassroomSettings/Config.tsx\": 6420,\n\t\"./ManagementClassroomSettings/ConfigDeleteClassroom\": 6640,\n\t\"./ManagementClassroomSettings/ConfigDeleteClassroom.tsx\": 6640,\n\t\"./ManagementClassroomSettings/ConfigSubscription\": 687,\n\t\"./ManagementClassroomSettings/ConfigSubscription.tsx\": 687,\n\t\"./ManagementClassroomSettings/Courses\": 6142,\n\t\"./ManagementClassroomSettings/Courses.scss\": 4251,\n\t\"./ManagementClassroomSettings/Courses.tsx\": 6142,\n\t\"./ManagementClassroomSettings/Cover\": 485,\n\t\"./ManagementClassroomSettings/Cover.tsx\": 485,\n\t\"./ManagementClassroomSettings/Header\": 869,\n\t\"./ManagementClassroomSettings/Header.tsx\": 869,\n\t\"./ManagementClassroomSettings/Notice\": 8658,\n\t\"./ManagementClassroomSettings/Notice.scss\": 1211,\n\t\"./ManagementClassroomSettings/Notice.tsx\": 8658,\n\t\"./ManagementClassroomSettings/Page\": 727,\n\t\"./ManagementClassroomSettings/Page.tsx\": 727,\n\t\"./ManagementClassroomSettings/Summary\": 7240,\n\t\"./ManagementClassroomSettings/Summary.scss\": 5590,\n\t\"./ManagementClassroomSettings/Summary.tsx\": 7240,\n\t\"./ManagementClassroomSettings/TabHeader\": 754,\n\t\"./ManagementClassroomSettings/TabHeader.scss\": 1555,\n\t\"./ManagementClassroomSettings/TabHeader.tsx\": 754,\n\t\"./ManagementClassroomSettings/Tabs\": 6442,\n\t\"./ManagementClassroomSettings/Tabs.tsx\": 6442,\n\t\"./ManagementCustomFieldsPage\": 9924,\n\t\"./ManagementCustomFieldsPage.tsx\": 9924,\n\t\"./ManagementCustomFieldsPage/ManagementCustomFieldsItem\": 4531,\n\t\"./ManagementCustomFieldsPage/ManagementCustomFieldsItem.tsx\": 4531,\n\t\"./ManagementCustomFieldsPage/ManagementCustomFieldsItemForm\": 8025,\n\t\"./ManagementCustomFieldsPage/ManagementCustomFieldsItemForm.tsx\": 8025,\n\t\"./ManagementMemberPage\": 4660,\n\t\"./ManagementMemberPage.tsx\": 4660,\n\t\"./ManagementMemberPage/ManagementMemberPageContainer\": 8066,\n\t\"./ManagementMemberPage/ManagementMemberPageContainer.tsx\": 8066,\n\t\"./ManagementMemberPage/MemberAnnouncements\": 4943,\n\t\"./ManagementMemberPage/MemberAnnouncements.tsx\": 4943,\n\t\"./ManagementMemberPage/MemberBills\": 9585,\n\t\"./ManagementMemberPage/MemberBills.tsx\": 9585,\n\t\"./ManagementMemberPage/MemberCustomFieldItem\": 965,\n\t\"./ManagementMemberPage/MemberCustomFieldItem.tsx\": 965,\n\t\"./ManagementMemberPage/MemberCustomFieldItemForm\": 1275,\n\t\"./ManagementMemberPage/MemberCustomFieldItemForm.tsx\": 1275,\n\t\"./ManagementMemberPage/MemberCustomFields\": 3193,\n\t\"./ManagementMemberPage/MemberCustomFields.tsx\": 3193,\n\t\"./ManagementMemberPage/MemberDescriptionForm\": 2703,\n\t\"./ManagementMemberPage/MemberDescriptionForm.tsx\": 2703,\n\t\"./ManagementMemberPage/MemberDetails\": 8805,\n\t\"./ManagementMemberPage/MemberDetails.tsx\": 8805,\n\t\"./ManagementMemberPage/MemberEventGroupUpdatingModal\": 7637,\n\t\"./ManagementMemberPage/MemberEventGroupUpdatingModal.tsx\": 7637,\n\t\"./ManagementMemberPage/MemberEvents\": 5696,\n\t\"./ManagementMemberPage/MemberEvents.tsx\": 5696,\n\t\"./ManagementMemberPage/MemberFamilies\": 9335,\n\t\"./ManagementMemberPage/MemberFamilies.tsx\": 9335,\n\t\"./ManagementMemberPage/MemberFloatingView\": 1314,\n\t\"./ManagementMemberPage/MemberFloatingView.tsx\": 1314,\n\t\"./ManagementMemberPage/MemberRecurrenceBillsUpdatingModal\": 6034,\n\t\"./ManagementMemberPage/MemberRecurrenceBillsUpdatingModal.tsx\": 6034,\n\t\"./ManagementMemberPage/api\": 1227,\n\t\"./ManagementMemberPage/api.ts\": 1227,\n\t\"./ModalBackButton\": 1918,\n\t\"./ModalBackButton.tsx\": 1918,\n\t\"./RecurrenceBillDateSelector\": 4400,\n\t\"./RecurrenceBillDateSelector.tsx\": 4400,\n\t\"./Schedules\": 4994,\n\t\"./Schedules.tsx\": 4994,\n\t\"./Schedules/Calendar\": 1357,\n\t\"./Schedules/Calendar.tsx\": 1357,\n\t\"./Schedules/CalendarNavigationLabel\": 2425,\n\t\"./Schedules/CalendarNavigationLabel.tsx\": 2425,\n\t\"./Schedules/CalendarTileContent\": 1814,\n\t\"./Schedules/CalendarTileContent.tsx\": 1814,\n\t\"./Schedules/CalendarTileDay\": 659,\n\t\"./Schedules/CalendarTileDay.tsx\": 659,\n\t\"./Schedules/EventItem\": 282,\n\t\"./Schedules/EventItem.tsx\": 282,\n\t\"./Schedules/EventItemFooter\": 8143,\n\t\"./Schedules/EventItemFooter.tsx\": 8143,\n\t\"./Schedules/EventItemParticipation\": 1596,\n\t\"./Schedules/EventItemParticipation.tsx\": 1596,\n\t\"./Schedules/EventList\": 9139,\n\t\"./Schedules/EventList.tsx\": 9139,\n\t\"./Schedules/EventListEmpty\": 3400,\n\t\"./Schedules/EventListEmpty.tsx\": 3400,\n\t\"./Schedules/PersonStatus\": 1682,\n\t\"./Schedules/PersonStatus.tsx\": 1682,\n\t\"./Snackbar\": 5679,\n\t\"./Snackbar.tsx\": 5679,\n\t\"./TextAvatar\": 7936,\n\t\"./TextAvatar.tsx\": 7936,\n\t\"./Toast/toast\": 3529,\n\t\"./Toast/toast.tsx\": 3529,\n\t\"./Toast/toaster\": 2556,\n\t\"./Toast/toaster.tsx\": 2556,\n\t\"./Toast/use-toast\": 779,\n\t\"./Toast/use-toast.tsx\": 779\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 = 6900;","import React, { useState } from \"react\";\nimport AddresseeSelectView from \"./AddresseeSelectView\";\nimport TextAvatar from \"./TextAvatar\";\n\nexport interface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\nexport interface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\ninterface Props {\n form_name: string;\n attributes_name: string;\n addressee_attribute_name: string;\n show_automatic_settlement_enabled: boolean;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n selected_student_ids: number[];\n}\n\nexport default function AddresseeSelect(\n {\n form_name,\n attributes_name,\n addressee_attribute_name,\n show_automatic_settlement_enabled,\n classroom_event_groups,\n enrollments,\n selected_student_ids,\n }: Props,\n): JSX.Element {\n const [open, setOpen] = useState(false);\n const [selectedStudentIds, setSelectedStudentIds] = useState(\n selected_student_ids,\n );\n const [selectedEventGroupIds, setSelectedEventGroupIds] = useState(\n [],\n );\n\n return (\n
\n setOpen(true)}\n >\n
\n
{selectedStudentIds.length}人
\n
\n
\n \n
\n
\n\n
\n
\n
    \n {selectedEventGroupIds.map((id) => {\n const eventGroup = classroom_event_groups.find((eventGroup) => {\n return eventGroup.id === id;\n });\n const eventGroupEnrollments = enrollments.filter((enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n });\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n
  • \n
    \n {eventGroup.name}\n ({count}/{total}人)\n
    \n
  • \n );\n })}\n
\n
\n
\n\n \n\n {open && (\n setOpen(false)}\n selectedStudentIds={selectedStudentIds}\n setSelectedStudentIds={setSelectedStudentIds}\n selectedEventGroupIds={selectedEventGroupIds}\n setSelectedEventGroupIds={setSelectedEventGroupIds}\n />\n )}\n \n );\n}\n","import React, { useCallback, useMemo, useState } from \"react\";\nimport TextAvatar from \"./TextAvatar\";\n\ninterface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\ninterface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\ninterface Props {\n show_automatic_settlement_enabled: boolean;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n onCloseButtonClick: () => void;\n selectedStudentIds: number[];\n setSelectedStudentIds: (selectedEnrollmentIds: number[]) => void;\n selectedEventGroupIds: number[];\n setSelectedEventGroupIds: (selectedEventGroupIds: number[]) => void;\n}\n\nexport default function AddresseeSelectView(\n {\n show_automatic_settlement_enabled,\n classroom_event_groups,\n enrollments,\n onCloseButtonClick,\n selectedStudentIds,\n setSelectedStudentIds,\n selectedEventGroupIds,\n setSelectedEventGroupIds,\n }: Props,\n): JSX.Element {\n const [openDropdown, setOpenDropdown] = useState(false);\n const allStudentSelected = enrollments.length === selectedStudentIds.length;\n\n const deselectEventGroup = useCallback((eventGroup: EventGroup) => {\n setSelectedEventGroupIds(\n selectedEventGroupIds.filter((id) => {\n return id !== eventGroup.id;\n }),\n );\n const studentIds = enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) => {\n return g.id === eventGroup.id;\n });\n },\n ).map((enollment) => {\n return enollment.student.id;\n });\n setSelectedStudentIds(\n selectedStudentIds.filter((id) => {\n return !studentIds.includes(id);\n }),\n );\n }, [\n enrollments,\n selectedStudentIds,\n setSelectedStudentIds,\n selectedEventGroupIds,\n setSelectedEventGroupIds,\n ]);\n\n return (\n
\n
\n
\n
\n 対象を選択 ({selectedStudentIds.length})\n
\n
\n \n
\n \n
\n \n
\n
\n
\n\n
\n
\n setOpenDropdown(!openDropdown)}\n >\n \n {selectedEventGroupIds.length > 0\n ? \"複数コース\"\n : \"コースをもとに選ぶ\"}\n \n
\n \n
\n
\n {openDropdown && (\n \n {classroom_event_groups.filter((eventGroup) => !eventGroup.root)\n .map((eventGroup) => (\n
  • \n \n
  • \n ))}\n \n )}\n
    \n\n
    \n
      \n {selectedEventGroupIds.map((id) => {\n const eventGroup = classroom_event_groups.find((eventGroup) => {\n return eventGroup.id === id;\n });\n\n if (!eventGroup) {\n return;\n }\n\n const eventGroupEnrollments = enrollments.filter((enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n });\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n deselectEventGroup(eventGroup)}\n >\n \n \n );\n })}\n
    \n
    \n\n
      \n
    • \n \n
    • \n {enrollments.map((enrollment) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n
    \n \n 対象者を決定\n \n
    \n
    \n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport AnnouncementFormAIAssistantSection from \"./AIAssistantSection\";\n\ninterface Props {\n form_action: string;\n title: string;\n body: string;\n onReflection: (field: string, value: string) => void;\n}\n\nexport default function AnnouncementFormAIAssistant(\n { form_action, onReflection, title, body }: Props,\n) {\n const [openModal, setOpenModal] = useState(false);\n\n return (\n <>\n setOpenModal(true)}\n >\n
    \n
    \n \n \n \n
    \n
    \n
    \n AIに書いてもらう\n
    \n \n\n {openModal && (\n <>\n \n
    \n
    \n
    \n
    \n

    \n レンシュAIアシスタント(β)\n

    \n
    \n setOpenModal(false)}\n >\n
    \n \n
    \n \n
    \n
    \n setOpenModal(false)}\n title={title}\n body={body}\n onReflection={onReflection}\n />\n
    \n
    \n
    \n \n )}\n \n );\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\n\ninterface Props {\n pollingUrl: string;\n onSubmit: () => void;\n generatedBody: string;\n setGeneratedBody: (body: string) => void;\n isPolling: boolean;\n setIsPolling: (isPolling: boolean) => void;\n}\n\nexport default function AIAssistantConfirmation(\n {\n pollingUrl,\n onSubmit,\n generatedBody,\n setGeneratedBody,\n isPolling,\n setIsPolling,\n }: Props,\n) {\n const fetchGeneratedBody = useCallback(async () => {\n const response = await fetch(pollingUrl, {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n const { output, progress }: {\n output: string;\n progress: \"intended\" | \"succeeded\" | \"failed\";\n } = await response.json();\n return { output, progress };\n }, [pollingUrl]);\n\n useEffect(() => {\n const interval = setInterval(async () => {\n setIsPolling(true);\n const { output, progress } = await fetchGeneratedBody();\n if (progress === \"succeeded\") {\n setGeneratedBody(output);\n setIsPolling(false);\n clearInterval(interval);\n } else if (progress === \"failed\") {\n alert(\n \"AIによる生成に失敗しました。入力内容をお確かめの上、もう一度お試しください。\",\n );\n setIsPolling(false);\n clearInterval(interval);\n }\n }, 1000);\n return () => clearInterval(interval);\n }, [pollingUrl]);\n\n return (\n <>\n {generatedBody &&\n (\n
    \n

    AIが考えた文章

    \n
    \n {generatedBody}\n
    \n
    \n )}\n {isPolling\n ?
    AIが文章を作成中...
    \n : (\n
    \n \n
    \n やり直す\n
    \n \n
    \n )}\n \n );\n}\n","import React, { useState } from \"react\";\nimport { SubmitHandler, useForm } from \"react-hook-form\";\nimport * as Sentry from \"@sentry/browser\";\nimport AIAssistantConfirmation from \"./AIAssistantConfirmation\";\nimport { useApi } from \"../../hooks/api\";\n\ninterface Inputs {\n title: string;\n input: string;\n}\n\ninterface Props {\n form_action: string;\n closeModal: () => void;\n title: string;\n body: string;\n onReflection: (field: string, value: string) => void;\n}\n\nexport default function AnnouncementFormAIAssistantSection(\n { form_action, closeModal, onReflection, title, body }: Props,\n) {\n const [pollingUrl, setPollingUrl] = useState(\"\");\n const [generatedBody, setGeneratedBody] = useState(\"\");\n const [isPolling, setIsPolling] = useState(false);\n const { post } = useApi();\n\n const {\n register,\n handleSubmit,\n formState: { errors, isSubmitting, isSubmitted },\n } = useForm({\n defaultValues: {\n title: title,\n input: body,\n },\n });\n const onSubmit: SubmitHandler = async (data) => {\n const { polling_url, error, response } = await post(form_action, {\n ...data,\n });\n if (response.ok) {\n setPollingUrl(polling_url);\n } else {\n alert(error);\n Sentry.captureMessage(\n `お知らせのAIアシスタントのリクエストでエラーが発生しました。form_action: \"${form_action}\"`,\n );\n }\n };\n\n const onConfirm = (data) => {\n onReflection(\"title\", data.title);\n onReflection(\"body\", generatedBody);\n closeModal();\n };\n\n return (\n
    \n
    \n
    \n
    \n
    \n \n \n \n タイトル\n \n \n {errors.title && (\n \n {errors.title.message}\n
    \n )}\n
    \n
    \n\n
    \n
    \n \n \n \n 内容の要点\n \n \n \n
    \n
    \n
    \n \n\n {pollingUrl && (\n setGeneratedBody(body)}\n isPolling={isPolling}\n setIsPolling={(isPolling: boolean) => setIsPolling(isPolling)}\n />\n )}\n\n
    \n {!pollingUrl && (\n <>\n
    \n
    \n
      \n
    • \n タイトルと内容を入力するとお知らせ文が自動生成されます\n
    • \n
    • \n 内容は箇条書きやキーワードを3つほど書くだけでも生成できますが、情報量が多いほどAIが具体的な文章を作りやすくなります\n
    • \n
    \n
    \n ※この機能はβ版のため、事前予告なしに機能の変更や提供を中止することがあります。\n
    \n
    \n
    \n
    \n \n GMOレンシュ利用規約 第9章[第21条の2〜第21条の5]\n \n
    \n \n )}\n
    \n\n
    \n
      \n
    • \n \n
      \n キャンセル\n
      \n \n
    • \n\n
    • \n \n
      \n {pollingUrl ? \"下書きに反映\" : \"規約に同意して作成\"}\n
      \n \n
    • \n
    \n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport AnnouncementFormAddresseeSelectorView from \"./AddresseeSelectorView\";\nimport TextAvatar from \"../TextAvatar\";\n\nexport interface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\nexport interface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\ninterface Props {\n selectedStudentIds: number[];\n onChangeStudentIds: (selectedStudentIds: number[]) => void;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n}\n\nexport default function AnnouncementFormAddresseeSelector(\n {\n selectedStudentIds,\n onChangeStudentIds,\n classroom_event_groups,\n enrollments,\n }: Props,\n): JSX.Element {\n const [open, setOpen] = useState(false);\n const [selectedEventGroupIds, setSelectedEventGroupIds] = useState(\n [],\n );\n\n return (\n
    \n setOpen(true)}\n >\n
    \n
    {selectedStudentIds.length}人
    \n
    \n
    \n \n
    \n
    \n\n
    \n
    \n
      \n {selectedEventGroupIds.map((id) => {\n const eventGroup = classroom_event_groups.find((eventGroup) => {\n return eventGroup.id === id;\n });\n const eventGroupEnrollments = enrollments.filter((enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n });\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n
    • \n
      \n {eventGroup.name}\n ({count}/{total}人)\n
      \n
    • \n );\n })}\n
    \n
    \n
    \n\n
      \n {enrollments.filter((enrollment) =>\n selectedStudentIds.includes(enrollment.student.id)\n ).map((enrollment) => (\n
    • \n
      \n
      \n \n
      \n
      \n
      \n {enrollment.student.name}\n
      \n
      \n {enrollment.event_groups.map((eventGroup) => eventGroup.name)\n .join(\", \")}\n
      \n
      \n
      \n
    • \n ))}\n
    \n\n {open && (\n setOpen(false)}\n selectedStudentIds={selectedStudentIds}\n setSelectedStudentIds={onChangeStudentIds}\n selectedEventGroupIds={selectedEventGroupIds}\n setSelectedEventGroupIds={setSelectedEventGroupIds}\n />\n )}\n \n );\n}\n","import React, { useCallback, useMemo, useState } from \"react\";\nimport TextAvatar from \"../TextAvatar\";\n\ninterface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\ninterface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\ninterface Props {\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n onCloseButtonClick: () => void;\n selectedStudentIds: number[];\n setSelectedStudentIds: (selectedEnrollmentIds: number[]) => void;\n selectedEventGroupIds: number[];\n setSelectedEventGroupIds: (selectedEventGroupIds: number[]) => void;\n}\n\nexport default function AnnouncementFormAddresseeSelectorView(\n {\n classroom_event_groups,\n enrollments,\n onCloseButtonClick,\n selectedStudentIds,\n setSelectedStudentIds,\n selectedEventGroupIds,\n setSelectedEventGroupIds,\n }: Props,\n): JSX.Element {\n const [openDropdown, setOpenDropdown] = useState(false);\n const allStudentSelected = enrollments.length === selectedStudentIds.length;\n\n const deselectEventGroup = useCallback((eventGroup: EventGroup) => {\n setSelectedEventGroupIds(\n selectedEventGroupIds.filter((id) => {\n return id !== eventGroup.id;\n }),\n );\n const studentIds = enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) => {\n return g.id === eventGroup.id;\n });\n },\n ).map((enollment) => {\n return enollment.student.id;\n });\n setSelectedStudentIds(\n selectedStudentIds.filter((id) => {\n return !studentIds.includes(id);\n }),\n );\n }, [\n setSelectedEventGroupIds,\n selectedEventGroupIds,\n setSelectedStudentIds,\n selectedStudentIds,\n ]);\n\n return (\n \n
    \n
    \n
    \n 対象を選択 ({selectedStudentIds.length})\n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n setOpenDropdown(!openDropdown)}\n >\n \n {selectedEventGroupIds.length > 0\n ? \"複数コース\"\n : \"コースをもとに選ぶ\"}\n \n
    \n \n
    \n
    \n {openDropdown && (\n \n {classroom_event_groups.filter((eventGroup) => !eventGroup.root)\n .map((eventGroup) => (\n
  • \n \n
  • \n ))}\n \n )}\n
    \n\n
    \n
      \n {selectedEventGroupIds.map((id) => {\n const eventGroup = classroom_event_groups.find((eventGroup) => {\n return eventGroup.id === id;\n });\n\n if (!eventGroup) {\n return;\n }\n\n const eventGroupEnrollments = enrollments.filter((enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n });\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n deselectEventGroup(eventGroup)}\n >\n \n \n );\n })}\n
    \n
    \n\n
      \n
    • \n \n
    • \n {enrollments.map((enrollment) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n
    \n \n 対象者を決定\n \n
    \n
    \n \n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport toBase64 from \"../../packs/file-to-base64\";\n\ntype AnnouncementFormFilesSectionProps = {\n files: File[];\n onFilesChange: (newFile: File[]) => void;\n onRemoveFile: (file: File) => void;\n};\n\ntype FilePreview = {\n name: string;\n type: string;\n content: string | ArrayBuffer;\n file: File;\n};\n\nexport default function AnnouncementFormFilesSection(\n { files, onFilesChange, onRemoveFile }: AnnouncementFormFilesSectionProps,\n) {\n const [previews, setPreviews] = useState([]);\n\n const onFileChange = async (e) => {\n const newFiles = e.target.files;\n if (files.length + newFiles.length > 5) {\n alert(\"添付できるファイルは5つまでです。\");\n return;\n }\n for (const file of newFiles) {\n if (file.size / 1024 ** 2 > 10) {\n alert(\"添付するファイルのサイズは10MB以下にしてください。\");\n return;\n }\n }\n\n onFilesChange([...newFiles]);\n };\n\n useEffect(() => {\n (async () => {\n const newPreviews = await Promise.all(files.map(async (file) => {\n return {\n name: file.name,\n type: file.type,\n content: await toBase64(file),\n file,\n };\n }));\n setPreviews(newPreviews);\n })();\n }, [files]);\n\n return (\n
    \n
    \n

    \n \n ファイルの添付\n \n

    \n
    \n\n
    \n
      \n {previews.map((file, index) => (\n \n
      \n onRemoveFile(file.file)}\n >\n
      \n \n
      \n \n {file.type.includes(\"image\")\n ? (\n
      \n {file.name}\n
      \n )\n : (\n
      \n
      {file.name}
      \n
      \n \n PDF\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 ※ 画像またはPDFファイル(10MB以下)を5つまで\n
    \n
    \n \n );\n}\n","import React from \"react\";\nimport { isBefore, parseISO, startOfDay } from \"date-fns\";\nimport { UseFormRegister } from \"react-hook-form\";\nimport { timeOptions } from \"../../utils/selectable-time-options\";\nimport { AnnouncementFormInputs } from \"./index\";\nimport { FieldErrors } from \"react-hook-form/dist/types/errors\";\n\ninterface Props {\n isScheduledIssue: boolean;\n currentIssuedDate: string;\n register: UseFormRegister;\n errors: FieldErrors;\n onSchedulingChange: (isChecked: boolean) => void;\n}\n\nexport default function AnnouncementFormIssuedDateSection({\n isScheduledIssue,\n currentIssuedDate,\n register,\n errors,\n onSchedulingChange,\n}: Props) {\n return (\n
    \n {isScheduledIssue && (\n <>\n
    \n
    \n \n {\n if (\n isBefore(parseISO(value), startOfDay(new Date()))\n ) {\n return \"本日以降の日付を入力してください\";\n }\n return true;\n },\n })}\n className=\"_input\"\n />\n \n
    \n
    \n \n {\n // currentIssuedDate と value を結合して、Date オブジェクトに変換\n const date = parseISO(\n `${currentIssuedDate}T${value}`,\n );\n if (\n isBefore(date, new Date())\n ) {\n return \"未来の時間を入力してください\";\n }\n return true;\n },\n })}\n className=\"_input\"\n list=\"issued_at-time-list\"\n />\n \n {timeOptions.map((time) => (\n \n ))}\n \n \n
    \n
    \n
    \n {errors.issued_date?.message}\n
    \n
    \n {errors.issued_time?.message}\n
    \n \n )}\n
    \n
    \n \n
    \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { Control, useForm } from \"react-hook-form\";\nimport Turbolinks from \"turbolinks\";\nimport Snackbar from \"../Snackbar\";\nimport Dialog from \"../Dialog\";\nimport HelpModal from \"../HelpModal\";\nimport ErrorBanner from \"../ErrorBanner\";\nimport AnnouncementFormIssuedDateSection from \"./IssuedDateSection\";\nimport AnnouncementFormAIAssistant from \"./AIAssistant\";\nimport AnnouncementFormAddresseeSelector, {\n Enrollment,\n EventGroup,\n} from \"./AddresseeSelector\";\nimport AnnouncementFormFilesSection from \"./FilesSection\";\nimport { format } from \"date-fns\";\nimport { getNextHalfHour } from \"../../utils/selectable-time-options\";\n\ninterface FileObj {\n url: string;\n name: string;\n type: string;\n size: number;\n}\n\nexport interface AnnouncementFormInputs {\n title: string;\n body: string;\n draft: boolean;\n issued_date: string;\n issued_time: string;\n shared_with: \"addressee\" | \"classroom\";\n student_ids: number[];\n files: File[];\n}\nexport type FormController = Control;\n\ntype AnnouncementStatus = \"new\" | \"draft\" | \"scheduled\" | \"issued\";\n\ninterface Props {\n attributes: AnnouncementFormInputs;\n file_objects: FileObj[];\n announcement_status: AnnouncementStatus;\n form_path: string;\n form_method: string;\n generations_path: string;\n errors: string[];\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n}\n\nexport default function AnnouncementForm(props: Props) {\n const [openConfirmDialog, setOpenConfirmDialog] = useState(false);\n const [openHelpModal, setOpenHelpModal] = useState(false);\n const [loading, setLoading] = useState(false);\n const [message, setMessage] = useState(null);\n const [isScheduledIssue, setIsScheduledIssue] = useState(\n props.announcement_status === \"scheduled\",\n );\n const status: AnnouncementStatus = props.announcement_status === \"issued\"\n ? \"issued\"\n : isScheduledIssue\n ? \"scheduled\"\n : \"draft\";\n\n const {\n register,\n handleSubmit,\n formState: { errors, isValid },\n setValue,\n setError,\n clearErrors,\n watch,\n trigger,\n } = useForm({\n defaultValues: {\n ...props.attributes,\n draft: false,\n },\n mode: \"all\",\n });\n\n const validateStudentIds = () => {\n if (\n watch(\"shared_with\") === \"addressee\" && watch(\"student_ids\").length === 0\n ) {\n setError(\"student_ids\", {\n type: \"empty\",\n message: \"受講者を選択してください\",\n });\n } else {\n clearErrors(\"student_ids\");\n }\n trigger();\n };\n\n const onFilesChange = (newFiles: File[]) =>\n setValue(\"files\", watch(\"files\").concat(newFiles));\n const onRemoveFile = (file: File) => {\n const newFiles = watch(\"files\").filter((f) => f !== file);\n setValue(\"files\", newFiles);\n };\n\n const onChangeStudentIds = (selectedStudentIds: number[]) => {\n setValue(\"student_ids\", selectedStudentIds);\n validateStudentIds();\n };\n\n const onSchedulingChange = (isScheduledIssue: boolean) => {\n setIsScheduledIssue(isScheduledIssue);\n if (isScheduledIssue) {\n setValue(\"issued_date\", format(new Date(), \"yyyy-MM-dd\"));\n setValue(\"issued_time\", getNextHalfHour());\n } else {\n setValue(\"issued_date\", null);\n setValue(\"issued_time\", null);\n }\n };\n\n const onSubmit = handleSubmit(async (data) => {\n setLoading(true);\n const form = new FormData();\n form.append(\"announcement[title]\", data.title);\n form.append(\"announcement[body]\", data.body);\n form.append(\"announcement[draft]\", data.draft.toString());\n form.append(\"announcement[issued_date]\", data.issued_date);\n form.append(\"announcement[issued_time]\", data.issued_time);\n form.append(\"announcement[shared_with]\", data.shared_with);\n data.student_ids.forEach((student_id) =>\n form.append(\"announcement[student_ids][]\", student_id.toString())\n );\n data.files.forEach((file) => form.append(\"announcement[files][]\", file));\n const response = await fetch(props.form_path, {\n method: props.form_method.toUpperCase(),\n body: form,\n headers: {\n \"X-CSRF-Token\":\n document.querySelector('[name=\"csrf-token\"]')\n .content,\n },\n });\n const { message, redirect_url } = await response.json();\n if (response.ok) {\n Turbolinks.visit(redirect_url);\n } else {\n setMessage(message);\n }\n setLoading(false);\n setOpenConfirmDialog(false);\n });\n const onDraftSubmit = async () => {\n setValue(\"draft\", true);\n await trigger();\n validateStudentIds();\n await onSubmit();\n };\n const onOpenConfirmDialog = async () => {\n setValue(\"draft\", false);\n await trigger();\n validateStudentIds();\n if (isValid) {\n setOpenConfirmDialog(true);\n }\n };\n\n useEffect(() => {\n (async () => {\n const fetchedFiles = await Promise.all(\n props.file_objects.map(async (fileObj) => {\n const response = await fetch(fileObj.url);\n const blob = await response.blob();\n return new File([blob], fileObj.name, { type: fileObj.type });\n }),\n );\n setValue(\"files\", fetchedFiles);\n })();\n }, []);\n\n return (\n
    \n \n\n
    \n
    \n
    \n

    \n \n \n \n タイトル\n 必須\n

    \n
    \n
    \n \n \n \n \n \n {errors.title?.message}\n
    \n
    \n
    \n
    \n
    \n

    \n \n \n \n 内容\n 必須\n

    \n
    \n
    \n \n \n \n \n \n \n {errors.body?.message}\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n setValue(field, value)}\n />\n
    \n
    \n
    \n\n \n\n {status !== \"issued\" && (\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
    \n
    \n {watch(\"shared_with\") === \"addressee\" && (\n
    \n \n
    \n )}\n \n {errors.student_ids?.message}\n
    \n
    \n \n )}\n\n
    \n
    \n
      \n {status !== \"issued\" && (\n
    • \n \n
      \n 下書き保存\n
      \n \n
    • \n )}\n
    • \n \n
      \n {{\n draft: \"送信\",\n scheduled: \"送信予約\",\n issued: \"保存\",\n }[status]}\n
      \n \n
    • \n {status !== \"issued\" && (\n
    • \n \n
    • \n )}\n
    \n
    \n
    \n \n \n {message && {message}}\n\n {openConfirmDialog && isValid && (\n setOpenConfirmDialog(false)}\n {...{\n draft: {\n title: \"お知らせを送信してよろしいですか?\",\n },\n scheduled: {\n title: \"お知らせを予約してよろしいですか?\",\n },\n issued: {\n title: \"この内容でお知らせを更新しますか?\",\n description:\n \"お知らせが更新されたことは受講者に通知されませんが、お知らせに更新日時が表示されるようになります。\",\n },\n }[status]}\n >\n \n
    \n {{\n draft: \"送信\",\n scheduled: \"送信予約\",\n issued: \"保存\",\n }[status]}\n
    \n \n \n )}\n\n {openHelpModal && (\n setOpenHelpModal(false)}\n title=\"公開範囲とは\"\n >\n
    \n
    一部の受講者
    \n
    「選択した受講者のみ」にお知らせが表示されます。
    \n
    教室全体
    \n
    \n 教室の「受講者全員」に表示されます。お知らせを作成後に入会した受講者にも表示されます。\n
    \n
    \n \n )}\n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { UseFormRegisterReturn } from \"react-hook-form/dist/types/form\";\nimport TextAvatar from \"components/TextAvatar\";\nimport BillAddresseeSelectorView from \"components/BillAddresseeSelectorView\";\n\ninterface Props {\n form_name: string;\n attributes_name: string;\n addressee_attribute_name: string;\n show_automatic_settlement_enabled: boolean;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n selected_student_ids: number[];\n inputRegister: () => UseFormRegisterReturn;\n setSelectedStudentIdsValue: (selectedStudentIds: number[]) => void;\n}\n\ninterface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\ninterface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\nexport default function BillAddresseeSelector(props: Props): JSX.Element {\n const [open, setOpen] = useState(false);\n const [selectedStudentIds, setSelectedStudentIds] = useState(\n props.selected_student_ids,\n );\n const [selectedEventGroupIds, setSelectedEventGroupIds] = useState(\n [],\n );\n\n const selectStudentIds = (selectedStudentIds: number[]) => {\n props.setSelectedStudentIdsValue(selectedStudentIds);\n setSelectedStudentIds(selectedStudentIds);\n };\n\n return (\n
    \n setOpen(true)}\n >\n
    \n
    {selectedStudentIds.length}人
    \n
    \n
    \n \n
    \n
    \n\n
    \n
    \n
      \n {selectedEventGroupIds.map((id) => {\n const eventGroup = props.classroom_event_groups.find(\n (eventGroup) => {\n return eventGroup.id === id;\n },\n );\n const eventGroupEnrollments = props.enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n },\n );\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n
    • \n
      \n {eventGroup.name}\n ({count}/{total}人)\n
      \n
    • \n );\n })}\n
    \n
    \n
    \n\n
      \n {props.enrollments.filter((enrollment) =>\n selectedStudentIds.includes(enrollment.student.id)\n ).map((enrollment) => (\n
    • \n
      \n
      \n \n
      \n
      \n
      \n {enrollment.student.name}\n
      \n
      \n {enrollment.event_groups.map((eventGroup) => eventGroup.name)\n .join(\", \")}\n
      \n
      \n {props.show_automatic_settlement_enabled &&\n enrollment.allowed_to_settle_automatically && (\n
      \n
      \n \n
      \n 自動支払い設定済み\n
      \n
      \n
      \n )}\n
      \n
    • \n ))}\n
    \n\n {open && (\n setOpen(false)}\n selectedStudentIds={selectedStudentIds}\n setSelectedStudentIds={selectStudentIds}\n selectedEventGroupIds={selectedEventGroupIds}\n setSelectedEventGroupIds={setSelectedEventGroupIds}\n />\n )}\n \n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport { UseFormRegisterReturn } from \"react-hook-form/dist/types/form\";\nimport TextAvatar from \"./TextAvatar\";\n\ninterface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\ninterface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\ninterface Props {\n inputRegister: () => UseFormRegisterReturn;\n show_automatic_settlement_enabled: boolean;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n onCloseButtonClick: () => void;\n selectedStudentIds: number[];\n setSelectedStudentIds: (selectedEnrollmentIds: number[]) => void;\n selectedEventGroupIds: number[];\n setSelectedEventGroupIds: (selectedEventGroupIds: number[]) => void;\n}\n\nexport default function BillAddresseeSelectorView(props: Props): JSX.Element {\n const [openDropdown, setOpenDropdown] = useState(false);\n const allStudentSelected =\n props.enrollments.length === props.selectedStudentIds.length;\n\n const selectEventGroup = useCallback((eventGroup: EventGroup) => {\n props.setSelectedEventGroupIds(\n props.selectedEventGroupIds.concat(eventGroup.id),\n );\n const studentIds = props.enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) => {\n return g.id === eventGroup.id;\n });\n },\n ).map((enrollment) => {\n return enrollment.student.id;\n });\n props.setSelectedStudentIds(\n Array.from(\n new Set([\n ...props.selectedStudentIds,\n ...studentIds,\n ]),\n ),\n );\n }, [\n props.enrollments,\n props.selectedStudentIds,\n props.setSelectedStudentIds,\n props.selectedEventGroupIds,\n props.setSelectedEventGroupIds,\n ]);\n const deselectEventGroup = useCallback((eventGroup: EventGroup) => {\n props.setSelectedEventGroupIds(\n props.selectedEventGroupIds.filter((id) => {\n return id !== eventGroup.id;\n }),\n );\n const studentIds = props.enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) => {\n return g.id === eventGroup.id;\n });\n },\n ).map((enrollment) => {\n return enrollment.student.id;\n });\n props.setSelectedStudentIds(\n props.selectedStudentIds.filter((id) => {\n return !studentIds.includes(id);\n }),\n );\n }, [\n props.enrollments,\n props.selectedStudentIds,\n props.setSelectedStudentIds,\n props.selectedEventGroupIds,\n props.setSelectedEventGroupIds,\n ]);\n\n return (\n
    \n
    \n
    \n
    \n 対象を選択 ({props.selectedStudentIds.length})\n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n setOpenDropdown(!openDropdown)}\n >\n \n {props.selectedEventGroupIds.length > 0\n ? \"複数コース\"\n : \"コースをもとに選ぶ\"}\n \n
    \n \n
    \n
    \n {openDropdown && (\n \n {props.classroom_event_groups.filter((eventGroup) =>\n !eventGroup.root\n )\n .map((eventGroup) => (\n
  • \n \n
  • \n ))}\n \n )}\n
    \n\n
    \n
      \n {props.selectedEventGroupIds.map((id) => {\n const eventGroup = props.classroom_event_groups.find(\n (eventGroup) => {\n return eventGroup.id === id;\n },\n );\n\n if (!eventGroup) {\n return;\n }\n\n const eventGroupEnrollments = props.enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n },\n );\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return props.selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n deselectEventGroup(eventGroup)}\n >\n \n \n );\n })}\n
    \n
    \n\n
      \n
    • \n \n
    • \n {props.enrollments.map((enrollment) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n
    \n \n 対象者を決定\n \n
    \n
    \n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport { eachMinuteOfInterval, format, startOfDay } from \"date-fns\";\n\nimport BillAddresseeSelector from \"./BillAddresseeSelector\";\nimport Dialog from \"./Dialog\";\nimport ErrorBanner from \"./ErrorBanner\";\nimport Turbolinks from \"turbolinks\";\nimport { numberFormat } from \"../utils/number-format\";\nimport { useApi } from \"../hooks/api\";\nimport { useForm } from \"react-hook-form\";\nimport { timeOptions } from \"utils/selectable-time-options\";\nimport { useToast } from \"components/Toast/use-toast\";\nimport { Toaster } from \"components/Toast/toaster\";\n\ninterface Props {\n form_path: string;\n form_method: string;\n attributes: Inputs;\n errors: string[];\n classroom_event_groups;\n enrollments;\n bill_item_templates: BillItemTemplate[];\n management_classroom_bill_item_templates_path: string;\n}\n\ninterface BillItemTemplate {\n id: number;\n name: string;\n amount: number;\n}\n\ninterface Inputs {\n name: string;\n amount: number;\n save_as_bill_item_template: boolean;\n issued_date: string;\n issued_time: string;\n deadline_date: string;\n deadline_time: string;\n student_ids: number[];\n draft: boolean;\n}\n\nexport default function BillForm(props: Props): JSX.Element {\n const [comboBoxVisible, setComboBoxVisible] = useState(false);\n const [submitDialogVisible, setSubmitDialogVisible] = useState(false);\n const [loading, setLoading] = useState(false);\n const { toast } = useToast();\n\n const {\n register,\n handleSubmit,\n formState: { errors, isValid },\n setValue,\n trigger,\n } = useForm({\n defaultValues: props.attributes,\n mode: \"all\",\n });\n const { requestWithCsrfToken } = useApi();\n\n const handleFocus = () => {\n setComboBoxVisible(true);\n };\n const handleBlur = (event) => {\n const isButtonFocused = event.relatedTarget &&\n event.relatedTarget.tagName === \"BUTTON\";\n // フォーカスが外れたが、請求項目リストのボタンに移動した場合は処理をスキップ\n if (isButtonFocused) return;\n setComboBoxVisible(false);\n };\n const handleClick = () => {\n setComboBoxVisible((prevValue) => !prevValue);\n };\n\n const handleBillItemTemplateClick = (event) => {\n const targetBillItemTemplate = props.bill_item_templates.find(\n (bill_item_template) =>\n bill_item_template.id === Number(event.target.dataset.id),\n );\n setValue(\"name\", targetBillItemTemplate.name);\n setValue(\"amount\", targetBillItemTemplate.amount);\n setValue(\"save_as_bill_item_template\", false);\n setComboBoxVisible(false);\n };\n\n const onSubmit = handleSubmit(async (data) => {\n setLoading(true);\n const { redirect_url, message, response } = await requestWithCsrfToken({\n form_action: props.form_path,\n form_method: props.form_method,\n data: {\n bill_group_form: data,\n },\n });\n if (response.ok) {\n Turbolinks.visit(redirect_url);\n } else {\n toast({\n title: message,\n description: \"\",\n children: null,\n variant: \"destructive\",\n });\n setLoading(false);\n }\n });\n\n const handleDraftSubmit = async () => {\n await trigger();\n setValue(\"draft\", true);\n await onSubmit();\n };\n\n const handleToggleSubmitDialog = async () => {\n await trigger();\n setValue(\"draft\", false);\n if (isValid) {\n setSubmitDialogVisible(true);\n }\n };\n\n return (\n \n \n\n
    \n
    \n
    \n
    \n
    \n \n \n \n
    \n \n \n \n\n {comboBoxVisible && (\n <>\n \n {props.bill_item_templates.map((billItemTemplate) => (\n e.preventDefault()}\n onClick={handleBillItemTemplateClick}\n type=\"button\"\n role=\"option\"\n >\n {billItemTemplate.name}\n e.preventDefault()}\n onClick={handleBillItemTemplateClick}\n >\n {numberFormat(billItemTemplate.amount)}円\n \n \n ))}\n
    \n \n )}\n\n \n {errors.name?.message}\n
    \n
    \n
    \n\n
    \n
    \n \n \n \n 金額[必須]\n \n \n \n 円\n \n \n {errors.amount?.message}\n
    \n
    \n \n
    \n ※ 300円以上30万円以下の金額を半角数字のみで入力(例:3000)\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
    \n \n \n \n
    \n
    \n \n \n \n {timeOptions.map((time) => (\n \n \n
    \n
    \n \n {errors.issued_date?.message}\n
    \n \n {errors.issued_time?.message}\n
    \n
    \n \n\n
    \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n \n \n \n {timeOptions.map((time) => (\n \n \n
    \n
    \n \n {errors.deadline_date?.message}\n
    \n \n {errors.deadline_time?.message}\n
    \n \n \n \n\n
    \n

    \n \n \n \n 請求対象\n

    \n\n
    \n
    \n register(`student_ids`)}\n setSelectedStudentIdsValue={(selectedStudentIds: number[]) =>\n setValue(\"student_ids\", selectedStudentIds)}\n form_name=\"bill_group_form\"\n attributes_name=\"bills_attributes\"\n addressee_attribute_name=\"addressee_id\"\n show_automatic_settlement_enabled={true}\n classroom_event_groups={props.classroom_event_groups}\n enrollments={props.enrollments}\n selected_student_ids={props.attributes.student_ids}\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 {submitDialogVisible && isValid && (\n setSubmitDialogVisible(false)}\n title=\"請求を送信しますか?\"\n description=\"送信すると教室から請求が届いたことが受講者に通知されます。請求日が未来の日付の場合は、送信予約状態となります。\"\n >\n \n
    送信
    \n \n \n )}\n \n \n );\n}\n","import React, { Fragment, useEffect, useRef, useState } from \"react\";\nimport Dialog from \"components/Dialog\";\nimport { useApi } from \"hooks/api\";\nimport { ModalBackButton } from \"./ModalBackButton\";\nimport {\n localizeDateToFullString,\n localizeDateToYmdString,\n} from \"utils/localize-date\";\nimport TextAvatar from \"components/TextAvatar\";\n\ninterface Addressee {\n name: string;\n member_path: string;\n}\n\ninterface Payment {\n tried_at: string;\n approved_at: string;\n marked_as_paid_at: string;\n transfer_return_date: string;\n method_type_konbini: boolean;\n}\n\ninterface Bill {\n id: number;\n addressee: Addressee;\n payment_waiting_for_debit: boolean;\n payment_waiting_for_approval: boolean;\n payable: boolean;\n overdue: boolean;\n allow_overdue_notification: boolean;\n payments: Payment;\n marked_as_paid: boolean;\n markable_as_paid: boolean;\n payment_approved: boolean;\n overdue_notifications_path: string;\n}\n\ninterface Classroom {\n slug: string;\n settlement_agent: {\n konbini_payment_enabled: boolean;\n };\n}\n\ninterface BillGroup {\n id: number;\n name: string;\n amount: number;\n issued_at: string;\n deadline: string;\n size: number;\n bills: Bill[];\n draft: boolean;\n disabled: boolean;\n deletable: boolean;\n updatable_to_be_disabled: boolean;\n not_issued: boolean;\n issued: boolean;\n number_of_paid_students: number;\n back_button_link_path: string;\n classroom: Classroom;\n}\n\ninterface Paths {\n details_path: string;\n edit_path: string;\n duplicate_path: string;\n bill_group_path: string;\n disable_path: string;\n mark_as_paid_path: string;\n bill_path: string;\n settings_path: string;\n}\n\ninterface BillGroupDetails {\n bill_group: BillGroup;\n classroom: Classroom;\n paths: Paths;\n}\n\nexport default function BillGroupDetails(\n { bill_group, classroom, paths }: BillGroupDetails,\n): React.JSX.Element {\n const [openDropdown, setOpenDropdown] = useState(false);\n const [deletingPopupVisible, setDeletingPopupVisible] = useState(false);\n const [disabledPopupVisible, setDisabledPopupVisible] = useState(false);\n const [paidDialogTarget, setPaidDialogTarget] = useState(null);\n const [payableDialogTarget, setPayableDialogTarget] = useState(null);\n const [reminderDialogTarget, setNotificationDialogTarget] = useState(\n null,\n );\n const [userActionPopupVisible, setUserActionPopupVisible] = useState(false);\n const [billActionPopupTarget, setBillActionPopupTarget] = useState(\n null,\n );\n\n const toggleUserActionPopup = () => {\n setUserActionPopupVisible((prev) => !prev);\n };\n\n const handleBlur = (event) => {\n const isButtonFocused = event.relatedTarget?.tagName === \"BUTTON\";\n if (!isButtonFocused) {\n setOpenDropdown(false);\n }\n };\n\n return (\n <>\n
    \n
    \n
    \n {bill_group.name}\n
    \n
    \n
    \n
    \n \n
    \n
    \n \n \n \n \n {userActionPopupVisible && (\n <>\n
      \n {bill_group.draft &&\n (\n
    • \n \n 編集\n \n
    • \n )}\n
    • \n \n
    • \n\n {bill_group.deletable &&\n (\n <>\n
    • \n setDeletingPopupVisible(true)}\n >\n
      \n 削除\n
      \n \n
    • \n {deletingPopupVisible && (\n \n setDeletingPopupVisible(false)}\n >\n \n
      \n 削除\n
      \n \n \n )}\n \n )}\n {bill_group.updatable_to_be_disabled &&\n (\n <>\n
    • \n setDisabledPopupVisible(true)}\n >\n
      \n 無効にする\n
      \n \n
    • \n {disabledPopupVisible && (\n \n setDisabledPopupVisible(false)}\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 {bill_group.draft\n ?
    下書き
    \n : bill_group.disabled\n ?
    無効
    \n : bill_group.not_issued\n ?
    送信前
    \n :
    送信済み
    }\n
    \n
    \n\n
    \n
    \n 項目名\n
    \n
    \n {bill_group.name}\n
    \n
    \n\n
    \n
    \n 金額\n
    \n
    \n {`${bill_group.amount}円`}\n
    \n
    \n
    \n\n
    \n

    \n \n \n \n \n 日付\n \n

    \n\n
    \n
    \n 請求日\n
    \n
    \n {localizeDateToFullString(\n bill_group.issued_at,\n )}\n
    \n
    \n\n
    \n
    \n 期日\n
    \n
    \n {localizeDateToFullString(\n bill_group.deadline,\n )}\n
    \n
    \n
    \n\n
    \n

    \n \n \n \n \n 請求対象\n \n

    \n
    \n
    \n 人数\n
    \n
    \n {`${bill_group.size}人`}\n {(!bill_group.draft || !bill_group.not_issued) &&\n (\n <>\n
    \n {`(支払い済み ${bill_group.number_of_paid_students}人)`}\n \n )}\n
    \n
    \n\n {!classroom.settlement_agent.konbini_payment_enabled && (\n
    \n
    \n
    \n \n \n

    \n 受講者がコンビニ払いを利用できません\n

    \n
    \n
    \n \n 入金設定\n が完了するとコンビニ払いが利用可能になります。\n
    \n
    \n
    \n )}\n
    \n
    \n
    \n
      \n {bill_group.bills.map((bill: Bill, index: number) => (\n
    • \n
      \n \n
      \n
      \n \n
      \n
      \n
      \n {bill.addressee.name}\n
      \n
      \n {bill.payment_approved\n ? `支払い済み|${\n localizeDateToFullString(\n bill.payments.tried_at ||\n bill.payments.approved_at,\n )\n }`\n : bill.marked_as_paid\n ? `支払いマーク済み|${\n localizeDateToFullString(\n bill.payments.marked_as_paid_at,\n )\n }`\n : bill.payment_waiting_for_debit\n ? (\n <>\n 振替待ち\n {bill.payments.transfer_return_date &&\n ` | ${\n localizeDateToFullString(\n bill.payments\n .transfer_return_date,\n )\n }`}\n \n )\n : bill.payment_waiting_for_approval\n ? `決済中|${\n localizeDateToFullString(\n bill.payments.tried_at,\n )\n }`\n : (bill.payable || !bill_group.issued ||\n bill_group.disabled)\n ? `未入金`\n : `不明な状態`}\n {bill.payments.method_type_konbini && (\n (コンビニ払い選択)\n )}\n
      \n
      \n
      \n \n
      \n
      \n {(bill.markable_as_paid || bill.payable ||\n bill_group.not_issued) && (\n
      \n {\n setBillActionPopupTarget(bill.id);\n }}\n onBlur={(event) => {\n // event が マウスダウンかつ特定のタグ以下 (子供) だったら処理を終わる (ブロッキング)\n const isButtonFocused =\n event.relatedTarget?.tagName ===\n \"BUTTON\";\n if (!isButtonFocused) {\n setBillActionPopupTarget(null);\n }\n }}\n aria-label=\"操作\"\n aria-controls=\"user-action2\"\n aria-expanded={billActionPopupTarget ==\n bill.id\n ? \"true\"\n : \"false\"}\n >\n \n \n \n {billActionPopupTarget == bill.id && (\n <>\n \n {bill.allow_overdue_notification &&\n (\n <>\n \n {\n setNotificationDialogTarget(\n bill.id,\n );\n setBillActionPopupTarget(\n null,\n );\n }}\n >\n
      \n 支払い依頼を再送する\n
      \n \n
    • \n \n )}\n {bill.markable_as_paid &&\n (\n <>\n \n {\n setPaidDialogTarget(\n bill.id,\n );\n setBillActionPopupTarget(\n null,\n );\n }}\n >\n
      \n 支払い済みにする\n
      \n \n \n \n )}\n {(bill.payable ||\n bill_group.not_issued) &&\n (\n <>\n \n {\n setPayableDialogTarget(\n bill.id,\n );\n setBillActionPopupTarget(\n null,\n );\n }}\n >\n
      \n 請求対象から削除する\n
      \n \n \n \n )}\n
    \n \n )}\n
    \n )}\n {reminderDialogTarget == bill.id && (\n \n 支払期日の翌日12:00に送信されている支払い依頼と
    \n 同じ内容を送信します。\n \n }\n onCloseButtonClick={() =>\n setNotificationDialogTarget(\n null,\n )}\n >\n \n
    \n 送信する\n
    \n \n \n )}\n {paidDialogTarget == bill.id && (\n {\n setPaidDialogTarget(null);\n setBillActionPopupTarget(null);\n }}\n >\n \n
    \n 支払い済みにする\n
    \n \n \n )}\n {payableDialogTarget == bill.id && (\n \n setPayableDialogTarget(\n null,\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","import React, { useEffect, useState } from \"react\";\nimport TableRow, {\n EventGroup,\n Report,\n} from \"components/BillGroupsReport/TableRow\";\n\nconst reportToSearchableText = (report: Report): string => {\n const studentName = report.student.name;\n const studentNameKana = report.student.name_kana;\n const eventGroupNames = report.enrolled_event_groups.map((eg) => eg.name);\n return `${studentName} ${studentNameKana} ${eventGroupNames}`;\n};\n\ninterface Props {\n reports: Report[];\n prev_month: number;\n current_month: number;\n next_month: number;\n all_event_groups: EventGroup[];\n}\n\nexport default function BillGroupsReport(\n { reports, prev_month, current_month, next_month, all_event_groups }: Props,\n): JSX.Element {\n const [filteredReports, setFilteredReports] = useState(reports);\n const [checkedFilters, setCheckedFilters] = useState([]);\n const [isFiltersVisible, setIsFiltersVisible] = useState(false);\n\n const searchCheckBoxElements = [{\n id: `filter-checkbox-none`,\n name: \"コース未参加\",\n }].concat(all_event_groups.map((eg) => {\n return { id: `filter-checkbox-${eg.id}`, name: eg.name };\n }));\n\n const handleKeywordSearch = (keyword: string) => {\n if (keyword == \"\") {\n setFilteredReports(reports);\n return;\n }\n\n const searchKeywords = keyword.trim().toLowerCase().match(/[^\\s]+/g);\n if (searchKeywords === null) {\n setFilteredReports(reports);\n return;\n }\n\n const result = reports.filter((report) => {\n const searchableText = reportToSearchableText(report);\n return searchKeywords.every((kw) =>\n searchableText.toLowerCase().indexOf(kw) !== -1\n );\n });\n\n setFilteredReports(result);\n };\n\n useEffect(() => {\n if (checkedFilters.length === 0) {\n setFilteredReports(reports);\n return;\n }\n\n const filteredEventGroupName = checkedFilters.map((id) =>\n searchCheckBoxElements.find((elm) => elm.id === id).name\n );\n const result = reports.filter((report) => {\n const enrolledEventGroupName = report.enrolled_event_groups.map((eg) =>\n eg.name\n );\n return filteredEventGroupName.some((filter) => {\n if (filter === \"コース未参加\") {\n return enrolledEventGroupName.length === 0;\n } else {\n return enrolledEventGroupName.some((name) => name === filter);\n }\n });\n });\n\n setFilteredReports(result);\n }, [checkedFilters]);\n\n const handleChangeFilterCheckbox = (target) => {\n if (target.checked) {\n setCheckedFilters([...checkedFilters, target.id]);\n } else {\n setCheckedFilters(\n checkedFilters.filter((checkBoxId) => checkBoxId !== target.id),\n );\n }\n };\n\n return (\n <>\n
    \n
    \n
    \n handleKeywordSearch(e.target.value)}\n aria-controls=\"billgroup-report-table\"\n />\n \n
    \n setIsFiltersVisible(!isFiltersVisible)}\n >\n
    \n \n
    \n
    \n コース絞り込み\n
    \n \n
    \n {isFiltersVisible && (\n \n
      \n {searchCheckBoxElements.map((elm) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n )}\n \n
    \n \n \n \n \n 受講者名\n \n \n コース名\n \n \n {Number(prev_month)}月\n \n \n {Number(current_month)}月(今月)\n \n \n {Number(next_month)}月\n \n \n \n \n {filteredReports.map((report) => (\n \n ))}\n \n \n
    \n \n );\n}\n","import React from \"react\";\nimport { numberFormat } from \"utils/number-format\";\n\ninterface Student {\n id: number;\n name: string;\n name_kana: string;\n url: string;\n}\n\nexport interface EventGroup {\n id: number;\n name: string;\n}\n\ninterface BillGroup {\n id: number;\n name: string;\n amount: number;\n}\n\nexport interface Report {\n student: Student;\n enrolled_event_groups: EventGroup[];\n prev_month: {\n total_billing_amount: number;\n bill_groups: BillGroup[];\n };\n current_month: {\n total_billing_amount: number;\n bill_groups: BillGroup[];\n };\n next_month: {\n total_billing_amount: number;\n bill_groups: BillGroup[];\n };\n}\n\ninterface Props {\n report: Report;\n}\n\nexport default function TableRow({ report }: Props): JSX.Element {\n return (\n \n \n \n {report.student.name}\n \n \n \n {report.enrolled_event_groups.map((e) => e.name).join(\"/\")}\n \n \n {numberFormat(report.prev_month.total_billing_amount)}円\n \n \n {numberFormat(report.current_month.total_billing_amount)}円\n \n \n {numberFormat(report.next_month.total_billing_amount)}円\n \n \n );\n}\n","import React from \"react\";\nimport { useFieldArray, useForm } from \"react-hook-form\";\nimport { ModalBackButton } from \"components/ModalBackButton\";\nimport { useApi } from \"hooks/api\";\nimport * as Sentry from \"@sentry/browser\";\nimport showingSnackBar from \"packs/snackbar\";\n\ninterface Props {\n bill_item_templates: BillItemTemplate[];\n management_classroom_bill_item_templates_path: string;\n}\n\ninterface BillItemTemplate {\n id: number;\n name: string;\n amount: number;\n}\n\nexport default function BillItemTemplatesPage(props: Props): JSX.Element {\n const { control, register, handleSubmit, setValue, formState: { errors } } =\n useForm({\n defaultValues: {\n bill_item_templates: props.bill_item_templates,\n },\n mode: \"all\",\n });\n const { patch } = useApi();\n const { fields, append, remove } = useFieldArray(\n {\n control,\n name: \"bill_item_templates\",\n },\n );\n const addBillItemTemplate = () =>\n append({ id: undefined, name: undefined, amount: undefined }, {\n shouldFocus: true,\n });\n const onSubmit = async (data) => {\n const { bill_item_templates, message, response } = await patch(\n props.management_classroom_bill_item_templates_path,\n {\n bill_item_templates: data,\n },\n );\n if (response.ok) {\n setValue(\"bill_item_templates\", bill_item_templates);\n } else {\n // TODO: この分岐に入ると csrfToken が無効なものになる問題をどうにかする\n Sentry.captureMessage(\n `メンバー別コース選択モーダルのリクエストでエラーが発生しました。form_action: \"${props.management_classroom_bill_item_templates_path}\" data: \"${\n JSON.stringify(data)\n }\"`,\n );\n }\n // TODO: SnackBar のReactコンポーネントを用意して VanillaJS 経由でDOM操作するのを辞める\n showingSnackBar(message);\n };\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 \n \n \n \n 項目名\n \n \n 金額\n \n \n \n \n \n {fields.map((billItemTemplate, index) => (\n <>\n \n \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n remove(index)}\n >\n
    \n \n \n
    \n \n \n \n \n \n {errors.bill_item_templates?.[index]?.name && (\n
    \n {errors.bill_item_templates[index].name.message}\n
    \n )}\n {errors.bill_item_templates?.[index]?.amount && (\n
    \n {errors.bill_item_templates[index].amount\n .message}\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
    \n
    \n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport Turbolinks from \"turbolinks\";\nimport { FormProvider, useForm } from \"react-hook-form\";\nimport { useApi } from \"../hooks/api\";\nimport * as Sentry from \"@sentry/browser\";\nimport ErrorBanner from \"./ErrorBanner\";\nimport Snackbar from \"./Snackbar\";\nimport TextAvatar from \"./TextAvatar\";\nimport ClassroomEnrollmentCustomFieldFormSection from \"./ClassroomEnrollmentPage/ClassroomEnrollmentCustomFieldFormSection\";\nimport ClassroomEnrollmentStudentFormSection from \"./ClassroomEnrollmentPage/ClassroomEnrollmentStudentFormSection\";\nimport ClassroomEnrollmentConfirmDialog from \"./ClassroomEnrollmentPage/ClassroomEnrollmentConfirmDialog\";\nimport ClassroomEnrollmentUserFormSection from \"./ClassroomEnrollmentPage/ClassroomEnrollmentUserFormSection\";\n\ninterface Props {\n classroom_enrollment_params: ClassroomEnrollmentParams;\n errors: string[];\n classroom: Classroom;\n students: Student[];\n addresses: Address[];\n custom_fields: EnrollmentCustomField[];\n classroom_path: string;\n enrollments_path: string;\n settings_path: string;\n}\n\nexport interface ClassroomEnrollmentParams {\n student_id: string;\n student_name: string;\n student_name_kana: string;\n student_dependent: string;\n student_address: number;\n student_date_of_birth: string;\n student_gender: string;\n student_address_id: string;\n student_address_postal_code: number;\n student_address_address: string;\n user_name: string;\n user_phone_number: string;\n optional_bill_id: number;\n allowed_to_settle_automatically: boolean;\n agreed_to_term: boolean;\n custom_fields: {\n custom_field_id: number;\n custom_field_option_id: number;\n name: string;\n value: string;\n }[];\n}\n\nexport interface Classroom {\n name: string;\n icon: string;\n term: {\n name: string;\n url: string;\n } | null;\n}\n\nexport interface Student {\n id: number;\n name: string;\n name_kana: string;\n date_of_birth: string;\n dependent: boolean;\n gender: string;\n}\n\nexport interface Address {\n id: number;\n postal_code: string;\n address: string;\n}\n\nexport interface EnrollmentCustomField {\n id: number;\n name: string;\n field_type: \"free_text\" | \"single_select\";\n options?: {\n id: number;\n option_value: string;\n }[];\n}\n\nexport default function ClassroomEnrollmentPage(props: Props): JSX.Element {\n const [message, setMessage] = useState(null);\n const [openConfirmDialog, setOpenConfirmDialog] = useState(false);\n const [loading, setLoading] = useState(false);\n\n const methods = useForm({\n defaultValues: {\n ...props.classroom_enrollment_params,\n student_id: props.students?.[0]?.id?.toString(),\n student_name: props.students?.[0]?.name,\n student_name_kana: props.students?.[0]?.name_kana,\n },\n mode: \"all\",\n });\n const {\n register,\n trigger,\n watch,\n handleSubmit,\n formState: { isValid },\n } = methods;\n\n const { post } = useApi();\n const onSubmit = async (data) => {\n setLoading(true);\n const { redirect_url, message, response } = await post(\n props.enrollments_path,\n {\n enroll_event_group_form: data,\n },\n );\n if (response.ok) {\n Turbolinks.visit(redirect_url);\n } else {\n Sentry.captureMessage(\n `入会リクエストでエラーが発生しました。form_action: \"${props.enrollments_path}\"`,\n );\n setMessage(message);\n setLoading(false);\n }\n };\n\n const onConfirmDialogOpen = async () => {\n await trigger();\n if (isValid) {\n setOpenConfirmDialog(true);\n } else {\n setMessage(\"入力内容に不備があります\");\n }\n };\n\n return (\n \n
    \n
    \n

    \n 受講者登録\n

    \n\n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n\n
    \n {props.errors && }\n\n \n\n
    \n
    \n
    \n

    \n 教室\n

    \n\n
    \n
    \n
    \n
      \n
    • \n
      \n
      \n {props.classroom.icon\n ? (\n
      \n \n
      \n )\n : (\n \n )}\n
      \n\n
      \n
      \n {props.classroom.name}\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 は必須項目です\n
    • \n
    \n
    \n\n \n\n
    \n \n
    \n\n \n
    \n
    \n
    \n\n {props.classroom.term && (\n
    \n
    \n

    \n 教室の利用規約\n

    \n\n
    \n

    \n \n {props.classroom.term.name}\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
      \n
    • 教室からの請求に自動で支払いできる機能です
    • \n
    • \n 自動支払いには「自動支払いへの許可」と「クレジットカードの登録」または「口座登録」が必要です\n
    • \n
    • ここでは「自動支払いの許可」が行えます
    • \n
    • \n 自動支払いの設定は、いつでも設定・解除ができるのでご安心ください\n
    • \n
    \n
    \n
    \n 決済システム『Stripe』へクレジットカード情報を、または決済システム『PGマルチペイメントサービス』へ口座情報を保存することを承諾し、別途「入会済みの教室」への許可を取り消されるまで、当該教室における今後の取引に際し、保存されたクレジットカード情報または口座情報を使用して自動支払いすることを許可します。\n
    \n 取引の例:月謝、用具代、雑費、参加費など(詳細は各教室にて請求内容をご確認ください)\n
    \n
    \n
    \n
    \n \n \n \n {props.classroom.name}\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 {!isValid &&\n (\n
    \n 未入力の項目があります\n
    \n )}\n \n
    \n 確認画面へ\n
    \n \n
    \n
    \n
    \n \n
    \n\n {openConfirmDialog && (\n setOpenConfirmDialog(false)}\n onSubmit={handleSubmit(onSubmit)}\n loading={loading}\n />\n )}\n\n {message && {message}}\n
    \n );\n}\n","import React, { ChangeEvent } from \"react\";\n\nimport { useFormContext } from \"react-hook-form\";\nimport { Address, ClassroomEnrollmentParams } from \"../ClassroomEnrollmentPage\";\n\ninterface Props {\n addresses: Address[];\n}\n\nexport default function ClassroomEnrollmentAddressFormSection(\n { addresses }: Props,\n): JSX.Element {\n const { register, watch, formState: { errors } } = useFormContext<\n ClassroomEnrollmentParams\n >();\n\n return (\n <>\n
    \n
    \n 住所\n
    \n
    \n \n\n {addresses.map((address) => (\n \n ))}\n\n \n\n
    \n {errors.student_address_id?.message}\n
    \n
    \n
    \n
    \n
    \n\n {watch(\"student_address_id\") === \"new\" && (\n
    \n 新しく登録する住所\n
    \n
    \n \n \n \n 郵便番号\n \n \n
    \n {errors.student_address_postal_code?.message}\n
    \n
    \n
    \n
    \n 例:1508512\n
    \n\n
    \n
    \n \n \n \n 住所\n \n \n
    \n {errors.student_address_address?.message}\n
    \n
    \n
    \n
    \n 例:東京都渋谷区桜丘町26-1 桜丘マンション201\n
    \n
    \n )}\n \n );\n}\n","import React from \"react\";\nimport {\n Classroom,\n ClassroomEnrollmentParams,\n} from \"../ClassroomEnrollmentPage\";\nimport TextAvatar from \"../TextAvatar\";\nimport localizeGender from \"../../utils/localize-gender\";\n\ninterface Props {\n classroom: Classroom;\n classroomEnrollmentParams: ClassroomEnrollmentParams;\n onConfirmDialogClose: () => void;\n onSubmit: () => Promise;\n loading: boolean;\n}\n\nexport default function ClassroomEnrollmentConfirmDialog(\n props: Props,\n): JSX.Element {\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
    \n
    \n
    \n
      \n
    • \n
      \n
      \n {props.classroom.icon\n ? (\n
      \n \n
      \n )\n : (\n \n )}\n
      \n\n
      \n
      \n {props.classroom.name}\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
    {props.classroomEnrollmentParams.student_name}
    \n
    フリガナ
    \n
    \n {props.classroomEnrollmentParams.student_name_kana}\n
    \n
    生年月日
    \n
    \n {props.classroomEnrollmentParams.student_date_of_birth}\n
    \n {props.classroom.term &&\n props.classroomEnrollmentParams.agreed_to_term && (\n <>\n
    教室利用規約への同意
    \n
    同意する
    \n \n )}\n {props.classroomEnrollmentParams.student_gender && (\n <>\n
    性別
    \n
    \n {localizeGender(\n props.classroomEnrollmentParams.student_gender,\n )}\n
    \n \n )}\n {props.classroomEnrollmentParams\n .student_address_postal_code && (\n <>\n
    住所
    \n
    \n {props.classroomEnrollmentParams\n .student_address_postal_code}\n
    \n {props.classroomEnrollmentParams\n .student_address_address}\n
    \n \n )}\n {props.classroomEnrollmentParams.custom_fields?.map((\n customField,\n ) => (\n <>\n {/* メモ:カスタム項目の「設問名」が表示されず */}\n
    {customField.name}
    \n
    \n {customField.value}\n
    \n \n ))}\n
    \n
    \n
    \n\n
    \n

    \n アカウント情報\n

    \n
    \n
    氏名
    \n
    {props.classroomEnrollmentParams.user_name}
    \n
    電話番号
    \n
    \n {props.classroomEnrollmentParams.user_phone_number}\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}\n","import React from \"react\";\n\nimport {\n useFormContext,\n UseFormRegister,\n UseFormSetValue,\n} from \"react-hook-form\";\nimport {\n ClassroomEnrollmentParams,\n EnrollmentCustomField,\n} from \"../ClassroomEnrollmentPage\";\nimport { FieldErrors } from \"react-hook-form/dist/types/errors\";\n\ninterface Props {\n customFields: EnrollmentCustomField[];\n}\n\nexport default function ClassroomEnrollmentCustomFieldFormSection(\n { customFields }: Props,\n): JSX.Element {\n const { register, setValue, formState: { errors } } = useFormContext<\n ClassroomEnrollmentParams\n >();\n\n return (\n <>\n {customFields.map((customField, customFieldIndex) => (\n
    \n \n {/* 確認画面の表示用に埋め込んでおく */}\n \n\n {customField.field_type === \"free_text\" && (\n
    \n \n {customField.name}\n *\n \n
    \n \n \n \n {customField.name}\n \n \n
    \n {errors.custom_fields?.[customFieldIndex]?.value?.message}\n
    \n
    \n
    \n )}\n\n {customField.field_type === \"single_select\" && (\n
    \n \n {customField.name}\n *\n \n
    \n
    \n \n\n {customField.options.map((option, optionIndex) => (\n \n {\n setValue(\n `custom_fields.${customFieldIndex}.value`,\n option.option_value,\n );\n setValue(\n `custom_fields.${customFieldIndex}.custom_field_option_id`,\n option.id,\n );\n }}\n defaultChecked={optionIndex === 0}\n className=\"radio\"\n />\n \n {option.option_value}\n \n \n ))}\n
    \n
    \n {errors.custom_fields?.[customField.id]?.value?.message}\n
    \n
    \n
    \n )}\n
    \n ))}\n \n );\n}\n","import React, { useState } from \"react\";\n\nimport { useFormContext } from \"react-hook-form\";\nimport {\n Address,\n ClassroomEnrollmentParams,\n Student,\n} from \"../ClassroomEnrollmentPage\";\nimport TextAvatar from \"../TextAvatar\";\nimport ClassroomEnrollmentAddressFormSection from \"./ClassroomEnrollmentAddressFormSection\";\n\ninterface Props {\n students: Student[];\n addresses: Address[];\n}\n\nexport default function ClassroomEnrollmentStudentFormSection(\n { students, addresses }: Props,\n): JSX.Element {\n const [studentFormType, setStudentFormType] = useState<\"form\" | \"selector\">(\n students.length === 0 ? \"form\" : \"selector\",\n );\n const { register, setValue, formState: { errors } } = useFormContext<\n ClassroomEnrollmentParams\n >();\n\n const setStudentAttributes = (student_id: number = null) => {\n const student = students.find((student) => student.id === student_id) || {\n id: null,\n name: \"\",\n name_kana: \"\",\n dependent: \"true\",\n date_of_birth: \"2000-01-01\",\n gender: \"\",\n };\n setValue(\"student_id\", student.id?.toString());\n setValue(\"student_name\", student.name);\n setValue(\"student_name_kana\", student.name_kana);\n setValue(\"student_dependent\", student.dependent.toString());\n setValue(\n \"student_date_of_birth\",\n student.date_of_birth,\n );\n setValue(\"student_gender\", student.gender);\n };\n const onNewStudentFormSwitch = () => {\n setStudentAttributes(null);\n setStudentFormType(\"form\");\n };\n\n return studentFormType === \"form\"\n ? (\n
    \n
    \n

    \n {students.length > 0 ? \"新しい受講者を追加\" : \"受講者情報\"}\n

    \n\n {students.length > 0 && (\n
    \n setStudentFormType(\"selector\")}\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 {errors.student_dependent?.message}\n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n \n \n \n 受講者の氏名\n *\n \n \n
    \n {errors.student_name?.message}\n
    \n
    \n
    \n\n
    \n
    \n \n \n \n フリガナ\n *\n \n \n
    \n {errors.student_name_kana?.message}\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 {errors.student_gender?.message}\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
    \n
      \n {students.map((student, index) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n {errors.student_id?.message}\n
    \n
    \n \n );\n}\n","import React from \"react\";\n\nimport { useFormContext } from \"react-hook-form\";\nimport { ClassroomEnrollmentParams } from \"../ClassroomEnrollmentPage\";\n\ninterface Props {\n initialUserName: string;\n initialUserPhoneNumber: string;\n currentStudentDependent: string;\n settings_path: string;\n}\n\nexport default function ClassroomEnrollmentUserFormSection(\n props: Props,\n): JSX.Element {\n const { register, formState: { errors } } = useFormContext<\n ClassroomEnrollmentParams\n >();\n\n return props.currentStudentDependent === \"true\"\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 {errors.user_name?.message}\n
    \n
    \n
    \n\n
    \n
    \n \n \n \n 電話番号\n *\n \n \n
    \n {errors.user_phone_number?.message}\n
    \n
    \n
    \n {!props.initialUserPhoneNumber &&\n (\n
    \n ※ ハイフン無し(例:00012345678)\n
    \n )}\n
    \n
    \n
    \n )\n : (\n <>\n
    \n
    \n \n 電話番号\n *\n \n {props.initialUserPhoneNumber &&\n (\n
    \n \n
    \n )}\n
    \n
    \n \n \n \n 電話番号\n \n \n
    \n {errors.user_phone_number?.message}\n
    \n
    \n
    \n {!props.initialUserPhoneNumber &&\n (\n
    \n ※ ハイフン無し(例:00012345678)\n
    \n )}\n
    \n
    \n \n );\n}\n","import React, { useMemo } from \"react\";\nimport { colorClassName } from \"utils/color-class-name\";\n\nexport default function CoverStripe(\n {\n classroomName = \"1\",\n },\n): JSX.Element {\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 \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 \n \n \n );\n}\n","import React, { ReactNode } from \"react\";\n\ninterface Props {\n title?: string;\n description?: string | ReactNode;\n onCloseButtonClick: () => void;\n children?: ReactNode;\n}\n\nexport default function Dialog(\n { title, description, onCloseButtonClick, children }: Props,\n) {\n return (\n \n \n\n
    \n
    \n {title && (\n

    \n {title}\n

    \n )}\n {description && (\n
    \n {description}\n
    \n )}\n\n
    \n
      \n
    • \n \n
      \n キャンセル\n
      \n \n
    • \n\n
    • \n {children}\n
    • \n
    \n
    \n
    \n
    \n \n );\n}\n","import React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nexport type Errors = string[] | null;\n\ninterface Props {\n errors: Errors;\n}\n\nexport default function ErrorBanner({ errors }: Props): JSX.Element {\n if (!errors || errors.length === 0) {\n return <>;\n }\n\n return (\n
    \n
    \n \n \n
    \n
    \n
    \n 入力した内容に{errors.length}件の不備がありました\n
    \n
      \n {errors.map((error, index) => (\n
    • \n {error}\n
    • \n ))}\n
    \n
    \n
    \n );\n}\n","import React, { useState } from \"react\";\nimport ParticipantsSelectorView from \"components/EventForm/ParticipantsSelectorView\";\nimport TextAvatar from \"../TextAvatar\";\nimport RemainingParticipantsCount from \"components/EventForm/RemainingParticipantsCount\";\nimport { Props } from \"components/EventForm/index\";\n\nexport default function ParticipantsSelector(\n {\n form_name,\n attributes_name,\n addressee_attribute_name,\n show_automatic_settlement_enabled,\n classroom_event_groups,\n enrollments,\n selected_student_ids,\n }: Props,\n): JSX.Element {\n const [open, setOpen] = useState(false);\n const [selectedStudentIds, setSelectedStudentIds] = useState(\n selected_student_ids,\n );\n const [selectedEventGroupIds, setSelectedEventGroupIds] = useState(\n [],\n );\n\n return (\n
    \n \n\n setOpen(true)}\n >\n
    \n
    {selectedStudentIds.length}人
    \n
    \n
    \n \n
    \n
    \n\n
    \n
    \n
      \n {selectedEventGroupIds.map((id) => {\n const eventGroup = classroom_event_groups.find((eventGroup) => {\n return eventGroup.id === id;\n });\n const eventGroupEnrollments = enrollments.filter((enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n });\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n
    • \n
      \n {eventGroup.name}\n ({count}/{total}人)\n
      \n
    • \n );\n })}\n
    \n
    \n
    \n\n
      \n {enrollments.filter((enrollment) =>\n selectedStudentIds.includes(enrollment.student.id)\n ).map((enrollment) => (\n
    • \n
      \n
      \n \n
      \n
      \n
      \n {enrollment.student.name}\n
      \n
      \n {enrollment.event_groups.map((eventGroup) => eventGroup.name)\n .join(\", \")}\n
      \n
      \n {show_automatic_settlement_enabled &&\n enrollment.allowed_to_settle_automatically && (\n
      \n
      \n \n
      \n 自動支払い設定済み\n
      \n
      \n
      \n )}\n
      \n \n
    • \n ))}\n
    \n\n {open && (\n setOpen(false)}\n selectedStudentIds={selectedStudentIds}\n setSelectedStudentIds={setSelectedStudentIds}\n selectedEventGroupIds={selectedEventGroupIds}\n setSelectedEventGroupIds={setSelectedEventGroupIds}\n />\n )}\n \n );\n}\n","import React, { useCallback, useMemo, useState } from \"react\";\nimport TextAvatar from \"../TextAvatar\";\n\ninterface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\ninterface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\ninterface Props {\n show_automatic_settlement_enabled: boolean;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n onCloseButtonClick: () => void;\n selectedStudentIds: number[];\n setSelectedStudentIds: (selectedEnrollmentIds: number[]) => void;\n selectedEventGroupIds: number[];\n setSelectedEventGroupIds: (selectedEventGroupIds: number[]) => void;\n}\n\nexport default function EventFormParticipantsSelectorView(\n {\n show_automatic_settlement_enabled,\n classroom_event_groups,\n enrollments,\n onCloseButtonClick,\n selectedStudentIds,\n setSelectedStudentIds,\n selectedEventGroupIds,\n setSelectedEventGroupIds,\n }: Props,\n): JSX.Element {\n const [openDropdown, setOpenDropdown] = useState(false);\n const allStudentSelected = enrollments.length === selectedStudentIds.length;\n\n const deselectEventGroup = useCallback((eventGroup: EventGroup) => {\n setSelectedEventGroupIds(\n selectedEventGroupIds.filter((id) => {\n return id !== eventGroup.id;\n }),\n );\n const studentIds = enrollments.filter(\n (enrollment) => {\n return enrollment.event_groups.some((g) => {\n return g.id === eventGroup.id;\n });\n },\n ).map((enollment) => {\n return enollment.student.id;\n });\n setSelectedStudentIds(\n selectedStudentIds.filter((id) => {\n return !studentIds.includes(id);\n }),\n );\n }, [\n enrollments,\n selectedStudentIds,\n setSelectedStudentIds,\n selectedEventGroupIds,\n setSelectedEventGroupIds,\n ]);\n\n return (\n
    \n
    \n
    \n
    \n 対象を選択 ({selectedStudentIds.length})\n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n setOpenDropdown(!openDropdown)}\n >\n \n {selectedEventGroupIds.length > 0\n ? \"複数コース\"\n : \"コースをもとに選ぶ\"}\n \n
    \n \n
    \n
    \n {openDropdown && (\n \n {classroom_event_groups.filter((eventGroup) => !eventGroup.root)\n .map((eventGroup) => (\n
  • \n \n
  • \n ))}\n \n )}\n
    \n\n
    \n
      \n {selectedEventGroupIds.map((id) => {\n const eventGroup = classroom_event_groups.find((eventGroup) => {\n return eventGroup.id === id;\n });\n\n if (!eventGroup) {\n return;\n }\n\n const eventGroupEnrollments = enrollments.filter((enrollment) => {\n return enrollment.event_groups.some((g) =>\n g.id === eventGroup.id\n );\n });\n const total = eventGroupEnrollments.length;\n const count = eventGroupEnrollments.filter((enrollment) => {\n return selectedStudentIds.includes(enrollment.student.id);\n }).length;\n return (\n deselectEventGroup(eventGroup)}\n >\n \n \n );\n })}\n
    \n
    \n\n
      \n
    • \n \n
    • \n {enrollments.map((enrollment) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n
    \n \n 対象者を決定\n \n
    \n
    \n
    \n \n );\n}\n","import React, { useEffect, useState } from \"react\";\n\ninterface Props {\n selectedStudentsCount: number;\n}\n\nexport default function RemainingParticipantsCount(\n {\n selectedStudentsCount,\n }: Props,\n) {\n const [attendeeLimit, setAttendeeLimit] = useState(\n null,\n );\n\n const remainingParticipantsCount = attendeeLimit - selectedStudentsCount;\n\n // #TODO:このuseEffectは「予定の作成」ページreact化までの暫定対応です。\n // ページ全体をreact化される際はこちらの機能についてもreact化をお願いいたします。\n useEffect(() => {\n const attendeeLimitInput = document.getElementById(\"js-attendee-limit\");\n if (\n !(attendeeLimitInput && attendeeLimitInput instanceof HTMLInputElement)\n ) {\n return;\n }\n attendeeLimitInput.addEventListener(\"input\", (event) => {\n setAttendeeLimit(Math.max(parseInt(attendeeLimitInput.value, 10), 0));\n });\n }, []);\n\n const [defaultParticipationStatus, setDefaultParticipationStatus] = useState(\n \"going\",\n );\n\n useEffect(() => {\n const handleStatusChange = (event) => {\n setDefaultParticipationStatus(event.target.value);\n };\n\n const currentStatus = document.querySelectorAll(\n \".js-default-participation-status\",\n );\n\n currentStatus.forEach((input) => {\n input.addEventListener(\"change\", handleStatusChange);\n });\n\n return () => {\n currentStatus.forEach((input) => {\n input.removeEventListener(\"change\", handleStatusChange);\n });\n };\n }, []);\n\n if (attendeeLimit === null || defaultParticipationStatus !== \"going\") {\n return null;\n }\n\n return (\n
    \n {remainingParticipantsCount === 0 && (\n \n 満席\n \n )}\n {remainingParticipantsCount > 0 && (\n \n あと {remainingParticipantsCount}席\n \n )}\n {remainingParticipantsCount < 0 && (\n \n 定員オーバー\n \n )}\n
    \n );\n}\n","import React from \"react\";\nimport ParticipantsSelector from \"components/EventForm/ParticipantsSelector\";\n\nexport interface EventGroup {\n id: number;\n name: string;\n root: boolean;\n}\n\nexport interface Enrollment {\n id: number;\n student: {\n id: number;\n name: string;\n };\n event_groups: EventGroup[];\n allowed_to_settle_automatically: boolean;\n}\n\nexport interface Props {\n form_name: string;\n attributes_name: string;\n addressee_attribute_name: string;\n show_automatic_settlement_enabled: boolean;\n classroom_event_groups: EventGroup[];\n enrollments: Enrollment[];\n selected_student_ids: number[];\n}\n\nexport default function EventForm(\n props: Props,\n): JSX.Element {\n return ;\n}\n","import React from \"react\";\n\nexport default function FabButton(\n {\n label,\n icon = \"plus\",\n onClick = () => {},\n },\n): JSX.Element {\n return (\n
    \n
    \n
    \n \n
    \n \n
    \n\n
    \n {label}\n
    \n \n
    \n
    \n
    \n );\n}\n","import React, { ReactNode } from \"react\";\n\ninterface Props {\n title?: string;\n description?: string;\n onCloseButtonClick: () => void;\n children?: ReactNode;\n}\n\nexport default function HelpModal(\n { title, onCloseButtonClick, children }: Props,\n) {\n return (\n \n
    \n
    \n
    \n
    \n {title && (\n

    \n {title}\n

    \n )}\n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n {children}\n
    \n
    \n
    \n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport Cover from \"components/ManagementClassroomSettings/Cover\";\nimport Header from \"components/ManagementClassroomSettings/Header\";\nimport Page from \"components/ManagementClassroomSettings/Page\";\n\nexport default function ManagementClassroomSettings(\n {\n classroom,\n formAuthenticityToken,\n },\n): JSX.Element {\n const tabAnchor = window.location.href.split(\"#\")[1] || \"summary\";\n const [activeTab, setActiveTab] = useState(tabAnchor);\n\n return (\n
    \n \n\n \n\n
    \n \n
    \n
    \n );\n}\n","import React from \"react\";\nimport ConfigDeleteClassroom from \"components/ManagementClassroomSettings/ConfigDeleteClassroom\";\nimport ConfigSubscription from \"components/ManagementClassroomSettings/ConfigSubscription\";\nimport TabHeader from \"components/ManagementClassroomSettings/TabHeader\";\n\nexport default function Config(\n {\n classroom,\n formAuthenticityToken,\n },\n): JSX.Element {\n if (!classroom.policyCanShow) {\n return null;\n }\n\n return (\n
    \n
    \n \n
    \n\n \n\n {classroom.policyCanDestroyManagementOrganizations && (\n \n )}\n
    \n );\n}\n","import React, { useState } from \"react\";\nimport Dialog from \"components/Dialog\";\n\nexport default function ConfigDeleteClassroom(\n {\n classroom,\n formAuthenticityToken,\n },\n): JSX.Element {\n const [showDeleteDialog, setShowDeleteDialog] = useState(false);\n\n return (\n
    \n
    \n
    \n

    \n 教室の削除\n

    \n
    \n\n
    \n
    \n
    \n setShowDeleteDialog(true)}\n >\n
    \n 教室の削除\n
    \n \n
    \n\n {showDeleteDialog && (\n \n 教室の全てのデータが削除されます。
    \n 教室に受講者がいる場合、教室から自動で退会となるため同意のうえで操作をお願いします。
    \n 削除されたデータの復旧はできかねますのでご了承ください。\n \n }\n onCloseButtonClick={() => setShowDeleteDialog(false)}\n >\n \n \n\n \n\n \n
    \n 削除する\n
    \n \n \n \n )}\n
    \n
    \n
    \n
    \n );\n}\n","import React, { useState } from \"react\";\nimport Dialog from \"components/Dialog\";\n\nexport default function ConfigSubscription(\n {\n classroom,\n formAuthenticityToken,\n },\n): JSX.Element {\n const [showCancelDialog, setShowCancelDialog] = useState(false);\n\n const cardbrandImage = (brand) => {\n switch (brand) {\n case \"amex\":\n case \"diners\":\n case \"discover\":\n case \"master\":\n case \"jcb\":\n case \"visa\":\n return brand;\n default:\n return \"others\";\n }\n };\n\n return (\n \n
    \n
    \n

    \n ご利用状況\n

    \n
    \n\n
    \n {classroom.currentPlatformSubscriptions.map(\n (currentPlatformSubscription) => (\n currentPlatformSubscription.activated\n ? (\n \n
    \n
    \n

    \n {currentPlatformSubscription.platformPlanName}\n\n {currentPlatformSubscription.platformPlan\n .name != \"trial\"\n ? (\n \n {currentPlatformSubscription.canceled\n ? \"自動更新停止中\"\n : \"自動更新\"}\n \n )\n : null}\n

    \n
    \n\n
    \n {currentPlatformSubscription.startDateYmda}\n 〜\n {currentPlatformSubscription.endDateYmda}\n\n {currentPlatformSubscription.canceled\n ? (\n

    \n {currentPlatformSubscription.platformPlan\n .name == \"trial\"\n ? \"トライアル\"\n : \"期間\"}\n 終了後も利用を続ける場合は支払い設定が必要です。\n

    \n )\n : (\n
    \n {currentPlatformSubscription.platformPlan\n .name == \"trial\" &&\n !currentPlatformSubscription\n .endDateIsEndOfMonth\n ? (\n \n
    \n
    初回支払日
    \n
    \n {currentPlatformSubscription\n .endDateYmda}\n
    \n
    \n\n
    \n
    初回請求額
    \n
    \n 145円(日額)×トライアル終了日翌日から当月末までの日数\n
    \n
    \n
    \n )\n : null}\n\n
    \n
    \n {currentPlatformSubscription\n .platformPlan.name == \"trial\" &&\n currentPlatformSubscription\n .endDateIsEndOfMonth\n ? \"初回\"\n : \"次回\"}\n 支払日\n
    \n\n
    \n {currentPlatformSubscription\n .endDateYmda}\n
    \n
    \n\n
    \n
    \n {currentPlatformSubscription\n .platformPlan.name == \"trial\" &&\n currentPlatformSubscription\n .endDateIsEndOfMonth\n ? \"初回\"\n : \"次回\"}\n 請求額\n
    \n\n
    月額利用料 4,378円(税込)
    \n
    \n
    \n )}\n
    \n\n
    \n
      \n
    • \n \n
      \n 月額利用料の支払い設定\n
      \n \n
    • \n\n
    • \n \n
      \n 支払い履歴\n
      \n \n
    • \n\n {!currentPlatformSubscription.canceled\n ? (\n
    • \n setShowCancelDialog(true)}\n >\n
      \n 自動更新の停止\n
      \n \n
    • \n )\n : null}\n\n {showCancelDialog\n ? (\n \n setShowCancelDialog(false)}\n >\n \n
      \n 停止する\n
      \n \n \n )\n : null}\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
    • \n
    \n\n
    \n \n
    \n 月額利用料の支払い\n
    \n \n
    \n
    \n
    \n
    \n )\n ),\n )}\n\n {classroom.currentPlatformSubscriptions.length == 0\n ? (\n
    \n
    \n
    \n \n \n
    \n\n {classroom.paymentCardMethods.length > 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
    • \n\n
    • \n
        \n
      • 受講者の新規入会
      • \n
      • 請求の新規作成
      • \n
      • お知らせの新規作成
      • \n
      • 予定の新規作成
      • \n
      \n
    • \n
    \n\n
    \n \n
    \n 月額利用料の支払い\n
    \n \n
    \n
    \n )}\n
    \n
    \n )\n : null}\n\n {classroom.paymentCardMethods.length > 0\n ? (\n
    \n
    \n

    \n 登録済みのクレジットカード\n

    \n
    \n\n
    \n
    \n
      \n {classroom.paymentCardMethods.map((\n paymentCardMethod,\n ) => (\n
    • \n
      \n
      \n
      \n
      \n {cardbrandImage(\n paymentCardMethod.card.brand,\n ) == \"others\"\n ? (\n \n {paymentCardMethod.card.brand}\n \n )\n : (\n \n )}\n
      \n
      \n
      \n\n
      \n
      \n \n **** **** **** {paymentCardMethod.card.last4}\n \n
      \n
      \n {paymentCardMethod.card.expMonthFormatted} /\n {paymentCardMethod.card.expYear}\n
      \n
      \n\n {classroom.paymentCardMethods.length > 1\n ? (\n
      \n
      \n \n \n\n \n\n \n
      \n 登録解除\n
      \n \n \n
      \n
      \n )\n : null}\n
      \n
    • \n ))}\n
    \n
    \n
    \n
    \n )\n : null}\n \n \n \n );\n}\n","import React, { useState } from \"react\";\nimport FabButton from \"components/FabButton\";\nimport Notice from \"components/ManagementClassroomSettings/Notice\";\nimport TabHeader from \"components/ManagementClassroomSettings/TabHeader\";\nimport \"./Courses.scss\";\n\nexport default function Courses(\n {\n classroom,\n },\n): JSX.Element {\n const [showHelpDialog, setShowHelpDialog] = useState(false);\n\n return (\n
    \n
    \n \n\n
    \n

    \n コース\n

    \n\n
    \n setShowHelpDialog(true)}\n >\n
    \n \n \n
    \n\n
    \n コースとは\n
    \n \n
    \n
    \n\n {classroom.eventGroups.length > 0\n ? (\n
    \n
    \n
      \n {classroom.eventGroups.map((eventGroup) => (\n
    • \n \n
      \n
      \n {eventGroup.name}\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 5. 受講者をコースに紐づける\n \n

    \n
    \n\n
    \n

    コースはまだありません

    \n\n \n\n

    \n 受講者を各コースにわけることで
    管理しやすくなります\n

    \n
    \n
    \n )}\n
    \n\n \n
    setShowHelpDialog(false)}>\n
    \n\n
    \n
    \n
    \n
    \n コースとは\n
    \n\n
    \n setShowHelpDialog(false)}\n aria-label=\"閉じる\"\n >\n
    \n \n
    \n \n
    \n
    \n\n
    \n
    \n
    \n 『\n 受講者の区分\n 』です。『コース』『チーム』『クラス』など受講者のグループ分けができ、受講者1人で複数コースに所属することもできます。\n
    \n\n
    \n \n
    \n\n
    \n 例)サッカー教室『キッズコース』『低学年コース』
    \n ダンススタジオ『オープンクラス』『特別クラス』\n
    \n
    \n
    \n
    \n
    \n \n\n {classroom.policyCanNewManagementClassroomsCourses && (\n \n window.location.href = classroom.newManagementClassroomCoursePath}\n />\n )}\n
    \n );\n}\n","import React from \"react\";\nimport CoverStripe from \"../CoverStripe\";\nimport { colorClassName } from \"utils/color-class-name\";\n\nexport default function Cover(\n {\n classroom,\n editPath,\n },\n): JSX.Element {\n return (\n
    \n \n
    \n {classroom.coverImage\n ? \n : }\n
    \n \n\n
    \n
    \n \n
    \n {classroom.icon\n ? (\n
    \n \n
    \n )\n : (\n \n {classroom.name[0]}\n
    \n )}\n
    \n \n
    \n
    \n \n );\n}\n","import React from \"react\";\nimport { ModalBackButton } from \"../ModalBackButton\";\nimport Tabs from \"components/ManagementClassroomSettings/Tabs\";\n\nexport default function Header(\n {\n activeTab,\n classroom,\n setActiveTab,\n },\n): JSX.Element {\n return (\n
    \n

    \n 教室設定|{classroom.name}\n

    \n\n
    \n
    \n \n
    \n
    \n\n \n
    \n );\n}\n","import React from \"react\";\nimport \"./Notice.scss\";\n\nexport default function Notice(\n {\n children,\n },\n): JSX.Element {\n return (\n
    \n \n
    {children}
    \n
    \n );\n}\n","import React from \"react\";\nimport Config from \"components/ManagementClassroomSettings/Config\";\nimport Courses from \"components/ManagementClassroomSettings/Courses\";\nimport Summary from \"components/ManagementClassroomSettings/Summary\";\n\nexport default function Page(props): JSX.Element {\n switch (props.activeTab) {\n case \"summary\":\n return ;\n case \"courses\":\n return ;\n case \"config\":\n return ;\n }\n}\n","import React from \"react\";\nimport FabButton from \"components/FabButton\";\nimport Notice from \"components/ManagementClassroomSettings/Notice\";\nimport TabHeader from \"components/ManagementClassroomSettings/TabHeader\";\nimport \"./Summary.scss\";\n\nexport default function Summary(\n {\n classroom,\n },\n): JSX.Element {\n return (\n
    \n
    \n
    \n \n\n {!classroom.description && !classroom.organization.name &&\n !classroom.organization.representative &&\n !classroom.organization.phoneNumber\n ? (\n
    \n \n

    \n GMOレンシュへようこそ!\n スタートガイド\n を見ながら進めていき、受講者を招待できるように情報を整えていきましょう\n

    \n
    \n
    \n )\n : null}\n\n
    \n
    \n

    教室の概要

    \n\n {classroom.policyCanEditManagementClassrooms\n ? (\n
    \n \n
    \n \n
    \n\n
    編集
    \n \n
    \n )\n : null}\n
    \n\n
    \n
    \n {classroom.description\n ? (\n \n )\n : \"入会する受講者にむけて教室の説明を記述しましょう\"}\n
    \n
    \n\n
    \n
    \n

    利用規約

    \n
    \n
    \n {classroom.term\n ? (\n
    \n \n \n \n {classroom.term.name}\n \n
    \n )\n : \"入会する受講者にむけて教室規約を追加しましょう\"}\n
    \n
    \n
    \n
    \n
    \n\n {classroom.currentUserIsClassroomManager &&\n !classroom.managerIsApproved\n ? (\n
    \n
    \n
    \n \n 運営メンバーとして承認を待っています\n \n
    \n
    \n
    \n )\n : null}\n\n {classroom.policyCanShow\n ? (\n
    \n
    \n
    \n
    \n

    運営者情報

    \n\n {classroom.policyCanEditManagementOrganizations && (\n
    \n \n
    \n \n
    \n\n
    編集
    \n \n
    \n )}\n
    \n\n
    \n
    \n

    \n 法人名・団体名・屋号\n

    \n
    \n\n
    \n {classroom.organization.name || \"入力してください\"}\n
    \n
    \n\n
    \n
    \n

    代表者の氏名

    \n
    \n\n
    \n {classroom.organization.representative ||\n \"入力してください\"}\n
    \n
    \n\n
    \n
    \n

    電話番号

    \n
    \n\n
    \n {classroom.organization.phoneNumber || \"入力してください\"}\n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n

    入会時オプション

    \n
    \n\n {classroom.optionalBills.length === 0 &&\n classroom.customFieldsCount === 0\n ? (\n
    \n \n

    \n 入会する際に入会金をいただくようにしたり、教室独自の設問項目を設けることができます。
    例:ユニフォームのサイズ、所属学校、アレルギーの有無など\n

    \n
    \n
    \n )\n : null}\n\n
    \n
    \n
    \n

    入会時の支払い

    \n\n {classroom\n .policyCanNewManagementClassroomsOptionalBills && (\n
    \n \n
    \n \n \n
    \n\n
    編集
    \n \n
    \n )}\n
    \n\n {classroom.optionalBills.length === 0\n ?
    未設定
    \n : (\n
    \n
      \n {classroom.optionalBills.map((optionalBill) => (\n
    • \n \n
    • \n ))}\n
    \n
    \n )}\n
    \n\n
    \n
    \n

    入会時の設問

    \n\n {classroom\n .policyCanCreateManagementClassroomsCustomFields && (\n
    \n \n
    \n \n \n
    \n\n
    編集
    \n \n
    \n )}\n
    \n\n
    \n {classroom.customFieldsCount === 0\n ? \"未設定\"\n : \"設定済み\"}\n
    \n
    \n
    \n
    \n
    \n
    \n )\n : null}\n\n
    \n
    \n \n 教室入会ページをプレビュー\n \n
    \n
    \n\n \n window.location.href = classroom.managementClassroomInvitePath}\n />\n
    \n );\n}\n","import React from \"react\";\nimport \"./TabHeader.scss\";\n\nexport default function TabHeader(\n {\n classroom,\n },\n): JSX.Element {\n return (\n
    \n

    \n {classroom.name}\n

    \n
    \n );\n}\n","import React from \"react\";\n\nexport default function Tabs(\n {\n activeTab,\n setActiveTab,\n classroom,\n },\n): JSX.Element {\n const handleTabClick = (e, tabName) => {\n e.stopPropagation();\n\n setActiveTab(tabName);\n };\n\n return (\n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { ModalBackButton } from \"./ModalBackButton\";\nimport ManagementCustomFieldsItem from \"./ManagementCustomFieldsPage/ManagementCustomFieldsItem\";\nimport Snackbar from \"./Snackbar\";\n\nexport type CustomField = FreeTextCustomField | SingleSelectCustomField;\ntype FreeTextCustomField = CustomFieldBase & {\n field_type: \"free_text\";\n options?: CustomFieldOption[];\n};\ntype SingleSelectCustomField = CustomFieldBase & {\n field_type: \"single_select\";\n options: CustomFieldOption[];\n};\ninterface CustomFieldBase {\n id: number;\n name: string;\n required_on_enrollment: boolean;\n isEditing?: boolean;\n update_custom_field_path?: string;\n}\ninterface CustomFieldOption {\n id: number;\n option_value: string;\n}\ninterface Props {\n custom_fields: CustomField[];\n create_custom_field_path: string;\n new_classroom_enrollment_path: string;\n policy_can_create_management_classrooms_custom_fields: boolean;\n policy_can_update_and_destroy_management_classrooms_custom_fields: boolean;\n}\n\nconst newCustomField: CustomField = {\n id: undefined,\n name: \"\",\n field_type: \"free_text\",\n required_on_enrollment: false,\n options: [],\n isEditing: true,\n update_custom_field_path: undefined,\n};\n\nexport default function ManagementCustomFieldsPage(props: Props): JSX.Element {\n const [dropdownIndex, setDropdownIndex] = useState(null);\n const [customFields, setCustomFields] = useState(props.custom_fields);\n const [message, setMessage] = useState(null);\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 \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 \n \n 入会時の設問\n \n 住所\n \n \n
    自由記述式
    \n \n \n \n\n {/* 独自項目 */}\n {customFields.map((customField, index) => (\n {\n const newCustomFields = customFields.slice(0, index)\n .concat(customFields.slice(index + 1));\n setCustomFields(newCustomFields);\n }}\n showMessage={(message: string) => setMessage(message)}\n showIndex={index}\n onOpenDropdown={() => setDropdownIndex(index)}\n openDropdown={dropdownIndex === index}\n onClosedDropdown={() => setDropdownIndex(null)}\n />\n ))}\n \n \n
    \n {props.policy_can_create_management_classrooms_custom_fields && (\n \n setCustomFields([...customFields, newCustomField])}\n >\n
    \n \n \n
    \n
    \n 項目を追加\n
    \n \n )}\n \n
    \n \n
    \n
    \n 入会フォームを表示\n
    \n \n
    \n
    \n
    \n
    \n {message && {message}}\n \n );\n}\n","// TODO: config/locales/ja.yml から自動生成するようにするか、メリデメを洗い出して検討する\n// デメリットの1つとして、フロント側に Rails の設定ファイルが依存することが挙げられる\nconst translations = {\n custom_fields: {\n field_type: {\n free_text: \"自由記述\",\n single_select: \"選択\",\n multi_select: \"複数選択\",\n },\n },\n};\n\nfunction getValueFromPath(obj: Record, path: string) {\n let current: Record | string = obj;\n const keys = path.split(\".\");\n keys.forEach((key) => {\n if (current[key] === undefined) {\n return \"\";\n }\n current = current[key];\n });\n return typeof current === \"string\" ? current : \"\";\n}\n\ntype Props = string | {\n key: string;\n value: string;\n};\n\nexport const localize = (props: Props, trans = translations): string => {\n if (typeof props === \"string\") {\n return getValueFromPath(trans, props);\n } else {\n return getValueFromPath(trans, `${props.key}.${props.value}`);\n }\n};\n","import React, { useCallback, useState } from \"react\";\n\nimport { CustomField } from \"../ManagementCustomFieldsPage\";\nimport Dialog from \"../Dialog\";\nimport ManagementCustomFieldsItemForm from \"./ManagementCustomFieldsItemForm\";\nimport { localize } from \"../../utils/localize\";\nimport { useApi } from \"../../hooks/api\";\n\ninterface CustomFieldResponse {\n custom_field?: CustomField;\n message?: string;\n}\n\ninterface Props {\n customField: CustomField;\n create_custom_field_path: string;\n policy_can_update_and_destroy_management_classrooms_custom_fields: boolean;\n removeItem: () => void;\n showMessage: (message: string) => void;\n showIndex: number;\n openDropdown: boolean;\n onOpenDropdown: () => void;\n onClosedDropdown: () => void;\n}\n\nexport default function ManagementCustomFieldsItem(props: Props): JSX.Element {\n const [customField, setCustomField] = useState(props.customField);\n const handleBlur = (event) => {\n const isButtonFocused = event.relatedTarget?.tagName === \"BUTTON\";\n if (!isButtonFocused) {\n props.onClosedDropdown();\n }\n };\n const [deletingDialogVisible, setDeletingDialogVisible] = useState(false);\n const [isEditing, setIsEditing] = useState(props.customField.isEditing);\n\n const enterEditing = useCallback(() => {\n props.onClosedDropdown();\n setIsEditing(true);\n }, []);\n const commitEditing = useCallback((customField: CustomField) => {\n setCustomField(customField);\n setIsEditing(false);\n }, []);\n const exitEditing = useCallback(() => {\n if (customField.id === undefined) {\n props.removeItem();\n } else {\n setIsEditing(false);\n }\n }, [customField.id, props.removeItem]);\n\n const { patch, requestWithCsrfToken } = useApi();\n const toggleRequiredOnEnrollment = useCallback(async () => {\n const result = await patch(\n customField.update_custom_field_path,\n {\n custom_field: {\n ...customField,\n required_on_enrollment: !customField.required_on_enrollment,\n },\n },\n );\n if (result.custom_field) {\n setCustomField(result.custom_field as CustomField);\n }\n if (typeof result.message === \"string\") {\n props.showMessage(result.message);\n }\n props.onClosedDropdown();\n }, [\n customField.required_on_enrollment,\n customField.update_custom_field_path,\n props.showMessage,\n ]);\n const deleteCustomField = useCallback(async () => {\n const { message, response } = await requestWithCsrfToken<\n { message: string }\n >({\n form_action: customField.update_custom_field_path,\n form_method: \"DELETE\",\n });\n if (response.ok) {\n props.removeItem();\n }\n if (typeof message === \"string\") props.showMessage(message);\n }, [\n customField.update_custom_field_path,\n props.removeItem,\n props.showMessage,\n ]);\n\n return (\n <>\n {isEditing\n ? (\n \n )\n : (\n \n \n {customField.required_on_enrollment && (\n \n 入会時の設問\n \n )}\n {customField.name}\n \n \n
    \n {localize({\n key: \"custom_fields.field_type\",\n value: customField.field_type,\n })}式\n
    \n {customField.field_type !== \"free_text\" && (\n <>\n {customField.options.length > 0\n ? (\n customField.options.map((option) => (\n {option.option_value}\n ))\n )\n : (\n \n \n \n \n 選択肢が未作成です\n \n \n )}\n \n )}\n \n {props\n .policy_can_update_and_destroy_management_classrooms_custom_fields &&\n (\n \n
    \n \n
    \n \n \n
    \n \n {props.openDropdown && (\n \n
  • \n \n
  • \n
  • \n \n
  • \n
  • \n setDeletingDialogVisible(true)}\n className=\"-color-negative\"\n >\n
    \n
    \n 項目の削除\n
    \n
    \n \n
  • \n \n )}\n
    \n {deletingDialogVisible && (\n {\n setDeletingDialogVisible(false);\n props.onClosedDropdown();\n }}\n >\n \n
    \n 削除\n
    \n \n \n )}\n \n )}\n \n )}\n \n );\n}\n","import React from \"react\";\nimport { CustomField } from \"../ManagementCustomFieldsPage\";\nimport { useFieldArray, useForm } from \"react-hook-form\";\nimport { useApi } from \"../../hooks/api\";\n\ninterface Props {\n customField: CustomField;\n create_custom_field_path: string;\n commitEditing: (customField: CustomField) => void;\n exitEditing: () => void;\n showMessage: (message: string) => void;\n}\n\nexport default function ManagementCustomFieldsItem(props: Props): JSX.Element {\n const { name, field_type, options: defaultOptions } = props.customField;\n const {\n register,\n handleSubmit,\n control,\n watch,\n formState: { errors, isSubmitting },\n } = useForm({\n defaultValues: { name, field_type, options: defaultOptions },\n mode: \"all\",\n });\n const { fields: options, append, remove } = useFieldArray({\n control,\n name: \"options\",\n });\n const { post, patch } = useApi();\n\n const onSubmit = async (data) => {\n let result: {\n custom_field?: CustomField;\n message?: string;\n response?: Response;\n };\n if (props.customField.id) {\n result = await patch(\n props.customField.update_custom_field_path,\n {\n custom_field: data,\n },\n );\n } else {\n result = await post(\n props.create_custom_field_path,\n {\n custom_field: data,\n },\n );\n }\n if (result.response.ok) {\n props.commitEditing(result.custom_field);\n }\n props.showMessage(result.message);\n };\n\n return (\n <>\n \n \n
    \n
    \n \n
    \n {errors.name && (\n
    \n {errors.name.message}\n
    \n )}\n
    \n \n \n
    \n
    \n \n \n \n \n \n \n \n
    \n {errors.field_type && (\n
    \n {errors.field_type.message}\n
    \n )}\n {[\"single_select\", \"multi_select\"].includes(watch(\"field_type\")) &&\n (\n
    \n {options.map((option, index) => (\n \n \n
    \n \n remove(index)}\n >\n
    \n \n
    \n \n
    \n {errors.options?.[index] && (\n
    \n {errors.options[index].option_value.message}\n
    \n )}\n
    \n ))}\n append({ id: undefined, option_value: \"\" })}\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","import React, { useEffect, useState } from \"react\";\nimport * as Sentry from \"@sentry/browser\";\nimport ManagementMemberPageContainer, {\n Enrollment,\n Props,\n} from \"./ManagementMemberPage/ManagementMemberPageContainer\";\nimport {\n get,\n updateEnrolledEventGroups,\n updateEnrollment,\n updateRecurredBills,\n} from \"./ManagementMemberPage/api\";\nimport { useToast } from \"components/Toast/use-toast\";\nimport { Toaster } from \"components/Toast/toaster\";\n\nconst getEnrolledEventGroups = get<{\n event_groups: unknown[];\n form_action: string;\n}>;\nconst getRecurrenceBills = get<{\n recurrence_bills: unknown[];\n form_action: string;\n}>;\nconst getBills = get<{ bills: unknown[] }>;\nconst getAnnouncements = get<{ announcements: unknown[] }>;\nconst getEvents = get<{ events: unknown[] }>;\n\nexport default function ManagementMemberPage(props: Props): JSX.Element {\n const [enrollmentId, setEnrollmentId] = useState(null);\n const [enrollments, setEnrollments] = useState(\n props.enrollments,\n );\n const { toast } = useToast();\n\n useEffect(() => {\n const [anchorKey, anchorValue] = location.hash.replace(/^#/, \"\").split(\"/\");\n const anchorId = parseInt(anchorValue, 10);\n if (!isNaN(anchorId)) {\n if (anchorKey === \"enrollments\") {\n setEnrollmentId(anchorId);\n } else {\n const enrollment = props.enrollments.find((enrollment) =>\n enrollment.student.id === anchorId\n );\n setEnrollmentId(enrollment.id);\n }\n }\n\n const listener = (event: PopStateEvent) => {\n if (event.state) {\n setEnrollmentId(parseInt(event.state as string, 10));\n } else {\n setEnrollmentId(null);\n }\n };\n globalThis.addEventListener(\"popstate\", listener);\n return () => {\n globalThis.removeEventListener(\"popstate\", listener);\n };\n }, []);\n\n const handleUpdateEnrolledEventGroups = async (\n enrollmentId: number,\n url: string,\n data: unknown,\n ): Promise => {\n try {\n const { message, enrolled_event_groups } =\n await updateEnrolledEventGroups(\n url,\n data,\n );\n setEnrollments((enrollments) => {\n const index = enrollments.findIndex((enrollment) =>\n enrollment.id === enrollmentId\n );\n if (index === -1) {\n Sentry.captureMessage(\"test\", \"warning\");\n return enrollments;\n }\n\n const before = enrollments.slice(0, index);\n const after = enrollments.slice(index + 1);\n return [\n ...before,\n { ...enrollments[index], enrolled_event_groups },\n ...after,\n ];\n });\n toast({\n title: message,\n description: \"\",\n children: null,\n variant: \"default\",\n });\n } catch (e) {\n Sentry.captureException(e);\n }\n };\n\n const handleUpdateRecurredBills = async (\n enrollmentId: number,\n url: string,\n data: unknown,\n ): Promise => {\n try {\n const { message, recurrence_bills } = await updateRecurredBills(\n url,\n data,\n );\n setEnrollments((enrollments) => {\n const index = enrollments.findIndex((enrollment) =>\n enrollment.id === enrollmentId\n );\n if (index === -1) {\n Sentry.captureMessage(\"test\", \"warning\");\n return enrollments;\n }\n\n const before = enrollments.slice(0, index);\n const after = enrollments.slice(index + 1);\n return [\n ...before,\n { ...enrollments[index], recurrence_bills },\n ...after,\n ];\n });\n toast({\n title: message,\n description: \"\",\n children: null,\n variant: \"default\",\n });\n } catch (e) {\n Sentry.captureException(e);\n\n if (e.response.status === 422) {\n window.location.href = \"/422.html\";\n }\n }\n };\n\n const handleUpdateEnrollment = async (\n enrollmentId: number,\n data: { enrollment: { description: string } },\n ): Promise => {\n try {\n const enrollment = enrollments.find((enrollment) =>\n enrollment.id === enrollmentId\n );\n if (typeof enrollment === \"undefined\") {\n Sentry.captureMessage(\"test\", \"warning\");\n throw new Error();\n }\n\n const { message } = await updateEnrollment(enrollment.edit_url, data);\n setEnrollments((enrollments) => {\n const index = enrollments.findIndex((enrollment) =>\n enrollment.id === enrollmentId\n );\n if (index === -1) {\n Sentry.captureMessage(\"test\", \"warning\");\n return enrollments;\n }\n\n const before = enrollments.slice(0, index);\n const after = enrollments.slice(index + 1);\n return [\n ...before,\n { ...enrollments[index], ...data.enrollment },\n ...after,\n ];\n });\n } catch (e) {\n Sentry.captureException(e);\n }\n };\n\n return (\n <>\n {\n history.pushState(id, \"\", `#enrollments/${id}`);\n }}\n onFloatingViewClose={() => {\n history.pushState(null, \"\", \"#\");\n }}\n enrollmentId={enrollmentId}\n />\n \n \n );\n}\n","import React, { useEffect, useMemo, useRef, useState } from \"react\";\nimport MemberFloatingView from \"./MemberFloatingView\";\nimport classNames from \"classnames\";\nimport compareAsc from \"date-fns/compareAsc\";\nimport compareDesc from \"date-fns/compareDesc\";\n\ninterface Student {\n id: number;\n name: string;\n name_kana: string;\n gender: string | null;\n date_of_birth: string | null;\n dependent: boolean;\n address: {\n postal_code: string;\n address: string;\n } | null;\n users: {\n name: string;\n phone_number: string | null;\n }[];\n}\n\nexport interface ClassroomTermAgreement {\n agreed_at: string;\n}\n\ninterface EventGroup {\n id: number;\n name: string;\n slug: string;\n enrolled_at: string;\n}\n\ninterface RecurrenceBill {\n id: number;\n name: string;\n amount: number;\n by_month_day: number;\n deadline_additional_month: number;\n deadline_month_day: number;\n path: string;\n}\n\nexport interface Enrollment {\n id: number;\n student: Student;\n created_at: string;\n description: string | null;\n classroom_term_agreement: ClassroomTermAgreement;\n enrolled_event_groups: EventGroup[];\n recurrence_bills: RecurrenceBill[];\n delete_url: string;\n details_url: string;\n bills_url: string;\n new_bill_url: string;\n announcements_url: string;\n new_announcement_url: string;\n events_url: string;\n new_event_url: string;\n edit_url: string;\n bulk_enrollment_event_groups_url: string;\n recurrence_bills_path: string;\n custom_fields_url: string;\n}\n\nexport interface Props {\n subscribed: boolean;\n enrollments: Enrollment[];\n classroom_managers_count: number;\n management_classroom_classroom_managers_path: string;\n management_classroom_custom_fields_path: string;\n management_classroom_invite_path: string;\n new_course_path: string;\n new_recurrence_bill_path: string;\n members_csv_download_path: string;\n members_csv_access: boolean;\n members_destroy_access: boolean;\n recurrence_bills_show_access: boolean;\n students_bills_index_access: boolean;\n students_bulk_enrollment_event_groups_index_access: boolean;\n}\n\ninterface P extends Props {\n enrollmentId?: number;\n getEnrolledEventGroups: (url: string) => Promise<{\n form_action: string;\n event_groups: unknown[];\n }>;\n getRecurrenceBills: (url: string) => Promise<{\n form_action: string;\n recurrence_bills: unknown[];\n }>;\n getBills: (url: string) => Promise<{ bills: unknown[] }>;\n getAnnouncements: (url: string) => Promise<{ announcements: unknown[] }>;\n getEvents: (url: string) => Promise<{ events: unknown[] }>;\n handleUpdateEnrolledEventGroups: (\n enrollmentId: number,\n url: string,\n data: unknown,\n ) => Promise;\n handleUpdateRecurredBills: (\n enrollmentId: number,\n url: string,\n data: unknown,\n ) => Promise;\n handleUpdateEnrollment: (\n enrollmentId: number,\n data: { enrollment: { description: string } },\n ) => Promise;\n onFloatingViewShow?: (id: string) => void;\n onFloatingViewClose?: () => void;\n}\n\ntype Filter = \"name\" | \"eventGroup\" | \"recurrenceBill\" | \"description\";\n\ntype Sort =\n | \"newer\"\n | \"older\"\n | \"nameKana\"\n | \"eventGroup\"\n | \"eventGroupCountDesc\"\n | \"eventGroupCountAsc\";\n\nconst sorters: Record number> = {\n newer: (a, b) => compareDesc(new Date(a.created_at), new Date(b.created_at)),\n older: (a, b) => compareAsc(new Date(a.created_at), new Date(b.created_at)),\n nameKana: (a, b) =>\n a.student.name_kana.localeCompare(b.student.name_kana, \"ja\"),\n eventGroup: (a, b) => {\n if (a.enrolled_event_groups.length === 0) {\n return 1;\n }\n if (b.enrolled_event_groups.length === 0) {\n return -1;\n }\n return a.enrolled_event_groups[0].name.localeCompare(\n b.enrolled_event_groups[0].name,\n \"ja\",\n );\n },\n eventGroupCountDesc: (a, b) =>\n b.enrolled_event_groups.length - a.enrolled_event_groups.length,\n eventGroupCountAsc: (a, b) =>\n a.enrolled_event_groups.length - b.enrolled_event_groups.length,\n};\n\nexport default function ManagementMemberPageContainer(props: P) {\n const [enrollmentId, setEnrollmentId] = useState(null);\n const [visibleFilter, setVisibleFilter] = useState(null);\n const [sort, setSort] = useState(\"newer\");\n const [searchName, setSearchName] = useState(\"\");\n const [searchEventGroupIds, setSearchEventGroupIds] = useState([]);\n const [searchRecurrenceBillIds, setSearchRecurrenceBillIds] = useState<\n number[]\n >([]);\n const [searchRecurrenceBillUnset, setSearchRecurrenceBillUnset] = useState(\n false,\n );\n const [searchDescriptionBlank, setSearchDescriptionBlank] = useState(false);\n const [searchDescriptionFilled, setSearchDescriptionFilled] = useState(false);\n const [searchDescription, setSearchDescription] = useState(\"\");\n\n const [openDropdown, setOpenDropdown] = useState(false);\n const handleBlur = (event) => {\n const isButtonFocused = event.relatedTarget?.tagName === \"A\";\n if (!isButtonFocused) {\n setOpenDropdown(false);\n }\n };\n\n const ref = useRef();\n\n const eventGroups = useMemo(() => {\n return props.enrollments.reduce(\n (previousEventGroups, enrollment) => {\n const eventGroupsToAdd = enrollment.enrolled_event_groups.filter((\n eventGroup,\n ) =>\n !previousEventGroups.some((aEventGroup) =>\n aEventGroup.id === eventGroup.id\n )\n );\n return previousEventGroups.concat(eventGroupsToAdd);\n },\n [],\n );\n }, [props.enrollments]);\n\n const recurrenceBills = useMemo(() => {\n return props.enrollments.reduce(\n (previousRecurrenceBills, enrollment) => {\n const recurrenceBillsToAdd = enrollment.recurrence_bills.filter((\n recurrenceBill,\n ) =>\n !previousRecurrenceBills.some((aRecurrenceBill) =>\n aRecurrenceBill.id === recurrenceBill.id\n )\n );\n return previousRecurrenceBills.concat(recurrenceBillsToAdd);\n },\n [],\n );\n }, [props.enrollments]);\n\n const filteredData = props.enrollments.filter((enrollment) => {\n if (searchName.length > 0) {\n if (\n !enrollment.student.name.toLowerCase().includes(\n searchName.toLowerCase(),\n )\n ) {\n return false;\n }\n }\n\n if (searchEventGroupIds.length > 0) {\n if (\n !enrollment.enrolled_event_groups.some((eventGroup) =>\n searchEventGroupIds.includes(eventGroup.id)\n )\n ) return false;\n }\n\n if (searchRecurrenceBillIds.length > 0) {\n if (\n !enrollment.recurrence_bills.some((recurrenceBill) =>\n searchRecurrenceBillIds.includes(recurrenceBill.id)\n )\n ) return false;\n }\n\n if (searchRecurrenceBillUnset) {\n if (enrollment.recurrence_bills.length > 0) {\n return false;\n }\n }\n\n if (searchDescriptionBlank) {\n if (\n enrollment.description !== null && enrollment.description.length > 0\n ) return false;\n }\n\n if (searchDescriptionFilled) {\n if (enrollment.description === null) return false;\n if (enrollment.description.length === 0) return false;\n }\n\n if (searchDescription.length > 0) {\n if (enrollment.description === null) return false;\n if (\n !enrollment.description.toLowerCase().includes(\n searchDescription.toLowerCase(),\n )\n ) return false;\n }\n\n return true;\n }).sort(sorters[sort]).map<[Enrollment, JSX.Element, () => void]>(\n (enrollment) => {\n const buttonRef = React.createRef();\n const handleEnrollmentClick = () => {\n setEnrollmentId(enrollment.id);\n ref.current = buttonRef.current;\n if (props.onFloatingViewShow) {\n props.onFloatingViewShow(enrollment.id.toString());\n }\n };\n const element = (\n \n \n {enrollment.student.name}\n \n \n \n {enrollment.enrolled_event_groups.map((event_group) => (\n

    \n {event_group.name}\n

    \n ))}\n \n \n \n {enrollment.recurrence_bills.map((recurrence_bill) => (\n

    \n {recurrence_bill.name}\n

    \n ))}\n \n \n \n {enrollment.description}\n \n \n \n );\n return [enrollment, element, handleEnrollmentClick];\n },\n );\n\n useEffect(() => {\n if (props.enrollmentId) {\n const data = filteredData.find(([enrollment]) =>\n enrollment.id === props.enrollmentId\n );\n if (data) {\n data[2]();\n }\n }\n }, [props.enrollmentId]);\n\n const closeFloatingView = () => {\n ref.current?.focus();\n setEnrollmentId(null);\n if (props.onFloatingViewClose) {\n props.onFloatingViewClose();\n }\n };\n\n return (\n \n
    \n
    \n
    \n \n
    \n 受講者:{props.enrollments.length}人\n
    \n \n \n
    \n 運営者:{props.classroom_managers_count}人\n
    \n \n
    \n
    \n
    \n \n {\n setSort(event.target.value as Sort);\n }}\n >\n \n \n \n \n \n \n \n \n \n
    \n
    \n \n
    \n \n
    \n
    \n 招待\n
    \n \n
    \n
    \n setOpenDropdown(!openDropdown)}\n onBlur={handleBlur}\n className=\"dropdown__control button -appearance-transparent -shape-circle -size-m\"\n aria-label=\"操作\"\n aria-controls=\"dropdown-item\"\n aria-expanded={openDropdown ? \"true\" : \"false\"}\n >\n
    \n \n \n
    \n \n {openDropdown && (\n \n
  • \n \n
    \n
    \n 受講者情報のテンプレート\n
    \n
    \n \n
  • \n\n {props.members_csv_access\n ? (\n
  • \n \n
    \n
    \n CSVダウンロード\n
    \n
    \n \n
  • \n )\n : null}\n \n )}\n
    \n
    \n
    \n \n \n \n \n \n \n\n \n \n \n \n {filteredData.map(([_, element]) => element)}\n \n
    \n
    \n
    氏名
    \n
    \n
    \n {\n setVisibleFilter((prev) => {\n return prev === \"name\" ? null : \"name\";\n });\n }}\n aria-label=\"絞り込み\"\n className=\"button__filter-open\"\n >\n
    \n \n
    \n \n {visibleFilter === \"name\" && (\n
    \n
    \n

    氏名での絞り込み

    \n setVisibleFilter(null)}\n aria-label=\"閉じる\"\n className=\"button__filter-close\"\n >\n
    \n \n
    \n \n
    \n
    \n
    \n \n setSearchName(event.target.value)}\n />\n \n
    \n
    \n
    \n )}\n
    \n
    \n
    \n
    \n
    \n
    所属
    \n
    \n
    \n {\n setVisibleFilter((prev) => {\n return prev === \"eventGroup\" ? null : \"eventGroup\";\n });\n }}\n aria-label=\"絞り込み\"\n className=\"button__filter-open\"\n >\n
    \n \n
    \n \n {visibleFilter === \"eventGroup\" && (\n
    \n
    \n

    所属での絞り込み

    \n setVisibleFilter(null)}\n aria-label=\"閉じる\"\n className=\"button__filter-close\"\n >\n
    \n \n
    \n \n
    \n
      \n {eventGroups.map((eventGroup) => (\n \n \n
      \n {\n setSearchEventGroupIds((prev) => {\n if (event.target.checked) {\n return [...prev, eventGroup.id];\n } else {\n return prev.filter((id) =>\n id !== eventGroup.id\n );\n }\n });\n }}\n />\n
      \n

      {eventGroup.name}

      \n \n \n ))}\n
    \n
    \n )}\n
    \n
    \n
    \n
    \n
    \n
    定期請求
    \n
    \n
    \n {\n setVisibleFilter((prev) => {\n return prev === \"recurrenceBill\"\n ? null\n : \"recurrenceBill\";\n });\n }}\n aria-label=\"絞り込み\"\n className=\"button__filter-open\"\n >\n
    \n \n
    \n \n {visibleFilter === \"recurrenceBill\" && (\n
    \n
    \n

    定期請求での絞り込み

    \n setVisibleFilter(null)}\n aria-label=\"閉じる\"\n className=\"button__filter-close\"\n >\n
    \n \n
    \n \n
    \n
    \n \n
    \n
      \n {recurrenceBills.map((recurrenceBill) => (\n \n \n
      \n {\n setSearchRecurrenceBillIds((prev) => {\n if (event.target.checked) {\n return [...prev, recurrenceBill.id];\n } else {\n return prev.filter((id) =>\n id !== recurrenceBill.id\n );\n }\n });\n }}\n />\n
      \n

      \n {recurrenceBill.name}\n

      \n \n \n ))}\n
    \n
    \n )}\n
    \n
    \n
    \n
    \n
    \n
    内部メモ
    \n
    \n
    \n {\n setVisibleFilter((prev) => {\n return prev === \"description\"\n ? null\n : \"description\";\n });\n }}\n aria-label=\"絞り込み\"\n className=\"button__filter-open\"\n >\n
    \n \n
    \n \n {visibleFilter === \"description\" && (\n
    \n
    \n

    内部メモでの絞り込み

    \n setVisibleFilter(null)}\n aria-label=\"閉じる\"\n className=\"button__filter-close\"\n >\n
    \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n \n setSearchDescription(event.target.value)}\n />\n \n
    \n
    \n
    \n )}\n
    \n
    \n
    \n
    \n
    \n \n enrollment.id === enrollmentId\n )\n : null}\n />\n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { localizeDateToYearMonthDayTime } from \"../../utils/localize-date\";\n\ninterface Announcement {\n id: number;\n title: string;\n url: string;\n issued_at: Date;\n}\n\ninterface Props {\n getAnnouncements: (url: string) => Promise<{ announcements: unknown[] }>;\n announcements_url: string;\n new_announcement_url: string;\n}\n\nexport default function MemberAnnouncements(props: Props) {\n const [announcements, setAnnouncements] = useState(\n null,\n );\n const [loading, setLoading] = useState(false);\n const nowDate = new Date();\n\n useEffect(() => {\n (async () => {\n setLoading(true);\n const { announcements } = await props.getAnnouncements(\n props.announcements_url,\n );\n setAnnouncements(announcements as Announcement[]);\n setLoading(false);\n })();\n }, [props.announcements_url]);\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 \n タイトル\n \n \n \n\n \n {loading || announcements === null\n ? (\n \n \n \n \n \n \n \n \n \n \n )\n : announcements.length === 0\n ? (\n \n 送信済みのお知らせはありません\n \n )\n : (\n announcements.map((announcement: Announcement) => (\n \n \n
    \n {localizeDateToYearMonthDayTime(\n announcement.issued_at,\n )}\n {nowDate < announcement.issued_at && (\n
    \n 送信予約\n
    \n )}\n
    \n \n \n \n {announcement.title}\n \n \n \n ))\n )}\n \n \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport {\n localizeDateToMiddleString,\n localizeDateToShortString,\n} from \"../../utils/localize-date\";\n\ninterface Bill {\n id: number;\n name: string;\n status:\n | \"requires_payment\"\n | \"payment_waiting_for_approval\"\n | \"payment_approved\"\n | \"marked_as_paid\"\n | \"not_issued\"\n | \"overdue\"\n | \"disabled\";\n url: string;\n amount: number;\n issued_at: string;\n deadline: string;\n recurrence: boolean;\n payment?: {\n tried_at: string;\n approved_at: string;\n marked_as_paid_at: string;\n method_type: \"none\" | \"card\" | \"konbini\" | \"direct_debit\";\n };\n}\n\ninterface Props {\n getBills: (url: string) => Promise<{ bills: unknown[] }>;\n bills_url: string;\n new_bill_url: string;\n}\n\nexport default function MemberBills(props: Props) {\n const [bills, setBills] = useState(null);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n (async () => {\n setLoading(true);\n const { bills } = await props.getBills(props.bills_url);\n setBills(bills as Bill[]);\n setLoading(false);\n })();\n }, [props.bills_url]);\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 \n \n \n \n\n \n {loading || bills === null\n ? (\n \n \n \n \n \n \n \n )\n : bills.length === 0\n ? (\n \n \n \n )\n : (\n bills.map((bill) => (\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
    送信済みの請求はありません
    \n \n {bill.recurrence && \"[定期請求]\"}\n {bill.name}\n \n \n {bill.amount}円\n \n {localizeDateToMiddleString(bill.issued_at)}\n \n {localizeDateToMiddleString(bill.deadline)}\n \n {(bill.status === \"payment_waiting_for_approval\" &&\n bill.payment?.method_type === \"direct_debit\") && (\n \n \n 振替待ち\n \n )}\n\n {bill.status === \"requires_payment\" && (\n \n \n 未入金\n {bill.payment?.method_type === \"konbini\" &&\n \"(コンビニ払い)\"}\n \n )}\n\n {(bill.status === \"payment_waiting_for_approval\" &&\n bill.payment?.method_type !== \"direct_debit\") && (\n <>\n \n \n 決済中\n \n \n |\n {localizeDateToShortString(\n bill.payment.tried_at,\n )}\n \n \n )}\n\n {bill.status === \"payment_approved\" && (\n <>\n \n \n \n {localizeDateToShortString(\n bill.payment?.tried_at ||\n bill.payment?.approved_at,\n )}\n {bill.payment?.method_type === \"konbini\" &&\n \"(コンビニ払い)\"}\n \n \n )}\n\n {bill.status === \"marked_as_paid\" && (\n <>\n \n \n 支払いマーク済み\n \n \n |\n {localizeDateToShortString(\n bill.payment?.marked_as_paid_at,\n )}\n \n \n )}\n\n {/* TODO: スタイリング */}\n {bill.status === \"not_issued\" && (\n \n \n 集金予約\n \n )}\n\n {/* TODO: スタイリング */}\n {bill.status === \"disabled\" && (\n \n \n 無効\n \n )}\n\n {bill.status === \"overdue\" && (\n <>\n \n \n 期日超過\n \n \n )}\n
    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import React, { useState } from \"react\";\n\nimport { CustomField } from \"../ManagementMemberPage/MemberCustomFields\";\nimport Dialog from \"../Dialog\";\nimport { useApi } from \"../../hooks/api\";\nimport MemberCustomFieldItemForm from \"./MemberCustomFieldItemForm\";\n\ninterface Props {\n customField: CustomField;\n customFieldsUrl: string;\n customFieldId: number;\n showMessage: (message: string) => void;\n}\n\nexport default function MemberCustomFieldItem(props: Props): JSX.Element {\n const [customField, setCustomField] = useState(props.customField);\n const [isEditing, setIsEditing] = useState(false);\n const [openDropdown, setOpenDropdown] = useState(false);\n const [deletingPopupVisible, setDeletingPopupVisible] = useState(false);\n const { requestWithCsrfToken } = useApi();\n const handleBlur = (event) => {\n const isButtonFocused = event.relatedTarget?.tagName === \"BUTTON\";\n if (!isButtonFocused) {\n setOpenDropdown(false);\n }\n };\n const isValidValue = typeof customField.value === \"string\" &&\n customField.value !== \"\";\n\n return (\n <>\n {isEditing\n ? (\n {\n setCustomField(customField);\n setIsEditing(false);\n setOpenDropdown(false);\n }}\n exitEditing={() => {\n setIsEditing(false);\n setOpenDropdown(false);\n }}\n showMessage={props.showMessage}\n />\n )\n : (\n
    \n
    {customField.name}
    \n
    \n {isValidValue ? customField.value : \"(未回答)\"}\n
    \n setOpenDropdown(!openDropdown)}\n onBlur={handleBlur}\n className=\"dropdown__control button -appearance-transparent -shape-circle -size-m\"\n aria-label=\"操作\"\n aria-controls={`dropdown-item-${props.customFieldId}`}\n aria-expanded={openDropdown ? \"true\" : \"false\"}\n >\n
    \n \n \n
    \n \n {openDropdown && (\n \n
  • \n \n
  • \n {customField.custom_field_value_id && (\n
  • \n {\n setDeletingPopupVisible(true);\n setOpenDropdown(false);\n }}\n >\n
    \n
    \n 未回答に戻す\n
    \n
    \n \n
  • \n )}\n \n )}\n
    \n
    \n
    \n )}\n {deletingPopupVisible && (\n setDeletingPopupVisible(false)}\n >\n {\n const { message } = await requestWithCsrfToken<\n { message: string }\n >({\n form_action: customField.resource_url,\n form_method: \"DELETE\",\n });\n setCustomField({\n ...customField,\n value: \"\",\n });\n setDeletingPopupVisible(false);\n props.showMessage(message);\n }}\n >\n
    \n 未回答に戻す\n
    \n \n \n )}\n \n );\n}\n","import { CustomField } from \"./MemberCustomFields\";\nimport React from \"react\";\nimport { useApi } from \"../../hooks/api\";\nimport { useForm } from \"react-hook-form\";\n\ninterface Props {\n customField: CustomField;\n customFieldsUrl: string;\n commitEditing: (customField: CustomField) => void;\n exitEditing: () => void;\n showMessage: (message: string) => void;\n}\n\ninterface MemberCustomFieldItemParams {\n value: string;\n custom_field_id: number;\n custom_field_value_id: number;\n custom_field_option_id: number;\n}\n\ninterface MemberCustomFieldItemFormResponse {\n custom_field?: CustomField;\n message?: string;\n response?: Response;\n}\n\nexport default function MemberCustomFieldItemForm(props: Props): JSX.Element {\n const {\n register,\n handleSubmit,\n setValue,\n formState: { errors, isSubmitting },\n } = useForm({\n defaultValues: {\n value: props.customField.value,\n custom_field_id: props.customField.custom_field_id,\n custom_field_value_id: props.customField.custom_field_value_id,\n custom_field_option_id: props.customField.custom_field_option_id,\n },\n mode: \"all\",\n });\n const { patch } = useApi();\n\n const onSubmit = async (data) => {\n const result = await patch(\n props.customFieldsUrl,\n {\n custom_field: data,\n },\n );\n if (result.custom_field) {\n props.commitEditing(result.custom_field);\n }\n props.showMessage(result.message);\n };\n\n return (\n <>\n
    \n
    {props.customField.name}
    \n
    \n \n \n \n \n\n {props.customField.field_type === \"free_text\" && (\n
    \n \n \n \n {errors.value && (\n
    \n {errors.value.message}\n
    \n )}\n
    \n )}\n\n {props.customField.field_type === \"single_select\" && (\n
    \n {props.customField.options.map((option) => (\n
    \n \n {\n setValue(\"value\", event.target.value);\n setValue(\"custom_field_option_id\", option.id);\n }}\n />\n \n {option.option_value}\n \n \n
    \n ))}\n {errors.value && (\n
    \n {errors.value.message}\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, { useEffect, useState } from \"react\";\n\nimport MemberCustomFieldItem from \"../ManagementMemberPage/MemberCustomFieldItem\";\nimport Snackbar from \"../Snackbar\";\nimport { useApi } from \"hooks/api\";\nimport { CustomField } from \"components/ManagementMemberPage/MemberDetails\";\n\ninterface Props {\n customFields: CustomField[];\n customFieldsUrl: string;\n}\n\nexport default function MemberCustomFields(\n { customFieldsUrl, customFields }: Props,\n): JSX.Element {\n const [message, setMessage] = useState(null);\n\n return (\n
    \n {customFields\n ? customFields.map((customField) => (\n setMessage(message)}\n />\n ))\n : (\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n )}\n {message && {message}}\n
    \n );\n}\n","import React, { useEffect } from \"react\";\nimport { useForm } from \"react-hook-form\";\n\ninterface Props {\n enrollment: {\n id: number;\n description: string;\n };\n handleUpdateEnrollment: (\n enrollmentId: number,\n data: { enrollment: { description: string } },\n ) => Promise;\n}\n\ninterface Inputs {\n enrollment: {\n description: string;\n };\n}\n\nexport default function MemberDescriptionForm(props: Props) {\n const {\n register,\n handleSubmit,\n setValue,\n formState: { isSubmitting },\n } = useForm({\n defaultValues: {\n enrollment: {\n description: props.enrollment.description,\n },\n },\n });\n\n useEffect(() => {\n setValue(\"enrollment.description\", props.enrollment.description);\n }, [props.enrollment]);\n\n const onSubmit = handleSubmit(async (data) => {\n await props.handleUpdateEnrollment(props.enrollment.id, data);\n });\n\n return (\n
    \n
    \n \n \n \n \n
    保存
    \n \n
    \n

    \n 運営者だけが見られる、受講者には非公開のメモです。\n

    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport MemberEventGroupUpdatingModal from \"./MemberEventGroupUpdatingModal\";\nimport MemberDescriptionForm from \"./MemberDescriptionForm\";\nimport { localizeDateToYmdString } from \"utils/localize-date\";\nimport localizeGender from \"../../utils/localize-gender\";\nimport MemberCustomFields from \"components/ManagementMemberPage/MemberCustomFields\";\nimport MemberFamilies from \"components/ManagementMemberPage/MemberFamilies\";\nimport { useApi } from \"hooks/api\";\nimport { Enrollment } from \"components/ManagementMemberPage/ManagementMemberPageContainer\";\nimport { numberFormat } from \"utils/number-format\";\nimport MemberRecurrenceBillsUpdatingModal from \"components/ManagementMemberPage/MemberRecurrenceBillsUpdatingModal\";\nimport {\n deadlineAdditionalMonth,\n deadlineMonthlyDay,\n} from \"utils/recurrence-bill-deadline-convertor\";\nimport { useToast } from \"components/Toast/use-toast\";\nimport { Toaster } from \"components/Toast/toaster\";\n\ninterface Props {\n getEnrolledEventGroups: (url: string) => Promise<{\n form_action: string;\n event_groups: unknown[];\n }>;\n getRecurrenceBills: (url: string) => Promise<{\n form_action: string;\n recurrence_bills: unknown[];\n }>;\n handleUpdateEnrolledEventGroups: (\n enrollmentId: number,\n url: string,\n data: unknown,\n ) => Promise;\n handleUpdateRecurredBills: (\n enrollmentId: number,\n url: string,\n data: unknown,\n ) => Promise;\n handleUpdateEnrollment: (\n enrollmentId: number,\n data: { enrollment: { description: string } },\n ) => Promise;\n subscribed: boolean;\n enrollment: Enrollment;\n newCoursePath: string;\n newRecurrenceBillPath: string;\n recurrenceBillsShowAccess: boolean;\n studentsBulkEnrollmentEventGroupsIndexAccess: boolean;\n}\n\nexport interface CustomField {\n custom_field_id: number;\n custom_field_value_id: number;\n custom_field_option_id: number;\n name: string;\n value: string;\n field_type: string;\n options: {\n id: number;\n option_value: string;\n }[];\n resource_url: string;\n}\n\nexport interface Family {\n id: number;\n name: string;\n}\n\ninterface DetailsResponse {\n families?: Family[];\n custom_fields?: CustomField[];\n message?: string;\n}\n\nexport default (props: Props): JSX.Element => {\n const [families, setFamilies] = useState([]);\n const [customFields, setCustomFields] = useState([]);\n const { toast } = useToast();\n\n const { requestAsJson } = useApi();\n const [updatingCoursesModalVisible, setUpdatingCoursesModalVisible] =\n useState(\n false,\n );\n const [\n updatingRecurrenceBillsModalVisible,\n setUpdatingRecurrenceBillsModalVisible,\n ] = useState(\n false,\n );\n\n // モーダルのスクロール位置を最上部に設定する\n const scrollToTop = () => {\n const element = document.getElementById(\"admin-table__single\");\n if (element) {\n element.scroll({ top: 0 });\n }\n };\n\n useEffect(() => {\n (async () => {\n const result = await requestAsJson({\n path: props.enrollment.details_url,\n method: \"GET\",\n });\n if (result.families) {\n setFamilies(result.families);\n }\n if (result.custom_fields) {\n setCustomFields(result.custom_fields);\n }\n if (result.message) {\n toast({\n title: result.message,\n description: \"\",\n children: null,\n variant: \"default\",\n });\n }\n })();\n }, [props.enrollment.details_url]);\n\n return (\n <>\n
    \n
    \n
    \n {props.enrollment.student.gender && (\n
    \n
    \n 性別\n
    \n
    {localizeGender(props.enrollment.student.gender)}
    \n
    \n )}\n {props.enrollment.student.date_of_birth && (\n
    \n
    \n 生年月日\n
    \n
    \n {localizeDateToYmdString(\n props.enrollment.student.date_of_birth,\n )}\n
    \n
    \n )}\n {props.enrollment.student.dependent && (\n
    \n
    \n 保護者\n
    \n
    \n {props.enrollment.student.users[0].name}
    \n
    \n 連絡先:\n \n {props.enrollment.student.users[0].phone_number}\n \n
    \n
    \n
    \n )}\n \n {props.enrollment.student.address && (\n
    \n
    \n 住所\n
    \n
    \n 〒{props.enrollment.student.address.postal_code}\n
    \n {props.enrollment.student.address.address}\n
    \n
    \n )}\n {!props.enrollment.student.dependent &&\n props.enrollment.student.users[0] &&\n props.enrollment.student.users[0].phone_number && (\n
    \n
    \n 連絡先\n
    \n
    \n \n {props.enrollment.student.users[0].phone_number}\n \n
    \n
    \n )}\n
    \n
    \n 入会日\n
    \n
    \n {localizeDateToYmdString(\n props.enrollment.created_at,\n )}\n
    \n
    \n
    \n
    \n 利用規約\n
    \n
    \n {props.enrollment.classroom_term_agreement\n ? `同意します ${\n localizeDateToYmdString(\n props.enrollment.classroom_term_agreement.agreed_at,\n )\n }`\n : \"未回答\"}\n
    \n
    \n
    \n
    \n 内部メモ\n
    \n
    \n \n
    \n
    \n \n
    \n\n
    \n
    \n

    \n 所属\n

    \n {props.subscribed &&\n props.studentsBulkEnrollmentEventGroupsIndexAccess && (\n
    \n {\n // モーダル表示の処理\n setUpdatingCoursesModalVisible(true);\n scrollToTop();\n }}\n >\n
    \n \n
    \n
    \n 編集\n
    \n \n
    \n )}\n
    \n
      \n {props.enrollment.enrolled_event_groups.map((event_group) => (\n
    • \n \n
      \n
      {event_group.name}
      \n
      \n {event_group.enrolled_at} 登録\n
      \n
      \n
      \n
      \n \n
      \n
      \n \n
    • \n ))}\n
    \n
    \n\n {props.recurrenceBillsShowAccess\n ? (\n
    \n
    \n

    \n 定期請求\n

    \n {props.subscribed && (\n
    \n {\n // モーダル表示の処理\n setUpdatingRecurrenceBillsModalVisible(true);\n scrollToTop();\n }}\n >\n
    \n \n \n
    \n
    \n 編集\n
    \n \n
    \n )}\n
    \n
      \n {props.enrollment.recurrence_bills.map((recurrence_bill) => (\n
    • \n \n
      \n
      {recurrence_bill.name}
      \n
      \n {`${\n numberFormat(recurrence_bill.amount)\n }円 毎月${recurrence_bill.by_month_day}日 ${\n deadlineAdditionalMonth(\n recurrence_bill.deadline_additional_month,\n )\n }${\n deadlineMonthlyDay(\n recurrence_bill.deadline_month_day,\n )\n }日まで`}\n
      \n
      \n
      \n
      \n \n
      \n
      \n \n
    • \n ))}\n
    \n
    \n )\n : null}\n
    \n {updatingCoursesModalVisible && (\n {\n await props.handleUpdateEnrolledEventGroups(\n props.enrollment.id,\n url,\n data,\n );\n }}\n onCloseButtonClick={() => setUpdatingCoursesModalVisible(false)}\n bulkEnrollmentEventGroupsUrl={props.enrollment\n .bulk_enrollment_event_groups_url}\n newCoursePath={props.newCoursePath}\n />\n )}\n {updatingRecurrenceBillsModalVisible && (\n {\n await props.handleUpdateRecurredBills(\n props.enrollment.id,\n url,\n data,\n );\n }}\n onCloseButtonClick={() =>\n setUpdatingRecurrenceBillsModalVisible(false)}\n recurrenceBillsPath={props.enrollment\n .recurrence_bills_path}\n newRecurrenceBillPath={props.newRecurrenceBillPath}\n />\n )}\n
    \n \n );\n};\n","import React, { useEffect, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\n\ninterface EventGroup {\n id: number;\n name: string;\n enrolled: boolean;\n}\n\ninterface Props {\n onCloseButtonClick: () => void;\n getEnrolledEventGroups: (url: string) => Promise<{\n form_action: string;\n event_groups: unknown[];\n }>;\n onUpdateEnrolledEventGroups: (\n url: string,\n data: unknown,\n ) => Promise;\n bulkEnrollmentEventGroupsUrl: string;\n newCoursePath: string;\n}\n\ninterface Inputs {\n bulk_enrollment_event_groups: {\n event_group_ids: string[];\n };\n}\n\nexport default function MemberEventGroupUpdatingModal({\n onCloseButtonClick,\n getEnrolledEventGroups,\n onUpdateEnrolledEventGroups,\n bulkEnrollmentEventGroupsUrl,\n newCoursePath,\n}: Props) {\n const [formAction, setFormAction] = useState(\"\");\n const [eventGroups, setEventGroups] = useState(\n undefined,\n );\n const handleButtonClick = () => {\n window.location.href = newCoursePath;\n };\n\n const {\n register,\n handleSubmit,\n setValue,\n formState: { isSubmitting, isSubmitted },\n } = useForm({\n defaultValues: {\n bulk_enrollment_event_groups: {\n event_group_ids: (eventGroups || [])\n .filter((eventGroup) => eventGroup.enrolled)\n .map((eventGroup) => eventGroup.id.toString()),\n },\n },\n });\n const onSubmit = async (data: Inputs) => {\n if (!formAction) {\n return;\n }\n await onUpdateEnrolledEventGroups(formAction, data);\n onCloseButtonClick();\n };\n\n useEffect(() => {\n (async () => {\n const { event_groups, form_action } = await getEnrolledEventGroups(\n bulkEnrollmentEventGroupsUrl,\n );\n setValue(\n \"bulk_enrollment_event_groups.event_group_ids\",\n (event_groups || []).filter((eventGroup: EventGroup) =>\n eventGroup.enrolled\n )\n .map((eventGroup: EventGroup) => eventGroup.id.toString()),\n );\n setFormAction(form_action);\n setEventGroups(event_groups as EventGroup[]);\n })();\n }, []);\n\n return (\n
    \n \n
    \n
    \n
    \n コースを選択\n
    \n
    \n \n
    \n \n
    \n \n
    \n {eventGroups?.length > 0 && (\n
    \n window.location.href = newCoursePath}\n className=\"button -appearance-transparent -size-s -color-interactive\"\n aria-label=\"コース作成ページへのリンク\"\n >\n
    \n \n
    \n
    \n コース作成\n
    \n \n
    \n )}\n
    \n
    \n\n
    \n
    \n
    \n {eventGroups?.length > 0 && (\n <>\n
    \n
      \n {eventGroups.map((eventGroup) => (\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 {eventGroups?.length === 0 && (\n
    \n
    \n

    \n コースがまだ作成されていません。
    \n コース作成後に受講者をコースへ所属させることができます。\n

    \n
    \n
    \n
    \n
      \n
    • \n \n
      \n キャンセル\n
      \n \n
    • \n
    • \n window.location.href = newCoursePath}\n className=\"button -size-l -appearance-filled -width-full -color-interactive\"\n aria-label=\"コース作成ページへのリンク\"\n >\n
      \n コース作成\n
      \n \n
    • \n
    \n
    \n
    \n
    \n )}\n {!eventGroups && (\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
    • \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","import React, { useEffect, useState } from \"react\";\nimport { localizeDateToYearMonthDayTime } from \"../../utils/localize-date\";\n\ninterface Event {\n id: number;\n name: string;\n url: string;\n starts_at: Date;\n status: string;\n publish_scope: string;\n}\n\ninterface Props {\n getEvents: (url: string) => Promise<{ events: unknown[] }>;\n events_url: string;\n new_event_url: string;\n}\n\nexport default function MemberEvents(props: Props) {\n const [events, setEvents] = useState(\n null,\n );\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n (async () => {\n setLoading(true);\n const { events } = await props.getEvents(\n props.events_url,\n );\n setEvents(events as Event[]);\n setLoading(false);\n })();\n }, [props.events_url]);\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 \n タイトル\n \n \n 出欠\n \n \n \n\n \n {loading || events === null\n ? (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n : events.length === 0\n ? (\n \n お知らせしている予定はありません\n \n )\n : (\n events.map((event: Event) => (\n \n \n
    \n {localizeDateToYearMonthDayTime(\n event.starts_at,\n )}\n
    \n \n \n \n {event.name}\n \n \n \n {event.status === \"出席\" && (\n <>\n \n \n \n {event.status}\n \n \n )}\n {event.status === \"欠席\" && (\n <>\n \n \n {event.status}\n \n \n )}\n {event.status === \"未定\" && (\n <>\n \n \n {event.status}\n \n \n )}\n \n \n ))\n )}\n \n \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\nimport { Family } from \"components/ManagementMemberPage/MemberDetails\";\n\ninterface Props {\n families: Family[];\n}\n\nexport default function MemberFamilies(props: Props): JSX.Element {\n return (\n props.families.length >= 1 && (\n
    \n
    \n 家族等
    \n \n 同一アカウントに紐づく受講者\n \n
    \n
    \n \n
    \n
    \n )\n );\n}\n","import classNames from \"classnames\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport MemberBills from \"./MemberBills\";\nimport MemberAnnouncements from \"./MemberAnnouncements\";\nimport MemberEvents from \"./MemberEvents\";\nimport MemberDetails from \"./MemberDetails\";\nimport TextAvatar from \"../TextAvatar\";\nimport Dialog from \"../Dialog\";\nimport { Enrollment } from \"components/ManagementMemberPage/ManagementMemberPageContainer\";\n\ninterface Props {\n onCloseFloatingView: () => void;\n getEnrolledEventGroups: (url: string) => Promise<{\n form_action: string;\n event_groups: unknown[];\n }>;\n getRecurrenceBills: (url: string) => Promise<{\n form_action: string;\n recurrence_bills: unknown[];\n }>;\n getBills: (url: string) => Promise<{ bills: unknown[] }>;\n getAnnouncements: (url: string) => Promise<{ announcements: unknown[] }>;\n getEvents: (url: string) => Promise<{ events: unknown[] }>;\n handleUpdateEnrolledEventGroups: (\n enrollmentId: number,\n url: string,\n data: unknown,\n ) => Promise;\n handleUpdateRecurredBills: (\n enrollmentId: number,\n url: string,\n data: unknown,\n ) => Promise;\n handleUpdateEnrollment: (\n enrollmentId: number,\n data: { enrollment: { description: string } },\n ) => Promise;\n subscribed: boolean;\n enrollment: Enrollment | null;\n newCoursePath: string;\n newRecurrenceBillPath: string;\n membersDestroyAccess: boolean;\n recurrenceBillsShowAccess: boolean;\n studentsBillsIndexAccess: boolean;\n studentsBulkEnrollmentEventGroupsIndexAccess: boolean;\n}\n\nexport default function MemberFloatingView(props: Props): JSX.Element {\n const [viewer, setViewer] = useState(\n sessionStorage.getItem(\"viewer\") || \"details\",\n );\n const [userActionPopupVisible, setUserActionPopupVisible] = useState(false);\n const [deletingPopupVisible, setDeletingPopupVisible] = useState(false);\n const toggleUserActionPopup = () => {\n setUserActionPopupVisible((prev) => !prev);\n };\n const handleBlur = (event) => {\n const isButtonFocused = event.relatedTarget?.tagName === \"BUTTON\";\n if (!isButtonFocused) {\n setUserActionPopupVisible(false);\n }\n };\n const tabViewer = {\n details: (\n
    \n {props.enrollment && (\n \n )}\n
    \n ),\n bills: (\n
    \n {props.enrollment && (\n \n )}\n
    \n ),\n announcements: (\n
    \n {props.enrollment && (\n \n )}\n
    \n ),\n events: (\n
    \n {props.enrollment && (\n \n )}\n
    \n ),\n };\n const ref = useRef();\n\n useEffect(() => {\n if (props.enrollment) {\n ref.current?.focus();\n }\n }, [props.enrollment]);\n\n return (\n \n {props.enrollment && (\n
    \n
    \n
    \n \n \n \n \n
    \n\n {props.membersDestroyAccess\n ? (\n
    \n \n \n \n {userActionPopupVisible && (\n <>\n
      \n
    • \n setDeletingPopupVisible(true)}\n >\n
      \n 教室から退会\n
      \n \n
    • \n
    \n {deletingPopupVisible && (\n \n setDeletingPopupVisible(false)}\n >\n \n
    \n 退会\n
    \n \n \n )}\n \n )}\n
    \n )\n : null}\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n

    \n {props.enrollment.student.name}\n

    \n
    \n {props.enrollment.student.name_kana}\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n {\n setViewer(\"details\");\n sessionStorage.setItem(\"viewer\", \"details\");\n }}\n >\n \n 登録情報\n \n \n\n {props.studentsBillsIndexAccess\n ? (\n {\n setViewer(\"bills\");\n sessionStorage.setItem(\"viewer\", \"bills\");\n }}\n >\n \n 請求\n \n \n )\n : null}\n\n {\n setViewer(\"announcements\");\n sessionStorage.setItem(\"viewer\", \"announcements\");\n }}\n >\n \n お知らせ\n \n \n\n {\n setViewer(\"events\");\n sessionStorage.setItem(\"viewer\", \"events\");\n }}\n >\n \n 予定\n \n \n
    \n\n \n {tabViewer[viewer]}\n
    \n
    \n \n )}\n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { numberFormat } from \"utils/number-format\";\nimport {\n deadlineAdditionalMonth,\n deadlineMonthlyDay,\n} from \"utils/recurrence-bill-deadline-convertor\";\n\ninterface RecurrenceBill {\n id: number;\n name: string;\n amount: number;\n by_month_day: number;\n deadline_additional_month: number;\n deadline_month_day: number;\n recurred: boolean;\n}\n\ninterface Props {\n onCloseButtonClick: () => void;\n getRecurrenceBills: (url: string) => Promise<{\n form_action: string;\n recurrence_bills: unknown[];\n }>;\n onUpdateRecurrenceBills: (\n url: string,\n data: unknown,\n ) => Promise;\n recurrenceBillsPath: string;\n newRecurrenceBillPath: string;\n}\n\ninterface Inputs {\n recurrence_bills: {\n recurrence_bill_ids: string[];\n };\n}\n\nexport default function MemberRecurrenceBillsUpdatingModal({\n onCloseButtonClick,\n getRecurrenceBills,\n onUpdateRecurrenceBills,\n recurrenceBillsPath,\n newRecurrenceBillPath,\n}: Props) {\n const [formAction, setFormAction] = useState(\"\");\n const [recurrenceBills, setRecurrenceBills] = useState<\n RecurrenceBill[] | undefined\n >(\n undefined,\n );\n const handleButtonClick = () => {\n window.location.href = newRecurrenceBillPath;\n };\n\n const {\n register,\n handleSubmit,\n setValue,\n formState: { isSubmitting, isSubmitted },\n } = useForm({\n defaultValues: {\n recurrence_bills: {\n recurrence_bill_ids: (recurrenceBills || [])\n .filter((recurrenceBill) => recurrenceBill.recurred)\n .map((recurrenceBill) => recurrenceBill.id.toString()),\n },\n },\n });\n const onSubmit = async (data: Inputs) => {\n if (!formAction) {\n return;\n }\n await onUpdateRecurrenceBills(formAction, data);\n onCloseButtonClick();\n };\n\n useEffect(() => {\n (async () => {\n const { recurrence_bills, form_action } = await getRecurrenceBills(\n recurrenceBillsPath,\n );\n setValue(\n \"recurrence_bills.recurrence_bill_ids\",\n (recurrence_bills || []).filter((recurrenceBill: RecurrenceBill) =>\n recurrenceBill.recurred\n )\n .map((recurrenceBill: RecurrenceBill) =>\n recurrenceBill.id.toString()\n ),\n );\n setFormAction(form_action);\n setRecurrenceBills(recurrence_bills as RecurrenceBill[]);\n })();\n }, []);\n\n return (\n
    \n \n
    \n
    \n
    \n 定期請求を選択\n
    \n
    \n \n
    \n \n
    \n \n
    \n {recurrenceBills?.length > 0 && (\n
    \n window.location.href = newRecurrenceBillPath}\n className=\"button -appearance-transparent -size-s -color-interactive\"\n aria-label=\"定期請求作成ページへのリンク\"\n >\n
    \n \n
    \n
    \n 作成\n
    \n \n
    \n )}\n
    \n
    \n\n
    \n
    \n
    \n {recurrenceBills?.length > 0 && (\n <>\n
    \n
      \n {recurrenceBills.map((recurrenceBill) => (\n
    • \n \n
      \n
      \n \n
      \n
      \n
      \n
      \n {recurrenceBill.name}\n
      \n
      \n {`${\n numberFormat(recurrenceBill.amount)\n }円 毎月${recurrenceBill.by_month_day}日 ${\n deadlineAdditionalMonth(\n recurrenceBill.deadline_additional_month,\n )\n }${\n deadlineMonthlyDay(\n recurrenceBill.deadline_month_day,\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 \n )}\n {recurrenceBills?.length === 0 && (\n
    \n
    \n

    \n 定期請求がまだ作成されていません。
    \n 定期請求の作成後、受講者と紐付けることができます。\n

    \n
    \n
    \n
    \n
      \n
    • \n \n
      \n キャンセル\n
      \n \n
    • \n
    • \n \n window.location.href = newRecurrenceBillPath}\n className=\"button -size-l -appearance-filled -width-full -color-interactive\"\n aria-label=\"定期請求作成ページへのリンク\"\n >\n
      \n 定期請求の作成\n
      \n \n
    • \n
    \n
    \n
    \n
    \n )}\n {!recurrenceBills && (\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
    • \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","export async function get(url: string): Promise {\n const response = await fetch(url, {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n return await response.json();\n}\n\nexport async function updateEnrolledEventGroups(url: string, data: unknown) {\n const csrfToken =\n document.querySelector('[name=\"csrf-token\"]').content;\n const response = await fetch(url, {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": csrfToken,\n },\n body: JSON.stringify(data),\n redirect: \"manual\",\n });\n if (response.ok) {\n const { message, enrolled_event_groups } = await response.json();\n return { message, enrolled_event_groups };\n } else {\n const { message } = await response.json();\n return { message };\n }\n}\n\nexport async function updateRecurredBills(url: string, data: unknown) {\n const csrfToken =\n document.querySelector('[name=\"csrf-token\"]').content;\n const response = await fetch(url, {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": csrfToken,\n },\n body: JSON.stringify(data),\n redirect: \"manual\",\n });\n if (response.ok) {\n const { message, recurrence_bills } = await response.json();\n return { message, recurrence_bills };\n } else {\n const errorData = await response.json();\n const error = new Error(errorData.message);\n error.name = \"ApiError\";\n (error as ApiError).response = response;\n throw error;\n }\n}\n\nexport async function updateEnrollment(\n url: string,\n data: { enrollment: { description: string } },\n) {\n const csrfToken =\n document.querySelector('[name=\"csrf-token\"]').content;\n const response = await fetch(url, {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": csrfToken,\n },\n body: JSON.stringify(data),\n redirect: \"manual\",\n });\n const { message } = await response.json();\n return { message };\n}\n\ninterface ApiError extends Error {\n response: Response;\n}\n","import React from \"react\";\n\ninterface Props {\n backButtonLinkPath?: string;\n}\nexport function ModalBackButton({ backButtonLinkPath }: Props) {\n const handleClick = () => {\n if (backButtonLinkPath) {\n window.location.href = backButtonLinkPath;\n } else {\n window.history.back();\n }\n };\n\n return (\n <>\n \n
    \n \n
    \n \n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { format } from \"date-fns\";\n\nconst selectableByMonthDay = [\n { day: 1, label: \"1日\" },\n { day: 5, label: \"5日\" },\n { day: 10, label: \"10日\" },\n { day: 15, label: \"15日\" },\n { day: 20, label: \"20日\" },\n { day: 25, label: \"25日\" },\n { day: 31, label: \"末日\" },\n];\nconst selectableDeadlineAdditionalMonth = [\n { additionalMonth: 0, label: \"同月\" },\n { additionalMonth: 1, label: \"翌月\" },\n];\nconst range = (start, end) =>\n Array.from({ length: end - start + 1 }, (_, i) => start + i);\nconst selectableDeadlineMonthDay = range(1, 31).map((i) => {\n return { day: i, label: i < 31 ? `${i}日` : \"末日\" };\n});\n\ninterface Props {\n by_month_day: number;\n deadline_additional_month: number;\n deadline_month_day: number;\n}\n\nexport default function RecurrenceBillDateSelector({\n by_month_day,\n deadline_additional_month,\n deadline_month_day,\n}: Props): JSX.Element {\n const [byMonthDay, setByMonthDay] = useState(by_month_day);\n const [deadlineAdditionalMonth, setDeadlineAdditionalMonth] = useState(\n deadline_additional_month,\n );\n const [deadlineMonthDay, setDeadlineMonthDay] = useState(deadline_month_day);\n const [nextIssuedDate, setNextIssuedDate] = useState(null);\n const [nextDeadlineDate, setNextDeadlineDate] = useState(null);\n const hasDeadlineError = deadlineAdditionalMonth === 0 &&\n deadlineMonthDay < byMonthDay;\n\n useEffect(() => {\n // TODO: いくつかの画面で必要になったらフロント側で計算できるようにする\n const setDates = async () => {\n const params = new URLSearchParams({\n by_month_day: byMonthDay.toString(),\n deadline_additional_month: deadlineAdditionalMonth.toString(),\n deadline_month_day: deadlineMonthDay.toString(),\n });\n const response = await fetch(\n `/api/v1/recurrence_bills/calculate_dates?${params}`,\n {\n headers: {\n \"Accept\": \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n },\n );\n if (response.ok) {\n const data = await response.json();\n setNextIssuedDate(data.next_issued_date);\n setNextDeadlineDate(data.next_deadline_date);\n }\n };\n void setDates();\n }, [byMonthDay, deadlineAdditionalMonth, deadlineMonthDay]);\n\n return (\n
    \n

    \n \n \n \n \n 請求サイクル\n \n

    \n\n
    \n

    \n 請求日\n

    \n
    \n
    \n 毎月\n \n {\n setByMonthDay(Number(event.target.value));\n }}\n aria-controls=\"next-issued-date\"\n >\n {selectableByMonthDay.map(({ day, label }) => {\n return (\n \n );\n })}\n \n \n \n
    \n
    \n
    \n\n
    \n

    \n 期日\n

    \n
    \n
    \n 請求日の\n \n {\n setDeadlineAdditionalMonth(Number(event.target.value));\n }}\n aria-controls=\"deadline-errors next-deadline-date\"\n >\n {selectableDeadlineAdditionalMonth.map(\n ({ additionalMonth, label }) => {\n return (\n \n );\n },\n )}\n \n \n \n \n {\n setDeadlineMonthDay(Number(event.target.value));\n }}\n aria-controls=\"deadline-errors next-deadline-date\"\n >\n {selectableDeadlineMonthDay.map(({ day, label }) => {\n return (\n \n );\n })}\n \n \n \n
    \n
    \n {hasDeadlineError &&\n (\"期日は請求日より後になるように設定してください\")}\n
    \n
    \n
    \n\n
    \n

    \n 次回請求\n

    \n
    \n
    \n
    \n 請求日:\n
    \n
    \n {nextIssuedDate\n ? format(new Date(nextIssuedDate), \"yyyy年L月d日 HH:mm\")\n : \"YYYY年MM月DD日 HH:MM\"}\n
    \n
    \n
    \n
    \n 期日:\n
    \n
    \n {nextDeadlineDate\n ? format(new Date(nextDeadlineDate), \"yyyy年L月d日 HH:mm\")\n : \"YYYY年MM月DD日 HH:MM\"}\n
    \n
    \n
    \n
    \n
    \n );\n}\n","import React, { useState } from \"react\";\nimport Calendar from \"components/Schedules/Calendar\";\nimport EventList from \"components/Schedules/EventList\";\nimport EventListEmpty from \"components/Schedules/EventListEmpty\";\n\nimport { format, isSameDay } from \"date-fns\";\n\nexport default function Schedules(\n {\n card_links,\n classroom_icons,\n create_event_path,\n events,\n is_management,\n person_avatars,\n user_mode,\n },\n): JSX.Element {\n const today = new Date();\n const [selectedDate, setSelectedDate] = useState(today);\n\n const activeEvents = events.filter((event) =>\n isSameDay(new Date(event.starts_at), selectedDate)\n );\n\n const onActiveStartDateChange = ({ action, activeStartDate, value }) => {\n if (action == \"onChange\") {\n setSelectedDate(new Date(value));\n } else {\n setSelectedDate(new Date(activeStartDate));\n }\n };\n\n const onClickDay = (value, e) => {\n setSelectedDate(new Date(value));\n };\n\n const onClickToday = (e) => {\n e.stopPropagation();\n\n setSelectedDate(today);\n };\n\n return (\n
    \n \n\n {activeEvents.length > 0\n ? (\n \n )\n : }\n\n {is_management > 0\n ? (\n
    \n
    \n
    \n \n
    \n \n
    \n\n
    予定を作成
    \n \n
    \n
    \n
    \n )\n : null}\n
    \n );\n}\n","import React from \"react\";\nimport ReactCalendar from \"react-calendar\";\nimport CalendarNavigationLabel from \"components/Schedules/CalendarNavigationLabel\";\nimport CalendarTileContent from \"components/Schedules/CalendarTileContent\";\nimport CalendarTileDay from \"components/Schedules/CalendarTileDay\";\nimport { isBefore, isSameMonth } from \"date-fns\";\nimport \"react-calendar/dist/Calendar.css\";\n\nexport default function Calendar(\n {\n events,\n onActiveStartDateChange,\n onClickDay,\n onClickToday,\n selectedDate,\n user_mode,\n },\n): JSX.Element {\n const tileClassName = ({ activeStartDate, date, view }) => {\n let className = \"schedules-calendar-v1__tile\";\n\n if (!isSameMonth(new Date(date), new Date(activeStartDate))) {\n className = className.concat(\" gray\");\n } else if (date.getDay() === 0) {\n className = className.concat(\" red\");\n } else if (date.getDay() === 6) {\n className = className.concat(\" blue\");\n }\n\n if (isBefore(new Date(date), new Date())) {\n className = className.concat(\" past\");\n } else {\n className = className.concat(\" upcoming\");\n }\n\n return className;\n };\n\n return (\n (\n \n )}\n navigationLabel={({ date, label, locale, view }) => (\n \n )}\n tileContent={({ activeStartDate, date, view }) => (\n \n )}\n />\n );\n}\n","import React from \"react\";\nimport { isSameMonth } from \"date-fns\";\n\nexport default function CalendarNavigationLabel(\n {\n date,\n label,\n onClickToday,\n },\n): JSX.Element {\n if (isSameMonth(new Date(), new Date(date))) {\n return label;\n } else {\n return (\n \n {label}\n 今日\n \n );\n }\n}\n","import React from \"react\";\nimport { isSameDay } from \"date-fns\";\n\nexport default function CalendarTileContent(\n {\n date,\n events,\n user_mode,\n },\n): JSX.Element {\n const tileEvents = () => {\n return events.filter((event) =>\n isSameDay(new Date(date), new Date(event.starts_at))\n );\n };\n\n return (\n \n {tileEvents().slice(0, 2).map((event) => {\n const goingParticipations = event.event_participations.some(\n (participation) => participation.status === \"going\",\n );\n let className = \"event-name\";\n if (user_mode === \"student_mode\" && !goingParticipations) {\n className = \"event-name__participations--no-going\";\n }\n\n return (\n \n {event.publish_scope === \"classroom\" && (\n \n )}\n {event.name}\n \n );\n })}\n \n );\n}\n","import React from \"react\";\nimport { isSameDay } from \"date-fns\";\n\nexport default function CalendarTileDay(\n {\n date,\n events,\n },\n): JSX.Element {\n const tileEvents = () => {\n return events.filter((event) =>\n isSameDay(new Date(date), new Date(event.starts_at))\n );\n };\n\n return (\n
    \n {date.toLocaleDateString(\"en\", { day: \"numeric\" })}\n\n {tileEvents().length > 2\n ? (\n \n ほか{tileEvents().length - 2}件\n \n )\n : null}\n
    \n );\n}\n","import React from \"react\";\nimport EventItemFooter from \"components/Schedules/EventItemFooter\";\nimport EventItemParticipation from \"components/Schedules/EventItemParticipation\";\n\nimport { endOfDay, format, isBefore } from \"date-fns\";\n\nexport default function EventItem(\n {\n card_links,\n classroom_icons,\n event,\n is_management,\n person_avatars,\n },\n): JSX.Element {\n const today = new Date();\n\n return (\n
    \n \n \n
    \n
    \n {event.recurrence_event_id && (\n
    \n \n
    \n )}\n
    \n \n {format(new Date(event.starts_at), \"HH:mm\")}\n \n \n {event.ends_at >\n endOfDay(new Date(event.starts_at))\n ? format(\n new Date(event.ends_at),\n \"M月D日(ddd)\",\n ) +\n \" \"\n : \"\"}\n {format(new Date(event.ends_at), \"HH:mm\")}\n \n
    \n
    \n\n
    \n {(event.publish_scope === \"classroom\")\n ? (\n
    \n \n 教室内公開\n
    \n )\n : null}\n {is_management ? : null}\n
    \n
    \n
    \n \n\n
    \n {event.name}\n
    \n
    \n {is_management ? null : (\n \n )}\n \n
    \n \n );\n}\n","import React from \"react\";\nimport PersonStatus from \"components/Schedules/PersonStatus\";\n\nexport default function EventItemFooter(\n {\n event,\n person_avatars,\n },\n): JSX.Element {\n return (\n
    \n
      \n {event.event_participations.map((\n eventParticipation,\n ) => (\n \n \n\n
      \n {eventParticipation.student.name}\n
      \n\n
      \n \n
      \n \n ))}\n
    \n
    \n );\n}\n","import React from \"react\";\n\nexport default function EventItemParticipation(\n {\n event,\n },\n): JSX.Element {\n return (\n
    \n \n 参加人数:\n \n\n eventParticipation.status == \"going\"\n ).length < event.event_participations.length\n ? \"event-card__participation-numerator --has-absentee\"\n : \"event-card__participation-numerator\"}\n >\n {event.event_participations.filter((\n eventParticipation,\n ) => eventParticipation.status == \"going\")\n .length}\n \n\n \n {event.event_participations.length}\n \n
    \n );\n}\n","import React from \"react\";\nimport EventItem from \"components/Schedules/EventItem\";\nimport Notice from \"components/ManagementClassroomSettings/Notice\";\nimport { format } from \"date-fns\";\nimport { ja } from \"date-fns/locale\";\n\nexport default function EventList(\n {\n activeEvents,\n card_links,\n classroom_icons,\n is_management,\n person_avatars,\n selectedDate,\n },\n): JSX.Element {\n return (\n
    \n
    \n
    \n

    \n {format(selectedDate, \"M月d日(E)\", { locale: ja })}\n

    \n
    \n\n
    \n {activeEvents.map((event, index) => (\n \n ))}\n
    \n
    \n\n
    \n {is_management\n ? (\n
    \n \n

    \n \n スケジュールとは\n \n

    \n

    \n \n スケジュール機能で予約を受け付けるには\n \n

    \n
    \n
    \n )\n : null}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport Notice from \"components/ManagementClassroomSettings/Notice\";\n\nexport default function EventListEmpty(\n {\n is_management,\n },\n): JSX.Element {\n if (is_management) {\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 予定を作成して\n
    \n 受講者に共有しましょう\n
    \n
    \n
    \n
    \n );\n } else {\n return null;\n }\n}\n","import React from \"react\";\n\nexport default function PersonStatus(\n {\n status,\n },\n): JSX.Element {\n switch (status) {\n case \"going\":\n return (\n \n \n 出席\n \n );\n case \"not_going\":\n return (\n \n \n 欠席\n \n );\n default:\n return (\n \n \n \n\n 未定\n \n );\n }\n}\n","import classNames from \"classnames\";\nimport React, { useEffect, useState } from \"react\";\n\ninterface Props {\n children: React.ReactNode;\n}\n\nexport default function Snackbar(props: Props): JSX.Element {\n const [visible, setVisible] = useState(true);\n\n useEffect(() => {\n setVisible(true);\n const id = setTimeout(() => {\n setVisible(false);\n }, 7000);\n return () => clearTimeout(id);\n }, [props.children]);\n\n return (\n
    \n
    \n
    \n {props.children}\n
    \n
    \n setVisible(false)}\n >\n
    \n \n
    \n \n
    \n
    \n
    \n );\n}\n","import React, { useMemo } from \"react\";\nimport crypto from \"crypto\";\n\ntype Props = IconAvatar | InitialAvatar;\n\ntype IconAvatar = BaseAvatar & {\n name?: string;\n icon: true;\n};\n\ntype InitialAvatar = BaseAvatar & {\n icon?: false;\n name: string;\n};\n\ninterface BaseAvatar {\n size: \"s\" | \"m\" | \"l\";\n}\n\nexport default function TextAvatar({ icon, name, size }: Props): JSX.Element {\n const colorClassName = useMemo(() => {\n const hash = crypto.createHash(\"md5\");\n hash.update(name ? name[0] : \"r\", \"utf8\");\n const num = BigInt(\"0x\" + hash.digest(\"hex\"));\n const variant = num % BigInt(10);\n return `-color-${variant}`;\n }, [name]);\n\n return (\n \n {icon\n ? (\n
    \n \n
    \n )\n : name[0]}\n \n );\n}\n","import * as React from \"react\";\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport \"../../packs/styles/components/_toast.scss\";\nimport classNames from \"classnames\";\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nfunction getToastVariant(variant) {\n const variantClasses = {\n \"default\": \"toast-default\",\n \"destructive\": \"toast-destructive\",\n };\n\n return variantClasses[variant] || variantClasses[\"default\"];\n}\n\ntype ToastProps = {\n className?: string;\n variant: \"default\" | \"destructive\";\n children: React.ReactNode;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n};\n\nconst Toast = React.forwardRef<\n React.ElementRef,\n ToastProps\n>(\n ({ className, variant, ...props }, ref) => {\n const variantClassName = getToastVariant(variant);\n\n const combinedClassNames = `${className || \"\"} ${variantClassName}`.trim();\n\n return (\n \n );\n },\n);\n\nToast.displayName = ToastPrimitives.Root.displayName;\n\nconst ToastAction = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\nconst ToastClose = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n
    \n \n
    \n \n));\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nToastDescription.displayName = ToastPrimitives.Description.displayName;\n\ntype ToastActionElement = React.ReactElement;\n\nexport {\n Toast,\n ToastAction,\n type ToastActionElement,\n ToastClose,\n ToastDescription,\n type ToastProps,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n};\n","import React from \"react\";\nimport {\n Toast,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n} from \"./toast\";\nimport { useToast } from \"./use-toast\";\nimport classNames from \"classnames\";\n\nexport function Toaster() {\n const { toasts } = useToast();\n\n return (\n \n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n \n
    \n {title && {title}}\n {description && (\n {description}\n )}\n
    \n {action}\n \n
    \n );\n })}\n \n
    \n );\n}\n","import * as React from \"react\";\n\nimport type { ToastActionElement, ToastProps } from \"./toast\";\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 7000;\n\ntype ToasterToast = ToastProps & {\n id: string;\n title?: React.ReactNode;\n description?: React.ReactNode;\n action?: ToastActionElement;\n};\n\nconst actionTypes = {\n ADD_TOAST: \"ADD_TOAST\",\n UPDATE_TOAST: \"UPDATE_TOAST\",\n DISMISS_TOAST: \"DISMISS_TOAST\",\n REMOVE_TOAST: \"REMOVE_TOAST\",\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n}\n\ntype ActionType = typeof actionTypes;\n\ntype Action =\n | {\n type: ActionType[\"ADD_TOAST\"];\n toast: ToasterToast;\n }\n | {\n type: ActionType[\"UPDATE_TOAST\"];\n toast: Partial;\n }\n | {\n type: ActionType[\"DISMISS_TOAST\"];\n toastId?: ToasterToast[\"id\"];\n }\n | {\n type: ActionType[\"REMOVE_TOAST\"];\n toastId?: ToasterToast[\"id\"];\n };\n\ninterface State {\n toasts: ToasterToast[];\n}\n\nconst toastTimeouts = new Map>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: \"REMOVE_TOAST\",\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case \"ADD_TOAST\":\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n\n case \"UPDATE_TOAST\":\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === action.toast.id ? { ...t, ...action.toast } : t\n ),\n };\n\n case \"DISMISS_TOAST\": {\n const { toastId } = action;\n\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t\n ),\n };\n }\n case \"REMOVE_TOAST\":\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n}\n\ntype Toast = Omit;\n\nfunction toast({ ...props }: Toast) {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: \"UPDATE_TOAST\",\n toast: { ...props, id },\n });\n const dismiss = () => dispatch({ type: \"DISMISS_TOAST\", toastId: id });\n\n dispatch({\n type: \"ADD_TOAST\",\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) dismiss();\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n}\n\nfunction useToast() {\n const [state, setState] = React.useState(memoryState);\n\n React.useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: \"DISMISS_TOAST\", toastId }),\n };\n}\n\nexport { toast, useToast };\n","const getCsrfToken: () => string = () => {\n return document.querySelector('[name=\"csrf-token\"]').content;\n};\n\ninterface RequestAsJson {\n path: string;\n method: string;\n}\n\ninterface RequestWithCsrfTokenParams {\n form_action: string;\n form_method: string;\n data?: Record;\n}\n\ntype ResponseAsJson = {\n response: Response;\n};\nexport const requestAsJson = async (\n { path, method }: RequestAsJson,\n): Promise => {\n const response = await fetch(path, {\n method: method.toUpperCase(),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n const json = await response.json();\n return { ...json, response };\n};\n\nexport const requestWithCsrfToken = async (\n { form_action, form_method, data = {} }: RequestWithCsrfTokenParams,\n): Promise => {\n const csrfToken = getCsrfToken();\n const response = await fetch(form_action, {\n method: form_method.toUpperCase(),\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": csrfToken,\n },\n body: JSON.stringify(data),\n });\n const json = await response.json();\n return { ...json, response };\n};\n\nexport const post = async (\n form_action: string,\n data: Record,\n) => {\n return await requestWithCsrfToken({\n form_action,\n form_method: \"POST\",\n data,\n });\n};\n\nexport const patch = async (\n form_action: string,\n data: Record,\n) => {\n return await requestWithCsrfToken({\n form_action,\n form_method: \"PATCH\",\n data,\n });\n};\n","import {\n patch,\n post,\n requestAsJson,\n requestWithCsrfToken,\n} from \"utils/request\";\n\nexport const useApi = () => {\n return { post, patch, requestWithCsrfToken, requestAsJson };\n};\n","export default async function toBase64(\n blob: Blob,\n): Promise {\n return new Promise((resolve, reject) => {\n const fileReader = new FileReader();\n fileReader.readAsDataURL(blob);\n\n fileReader.onload = () => {\n resolve(fileReader.result);\n };\n\n fileReader.onerror = (error) => {\n reject(error);\n };\n });\n}\n","document.addEventListener(\"turbolinks:load\", function () {\n const snackbars = document.querySelectorAll(\".js-snackbar\");\n const closeButtons = document.querySelectorAll(\".js-snackbar-close\");\n\n closeButtons.forEach((closeButton) => {\n closeButton.addEventListener(\"click\", () => {\n closeButton.closest(\".js-snackbar\").classList.remove(\"--visible\");\n });\n });\n\n snackbars.forEach((snackbar) => hideAfter7Seconds(snackbar));\n});\n\nexport default function showingSnackBar(message: string) {\n const notice = document.getElementById(\"notice\");\n const noticeBody = notice.getElementsByClassName(\"_body\")[0];\n if (!(notice && noticeBody)) return;\n\n notice.removeAttribute(\"hidden\");\n notice.classList.add(\"--visible\");\n noticeBody.textContent = message;\n\n hideAfter7Seconds(notice);\n}\n\nconst hideAfter7Seconds = (element) => {\n setTimeout(() => {\n element.classList.remove(\"--visible\");\n }, 7000);\n};\n","import { useMemo } from \"react\";\nimport crypto from \"crypto\";\n\nexport const colorClassName = (name: string) => {\n return useMemo(() => {\n const hash = crypto.createHash(\"md5\");\n\n hash.update(name ? name[0] : \"r\", \"utf8\");\n\n const num = BigInt(\"0x\" + hash.digest(\"hex\"));\n const variant = num % BigInt(10);\n\n return `-color-${variant}`;\n }, [name]);\n};\n","import { format } from \"date-fns\";\nimport { ja } from \"date-fns/locale\";\n\ntype localizeDataValue = Date | string | number;\nconst localizeData = (dateOrString: localizeDataValue, fmt: string) =>\n format(new Date(dateOrString), fmt, { locale: ja });\n\nexport const localizeDateToYmdString = (dateOrString: localizeDataValue) =>\n localizeData(dateOrString, \"yyyy年M月d日\");\nexport const localizeDateToFullString = (dateOrString: localizeDataValue) =>\n localizeData(dateOrString, \"yyyy年M月d日(E) HH:mm\");\nexport const localizeDateToShortString = (dateOrString: localizeDataValue) =>\n localizeData(dateOrString, \"M/d\");\nexport const localizeDateToMiddleString = (dateOrString: localizeDataValue) =>\n localizeData(dateOrString, \"Y-M-d\");\nexport const localizeDateToYearMonthDayTime = (\n dateOrString: localizeDataValue,\n) => localizeData(dateOrString, \"Y-M-d kk:mm\");\n","export default function localizeGender(gender: string) {\n switch (gender) {\n case \"male\":\n return \"男性\";\n case \"female\":\n return \"女性\";\n case \"non_binary\":\n return \"別の性\";\n }\n}\n","export const numberFormat = (num: number): string => {\n return num.toLocaleString();\n};\n","export function deadlineAdditionalMonth(additional_month: number): string {\n switch (additional_month) {\n case 0:\n return \"当月\";\n case 1:\n return \"翌月\";\n }\n}\n\nexport function deadlineMonthlyDay(day: number): string {\n switch (day) {\n case 31:\n return \"末\";\n default:\n return day.toString();\n }\n}\n","import { addMinutes, eachMinuteOfInterval, format, startOfDay } from \"date-fns\";\n\nexport const timeOptions = eachMinuteOfInterval(\n {\n start: startOfDay(new Date()),\n end: new Date(startOfDay(new Date()).getTime() + 23.5 * 60 * 60 * 1000),\n },\n { step: 30 },\n).map((time) => format(time, \"HH:mm\"));\n\n// 引数時刻から未来かつ最も近い30分刻みの文字列を返す\n// 16:22 => \"16:30\"\nexport const getNextHalfHour = (date = new Date()): string => {\n const minutes = date.getMinutes();\n const minutesToAdd = minutes < 30 ? 30 - minutes : 60 - minutes;\n const roundedTime = addMinutes(date, minutesToAdd);\n return format(roundedTime, \"HH:mm\");\n};\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","AddresseeSelect","form_name","attributes_name","addressee_attribute_name","show_automatic_settlement_enabled","classroom_event_groups","enrollments","selected_student_ids","open","setOpen","useState","selectedStudentIds","setSelectedStudentIds","selectedEventGroupIds","setSelectedEventGroupIds","React","className","role","tabIndex","onClick","length","eventGroup","find","eventGroupEnrollments","filter","enrollment","event_groups","some","g","total","count","includes","student","key","name","TextAvatar","size","icon","join","allowed_to_settle_automatically","type","value","AddresseeSelectView","onCloseButtonClick","openDropdown","setOpenDropdown","allStudentSelected","deselectEventGroup","useCallback","studentIds","enollment","root","htmlFor","checked","onChange","event","target","concat","Array","from","Set","eventGroupIds","flatMap","AnnouncementFormAIAssistant","form_action","onReflection","title","body","openModal","setOpenModal","xmlns","height","viewBox","width","d","AnnouncementFormAIAssistantSection","closeModal","AIAssistantConfirmation","pollingUrl","onSubmit","generatedBody","setGeneratedBody","isPolling","setIsPolling","fetchGeneratedBody","async","response","fetch","method","headers","output","progress","json","useEffect","interval","setInterval","clearInterval","alert","setPollingUrl","post","useApi","register","handleSubmit","formState","errors","isSubmitting","isSubmitted","useForm","defaultValues","input","polling_url","error","data","ok","Sentry","_extends","required","placeholder","message","rows","maxLength","href","rel","disabled","AnnouncementFormAddresseeSelector","onChangeStudentIds","AnnouncementFormAddresseeSelectorView","AnnouncementFormFilesSection","files","onFilesChange","onRemoveFile","previews","setPreviews","newPreviews","Promise","all","file","content","toBase64","index","src","alt","accept","multiple","newFiles","AnnouncementFormIssuedDateSection","isScheduledIssue","currentIssuedDate","onSchedulingChange","validate","isBefore","parseISO","startOfDay","Date","date","list","timeOptions","time","issued_date","issued_time","AnnouncementForm","props","openConfirmDialog","setOpenConfirmDialog","openHelpModal","setOpenHelpModal","loading","setLoading","setMessage","setIsScheduledIssue","announcement_status","status","isValid","setValue","setError","clearErrors","watch","trigger","attributes","draft","mode","validateStudentIds","form","FormData","append","toString","shared_with","student_ids","forEach","student_id","form_path","form_method","toUpperCase","document","querySelector","redirect_url","Turbolinks","fetchedFiles","file_objects","fileObj","url","blob","File","ErrorBanner","class","generations_path","field","f","scheduled","issued","format","getNextHalfHour","Snackbar","Dialog","description","HelpModal","BillAddresseeSelector","BillAddresseeSelectorView","inputRegister","setSelectedStudentIdsValue","selectEventGroup","BillForm","comboBoxVisible","setComboBoxVisible","submitDialogVisible","setSubmitDialogVisible","toast","useToast","requestWithCsrfToken","handleBillItemTemplateClick","targetBillItemTemplate","bill_item_templates","bill_item_template","Number","dataset","amount","bill_group_form","children","variant","action","handleClick","prevValue","onBlur","relatedTarget","tagName","onFocus","handleFocus","billItemTemplate","onMouseDown","preventDefault","numberFormat","min","max","inputMode","management_classroom_bill_item_templates_path","deadline_date","deadline_time","Toaster","BillGroupDetails","bill_group","classroom","paths","deletingPopupVisible","setDeletingPopupVisible","disabledPopupVisible","setDisabledPopupVisible","paidDialogTarget","setPaidDialogTarget","payableDialogTarget","setPayableDialogTarget","reminderDialogTarget","setNotificationDialogTarget","userActionPopupVisible","setUserActionPopupVisible","billActionPopupTarget","setBillActionPopupTarget","ModalBackButton","toggleUserActionPopup","prev","edit_path","duplicate_path","deletable","bill_group_path","updatable_to_be_disabled","disable_path","not_issued","localizeDateToFullString","issued_at","deadline","number_of_paid_students","settlement_agent","konbini_payment_enabled","settings_path","bills","bill","addressee","member_path","payment_approved","payments","tried_at","approved_at","marked_as_paid","marked_as_paid_at","payment_waiting_for_debit","transfer_return_date","payment_waiting_for_approval","payable","method_type_konbini","markable_as_paid","allow_overdue_notification","overdue_notifications_path","reportToSearchableText","report","name_kana","enrolled_event_groups","eg","BillGroupsReport","reports","prev_month","current_month","next_month","all_event_groups","filteredReports","setFilteredReports","checkedFilters","setCheckedFilters","isFiltersVisible","setIsFiltersVisible","searchCheckBoxElements","filteredEventGroupName","elm","result","enrolledEventGroupName","keyword","searchKeywords","trim","toLowerCase","match","searchableText","every","kw","indexOf","handleKeywordSearch","checkBoxId","scope","TableRow","total_billing_amount","BillItemTemplatesPage","control","patch","fields","remove","useFieldArray","JSON","stringify","showingSnackBar","minLength","colSpan","addBillItemTemplate","undefined","shouldFocus","ClassroomEnrollmentPage","methods","classroom_enrollment_params","students","student_name","student_name_kana","enrollments_path","enroll_event_group_form","FormProvider","classroom_path","ClassroomEnrollmentStudentFormSection","addresses","ClassroomEnrollmentCustomFieldFormSection","customFields","custom_fields","ClassroomEnrollmentUserFormSection","initialUserName","user_name","initialUserPhoneNumber","user_phone_number","currentStudentDependent","term","ClassroomEnrollmentConfirmDialog","classroomEnrollmentParams","onConfirmDialogClose","ClassroomEnrollmentAddressFormSection","useFormContext","defaultChecked","address","postal_code","student_address_id","pattern","student_address_postal_code","student_address_address","student_date_of_birth","agreed_to_term","student_gender","localizeGender","customField","custom_field_id","customFieldIndex","field_type","defaultValue","options","option","optionIndex","option_value","studentFormType","setStudentFormType","setStudentAttributes","dependent","date_of_birth","gender","student_dependent","onNewStudentFormSwitch","Boolean","CoverStripe","classroomName","colorClassName","preserveAspectRatio","fill","style","mixBlendMode","opacity","x1","y1","x2","y2","gradientUnits","offset","ParticipantsSelector","RemainingParticipantsCount","selectedStudentsCount","ParticipantsSelectorView","EventFormParticipantsSelectorView","attendeeLimit","setAttendeeLimit","remainingParticipantsCount","attendeeLimitInput","getElementById","HTMLInputElement","addEventListener","Math","parseInt","defaultParticipationStatus","setDefaultParticipationStatus","handleStatusChange","currentStatus","querySelectorAll","removeEventListener","EventForm","FabButton","label","ManagementClassroomSettings","formAuthenticityToken","tabAnchor","window","location","split","activeTab","setActiveTab","Header","Cover","editPath","editManagementClassroomPath","Page","Config","policyCanShow","TabHeader","ConfigSubscription","policyCanDestroyManagementOrganizations","ConfigDeleteClassroom","showDeleteDialog","setShowDeleteDialog","padding","managementOrganizationPath","autoComplete","showCancelDialog","setShowCancelDialog","currentPlatformSubscriptions","currentPlatformSubscription","activated","platformPlan","platformPlanName","canceled","startDateYmda","endDateYmda","endDateIsEndOfMonth","newManagementClassroomSettingsSubscriptionPath","managementClassroomSettingsSubscriptionsPath","managementClassroomSettingsSubscriptionPath","paymentCardMethods","paymentCardMethod","brand","cardbrandImage","card","logoUrl","last4","expMonthFormatted","expYear","managementClassroomSettingsPaymentCardPath","Courses","showHelpDialog","setShowHelpDialog","eventGroups","managementClassroomCoursePath","Notice","courseHintsImageUrl","policyCanNewManagementClassroomsCourses","newManagementClassroomCoursePath","coverImage","backButtonLinkPath","Tabs","Summary","organization","representative","phoneNumber","policyCanEditManagementClassrooms","dangerouslySetInnerHTML","__html","currentUserIsClassroomManager","managerIsApproved","policyCanEditManagementOrganizations","editManagementOrganizationPath","optionalBills","customFieldsCount","policyCanNewManagementClassroomsOptionalBills","managementClassroomInvitePath","optionalBill","policyCanCreateManagementClassroomsCustomFields","managementClassroomCustomFieldsPath","textAlign","invitationUrl","handleTabClick","tabName","stopPropagation","policyCanNewManagementClassroomsSettingsSubscriptions","newCustomField","required_on_enrollment","isEditing","update_custom_field_path","ManagementCustomFieldsPage","dropdownIndex","setDropdownIndex","setCustomFields","ManagementCustomFieldsItem","create_custom_field_path","policy_can_update_and_destroy_management_classrooms_custom_fields","removeItem","newCustomFields","slice","showMessage","showIndex","onOpenDropdown","onClosedDropdown","policy_can_create_management_classrooms_custom_fields","new_classroom_enrollment_path","translations","free_text","single_select","multi_select","getValueFromPath","obj","path","current","localize","trans","setCustomField","deletingDialogVisible","setDeletingDialogVisible","setIsEditing","enterEditing","commitEditing","exitEditing","toggleRequiredOnEnrollment","custom_field","deleteCustomField","ManagementCustomFieldsItemForm","defaultOptions","getEnrolledEventGroups","get","getRecurrenceBills","getBills","getAnnouncements","getEvents","ManagementMemberPage","enrollmentId","setEnrollmentId","setEnrollments","anchorKey","anchorValue","hash","replace","anchorId","isNaN","listener","state","globalThis","ManagementMemberPageContainer","handleUpdateEnrolledEventGroups","updateEnrolledEventGroups","findIndex","before","after","handleUpdateRecurredBills","recurrence_bills","updateRecurredBills","handleUpdateEnrollment","updateEnrollment","edit_url","onFloatingViewShow","history","pushState","onFloatingViewClose","sorters","newer","a","b","compareDesc","created_at","older","compareAsc","nameKana","localeCompare","eventGroupCountDesc","eventGroupCountAsc","visibleFilter","setVisibleFilter","sort","setSort","searchName","setSearchName","searchEventGroupIds","setSearchEventGroupIds","searchRecurrenceBillIds","setSearchRecurrenceBillIds","searchRecurrenceBillUnset","setSearchRecurrenceBillUnset","searchDescriptionBlank","setSearchDescriptionBlank","searchDescriptionFilled","setSearchDescriptionFilled","searchDescription","setSearchDescription","ref","useRef","useMemo","reduce","previousEventGroups","eventGroupsToAdd","aEventGroup","recurrenceBills","previousRecurrenceBills","recurrenceBillsToAdd","recurrenceBill","aRecurrenceBill","filteredData","buttonRef","handleEnrollmentClick","element","event_group","recurrence_bill","classNames","management_classroom_classroom_managers_path","classroom_managers_count","management_classroom_invite_path","management_classroom_custom_fields_path","members_csv_access","members_csv_download_path","_","MemberFloatingView","onCloseFloatingView","closeFloatingView","focus","subscribed","newCoursePath","new_course_path","newRecurrenceBillPath","new_recurrence_bill_path","membersDestroyAccess","members_destroy_access","recurrenceBillsShowAccess","recurrence_bills_show_access","studentsBillsIndexAccess","students_bills_index_access","studentsBulkEnrollmentEventGroupsIndexAccess","students_bulk_enrollment_event_groups_index_access","MemberAnnouncements","announcements","setAnnouncements","nowDate","announcements_url","new_announcement_url","announcement","localizeDateToYearMonthDayTime","MemberBills","setBills","bills_url","new_bill_url","recurrence","localizeDateToMiddleString","payment","method_type","localizeDateToShortString","MemberCustomFieldItem","isValidValue","MemberCustomFieldItemForm","customFieldsUrl","customFieldId","custom_field_value_id","resource_url","custom_field_option_id","MemberCustomFields","MemberDescriptionForm","families","setFamilies","requestAsJson","updatingCoursesModalVisible","setUpdatingCoursesModalVisible","updatingRecurrenceBillsModalVisible","setUpdatingRecurrenceBillsModalVisible","scrollToTop","scroll","top","details_url","localizeDateToYmdString","users","phone_number","MemberFamilies","classroom_term_agreement","agreed_at","custom_fields_url","slug","enrolled_at","by_month_day","deadlineAdditionalMonth","deadline_additional_month","deadlineMonthlyDay","deadline_month_day","MemberEventGroupUpdatingModal","onUpdateEnrolledEventGroups","bulkEnrollmentEventGroupsUrl","bulk_enrollment_event_groups_url","MemberRecurrenceBillsUpdatingModal","onUpdateRecurrenceBills","recurrenceBillsPath","recurrence_bills_path","formAction","setFormAction","setEventGroups","bulk_enrollment_event_groups","event_group_ids","enrolled","MemberEvents","events","setEvents","events_url","new_event_url","starts_at","family","viewer","setViewer","sessionStorage","getItem","tabViewer","details","MemberDetails","delete_url","setItem","setRecurrenceBills","recurrence_bill_ids","recurred","csrfToken","redirect","errorData","back","selectableByMonthDay","day","selectableDeadlineAdditionalMonth","additionalMonth","selectableDeadlineMonthDay","start","end","i","range","RecurrenceBillDateSelector","byMonthDay","setByMonthDay","setDeadlineAdditionalMonth","deadlineMonthDay","setDeadlineMonthDay","nextIssuedDate","setNextIssuedDate","nextDeadlineDate","setNextDeadlineDate","hasDeadlineError","params","URLSearchParams","next_issued_date","next_deadline_date","setDates","Schedules","card_links","classroom_icons","create_event_path","is_management","person_avatars","user_mode","today","selectedDate","setSelectedDate","activeEvents","isSameDay","Calendar","onActiveStartDateChange","activeStartDate","onClickDay","onClickToday","EventList","EventListEmpty","ReactCalendar","calendarType","defaultView","next2Label","prev2Label","tileClassName","view","isSameMonth","getDay","formatDay","locale","CalendarTileDay","navigationLabel","CalendarNavigationLabel","tileContent","CalendarTileContent","goingParticipations","event_participations","participation","publish_scope","tileEvents","toLocaleDateString","EventItem","ends_at","recurrence_event_id","dateTime","endOfDay","EventItemParticipation","classroom_id","EventItemFooter","eventParticipation","PersonStatus","ja","visible","setVisible","setTimeout","clearTimeout","crypto","update","BigInt","digest","ToastProvider","ToastPrimitives","ToastViewport","displayName","Toast","variantClassName","variantClasses","getToastVariant","combinedClassNames","ToastAction","ToastClose","ToastTitle","ToastDescription","toasts","toastTimeouts","Map","addToRemoveQueue","toastId","has","timeout","delete","dispatch","set","reducer","t","listeners","memoryState","MAX_SAFE_INTEGER","dismiss","onOpenChange","setState","push","splice","reject","fileReader","FileReader","readAsDataURL","onload","onerror","notice","noticeBody","getElementsByClassName","removeAttribute","classList","add","textContent","hideAfter7Seconds","snackbars","closeButton","closest","snackbar","localizeData","dateOrString","fmt","num","toLocaleString","additional_month","eachMinuteOfInterval","getTime","step","minutes","getMinutes","minutesToAdd","roundedTime","addMinutes"],"sourceRoot":""}