wcz-test 6.24.0 → 6.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalStatus-BtAVFn5p.js +8 -0
- package/dist/ApprovalStatus-BtAVFn5p.js.map +1 -0
- package/dist/{node_modules/react/cjs/react-jsx-runtime.development.js → DialogsContext-BKtkEAfL.js} +48 -4
- package/dist/DialogsContext-BKtkEAfL.js.map +1 -0
- package/dist/{hooks/DialogsHooks.js → DialogsHooks-BQVpqCq9.js} +4 -7
- package/dist/DialogsHooks-BQVpqCq9.js.map +1 -0
- package/dist/FileHooks-Cg9ver7z.js +3478 -0
- package/dist/FileHooks-Cg9ver7z.js.map +1 -0
- package/dist/{models/file/FileMeta.js → FileMeta-G1oT3mYK.js} +2 -2
- package/dist/FileMeta-G1oT3mYK.js.map +1 -0
- package/dist/{components/router/RouterListItemButton.js → RouterListItemButton-IUVgwnz3.js} +4 -4
- package/dist/RouterListItemButton-IUVgwnz3.js.map +1 -0
- package/dist/client.js +4 -4
- package/dist/compiler-runtime-BGHur82y.js +46 -0
- package/dist/compiler-runtime-BGHur82y.js.map +1 -0
- package/dist/components.js +1486 -15
- package/dist/components.js.map +1 -1
- package/dist/{env.js → env-gsqZ6zZD.js} +3 -3
- package/dist/env-gsqZ6zZD.js.map +1 -0
- package/dist/exports/client.d.ts +17 -4
- package/dist/exports/components.d.ts +44 -14
- package/dist/exports/hooks.d.ts +23 -4
- package/dist/exports/index.d.ts +17 -4
- package/dist/exports/models.d.ts +107 -25
- package/dist/exports/queries.d.ts +95 -4
- package/dist/exports/server.d.ts +14 -4
- package/dist/exports/utils.d.ts +11 -3
- package/dist/exports/vite.d.ts +5 -1
- package/dist/hooks.js +1000 -3
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +1752 -4
- package/dist/index.js.map +1 -1
- package/dist/models.js +159 -10
- package/dist/models.js.map +1 -1
- package/dist/queries.js +935 -14
- package/dist/queries.js.map +1 -1
- package/dist/{lib/queryClient.js → queryClient-CNvC95mU.js} +2 -2
- package/dist/queryClient-CNvC95mU.js.map +1 -0
- package/dist/server.js +84 -1
- package/dist/server.js.map +1 -1
- package/dist/{lib/auth/session.js → session-vW7WZadj.js} +24 -9
- package/dist/session-vW7WZadj.js.map +1 -0
- package/dist/{lib/utils.js → utils-MD9YwOtu.js} +9 -9
- package/dist/utils-MD9YwOtu.js.map +1 -0
- package/dist/utils.js +2 -2
- package/dist/vite.js +61 -1
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/___vite-browser-external.js +0 -7
- package/dist/_virtual/___vite-browser-external.js.map +0 -1
- package/dist/_virtual/__vite-browser-external.js +0 -5
- package/dist/_virtual/__vite-browser-external.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -37
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/compiler-runtime.js +0 -6
- package/dist/_virtual/compiler-runtime.js.map +0 -1
- package/dist/_virtual/compiler-runtime2.js +0 -5
- package/dist/_virtual/compiler-runtime2.js.map +0 -1
- package/dist/_virtual/index.js +0 -8
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/index3.js.map +0 -1
- package/dist/_virtual/index4.js +0 -5
- package/dist/_virtual/index4.js.map +0 -1
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/_virtual/index6.js +0 -5
- package/dist/_virtual/index6.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/re.js +0 -5
- package/dist/_virtual/re.js.map +0 -1
- package/dist/_virtual/react-compiler-runtime.development.js +0 -5
- package/dist/_virtual/react-compiler-runtime.development.js.map +0 -1
- package/dist/_virtual/react-compiler-runtime.production.js +0 -5
- package/dist/_virtual/react-compiler-runtime.production.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
- package/dist/components/core/AppTitle.d.ts +0 -2
- package/dist/components/core/AppTitle.js +0 -23
- package/dist/components/core/AppTitle.js.map +0 -1
- package/dist/components/core/Fullscreen.d.ts +0 -3
- package/dist/components/core/Fullscreen.js +0 -104
- package/dist/components/core/Fullscreen.js.map +0 -1
- package/dist/components/core/Layout.d.ts +0 -8
- package/dist/components/core/Layout.js +0 -214
- package/dist/components/core/Layout.js.map +0 -1
- package/dist/components/core/ToolbarAccount.d.ts +0 -2
- package/dist/components/core/ToolbarAccount.js +0 -582
- package/dist/components/core/ToolbarAccount.js.map +0 -1
- package/dist/components/core/TypographyWithIcon.d.ts +0 -7
- package/dist/components/core/TypographyWithIcon.js +0 -117
- package/dist/components/core/TypographyWithIcon.js.map +0 -1
- package/dist/components/core/navigation/NavigationList.d.ts +0 -22
- package/dist/components/core/navigation/NavigationList.js +0 -166
- package/dist/components/core/navigation/NavigationList.js.map +0 -1
- package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
- package/dist/components/core/navigation/NavigationListItem.js +0 -467
- package/dist/components/core/navigation/NavigationListItem.js.map +0 -1
- package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
- package/dist/components/core/navigation/NavigationRail.js +0 -141
- package/dist/components/core/navigation/NavigationRail.js.map +0 -1
- package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
- package/dist/components/data-grid/ChipInputCell.js +0 -95
- package/dist/components/data-grid/ChipInputCell.js.map +0 -1
- package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
- package/dist/components/data-grid/EditableColumnHeader.js +0 -30
- package/dist/components/data-grid/EditableColumnHeader.js.map +0 -1
- package/dist/components/file/Dropzone.d.ts +0 -8
- package/dist/components/file/Dropzone.js +0 -151
- package/dist/components/file/Dropzone.js.map +0 -1
- package/dist/components/file/FileViewer.d.ts +0 -20
- package/dist/components/file/FileViewer.js +0 -127
- package/dist/components/file/FileViewer.js.map +0 -1
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
- package/dist/components/file/fileViewer/FileViewerGrid.js +0 -282
- package/dist/components/file/fileViewer/FileViewerGrid.js.map +0 -1
- package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
- package/dist/components/file/fileViewer/FileViewerList.js +0 -191
- package/dist/components/file/fileViewer/FileViewerList.js.map +0 -1
- package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
- package/dist/components/file/fileViewer/ImageViewer.js +0 -75
- package/dist/components/file/fileViewer/ImageViewer.js.map +0 -1
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
- package/dist/components/file/fileViewer/common/ActionsMenu.js +0 -159
- package/dist/components/file/fileViewer/common/ActionsMenu.js.map +0 -1
- package/dist/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/components/form/FormAutocomplete.js +0 -80
- package/dist/components/form/FormAutocomplete.js.map +0 -1
- package/dist/components/form/FormCheckbox.d.ts +0 -7
- package/dist/components/form/FormCheckbox.js +0 -81
- package/dist/components/form/FormCheckbox.js.map +0 -1
- package/dist/components/form/FormDatePicker.d.ts +0 -8
- package/dist/components/form/FormDatePicker.js +0 -77
- package/dist/components/form/FormDatePicker.js.map +0 -1
- package/dist/components/form/FormDateRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateRangePicker.js +0 -77
- package/dist/components/form/FormDateRangePicker.js.map +0 -1
- package/dist/components/form/FormDateTimePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimePicker.js +0 -77
- package/dist/components/form/FormDateTimePicker.js.map +0 -1
- package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimeRangePicker.js +0 -77
- package/dist/components/form/FormDateTimeRangePicker.js.map +0 -1
- package/dist/components/form/FormNumberField.d.ts +0 -9
- package/dist/components/form/FormNumberField.js +0 -73
- package/dist/components/form/FormNumberField.js.map +0 -1
- package/dist/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/components/form/FormRadioGroup.js +0 -113
- package/dist/components/form/FormRadioGroup.js.map +0 -1
- package/dist/components/form/FormSlider.d.ts +0 -7
- package/dist/components/form/FormSlider.js +0 -94
- package/dist/components/form/FormSlider.js.map +0 -1
- package/dist/components/form/FormSubmitButton.d.ts +0 -4
- package/dist/components/form/FormSubmitButton.js +0 -50
- package/dist/components/form/FormSubmitButton.js.map +0 -1
- package/dist/components/form/FormSwitch.d.ts +0 -7
- package/dist/components/form/FormSwitch.js +0 -81
- package/dist/components/form/FormSwitch.js.map +0 -1
- package/dist/components/form/FormTextField.d.ts +0 -7
- package/dist/components/form/FormTextField.js +0 -52
- package/dist/components/form/FormTextField.js.map +0 -1
- package/dist/components/form/FormTimePicker.d.ts +0 -8
- package/dist/components/form/FormTimePicker.js +0 -77
- package/dist/components/form/FormTimePicker.js.map +0 -1
- package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormTimeRangePicker.js +0 -77
- package/dist/components/form/FormTimeRangePicker.js.map +0 -1
- package/dist/components/router/RouterButton.d.ts +0 -6
- package/dist/components/router/RouterButton.js +0 -35
- package/dist/components/router/RouterButton.js.map +0 -1
- package/dist/components/router/RouterError.d.ts +0 -7
- package/dist/components/router/RouterError.js +0 -62
- package/dist/components/router/RouterError.js.map +0 -1
- package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
- package/dist/components/router/RouterGridActionsCellItem.js +0 -35
- package/dist/components/router/RouterGridActionsCellItem.js.map +0 -1
- package/dist/components/router/RouterIconButton.d.ts +0 -6
- package/dist/components/router/RouterIconButton.js +0 -35
- package/dist/components/router/RouterIconButton.js.map +0 -1
- package/dist/components/router/RouterLink.d.ts +0 -6
- package/dist/components/router/RouterLink.js +0 -35
- package/dist/components/router/RouterLink.js.map +0 -1
- package/dist/components/router/RouterListItemButton.d.ts +0 -6
- package/dist/components/router/RouterListItemButton.js.map +0 -1
- package/dist/components/router/RouterNotFound.d.ts +0 -1
- package/dist/components/router/RouterNotFound.js +0 -53
- package/dist/components/router/RouterNotFound.js.map +0 -1
- package/dist/components/router/RouterTab.d.ts +0 -6
- package/dist/components/router/RouterTab.js +0 -35
- package/dist/components/router/RouterTab.js.map +0 -1
- package/dist/contexts/DialogsContext.d.ts +0 -6
- package/dist/contexts/DialogsContext.js +0 -6
- package/dist/contexts/DialogsContext.js.map +0 -1
- package/dist/contexts/FileContext.d.ts +0 -13
- package/dist/contexts/FileContext.js +0 -14
- package/dist/contexts/FileContext.js.map +0 -1
- package/dist/env.d.ts +0 -13
- package/dist/env.js.map +0 -1
- package/dist/hooks/DialogsHooks.d.ts +0 -42
- package/dist/hooks/DialogsHooks.js.map +0 -1
- package/dist/hooks/FormHooks.d.ts +0 -52
- package/dist/hooks/FormHooks.js +0 -55
- package/dist/hooks/FormHooks.js.map +0 -1
- package/dist/lib/auth/api.d.ts +0 -3
- package/dist/lib/auth/api.js +0 -97
- package/dist/lib/auth/api.js.map +0 -1
- package/dist/lib/auth/entra.d.ts +0 -2
- package/dist/lib/auth/entra.js +0 -13
- package/dist/lib/auth/entra.js.map +0 -1
- package/dist/lib/auth/graph.d.ts +0 -17
- package/dist/lib/auth/graph.js +0 -72
- package/dist/lib/auth/graph.js.map +0 -1
- package/dist/lib/auth/session.d.ts +0 -24
- package/dist/lib/auth/session.js.map +0 -1
- package/dist/lib/queryClient.d.ts +0 -2
- package/dist/lib/queryClient.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -52
- package/dist/lib/utils.js.map +0 -1
- package/dist/lib/vite-plugin.d.ts +0 -2
- package/dist/lib/vite-plugin.js +0 -65
- package/dist/lib/vite-plugin.js.map +0 -1
- package/dist/middleware/auth.d.ts +0 -22
- package/dist/models/Navigation.d.ts +0 -18
- package/dist/models/User.d.ts +0 -16
- package/dist/models/User.js +0 -18
- package/dist/models/User.js.map +0 -1
- package/dist/models/approval/Approval.d.ts +0 -177
- package/dist/models/approval/Approval.js +0 -81
- package/dist/models/approval/Approval.js.map +0 -1
- package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
- package/dist/models/approval/ApprovalEmployee.js +0 -10
- package/dist/models/approval/ApprovalEmployee.js.map +0 -1
- package/dist/models/approval/ApprovalFlow.d.ts +0 -49
- package/dist/models/approval/ApprovalFlow.js +0 -15
- package/dist/models/approval/ApprovalFlow.js.map +0 -1
- package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
- package/dist/models/approval/ApprovalFlowStep.js +0 -17
- package/dist/models/approval/ApprovalFlowStep.js.map +0 -1
- package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
- package/dist/models/approval/ApprovalRequestType.js +0 -6
- package/dist/models/approval/ApprovalRequestType.js.map +0 -1
- package/dist/models/approval/ApprovalStatus.d.ts +0 -9
- package/dist/models/approval/ApprovalStatus.js +0 -6
- package/dist/models/approval/ApprovalStatus.js.map +0 -1
- package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
- package/dist/models/approval/ApprovalStepResult.js +0 -6
- package/dist/models/approval/ApprovalStepResult.js.map +0 -1
- package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
- package/dist/models/approval/StepApprovalOrder.js +0 -6
- package/dist/models/approval/StepApprovalOrder.js.map +0 -1
- package/dist/models/email/Email.d.ts +0 -13
- package/dist/models/email/Email.js +0 -14
- package/dist/models/email/Email.js.map +0 -1
- package/dist/models/email/EmailAttachment.d.ts +0 -6
- package/dist/models/email/EmailAttachment.js +0 -9
- package/dist/models/email/EmailAttachment.js.map +0 -1
- package/dist/models/file/FileActions.d.ts +0 -6
- package/dist/models/file/FileMeta.d.ts +0 -15
- package/dist/models/file/FileMeta.js.map +0 -1
- package/dist/models/peoplesoft/Department.d.ts +0 -58
- package/dist/models/peoplesoft/Department.js +0 -19
- package/dist/models/peoplesoft/Department.js.map +0 -1
- package/dist/models/peoplesoft/Employee.d.ts +0 -46
- package/dist/models/peoplesoft/Employee.js +0 -43
- package/dist/models/peoplesoft/Employee.js.map +0 -1
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js +0 -6
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js.map +0 -1
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.js +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.js.map +0 -1
- package/dist/node_modules/@oslojs/binary/dist/bits.js +0 -7
- package/dist/node_modules/@oslojs/binary/dist/bits.js.map +0 -1
- package/dist/node_modules/@oslojs/binary/dist/uint.js +0 -80
- package/dist/node_modules/@oslojs/binary/dist/uint.js.map +0 -1
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js +0 -182
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js.map +0 -1
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js +0 -83
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js.map +0 -1
- package/dist/node_modules/@oslojs/encoding/dist/base32.js +0 -11
- package/dist/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
- package/dist/node_modules/@oslojs/encoding/dist/base64.js +0 -46
- package/dist/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/dist/index.js +0 -28
- package/dist/node_modules/@oslojs/jwt/dist/index.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js +0 -11
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js +0 -126
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
- package/dist/node_modules/arctic/dist/client.js +0 -12
- package/dist/node_modules/arctic/dist/client.js.map +0 -1
- package/dist/node_modules/arctic/dist/oauth2.js +0 -76
- package/dist/node_modules/arctic/dist/oauth2.js.map +0 -1
- package/dist/node_modules/arctic/dist/oidc.js +0 -14
- package/dist/node_modules/arctic/dist/oidc.js.map +0 -1
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js +0 -73
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js.map +0 -1
- package/dist/node_modules/arctic/dist/request.js +0 -149
- package/dist/node_modules/arctic/dist/request.js.map +0 -1
- package/dist/node_modules/arctic/dist/utils.js +0 -25
- package/dist/node_modules/arctic/dist/utils.js.map +0 -1
- package/dist/node_modules/base64-js/index.js +0 -103
- package/dist/node_modules/base64-js/index.js.map +0 -1
- package/dist/node_modules/buffer/index.js +0 -1598
- package/dist/node_modules/buffer/index.js.map +0 -1
- package/dist/node_modules/buffer-equal-constant-time/index.js +0 -39
- package/dist/node_modules/buffer-equal-constant-time/index.js.map +0 -1
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +0 -140
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js.map +0 -1
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +0 -28
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js.map +0 -1
- package/dist/node_modules/ieee754/index.js +0 -88
- package/dist/node_modules/ieee754/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/decode.js +0 -38
- package/dist/node_modules/jsonwebtoken/decode.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/index.js +0 -25
- package/dist/node_modules/jsonwebtoken/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +0 -23
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js +0 -21
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js +0 -21
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/timespan.js +0 -27
- package/dist/node_modules/jsonwebtoken/lib/timespan.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +0 -60
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js +0 -123
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js +0 -388
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js +0 -288
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js +0 -60
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js +0 -53
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js +0 -19
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js +0 -49
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js +0 -29
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js +0 -27
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js +0 -22
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js +0 -140
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js +0 -36
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js +0 -14
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js +0 -29
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js +0 -42
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js +0 -23
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js +0 -96
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js +0 -19
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js +0 -35
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js +0 -35
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js +0 -66
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js +0 -81
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js +0 -56
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js +0 -170
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js +0 -21
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/sign.js +0 -242
- package/dist/node_modules/jsonwebtoken/sign.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/verify.js +0 -229
- package/dist/node_modules/jsonwebtoken/verify.js.map +0 -1
- package/dist/node_modules/jwa/index.js +0 -233
- package/dist/node_modules/jwa/index.js.map +0 -1
- package/dist/node_modules/jws/index.js +0 -40
- package/dist/node_modules/jws/index.js.map +0 -1
- package/dist/node_modules/jws/lib/data-stream.js +0 -55
- package/dist/node_modules/jws/lib/data-stream.js.map +0 -1
- package/dist/node_modules/jws/lib/sign-stream.js +0 -85
- package/dist/node_modules/jws/lib/sign-stream.js.map +0 -1
- package/dist/node_modules/jws/lib/tostring.js +0 -20
- package/dist/node_modules/jws/lib/tostring.js.map +0 -1
- package/dist/node_modules/jws/lib/verify-stream.js +0 -125
- package/dist/node_modules/jws/lib/verify-stream.js.map +0 -1
- package/dist/node_modules/lodash.includes/index.js +0 -181
- package/dist/node_modules/lodash.includes/index.js.map +0 -1
- package/dist/node_modules/lodash.isboolean/index.js +0 -21
- package/dist/node_modules/lodash.isboolean/index.js.map +0 -1
- package/dist/node_modules/lodash.isinteger/index.js +0 -67
- package/dist/node_modules/lodash.isinteger/index.js.map +0 -1
- package/dist/node_modules/lodash.isnumber/index.js +0 -21
- package/dist/node_modules/lodash.isnumber/index.js.map +0 -1
- package/dist/node_modules/lodash.isplainobject/index.js +0 -48
- package/dist/node_modules/lodash.isplainobject/index.js.map +0 -1
- package/dist/node_modules/lodash.isstring/index.js +0 -22
- package/dist/node_modules/lodash.isstring/index.js.map +0 -1
- package/dist/node_modules/lodash.once/index.js +0 -84
- package/dist/node_modules/lodash.once/index.js.map +0 -1
- package/dist/node_modules/ms/index.js +0 -121
- package/dist/node_modules/ms/index.js.map +0 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -22
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -33
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
- package/dist/node_modules/react/compiler-runtime.js +0 -18
- package/dist/node_modules/react/compiler-runtime.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -18
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/node_modules/safe-buffer/index.js +0 -66
- package/dist/node_modules/safe-buffer/index.js.map +0 -1
- package/dist/providers/DialogsProvider.d.ts +0 -5
- package/dist/providers/DialogsProvider.js +0 -79
- package/dist/providers/DialogsProvider.js.map +0 -1
- package/dist/providers/LayoutProvider.d.ts +0 -11
- package/dist/providers/LayoutProvider.js +0 -94
- package/dist/providers/LayoutProvider.js.map +0 -1
- package/dist/queries/ApprovalHooks.d.ts +0 -338
- package/dist/queries/ApprovalHooks.js +0 -326
- package/dist/queries/ApprovalHooks.js.map +0 -1
- package/dist/queries/FileHooks.d.ts +0 -151
- package/dist/queries/FileHooks.js +0 -493
- package/dist/queries/FileHooks.js.map +0 -1
- package/dist/queries/PeopleSoftHooks.d.ts +0 -537
- package/dist/queries/PeopleSoftHooks.js +0 -628
- package/dist/queries/PeopleSoftHooks.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,1758 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { j as jsxRuntimeExports, D as DialogsContext } from "./DialogsContext-BKtkEAfL.js";
|
|
2
|
+
import { c as compilerRuntimeExports } from "./compiler-runtime-BGHur82y.js";
|
|
3
|
+
import { Stack, Typography, Collapse, useMediaQuery, useColorScheme, ListItemButton as ListItemButton$1, ListItemText as ListItemText$1, ListItemIcon as ListItemIcon$1, ListItem as ListItem$1, Avatar as Avatar$1, ListSubheader as ListSubheader$1, List as List$1, IconButton, Box as Box$1, Menu, InitColorSchemeScript, CssBaseline, AppBar, Toolbar, LinearProgress, ThemeProvider } from "@mui/material";
|
|
4
|
+
import { LocalizationProvider } from "@mui/x-date-pickers";
|
|
5
|
+
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
|
6
|
+
import { createServerFn, createIsomorphicFn } from "@tanstack/react-start";
|
|
7
|
+
import { getCookie } from "@tanstack/react-start/server";
|
|
8
|
+
import dayjs from "dayjs";
|
|
9
|
+
import i18n from "i18next";
|
|
10
|
+
import LanguageDetector from "i18next-browser-languagedetector";
|
|
11
|
+
import { useState, useId, useRef, Fragment, useEffect, Suspense, useEffectEvent } from "react";
|
|
12
|
+
import { useTranslation, initReactI18next } from "react-i18next";
|
|
13
|
+
import { resources } from "virtual:wcz-layout";
|
|
14
|
+
import z__default from "zod";
|
|
15
|
+
import useEventCallback from "@mui/utils/useEventCallback";
|
|
16
|
+
import Menu$1 from "@mui/icons-material/Menu";
|
|
17
|
+
import MenuOpen from "@mui/icons-material/MenuOpen";
|
|
18
|
+
import { styled, useTheme } from "@mui/material/styles";
|
|
19
|
+
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
|
20
|
+
import { c as clientEnv } from "./env-gsqZ6zZD.js";
|
|
21
|
+
import Box from "@mui/material/Box";
|
|
22
|
+
import Drawer from "@mui/material/Drawer";
|
|
23
|
+
import { useNavigate, useRouterState, Await } from "@tanstack/react-router";
|
|
24
|
+
import Divider from "@mui/material/Divider";
|
|
25
|
+
import List from "@mui/material/List";
|
|
26
|
+
import ListSubheader from "@mui/material/ListSubheader";
|
|
27
|
+
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
28
|
+
import Avatar from "@mui/material/Avatar";
|
|
29
|
+
import ListItem from "@mui/material/ListItem";
|
|
30
|
+
import ListItemButton from "@mui/material/ListItemButton";
|
|
31
|
+
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
32
|
+
import ListItemText from "@mui/material/ListItemText";
|
|
33
|
+
import Paper from "@mui/material/Paper";
|
|
34
|
+
import Popper from "@mui/material/Popper";
|
|
35
|
+
import Typography$1 from "@mui/material/Typography";
|
|
36
|
+
import { R as RouterListItemButton } from "./RouterListItemButton-IUVgwnz3.js";
|
|
37
|
+
import AccountCircle from "@mui/icons-material/AccountCircle";
|
|
38
|
+
import ArrowBack from "@mui/icons-material/ArrowBack";
|
|
39
|
+
import Brightness4 from "@mui/icons-material/Brightness4";
|
|
40
|
+
import ChevronRight from "@mui/icons-material/ChevronRight";
|
|
41
|
+
import DarkMode from "@mui/icons-material/DarkMode";
|
|
42
|
+
import Done from "@mui/icons-material/Done";
|
|
43
|
+
import LightMode from "@mui/icons-material/LightMode";
|
|
44
|
+
import Logout from "@mui/icons-material/Logout";
|
|
45
|
+
import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
|
|
46
|
+
import Translate from "@mui/icons-material/Translate";
|
|
47
|
+
import axios from "axios";
|
|
48
|
+
import { q as queryClient } from "./queryClient-CNvC95mU.js";
|
|
49
|
+
import { r as requireSession, g as getAccessToken } from "./session-vW7WZadj.js";
|
|
50
|
+
import { r } from "./utils-MD9YwOtu.js";
|
|
51
|
+
function DialogsProvider({
|
|
52
|
+
children
|
|
53
|
+
}) {
|
|
54
|
+
const [stack, setStack] = useState([]);
|
|
55
|
+
const keyPrefix = useId();
|
|
56
|
+
const nextId = useRef(0);
|
|
57
|
+
const dialogMetadata = useRef(/* @__PURE__ */ new WeakMap());
|
|
58
|
+
const requestDialog = useEventCallback(function open(Component, payload, options = {}) {
|
|
59
|
+
const {
|
|
60
|
+
onClose = async () => {
|
|
61
|
+
}
|
|
62
|
+
} = options;
|
|
63
|
+
let resolve;
|
|
64
|
+
const promise = new Promise((resolveImpl) => {
|
|
65
|
+
resolve = resolveImpl;
|
|
66
|
+
});
|
|
67
|
+
const key = `${keyPrefix}-${nextId.current}`;
|
|
68
|
+
nextId.current += 1;
|
|
69
|
+
const newEntry = {
|
|
70
|
+
key,
|
|
71
|
+
open: true,
|
|
72
|
+
promise,
|
|
73
|
+
Component,
|
|
74
|
+
payload,
|
|
75
|
+
onClose,
|
|
76
|
+
resolve
|
|
77
|
+
};
|
|
78
|
+
dialogMetadata.current.set(promise, newEntry);
|
|
79
|
+
setStack((previousStack) => [...previousStack, newEntry]);
|
|
80
|
+
return promise;
|
|
81
|
+
});
|
|
82
|
+
const removeDialogFromStack = (dialog) => {
|
|
83
|
+
setStack((previousStack_0) => previousStack_0.filter((entry) => entry.promise !== dialog));
|
|
84
|
+
dialogMetadata.current.delete(dialog);
|
|
85
|
+
};
|
|
86
|
+
const closeDialogUi = useEventCallback(function closeDialogUi2(dialog_0) {
|
|
87
|
+
setStack((previousStack_1) => previousStack_1.map((entry_0) => entry_0.promise === dialog_0 ? {
|
|
88
|
+
...entry_0,
|
|
89
|
+
open: false
|
|
90
|
+
} : entry_0));
|
|
91
|
+
setTimeout(() => removeDialogFromStack(dialog_0), 1e3);
|
|
92
|
+
});
|
|
93
|
+
const closeDialog = useEventCallback(async function closeDialog2(dialog_1, result) {
|
|
94
|
+
const entryToClose = dialogMetadata.current.get(dialog_1);
|
|
95
|
+
if (!entryToClose) {
|
|
96
|
+
throw new Error("Dialog not found in stack");
|
|
97
|
+
}
|
|
98
|
+
try {
|
|
99
|
+
await entryToClose.onClose(result);
|
|
100
|
+
} finally {
|
|
101
|
+
entryToClose.resolve(result);
|
|
102
|
+
closeDialogUi(dialog_1);
|
|
103
|
+
}
|
|
104
|
+
return dialog_1;
|
|
105
|
+
});
|
|
106
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogsContext.Provider, { value: {
|
|
107
|
+
open: requestDialog,
|
|
108
|
+
close: closeDialog
|
|
109
|
+
}, children: [
|
|
110
|
+
children,
|
|
111
|
+
stack.map(({
|
|
112
|
+
key: key_0,
|
|
113
|
+
open,
|
|
114
|
+
Component: Component_0,
|
|
115
|
+
payload: payload_0,
|
|
116
|
+
promise: promise_0
|
|
117
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component_0, { payload: payload_0, open, onClose: async (result_0) => {
|
|
118
|
+
await closeDialog(promise_0, result_0);
|
|
119
|
+
} }, key_0))
|
|
120
|
+
] });
|
|
121
|
+
}
|
|
122
|
+
const AppTitle = () => {
|
|
123
|
+
const $ = compilerRuntimeExports.c(1);
|
|
124
|
+
let t0;
|
|
125
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
126
|
+
t0 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
127
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
128
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
|
|
129
|
+
false
|
|
130
|
+
] });
|
|
131
|
+
$[0] = t0;
|
|
132
|
+
} else {
|
|
133
|
+
t0 = $[0];
|
|
134
|
+
}
|
|
135
|
+
return t0;
|
|
136
|
+
};
|
|
137
|
+
const ICON_SIZE = 34;
|
|
138
|
+
const StyledNavButton = styled(ListItemButton)(({
|
|
139
|
+
theme
|
|
140
|
+
}) => ({
|
|
141
|
+
borderRadius: 8,
|
|
142
|
+
"&.Mui-selected": {
|
|
143
|
+
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
144
|
+
color: (theme.vars ?? theme).palette.primary.dark
|
|
145
|
+
},
|
|
146
|
+
"& .MuiAvatar-root": {
|
|
147
|
+
backgroundColor: (theme.vars ?? theme).palette.primary.dark
|
|
148
|
+
},
|
|
149
|
+
"& .MuiTouchRipple-child": {
|
|
150
|
+
backgroundColor: (theme.vars ?? theme).palette.primary.dark
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"& .MuiSvgIcon-root": {
|
|
154
|
+
color: (theme.vars ?? theme).palette.action.active
|
|
155
|
+
},
|
|
156
|
+
"& .MuiAvatar-root": {
|
|
157
|
+
backgroundColor: (theme.vars ?? theme).palette.action.active
|
|
158
|
+
}
|
|
159
|
+
}));
|
|
160
|
+
const StyledRouterButton = styled(RouterListItemButton)(({
|
|
161
|
+
theme
|
|
162
|
+
}) => ({
|
|
163
|
+
borderRadius: 8,
|
|
164
|
+
"&.Mui-selected": {
|
|
165
|
+
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
166
|
+
color: (theme.vars ?? theme).palette.primary.dark
|
|
167
|
+
},
|
|
168
|
+
"& .MuiAvatar-root": {
|
|
169
|
+
backgroundColor: (theme.vars ?? theme).palette.primary.dark
|
|
170
|
+
},
|
|
171
|
+
"& .MuiTouchRipple-child": {
|
|
172
|
+
backgroundColor: (theme.vars ?? theme).palette.primary.dark
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"& .MuiSvgIcon-root": {
|
|
176
|
+
color: (theme.vars ?? theme).palette.action.active
|
|
177
|
+
},
|
|
178
|
+
"& .MuiAvatar-root": {
|
|
179
|
+
backgroundColor: (theme.vars ?? theme).palette.action.active
|
|
180
|
+
}
|
|
181
|
+
}));
|
|
182
|
+
const IconOrAvatar = (t0) => {
|
|
183
|
+
const $ = compilerRuntimeExports.c(17);
|
|
184
|
+
const {
|
|
185
|
+
item,
|
|
186
|
+
collapsed
|
|
187
|
+
} = t0;
|
|
188
|
+
if (item.icon || collapsed) {
|
|
189
|
+
let t1;
|
|
190
|
+
if ($[0] !== collapsed) {
|
|
191
|
+
t1 = collapsed ? {
|
|
192
|
+
position: "absolute",
|
|
193
|
+
left: "50%",
|
|
194
|
+
top: "calc(50% - 6px)",
|
|
195
|
+
transform: "translate(-50%, -50%)"
|
|
196
|
+
} : {};
|
|
197
|
+
$[0] = collapsed;
|
|
198
|
+
$[1] = t1;
|
|
199
|
+
} else {
|
|
200
|
+
t1 = $[1];
|
|
201
|
+
}
|
|
202
|
+
let t2;
|
|
203
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
204
|
+
t2 = {
|
|
205
|
+
display: "flex",
|
|
206
|
+
alignItems: "center",
|
|
207
|
+
justifyContent: "center",
|
|
208
|
+
minWidth: ICON_SIZE
|
|
209
|
+
};
|
|
210
|
+
$[2] = t2;
|
|
211
|
+
} else {
|
|
212
|
+
t2 = $[2];
|
|
213
|
+
}
|
|
214
|
+
const t3 = item.icon ?? null;
|
|
215
|
+
let t4;
|
|
216
|
+
if ($[3] !== collapsed || $[4] !== item.icon || $[5] !== item.title) {
|
|
217
|
+
t4 = !item.icon && collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { sx: {
|
|
218
|
+
width: ICON_SIZE - 7,
|
|
219
|
+
height: ICON_SIZE - 7,
|
|
220
|
+
fontSize: 12
|
|
221
|
+
}, children: item.title }) : null;
|
|
222
|
+
$[3] = collapsed;
|
|
223
|
+
$[4] = item.icon;
|
|
224
|
+
$[5] = item.title;
|
|
225
|
+
$[6] = t4;
|
|
226
|
+
} else {
|
|
227
|
+
t4 = $[6];
|
|
228
|
+
}
|
|
229
|
+
let t5;
|
|
230
|
+
if ($[7] !== t3 || $[8] !== t4) {
|
|
231
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemIcon, { sx: t2, children: [
|
|
232
|
+
t3,
|
|
233
|
+
t4
|
|
234
|
+
] });
|
|
235
|
+
$[7] = t3;
|
|
236
|
+
$[8] = t4;
|
|
237
|
+
$[9] = t5;
|
|
238
|
+
} else {
|
|
239
|
+
t5 = $[9];
|
|
240
|
+
}
|
|
241
|
+
let t6;
|
|
242
|
+
if ($[10] !== collapsed || $[11] !== item.title) {
|
|
243
|
+
t6 = collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography$1, { variant: "caption", sx: {
|
|
244
|
+
position: "absolute",
|
|
245
|
+
bottom: -18,
|
|
246
|
+
left: "50%",
|
|
247
|
+
transform: "translateX(-50%)",
|
|
248
|
+
fontSize: 10,
|
|
249
|
+
fontWeight: 500,
|
|
250
|
+
textAlign: "center",
|
|
251
|
+
whiteSpace: "nowrap",
|
|
252
|
+
overflow: "hidden",
|
|
253
|
+
textOverflow: "ellipsis",
|
|
254
|
+
maxWidth: MINI_WIDTH - 28
|
|
255
|
+
}, children: item.title }) : null;
|
|
256
|
+
$[10] = collapsed;
|
|
257
|
+
$[11] = item.title;
|
|
258
|
+
$[12] = t6;
|
|
259
|
+
} else {
|
|
260
|
+
t6 = $[12];
|
|
261
|
+
}
|
|
262
|
+
let t7;
|
|
263
|
+
if ($[13] !== t1 || $[14] !== t5 || $[15] !== t6) {
|
|
264
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: t1, children: [
|
|
265
|
+
t5,
|
|
266
|
+
t6
|
|
267
|
+
] });
|
|
268
|
+
$[13] = t1;
|
|
269
|
+
$[14] = t5;
|
|
270
|
+
$[15] = t6;
|
|
271
|
+
$[16] = t7;
|
|
272
|
+
} else {
|
|
273
|
+
t7 = $[16];
|
|
274
|
+
}
|
|
275
|
+
return t7;
|
|
276
|
+
}
|
|
277
|
+
return null;
|
|
278
|
+
};
|
|
279
|
+
const MiniPopover = (t0) => {
|
|
280
|
+
const $ = compilerRuntimeExports.c(10);
|
|
281
|
+
const {
|
|
282
|
+
open,
|
|
283
|
+
anchorEl,
|
|
284
|
+
children
|
|
285
|
+
} = t0;
|
|
286
|
+
let t1;
|
|
287
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
288
|
+
t1 = {
|
|
289
|
+
name: "offset",
|
|
290
|
+
options: {
|
|
291
|
+
offset: [6, 0]
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
$[0] = t1;
|
|
295
|
+
} else {
|
|
296
|
+
t1 = $[0];
|
|
297
|
+
}
|
|
298
|
+
let t2;
|
|
299
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
300
|
+
t2 = {
|
|
301
|
+
name: "preventOverflow",
|
|
302
|
+
options: {
|
|
303
|
+
padding: 8
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
$[1] = t2;
|
|
307
|
+
} else {
|
|
308
|
+
t2 = $[1];
|
|
309
|
+
}
|
|
310
|
+
let t3;
|
|
311
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
312
|
+
t3 = [t1, t2, {
|
|
313
|
+
name: "flip",
|
|
314
|
+
options: {
|
|
315
|
+
fallbackPlacements: ["right-end", "left-start"]
|
|
316
|
+
}
|
|
317
|
+
}];
|
|
318
|
+
$[2] = t3;
|
|
319
|
+
} else {
|
|
320
|
+
t3 = $[2];
|
|
321
|
+
}
|
|
322
|
+
let t4;
|
|
323
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
324
|
+
t4 = {
|
|
325
|
+
pt: 0.5,
|
|
326
|
+
pb: 0.5,
|
|
327
|
+
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
328
|
+
overflowY: "auto",
|
|
329
|
+
overscrollBehavior: "contain"
|
|
330
|
+
};
|
|
331
|
+
$[3] = t4;
|
|
332
|
+
} else {
|
|
333
|
+
t4 = $[3];
|
|
334
|
+
}
|
|
335
|
+
let t5;
|
|
336
|
+
if ($[4] !== children) {
|
|
337
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Paper, { sx: t4, children });
|
|
338
|
+
$[4] = children;
|
|
339
|
+
$[5] = t5;
|
|
340
|
+
} else {
|
|
341
|
+
t5 = $[5];
|
|
342
|
+
}
|
|
343
|
+
let t6;
|
|
344
|
+
if ($[6] !== anchorEl || $[7] !== open || $[8] !== t5) {
|
|
345
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(Popper, { open, anchorEl, placement: "right-start", modifiers: t3, children: t5 });
|
|
346
|
+
$[6] = anchorEl;
|
|
347
|
+
$[7] = open;
|
|
348
|
+
$[8] = t5;
|
|
349
|
+
$[9] = t6;
|
|
350
|
+
} else {
|
|
351
|
+
t6 = $[9];
|
|
352
|
+
}
|
|
353
|
+
return t6;
|
|
354
|
+
};
|
|
355
|
+
const NavigationListItem = (t0) => {
|
|
356
|
+
const $ = compilerRuntimeExports.c(57);
|
|
357
|
+
const {
|
|
358
|
+
item,
|
|
359
|
+
isOpen,
|
|
360
|
+
selected,
|
|
361
|
+
disabled,
|
|
362
|
+
collapsed,
|
|
363
|
+
isSidebarFullyExpanded: t1,
|
|
364
|
+
isSidebarFullyCollapsed,
|
|
365
|
+
onClick,
|
|
366
|
+
renderNested,
|
|
367
|
+
onClose
|
|
368
|
+
} = t0;
|
|
369
|
+
const isSidebarFullyExpanded = t1 === void 0 ? true : t1;
|
|
370
|
+
const [hoveredPopoverItem, setHoveredPopoverItem] = useState(null);
|
|
371
|
+
const [anchorElement, setAnchorElement] = useState(null);
|
|
372
|
+
let t2;
|
|
373
|
+
if ($[0] !== collapsed || $[1] !== isOpen || $[2] !== isSidebarFullyCollapsed || $[3] !== isSidebarFullyExpanded || $[4] !== item.children) {
|
|
374
|
+
t2 = () => {
|
|
375
|
+
if (collapsed && isSidebarFullyCollapsed && item.children) {
|
|
376
|
+
return {
|
|
377
|
+
fontSize: 18,
|
|
378
|
+
position: "absolute",
|
|
379
|
+
top: "41.5%",
|
|
380
|
+
right: "2px",
|
|
381
|
+
transform: "translateY(-50%) rotate(-90deg)"
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
if (!collapsed && isSidebarFullyExpanded && item.children) {
|
|
385
|
+
return {
|
|
386
|
+
ml: 0.5,
|
|
387
|
+
transform: `rotate(${isOpen ? 0 : -90}deg)`
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
return {
|
|
391
|
+
display: "none"
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
$[0] = collapsed;
|
|
395
|
+
$[1] = isOpen;
|
|
396
|
+
$[2] = isSidebarFullyCollapsed;
|
|
397
|
+
$[3] = isSidebarFullyExpanded;
|
|
398
|
+
$[4] = item.children;
|
|
399
|
+
$[5] = t2;
|
|
400
|
+
} else {
|
|
401
|
+
t2 = $[5];
|
|
402
|
+
}
|
|
403
|
+
const chevronSx = t2;
|
|
404
|
+
const shouldJustExpand = item.children && !collapsed;
|
|
405
|
+
const t3 = collapsed ? 60 : 48;
|
|
406
|
+
let t4;
|
|
407
|
+
if ($[6] !== t3) {
|
|
408
|
+
t4 = {
|
|
409
|
+
px: 1.4,
|
|
410
|
+
height: t3
|
|
411
|
+
};
|
|
412
|
+
$[6] = t3;
|
|
413
|
+
$[7] = t4;
|
|
414
|
+
} else {
|
|
415
|
+
t4 = $[7];
|
|
416
|
+
}
|
|
417
|
+
let t5;
|
|
418
|
+
if ($[8] !== disabled || $[9] !== selected || $[10] !== t4) {
|
|
419
|
+
t5 = {
|
|
420
|
+
selected,
|
|
421
|
+
disabled,
|
|
422
|
+
sx: t4
|
|
423
|
+
};
|
|
424
|
+
$[8] = disabled;
|
|
425
|
+
$[9] = selected;
|
|
426
|
+
$[10] = t4;
|
|
427
|
+
$[11] = t5;
|
|
428
|
+
} else {
|
|
429
|
+
t5 = $[11];
|
|
430
|
+
}
|
|
431
|
+
const buttonProps = t5;
|
|
432
|
+
let t6;
|
|
433
|
+
if ($[12] !== collapsed || $[13] !== item) {
|
|
434
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconOrAvatar, { item, collapsed });
|
|
435
|
+
$[12] = collapsed;
|
|
436
|
+
$[13] = item;
|
|
437
|
+
$[14] = t6;
|
|
438
|
+
} else {
|
|
439
|
+
t6 = $[14];
|
|
440
|
+
}
|
|
441
|
+
let t7;
|
|
442
|
+
if ($[15] !== collapsed || $[16] !== item.title) {
|
|
443
|
+
t7 = !collapsed && /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: item.title, slotProps: {
|
|
444
|
+
primary: {
|
|
445
|
+
noWrap: true,
|
|
446
|
+
title: item.title
|
|
447
|
+
}
|
|
448
|
+
}, sx: {
|
|
449
|
+
ml: 1.2,
|
|
450
|
+
flex: 1,
|
|
451
|
+
minWidth: 0,
|
|
452
|
+
"& .MuiTypography-root": {
|
|
453
|
+
whiteSpace: "nowrap",
|
|
454
|
+
overflow: "hidden",
|
|
455
|
+
textOverflow: "ellipsis"
|
|
456
|
+
}
|
|
457
|
+
} });
|
|
458
|
+
$[15] = collapsed;
|
|
459
|
+
$[16] = item.title;
|
|
460
|
+
$[17] = t7;
|
|
461
|
+
} else {
|
|
462
|
+
t7 = $[17];
|
|
463
|
+
}
|
|
464
|
+
let t8;
|
|
465
|
+
if ($[18] !== chevronSx || $[19] !== item.children) {
|
|
466
|
+
t8 = item.children ? /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandMoreIcon, { sx: chevronSx }) : null;
|
|
467
|
+
$[18] = chevronSx;
|
|
468
|
+
$[19] = item.children;
|
|
469
|
+
$[20] = t8;
|
|
470
|
+
} else {
|
|
471
|
+
t8 = $[20];
|
|
472
|
+
}
|
|
473
|
+
let t9;
|
|
474
|
+
if ($[21] !== t6 || $[22] !== t7 || $[23] !== t8) {
|
|
475
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
476
|
+
t6,
|
|
477
|
+
t7,
|
|
478
|
+
t8
|
|
479
|
+
] });
|
|
480
|
+
$[21] = t6;
|
|
481
|
+
$[22] = t7;
|
|
482
|
+
$[23] = t8;
|
|
483
|
+
$[24] = t9;
|
|
484
|
+
} else {
|
|
485
|
+
t9 = $[24];
|
|
486
|
+
}
|
|
487
|
+
const buttonContent = t9;
|
|
488
|
+
let t10;
|
|
489
|
+
if ($[25] !== collapsed || $[26] !== item.children || $[27] !== item.title) {
|
|
490
|
+
t10 = item.children && collapsed ? {
|
|
491
|
+
onMouseEnter: (event) => {
|
|
492
|
+
setAnchorElement(event.currentTarget);
|
|
493
|
+
setHoveredPopoverItem(item.title);
|
|
494
|
+
},
|
|
495
|
+
onMouseLeave: () => {
|
|
496
|
+
setHoveredPopoverItem(null);
|
|
497
|
+
}
|
|
498
|
+
} : {};
|
|
499
|
+
$[25] = collapsed;
|
|
500
|
+
$[26] = item.children;
|
|
501
|
+
$[27] = item.title;
|
|
502
|
+
$[28] = t10;
|
|
503
|
+
} else {
|
|
504
|
+
t10 = $[28];
|
|
505
|
+
}
|
|
506
|
+
let t11;
|
|
507
|
+
if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
508
|
+
t11 = {
|
|
509
|
+
py: 0,
|
|
510
|
+
px: 1,
|
|
511
|
+
overflowX: "hidden"
|
|
512
|
+
};
|
|
513
|
+
$[29] = t11;
|
|
514
|
+
} else {
|
|
515
|
+
t11 = $[29];
|
|
516
|
+
}
|
|
517
|
+
let t12;
|
|
518
|
+
if ($[30] !== buttonContent || $[31] !== buttonProps || $[32] !== item || $[33] !== onClick || $[34] !== onClose || $[35] !== shouldJustExpand) {
|
|
519
|
+
t12 = shouldJustExpand ? /* @__PURE__ */ jsxRuntimeExports.jsx(StyledNavButton, { ...buttonProps, onClick: () => onClick?.(item), children: buttonContent }) : /* @__PURE__ */ jsxRuntimeExports.jsx(StyledRouterButton, { ...buttonProps, to: item.to, href: item.href, params: item.params, search: item.search, onClick: onClose, children: buttonContent });
|
|
520
|
+
$[30] = buttonContent;
|
|
521
|
+
$[31] = buttonProps;
|
|
522
|
+
$[32] = item;
|
|
523
|
+
$[33] = onClick;
|
|
524
|
+
$[34] = onClose;
|
|
525
|
+
$[35] = shouldJustExpand;
|
|
526
|
+
$[36] = t12;
|
|
527
|
+
} else {
|
|
528
|
+
t12 = $[36];
|
|
529
|
+
}
|
|
530
|
+
let t13;
|
|
531
|
+
if ($[37] !== anchorElement || $[38] !== collapsed || $[39] !== hoveredPopoverItem || $[40] !== item.children || $[41] !== item.title || $[42] !== renderNested) {
|
|
532
|
+
t13 = item.children && collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(MiniPopover, { open: item.title === hoveredPopoverItem, anchorEl: anchorElement, children: renderNested?.(item.children) }) : null;
|
|
533
|
+
$[37] = anchorElement;
|
|
534
|
+
$[38] = collapsed;
|
|
535
|
+
$[39] = hoveredPopoverItem;
|
|
536
|
+
$[40] = item.children;
|
|
537
|
+
$[41] = item.title;
|
|
538
|
+
$[42] = renderNested;
|
|
539
|
+
$[43] = t13;
|
|
540
|
+
} else {
|
|
541
|
+
t13 = $[43];
|
|
542
|
+
}
|
|
543
|
+
let t14;
|
|
544
|
+
if ($[44] !== t10 || $[45] !== t12 || $[46] !== t13) {
|
|
545
|
+
t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItem, { ...t10, sx: t11, children: [
|
|
546
|
+
t12,
|
|
547
|
+
t13
|
|
548
|
+
] });
|
|
549
|
+
$[44] = t10;
|
|
550
|
+
$[45] = t12;
|
|
551
|
+
$[46] = t13;
|
|
552
|
+
$[47] = t14;
|
|
553
|
+
} else {
|
|
554
|
+
t14 = $[47];
|
|
555
|
+
}
|
|
556
|
+
const listItem = t14;
|
|
557
|
+
let t15;
|
|
558
|
+
if ($[48] !== collapsed || $[49] !== isOpen || $[50] !== item.children || $[51] !== renderNested) {
|
|
559
|
+
t15 = item.children && !collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: renderNested?.(item.children) }) : null;
|
|
560
|
+
$[48] = collapsed;
|
|
561
|
+
$[49] = isOpen;
|
|
562
|
+
$[50] = item.children;
|
|
563
|
+
$[51] = renderNested;
|
|
564
|
+
$[52] = t15;
|
|
565
|
+
} else {
|
|
566
|
+
t15 = $[52];
|
|
567
|
+
}
|
|
568
|
+
let t16;
|
|
569
|
+
if ($[53] !== item.to || $[54] !== listItem || $[55] !== t15) {
|
|
570
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
571
|
+
listItem,
|
|
572
|
+
t15
|
|
573
|
+
] }, item.to);
|
|
574
|
+
$[53] = item.to;
|
|
575
|
+
$[54] = listItem;
|
|
576
|
+
$[55] = t15;
|
|
577
|
+
$[56] = t16;
|
|
578
|
+
} else {
|
|
579
|
+
t16 = $[56];
|
|
580
|
+
}
|
|
581
|
+
return t16;
|
|
582
|
+
};
|
|
583
|
+
const isPageItem = (item) => !("kind" in item);
|
|
584
|
+
const isDivider = (item) => "kind" in item && item.kind === "divider";
|
|
585
|
+
const isHeader = (item) => "kind" in item && item.kind === "header";
|
|
586
|
+
const NavigationList = (t0) => {
|
|
587
|
+
const $ = compilerRuntimeExports.c(31);
|
|
588
|
+
const {
|
|
589
|
+
subNavigation,
|
|
590
|
+
depth: t1,
|
|
591
|
+
collapsed,
|
|
592
|
+
isPopover,
|
|
593
|
+
isSidebarFullyExpanded: t2,
|
|
594
|
+
isSidebarFullyCollapsed,
|
|
595
|
+
expandedWidth,
|
|
596
|
+
renderItem,
|
|
597
|
+
activePath,
|
|
598
|
+
onNavigate,
|
|
599
|
+
onClose
|
|
600
|
+
} = t0;
|
|
601
|
+
const depth = t1 === void 0 ? 0 : t1;
|
|
602
|
+
const isSidebarFullyExpanded = t2 === void 0 ? true : t2;
|
|
603
|
+
let t3;
|
|
604
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
605
|
+
t3 = [];
|
|
606
|
+
$[0] = t3;
|
|
607
|
+
} else {
|
|
608
|
+
t3 = $[0];
|
|
609
|
+
}
|
|
610
|
+
const [openKeys, setOpenKeys] = useState(t3);
|
|
611
|
+
let t4;
|
|
612
|
+
let t5;
|
|
613
|
+
if ($[1] !== collapsed) {
|
|
614
|
+
t4 = () => {
|
|
615
|
+
if (collapsed) {
|
|
616
|
+
setOpenKeys([]);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
t5 = [collapsed];
|
|
620
|
+
$[1] = collapsed;
|
|
621
|
+
$[2] = t4;
|
|
622
|
+
$[3] = t5;
|
|
623
|
+
} else {
|
|
624
|
+
t4 = $[2];
|
|
625
|
+
t5 = $[3];
|
|
626
|
+
}
|
|
627
|
+
useEffect(t4, t5);
|
|
628
|
+
let t6;
|
|
629
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
630
|
+
t6 = (key) => setOpenKeys((previous) => previous.includes(key) ? previous.filter((k) => k !== key) : [...previous, key]);
|
|
631
|
+
$[4] = t6;
|
|
632
|
+
} else {
|
|
633
|
+
t6 = $[4];
|
|
634
|
+
}
|
|
635
|
+
const toggleKey = t6;
|
|
636
|
+
let t7;
|
|
637
|
+
if ($[5] !== activePath || $[6] !== collapsed || $[7] !== depth || $[8] !== expandedWidth || $[9] !== onClose || $[10] !== onNavigate) {
|
|
638
|
+
t7 = (children) => /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationList, { subNavigation: children, depth: depth + 1, isPopover: collapsed, expandedWidth, activePath, onNavigate, onClose });
|
|
639
|
+
$[5] = activePath;
|
|
640
|
+
$[6] = collapsed;
|
|
641
|
+
$[7] = depth;
|
|
642
|
+
$[8] = expandedWidth;
|
|
643
|
+
$[9] = onClose;
|
|
644
|
+
$[10] = onNavigate;
|
|
645
|
+
$[11] = t7;
|
|
646
|
+
} else {
|
|
647
|
+
t7 = $[11];
|
|
648
|
+
}
|
|
649
|
+
const renderNested = t7;
|
|
650
|
+
let t8;
|
|
651
|
+
if ($[12] !== activePath || $[13] !== collapsed || $[14] !== depth || $[15] !== expandedWidth || $[16] !== isPopover || $[17] !== isSidebarFullyCollapsed || $[18] !== isSidebarFullyExpanded || $[19] !== onClose || $[20] !== openKeys || $[21] !== renderItem || $[22] !== renderNested || $[23] !== subNavigation) {
|
|
652
|
+
const filteredNavigation = subNavigation.filter(_temp$3);
|
|
653
|
+
const t9 = isPopover && depth === 1 ? 0.5 : 0;
|
|
654
|
+
const t10 = depth === 0 && !isPopover ? 4 : 0.5;
|
|
655
|
+
const t11 = (isPopover ? 1 : 2) * (isPopover ? depth - 1 : depth);
|
|
656
|
+
const t12 = isPopover && depth === 1 ? EXPANDED_WIDTH : "auto";
|
|
657
|
+
const t13 = collapsed ? MINI_WIDTH : "auto";
|
|
658
|
+
let t14;
|
|
659
|
+
if ($[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t9) {
|
|
660
|
+
t14 = {
|
|
661
|
+
padding: 0,
|
|
662
|
+
mt: t9,
|
|
663
|
+
mb: t10,
|
|
664
|
+
pl: t11,
|
|
665
|
+
minWidth: t12,
|
|
666
|
+
width: t13
|
|
667
|
+
};
|
|
668
|
+
$[25] = t10;
|
|
669
|
+
$[26] = t11;
|
|
670
|
+
$[27] = t12;
|
|
671
|
+
$[28] = t13;
|
|
672
|
+
$[29] = t9;
|
|
673
|
+
$[30] = t14;
|
|
674
|
+
} else {
|
|
675
|
+
t14 = $[30];
|
|
676
|
+
}
|
|
677
|
+
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(List, { sx: t14, children: filteredNavigation.map((navItem, index) => {
|
|
678
|
+
if (isHeader(navItem)) {
|
|
679
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ListSubheader, { sx: {
|
|
680
|
+
fontSize: 12,
|
|
681
|
+
fontWeight: "700",
|
|
682
|
+
height: collapsed ? 0 : 40,
|
|
683
|
+
px: 2,
|
|
684
|
+
minWidth: expandedWidth,
|
|
685
|
+
overflow: "hidden",
|
|
686
|
+
textOverflow: "ellipsis",
|
|
687
|
+
whiteSpace: "nowrap",
|
|
688
|
+
zIndex: 2,
|
|
689
|
+
bgcolor: "transparent",
|
|
690
|
+
position: "static"
|
|
691
|
+
}, children: navItem.title }, `subheader-${depth}-${index}`);
|
|
692
|
+
}
|
|
693
|
+
if (isDivider(navItem)) {
|
|
694
|
+
const nextItem = filteredNavigation[index + 1];
|
|
695
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { sx: {
|
|
696
|
+
mx: 1,
|
|
697
|
+
mt: 1,
|
|
698
|
+
mb: isHeader(nextItem) && !collapsed ? 0 : 1
|
|
699
|
+
} }) }, `divider-${depth}-${index}`);
|
|
700
|
+
}
|
|
701
|
+
if (!isPageItem(navItem)) {
|
|
702
|
+
return null;
|
|
703
|
+
}
|
|
704
|
+
const key_0 = `item-${depth}-${index}`;
|
|
705
|
+
const uniqueItemKey = `${depth}-${index}-${navItem.title}`;
|
|
706
|
+
if (renderItem) {
|
|
707
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Fragment, { children: renderItem(navItem, {
|
|
708
|
+
collapsed: !!collapsed
|
|
709
|
+
}) }, key_0);
|
|
710
|
+
}
|
|
711
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationListItem, { item: navItem, isOpen: openKeys.includes(uniqueItemKey), selected: activePath === navItem.to, collapsed, isSidebarFullyExpanded, isSidebarFullyCollapsed, onClick: navItem.children && !collapsed ? () => toggleKey(uniqueItemKey) : void 0, renderNested, onClose }, key_0);
|
|
712
|
+
}) });
|
|
713
|
+
$[12] = activePath;
|
|
714
|
+
$[13] = collapsed;
|
|
715
|
+
$[14] = depth;
|
|
716
|
+
$[15] = expandedWidth;
|
|
717
|
+
$[16] = isPopover;
|
|
718
|
+
$[17] = isSidebarFullyCollapsed;
|
|
719
|
+
$[18] = isSidebarFullyExpanded;
|
|
720
|
+
$[19] = onClose;
|
|
721
|
+
$[20] = openKeys;
|
|
722
|
+
$[21] = renderItem;
|
|
723
|
+
$[22] = renderNested;
|
|
724
|
+
$[23] = subNavigation;
|
|
725
|
+
$[24] = t8;
|
|
726
|
+
} else {
|
|
727
|
+
t8 = $[24];
|
|
728
|
+
}
|
|
729
|
+
return t8;
|
|
730
|
+
};
|
|
731
|
+
function _temp$3(nav) {
|
|
732
|
+
return !nav.hidden;
|
|
733
|
+
}
|
|
734
|
+
const MINI_WIDTH = 84;
|
|
735
|
+
const EXPANDED_WIDTH = 320;
|
|
736
|
+
const TOOLBAR_HEIGHT = 64;
|
|
737
|
+
const NavigationRail = (t0) => {
|
|
738
|
+
const $ = compilerRuntimeExports.c(29);
|
|
739
|
+
const {
|
|
740
|
+
navigation,
|
|
741
|
+
expanded,
|
|
742
|
+
setExpanded
|
|
743
|
+
} = t0;
|
|
744
|
+
const navigate = useNavigate();
|
|
745
|
+
const routerState = useRouterState();
|
|
746
|
+
const theme = useTheme();
|
|
747
|
+
let t1;
|
|
748
|
+
if ($[0] !== theme.breakpoints) {
|
|
749
|
+
t1 = theme.breakpoints.up("sm");
|
|
750
|
+
$[0] = theme.breakpoints;
|
|
751
|
+
$[1] = t1;
|
|
752
|
+
} else {
|
|
753
|
+
t1 = $[1];
|
|
754
|
+
}
|
|
755
|
+
const showPermanent = useMediaQuery(t1);
|
|
756
|
+
let t2;
|
|
757
|
+
if ($[2] !== expanded || $[3] !== navigate || $[4] !== navigation || $[5] !== routerState.location.pathname || $[6] !== setExpanded || $[7] !== showPermanent) {
|
|
758
|
+
t2 = (collapsed) => /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "nav", sx: {
|
|
759
|
+
height: "100%",
|
|
760
|
+
display: "flex",
|
|
761
|
+
flexDirection: "column",
|
|
762
|
+
justifyContent: "space-between",
|
|
763
|
+
overflow: "auto",
|
|
764
|
+
scrollbarGutter: collapsed ? "stable" : "auto",
|
|
765
|
+
overflowX: "hidden",
|
|
766
|
+
pt: navigation[0] && isHeader(navigation[0]) && !collapsed ? 0 : 2
|
|
767
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationList, { subNavigation: navigation, collapsed, isSidebarFullyExpanded: expanded, isSidebarFullyCollapsed: !expanded, expandedWidth: EXPANDED_WIDTH, activePath: routerState.location.pathname, onNavigate: navigate, onClose: !showPermanent ? () => setExpanded(false) : void 0 }) });
|
|
768
|
+
$[2] = expanded;
|
|
769
|
+
$[3] = navigate;
|
|
770
|
+
$[4] = navigation;
|
|
771
|
+
$[5] = routerState.location.pathname;
|
|
772
|
+
$[6] = setExpanded;
|
|
773
|
+
$[7] = showPermanent;
|
|
774
|
+
$[8] = t2;
|
|
775
|
+
} else {
|
|
776
|
+
t2 = $[8];
|
|
777
|
+
}
|
|
778
|
+
const drawerContent = t2;
|
|
779
|
+
if (showPermanent) {
|
|
780
|
+
const t32 = expanded ? EXPANDED_WIDTH : MINI_WIDTH;
|
|
781
|
+
const t42 = expanded ? EXPANDED_WIDTH : MINI_WIDTH;
|
|
782
|
+
let t52;
|
|
783
|
+
if ($[9] !== t42) {
|
|
784
|
+
t52 = {
|
|
785
|
+
position: "absolute",
|
|
786
|
+
top: `${TOOLBAR_HEIGHT}px`,
|
|
787
|
+
height: `calc(100% - ${TOOLBAR_HEIGHT}px)`,
|
|
788
|
+
width: t42,
|
|
789
|
+
borderTop: "1px solid",
|
|
790
|
+
borderColor: "var(--mui-palette-divider)"
|
|
791
|
+
};
|
|
792
|
+
$[9] = t42;
|
|
793
|
+
$[10] = t52;
|
|
794
|
+
} else {
|
|
795
|
+
t52 = $[10];
|
|
796
|
+
}
|
|
797
|
+
let t62;
|
|
798
|
+
if ($[11] !== t32 || $[12] !== t52) {
|
|
799
|
+
t62 = {
|
|
800
|
+
width: t32,
|
|
801
|
+
"& .MuiDrawer-paper": t52
|
|
802
|
+
};
|
|
803
|
+
$[11] = t32;
|
|
804
|
+
$[12] = t52;
|
|
805
|
+
$[13] = t62;
|
|
806
|
+
} else {
|
|
807
|
+
t62 = $[13];
|
|
808
|
+
}
|
|
809
|
+
const t7 = !expanded;
|
|
810
|
+
let t8;
|
|
811
|
+
if ($[14] !== drawerContent || $[15] !== t7) {
|
|
812
|
+
t8 = drawerContent(t7);
|
|
813
|
+
$[14] = drawerContent;
|
|
814
|
+
$[15] = t7;
|
|
815
|
+
$[16] = t8;
|
|
816
|
+
} else {
|
|
817
|
+
t8 = $[16];
|
|
818
|
+
}
|
|
819
|
+
let t9;
|
|
820
|
+
if ($[17] !== t62 || $[18] !== t8) {
|
|
821
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(Drawer, { variant: "permanent", sx: t62, children: t8 });
|
|
822
|
+
$[17] = t62;
|
|
823
|
+
$[18] = t8;
|
|
824
|
+
$[19] = t9;
|
|
825
|
+
} else {
|
|
826
|
+
t9 = $[19];
|
|
827
|
+
}
|
|
828
|
+
return t9;
|
|
829
|
+
}
|
|
830
|
+
let t3;
|
|
831
|
+
if ($[20] !== setExpanded) {
|
|
832
|
+
t3 = () => setExpanded(false);
|
|
833
|
+
$[20] = setExpanded;
|
|
834
|
+
$[21] = t3;
|
|
835
|
+
} else {
|
|
836
|
+
t3 = $[21];
|
|
837
|
+
}
|
|
838
|
+
const t4 = !expanded;
|
|
839
|
+
let t5;
|
|
840
|
+
if ($[22] !== drawerContent || $[23] !== t4) {
|
|
841
|
+
t5 = drawerContent(t4);
|
|
842
|
+
$[22] = drawerContent;
|
|
843
|
+
$[23] = t4;
|
|
844
|
+
$[24] = t5;
|
|
845
|
+
} else {
|
|
846
|
+
t5 = $[24];
|
|
847
|
+
}
|
|
848
|
+
let t6;
|
|
849
|
+
if ($[25] !== expanded || $[26] !== t3 || $[27] !== t5) {
|
|
850
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(Drawer, { open: expanded, onClose: t3, children: t5 });
|
|
851
|
+
$[25] = expanded;
|
|
852
|
+
$[26] = t3;
|
|
853
|
+
$[27] = t5;
|
|
854
|
+
$[28] = t6;
|
|
855
|
+
} else {
|
|
856
|
+
t6 = $[28];
|
|
857
|
+
}
|
|
858
|
+
return t6;
|
|
859
|
+
};
|
|
860
|
+
const getSessionUser = createServerFn().inputValidator(z__default.object({
|
|
861
|
+
redirectUri: z__default.string()
|
|
862
|
+
})).handler(async ({
|
|
863
|
+
data
|
|
864
|
+
}) => {
|
|
865
|
+
const session = await requireSession(data.redirectUri);
|
|
866
|
+
const groups = await queryClient.fetchQuery({
|
|
867
|
+
queryKey: ["graph", "me", "memberOf"],
|
|
868
|
+
queryFn: async () => axios.request({
|
|
869
|
+
method: "GET",
|
|
870
|
+
url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
|
|
871
|
+
headers: {
|
|
872
|
+
Authorization: `Bearer ${await getAccessToken()}`
|
|
873
|
+
}
|
|
874
|
+
}).then((response) => response.data.value.map((group) => group.displayName)),
|
|
875
|
+
staleTime: Infinity,
|
|
876
|
+
gcTime: Infinity
|
|
877
|
+
});
|
|
878
|
+
return {
|
|
879
|
+
...session.user,
|
|
880
|
+
groups
|
|
881
|
+
};
|
|
882
|
+
});
|
|
883
|
+
const getSessionUserDetail = createServerFn({
|
|
884
|
+
method: "GET"
|
|
885
|
+
}).handler(async () => {
|
|
886
|
+
return await queryClient.fetchQuery({
|
|
887
|
+
queryKey: ["graph", "me"],
|
|
888
|
+
queryFn: async () => await axios.request({
|
|
889
|
+
method: "GET",
|
|
890
|
+
url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
|
|
891
|
+
headers: {
|
|
892
|
+
Authorization: `Bearer ${await getAccessToken()}`
|
|
893
|
+
}
|
|
894
|
+
}).then((response) => response.data),
|
|
895
|
+
staleTime: Infinity,
|
|
896
|
+
gcTime: Infinity
|
|
897
|
+
});
|
|
898
|
+
});
|
|
899
|
+
const getSessionUserPhoto = createServerFn({
|
|
900
|
+
method: "GET"
|
|
901
|
+
}).handler(async () => {
|
|
902
|
+
return await queryClient.fetchQuery({
|
|
903
|
+
queryKey: ["graph", "me", "photo"],
|
|
904
|
+
queryFn: async () => {
|
|
905
|
+
const response = await axios.request({
|
|
906
|
+
method: "GET",
|
|
907
|
+
url: "https://graph.microsoft.com/v1.0/me/photo/$value",
|
|
908
|
+
headers: {
|
|
909
|
+
Authorization: `Bearer ${await getAccessToken()}`
|
|
910
|
+
},
|
|
911
|
+
responseType: "arraybuffer"
|
|
912
|
+
});
|
|
913
|
+
const contentType = response.headers["content-type"] ?? "image/jpeg";
|
|
914
|
+
const base64 = Buffer.from(response.data).toString("base64");
|
|
915
|
+
return `data:${contentType};base64,${base64}`;
|
|
916
|
+
},
|
|
917
|
+
staleTime: Infinity,
|
|
918
|
+
gcTime: Infinity
|
|
919
|
+
});
|
|
920
|
+
});
|
|
921
|
+
const capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
|
|
922
|
+
const ToolbarAccount = () => {
|
|
923
|
+
const $ = compilerRuntimeExports.c(105);
|
|
924
|
+
const [anchorElement, setAnchorElement] = useState();
|
|
925
|
+
const [tab, setTab] = useState("settings");
|
|
926
|
+
const open = Boolean(anchorElement);
|
|
927
|
+
const {
|
|
928
|
+
t,
|
|
929
|
+
i18n: i18n2
|
|
930
|
+
} = useTranslation();
|
|
931
|
+
const {
|
|
932
|
+
mode,
|
|
933
|
+
setMode
|
|
934
|
+
} = useColorScheme();
|
|
935
|
+
let T0;
|
|
936
|
+
let closeMenu;
|
|
937
|
+
let openMenu;
|
|
938
|
+
let settings;
|
|
939
|
+
let t0;
|
|
940
|
+
let t1;
|
|
941
|
+
let theme;
|
|
942
|
+
if ($[0] !== i18n2 || $[1] !== mode || $[2] !== setMode || $[3] !== t) {
|
|
943
|
+
const supportedLanguages = (Array.isArray(i18n2.options.supportedLngs) ? i18n2.options.supportedLngs : []).filter(_temp$2);
|
|
944
|
+
const languageDisplayNames = new Intl.DisplayNames([i18n2.language], {
|
|
945
|
+
type: "language"
|
|
946
|
+
});
|
|
947
|
+
let t22;
|
|
948
|
+
if ($[11] !== t) {
|
|
949
|
+
t22 = t("Layout.Light");
|
|
950
|
+
$[11] = t;
|
|
951
|
+
$[12] = t22;
|
|
952
|
+
} else {
|
|
953
|
+
t22 = $[12];
|
|
954
|
+
}
|
|
955
|
+
let t32;
|
|
956
|
+
if ($[13] !== t22) {
|
|
957
|
+
t32 = {
|
|
958
|
+
mode: "light",
|
|
959
|
+
icon: LightMode,
|
|
960
|
+
label: t22
|
|
961
|
+
};
|
|
962
|
+
$[13] = t22;
|
|
963
|
+
$[14] = t32;
|
|
964
|
+
} else {
|
|
965
|
+
t32 = $[14];
|
|
966
|
+
}
|
|
967
|
+
let t42;
|
|
968
|
+
if ($[15] !== t) {
|
|
969
|
+
t42 = t("Layout.Dark");
|
|
970
|
+
$[15] = t;
|
|
971
|
+
$[16] = t42;
|
|
972
|
+
} else {
|
|
973
|
+
t42 = $[16];
|
|
974
|
+
}
|
|
975
|
+
let t52;
|
|
976
|
+
if ($[17] !== t42) {
|
|
977
|
+
t52 = {
|
|
978
|
+
mode: "dark",
|
|
979
|
+
icon: DarkMode,
|
|
980
|
+
label: t42
|
|
981
|
+
};
|
|
982
|
+
$[17] = t42;
|
|
983
|
+
$[18] = t52;
|
|
984
|
+
} else {
|
|
985
|
+
t52 = $[18];
|
|
986
|
+
}
|
|
987
|
+
let t62;
|
|
988
|
+
if ($[19] !== t) {
|
|
989
|
+
t62 = t("Layout.System");
|
|
990
|
+
$[19] = t;
|
|
991
|
+
$[20] = t62;
|
|
992
|
+
} else {
|
|
993
|
+
t62 = $[20];
|
|
994
|
+
}
|
|
995
|
+
let t72;
|
|
996
|
+
if ($[21] !== t62) {
|
|
997
|
+
t72 = {
|
|
998
|
+
mode: "system",
|
|
999
|
+
icon: SettingsBrightness,
|
|
1000
|
+
label: t62
|
|
1001
|
+
};
|
|
1002
|
+
$[21] = t62;
|
|
1003
|
+
$[22] = t72;
|
|
1004
|
+
} else {
|
|
1005
|
+
t72 = $[22];
|
|
1006
|
+
}
|
|
1007
|
+
let t82;
|
|
1008
|
+
if ($[23] !== t32 || $[24] !== t52 || $[25] !== t72) {
|
|
1009
|
+
t82 = [t32, t52, t72];
|
|
1010
|
+
$[23] = t32;
|
|
1011
|
+
$[24] = t52;
|
|
1012
|
+
$[25] = t72;
|
|
1013
|
+
$[26] = t82;
|
|
1014
|
+
} else {
|
|
1015
|
+
t82 = $[26];
|
|
1016
|
+
}
|
|
1017
|
+
const colorModes = t82;
|
|
1018
|
+
let t92;
|
|
1019
|
+
if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1020
|
+
t92 = (event) => setAnchorElement(event.currentTarget);
|
|
1021
|
+
$[27] = t92;
|
|
1022
|
+
} else {
|
|
1023
|
+
t92 = $[27];
|
|
1024
|
+
}
|
|
1025
|
+
openMenu = t92;
|
|
1026
|
+
let t102;
|
|
1027
|
+
if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1028
|
+
t102 = () => {
|
|
1029
|
+
setAnchorElement(void 0);
|
|
1030
|
+
setTimeout(() => setTab("settings"), 300);
|
|
1031
|
+
};
|
|
1032
|
+
$[28] = t102;
|
|
1033
|
+
} else {
|
|
1034
|
+
t102 = $[28];
|
|
1035
|
+
}
|
|
1036
|
+
closeMenu = t102;
|
|
1037
|
+
let t112;
|
|
1038
|
+
if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1039
|
+
t112 = (newTab) => () => setTab(newTab);
|
|
1040
|
+
$[29] = t112;
|
|
1041
|
+
} else {
|
|
1042
|
+
t112 = $[29];
|
|
1043
|
+
}
|
|
1044
|
+
const changeTab = t112;
|
|
1045
|
+
let t122;
|
|
1046
|
+
if ($[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1047
|
+
t122 = {
|
|
1048
|
+
backgroundColor: "transparent"
|
|
1049
|
+
};
|
|
1050
|
+
$[30] = t122;
|
|
1051
|
+
} else {
|
|
1052
|
+
t122 = $[30];
|
|
1053
|
+
}
|
|
1054
|
+
let t132;
|
|
1055
|
+
if ($[31] !== t) {
|
|
1056
|
+
t132 = t("Layout.Settings");
|
|
1057
|
+
$[31] = t;
|
|
1058
|
+
$[32] = t132;
|
|
1059
|
+
} else {
|
|
1060
|
+
t132 = $[32];
|
|
1061
|
+
}
|
|
1062
|
+
let t142;
|
|
1063
|
+
if ($[33] !== t132) {
|
|
1064
|
+
t142 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListSubheader$1, { sx: t122, children: t132 });
|
|
1065
|
+
$[33] = t132;
|
|
1066
|
+
$[34] = t142;
|
|
1067
|
+
} else {
|
|
1068
|
+
t142 = $[34];
|
|
1069
|
+
}
|
|
1070
|
+
let t152;
|
|
1071
|
+
let t162;
|
|
1072
|
+
if ($[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1073
|
+
t152 = changeTab("theme");
|
|
1074
|
+
t162 = {
|
|
1075
|
+
py: 0.3
|
|
1076
|
+
};
|
|
1077
|
+
$[35] = t152;
|
|
1078
|
+
$[36] = t162;
|
|
1079
|
+
} else {
|
|
1080
|
+
t152 = $[35];
|
|
1081
|
+
t162 = $[36];
|
|
1082
|
+
}
|
|
1083
|
+
let t17;
|
|
1084
|
+
if ($[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1085
|
+
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Brightness4, {}) });
|
|
1086
|
+
$[37] = t17;
|
|
1087
|
+
} else {
|
|
1088
|
+
t17 = $[37];
|
|
1089
|
+
}
|
|
1090
|
+
let t18;
|
|
1091
|
+
if ($[38] !== t) {
|
|
1092
|
+
t18 = t("Layout.Appearance");
|
|
1093
|
+
$[38] = t;
|
|
1094
|
+
$[39] = t18;
|
|
1095
|
+
} else {
|
|
1096
|
+
t18 = $[39];
|
|
1097
|
+
}
|
|
1098
|
+
const t19 = colorModes.find((m) => m.mode === mode)?.label;
|
|
1099
|
+
let t20;
|
|
1100
|
+
if ($[40] !== t18 || $[41] !== t19) {
|
|
1101
|
+
t20 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: t18, secondary: t19 });
|
|
1102
|
+
$[40] = t18;
|
|
1103
|
+
$[41] = t19;
|
|
1104
|
+
$[42] = t20;
|
|
1105
|
+
} else {
|
|
1106
|
+
t20 = $[42];
|
|
1107
|
+
}
|
|
1108
|
+
let t21;
|
|
1109
|
+
if ($[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1110
|
+
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {});
|
|
1111
|
+
$[43] = t21;
|
|
1112
|
+
} else {
|
|
1113
|
+
t21 = $[43];
|
|
1114
|
+
}
|
|
1115
|
+
let t222;
|
|
1116
|
+
if ($[44] !== t20) {
|
|
1117
|
+
t222 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: t152, sx: t162, children: [
|
|
1118
|
+
t17,
|
|
1119
|
+
t20,
|
|
1120
|
+
t21
|
|
1121
|
+
] });
|
|
1122
|
+
$[44] = t20;
|
|
1123
|
+
$[45] = t222;
|
|
1124
|
+
} else {
|
|
1125
|
+
t222 = $[45];
|
|
1126
|
+
}
|
|
1127
|
+
let t23;
|
|
1128
|
+
let t24;
|
|
1129
|
+
if ($[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1130
|
+
t23 = changeTab("language");
|
|
1131
|
+
t24 = {
|
|
1132
|
+
py: 0.3
|
|
1133
|
+
};
|
|
1134
|
+
$[46] = t23;
|
|
1135
|
+
$[47] = t24;
|
|
1136
|
+
} else {
|
|
1137
|
+
t23 = $[46];
|
|
1138
|
+
t24 = $[47];
|
|
1139
|
+
}
|
|
1140
|
+
let t25;
|
|
1141
|
+
if ($[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1142
|
+
t25 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Translate, {}) });
|
|
1143
|
+
$[48] = t25;
|
|
1144
|
+
} else {
|
|
1145
|
+
t25 = $[48];
|
|
1146
|
+
}
|
|
1147
|
+
let t26;
|
|
1148
|
+
if ($[49] !== t) {
|
|
1149
|
+
t26 = t("Layout.Language");
|
|
1150
|
+
$[49] = t;
|
|
1151
|
+
$[50] = t26;
|
|
1152
|
+
} else {
|
|
1153
|
+
t26 = $[50];
|
|
1154
|
+
}
|
|
1155
|
+
let t27;
|
|
1156
|
+
if ($[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1157
|
+
t27 = /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {});
|
|
1158
|
+
$[51] = t27;
|
|
1159
|
+
} else {
|
|
1160
|
+
t27 = $[51];
|
|
1161
|
+
}
|
|
1162
|
+
const t28 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: t23, sx: t24, children: [
|
|
1163
|
+
t25,
|
|
1164
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: t26, secondary: capitalize(languageDisplayNames.of(i18n2.language)) }),
|
|
1165
|
+
t27
|
|
1166
|
+
] });
|
|
1167
|
+
let t29;
|
|
1168
|
+
if ($[52] !== t142 || $[53] !== t222 || $[54] !== t28) {
|
|
1169
|
+
t29 = /* @__PURE__ */ jsxRuntimeExports.jsxs(List$1, { component: "nav", subheader: t142, children: [
|
|
1170
|
+
t222,
|
|
1171
|
+
t28
|
|
1172
|
+
] });
|
|
1173
|
+
$[52] = t142;
|
|
1174
|
+
$[53] = t222;
|
|
1175
|
+
$[54] = t28;
|
|
1176
|
+
$[55] = t29;
|
|
1177
|
+
} else {
|
|
1178
|
+
t29 = $[55];
|
|
1179
|
+
}
|
|
1180
|
+
settings = t29;
|
|
1181
|
+
let t30;
|
|
1182
|
+
let t31;
|
|
1183
|
+
if ($[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1184
|
+
t30 = changeTab("settings");
|
|
1185
|
+
t31 = {
|
|
1186
|
+
backgroundColor: "transparent",
|
|
1187
|
+
display: "flex",
|
|
1188
|
+
alignItems: "center",
|
|
1189
|
+
px: 1,
|
|
1190
|
+
cursor: "pointer"
|
|
1191
|
+
};
|
|
1192
|
+
$[56] = t30;
|
|
1193
|
+
$[57] = t31;
|
|
1194
|
+
} else {
|
|
1195
|
+
t30 = $[56];
|
|
1196
|
+
t31 = $[57];
|
|
1197
|
+
}
|
|
1198
|
+
let t322;
|
|
1199
|
+
if ($[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1200
|
+
t322 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: {
|
|
1201
|
+
mr: 0.5
|
|
1202
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) });
|
|
1203
|
+
$[58] = t322;
|
|
1204
|
+
} else {
|
|
1205
|
+
t322 = $[58];
|
|
1206
|
+
}
|
|
1207
|
+
let t33;
|
|
1208
|
+
if ($[59] !== t) {
|
|
1209
|
+
t33 = t("Layout.Appearance");
|
|
1210
|
+
$[59] = t;
|
|
1211
|
+
$[60] = t33;
|
|
1212
|
+
} else {
|
|
1213
|
+
t33 = $[60];
|
|
1214
|
+
}
|
|
1215
|
+
let t34;
|
|
1216
|
+
if ($[61] !== t33) {
|
|
1217
|
+
t34 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListSubheader$1, { onClick: t30, sx: t31, children: [
|
|
1218
|
+
t322,
|
|
1219
|
+
" ",
|
|
1220
|
+
t33
|
|
1221
|
+
] });
|
|
1222
|
+
$[61] = t33;
|
|
1223
|
+
$[62] = t34;
|
|
1224
|
+
} else {
|
|
1225
|
+
t34 = $[62];
|
|
1226
|
+
}
|
|
1227
|
+
let t35;
|
|
1228
|
+
if ($[63] !== colorModes || $[64] !== mode || $[65] !== setMode) {
|
|
1229
|
+
t35 = colorModes.map((t362) => {
|
|
1230
|
+
const {
|
|
1231
|
+
mode: modeValue,
|
|
1232
|
+
icon: Icon,
|
|
1233
|
+
label
|
|
1234
|
+
} = t362;
|
|
1235
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: () => {
|
|
1236
|
+
setMode(modeValue);
|
|
1237
|
+
closeMenu();
|
|
1238
|
+
}, selected: mode === modeValue, children: [
|
|
1239
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, {}) }),
|
|
1240
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: label })
|
|
1241
|
+
] }, modeValue);
|
|
1242
|
+
});
|
|
1243
|
+
$[63] = colorModes;
|
|
1244
|
+
$[64] = mode;
|
|
1245
|
+
$[65] = setMode;
|
|
1246
|
+
$[66] = t35;
|
|
1247
|
+
} else {
|
|
1248
|
+
t35 = $[66];
|
|
1249
|
+
}
|
|
1250
|
+
let t36;
|
|
1251
|
+
if ($[67] !== t34 || $[68] !== t35) {
|
|
1252
|
+
t36 = /* @__PURE__ */ jsxRuntimeExports.jsx(List$1, { subheader: t34, children: t35 });
|
|
1253
|
+
$[67] = t34;
|
|
1254
|
+
$[68] = t35;
|
|
1255
|
+
$[69] = t36;
|
|
1256
|
+
} else {
|
|
1257
|
+
t36 = $[69];
|
|
1258
|
+
}
|
|
1259
|
+
theme = t36;
|
|
1260
|
+
T0 = List$1;
|
|
1261
|
+
let t37;
|
|
1262
|
+
let t38;
|
|
1263
|
+
if ($[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1264
|
+
t37 = changeTab("settings");
|
|
1265
|
+
t38 = {
|
|
1266
|
+
backgroundColor: "transparent",
|
|
1267
|
+
display: "flex",
|
|
1268
|
+
alignItems: "center",
|
|
1269
|
+
px: 1,
|
|
1270
|
+
cursor: "pointer"
|
|
1271
|
+
};
|
|
1272
|
+
$[70] = t37;
|
|
1273
|
+
$[71] = t38;
|
|
1274
|
+
} else {
|
|
1275
|
+
t37 = $[70];
|
|
1276
|
+
t38 = $[71];
|
|
1277
|
+
}
|
|
1278
|
+
let t39;
|
|
1279
|
+
if ($[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1280
|
+
t39 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: {
|
|
1281
|
+
mr: 0.5
|
|
1282
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) });
|
|
1283
|
+
$[72] = t39;
|
|
1284
|
+
} else {
|
|
1285
|
+
t39 = $[72];
|
|
1286
|
+
}
|
|
1287
|
+
let t40;
|
|
1288
|
+
if ($[73] !== t) {
|
|
1289
|
+
t40 = t("Layout.Language");
|
|
1290
|
+
$[73] = t;
|
|
1291
|
+
$[74] = t40;
|
|
1292
|
+
} else {
|
|
1293
|
+
t40 = $[74];
|
|
1294
|
+
}
|
|
1295
|
+
if ($[75] !== t40) {
|
|
1296
|
+
t0 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListSubheader$1, { onClick: t37, sx: t38, children: [
|
|
1297
|
+
t39,
|
|
1298
|
+
" ",
|
|
1299
|
+
t40
|
|
1300
|
+
] });
|
|
1301
|
+
$[75] = t40;
|
|
1302
|
+
$[76] = t0;
|
|
1303
|
+
} else {
|
|
1304
|
+
t0 = $[76];
|
|
1305
|
+
}
|
|
1306
|
+
t1 = supportedLanguages.map((languageCode) => /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: () => i18n2.changeLanguage(languageCode).finally(() => closeMenu()), selected: i18n2.resolvedLanguage === languageCode, children: [
|
|
1307
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ jsxRuntimeExports.jsx(Done, {}) }),
|
|
1308
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: capitalize(languageDisplayNames.of(languageCode)) })
|
|
1309
|
+
] }, languageCode));
|
|
1310
|
+
$[0] = i18n2;
|
|
1311
|
+
$[1] = mode;
|
|
1312
|
+
$[2] = setMode;
|
|
1313
|
+
$[3] = t;
|
|
1314
|
+
$[4] = T0;
|
|
1315
|
+
$[5] = closeMenu;
|
|
1316
|
+
$[6] = openMenu;
|
|
1317
|
+
$[7] = settings;
|
|
1318
|
+
$[8] = t0;
|
|
1319
|
+
$[9] = t1;
|
|
1320
|
+
$[10] = theme;
|
|
1321
|
+
} else {
|
|
1322
|
+
T0 = $[4];
|
|
1323
|
+
closeMenu = $[5];
|
|
1324
|
+
openMenu = $[6];
|
|
1325
|
+
settings = $[7];
|
|
1326
|
+
t0 = $[8];
|
|
1327
|
+
t1 = $[9];
|
|
1328
|
+
theme = $[10];
|
|
1329
|
+
}
|
|
1330
|
+
let t2;
|
|
1331
|
+
if ($[77] !== T0 || $[78] !== t0 || $[79] !== t1) {
|
|
1332
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(T0, { subheader: t0, children: t1 });
|
|
1333
|
+
$[77] = T0;
|
|
1334
|
+
$[78] = t0;
|
|
1335
|
+
$[79] = t1;
|
|
1336
|
+
$[80] = t2;
|
|
1337
|
+
} else {
|
|
1338
|
+
t2 = $[80];
|
|
1339
|
+
}
|
|
1340
|
+
const language = t2;
|
|
1341
|
+
let t3;
|
|
1342
|
+
if ($[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1343
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(AccountCircle, { sx: {
|
|
1344
|
+
width: {
|
|
1345
|
+
xs: 32,
|
|
1346
|
+
sm: 40
|
|
1347
|
+
},
|
|
1348
|
+
height: {
|
|
1349
|
+
xs: 32,
|
|
1350
|
+
sm: 40
|
|
1351
|
+
}
|
|
1352
|
+
} });
|
|
1353
|
+
$[81] = t3;
|
|
1354
|
+
} else {
|
|
1355
|
+
t3 = $[81];
|
|
1356
|
+
}
|
|
1357
|
+
let t4;
|
|
1358
|
+
if ($[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1359
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: t3, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Await, { promise: getSessionUserPhoto(), children: _temp2 }) });
|
|
1360
|
+
$[82] = t4;
|
|
1361
|
+
} else {
|
|
1362
|
+
t4 = $[82];
|
|
1363
|
+
}
|
|
1364
|
+
let t5;
|
|
1365
|
+
if ($[83] !== openMenu) {
|
|
1366
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", edge: "end", onClick: openMenu, children: t4 });
|
|
1367
|
+
$[83] = openMenu;
|
|
1368
|
+
$[84] = t5;
|
|
1369
|
+
} else {
|
|
1370
|
+
t5 = $[84];
|
|
1371
|
+
}
|
|
1372
|
+
let t6;
|
|
1373
|
+
if ($[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1374
|
+
t6 = {
|
|
1375
|
+
width: 240
|
|
1376
|
+
};
|
|
1377
|
+
$[85] = t6;
|
|
1378
|
+
} else {
|
|
1379
|
+
t6 = $[85];
|
|
1380
|
+
}
|
|
1381
|
+
let t7;
|
|
1382
|
+
if ($[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1383
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItem$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Await, { promise: getSessionUserDetail(), children: _temp3 }) });
|
|
1384
|
+
$[86] = t7;
|
|
1385
|
+
} else {
|
|
1386
|
+
t7 = $[86];
|
|
1387
|
+
}
|
|
1388
|
+
let t8;
|
|
1389
|
+
if ($[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1390
|
+
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Logout, { color: "error" }) });
|
|
1391
|
+
$[87] = t8;
|
|
1392
|
+
} else {
|
|
1393
|
+
t8 = $[87];
|
|
1394
|
+
}
|
|
1395
|
+
let t9;
|
|
1396
|
+
if ($[88] !== t) {
|
|
1397
|
+
t9 = t("Layout.Logout");
|
|
1398
|
+
$[88] = t;
|
|
1399
|
+
$[89] = t9;
|
|
1400
|
+
} else {
|
|
1401
|
+
t9 = $[89];
|
|
1402
|
+
}
|
|
1403
|
+
let t10;
|
|
1404
|
+
if ($[90] !== t9) {
|
|
1405
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(List$1, { disablePadding: true, children: [
|
|
1406
|
+
t7,
|
|
1407
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: _temp4, children: [
|
|
1408
|
+
t8,
|
|
1409
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: t9 })
|
|
1410
|
+
] })
|
|
1411
|
+
] });
|
|
1412
|
+
$[90] = t9;
|
|
1413
|
+
$[91] = t10;
|
|
1414
|
+
} else {
|
|
1415
|
+
t10 = $[91];
|
|
1416
|
+
}
|
|
1417
|
+
const t11 = tab === "settings" && settings;
|
|
1418
|
+
const t12 = tab === "theme" && theme;
|
|
1419
|
+
const t13 = tab === "language" && language;
|
|
1420
|
+
let t14;
|
|
1421
|
+
if ($[92] !== t10 || $[93] !== t11 || $[94] !== t12 || $[95] !== t13) {
|
|
1422
|
+
t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { sx: t6, children: [
|
|
1423
|
+
t10,
|
|
1424
|
+
t11,
|
|
1425
|
+
t12,
|
|
1426
|
+
t13
|
|
1427
|
+
] });
|
|
1428
|
+
$[92] = t10;
|
|
1429
|
+
$[93] = t11;
|
|
1430
|
+
$[94] = t12;
|
|
1431
|
+
$[95] = t13;
|
|
1432
|
+
$[96] = t14;
|
|
1433
|
+
} else {
|
|
1434
|
+
t14 = $[96];
|
|
1435
|
+
}
|
|
1436
|
+
let t15;
|
|
1437
|
+
if ($[97] !== anchorElement || $[98] !== closeMenu || $[99] !== open || $[100] !== t14) {
|
|
1438
|
+
t15 = /* @__PURE__ */ jsxRuntimeExports.jsx(Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: t14 });
|
|
1439
|
+
$[97] = anchorElement;
|
|
1440
|
+
$[98] = closeMenu;
|
|
1441
|
+
$[99] = open;
|
|
1442
|
+
$[100] = t14;
|
|
1443
|
+
$[101] = t15;
|
|
1444
|
+
} else {
|
|
1445
|
+
t15 = $[101];
|
|
1446
|
+
}
|
|
1447
|
+
let t16;
|
|
1448
|
+
if ($[102] !== t15 || $[103] !== t5) {
|
|
1449
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
1450
|
+
t5,
|
|
1451
|
+
t15
|
|
1452
|
+
] });
|
|
1453
|
+
$[102] = t15;
|
|
1454
|
+
$[103] = t5;
|
|
1455
|
+
$[104] = t16;
|
|
1456
|
+
} else {
|
|
1457
|
+
t16 = $[104];
|
|
1458
|
+
}
|
|
1459
|
+
return t16;
|
|
1460
|
+
};
|
|
1461
|
+
function _temp$2(lng) {
|
|
1462
|
+
return lng !== "cimode";
|
|
1463
|
+
}
|
|
1464
|
+
function _temp2(data) {
|
|
1465
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar$1, { src: data, sx: {
|
|
1466
|
+
width: {
|
|
1467
|
+
xs: 32,
|
|
1468
|
+
sm: 40
|
|
1469
|
+
},
|
|
1470
|
+
height: {
|
|
1471
|
+
xs: 32,
|
|
1472
|
+
sm: 40
|
|
1473
|
+
}
|
|
1474
|
+
} });
|
|
1475
|
+
}
|
|
1476
|
+
function _temp3(data_0) {
|
|
1477
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: data_0.displayName.split("/")[0], secondary: data_0.jobTitle });
|
|
1478
|
+
}
|
|
1479
|
+
function _temp4() {
|
|
1480
|
+
return console.log("Logout clicked");
|
|
1481
|
+
}
|
|
1482
|
+
const YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
|
|
1483
|
+
const getNavigationOpenStatus = createIsomorphicFn().server(() => {
|
|
1484
|
+
const cookie = getCookie("navigationOpen");
|
|
1485
|
+
return cookie === "true";
|
|
1486
|
+
}).client(() => {
|
|
1487
|
+
const cookie = document.cookie.split("; ").find((row) => row.startsWith("navigationOpen="));
|
|
1488
|
+
return cookie ? cookie.split("=")[1] === "true" : false;
|
|
1489
|
+
});
|
|
1490
|
+
const DrawerHeader = styled("div")(({
|
|
1491
|
+
theme
|
|
1492
|
+
}) => ({
|
|
1493
|
+
display: "flex",
|
|
1494
|
+
alignItems: "center",
|
|
1495
|
+
justifyContent: "flex-end",
|
|
1496
|
+
padding: theme.spacing(0, 1),
|
|
1497
|
+
...theme.mixins.toolbar
|
|
1498
|
+
}));
|
|
1499
|
+
const Layout = (props) => {
|
|
1500
|
+
const $ = compilerRuntimeExports.c(29);
|
|
1501
|
+
const [navigationOpen, setNavigationOpen] = useState(getNavigationOpenStatus);
|
|
1502
|
+
const isFetching = !!useIsFetching();
|
|
1503
|
+
const isMutating = !!useIsMutating();
|
|
1504
|
+
let t0;
|
|
1505
|
+
let t1;
|
|
1506
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1507
|
+
t0 = /* @__PURE__ */ jsxRuntimeExports.jsx(InitColorSchemeScript, {});
|
|
1508
|
+
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(CssBaseline, {});
|
|
1509
|
+
$[0] = t0;
|
|
1510
|
+
$[1] = t1;
|
|
1511
|
+
} else {
|
|
1512
|
+
t0 = $[0];
|
|
1513
|
+
t1 = $[1];
|
|
1514
|
+
}
|
|
1515
|
+
let t2;
|
|
1516
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1517
|
+
t2 = {
|
|
1518
|
+
display: "flex",
|
|
1519
|
+
height: "100dvh",
|
|
1520
|
+
maxHeight: "100dvh",
|
|
1521
|
+
overflow: "hidden",
|
|
1522
|
+
width: "100%"
|
|
1523
|
+
};
|
|
1524
|
+
$[2] = t2;
|
|
1525
|
+
} else {
|
|
1526
|
+
t2 = $[2];
|
|
1527
|
+
}
|
|
1528
|
+
let t3;
|
|
1529
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1530
|
+
t3 = {
|
|
1531
|
+
borderBottom: "1px solid",
|
|
1532
|
+
borderColor: "var(--mui-palette-divider)",
|
|
1533
|
+
boxShadow: "none"
|
|
1534
|
+
};
|
|
1535
|
+
$[3] = t3;
|
|
1536
|
+
} else {
|
|
1537
|
+
t3 = $[3];
|
|
1538
|
+
}
|
|
1539
|
+
let t4;
|
|
1540
|
+
if ($[4] !== navigationOpen || $[5] !== props.navigation) {
|
|
1541
|
+
t4 = props.navigation && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { onClick: () => {
|
|
1542
|
+
setNavigationOpen(_temp$1);
|
|
1543
|
+
}, sx: {
|
|
1544
|
+
marginRight: 2
|
|
1545
|
+
}, children: navigationOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(MenuOpen, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1, {}) });
|
|
1546
|
+
$[4] = navigationOpen;
|
|
1547
|
+
$[5] = props.navigation;
|
|
1548
|
+
$[6] = t4;
|
|
1549
|
+
} else {
|
|
1550
|
+
t4 = $[6];
|
|
1551
|
+
}
|
|
1552
|
+
let t5;
|
|
1553
|
+
let t6;
|
|
1554
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1555
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(AppTitle, {});
|
|
1556
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarAccount, {});
|
|
1557
|
+
$[7] = t5;
|
|
1558
|
+
$[8] = t6;
|
|
1559
|
+
} else {
|
|
1560
|
+
t5 = $[7];
|
|
1561
|
+
t6 = $[8];
|
|
1562
|
+
}
|
|
1563
|
+
let t7;
|
|
1564
|
+
if ($[9] !== t4) {
|
|
1565
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(AppBar, { color: "transparent", position: "fixed", sx: t3, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Toolbar, { children: [
|
|
1566
|
+
t4,
|
|
1567
|
+
t5,
|
|
1568
|
+
t6
|
|
1569
|
+
] }) });
|
|
1570
|
+
$[9] = t4;
|
|
1571
|
+
$[10] = t7;
|
|
1572
|
+
} else {
|
|
1573
|
+
t7 = $[10];
|
|
1574
|
+
}
|
|
1575
|
+
let t8;
|
|
1576
|
+
if ($[11] !== navigationOpen || $[12] !== props.navigation) {
|
|
1577
|
+
t8 = props.navigation && /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationRail, { navigation: props.navigation, expanded: navigationOpen, setExpanded: (newValue_0) => {
|
|
1578
|
+
setNavigationOpen(newValue_0);
|
|
1579
|
+
document.cookie = `navigationOpen=${newValue_0}; max-age=${YEAR_IN_SECONDS}; path=/`;
|
|
1580
|
+
} });
|
|
1581
|
+
$[11] = navigationOpen;
|
|
1582
|
+
$[12] = props.navigation;
|
|
1583
|
+
$[13] = t8;
|
|
1584
|
+
} else {
|
|
1585
|
+
t8 = $[13];
|
|
1586
|
+
}
|
|
1587
|
+
let t10;
|
|
1588
|
+
let t9;
|
|
1589
|
+
if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1590
|
+
t9 = {
|
|
1591
|
+
flexGrow: 1,
|
|
1592
|
+
display: "flex",
|
|
1593
|
+
flexDirection: "column",
|
|
1594
|
+
minWidth: 0,
|
|
1595
|
+
height: "100%",
|
|
1596
|
+
overflow: "hidden"
|
|
1597
|
+
};
|
|
1598
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx(DrawerHeader, {});
|
|
1599
|
+
$[14] = t10;
|
|
1600
|
+
$[15] = t9;
|
|
1601
|
+
} else {
|
|
1602
|
+
t10 = $[14];
|
|
1603
|
+
t9 = $[15];
|
|
1604
|
+
}
|
|
1605
|
+
let t11;
|
|
1606
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1607
|
+
t11 = {
|
|
1608
|
+
flex: 1,
|
|
1609
|
+
overflow: "auto",
|
|
1610
|
+
position: "relative"
|
|
1611
|
+
};
|
|
1612
|
+
$[16] = t11;
|
|
1613
|
+
} else {
|
|
1614
|
+
t11 = $[16];
|
|
1615
|
+
}
|
|
1616
|
+
let t12;
|
|
1617
|
+
if ($[17] !== props.children) {
|
|
1618
|
+
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { component: "main", sx: t9, children: [
|
|
1619
|
+
t10,
|
|
1620
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { sx: t11, children: props.children })
|
|
1621
|
+
] });
|
|
1622
|
+
$[17] = props.children;
|
|
1623
|
+
$[18] = t12;
|
|
1624
|
+
} else {
|
|
1625
|
+
t12 = $[18];
|
|
1626
|
+
}
|
|
1627
|
+
let t13;
|
|
1628
|
+
if ($[19] !== t12 || $[20] !== t7 || $[21] !== t8) {
|
|
1629
|
+
t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { sx: t2, children: [
|
|
1630
|
+
t7,
|
|
1631
|
+
t8,
|
|
1632
|
+
t12
|
|
1633
|
+
] });
|
|
1634
|
+
$[19] = t12;
|
|
1635
|
+
$[20] = t7;
|
|
1636
|
+
$[21] = t8;
|
|
1637
|
+
$[22] = t13;
|
|
1638
|
+
} else {
|
|
1639
|
+
t13 = $[22];
|
|
1640
|
+
}
|
|
1641
|
+
let t14;
|
|
1642
|
+
if ($[23] !== isFetching || $[24] !== isMutating) {
|
|
1643
|
+
t14 = (isFetching || isMutating) && /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, { sx: {
|
|
1644
|
+
position: "fixed",
|
|
1645
|
+
top: {
|
|
1646
|
+
xs: 56,
|
|
1647
|
+
sm: 64
|
|
1648
|
+
},
|
|
1649
|
+
left: 0,
|
|
1650
|
+
right: 0
|
|
1651
|
+
} });
|
|
1652
|
+
$[23] = isFetching;
|
|
1653
|
+
$[24] = isMutating;
|
|
1654
|
+
$[25] = t14;
|
|
1655
|
+
} else {
|
|
1656
|
+
t14 = $[25];
|
|
1657
|
+
}
|
|
1658
|
+
let t15;
|
|
1659
|
+
if ($[26] !== t13 || $[27] !== t14) {
|
|
1660
|
+
t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
1661
|
+
t0,
|
|
1662
|
+
t1,
|
|
1663
|
+
t13,
|
|
1664
|
+
t14
|
|
1665
|
+
] });
|
|
1666
|
+
$[26] = t13;
|
|
1667
|
+
$[27] = t14;
|
|
1668
|
+
$[28] = t15;
|
|
1669
|
+
} else {
|
|
1670
|
+
t15 = $[28];
|
|
1671
|
+
}
|
|
1672
|
+
return t15;
|
|
1673
|
+
};
|
|
1674
|
+
function _temp$1(previous) {
|
|
1675
|
+
const newValue = !previous;
|
|
1676
|
+
document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;
|
|
1677
|
+
return newValue;
|
|
1678
|
+
}
|
|
1679
|
+
const YEAR_IN_MINUTES = 60 * 24 * 365;
|
|
1680
|
+
i18n.use(LanguageDetector).use(initReactI18next).init({
|
|
1681
|
+
resources,
|
|
1682
|
+
fallbackLng: "en",
|
|
1683
|
+
supportedLngs: Object.keys(resources),
|
|
1684
|
+
detection: {
|
|
1685
|
+
caches: ["cookie"],
|
|
1686
|
+
cookieMinutes: YEAR_IN_MINUTES
|
|
1687
|
+
},
|
|
1688
|
+
interpolation: {
|
|
1689
|
+
escapeValue: false
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
const LayoutProvider = (t0) => {
|
|
1693
|
+
const $ = compilerRuntimeExports.c(9);
|
|
1694
|
+
const {
|
|
1695
|
+
navigation,
|
|
1696
|
+
theme,
|
|
1697
|
+
children
|
|
1698
|
+
} = t0;
|
|
1699
|
+
const languageChangedHandler = useEffectEvent(_temp);
|
|
1700
|
+
let t1;
|
|
1701
|
+
if ($[0] !== languageChangedHandler) {
|
|
1702
|
+
t1 = () => {
|
|
1703
|
+
languageChangedHandler();
|
|
1704
|
+
i18n.on("languageChanged", languageChangedHandler);
|
|
1705
|
+
return () => {
|
|
1706
|
+
i18n.off("languageChanged", languageChangedHandler);
|
|
1707
|
+
};
|
|
1708
|
+
};
|
|
1709
|
+
$[0] = languageChangedHandler;
|
|
1710
|
+
$[1] = t1;
|
|
1711
|
+
} else {
|
|
1712
|
+
t1 = $[1];
|
|
1713
|
+
}
|
|
1714
|
+
let t2;
|
|
1715
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1716
|
+
t2 = [];
|
|
1717
|
+
$[2] = t2;
|
|
1718
|
+
} else {
|
|
1719
|
+
t2 = $[2];
|
|
1720
|
+
}
|
|
1721
|
+
useEffect(t1, t2);
|
|
1722
|
+
let t3;
|
|
1723
|
+
if ($[3] !== children || $[4] !== navigation) {
|
|
1724
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n.language, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogsProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Layout, { navigation, children }) }) }, i18n.language);
|
|
1725
|
+
$[3] = children;
|
|
1726
|
+
$[4] = navigation;
|
|
1727
|
+
$[5] = t3;
|
|
1728
|
+
} else {
|
|
1729
|
+
t3 = $[5];
|
|
1730
|
+
}
|
|
1731
|
+
let t4;
|
|
1732
|
+
if ($[6] !== t3 || $[7] !== theme) {
|
|
1733
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: t3 });
|
|
1734
|
+
$[6] = t3;
|
|
1735
|
+
$[7] = theme;
|
|
1736
|
+
$[8] = t4;
|
|
1737
|
+
} else {
|
|
1738
|
+
t4 = $[8];
|
|
1739
|
+
}
|
|
1740
|
+
return t4;
|
|
1741
|
+
};
|
|
1742
|
+
const setSSRLanguage = createServerFn().handler(async () => {
|
|
1743
|
+
const language = getCookie(i18n.services.languageDetector.options.lookupCookie) || "en";
|
|
1744
|
+
z__default.config(z__default.core.locales[language]());
|
|
1745
|
+
dayjs.locale(language);
|
|
1746
|
+
await i18n.changeLanguage(language);
|
|
1747
|
+
});
|
|
1748
|
+
function _temp() {
|
|
1749
|
+
z__default.config(z__default.core.locales[i18n.language]());
|
|
1750
|
+
dayjs.locale(i18n.language);
|
|
1751
|
+
}
|
|
4
1752
|
export {
|
|
5
1753
|
LayoutProvider,
|
|
6
1754
|
getSessionUser,
|
|
7
|
-
rootRouteHead,
|
|
1755
|
+
r as rootRouteHead,
|
|
8
1756
|
setSSRLanguage
|
|
9
1757
|
};
|
|
10
1758
|
//# sourceMappingURL=index.js.map
|