MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / Se

Function Se

webapp/_webapp/src/libs/apple-auth.js:893–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

891 32 === e.keyCode && (e.preventDefault(), ye());
892 },
893 Se = function () {
894 var e,
895 t,
896 i = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
897 o = ((e = i.id), document.getElementById(e || "appleid-signin"));
898 if (o) {
899 (t = o) && t.firstChild && t.removeChild(t.firstChild);
900 var A = (function (e) {
901 var t,
902 i,
903 o,
904 n,
905 A,
906 r = e.dataset,
907 l = "center-align",
908 d = "black",
909 c = !0,
910 a = "sign-in",
911 h = "small",
912 s = 15;
913 return (
914 null != r &&
915 (r.locale && (l = r.locale),
916 r.mode && (l = r.mode),
917 r.color && (d = r.color),
918 r.border && (c = "false" !== r.border),
919 r.type && (a = r.type),
920 r.logoSize && (h = r.logoSize),
921 r.borderRadius && !isNaN(parseInt(r.borderRadius, 10)) && (s = parseInt(r.borderRadius, 10)),
922 "100%" === r.width
923 ? (t = r.width)
924 : r.width && !isNaN(parseInt(r.width, 10)) && (t = parseInt(r.width, 10)),
925 "100%" === r.height
926 ? (i = r.height)
927 : r.height && !isNaN(parseInt(r.height, 10)) && (i = parseInt(r.height, 10)),
928 "100%" === r.size ? (o = r.size) : r.size && !isNaN(parseInt(r.size, 10)) && (o = parseInt(r.size, 10)),
929 r.logoPosition && !isNaN(parseInt(r.logoPosition, 10)) && (n = parseInt(r.logoPosition, 10)),
930 r.labelPosition && !isNaN(parseInt(r.labelPosition, 10)) && (A = parseInt(r.labelPosition, 10))),
931 "sign in" === a && (a = "sign-in"),
932 {
933 mode: l,
934 locale: "",
935 color: d,
936 border: c,
937 type: a,
938 borderRadius: s,
939 width: t,
940 height: i,
941 size: o,
942 logoPosition: n,
943 labelPosition: A,
944 logoSize: h,
945 }
946 );
947 })(o),
948 r = G({ id: "appleid-signin" }, A, i);
949 "center-align" === A.mode
950 ? (function () {

Callers 1

MeFunction · 0.85

Calls 5

GFunction · 0.85
gFunction · 0.85
nFunction · 0.85
YFunction · 0.85
PFunction · 0.85

Tested by

no test coverage detected