MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / PdfRequestFiles

Function PdfRequestFiles

apps/OpenSign/src/pages/PdfRequestFiles.jsx:77–2312  ·  view source on GitHub ↗
(
)

Source from the content-addressed store, hash-verified

75import { useScroll } from "../context/ScrollPdfContext";
76
77function PdfRequestFiles(
78) {
79 const { t } = useTranslation();
80 const dispatch = useDispatch();
81 const windowSize = useWindowSize();
82 const { scrollRef } = useScroll();
83 const prefillImg = useSelector((state) => state.widget.prefillImg);
84 const isShowModal = useSelector((state) => state.widget.isShowModal);
85 const defaultSignImg = useSelector((state) => state.widget.defaultSignImg);
86 const myInitial = useSelector((state) => state.widget.myInitial);
87 const appName =
88 "OpenSign™";
89 const [pdfDetails, setPdfDetails] = useState([]);
90 const [signedSigners, setSignedSigners] = useState([]);
91 const [unsignedSigners, setUnSignedSigners] = useState([]);
92 const [pdfUrl, setPdfUrl] = useState();
93 const [allPages, setAllPages] = useState(null);
94 const numPages = 1;
95 const [pageNumber, setPageNumber] = useState(1);
96 const [handleError, setHandleError] = useState();
97 const [isCelebration, setIsCelebration] = useState(false);
98 const [isReqSignTourDisabled, setIsReqSignTourDisabled] = useState(true);
99 const [tourStatus, setTourStatus] = useState([]);
100 const [isDontShowCheckbox, setIsDontShowCheckbox] = useState(false);
101 const [isLoading, setIsLoading] = useState({
102 isLoad: true,
103 message: t("loading-mssg")
104 });
105 const [isDocId, setIsDocId] = useState(false);
106 const [pdfNewWidth, setPdfNewWidth] = useState();
107 const [pdfOriginalWH, setPdfOriginalWH] = useState([]);
108 const [signerPos, setSignerPos] = useState([]);
109 const [signerObjectId, setSignerObjectId] = useState();
110 const [isUiLoading, setIsUiLoading] = useState(false);
111 const [isDecline, setIsDecline] = useState({ isDeclined: false });
112 const [currentSigner, setCurrentSigner] = useState(false);
113 const [isAlert, setIsAlert] = useState({ isShow: false, alertMessage: "" });
114 const [unSignedWidgetId, setUnSignedWidgetId] = useState("");
115 const [expiredDate, setExpiredDate] = useState("");
116 const [isResize, setIsResize] = useState(false);
117 const [signerUserId, setSignerUserId] = useState();
118 const [isDontShow, setIsDontShow] = useState(true);
119 const [isDownloading, setIsDownloading] = useState("");
120 const [defaultSignAlert, setDefaultSignAlert] = useState({
121 isShow: false,
122 alertMessage: ""
123 });
124 const [isCompleted, setIsCompleted] = useState({
125 isCertificate: false,
126 isModal: false
127 });
128 const [pdfLoad, setPdfLoad] = useState(false);
129 const [isSigned, setIsSigned] = useState(false);
130 const [isExpired, setIsExpired] = useState(false);
131 const [alreadySign, setAlreadySign] = useState(false);
132 const [containerWH, setContainerWH] = useState({ width: 0, height: 0 });
133 const [widgetsTour, setWidgetsTour] = useState(false);
134 const [minRequiredCount, setminRequiredCount] = useState();

Callers

nothing calls this directly

Calls 9

useWindowSizeFunction · 0.90
useScrollFunction · 0.90
openInNewTabFunction · 0.90
handleToPrintFunction · 0.90
requestSignTourFunctionFunction · 0.85
handleDeclineMssgFunction · 0.85
addDefaultSignatureFunction · 0.85
getDocumentDetailsFunction · 0.70

Tested by

no test coverage detected