@edge-zuq/core 1.2.7
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/LICENSE +20 -0
- package/README.md +99 -0
- package/lib/module/assets/logo.png +0 -0
- package/lib/module/data/errors/http-client-error.js +14 -0
- package/lib/module/data/errors/http-client-error.js.map +1 -0
- package/lib/module/data/errors/index.js +6 -0
- package/lib/module/data/errors/index.js.map +1 -0
- package/lib/module/data/errors/save-file-error.js +9 -0
- package/lib/module/data/errors/save-file-error.js.map +1 -0
- package/lib/module/data/errors/unsupported-platform.js +9 -0
- package/lib/module/data/errors/unsupported-platform.js.map +1 -0
- package/lib/module/data/models/index.js +6 -0
- package/lib/module/data/models/index.js.map +1 -0
- package/lib/module/data/models/remote-get-comment-list-model.js +2 -0
- package/lib/module/data/models/remote-get-comment-list-model.js.map +1 -0
- package/lib/module/data/models/remote-get-image-list-model.js +2 -0
- package/lib/module/data/models/remote-get-image-list-model.js.map +1 -0
- package/lib/module/data/models/remote-user-model.js +2 -0
- package/lib/module/data/models/remote-user-model.js.map +1 -0
- package/lib/module/data/protocols/cookie-manager.js +2 -0
- package/lib/module/data/protocols/cookie-manager.js.map +1 -0
- package/lib/module/data/protocols/download-manager.js +4 -0
- package/lib/module/data/protocols/download-manager.js.map +1 -0
- package/lib/module/data/protocols/http-client.js +26 -0
- package/lib/module/data/protocols/http-client.js.map +1 -0
- package/lib/module/data/protocols/index.js +9 -0
- package/lib/module/data/protocols/index.js.map +1 -0
- package/lib/module/data/protocols/notification-manager.js +4 -0
- package/lib/module/data/protocols/notification-manager.js.map +1 -0
- package/lib/module/data/protocols/permission-manager.js +4 -0
- package/lib/module/data/protocols/permission-manager.js.map +1 -0
- package/lib/module/data/protocols/storage.js +4 -0
- package/lib/module/data/protocols/storage.js.map +1 -0
- package/lib/module/data/use-cases/index.js +6 -0
- package/lib/module/data/use-cases/index.js.map +1 -0
- package/lib/module/data/use-cases/remote-get-comment-list.js +29 -0
- package/lib/module/data/use-cases/remote-get-comment-list.js.map +1 -0
- package/lib/module/data/use-cases/remote-get-image-list.js +32 -0
- package/lib/module/data/use-cases/remote-get-image-list.js.map +1 -0
- package/lib/module/data/use-cases/remote-send-diagnostics.js +20 -0
- package/lib/module/data/use-cases/remote-send-diagnostics.js.map +1 -0
- package/lib/module/domain/errors/authentication-expired-error.js +9 -0
- package/lib/module/domain/errors/authentication-expired-error.js.map +1 -0
- package/lib/module/domain/errors/index.js +7 -0
- package/lib/module/domain/errors/index.js.map +1 -0
- package/lib/module/domain/errors/internal-server-error.js +9 -0
- package/lib/module/domain/errors/internal-server-error.js.map +1 -0
- package/lib/module/domain/errors/invalid-credentials-error.js +9 -0
- package/lib/module/domain/errors/invalid-credentials-error.js.map +1 -0
- package/lib/module/domain/errors/no-app-permission-error.js +9 -0
- package/lib/module/domain/errors/no-app-permission-error.js.map +1 -0
- package/lib/module/domain/models/get-comment-list-model.js +2 -0
- package/lib/module/domain/models/get-comment-list-model.js.map +1 -0
- package/lib/module/domain/models/get-image-list-model.js +2 -0
- package/lib/module/domain/models/get-image-list-model.js.map +1 -0
- package/lib/module/domain/models/index.js +6 -0
- package/lib/module/domain/models/index.js.map +1 -0
- package/lib/module/domain/models/user-model.js +2 -0
- package/lib/module/domain/models/user-model.js.map +1 -0
- package/lib/module/domain/use-cases/get-comment-list.js +4 -0
- package/lib/module/domain/use-cases/get-comment-list.js.map +1 -0
- package/lib/module/domain/use-cases/get-image-list.js +4 -0
- package/lib/module/domain/use-cases/get-image-list.js.map +1 -0
- package/lib/module/domain/use-cases/index.js +9 -0
- package/lib/module/domain/use-cases/index.js.map +1 -0
- package/lib/module/domain/use-cases/record-request.js +4 -0
- package/lib/module/domain/use-cases/record-request.js.map +1 -0
- package/lib/module/domain/use-cases/send-diagnostics.js +4 -0
- package/lib/module/domain/use-cases/send-diagnostics.js.map +1 -0
- package/lib/module/domain/use-cases/user-authentication.js +4 -0
- package/lib/module/domain/use-cases/user-authentication.js.map +1 -0
- package/lib/module/domain/use-cases/user-logout.js +4 -0
- package/lib/module/domain/use-cases/user-logout.js.map +1 -0
- package/lib/module/index.js +16 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/infra/axios-http-client-adapter.js +199 -0
- package/lib/module/infra/axios-http-client-adapter.js.map +1 -0
- package/lib/module/infra/index.js +10 -0
- package/lib/module/infra/index.js.map +1 -0
- package/lib/module/infra/isomorphic-id-manager.js +83 -0
- package/lib/module/infra/isomorphic-id-manager.js.map +1 -0
- package/lib/module/infra/mmkv-storage-adapter.js +62 -0
- package/lib/module/infra/mmkv-storage-adapter.js.map +1 -0
- package/lib/module/infra/notifee-notification-manager-adapter.js +69 -0
- package/lib/module/infra/notifee-notification-manager-adapter.js.map +1 -0
- package/lib/module/infra/offline-mutation-queue.js +210 -0
- package/lib/module/infra/offline-mutation-queue.js.map +1 -0
- package/lib/module/infra/rnbu-download-manager-adapter.js +31 -0
- package/lib/module/infra/rnbu-download-manager-adapter.js.map +1 -0
- package/lib/module/infra/rnp-permission-manager-adapter.js +117 -0
- package/lib/module/infra/rnp-permission-manager-adapter.js.map +1 -0
- package/lib/module/infra/storage-cookie-manager-adapter.js +24 -0
- package/lib/module/infra/storage-cookie-manager-adapter.js.map +1 -0
- package/lib/module/main/components/index.js +7 -0
- package/lib/module/main/components/index.js.map +1 -0
- package/lib/module/main/components/request-permissions.js +14 -0
- package/lib/module/main/components/request-permissions.js.map +1 -0
- package/lib/module/main/factories/infra/download-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/download-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/http-client-factory.js +7 -0
- package/lib/module/main/factories/infra/http-client-factory.js.map +1 -0
- package/lib/module/main/factories/infra/index.js +10 -0
- package/lib/module/main/factories/infra/index.js.map +1 -0
- package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/notification-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/notification-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/offline-mutation-queue-factory.js +7 -0
- package/lib/module/main/factories/infra/offline-mutation-queue-factory.js.map +1 -0
- package/lib/module/main/factories/infra/permission-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/permission-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/storage-factory.js +10 -0
- package/lib/module/main/factories/infra/storage-factory.js.map +1 -0
- package/lib/module/main/factories/use-cases/index.js +6 -0
- package/lib/module/main/factories/use-cases/index.js.map +1 -0
- package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js +7 -0
- package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js.map +1 -0
- package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js +7 -0
- package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js.map +1 -0
- package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js +7 -0
- package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/presentation/components/atoms/UIBackdrop.js +31 -0
- package/lib/module/presentation/components/atoms/UIBackdrop.js.map +1 -0
- package/lib/module/presentation/components/atoms/UICheckbox.js +47 -0
- package/lib/module/presentation/components/atoms/UICheckbox.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIDot.js +33 -0
- package/lib/module/presentation/components/atoms/UIDot.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIIcon.js +1072 -0
- package/lib/module/presentation/components/atoms/UIIcon.js.map +1 -0
- package/lib/module/presentation/components/atoms/UILoading.js +19 -0
- package/lib/module/presentation/components/atoms/UILoading.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIPage.js +70 -0
- package/lib/module/presentation/components/atoms/UIPage.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIProgress.js +54 -0
- package/lib/module/presentation/components/atoms/UIProgress.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIScrollPage.js +72 -0
- package/lib/module/presentation/components/atoms/UIScrollPage.js.map +1 -0
- package/lib/module/presentation/components/atoms/UISeparator.js +30 -0
- package/lib/module/presentation/components/atoms/UISeparator.js.map +1 -0
- package/lib/module/presentation/components/atoms/UISpacer.js +19 -0
- package/lib/module/presentation/components/atoms/UISpacer.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIStack.js +31 -0
- package/lib/module/presentation/components/atoms/UIStack.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIText.js +48 -0
- package/lib/module/presentation/components/atoms/UIText.js.map +1 -0
- package/lib/module/presentation/components/atoms/index.js +15 -0
- package/lib/module/presentation/components/atoms/index.js.map +1 -0
- package/lib/module/presentation/components/index.js +4 -0
- package/lib/module/presentation/components/index.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIActionSheet.js +199 -0
- package/lib/module/presentation/components/molecules/UIActionSheet.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIButton.js +173 -0
- package/lib/module/presentation/components/molecules/UIButton.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIButtonCTA.js +31 -0
- package/lib/module/presentation/components/molecules/UIButtonCTA.js.map +1 -0
- package/lib/module/presentation/components/molecules/UICheckboxInput.js +84 -0
- package/lib/module/presentation/components/molecules/UICheckboxInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIChip.js +49 -0
- package/lib/module/presentation/components/molecules/UIChip.js.map +1 -0
- package/lib/module/presentation/components/molecules/UICurrencyInput.js +32 -0
- package/lib/module/presentation/components/molecules/UICurrencyInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIDataList.js +26 -0
- package/lib/module/presentation/components/molecules/UIDataList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIDataSectionList.js +26 -0
- package/lib/module/presentation/components/molecules/UIDataSectionList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIDatetimeInput.js +202 -0
- package/lib/module/presentation/components/molecules/UIDatetimeInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIError.js +32 -0
- package/lib/module/presentation/components/molecules/UIError.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIImage.js +87 -0
- package/lib/module/presentation/components/molecules/UIImage.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIInlineDatePicker.js +245 -0
- package/lib/module/presentation/components/molecules/UIInlineDatePicker.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIInputIcon.js +38 -0
- package/lib/module/presentation/components/molecules/UIInputIcon.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIList.js +16 -0
- package/lib/module/presentation/components/molecules/UIList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIRadioInput.js +78 -0
- package/lib/module/presentation/components/molecules/UIRadioInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UISectionList.js +16 -0
- package/lib/module/presentation/components/molecules/UISectionList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UISkeleton.js +54 -0
- package/lib/module/presentation/components/molecules/UISkeleton.js.map +1 -0
- package/lib/module/presentation/components/molecules/UISwitch.js +65 -0
- package/lib/module/presentation/components/molecules/UISwitch.js.map +1 -0
- package/lib/module/presentation/components/molecules/UITextInput.js +132 -0
- package/lib/module/presentation/components/molecules/UITextInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UITextInputMask.js +133 -0
- package/lib/module/presentation/components/molecules/UITextInputMask.js.map +1 -0
- package/lib/module/presentation/components/molecules/index.js +23 -0
- package/lib/module/presentation/components/molecules/index.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIAppBar.js +102 -0
- package/lib/module/presentation/components/organisms/UIAppBar.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIAppBarAction.js +21 -0
- package/lib/module/presentation/components/organisms/UIAppBarAction.js.map +1 -0
- package/lib/module/presentation/components/organisms/UICard.js +43 -0
- package/lib/module/presentation/components/organisms/UICard.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIComment.js +73 -0
- package/lib/module/presentation/components/organisms/UIComment.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIErrorBoundary.js +68 -0
- package/lib/module/presentation/components/organisms/UIErrorBoundary.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIForm.js +83 -0
- package/lib/module/presentation/components/organisms/UIForm.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormButton.js +43 -0
- package/lib/module/presentation/components/organisms/UIFormButton.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js +39 -0
- package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js +65 -0
- package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js +54 -0
- package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js +212 -0
- package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormRadioInput.js +36 -0
- package/lib/module/presentation/components/organisms/UIFormRadioInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormSelectInput.js +259 -0
- package/lib/module/presentation/components/organisms/UIFormSelectInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormTextInput.js +64 -0
- package/lib/module/presentation/components/organisms/UIFormTextInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormTextInputMask.js +69 -0
- package/lib/module/presentation/components/organisms/UIFormTextInputMask.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIRow.js +55 -0
- package/lib/module/presentation/components/organisms/UIRow.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISearchInput.js +33 -0
- package/lib/module/presentation/components/organisms/UISearchInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISelectChip.js +94 -0
- package/lib/module/presentation/components/organisms/UISelectChip.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISignature.js +159 -0
- package/lib/module/presentation/components/organisms/UISignature.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISlideButton.js +90 -0
- package/lib/module/presentation/components/organisms/UISlideButton.js.map +1 -0
- package/lib/module/presentation/components/organisms/index.js +24 -0
- package/lib/module/presentation/components/organisms/index.js.map +1 -0
- package/lib/module/presentation/components/permissions/index.js +4 -0
- package/lib/module/presentation/components/permissions/index.js.map +1 -0
- package/lib/module/presentation/components/permissions/request-permissions.js +96 -0
- package/lib/module/presentation/components/permissions/request-permissions.js.map +1 -0
- package/lib/module/presentation/domain/metadata/index.js +5 -0
- package/lib/module/presentation/domain/metadata/index.js.map +1 -0
- package/lib/module/presentation/domain/metadata/use-comments.js +26 -0
- package/lib/module/presentation/domain/metadata/use-comments.js.map +1 -0
- package/lib/module/presentation/domain/metadata/use-images.js +26 -0
- package/lib/module/presentation/domain/metadata/use-images.js.map +1 -0
- package/lib/module/presentation/domain/offline/index.js +12 -0
- package/lib/module/presentation/domain/offline/index.js.map +1 -0
- package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js +69 -0
- package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js.map +1 -0
- package/lib/module/presentation/domain/offline/types.js +4 -0
- package/lib/module/presentation/domain/offline/types.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-infinite-offline-query.js +69 -0
- package/lib/module/presentation/domain/offline/use-infinite-offline-query.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-id-v2.js +22 -0
- package/lib/module/presentation/domain/offline/use-offline-id-v2.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-id.js +11 -0
- package/lib/module/presentation/domain/offline/use-offline-id.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-mutation.js +115 -0
- package/lib/module/presentation/domain/offline/use-offline-mutation.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-query.js +33 -0
- package/lib/module/presentation/domain/offline/use-offline-query.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-queue.js +8 -0
- package/lib/module/presentation/domain/offline/use-offline-queue.js.map +1 -0
- package/lib/module/presentation/domain/offline/utils.js +110 -0
- package/lib/module/presentation/domain/offline/utils.js.map +1 -0
- package/lib/module/presentation/domain/provider/index.js +4 -0
- package/lib/module/presentation/domain/provider/index.js.map +1 -0
- package/lib/module/presentation/domain/provider/zuq-core-provider.js +51 -0
- package/lib/module/presentation/domain/provider/zuq-core-provider.js.map +1 -0
- package/lib/module/presentation/domain/utils/exists.js +6 -0
- package/lib/module/presentation/domain/utils/exists.js.map +1 -0
- package/lib/module/presentation/domain/utils/index.js +8 -0
- package/lib/module/presentation/domain/utils/index.js.map +1 -0
- package/lib/module/presentation/domain/utils/react-query.js +10 -0
- package/lib/module/presentation/domain/utils/react-query.js.map +1 -0
- package/lib/module/presentation/domain/utils/use-action-sheet.js +20 -0
- package/lib/module/presentation/domain/utils/use-action-sheet.js.map +1 -0
- package/lib/module/presentation/domain/utils/use-signature-ref.js +8 -0
- package/lib/module/presentation/domain/utils/use-signature-ref.js.map +1 -0
- package/lib/module/presentation/domain/utils/yup.js +5 -0
- package/lib/module/presentation/domain/utils/yup.js.map +1 -0
- package/lib/module/theme.js +211 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/data/errors/http-client-error.d.ts +13 -0
- package/lib/typescript/src/data/errors/http-client-error.d.ts.map +1 -0
- package/lib/typescript/src/data/errors/index.d.ts +4 -0
- package/lib/typescript/src/data/errors/index.d.ts.map +1 -0
- package/lib/typescript/src/data/errors/save-file-error.d.ts +4 -0
- package/lib/typescript/src/data/errors/save-file-error.d.ts.map +1 -0
- package/lib/typescript/src/data/errors/unsupported-platform.d.ts +4 -0
- package/lib/typescript/src/data/errors/unsupported-platform.d.ts.map +1 -0
- package/lib/typescript/src/data/models/index.d.ts +4 -0
- package/lib/typescript/src/data/models/index.d.ts.map +1 -0
- package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts +16 -0
- package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts.map +1 -0
- package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts +16 -0
- package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts.map +1 -0
- package/lib/typescript/src/data/models/remote-user-model.d.ts +14 -0
- package/lib/typescript/src/data/models/remote-user-model.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/cookie-manager.d.ts +7 -0
- package/lib/typescript/src/data/protocols/cookie-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/download-manager.d.ts +12 -0
- package/lib/typescript/src/data/protocols/download-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/http-client.d.ts +52 -0
- package/lib/typescript/src/data/protocols/http-client.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/index.d.ts +7 -0
- package/lib/typescript/src/data/protocols/index.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/notification-manager.d.ts +17 -0
- package/lib/typescript/src/data/protocols/notification-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/permission-manager.d.ts +23 -0
- package/lib/typescript/src/data/protocols/permission-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/storage.d.ts +17 -0
- package/lib/typescript/src/data/protocols/storage.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/index.d.ts +4 -0
- package/lib/typescript/src/data/use-cases/index.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts +9 -0
- package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts +10 -0
- package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts +11 -0
- package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/index.d.ts +5 -0
- package/lib/typescript/src/domain/errors/index.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/internal-server-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/internal-server-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/get-comment-list-model.d.ts +10 -0
- package/lib/typescript/src/domain/models/get-comment-list-model.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/get-image-list-model.d.ts +8 -0
- package/lib/typescript/src/domain/models/get-image-list-model.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/index.d.ts +4 -0
- package/lib/typescript/src/domain/models/index.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/user-model.d.ts +16 -0
- package/lib/typescript/src/domain/models/user-model.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts +12 -0
- package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/get-image-list.d.ts +12 -0
- package/lib/typescript/src/domain/use-cases/get-image-list.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/index.d.ts +7 -0
- package/lib/typescript/src/domain/use-cases/index.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/record-request.d.ts +14 -0
- package/lib/typescript/src/domain/use-cases/record-request.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts +15 -0
- package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/user-authentication.d.ts +12 -0
- package/lib/typescript/src/domain/use-cases/user-authentication.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/user-logout.d.ts +10 -0
- package/lib/typescript/src/domain/use-cases/user-logout.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +15 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/infra/axios-http-client-adapter.d.ts +33 -0
- package/lib/typescript/src/infra/axios-http-client-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/index.d.ts +8 -0
- package/lib/typescript/src/infra/index.d.ts.map +1 -0
- package/lib/typescript/src/infra/isomorphic-id-manager.d.ts +29 -0
- package/lib/typescript/src/infra/isomorphic-id-manager.d.ts.map +1 -0
- package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts +18 -0
- package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts +17 -0
- package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/offline-mutation-queue.d.ts +56 -0
- package/lib/typescript/src/infra/offline-mutation-queue.d.ts.map +1 -0
- package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts +7 -0
- package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts +20 -0
- package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts +12 -0
- package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/main/components/index.d.ts +5 -0
- package/lib/typescript/src/main/components/index.d.ts.map +1 -0
- package/lib/typescript/src/main/components/request-permissions.d.ts +6 -0
- package/lib/typescript/src/main/components/request-permissions.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts +3 -0
- package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/index.d.ts +8 -0
- package/lib/typescript/src/main/factories/infra/index.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts +5 -0
- package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts +3 -0
- package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/storage-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/storage-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/index.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/index.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts +11 -0
- package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts +133 -0
- package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts +9 -0
- package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts +20 -0
- package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts +17 -0
- package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts +9 -0
- package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts +14 -0
- package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIText.d.ts +14 -0
- package/lib/typescript/src/presentation/components/atoms/UIText.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/index.d.ts +13 -0
- package/lib/typescript/src/presentation/components/atoms/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/index.d.ts +2 -0
- package/lib/typescript/src/presentation/components/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts +17 -0
- package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts +18 -0
- package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts +8 -0
- package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts +16 -0
- package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts +17 -0
- package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts +11 -0
- package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts +9 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts +9 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts +10 -0
- package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIError.d.ts +8 -0
- package/lib/typescript/src/presentation/components/molecules/UIError.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts +11 -0
- package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts +15 -0
- package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts +9 -0
- package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIList.d.ts +5 -0
- package/lib/typescript/src/presentation/components/molecules/UIList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts +12 -0
- package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts +5 -0
- package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts +8 -0
- package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts +10 -0
- package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts +13 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts +16 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/index.d.ts +21 -0
- package/lib/typescript/src/presentation/components/molecules/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts +13 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts +6 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UICard.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UICard.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts +13 -0
- package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts +10 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts +30 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts +44 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts +14 -0
- package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts +6 -0
- package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts +13 -0
- package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts +26 -0
- package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts +8 -0
- package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/index.d.ts +22 -0
- package/lib/typescript/src/presentation/components/organisms/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/permissions/index.d.ts +2 -0
- package/lib/typescript/src/presentation/components/permissions/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts +15 -0
- package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/metadata/index.d.ts +3 -0
- package/lib/typescript/src/presentation/domain/metadata/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts +11 -0
- package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts +11 -0
- package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/index.d.ts +10 -0
- package/lib/typescript/src/presentation/domain/offline/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts +18 -0
- package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/types.d.ts +18 -0
- package/lib/typescript/src/presentation/domain/offline/types.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts +78 -0
- package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts +9 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts +3 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts +88 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts +8 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts +10 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/utils.d.ts +18 -0
- package/lib/typescript/src/presentation/domain/offline/utils.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/provider/index.d.ts +2 -0
- package/lib/typescript/src/presentation/domain/provider/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts +13 -0
- package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/exists.d.ts +2 -0
- package/lib/typescript/src/presentation/domain/utils/exists.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/index.d.ts +6 -0
- package/lib/typescript/src/presentation/domain/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/react-query.d.ts +5 -0
- package/lib/typescript/src/presentation/domain/utils/react-query.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts +6 -0
- package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts +15 -0
- package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/yup.d.ts +3 -0
- package/lib/typescript/src/presentation/domain/utils/yup.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +214 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/package.json +210 -0
- package/src/assets/logo.png +0 -0
- package/src/data/errors/http-client-error.ts +23 -0
- package/src/data/errors/index.ts +3 -0
- package/src/data/errors/save-file-error.ts +6 -0
- package/src/data/errors/unsupported-platform.ts +6 -0
- package/src/data/models/index.ts +3 -0
- package/src/data/models/remote-get-comment-list-model.ts +15 -0
- package/src/data/models/remote-get-image-list-model.ts +15 -0
- package/src/data/models/remote-user-model.ts +13 -0
- package/src/data/protocols/cookie-manager.ts +6 -0
- package/src/data/protocols/download-manager.ts +13 -0
- package/src/data/protocols/http-client.ts +75 -0
- package/src/data/protocols/index.ts +6 -0
- package/src/data/protocols/notification-manager.ts +17 -0
- package/src/data/protocols/permission-manager.ts +46 -0
- package/src/data/protocols/storage.ts +18 -0
- package/src/data/use-cases/index.ts +3 -0
- package/src/data/use-cases/remote-get-comment-list.ts +34 -0
- package/src/data/use-cases/remote-get-image-list.ts +40 -0
- package/src/data/use-cases/remote-send-diagnostics.ts +20 -0
- package/src/domain/errors/authentication-expired-error.ts +6 -0
- package/src/domain/errors/index.ts +4 -0
- package/src/domain/errors/internal-server-error.ts +6 -0
- package/src/domain/errors/invalid-credentials-error.ts +6 -0
- package/src/domain/errors/no-app-permission-error.ts +6 -0
- package/src/domain/models/get-comment-list-model.ts +9 -0
- package/src/domain/models/get-image-list-model.ts +7 -0
- package/src/domain/models/index.ts +3 -0
- package/src/domain/models/user-model.ts +15 -0
- package/src/domain/use-cases/get-comment-list.ts +14 -0
- package/src/domain/use-cases/get-image-list.ts +14 -0
- package/src/domain/use-cases/index.ts +6 -0
- package/src/domain/use-cases/record-request.ts +15 -0
- package/src/domain/use-cases/send-diagnostics.ts +15 -0
- package/src/domain/use-cases/user-authentication.ts +16 -0
- package/src/domain/use-cases/user-logout.ts +10 -0
- package/src/index.tsx +29 -0
- package/src/infra/axios-http-client-adapter.ts +271 -0
- package/src/infra/index.ts +7 -0
- package/src/infra/isomorphic-id-manager.ts +107 -0
- package/src/infra/mmkv-storage-adapter.ts +73 -0
- package/src/infra/notifee-notification-manager-adapter.ts +87 -0
- package/src/infra/offline-mutation-queue.ts +280 -0
- package/src/infra/rnbu-download-manager-adapter.ts +29 -0
- package/src/infra/rnp-permission-manager-adapter.ts +147 -0
- package/src/infra/storage-cookie-manager-adapter.ts +29 -0
- package/src/main/components/index.ts +4 -0
- package/src/main/components/request-permissions.tsx +17 -0
- package/src/main/factories/infra/download-manager-factory.ts +6 -0
- package/src/main/factories/infra/http-client-factory.ts +9 -0
- package/src/main/factories/infra/index.ts +7 -0
- package/src/main/factories/infra/isomorphic-id-manager-factory.ts +6 -0
- package/src/main/factories/infra/notification-manager-factory.ts +8 -0
- package/src/main/factories/infra/offline-mutation-queue-factory.ts +22 -0
- package/src/main/factories/infra/permission-manager-factory.ts +6 -0
- package/src/main/factories/infra/storage-factory.ts +11 -0
- package/src/main/factories/use-cases/index.ts +3 -0
- package/src/main/factories/use-cases/remote-get-comment-list-factory.ts +6 -0
- package/src/main/factories/use-cases/remote-get-image-list-factory.ts +6 -0
- package/src/main/factories/use-cases/remote-send-diagnostics-factory.ts +10 -0
- package/src/presentation/components/atoms/UIBackdrop.tsx +35 -0
- package/src/presentation/components/atoms/UICheckbox.tsx +58 -0
- package/src/presentation/components/atoms/UIDot.tsx +40 -0
- package/src/presentation/components/atoms/UIIcon.tsx +1091 -0
- package/src/presentation/components/atoms/UILoading.tsx +17 -0
- package/src/presentation/components/atoms/UIPage.tsx +92 -0
- package/src/presentation/components/atoms/UIProgress.tsx +60 -0
- package/src/presentation/components/atoms/UIScrollPage.tsx +87 -0
- package/src/presentation/components/atoms/UISeparator.tsx +41 -0
- package/src/presentation/components/atoms/UISpacer.tsx +21 -0
- package/src/presentation/components/atoms/UIStack.tsx +44 -0
- package/src/presentation/components/atoms/UIText.tsx +59 -0
- package/src/presentation/components/atoms/index.ts +12 -0
- package/src/presentation/components/index.ts +1 -0
- package/src/presentation/components/molecules/UIActionSheet.tsx +230 -0
- package/src/presentation/components/molecules/UIButton.tsx +192 -0
- package/src/presentation/components/molecules/UIButtonCTA.tsx +38 -0
- package/src/presentation/components/molecules/UICheckboxInput.tsx +106 -0
- package/src/presentation/components/molecules/UIChip.tsx +69 -0
- package/src/presentation/components/molecules/UICurrencyInput.tsx +43 -0
- package/src/presentation/components/molecules/UIDataList.tsx +30 -0
- package/src/presentation/components/molecules/UIDataSectionList.tsx +30 -0
- package/src/presentation/components/molecules/UIDatetimeInput.tsx +205 -0
- package/src/presentation/components/molecules/UIError.tsx +24 -0
- package/src/presentation/components/molecules/UIImage.tsx +85 -0
- package/src/presentation/components/molecules/UIInlineDatePicker.tsx +244 -0
- package/src/presentation/components/molecules/UIInputIcon.tsx +39 -0
- package/src/presentation/components/molecules/UIList.tsx +17 -0
- package/src/presentation/components/molecules/UIRadioInput.tsx +97 -0
- package/src/presentation/components/molecules/UISectionList.tsx +17 -0
- package/src/presentation/components/molecules/UISkeleton.tsx +66 -0
- package/src/presentation/components/molecules/UISwitch.tsx +72 -0
- package/src/presentation/components/molecules/UITextInput.tsx +160 -0
- package/src/presentation/components/molecules/UITextInputMask.tsx +160 -0
- package/src/presentation/components/molecules/index.ts +20 -0
- package/src/presentation/components/organisms/UIAppBar.tsx +103 -0
- package/src/presentation/components/organisms/UIAppBarAction.tsx +13 -0
- package/src/presentation/components/organisms/UICard.tsx +48 -0
- package/src/presentation/components/organisms/UIComment.tsx +64 -0
- package/src/presentation/components/organisms/UIErrorBoundary.tsx +72 -0
- package/src/presentation/components/organisms/UIForm.tsx +81 -0
- package/src/presentation/components/organisms/UIFormButton.tsx +38 -0
- package/src/presentation/components/organisms/UIFormCheckboxInput.tsx +35 -0
- package/src/presentation/components/organisms/UIFormCurrencyInput.tsx +65 -0
- package/src/presentation/components/organisms/UIFormDatetimeInput.tsx +51 -0
- package/src/presentation/components/organisms/UIFormMultiselectInput.tsx +251 -0
- package/src/presentation/components/organisms/UIFormRadioInput.tsx +32 -0
- package/src/presentation/components/organisms/UIFormSelectInput.tsx +316 -0
- package/src/presentation/components/organisms/UIFormTextInput.tsx +62 -0
- package/src/presentation/components/organisms/UIFormTextInputMask.tsx +79 -0
- package/src/presentation/components/organisms/UIRow.tsx +61 -0
- package/src/presentation/components/organisms/UISearchInput.tsx +40 -0
- package/src/presentation/components/organisms/UISelectChip.tsx +104 -0
- package/src/presentation/components/organisms/UISignature.tsx +194 -0
- package/src/presentation/components/organisms/UISlideButton.tsx +112 -0
- package/src/presentation/components/organisms/index.ts +21 -0
- package/src/presentation/components/permissions/index.ts +1 -0
- package/src/presentation/components/permissions/request-permissions.tsx +115 -0
- package/src/presentation/domain/metadata/index.ts +2 -0
- package/src/presentation/domain/metadata/use-comments.ts +27 -0
- package/src/presentation/domain/metadata/use-images.ts +27 -0
- package/src/presentation/domain/offline/index.ts +9 -0
- package/src/presentation/domain/offline/offline-mutation-queue-provider.tsx +95 -0
- package/src/presentation/domain/offline/types.ts +21 -0
- package/src/presentation/domain/offline/use-infinite-offline-query.tsx +89 -0
- package/src/presentation/domain/offline/use-offline-id-v2.ts +29 -0
- package/src/presentation/domain/offline/use-offline-id.ts +12 -0
- package/src/presentation/domain/offline/use-offline-mutation.ts +150 -0
- package/src/presentation/domain/offline/use-offline-query.ts +55 -0
- package/src/presentation/domain/offline/use-offline-queue.ts +6 -0
- package/src/presentation/domain/offline/utils.ts +139 -0
- package/src/presentation/domain/provider/index.ts +1 -0
- package/src/presentation/domain/provider/zuq-core-provider.tsx +52 -0
- package/src/presentation/domain/utils/exists.ts +3 -0
- package/src/presentation/domain/utils/index.ts +5 -0
- package/src/presentation/domain/utils/react-query.ts +10 -0
- package/src/presentation/domain/utils/use-action-sheet.ts +21 -0
- package/src/presentation/domain/utils/use-signature-ref.ts +19 -0
- package/src/presentation/domain/utils/yup.ts +3 -0
- package/src/theme.ts +240 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import { UIActionSheet, UICheckboxInput, UIDataList, UIInputIcon } from "../molecules/index.js";
|
|
6
|
+
import { UIFormButton } from "./UIFormButton.js";
|
|
7
|
+
import { useActionSheet } from "../../domain/utils/index.js";
|
|
8
|
+
import { UIFormTextInput } from "./UIFormTextInput.js";
|
|
9
|
+
import { UIIcon, UIStack, UIText } from "../atoms/index.js";
|
|
10
|
+
import { UIForm } from "./UIForm.js";
|
|
11
|
+
import { theme } from "../../../theme.js";
|
|
12
|
+
import * as Yup from 'yup';
|
|
13
|
+
import { useForm, useFormContext } from 'react-hook-form';
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
const schema = Yup.object({
|
|
16
|
+
name: Yup.string()
|
|
17
|
+
});
|
|
18
|
+
export const UIFormMultiselectInput = ({
|
|
19
|
+
title,
|
|
20
|
+
label,
|
|
21
|
+
name,
|
|
22
|
+
data,
|
|
23
|
+
loading,
|
|
24
|
+
refreshing,
|
|
25
|
+
getItemLabel,
|
|
26
|
+
getItemKey,
|
|
27
|
+
onRefresh,
|
|
28
|
+
variant = 'contained',
|
|
29
|
+
searchVariant = 'outlined',
|
|
30
|
+
placeholder,
|
|
31
|
+
sheetStyle,
|
|
32
|
+
contentStyle,
|
|
33
|
+
searchPlaceholder = 'Busque ou crie um novo item',
|
|
34
|
+
searchEmptyMessage = 'Não foram encontrados itens para essa busca',
|
|
35
|
+
createMessage = 'Criar novo item',
|
|
36
|
+
createVariant = 'contained',
|
|
37
|
+
emptyMessage = 'Não há itens encontrados',
|
|
38
|
+
onCreate,
|
|
39
|
+
getErrorMessage,
|
|
40
|
+
onClose: onCloseFromProps
|
|
41
|
+
}) => {
|
|
42
|
+
const ref = React.useRef(null);
|
|
43
|
+
const {
|
|
44
|
+
visible,
|
|
45
|
+
onClose: onCloseFromHook,
|
|
46
|
+
onOpen
|
|
47
|
+
} = useActionSheet();
|
|
48
|
+
const {
|
|
49
|
+
getValues: getValuesContext,
|
|
50
|
+
setValue: setValueContext,
|
|
51
|
+
watch: watchContext
|
|
52
|
+
} = useFormContext();
|
|
53
|
+
const {
|
|
54
|
+
watch,
|
|
55
|
+
getValues,
|
|
56
|
+
reset,
|
|
57
|
+
...rest
|
|
58
|
+
} = useForm();
|
|
59
|
+
const form = {
|
|
60
|
+
...rest,
|
|
61
|
+
watch,
|
|
62
|
+
getValues,
|
|
63
|
+
reset
|
|
64
|
+
};
|
|
65
|
+
const [isCreating, setIsCreating] = React.useState(false);
|
|
66
|
+
const onClose = () => {
|
|
67
|
+
ref.current?.blur();
|
|
68
|
+
onCloseFromProps?.();
|
|
69
|
+
onCloseFromHook();
|
|
70
|
+
reset();
|
|
71
|
+
};
|
|
72
|
+
const onSelect = item => {
|
|
73
|
+
const current = getValuesContext(name) ?? [];
|
|
74
|
+
const isSelected = current.find(value => getItemKey(value) === getItemKey(item));
|
|
75
|
+
if (isSelected) {
|
|
76
|
+
setValueContext(name, current.filter(data => getItemKey(data) !== getItemKey(item)));
|
|
77
|
+
} else {
|
|
78
|
+
setValueContext(name, [...current, item]);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const onSubmit = async ({
|
|
82
|
+
search
|
|
83
|
+
}) => {
|
|
84
|
+
if (!onCreate) return;
|
|
85
|
+
setIsCreating(true);
|
|
86
|
+
const data = await onCreate(search);
|
|
87
|
+
setIsCreating(false);
|
|
88
|
+
onSelect(data);
|
|
89
|
+
await onRefresh();
|
|
90
|
+
onClose();
|
|
91
|
+
};
|
|
92
|
+
const filteredData = React.useMemo(() => {
|
|
93
|
+
const search = getValues('search');
|
|
94
|
+
if (!data) return [];
|
|
95
|
+
if (!Array.isArray(data)) return [];
|
|
96
|
+
if (!search) return data;
|
|
97
|
+
return data.filter(item => String(getItemLabel(item) ?? '').toLowerCase().includes(search.toLowerCase()));
|
|
98
|
+
}, [data, getItemLabel, watch('search')]); //eslint-disable-line
|
|
99
|
+
|
|
100
|
+
const value = React.useMemo(() => {
|
|
101
|
+
const current = getValuesContext(name) ?? [];
|
|
102
|
+
return current.map(value => getItemLabel(value)).join(', ');
|
|
103
|
+
}, [name, getItemLabel, getValuesContext, watchContext(name)]); //eslint-disable-line
|
|
104
|
+
|
|
105
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
106
|
+
children: [/*#__PURE__*/_jsx(UIFormTextInput, {
|
|
107
|
+
caretHidden: true,
|
|
108
|
+
name: name,
|
|
109
|
+
ref: ref,
|
|
110
|
+
showSoftInputOnFocus: false,
|
|
111
|
+
onFocus: onOpen,
|
|
112
|
+
variant: variant,
|
|
113
|
+
label: label,
|
|
114
|
+
value: value,
|
|
115
|
+
placeholder: placeholder
|
|
116
|
+
}), /*#__PURE__*/_jsx(UIActionSheet, {
|
|
117
|
+
visible: visible,
|
|
118
|
+
onRequestClose: onClose,
|
|
119
|
+
title: title,
|
|
120
|
+
style: [styles.sheet, sheetStyle],
|
|
121
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
122
|
+
children: [/*#__PURE__*/_jsxs(UIForm, {
|
|
123
|
+
schema: schema,
|
|
124
|
+
form: form,
|
|
125
|
+
style: styles.form,
|
|
126
|
+
children: [/*#__PURE__*/_jsx(UIFormTextInput, {
|
|
127
|
+
name: "search",
|
|
128
|
+
placeholder: searchPlaceholder,
|
|
129
|
+
variant: searchVariant,
|
|
130
|
+
endIcon: /*#__PURE__*/_jsx(UIInputIcon, {
|
|
131
|
+
position: "end",
|
|
132
|
+
name: "search",
|
|
133
|
+
size: 24
|
|
134
|
+
})
|
|
135
|
+
}), !Boolean(filteredData.length) && Boolean(watch('search')) && /*#__PURE__*/_jsxs(UIStack, {
|
|
136
|
+
size: "md",
|
|
137
|
+
style: styles.emptySearch,
|
|
138
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
139
|
+
align: "center",
|
|
140
|
+
weight: "500",
|
|
141
|
+
children: searchEmptyMessage
|
|
142
|
+
}), onCreate && /*#__PURE__*/_jsx(UIFormButton, {
|
|
143
|
+
loading: isCreating,
|
|
144
|
+
variant: createVariant,
|
|
145
|
+
onSubmit: onSubmit,
|
|
146
|
+
getErrorMessage: getErrorMessage,
|
|
147
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
148
|
+
style: styles.create,
|
|
149
|
+
horizontal: true,
|
|
150
|
+
center: true,
|
|
151
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
152
|
+
color: "neutral-light-00",
|
|
153
|
+
children: createMessage
|
|
154
|
+
}), /*#__PURE__*/_jsx(UIIcon, {
|
|
155
|
+
name: "add",
|
|
156
|
+
size: 24,
|
|
157
|
+
color: theme.color.neutral.light['00']
|
|
158
|
+
})]
|
|
159
|
+
})
|
|
160
|
+
})]
|
|
161
|
+
})]
|
|
162
|
+
}), /*#__PURE__*/_jsx(UIDataList, {
|
|
163
|
+
data: filteredData,
|
|
164
|
+
loading: loading,
|
|
165
|
+
onRefresh: onRefresh,
|
|
166
|
+
refreshing: refreshing,
|
|
167
|
+
contentContainerStyle: [styles.content, contentStyle],
|
|
168
|
+
ListEmptyComponent: () => {
|
|
169
|
+
const search = getValues('search');
|
|
170
|
+
if (search) return null;
|
|
171
|
+
return /*#__PURE__*/_jsx(UIText, {
|
|
172
|
+
align: "center",
|
|
173
|
+
weight: "500",
|
|
174
|
+
style: styles.emptySearch,
|
|
175
|
+
children: emptyMessage
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
renderItem: ({
|
|
179
|
+
item
|
|
180
|
+
}) => {
|
|
181
|
+
const current = watchContext(name) ?? [];
|
|
182
|
+
const isSelected = Boolean(current.find(value => getItemKey(value) === getItemKey(item)));
|
|
183
|
+
const label = String(getItemLabel(item));
|
|
184
|
+
return /*#__PURE__*/_jsx(UICheckboxInput, {
|
|
185
|
+
selected: isSelected,
|
|
186
|
+
label: label,
|
|
187
|
+
onPress: () => onSelect(item)
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
})]
|
|
191
|
+
})
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
const styles = StyleSheet.create({
|
|
196
|
+
content: {
|
|
197
|
+
paddingBottom: 250
|
|
198
|
+
},
|
|
199
|
+
emptySearch: {
|
|
200
|
+
marginTop: 24
|
|
201
|
+
},
|
|
202
|
+
sheet: {
|
|
203
|
+
height: 440
|
|
204
|
+
},
|
|
205
|
+
form: {
|
|
206
|
+
marginHorizontal: 16
|
|
207
|
+
},
|
|
208
|
+
create: {
|
|
209
|
+
alignSelf: 'center'
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
//# sourceMappingURL=UIFormMultiselectInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","UIActionSheet","UICheckboxInput","UIDataList","UIInputIcon","UIFormButton","useActionSheet","UIFormTextInput","UIIcon","UIStack","UIText","UIForm","theme","Yup","useForm","useFormContext","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","schema","object","name","string","UIFormMultiselectInput","title","label","data","loading","refreshing","getItemLabel","getItemKey","onRefresh","variant","searchVariant","placeholder","sheetStyle","contentStyle","searchPlaceholder","searchEmptyMessage","createMessage","createVariant","emptyMessage","onCreate","getErrorMessage","onClose","onCloseFromProps","ref","useRef","visible","onCloseFromHook","onOpen","getValues","getValuesContext","setValue","setValueContext","watch","watchContext","reset","rest","form","isCreating","setIsCreating","useState","current","blur","onSelect","item","isSelected","find","value","filter","onSubmit","search","filteredData","useMemo","Array","isArray","String","toLowerCase","includes","map","join","children","caretHidden","showSoftInputOnFocus","onFocus","onRequestClose","style","styles","sheet","endIcon","position","size","Boolean","length","emptySearch","align","weight","create","horizontal","center","color","neutral","light","contentContainerStyle","content","ListEmptyComponent","renderItem","selected","onPress","paddingBottom","marginTop","height","marginHorizontal","alignSelf"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormMultiselectInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAmB,cAAc;AAEpD,SACEC,aAAa,EACbC,eAAe,EACfC,UAAU,E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AI,CAAC,CAChE,CAAC;YACD,MAAMzC,KAAK,GAAGoD,MAAM,CAAChD,YAAY,CAACqC,IAAI,CAAC,CAAC;YACxC,oBACEpD,IAAA,CAACf,eAAe;cACd6G,QAAQ,EAAEzC,UAAW;cACrB1C,KAAK,EAAEA,KAAM;cACboF,OAAO,EAAEA,CAAA,KAAM5C,QAAQ,CAACC,IAAI;YAAE,CAC/B,CAAC;UAEN;QAAE,CACH,CAAC;MAAA,CACK;IAAC,CACG,CAAC;EAAA,CAChB,CAAC;AAEP,CAAC;AAED,MAAMsB,MAAM,GAAG3F,UAAU,CAACqG,MAAM,CAAC;EAC/BO,OAAO,EAAE;IAAEK,aAAa,EAAE;EAAI,CAAC;EAC/Bf,WAAW,EAAE;IACXgB,SAAS,EAAE;EACb,CAAC;EACDtB,KAAK,EAAE;IAAEuB,MAAM,EAAE;EAAI,CAAC;EACtBrD,IAAI,EAAE;IACJsD,gBAAgB,EAAE;EACpB,CAAC;EACDf,MAAM,EAAE;IACNgB,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { UIRadioInput } from "../molecules/index.js";
|
|
5
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const UIFormRadioInput = ({
|
|
8
|
+
name,
|
|
9
|
+
value,
|
|
10
|
+
onPress,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
control
|
|
15
|
+
} = useFormContext();
|
|
16
|
+
const {
|
|
17
|
+
field
|
|
18
|
+
} = useController({
|
|
19
|
+
control,
|
|
20
|
+
name
|
|
21
|
+
});
|
|
22
|
+
const onSelect = e => {
|
|
23
|
+
onPress?.(e);
|
|
24
|
+
if (field.value === value) {
|
|
25
|
+
field.onChange(null);
|
|
26
|
+
} else {
|
|
27
|
+
field.onChange(value);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_jsx(UIRadioInput, {
|
|
31
|
+
onPress: onSelect,
|
|
32
|
+
selected: field.value === value,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=UIFormRadioInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","UIRadioInput","useController","useFormContext","jsx","_jsx","UIFormRadioInput","name","value","onPress","props","control","field","onSelect","e","onChange","selected"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormRadioInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,uBAAc;AAC3C,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQhE,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC,OAAO;EAAE,GAAGC;AAAa,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAQ,CAAC,GAAGR,cAAc,CAAC,CAAC;EAEpC,MAAM;IAAES;EAAM,CAAC,GAAGV,aAAa,CAAC;IAAES,OAAO;IAAEJ;EAAK,CAAC,CAAC;EAElD,MAAMM,QAAQ,GAAIC,CAAwB,IAAK;IAC7CL,OAAO,GAAGK,CAAC,CAAC;IACZ,IAAIF,KAAK,CAACJ,KAAK,KAAKA,KAAK,EAAE;MACzBI,KAAK,CAACG,QAAQ,CAAC,IAAI,CAAC;IACtB,CAAC,MAAM;MACLH,KAAK,CAACG,QAAQ,CAACP,KAAK,CAAC;IACvB;EACF,CAAC;EAED,oBACEH,IAAA,CAACJ,YAAY;IACXQ,OAAO,EAAEI,QAAS;IAClBG,QAAQ,EAAEJ,KAAK,CAACJ,KAAK,KAAKA,KAAM;IAAA,GAC5BE;EAAK,CACV,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import * as Yup from 'yup';
|
|
6
|
+
import { useForm, useFormContext } from 'react-hook-form';
|
|
7
|
+
import { UIActionSheet, UIDataList, UIInputIcon, UIRadioInput } from "../molecules/index.js";
|
|
8
|
+
import { UIFormButton } from "./UIFormButton.js";
|
|
9
|
+
import { UIFormTextInput } from "./UIFormTextInput.js";
|
|
10
|
+
import { UIIcon, UIStack, UIText } from "../atoms/index.js";
|
|
11
|
+
import { UIForm } from "./UIForm.js";
|
|
12
|
+
import { useActionSheet } from "../../domain/utils/index.js";
|
|
13
|
+
import { theme } from "../../../theme.js";
|
|
14
|
+
import _ from 'lodash';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
const schema = Yup.object({
|
|
17
|
+
name: Yup.string()
|
|
18
|
+
});
|
|
19
|
+
export const UIFormSelectInput = ({
|
|
20
|
+
title,
|
|
21
|
+
label,
|
|
22
|
+
name,
|
|
23
|
+
data,
|
|
24
|
+
loading,
|
|
25
|
+
refreshing,
|
|
26
|
+
getItemLabel,
|
|
27
|
+
getItemKey,
|
|
28
|
+
onRefresh,
|
|
29
|
+
variant = 'contained',
|
|
30
|
+
searchVariant = 'outlined',
|
|
31
|
+
placeholder,
|
|
32
|
+
sheetStyle,
|
|
33
|
+
contentStyle,
|
|
34
|
+
searchPlaceholder = 'Busque ou crie um novo item',
|
|
35
|
+
searchEmptyMessage = 'Não foram encontrados itens para essa busca',
|
|
36
|
+
createMessage = 'Criar novo item',
|
|
37
|
+
createVariant = 'contained',
|
|
38
|
+
emptyMessage = 'Não há itens encontrados',
|
|
39
|
+
onCreate,
|
|
40
|
+
getErrorMessage,
|
|
41
|
+
onClose: onCloseFromProps,
|
|
42
|
+
action,
|
|
43
|
+
ListFooterComponent,
|
|
44
|
+
onEndReached,
|
|
45
|
+
onSearch,
|
|
46
|
+
closeOnSelect,
|
|
47
|
+
sorted = false,
|
|
48
|
+
editable = true,
|
|
49
|
+
enableClientSearch = true,
|
|
50
|
+
inputStyle,
|
|
51
|
+
inputContainerStyle,
|
|
52
|
+
inputFormContainerStyle,
|
|
53
|
+
onFocus,
|
|
54
|
+
onBlur
|
|
55
|
+
}) => {
|
|
56
|
+
const ref = React.useRef(null);
|
|
57
|
+
const {
|
|
58
|
+
visible,
|
|
59
|
+
onClose: onCloseFromHook,
|
|
60
|
+
onOpen
|
|
61
|
+
} = useActionSheet();
|
|
62
|
+
const {
|
|
63
|
+
getValues: getValuesContext,
|
|
64
|
+
setValue: setValueContext,
|
|
65
|
+
watch: watchContext,
|
|
66
|
+
clearErrors: clearErrorsContext
|
|
67
|
+
} = useFormContext();
|
|
68
|
+
const {
|
|
69
|
+
watch,
|
|
70
|
+
getValues,
|
|
71
|
+
reset,
|
|
72
|
+
...rest
|
|
73
|
+
} = useForm();
|
|
74
|
+
const form = {
|
|
75
|
+
...rest,
|
|
76
|
+
watch,
|
|
77
|
+
getValues,
|
|
78
|
+
reset
|
|
79
|
+
};
|
|
80
|
+
const [isCreating, setIsCreating] = React.useState(false);
|
|
81
|
+
const onClose = React.useCallback(() => {
|
|
82
|
+
ref.current?.blur();
|
|
83
|
+
onCloseFromProps?.();
|
|
84
|
+
onCloseFromHook();
|
|
85
|
+
onSearch?.('');
|
|
86
|
+
reset();
|
|
87
|
+
}, [onCloseFromProps, onCloseFromHook, onSearch, reset]);
|
|
88
|
+
const onSelect = item => {
|
|
89
|
+
const current = getValuesContext(name);
|
|
90
|
+
const isSelected = current && getItemKey(current) === getItemKey(item);
|
|
91
|
+
if (isSelected) {
|
|
92
|
+
setValueContext(name, undefined);
|
|
93
|
+
} else {
|
|
94
|
+
setValueContext(name, item);
|
|
95
|
+
clearErrorsContext(name);
|
|
96
|
+
}
|
|
97
|
+
if (closeOnSelect) onClose();
|
|
98
|
+
};
|
|
99
|
+
const onSubmit = async ({
|
|
100
|
+
search
|
|
101
|
+
}) => {
|
|
102
|
+
if (!onCreate) return;
|
|
103
|
+
setIsCreating(true);
|
|
104
|
+
const data = await onCreate(search);
|
|
105
|
+
setIsCreating(false);
|
|
106
|
+
onSelect(data);
|
|
107
|
+
await onRefresh();
|
|
108
|
+
onClose();
|
|
109
|
+
};
|
|
110
|
+
const filteredData = React.useMemo(() => {
|
|
111
|
+
const search = getValues('search');
|
|
112
|
+
if (!data) return [];
|
|
113
|
+
if (!Array.isArray(data)) return [];
|
|
114
|
+
let filtered = data;
|
|
115
|
+
if (enableClientSearch && search) {
|
|
116
|
+
filtered = data.filter(item => String(getItemLabel(item) ?? '').toLowerCase().includes(search.toLowerCase()));
|
|
117
|
+
}
|
|
118
|
+
if (sorted) {
|
|
119
|
+
filtered = filtered.sort((a, b) => String(getItemLabel(a)).localeCompare(String(getItemLabel(b))));
|
|
120
|
+
}
|
|
121
|
+
return filtered;
|
|
122
|
+
}, [data, sorted, getItemLabel, watch('search')]); //eslint-disable-line
|
|
123
|
+
|
|
124
|
+
const value = React.useMemo(() => {
|
|
125
|
+
const current = getValuesContext(name);
|
|
126
|
+
if (current) {
|
|
127
|
+
return String(getItemLabel(current));
|
|
128
|
+
}
|
|
129
|
+
return;
|
|
130
|
+
}, [name, getItemLabel, getValuesContext, watchContext(name)]); //eslint-disable-line
|
|
131
|
+
|
|
132
|
+
//eslint-disable-next-line
|
|
133
|
+
const onSearchDebounced = React.useCallback(_.debounce(value => {
|
|
134
|
+
onSearch?.(value);
|
|
135
|
+
}, 1000), [onSearch]);
|
|
136
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
137
|
+
children: [/*#__PURE__*/_jsx(UIFormTextInput, {
|
|
138
|
+
caretHidden: true,
|
|
139
|
+
name: name,
|
|
140
|
+
ref: ref,
|
|
141
|
+
showSoftInputOnFocus: false,
|
|
142
|
+
onFocus: () => {
|
|
143
|
+
onOpen();
|
|
144
|
+
onFocus?.();
|
|
145
|
+
},
|
|
146
|
+
onBlur: onBlur,
|
|
147
|
+
variant: variant,
|
|
148
|
+
label: label,
|
|
149
|
+
value: value,
|
|
150
|
+
placeholder: placeholder,
|
|
151
|
+
editable: editable,
|
|
152
|
+
style: inputStyle,
|
|
153
|
+
containerStyle: inputContainerStyle,
|
|
154
|
+
formContainerStyle: inputFormContainerStyle
|
|
155
|
+
}), /*#__PURE__*/_jsx(UIActionSheet, {
|
|
156
|
+
visible: visible,
|
|
157
|
+
onRequestClose: onClose,
|
|
158
|
+
title: title,
|
|
159
|
+
style: sheetStyle,
|
|
160
|
+
estimatedHeight: 520,
|
|
161
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
162
|
+
flex: 1,
|
|
163
|
+
children: [/*#__PURE__*/_jsxs(UIForm, {
|
|
164
|
+
schema: schema,
|
|
165
|
+
form: form,
|
|
166
|
+
style: styles.form,
|
|
167
|
+
children: [/*#__PURE__*/_jsxs(UIStack, {
|
|
168
|
+
horizontal: true,
|
|
169
|
+
center: true,
|
|
170
|
+
children: [/*#__PURE__*/_jsx(UIFormTextInput, {
|
|
171
|
+
name: "search",
|
|
172
|
+
placeholder: searchPlaceholder,
|
|
173
|
+
variant: searchVariant,
|
|
174
|
+
onChangeText: text => onSearchDebounced(text),
|
|
175
|
+
endIcon: /*#__PURE__*/_jsx(UIInputIcon, {
|
|
176
|
+
position: "end",
|
|
177
|
+
name: "search",
|
|
178
|
+
size: 24
|
|
179
|
+
})
|
|
180
|
+
}), action]
|
|
181
|
+
}), !Boolean(filteredData.length) && Boolean(watch('search')) && /*#__PURE__*/_jsxs(UIStack, {
|
|
182
|
+
size: "md",
|
|
183
|
+
style: styles.emptySearch,
|
|
184
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
185
|
+
align: "center",
|
|
186
|
+
weight: "500",
|
|
187
|
+
children: searchEmptyMessage
|
|
188
|
+
}), onCreate && /*#__PURE__*/_jsx(UIFormButton, {
|
|
189
|
+
loading: isCreating,
|
|
190
|
+
variant: createVariant,
|
|
191
|
+
onSubmit: onSubmit,
|
|
192
|
+
getErrorMessage: getErrorMessage,
|
|
193
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
194
|
+
style: styles.create,
|
|
195
|
+
horizontal: true,
|
|
196
|
+
center: true,
|
|
197
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
198
|
+
color: "neutral-light-00",
|
|
199
|
+
children: createMessage
|
|
200
|
+
}), /*#__PURE__*/_jsx(UIIcon, {
|
|
201
|
+
name: "add",
|
|
202
|
+
size: 24,
|
|
203
|
+
color: theme.color.neutral.light['00']
|
|
204
|
+
})]
|
|
205
|
+
})
|
|
206
|
+
})]
|
|
207
|
+
})]
|
|
208
|
+
}), /*#__PURE__*/_jsx(UIDataList, {
|
|
209
|
+
data: filteredData,
|
|
210
|
+
loading: loading,
|
|
211
|
+
onRefresh: onRefresh,
|
|
212
|
+
refreshing: refreshing,
|
|
213
|
+
style: styles.list,
|
|
214
|
+
contentContainerStyle: contentStyle,
|
|
215
|
+
ListFooterComponent: ListFooterComponent,
|
|
216
|
+
onEndReached: onEndReached,
|
|
217
|
+
ListEmptyComponent: () => {
|
|
218
|
+
const search = getValues('search');
|
|
219
|
+
if (search) return null;
|
|
220
|
+
return /*#__PURE__*/_jsx(UIText, {
|
|
221
|
+
align: "center",
|
|
222
|
+
weight: "500",
|
|
223
|
+
style: styles.emptySearch,
|
|
224
|
+
children: emptyMessage
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
renderItem: ({
|
|
228
|
+
item
|
|
229
|
+
}) => {
|
|
230
|
+
const current = watchContext(name);
|
|
231
|
+
const isSelected = current && Boolean(getItemKey(current) === getItemKey(item));
|
|
232
|
+
const label = String(getItemLabel(item));
|
|
233
|
+
return /*#__PURE__*/_jsx(UIRadioInput, {
|
|
234
|
+
selected: isSelected,
|
|
235
|
+
label: label,
|
|
236
|
+
onPress: () => onSelect(item)
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
})]
|
|
240
|
+
})
|
|
241
|
+
})]
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
const styles = StyleSheet.create({
|
|
245
|
+
list: {
|
|
246
|
+
height: 350
|
|
247
|
+
},
|
|
248
|
+
emptySearch: {
|
|
249
|
+
marginTop: 24
|
|
250
|
+
},
|
|
251
|
+
form: {
|
|
252
|
+
flex: 1,
|
|
253
|
+
marginHorizontal: 16
|
|
254
|
+
},
|
|
255
|
+
create: {
|
|
256
|
+
alignSelf: 'center'
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
//# sourceMappingURL=UIFormSelectInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Yup","useForm","useFormContext","UIActionSheet","UIDataList","UIInputIcon","UIRadioInput","UIFormButton","UIFormTextInput","UIIcon","UIStack","UIText","UIForm","useActionSheet","theme","_","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","schema","object","name","string","UIFormSelectInput","title","label","data","loading","refreshing","getItemLabel","getItemKey","onRefresh","variant","searchVariant","placeholder","sheetStyle","contentStyle","searchPlaceholder","searchEmptyMessage","createMessage","createVariant","emptyMessage","onCreate","getErrorMessage","onClose","onCloseFromProps","action","ListFooterComponent","onEndReached","onSearch","closeOnSelect","sorted","editable","enableClientSearch","inputStyle","inputContainerStyle","inputFormContainerStyle","onFocus","onBlur","ref","useRef","visible","onCloseFromHook","onOpen","getValues","getValuesContext","setValue","setValueContext","watch","watchContext","clearErrors","clearErrorsContext","reset","rest","form","isCreating","setIsCreating","useState","useCallback","current","blur","onSelect","item","isSelected","undefined","onSubmit","search","filteredData","useMemo","Array","isArray","filtered","filter","String","toLowerCase","includes","sort","a","b","localeCompare","value","onSearchDebounced","debounce","children","caretHidden","showSoftInputOnFocus","style","containerStyle","formContainerStyle","onRequestClose","estimatedHeight","flex","styles","horizontal","center","onChangeText","text","endIcon","position","size","Boolean","length","emptySearch","align","weight","create","color","neutral","light","list","contentContainerStyle","ListEmptyComponent","renderItem","selected","onPress","height","marginTop","marginHorizontal","alignSelf"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormSelectInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAmB,cAAc;AAEpD,OAAO,KAAKC,GAAG,MAAM,KAAK;AAE1B,SAASC,OAAO,EAAEC,cAAc,QAAQ,iBAAiB;AACzD,SACEC,aAAa,EACbC,UAAU,EACVC,WAAW,EACXC,YAAY,QAEP,uBAAc;AACrB,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAClD,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,cAAc,QAAQ,6BAAoB;AACnD,SAASC,KAAK,QAAQ,mBAAgB;AACtC,OAAOC,CAAC,MAAM,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAEvB,MAAMC,MAAM,GAAGtB,GAAG,CAACuB,MAAM,CAAC;EACxBC,IAAI,EAAExB,GAAG,CAACyB,MAAM,CAAC;AACnB,CAAC,CAAC;AAsDF,OAAO,MAAMC,iBAAiB,GAAGA,CAAK;EACpCC,KAAK;EACLC,KAAK;EACLJ,IAAI;EACJK,IAAI;EACJC,OAAO;EACPC,UAAU;EACVC,YAAY;EACZC,UAAU;EACVC,SAAS;EACTC,OAAO,GAAG,WAAW;EACrBC,aAAa,GAAG,UAAU;EAC1BC,WAAW;EACXC,UAAU;EACVC,YAAY;EACZC,iBAAiB,GAAG,6BAA6B;EACjDC,kBAAkB,GAAG,6CAA6C;EAClEC,aAAa,GAAG,iBAAiB;EACjCC,aAAa,GAAG,WAAW;EAC3BC,YAAY,GAAG,0BAA0B;EACzCC,QAAQ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,EAC3D9D;YAAY,CACP,CAAC;UAEb,CAAE;UACF2F,UAAU,EAAEA,CAAC;YAAElD;UAAK,CAAC,KAAK;YACxB,MAAMH,OAAO,GAAGV,YAAY,CAAChD,IAAI,CAAM;YACvC,MAAM8D,UAAU,GACdJ,OAAO,IAAIyC,OAAO,CAAC1F,UAAU,CAACiD,OAAO,CAAC,KAAKjD,UAAU,CAACoD,IAAI,CAAC,CAAC;YAC9D,MAAMzD,KAAK,GAAGoE,MAAM,CAAChE,YAAY,CAACqD,IAAI,CAAC,CAAC;YACxC,oBACEpE,IAAA,CAACX,YAAY;cACXkI,QAAQ,EAAElD,UAAW;cACrB1D,KAAK,EAAEA,KAAM;cACb6G,OAAO,EAAEA,CAAA,KAAMrD,QAAQ,CAACC,IAAI;YAAE,CAC/B,CAAC;UAEN;QAAE,CACH,CAAC;MAAA,CACK;IAAC,CACG,CAAC;EAAA,CAChB,CAAC;AAEP,CAAC;AAED,MAAM8B,MAAM,GAAGpH,UAAU,CAACiI,MAAM,CAAC;EAC/BI,IAAI,EAAE;IAAEM,MAAM,EAAE;EAAI,CAAC;EACrBb,WAAW,EAAE;IACXc,SAAS,EAAE;EACb,CAAC;EACD9D,IAAI,EAAE;IACJqC,IAAI,EAAE,CAAC;IACP0B,gBAAgB,EAAE;EACpB,CAAC;EACDZ,MAAM,EAAE;IACNa,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { UITextInput } from "../molecules/index.js";
|
|
5
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
6
|
+
import { theme } from "../../../theme.js";
|
|
7
|
+
import { UIIcon, UIText, UIStack } from "../atoms/index.js";
|
|
8
|
+
import { StyleSheet } from 'react-native';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const UIFormTextInput = /*#__PURE__*/React.forwardRef(({
|
|
11
|
+
name,
|
|
12
|
+
containerStyle,
|
|
13
|
+
onChangeText,
|
|
14
|
+
editable,
|
|
15
|
+
formContainerStyle,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
18
|
+
const {
|
|
19
|
+
control,
|
|
20
|
+
formState: {
|
|
21
|
+
errors,
|
|
22
|
+
isSubmitting
|
|
23
|
+
}
|
|
24
|
+
} = useFormContext();
|
|
25
|
+
const {
|
|
26
|
+
field
|
|
27
|
+
} = useController({
|
|
28
|
+
name,
|
|
29
|
+
control
|
|
30
|
+
});
|
|
31
|
+
const hasError = Boolean(errors[name]);
|
|
32
|
+
return /*#__PURE__*/_jsxs(UIStack, {
|
|
33
|
+
style: [styles.container, formContainerStyle],
|
|
34
|
+
children: [/*#__PURE__*/_jsx(UITextInput, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
value: field.value,
|
|
37
|
+
editable: isSubmitting || editable,
|
|
38
|
+
onChangeText: text => {
|
|
39
|
+
field.onChange(text);
|
|
40
|
+
onChangeText?.(text);
|
|
41
|
+
},
|
|
42
|
+
containerStyle: [hasError && {
|
|
43
|
+
borderColor: theme.color.feedback.red['500']
|
|
44
|
+
}, containerStyle],
|
|
45
|
+
...props
|
|
46
|
+
}), hasError && /*#__PURE__*/_jsxs(UIStack, {
|
|
47
|
+
horizontal: true,
|
|
48
|
+
center: true,
|
|
49
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
50
|
+
color: "feedback-red-500",
|
|
51
|
+
children: errors[name]?.message?.toString()
|
|
52
|
+
}), /*#__PURE__*/_jsx(UIIcon, {
|
|
53
|
+
name: "warning",
|
|
54
|
+
color: theme.color.feedback.red['500']
|
|
55
|
+
})]
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const styles = StyleSheet.create({
|
|
60
|
+
container: {
|
|
61
|
+
flexGrow: 1
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=UIFormTextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","UITextInput","useController","useFormContext","theme","UIIcon","UIText","UIStack","StyleSheet","jsx","_jsx","jsxs","_jsxs","UIFormTextInput","forwardRef","name","containerStyle","onChangeText","editable","formContainerStyle","props","ref","control","formState","errors","isSubmitting","field","hasError","Boolean","style","styles","container","children","value","text","onChange","borderColor","color","feedback","red","horizontal","center","message","toString","create","flexGrow"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormTextInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,uBAAc;AAC1C,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAC/D,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,mBAAU;AAClD,SAASC,UAAU,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1D,OAAO,MAAMC,eAAe,gBAAGb,KAAK,CAACc,UAAU,CAC7C,CACE;EACEC,IAAI;EACJC,cAAc;EACdC,YAAY;EACZC,QAAQ;EACRC,kBAAkB;EAClB,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAM;IACJC,OAAO;IACPC,SAAS,EAAE;MAAEC,MAAM;MAAEC;IAAa;EACpC,CAAC,GAAGtB,cAAc,CAAC,CAAC;EACpB,MAAM;IAAEuB;EAAM,CAAC,GAAGxB,aAAa,CAAC;IAAEa,IAAI;IAAEO;EAAQ,CAAC,CAAC;EAElD,MAAMK,QAAQ,GAAGC,OAAO,CAACJ,MAAM,CAACT,IAAI,CAAC,CAAC;EAEtC,oBACEH,KAAA,CAACL,OAAO;IAACsB,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEZ,kBAAkB,CAAE;IAAAa,QAAA,gBACrDtB,IAAA,CAACT,WAAW;MACV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