@networkinternational/ni-card-management-sdk 1.0.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/LICENSE +21 -0
- package/README.md +651 -0
- package/android/build.gradle +95 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/nicardmanagement/JsonDeserialization.kt +24 -0
- package/android/src/main/java/com/nicardmanagement/NiCardManagementModule.kt +163 -0
- package/android/src/main/java/com/nicardmanagement/NiCardManagementPackage.kt +17 -0
- package/ios/NiCardManagement-Bridging-Header.h +2 -0
- package/ios/NiCardManagement.mm +29 -0
- package/ios/NiCardManagement.swift +142 -0
- package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js +71 -0
- package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/ChangePinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/ChangePinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js +17 -0
- package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/SetPinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/SetPinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/VerifyPinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/VerifyPinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js +52 -0
- package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js.map +1 -0
- package/lib/commonjs/assets/icons/content-copy.png +0 -0
- package/lib/commonjs/assets/icons/eye-off-outline.png +0 -0
- package/lib/commonjs/assets/icons/eye-outline.png +0 -0
- package/lib/commonjs/assets/icons/icons8-arrow-100.png +0 -0
- package/lib/commonjs/assets/icons/icons8-arrow-100_1.png +0 -0
- package/lib/commonjs/assets/icons/red-eye-off-outline.png +0 -0
- package/lib/commonjs/assets/icons/red-eye-outline.png +0 -0
- package/lib/commonjs/assets/images/grayCard.png +0 -0
- package/lib/commonjs/components/CardDetails/CardDetails.js +27 -0
- package/lib/commonjs/components/CardDetails/CardDetails.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js +29 -0
- package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardDetailsGroups.js +94 -0
- package/lib/commonjs/components/CardDetails/CardDetailsGroups.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js +67 -0
- package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardNumberGroup.js +69 -0
- package/lib/commonjs/components/CardDetails/CardNumberGroup.js.map +1 -0
- package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js +104 -0
- package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
- package/lib/commonjs/components/CardDetails/styles.js +98 -0
- package/lib/commonjs/components/CardDetails/styles.js.map +1 -0
- package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js +50 -0
- package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/CaptureNewPin.js +50 -0
- package/lib/commonjs/components/ChangePin/CaptureNewPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ChangePin.js +135 -0
- package/lib/commonjs/components/ChangePin/ChangePin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ConfirmPin.js +39 -0
- package/lib/commonjs/components/ChangePin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ReenterNewPin.js +53 -0
- package/lib/commonjs/components/ChangePin/ReenterNewPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/styles.js +29 -0
- package/lib/commonjs/components/ChangePin/styles.js.map +1 -0
- package/lib/commonjs/components/NIButton/NIButton.js +46 -0
- package/lib/commonjs/components/NIButton/NIButton.js.map +1 -0
- package/lib/commonjs/components/NIButton/styles.js +15 -0
- package/lib/commonjs/components/NIButton/styles.js.map +1 -0
- package/lib/commonjs/components/Pin/CapturePin.js +152 -0
- package/lib/commonjs/components/Pin/CapturePin.js.map +1 -0
- package/lib/commonjs/components/Pin/NextButton.js +40 -0
- package/lib/commonjs/components/Pin/NextButton.js.map +1 -0
- package/lib/commonjs/components/Pin/ShowHideButton.js +48 -0
- package/lib/commonjs/components/Pin/ShowHideButton.js.map +1 -0
- package/lib/commonjs/components/Pin/styles.js +61 -0
- package/lib/commonjs/components/Pin/styles.js.map +1 -0
- package/lib/commonjs/components/PinState/LoadingState.js +29 -0
- package/lib/commonjs/components/PinState/LoadingState.js.map +1 -0
- package/lib/commonjs/components/PinState/PinState.js +29 -0
- package/lib/commonjs/components/PinState/PinState.js.map +1 -0
- package/lib/commonjs/components/SetPin/ConfirmPin.js +39 -0
- package/lib/commonjs/components/SetPin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/ReenterCardPin.js +53 -0
- package/lib/commonjs/components/SetPin/ReenterCardPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/SetPin.js +118 -0
- package/lib/commonjs/components/SetPin/SetPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/SetUpNewCardPin.js +50 -0
- package/lib/commonjs/components/SetPin/SetUpNewCardPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/styles.js +29 -0
- package/lib/commonjs/components/SetPin/styles.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js +50 -0
- package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/ConfirmPin.js +40 -0
- package/lib/commonjs/components/VerifyPin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/VerifyPin.js +92 -0
- package/lib/commonjs/components/VerifyPin/VerifyPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/styles.js +26 -0
- package/lib/commonjs/components/VerifyPin/styles.js.map +1 -0
- package/lib/commonjs/components/ViewPin/ViewPin.js +76 -0
- package/lib/commonjs/components/ViewPin/ViewPin.js.map +1 -0
- package/lib/commonjs/components/ViewPin/styles.js +19 -0
- package/lib/commonjs/components/ViewPin/styles.js.map +1 -0
- package/lib/commonjs/components/icons/PredeterminedIcon.js +43 -0
- package/lib/commonjs/components/icons/PredeterminedIcon.js.map +1 -0
- package/lib/commonjs/config/configCard.js +9 -0
- package/lib/commonjs/config/configCard.js.map +1 -0
- package/lib/commonjs/config/localization.js +47 -0
- package/lib/commonjs/config/localization.js.map +1 -0
- package/lib/commonjs/config/themeColors.js +34 -0
- package/lib/commonjs/config/themeColors.js.map +1 -0
- package/lib/commonjs/hooks/useChangePin.js +37 -0
- package/lib/commonjs/hooks/useChangePin.js.map +1 -0
- package/lib/commonjs/hooks/useGetCardDetails.js +37 -0
- package/lib/commonjs/hooks/useGetCardDetails.js.map +1 -0
- package/lib/commonjs/hooks/useSetPin.js +37 -0
- package/lib/commonjs/hooks/useSetPin.js.map +1 -0
- package/lib/commonjs/hooks/useVerifyPin.js +37 -0
- package/lib/commonjs/hooks/useVerifyPin.js.map +1 -0
- package/lib/commonjs/hooks/useViewPin.js +37 -0
- package/lib/commonjs/hooks/useViewPin.js.map +1 -0
- package/lib/commonjs/index.js +72 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/interfaces/NiCardManagementInterfaces.js +2 -0
- package/lib/commonjs/interfaces/NiCardManagementInterfaces.js.map +1 -0
- package/lib/commonjs/interfaces/NiInputInterfaces.js +39 -0
- package/lib/commonjs/interfaces/NiInputInterfaces.js.map +1 -0
- package/lib/commonjs/interfaces/NiInterfaces.js +14 -0
- package/lib/commonjs/interfaces/NiInterfaces.js.map +1 -0
- package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js +9 -0
- package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js.map +1 -0
- package/lib/commonjs/utils/formatInput.js +10 -0
- package/lib/commonjs/utils/formatInput.js.map +1 -0
- package/lib/commonjs/utils/localization.js +13 -0
- package/lib/commonjs/utils/localization.js.map +1 -0
- package/lib/module/NICardManagementComponents/CardDetailsComponent.js +57 -0
- package/lib/module/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
- package/lib/module/NICardManagementComponents/ChangePinView.js +32 -0
- package/lib/module/NICardManagementComponents/ChangePinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/NiInputInterfaces.js +3 -0
- package/lib/module/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
- package/lib/module/NICardManagementComponents/SetPinView.js +32 -0
- package/lib/module/NICardManagementComponents/SetPinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/VerifyPinView.js +32 -0
- package/lib/module/NICardManagementComponents/VerifyPinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/ViewPinComponent.js +38 -0
- package/lib/module/NICardManagementComponents/ViewPinComponent.js.map +1 -0
- package/lib/module/assets/icons/content-copy.png +0 -0
- package/lib/module/assets/icons/eye-off-outline.png +0 -0
- package/lib/module/assets/icons/eye-outline.png +0 -0
- package/lib/module/assets/icons/icons8-arrow-100.png +0 -0
- package/lib/module/assets/icons/icons8-arrow-100_1.png +0 -0
- package/lib/module/assets/icons/red-eye-off-outline.png +0 -0
- package/lib/module/assets/icons/red-eye-outline.png +0 -0
- package/lib/module/assets/images/grayCard.png +0 -0
- package/lib/module/components/CardDetails/CardDetails.js +20 -0
- package/lib/module/components/CardDetails/CardDetails.js.map +1 -0
- package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js +22 -0
- package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
- package/lib/module/components/CardDetails/CardDetailsGroups.js +85 -0
- package/lib/module/components/CardDetails/CardDetailsGroups.js.map +1 -0
- package/lib/module/components/CardDetails/CardHolderNameGroups.js +60 -0
- package/lib/module/components/CardDetails/CardHolderNameGroups.js.map +1 -0
- package/lib/module/components/CardDetails/CardNumberGroup.js +62 -0
- package/lib/module/components/CardDetails/CardNumberGroup.js.map +1 -0
- package/lib/module/components/CardDetails/DateCVVGroupOneRow.js +97 -0
- package/lib/module/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
- package/lib/module/components/CardDetails/styles.js +92 -0
- package/lib/module/components/CardDetails/styles.js.map +1 -0
- package/lib/module/components/ChangePin/CaptureCurrentPin.js +43 -0
- package/lib/module/components/ChangePin/CaptureCurrentPin.js.map +1 -0
- package/lib/module/components/ChangePin/CaptureNewPin.js +43 -0
- package/lib/module/components/ChangePin/CaptureNewPin.js.map +1 -0
- package/lib/module/components/ChangePin/ChangePin.js +126 -0
- package/lib/module/components/ChangePin/ChangePin.js.map +1 -0
- package/lib/module/components/ChangePin/ConfirmPin.js +32 -0
- package/lib/module/components/ChangePin/ConfirmPin.js.map +1 -0
- package/lib/module/components/ChangePin/ReenterNewPin.js +46 -0
- package/lib/module/components/ChangePin/ReenterNewPin.js.map +1 -0
- package/lib/module/components/ChangePin/styles.js +23 -0
- package/lib/module/components/ChangePin/styles.js.map +1 -0
- package/lib/module/components/NIButton/NIButton.js +38 -0
- package/lib/module/components/NIButton/NIButton.js.map +1 -0
- package/lib/module/components/NIButton/styles.js +9 -0
- package/lib/module/components/NIButton/styles.js.map +1 -0
- package/lib/module/components/Pin/CapturePin.js +143 -0
- package/lib/module/components/Pin/CapturePin.js.map +1 -0
- package/lib/module/components/Pin/NextButton.js +33 -0
- package/lib/module/components/Pin/NextButton.js.map +1 -0
- package/lib/module/components/Pin/ShowHideButton.js +41 -0
- package/lib/module/components/Pin/ShowHideButton.js.map +1 -0
- package/lib/module/components/Pin/styles.js +55 -0
- package/lib/module/components/Pin/styles.js.map +1 -0
- package/lib/module/components/PinState/LoadingState.js +22 -0
- package/lib/module/components/PinState/LoadingState.js.map +1 -0
- package/lib/module/components/PinState/PinState.js +22 -0
- package/lib/module/components/PinState/PinState.js.map +1 -0
- package/lib/module/components/SetPin/ConfirmPin.js +32 -0
- package/lib/module/components/SetPin/ConfirmPin.js.map +1 -0
- package/lib/module/components/SetPin/ReenterCardPin.js +46 -0
- package/lib/module/components/SetPin/ReenterCardPin.js.map +1 -0
- package/lib/module/components/SetPin/SetPin.js +109 -0
- package/lib/module/components/SetPin/SetPin.js.map +1 -0
- package/lib/module/components/SetPin/SetUpNewCardPin.js +43 -0
- package/lib/module/components/SetPin/SetUpNewCardPin.js.map +1 -0
- package/lib/module/components/SetPin/styles.js +23 -0
- package/lib/module/components/SetPin/styles.js.map +1 -0
- package/lib/module/components/VerifyPin/CaptureVerifyPin.js +43 -0
- package/lib/module/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
- package/lib/module/components/VerifyPin/ConfirmPin.js +33 -0
- package/lib/module/components/VerifyPin/ConfirmPin.js.map +1 -0
- package/lib/module/components/VerifyPin/VerifyPin.js +83 -0
- package/lib/module/components/VerifyPin/VerifyPin.js.map +1 -0
- package/lib/module/components/VerifyPin/styles.js +20 -0
- package/lib/module/components/VerifyPin/styles.js.map +1 -0
- package/lib/module/components/ViewPin/ViewPin.js +67 -0
- package/lib/module/components/ViewPin/ViewPin.js.map +1 -0
- package/lib/module/components/ViewPin/styles.js +13 -0
- package/lib/module/components/ViewPin/styles.js.map +1 -0
- package/lib/module/components/icons/PredeterminedIcon.js +35 -0
- package/lib/module/components/icons/PredeterminedIcon.js.map +1 -0
- package/lib/module/config/configCard.js +3 -0
- package/lib/module/config/configCard.js.map +1 -0
- package/lib/module/config/localization.js +41 -0
- package/lib/module/config/localization.js.map +1 -0
- package/lib/module/config/themeColors.js +29 -0
- package/lib/module/config/themeColors.js.map +1 -0
- package/lib/module/hooks/useChangePin.js +29 -0
- package/lib/module/hooks/useChangePin.js.map +1 -0
- package/lib/module/hooks/useGetCardDetails.js +29 -0
- package/lib/module/hooks/useGetCardDetails.js.map +1 -0
- package/lib/module/hooks/useSetPin.js +29 -0
- package/lib/module/hooks/useSetPin.js.map +1 -0
- package/lib/module/hooks/useVerifyPin.js +29 -0
- package/lib/module/hooks/useVerifyPin.js.map +1 -0
- package/lib/module/hooks/useViewPin.js +29 -0
- package/lib/module/hooks/useViewPin.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/interfaces/NiCardManagementInterfaces.js +2 -0
- package/lib/module/interfaces/NiCardManagementInterfaces.js.map +1 -0
- package/lib/module/interfaces/NiInputInterfaces.js +33 -0
- package/lib/module/interfaces/NiInputInterfaces.js.map +1 -0
- package/lib/module/interfaces/NiInterfaces.js +8 -0
- package/lib/module/interfaces/NiInterfaces.js.map +1 -0
- package/lib/module/nativeComponents/NICardManagementSDKModule.js +3 -0
- package/lib/module/nativeComponents/NICardManagementSDKModule.js.map +1 -0
- package/lib/module/utils/formatInput.js +4 -0
- package/lib/module/utils/formatInput.js.map +1 -0
- package/lib/module/utils/localization.js +7 -0
- package/lib/module/utils/localization.js.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts +7 -0
- package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts +4 -0
- package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetails.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetails.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/styles.d.ts +90 -0
- package/lib/typescript/src/components/CardDetails/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ChangePin.d.ts +5 -0
- package/lib/typescript/src/components/ChangePin/ChangePin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/styles.d.ts +22 -0
- package/lib/typescript/src/components/ChangePin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/NIButton/NIButton.d.ts +13 -0
- package/lib/typescript/src/components/NIButton/NIButton.d.ts.map +1 -0
- package/lib/typescript/src/components/NIButton/styles.d.ts +8 -0
- package/lib/typescript/src/components/NIButton/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/CapturePin.d.ts +4 -0
- package/lib/typescript/src/components/Pin/CapturePin.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/NextButton.d.ts +4 -0
- package/lib/typescript/src/components/Pin/NextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/ShowHideButton.d.ts +4 -0
- package/lib/typescript/src/components/Pin/ShowHideButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/styles.d.ts +54 -0
- package/lib/typescript/src/components/Pin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/PinState/LoadingState.d.ts +7 -0
- package/lib/typescript/src/components/PinState/LoadingState.d.ts.map +1 -0
- package/lib/typescript/src/components/PinState/PinState.d.ts +8 -0
- package/lib/typescript/src/components/PinState/PinState.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/SetPin.d.ts +5 -0
- package/lib/typescript/src/components/SetPin/SetPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/styles.d.ts +22 -0
- package/lib/typescript/src/components/SetPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts +4 -0
- package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts +5 -0
- package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts +5 -0
- package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/styles.d.ts +19 -0
- package/lib/typescript/src/components/VerifyPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/ViewPin/ViewPin.d.ts +5 -0
- package/lib/typescript/src/components/ViewPin/ViewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ViewPin/styles.d.ts +12 -0
- package/lib/typescript/src/components/ViewPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts +7 -0
- package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts.map +1 -0
- package/lib/typescript/src/config/configCard.d.ts +3 -0
- package/lib/typescript/src/config/configCard.d.ts.map +1 -0
- package/lib/typescript/src/config/localization.d.ts +39 -0
- package/lib/typescript/src/config/localization.d.ts.map +1 -0
- package/lib/typescript/src/config/themeColors.d.ts +29 -0
- package/lib/typescript/src/config/themeColors.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useChangePin.d.ts +9 -0
- package/lib/typescript/src/hooks/useChangePin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGetCardDetails.d.ts +9 -0
- package/lib/typescript/src/hooks/useGetCardDetails.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSetPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useSetPin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useVerifyPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useVerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useViewPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useViewPin.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts +37 -0
- package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts +62 -0
- package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiInterfaces.d.ts +232 -0
- package/lib/typescript/src/interfaces/NiInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts +4 -0
- package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts.map +1 -0
- package/lib/typescript/src/utils/formatInput.d.ts +4 -0
- package/lib/typescript/src/utils/formatInput.d.ts.map +1 -0
- package/lib/typescript/src/utils/localization.d.ts +20 -0
- package/lib/typescript/src/utils/localization.d.ts.map +1 -0
- package/package.json +167 -0
- package/react-native-ni-card-management.podspec +43 -0
- package/src/NICardManagementComponents/CardDetailsComponent.tsx +77 -0
- package/src/NICardManagementComponents/ChangePinView.tsx +41 -0
- package/src/NICardManagementComponents/NiInputInterfaces.ts +14 -0
- package/src/NICardManagementComponents/SetPinView.tsx +38 -0
- package/src/NICardManagementComponents/VerifyPinView.tsx +42 -0
- package/src/NICardManagementComponents/ViewPinComponent.tsx +48 -0
- package/src/assets/icons/content-copy.png +0 -0
- package/src/assets/icons/eye-off-outline.png +0 -0
- package/src/assets/icons/eye-outline.png +0 -0
- package/src/assets/icons/icons8-arrow-100.png +0 -0
- package/src/assets/icons/icons8-arrow-100_1.png +0 -0
- package/src/assets/icons/red-eye-off-outline.png +0 -0
- package/src/assets/icons/red-eye-outline.png +0 -0
- package/src/assets/images/grayCard.png +0 -0
- package/src/components/CardDetails/CardDetails.tsx +24 -0
- package/src/components/CardDetails/CardDetailsBackgroundImage.tsx +33 -0
- package/src/components/CardDetails/CardDetailsGroups.tsx +119 -0
- package/src/components/CardDetails/CardHolderNameGroups.tsx +101 -0
- package/src/components/CardDetails/CardNumberGroup.tsx +101 -0
- package/src/components/CardDetails/DateCVVGroupOneRow.tsx +146 -0
- package/src/components/CardDetails/styles.ts +105 -0
- package/src/components/ChangePin/CaptureCurrentPin.tsx +39 -0
- package/src/components/ChangePin/CaptureNewPin.tsx +39 -0
- package/src/components/ChangePin/ChangePin.tsx +153 -0
- package/src/components/ChangePin/ConfirmPin.tsx +47 -0
- package/src/components/ChangePin/ReenterNewPin.tsx +45 -0
- package/src/components/ChangePin/styles.ts +24 -0
- package/src/components/NIButton/NIButton.tsx +57 -0
- package/src/components/NIButton/styles.ts +10 -0
- package/src/components/Pin/CapturePin.tsx +227 -0
- package/src/components/Pin/NextButton.tsx +50 -0
- package/src/components/Pin/ShowHideButton.tsx +53 -0
- package/src/components/Pin/styles.ts +56 -0
- package/src/components/PinState/LoadingState.tsx +30 -0
- package/src/components/PinState/PinState.tsx +33 -0
- package/src/components/SetPin/ConfirmPin.tsx +47 -0
- package/src/components/SetPin/ReenterCardPin.tsx +45 -0
- package/src/components/SetPin/SetPin.tsx +140 -0
- package/src/components/SetPin/SetUpNewCardPin.tsx +39 -0
- package/src/components/SetPin/styles.ts +24 -0
- package/src/components/VerifyPin/CaptureVerifyPin.tsx +39 -0
- package/src/components/VerifyPin/ConfirmPin.tsx +49 -0
- package/src/components/VerifyPin/VerifyPin.tsx +105 -0
- package/src/components/VerifyPin/styles.ts +21 -0
- package/src/components/ViewPin/ViewPin.tsx +99 -0
- package/src/components/ViewPin/styles.ts +14 -0
- package/src/components/icons/PredeterminedIcon.tsx +41 -0
- package/src/config/configCard.ts +2 -0
- package/src/config/localization.ts +44 -0
- package/src/config/themeColors.ts +37 -0
- package/src/hooks/useChangePin.ts +39 -0
- package/src/hooks/useGetCardDetails.ts +38 -0
- package/src/hooks/useSetPin.ts +37 -0
- package/src/hooks/useVerifyPin.ts +37 -0
- package/src/hooks/useViewPin.ts +35 -0
- package/src/index.tsx +6 -0
- package/src/interfaces/NiCardManagementInterfaces.ts +61 -0
- package/src/interfaces/NiInputInterfaces.ts +78 -0
- package/src/interfaces/NiInterfaces.ts +259 -0
- package/src/nativeComponents/NICardManagementSDKModule.ts +5 -0
- package/src/utils/formatInput.ts +8 -0
- package/src/utils/localization.ts +10 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { Text, View } from 'react-native';
|
|
3
|
+
import styles from './styles';
|
|
4
|
+
import { themeColors } from '../../config/themeColors';
|
|
5
|
+
import { NILabels, NILanguageEnum, NIThemeEnum } from '../../interfaces/NiInputInterfaces';
|
|
6
|
+
import CapturePin from '../Pin/CapturePin';
|
|
7
|
+
import localLabels from '../../utils/localization';
|
|
8
|
+
function ViewPin({
|
|
9
|
+
pinType,
|
|
10
|
+
input,
|
|
11
|
+
result,
|
|
12
|
+
countdownTime
|
|
13
|
+
}) {
|
|
14
|
+
const [showPin, setShowPin] = useState(true);
|
|
15
|
+
const [pinCount, setPinCount] = useState(countdownTime);
|
|
16
|
+
const {
|
|
17
|
+
displayAttributes
|
|
18
|
+
} = input || {};
|
|
19
|
+
const language = displayAttributes?.language || NILanguageEnum.english;
|
|
20
|
+
const theme = displayAttributes?.theme || NIThemeEnum.light;
|
|
21
|
+
const countdownLabelFont = input && input.displayAttributes && input.displayAttributes.fonts && input.displayAttributes.fonts.filter(item => item.label === NILabels.viewPinCountDownDescription);
|
|
22
|
+
const countdownLabelStyle = {
|
|
23
|
+
color: theme === NIThemeEnum.light ? themeColors.light.color : themeColors.dark.color,
|
|
24
|
+
fontSize: countdownLabelFont === undefined || countdownLabelFont === null ? 17 : countdownLabelFont[0]?.font.size,
|
|
25
|
+
fontFamily: countdownLabelFont === undefined || countdownLabelFont === null ? 'Helvetica' : countdownLabelFont[0]?.font.name
|
|
26
|
+
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (result && countdownTime > 0) {
|
|
29
|
+
let counter = 0;
|
|
30
|
+
let interval = setInterval(() => {
|
|
31
|
+
setPinCount(countdownTime - 1 - counter);
|
|
32
|
+
if (++counter > countdownTime - 1) {
|
|
33
|
+
setShowPin(false);
|
|
34
|
+
clearInterval(interval);
|
|
35
|
+
}
|
|
36
|
+
}, 1000);
|
|
37
|
+
}
|
|
38
|
+
}, [result, countdownTime]);
|
|
39
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
40
|
+
style: styles.container
|
|
41
|
+
}, result && /*#__PURE__*/React.createElement(CapturePin, {
|
|
42
|
+
setPin: {
|
|
43
|
+
pin: result,
|
|
44
|
+
setPin: pin => pin,
|
|
45
|
+
pinEditable: false
|
|
46
|
+
},
|
|
47
|
+
setNextStep: {
|
|
48
|
+
step: 0,
|
|
49
|
+
setNextStep: step => step
|
|
50
|
+
},
|
|
51
|
+
pinType: pinType,
|
|
52
|
+
title: '',
|
|
53
|
+
pinLabel: '',
|
|
54
|
+
pinLabelIndex: NILabels.viewPinDescriptionLabel,
|
|
55
|
+
showHideLabels: {
|
|
56
|
+
show: '',
|
|
57
|
+
hide: ''
|
|
58
|
+
},
|
|
59
|
+
theme: theme,
|
|
60
|
+
input: input,
|
|
61
|
+
showPin: showPin
|
|
62
|
+
}), !!result && !!pinCount && /*#__PURE__*/React.createElement(Text, {
|
|
63
|
+
style: [styles.countdownLabelSection, countdownLabelStyle]
|
|
64
|
+
}, localLabels(language).viewPinCountdownLabel(pinCount)));
|
|
65
|
+
}
|
|
66
|
+
export default ViewPin;
|
|
67
|
+
//# sourceMappingURL=ViewPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Text","View","styles","themeColors","NILabels","NILanguageEnum","NIThemeEnum","CapturePin","localLabels","ViewPin","pinType","input","result","countdownTime","showPin","setShowPin","pinCount","setPinCount","displayAttributes","language","english","theme","light","countdownLabelFont","fonts","filter","item","label","viewPinCountDownDescription","countdownLabelStyle","color","dark","fontSize","undefined","font","size","fontFamily","name","counter","interval","setInterval","clearInterval","createElement","style","container","setPin","pin","pinEditable","setNextStep","step","title","pinLabel","pinLabelIndex","viewPinDescriptionLabel","showHideLabels","show","hide","countdownLabelSection","viewPinCountdownLabel"],"sourceRoot":"../../../../src","sources":["components/ViewPin/ViewPin.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAkBC,IAAI,QAAQ,cAAc;AAEzD,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SACEC,QAAQ,EACRC,cAAc,EACdC,WAAW,QACN,oCAAoC;AAE3C,OAAOC,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,WAAW,MAAM,0BAA0B;AAElD,SAASC,OAAOA,CAAC;EACfC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC;AACS,CAAC,EAAe;EACzB,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGhB,QAAQ,CAAU,IAAI,CAAC;EACrD,MAAM,CAACiB,QAAQ,EAAEC,WAAW,CAAC,GAAGlB,QAAQ,CAASc,aAAa,CAAC;EAE/D,MAAM;IAAEK;EAAkB,CAAC,GAAGP,KAAK,IAAI,CAAC,CAAC;EACzC,MAAMQ,QAAQ,GACXD,iBAAiB,EAAEC,QAAQ,IAAed,cAAc,CAACe,OAAO;EACnE,MAAMC,KAAK,GAAGH,iBAAiB,EAAEG,KAAK,IAAIf,WAAW,CAACgB,KAAK;EAE3D,MAAMC,kBAAkB,GACtBZ,KAAK,IACLA,KAAK,CAACO,iBAAiB,IACvBP,KAAK,CAACO,iBAAiB,CAACM,KAAK,IAC7Bb,KAAK,CAACO,iBAAiB,CAACM,KAAK,CAACC,MAAM,CACjCC,IAAI,IAAKA,IAAI,CAACC,KAAK,KAAKvB,QAAQ,CAACwB,2BACpC,CAAC;EACH,MAAMC,mBAA8B,GAAG;IACrCC,KAAK,EACHT,KAAK,KAAKf,WAAW,CAACgB,KAAK,GACvBnB,WAAW,CAACmB,KAAK,CAACQ,KAAK,GACvB3B,WAAW,CAAC4B,IAAI,CAACD,KAAK;IAC5BE,QAAQ,EACNT,kBAAkB,KAAKU,SAAS,IAAIV,kBAAkB,KAAK,IAAI,GAC3D,EAAE,GACFA,kBAAkB,CAAC,CAAC,CAAC,EAAEW,IAAI,CAACC,IAAI;IACtCC,UAAU,EACRb,kBAAkB,KAAKU,SAAS,IAAIV,kBAAkB,KAAK,IAAI,GAC3D,WAAW,GACXA,kBAAkB,CAAC,CAAC,CAAC,EAAEW,IAAI,CAACG;EACpC,CAAC;EAEDvC,SAAS,CAAC,MAAM;IACd,IAAIc,MAAM,IAAIC,aAAa,GAAG,CAAC,EAAE;MAC/B,IAAIyB,OAAO,GAAG,CAAC;MACf,IAAIC,QAAQ,GAAGC,WAAW,CAAC,MAAM;QAC/BvB,WAAW,CAACJ,aAAa,GAAG,CAAC,GAAGyB,OAAO,CAAC;QACxC,IAAI,EAAEA,OAAO,GAAGzB,aAAa,GAAG,CAAC,EAAE;UACjCE,UAAU,CAAC,KAAK,CAAC;UACjB0B,aAAa,CAACF,QAAQ,CAAC;QACzB;MACF,CAAC,EAAE,IAAI,CAAC;IACV;EACF,CAAC,EAAE,CAAC3B,MAAM,EAAEC,aAAa,CAAC,CAAC;EAE3B,oBACEhB,KAAA,CAAA6C,aAAA,CAACzC,IAAI;IAAC0C,KAAK,EAAEzC,MAAM,CAAC0C;EAAU,GAC3BhC,MAAM,iBACLf,KAAA,CAAA6C,aAAA,CAACnC,UAAU;IACTsC,MAAM,EAAE;MACNC,GAAG,EAAElC,MAAM;MACXiC,MAAM,EAAGC,GAAW,IAAKA,GAAG;MAC5BC,WAAW,EAAE;IACf,CAAE;IACFC,WAAW,EAAE;MACXC,IAAI,EAAE,CAAC;MACPD,WAAW,EAAGC,IAAY,IAAKA;IACjC,CAAE;IACFvC,OAAO,EAAEA,OAAQ;IACjBwC,KAAK,EAAE,EAAG;IACVC,QAAQ,EAAE,EAAG;IACbC,aAAa,EAAEhD,QAAQ,CAACiD,uBAAwB;IAChDC,cAAc,EAAE;MACdC,IAAI,EAAE,EAAE;MACRC,IAAI,EAAE;IACR,CAAE;IACFnC,KAAK,EAAEA,KAAM;IACbV,KAAK,EAAEA,KAAM;IACbG,OAAO,EAAEA;EAAQ,CAClB,CACF,EACA,CAAC,CAACF,MAAM,IAAI,CAAC,CAACI,QAAQ,iBACrBnB,KAAA,CAAA6C,aAAA,CAAC1C,IAAI;IAAC2C,KAAK,EAAE,CAACzC,MAAM,CAACuD,qBAAqB,EAAE5B,mBAAmB;EAAE,GAC7DrB,WAAW,CAACW,QAAQ,CAAC,CAACuC,qBAAqB,CAAc1C,QAAQ,CAC/D,CAEJ,CAAC;AAEX;AAEA,eAAeP,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
const styles = StyleSheet.create({
|
|
3
|
+
container: {
|
|
4
|
+
width: '80%',
|
|
5
|
+
marginTop: 2
|
|
6
|
+
},
|
|
7
|
+
countdownLabelSection: {
|
|
8
|
+
marginTop: 8,
|
|
9
|
+
alignSelf: 'center'
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export default styles;
|
|
13
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","styles","create","container","width","marginTop","countdownLabelSection","alignSelf"],"sourceRoot":"../../../../src","sources":["components/ViewPin/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,KAAK,EAAE,KAAK;IACZC,SAAS,EAAE;EACb,CAAC;EACDC,qBAAqB,EAAE;IACrBD,SAAS,EAAE,CAAC;IACZE,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAeN,MAAM"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from 'react-native';
|
|
3
|
+
export const PredeterminedIcon = ({
|
|
4
|
+
name,
|
|
5
|
+
size
|
|
6
|
+
}) => {
|
|
7
|
+
let imageSource;
|
|
8
|
+
switch (name) {
|
|
9
|
+
case 'red-eye':
|
|
10
|
+
imageSource = require('../../assets/icons/red-eye-outline.png');
|
|
11
|
+
break;
|
|
12
|
+
case 'red-eye-off':
|
|
13
|
+
imageSource = require('../../assets/icons/red-eye-off-outline.png');
|
|
14
|
+
break;
|
|
15
|
+
case 'eye':
|
|
16
|
+
imageSource = require('../../assets/icons/eye-outline.png');
|
|
17
|
+
break;
|
|
18
|
+
case 'eye-off':
|
|
19
|
+
imageSource = require('../../assets/icons/eye-off-outline.png');
|
|
20
|
+
break;
|
|
21
|
+
case 'content-copy':
|
|
22
|
+
default:
|
|
23
|
+
imageSource = require('../../assets/icons/content-copy.png');
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
const imageStyle = {
|
|
27
|
+
width: size,
|
|
28
|
+
height: size
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
31
|
+
source: imageSource,
|
|
32
|
+
style: imageStyle
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=PredeterminedIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","PredeterminedIcon","name","size","imageSource","require","imageStyle","width","height","createElement","source","style"],"sourceRoot":"../../../../src","sources":["components/icons/PredeterminedIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAA8C,cAAc;AAO1E,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,IAAI;EAAEC;AAAgB,CAAC,KAAK;EAC9D,IAAIC,WAAW;EACf,QAAQF,IAAI;IACV,KAAK,SAAS;MACZE,WAAW,GACTC,OAAO,CAAC,wCAAwC,CAAmB;MACrE;IACF,KAAK,aAAa;MAChBD,WAAW,GACTC,OAAO,CAAC,4CAA4C,CAAmB;MACzE;IACF,KAAK,KAAK;MACRD,WAAW,GACTC,OAAO,CAAC,oCAAoC,CAAmB;MACjE;IACF,KAAK,SAAS;MACZD,WAAW,GACTC,OAAO,CAAC,wCAAwC,CAAmB;MACrE;IACF,KAAK,cAAc;IACnB;MACED,WAAW,GACTC,OAAO,CAAC,qCAAqC,CAAmB;MAClE;EACJ;EAEA,MAAMC,UAAsB,GAAG;IAC7BC,KAAK,EAAEJ,IAAI;IACXK,MAAM,EAAEL;EACV,CAAC;EAED,oBAAOJ,KAAA,CAAAU,aAAA,CAACT,KAAK;IAACU,MAAM,EAAEN,WAAY;IAACO,KAAK,EAAEL;EAAW,CAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HEIGHT_CARD","WIDTH_CARD"],"sourceRoot":"../../../src","sources":["config/configCard.ts"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,GAAG;AAC9B,OAAO,MAAMC,UAAU,GAAG,EAAE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const english = {
|
|
2
|
+
cardNumber: 'CARD NUMBER',
|
|
3
|
+
expiry: 'Expiry',
|
|
4
|
+
CVV: 'CVV',
|
|
5
|
+
cardHolderName: 'Name',
|
|
6
|
+
enterNewCardPin: 'Enter your new card PIN to secure your card.',
|
|
7
|
+
confirmCardPIN: 'Confirm your card PIN.',
|
|
8
|
+
wrongCardPin: 'PIN does not match.\nPlease re-enter the card PIN',
|
|
9
|
+
enterCurrentCardPin: 'Enter your current card PIN to secure your card.',
|
|
10
|
+
enterVerifyCardPin: 'Enter your current card PIN for verification.',
|
|
11
|
+
verifyPinButtonLabel: 'Verify PIN',
|
|
12
|
+
setPinButtonLabel: 'Set PIN',
|
|
13
|
+
changePinButtonLabel: 'Change PIN',
|
|
14
|
+
copiedToClipboard: 'Copied to clipboard',
|
|
15
|
+
viewPinCountdownLabel: count => 'PIN will be hidden in ' + count + ' seconds',
|
|
16
|
+
show: 'Show',
|
|
17
|
+
hide: 'Hide'
|
|
18
|
+
};
|
|
19
|
+
const arabic = {
|
|
20
|
+
cardNumber: 'رقم البطاقة',
|
|
21
|
+
expiry: 'تاريخ الانتهاء',
|
|
22
|
+
CVV: '\u200Eرقم التحقق من البطاقة (CVV)',
|
|
23
|
+
cardHolderName: 'الإسم',
|
|
24
|
+
enterNewCardPin: '\u200Eالرجاء ادخال الرقم السري الجديد (PIN)',
|
|
25
|
+
confirmCardPIN: '\u200Eيرجى إعادة إدخال رقم السري لبطاقتك (PIN)',
|
|
26
|
+
wrongCardPin: '\u200Eالرقم السري لبطاقتك غير متطابق\n\u200Eيرجى إعادة إدخال رقم السري لبطاقتك (PIN)',
|
|
27
|
+
enterCurrentCardPin: '\u200Eالرجاء ادخال الرقم السري الحالي (PIN)',
|
|
28
|
+
enterVerifyCardPin: '\u200Eالرجاء إدخال رقم السري لبطاقتك للتحقق (PIN)',
|
|
29
|
+
verifyPinButtonLabel: 'التحقق من رقم السري لبطاقتك',
|
|
30
|
+
setPinButtonLabel: 'تعيين الرقم السري',
|
|
31
|
+
changePinButtonLabel: '\u200Eتغيير الرقم السري (PIN)',
|
|
32
|
+
copiedToClipboard: 'تم النسخ إلى الحافظة',
|
|
33
|
+
viewPinCountdownLabel: count => '\u200Eثواني\u200E ' + count + '\u200E سيتم إخفاء الرقم السري للبطاقة خلال',
|
|
34
|
+
show: '\u200Eعرض',
|
|
35
|
+
hide: '\u200Eإخفاء'
|
|
36
|
+
};
|
|
37
|
+
export const localization = {
|
|
38
|
+
english: english,
|
|
39
|
+
arabic: arabic
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=localization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["english","cardNumber","expiry","CVV","cardHolderName","enterNewCardPin","confirmCardPIN","wrongCardPin","enterCurrentCardPin","enterVerifyCardPin","verifyPinButtonLabel","setPinButtonLabel","changePinButtonLabel","copiedToClipboard","viewPinCountdownLabel","count","show","hide","arabic","localization"],"sourceRoot":"../../../src","sources":["config/localization.ts"],"mappings":"AAAA,MAAMA,OAAO,GAAG;EACdC,UAAU,EAAE,aAAa;EACzBC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE,KAAK;EACVC,cAAc,EAAE,MAAM;EACtBC,eAAe,EAAE,8CAA8C;EAC/DC,cAAc,EAAE,wBAAwB;EACxCC,YAAY,EAAE,mDAAmD;EACjEC,mBAAmB,EAAE,kDAAkD;EACvEC,kBAAkB,EAAE,+CAA+C;EACnEC,oBAAoB,EAAE,YAAY;EAClCC,iBAAiB,EAAE,SAAS;EAC5BC,oBAAoB,EAAE,YAAY;EAClCC,iBAAiB,EAAE,qBAAqB;EACxCC,qBAAqB,EAAGC,KAAa,IACnC,wBAAwB,GAAGA,KAAK,GAAG,UAAU;EAC/CC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE;AACR,CAAC;AAED,MAAMC,MAAM,GAAG;EACbjB,UAAU,EAAE,aAAa;EACzBC,MAAM,EAAE,gBAAgB;EACxBC,GAAG,EAAE,mCAAmC;EACxCC,cAAc,EAAE,OAAO;EACvBC,eAAe,EAAE,6CAA6C;EAC9DC,cAAc,EAAE,gDAAgD;EAChEC,YAAY,EAAE,sFAAsF;EACpGC,mBAAmB,EAAE,6CAA6C;EAClEC,kBAAkB,EAAE,mDAAmD;EACvEC,oBAAoB,EAAE,6BAA6B;EACnDC,iBAAiB,EAAE,mBAAmB;EACtCC,oBAAoB,EAAE,+BAA+B;EACrDC,iBAAiB,EAAE,sBAAsB;EACzCC,qBAAqB,EAAGC,KAAa,IACnC,oBAAoB,GAAGA,KAAK,GAAG,4CAA4C;EAC7EC,IAAI,EAAE,WAAW;EACjBC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAME,YAAY,GAAG;EAC1BnB,OAAO,EAAEA,OAAO;EAChBkB,MAAM,EAAEA;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const themeColors = {
|
|
2
|
+
light: {
|
|
3
|
+
background: 'white',
|
|
4
|
+
color: 'black',
|
|
5
|
+
colorCard: 'white',
|
|
6
|
+
colorActivityIndicator: '#041584"',
|
|
7
|
+
buttonConfirmTextColor: 'white',
|
|
8
|
+
buttonConfirmColorDisabled: 'gainsboro',
|
|
9
|
+
buttonCopiedTextColor: 'white',
|
|
10
|
+
buttonShowHideTextColor: 'red',
|
|
11
|
+
buttonShowHideColor: 'red',
|
|
12
|
+
buttonPrimaryTextColor: 'black',
|
|
13
|
+
confirmPinButtonsLinearGradientColors: ['#888888', '#555555', '#222222']
|
|
14
|
+
},
|
|
15
|
+
dark: {
|
|
16
|
+
background: 'black',
|
|
17
|
+
color: 'white',
|
|
18
|
+
colorCard: 'white',
|
|
19
|
+
colorActivityIndicator: 'white',
|
|
20
|
+
buttonConfirmTextColor: 'white',
|
|
21
|
+
buttonConfirmColorDisabled: 'gainsboro',
|
|
22
|
+
buttonCopiedTextColor: 'white',
|
|
23
|
+
buttonShowHideTextColor: 'red',
|
|
24
|
+
buttonPrimaryTextColor: 'white',
|
|
25
|
+
confirmPinButtonsLinearGradientColors: ['#888888', '#555555', '#222222']
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export { themeColors };
|
|
29
|
+
//# sourceMappingURL=themeColors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["themeColors","light","background","color","colorCard","colorActivityIndicator","buttonConfirmTextColor","buttonConfirmColorDisabled","buttonCopiedTextColor","buttonShowHideTextColor","buttonShowHideColor","buttonPrimaryTextColor","confirmPinButtonsLinearGradientColors","dark"],"sourceRoot":"../../../src","sources":["config/themeColors.ts"],"mappings":"AAAA,MAAMA,WAAW,GAAG;EAClBC,KAAK,EAAE;IACLC,UAAU,EAAE,OAAO;IACnBC,KAAK,EAAE,OAAO;IACdC,SAAS,EAAE,OAAO;IAClBC,sBAAsB,EAAE,UAAU;IAElCC,sBAAsB,EAAE,OAAO;IAC/BC,0BAA0B,EAAE,WAAW;IAEvCC,qBAAqB,EAAE,OAAO;IAE9BC,uBAAuB,EAAE,KAAK;IAC9BC,mBAAmB,EAAE,KAAK;IAE1BC,sBAAsB,EAAE,OAAO;IAC/BC,qCAAqC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS;EACzE,CAAC;EACDC,IAAI,EAAE;IACJX,UAAU,EAAE,OAAO;IACnBC,KAAK,EAAE,OAAO;IACdC,SAAS,EAAE,OAAO;IAClBC,sBAAsB,EAAE,OAAO;IAE/BC,sBAAsB,EAAE,OAAO;IAC/BC,0BAA0B,EAAE,WAAW;IAEvCC,qBAAqB,EAAE,OAAO;IAE9BC,uBAAuB,EAAE,KAAK;IAE9BE,sBAAsB,EAAE,OAAO;IAC/BC,qCAAqC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS;EACzE;AACF,CAAC;AAED,SAASZ,WAAW"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import NICardManagementSDKModule from '../nativeComponents/NICardManagementSDKModule';
|
|
3
|
+
import formatInput from '../utils/formatInput';
|
|
4
|
+
export const useChangePin = () => {
|
|
5
|
+
const [result, setResult] = useState();
|
|
6
|
+
const [error, setError] = useState();
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
8
|
+
const onChangePin = (oldPin, newPin, input, callback) => {
|
|
9
|
+
setIsLoading(true);
|
|
10
|
+
NICardManagementSDKModule.changePin(oldPin, newPin, formatInput(input), (err, res) => {
|
|
11
|
+
setIsLoading(false);
|
|
12
|
+
if (err) {
|
|
13
|
+
setError(err);
|
|
14
|
+
callback && callback(err, null);
|
|
15
|
+
} else if (res) {
|
|
16
|
+
setResult(res);
|
|
17
|
+
setError(null);
|
|
18
|
+
callback && callback(null, res);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
result,
|
|
24
|
+
error,
|
|
25
|
+
isLoading,
|
|
26
|
+
onChangePin
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useChangePin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","NICardManagementSDKModule","formatInput","useChangePin","result","setResult","error","setError","isLoading","setIsLoading","onChangePin","oldPin","newPin","input","callback","changePin","err","res"],"sourceRoot":"../../../src","sources":["hooks/useChangePin.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAOC,yBAAyB,MAAM,+CAA+C;AAErF,OAAOC,WAAW,MAAM,sBAAsB;AAG9C,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAM;EAChC,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGL,QAAQ,CAAgB,CAAC;EACrD,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGP,QAAQ,CAAyB,CAAC;EAC5D,MAAM,CAACQ,SAAS,EAAEC,YAAY,CAAC,GAAGT,QAAQ,CAAU,KAAK,CAAC;EAE1D,MAAMU,WAAW,GAAGA,CAClBC,MAAc,EACdC,MAAc,EACdC,KAAuB,EACvBC,QAAwE,KAC/D;IACTL,YAAY,CAAC,IAAI,CAAC;IAClBR,yBAAyB,CAACc,SAAS,CACjCJ,MAAM,EACNC,MAAM,EACNV,WAAW,CAACW,KAAK,CAAC,EAClB,CAACG,GAA2B,EAAEC,GAA8B,KAAK;MAC/DR,YAAY,CAAC,KAAK,CAAC;MACnB,IAAIO,GAAG,EAAE;QACPT,QAAQ,CAACS,GAAG,CAAC;QACbF,QAAQ,IAAIA,QAAQ,CAACE,GAAG,EAAE,IAAI,CAAC;MACjC,CAAC,MAAM,IAAIC,GAAG,EAAE;QACdZ,SAAS,CAACY,GAAG,CAAC;QACdV,QAAQ,CAAC,IAAI,CAAC;QACdO,QAAQ,IAAIA,QAAQ,CAAC,IAAI,EAAEG,GAAG,CAAC;MACjC;IACF,CACF,CAAC;EACH,CAAC;EAED,OAAO;IAAEb,MAAM;IAAEE,KAAK;IAAEE,SAAS;IAAEE;EAAY,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import NICardManagementSDKModule from '../nativeComponents/NICardManagementSDKModule';
|
|
3
|
+
import formatInput from '../utils/formatInput';
|
|
4
|
+
export const useGetCardDetails = () => {
|
|
5
|
+
const [result, setResult] = useState();
|
|
6
|
+
const [error, setError] = useState();
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
8
|
+
const onGetCardDetails = (input, callback) => {
|
|
9
|
+
setIsLoading(true);
|
|
10
|
+
NICardManagementSDKModule.getCardDetails(formatInput(input), (err, res) => {
|
|
11
|
+
setIsLoading(false);
|
|
12
|
+
if (err) {
|
|
13
|
+
setError(err);
|
|
14
|
+
callback && callback(err, null);
|
|
15
|
+
} else if (res) {
|
|
16
|
+
setResult(res);
|
|
17
|
+
setError(null);
|
|
18
|
+
callback && callback(null, 'Card details retrieved with success!');
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
result,
|
|
24
|
+
error,
|
|
25
|
+
isLoading,
|
|
26
|
+
onGetCardDetails
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useGetCardDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","NICardManagementSDKModule","formatInput","useGetCardDetails","result","setResult","error","setError","isLoading","setIsLoading","onGetCardDetails","input","callback","getCardDetails","err","res"],"sourceRoot":"../../../src","sources":["hooks/useGetCardDetails.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAOC,yBAAyB,MAAM,+CAA+C;AAErF,OAAOC,WAAW,MAAM,sBAAsB;AAM9C,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGL,QAAQ,CAA2B,CAAC;EAChE,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGP,QAAQ,CAAyB,CAAC;EAC5D,MAAM,CAACQ,SAAS,EAAEC,YAAY,CAAC,GAAGT,QAAQ,CAAU,KAAK,CAAC;EAE1D,MAAMU,gBAAgB,GAAGA,CACvBC,KAAuB,EACvBC,QAAwE,KAC/D;IACTH,YAAY,CAAC,IAAI,CAAC;IAClBR,yBAAyB,CAACY,cAAc,CACtCX,WAAW,CAACS,KAAK,CAAC,EAClB,CAACG,GAA2B,EAAEC,GAAoC,KAAK;MACrEN,YAAY,CAAC,KAAK,CAAC;MACnB,IAAIK,GAAG,EAAE;QACPP,QAAQ,CAACO,GAAG,CAAC;QACbF,QAAQ,IAAIA,QAAQ,CAACE,GAAG,EAAE,IAAI,CAAC;MACjC,CAAC,MAAM,IAAIC,GAAG,EAAE;QACdV,SAAS,CAACU,GAAG,CAAC;QACdR,QAAQ,CAAC,IAAI,CAAC;QACdK,QAAQ,IAAIA,QAAQ,CAAC,IAAI,EAAE,sCAAsC,CAAC;MACpE;IACF,CACF,CAAC;EACH,CAAC;EAED,OAAO;IAAER,MAAM;IAAEE,KAAK;IAAEE,SAAS;IAAEE;EAAiB,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import NICardManagementSDKModule from '../nativeComponents/NICardManagementSDKModule';
|
|
3
|
+
import formatInput from '../utils/formatInput';
|
|
4
|
+
export const useSetPin = () => {
|
|
5
|
+
const [result, setResult] = useState();
|
|
6
|
+
const [error, setError] = useState();
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
8
|
+
const onSetPin = (pin, input, callback) => {
|
|
9
|
+
setIsLoading(true);
|
|
10
|
+
NICardManagementSDKModule.setPin(pin, formatInput(input), (err, res) => {
|
|
11
|
+
setIsLoading(false);
|
|
12
|
+
if (err) {
|
|
13
|
+
setError(err);
|
|
14
|
+
callback && callback(err, null);
|
|
15
|
+
} else if (res) {
|
|
16
|
+
setError(null);
|
|
17
|
+
setResult(res);
|
|
18
|
+
callback && callback(null, res);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
result,
|
|
24
|
+
error,
|
|
25
|
+
isLoading,
|
|
26
|
+
onSetPin
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useSetPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","NICardManagementSDKModule","formatInput","useSetPin","result","setResult","error","setError","isLoading","setIsLoading","onSetPin","pin","input","callback","setPin","err","res"],"sourceRoot":"../../../src","sources":["hooks/useSetPin.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAOC,yBAAyB,MAAM,+CAA+C;AAErF,OAAOC,WAAW,MAAM,sBAAsB;AAG9C,OAAO,MAAMC,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGL,QAAQ,CAAgB,CAAC;EACrD,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGP,QAAQ,CAAyB,CAAC;EAC5D,MAAM,CAACQ,SAAS,EAAEC,YAAY,CAAC,GAAGT,QAAQ,CAAU,KAAK,CAAC;EAE1D,MAAMU,QAAQ,GAAGA,CACfC,GAAW,EACXC,KAAuB,EACvBC,QAAwE,KAC/D;IACTJ,YAAY,CAAC,IAAI,CAAC;IAClBR,yBAAyB,CAACa,MAAM,CAC9BH,GAAG,EACHT,WAAW,CAACU,KAAK,CAAC,EAClB,CAACG,GAA2B,EAAEC,GAA8B,KAAK;MAC/DP,YAAY,CAAC,KAAK,CAAC;MACnB,IAAIM,GAAG,EAAE;QACPR,QAAQ,CAACQ,GAAG,CAAC;QACbF,QAAQ,IAAIA,QAAQ,CAACE,GAAG,EAAE,IAAI,CAAC;MACjC,CAAC,MAAM,IAAIC,GAAG,EAAE;QACdT,QAAQ,CAAC,IAAI,CAAC;QACdF,SAAS,CAACW,GAAG,CAAC;QACdH,QAAQ,IAAIA,QAAQ,CAAC,IAAI,EAAEG,GAAG,CAAC;MACjC;IACF,CACF,CAAC;EACH,CAAC;EAED,OAAO;IAAEZ,MAAM;IAAEE,KAAK;IAAEE,SAAS;IAAEE;EAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import NICardManagementSDKModule from '../nativeComponents/NICardManagementSDKModule';
|
|
3
|
+
import formatInput from '../utils/formatInput';
|
|
4
|
+
export const useVerifyPin = () => {
|
|
5
|
+
const [result, setResult] = useState();
|
|
6
|
+
const [error, setError] = useState();
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
8
|
+
const onVerifyPin = (pin, input, callback) => {
|
|
9
|
+
setIsLoading(true);
|
|
10
|
+
NICardManagementSDKModule.verifyPin(pin, formatInput(input), (err, res) => {
|
|
11
|
+
setIsLoading(false);
|
|
12
|
+
if (err) {
|
|
13
|
+
setError(err);
|
|
14
|
+
callback && callback(err, null);
|
|
15
|
+
} else if (res) {
|
|
16
|
+
setResult(res);
|
|
17
|
+
setError(null);
|
|
18
|
+
callback && callback(null, res);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
result,
|
|
24
|
+
error,
|
|
25
|
+
isLoading,
|
|
26
|
+
onVerifyPin
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useVerifyPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","NICardManagementSDKModule","formatInput","useVerifyPin","result","setResult","error","setError","isLoading","setIsLoading","onVerifyPin","pin","input","callback","verifyPin","err","res"],"sourceRoot":"../../../src","sources":["hooks/useVerifyPin.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAOC,yBAAyB,MAAM,+CAA+C;AAErF,OAAOC,WAAW,MAAM,sBAAsB;AAG9C,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAM;EAChC,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGL,QAAQ,CAAgB,CAAC;EACrD,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGP,QAAQ,CAAyB,CAAC;EAC5D,MAAM,CAACQ,SAAS,EAAEC,YAAY,CAAC,GAAGT,QAAQ,CAAU,KAAK,CAAC;EAE1D,MAAMU,WAAW,GAAGA,CAClBC,GAAW,EACXC,KAAuB,EACvBC,QAAwE,KAC/D;IACTJ,YAAY,CAAC,IAAI,CAAC;IAClBR,yBAAyB,CAACa,SAAS,CACjCH,GAAG,EACHT,WAAW,CAACU,KAAK,CAAC,EAClB,CAACG,GAA2B,EAAEC,GAAW,KAAK;MAC5CP,YAAY,CAAC,KAAK,CAAC;MACnB,IAAIM,GAAG,EAAE;QACPR,QAAQ,CAACQ,GAAG,CAAC;QACbF,QAAQ,IAAIA,QAAQ,CAACE,GAAG,EAAE,IAAI,CAAC;MACjC,CAAC,MAAM,IAAIC,GAAG,EAAE;QACdX,SAAS,CAACW,GAAG,CAAC;QACdT,QAAQ,CAAC,IAAI,CAAC;QACdM,QAAQ,IAAIA,QAAQ,CAAC,IAAI,EAAEG,GAAG,CAAC;MACjC;IACF,CACF,CAAC;EACH,CAAC;EAED,OAAO;IAAEZ,MAAM;IAAEE,KAAK;IAAEE,SAAS;IAAEE;EAAY,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import NICardManagementSDKModule from '../nativeComponents/NICardManagementSDKModule';
|
|
3
|
+
import formatInput from '../utils/formatInput';
|
|
4
|
+
export const useViewPin = () => {
|
|
5
|
+
const [result, setResult] = useState();
|
|
6
|
+
const [error, setError] = useState();
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
8
|
+
const onViewPin = (input, callback) => {
|
|
9
|
+
setIsLoading(true);
|
|
10
|
+
NICardManagementSDKModule.getPin(formatInput(input), (err, res) => {
|
|
11
|
+
setIsLoading(false);
|
|
12
|
+
if (err) {
|
|
13
|
+
setError(err);
|
|
14
|
+
callback && callback(err, null);
|
|
15
|
+
} else if (res) {
|
|
16
|
+
setResult(res);
|
|
17
|
+
setError(null);
|
|
18
|
+
callback && callback(null, res);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
result,
|
|
24
|
+
error,
|
|
25
|
+
isLoading,
|
|
26
|
+
onViewPin
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useViewPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","NICardManagementSDKModule","formatInput","useViewPin","result","setResult","error","setError","isLoading","setIsLoading","onViewPin","input","callback","getPin","err","res"],"sourceRoot":"../../../src","sources":["hooks/useViewPin.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAOC,yBAAyB,MAAM,+CAA+C;AAErF,OAAOC,WAAW,MAAM,sBAAsB;AAG9C,OAAO,MAAMC,UAAU,GAAGA,CAAA,KAAM;EAC9B,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGL,QAAQ,CAAgB,CAAC;EACrD,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGP,QAAQ,CAAyB,CAAC;EAC5D,MAAM,CAACQ,SAAS,EAAEC,YAAY,CAAC,GAAGT,QAAQ,CAAU,KAAK,CAAC;EAE1D,MAAMU,SAAS,GAAGA,CAChBC,KAAuB,EACvBC,QAAyE,KACtE;IACHH,YAAY,CAAC,IAAI,CAAC;IAClBR,yBAAyB,CAACY,MAAM,CAC9BX,WAAW,CAACS,KAAK,CAAC,EAClB,CAACG,GAA2B,EAAEC,GAAkB,KAAK;MACnDN,YAAY,CAAC,KAAK,CAAC;MACnB,IAAIK,GAAG,EAAE;QACPP,QAAQ,CAACO,GAAG,CAAC;QACbF,QAAQ,IAAIA,QAAQ,CAACE,GAAG,EAAE,IAAI,CAAC;MACjC,CAAC,MAAM,IAAIC,GAAG,EAAE;QACdV,SAAS,CAACU,GAAG,CAAC;QACdR,QAAQ,CAAC,IAAI,CAAC;QACdK,QAAQ,IAAIA,QAAQ,CAAC,IAAI,EAAEG,GAAG,CAAC;MACjC;IACF,CACF,CAAC;EACH,CAAC;EAED,OAAO;IAAEX,MAAM;IAAEE,KAAK;IAAEE,SAAS;IAAEE;EAAU,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './NICardManagementComponents/CardDetailsComponent';
|
|
2
|
+
export * from './NICardManagementComponents/SetPinView';
|
|
3
|
+
export * from './NICardManagementComponents/VerifyPinView';
|
|
4
|
+
export * from './NICardManagementComponents/ChangePinView';
|
|
5
|
+
export * from './NICardManagementComponents/ViewPinComponent';
|
|
6
|
+
export * from './NICardManagementComponents/NiInputInterfaces';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,cAAc,mDAAmD;AACjE,cAAc,yCAAyC;AACvD,cAAc,4CAA4C;AAC1D,cAAc,4CAA4C;AAC1D,cAAc,+CAA+C;AAC7D,cAAc,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/NiCardManagementInterfaces.ts"],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export let NILabels = /*#__PURE__*/function (NILabels) {
|
|
2
|
+
NILabels[NILabels["cardNumberLabel"] = 0] = "cardNumberLabel";
|
|
3
|
+
NILabels[NILabels["cardNumberValueLabel"] = 1] = "cardNumberValueLabel";
|
|
4
|
+
NILabels[NILabels["expiryDateLabel"] = 2] = "expiryDateLabel";
|
|
5
|
+
NILabels[NILabels["expiryDateValueLabel"] = 3] = "expiryDateValueLabel";
|
|
6
|
+
NILabels[NILabels["cvvLabel"] = 4] = "cvvLabel";
|
|
7
|
+
NILabels[NILabels["cvvValueLabel"] = 5] = "cvvValueLabel";
|
|
8
|
+
NILabels[NILabels["cardholderNameLabel"] = 6] = "cardholderNameLabel";
|
|
9
|
+
NILabels[NILabels["setPinDescriptionLabel"] = 7] = "setPinDescriptionLabel";
|
|
10
|
+
NILabels[NILabels["changePinDescriptionLabel"] = 8] = "changePinDescriptionLabel";
|
|
11
|
+
NILabels[NILabels["viewPinDescriptionLabel"] = 9] = "viewPinDescriptionLabel";
|
|
12
|
+
NILabels[NILabels["viewPinCountDownDescription"] = 110] = "viewPinCountDownDescription";
|
|
13
|
+
NILabels[NILabels["pinDigitLabel"] = 11] = "pinDigitLabel";
|
|
14
|
+
return NILabels;
|
|
15
|
+
}({});
|
|
16
|
+
export let NIThemeEnum = /*#__PURE__*/function (NIThemeEnum) {
|
|
17
|
+
NIThemeEnum["light"] = "light";
|
|
18
|
+
NIThemeEnum["dark"] = "dark";
|
|
19
|
+
return NIThemeEnum;
|
|
20
|
+
}({});
|
|
21
|
+
export let NILanguageEnum = /*#__PURE__*/function (NILanguageEnum) {
|
|
22
|
+
NILanguageEnum["english"] = "english";
|
|
23
|
+
NILanguageEnum["arabic"] = "arabic";
|
|
24
|
+
return NILanguageEnum;
|
|
25
|
+
}({});
|
|
26
|
+
export let NIPinTypeEnum = /*#__PURE__*/function (NIPinTypeEnum) {
|
|
27
|
+
NIPinTypeEnum[NIPinTypeEnum["fourDigits"] = 4] = "fourDigits";
|
|
28
|
+
NIPinTypeEnum[NIPinTypeEnum["fiveDigits"] = 5] = "fiveDigits";
|
|
29
|
+
NIPinTypeEnum[NIPinTypeEnum["sixDigits"] = 6] = "sixDigits";
|
|
30
|
+
NIPinTypeEnum[NIPinTypeEnum["dynamicFourToSix"] = 0] = "dynamicFourToSix";
|
|
31
|
+
return NIPinTypeEnum;
|
|
32
|
+
}({});
|
|
33
|
+
//# sourceMappingURL=NiInputInterfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NILabels","NIThemeEnum","NILanguageEnum","NIPinTypeEnum"],"sourceRoot":"../../../src","sources":["interfaces/NiInputInterfaces.ts"],"mappings":"AAoBA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AA4BpB,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAKvB,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAK1B,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export let NIStepEnum = /*#__PURE__*/function (NIStepEnum) {
|
|
2
|
+
NIStepEnum[NIStepEnum["currentPinStep"] = 0] = "currentPinStep";
|
|
3
|
+
NIStepEnum[NIStepEnum["setupPinStep"] = 1] = "setupPinStep";
|
|
4
|
+
NIStepEnum[NIStepEnum["reEnterPinStep"] = 2] = "reEnterPinStep";
|
|
5
|
+
NIStepEnum[NIStepEnum["verifyStep"] = 3] = "verifyStep";
|
|
6
|
+
return NIStepEnum;
|
|
7
|
+
}({});
|
|
8
|
+
//# sourceMappingURL=NiInterfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NIStepEnum"],"sourceRoot":"../../../src","sources":["interfaces/NiInterfaces.ts"],"mappings":"AAWA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","NiCardManagement"],"sourceRoot":"../../../src","sources":["nativeComponents/NICardManagementSDKModule.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAI5C,eAAeA,aAAa,CAACC,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","formatInput","input","OS","JSON","stringify"],"sourceRoot":"../../../src","sources":["utils/formatInput.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAIvC,MAAMC,WAAW,GAAIC,KAAuB,IAC1CF,QAAQ,CAACG,EAAE,KAAK,KAAK,GAAGD,KAAK,GAAGE,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC;AAEvD,eAAeD,WAAW"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NILanguageEnum } from '../interfaces/NiInputInterfaces';
|
|
2
|
+
import { localization } from '../config/localization';
|
|
3
|
+
function localLabels(language) {
|
|
4
|
+
return language === NILanguageEnum.arabic ? localization.arabic : localization.english;
|
|
5
|
+
}
|
|
6
|
+
export default localLabels;
|
|
7
|
+
//# sourceMappingURL=localization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NILanguageEnum","localization","localLabels","language","arabic","english"],"sourceRoot":"../../../src","sources":["utils/localization.ts"],"mappings":"AAAA,SAASA,cAAc,QAAQ,iCAAiC;AAChE,SAASC,YAAY,QAAQ,wBAAwB;AAErD,SAASC,WAAWA,CAACC,QAAgB,EAAE;EACrC,OAAOA,QAAQ,KAAKH,cAAc,CAACI,MAAM,GACrCH,YAAY,CAACG,MAAM,GACnBH,YAAY,CAACI,OAAO;AAC1B;AAEA,eAAeH,WAAW"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NICardDetailsComponent } from '../interfaces/NiInterfaces';
|
|
3
|
+
import { useGetCardDetails } from '../hooks/useGetCardDetails';
|
|
4
|
+
import type { NIGetCardSuccessResponse } from '../interfaces/NiCardManagementInterfaces';
|
|
5
|
+
declare function CardDetailsComponent({ input, callback, }: NICardDetailsComponent): JSX.Element;
|
|
6
|
+
export { CardDetailsComponent, useGetCardDetails, type NIGetCardSuccessResponse, };
|
|
7
|
+
//# sourceMappingURL=CardDetailsComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardDetailsComponent.d.ts","sourceRoot":"","sources":["../../../../src/NICardManagementComponents/CardDetailsComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAGzF,iBAAS,oBAAoB,CAAC,EAC5B,KAAK,EACL,QAAQ,GACT,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAkDtC;AAQD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type NIChangePinView } from '../interfaces/NiInterfaces';
|
|
3
|
+
import { useChangePin } from '../hooks/useChangePin';
|
|
4
|
+
declare function ChangePinView({ input, type, callback, }: NIChangePinView): JSX.Element;
|
|
5
|
+
export { ChangePinView, useChangePin };
|
|
6
|
+
//# sourceMappingURL=ChangePinView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangePinView.d.ts","sourceRoot":"","sources":["../../../../src/NICardManagementComponents/ChangePinView.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,QAAQ,GACT,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CA2B/B;AACD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NIErrorResponse, NIInputInterface, NIConnectionProperties, NIGetCardSuccessResponse } from '../interfaces/NiCardManagementInterfaces';
|
|
2
|
+
export type { NIErrorResponse, NIInputInterface, NIConnectionProperties, NIGetCardSuccessResponse, };
|
|
3
|
+
export * from '../interfaces/NiInputInterfaces';
|
|
4
|
+
//# sourceMappingURL=NiInputInterfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NiInputInterfaces.d.ts","sourceRoot":"","sources":["../../../../src/NICardManagementComponents/NiInputInterfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAClD,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,GACzB,CAAC;AAEF,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type NISetPinView } from '../interfaces/NiInterfaces';
|
|
3
|
+
import { useSetPin } from '../hooks/useSetPin';
|
|
4
|
+
declare function SetPinView({ input, type, callback }: NISetPinView): JSX.Element;
|
|
5
|
+
export { SetPinView, useSetPin };
|
|
6
|
+
//# sourceMappingURL=SetPinView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetPinView.d.ts","sourceRoot":"","sources":["../../../../src/NICardManagementComponents/SetPinView.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,iBAAS,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA2BxE;AAED,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type NIVerifyPinView } from '../interfaces/NiInterfaces';
|
|
3
|
+
import { useVerifyPin } from '../hooks/useVerifyPin';
|
|
4
|
+
declare function VerifyPinView({ input, type, callback, }: NIVerifyPinView): JSX.Element;
|
|
5
|
+
export { VerifyPinView, useVerifyPin };
|
|
6
|
+
//# sourceMappingURL=VerifyPinView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyPinView.d.ts","sourceRoot":"","sources":["../../../../src/NICardManagementComponents/VerifyPinView.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,QAAQ,GACT,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CA2B/B;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type NIViewPinComponent } from '../interfaces/NiInterfaces';
|
|
3
|
+
import { useViewPin } from '../hooks/useViewPin';
|
|
4
|
+
declare function ViewPinComponent({ input, type: pinType, callback, }: NIViewPinComponent): JSX.Element;
|
|
5
|
+
export { ViewPinComponent, useViewPin };
|
|
6
|
+
//# sourceMappingURL=ViewPinComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewPinComponent.d.ts","sourceRoot":"","sources":["../../../../src/NICardManagementComponents/ViewPinComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,IAAI,EAAE,OAAO,EACb,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAiClC;AAED,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardDetails.d.ts","sourceRoot":"","sources":["../../../../../src/components/CardDetails/CardDetails.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAKnE,wBAAgB,WAAW,CAAC,EAC1B,iBAAiB,EACjB,oBAAoB,EACpB,OAAO,GACR,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAY7B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type NICardDetailsImage } from '../../interfaces/NiInterfaces';
|
|
3
|
+
export declare function CardDetailsBackgroundImage({ displayAttributes, getCardDetailsResult, isError, }: NICardDetailsImage): JSX.Element;
|
|
4
|
+
//# sourceMappingURL=CardDetailsBackgroundImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardDetailsBackgroundImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/CardDetails/CardDetailsBackgroundImage.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAIxE,wBAAgB,0BAA0B,CAAC,EACzC,iBAAiB,EACjB,oBAAoB,EACpB,OAAO,GACR,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAqBlC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type NICardDetailsGroups } from '../../interfaces/NiInterfaces';
|
|
3
|
+
export declare function CardDetailsGroups({ displayAttributes, getCardDetailsResult, isError, }: NICardDetailsGroups): JSX.Element;
|
|
4
|
+
//# sourceMappingURL=CardDetailsGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardDetailsGroups.d.ts","sourceRoot":"","sources":["../../../../../src/components/CardDetails/CardDetailsGroups.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAUzE,wBAAgB,iBAAiB,CAAC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,OAAO,GACR,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAgGnC"}
|