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

Function S

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

Source from the content-addressed store, hash-verified

392 return t ? ("left" === e ? "right" : "left") : e;
393 },
394 S = function (e) {
395 var t = e.width,
396 i = e.height,
397 o = e.logoSize,
398 n = e.labelPosition,
399 A = e.logoPosition;
400 (t = Math.floor(t)) > 375 ? (t = 375) : t < 130 && (t = 130),
401 (i = Math.floor(i)) > 64 ? (i = 64) : i < 30 && (i = 30),
402 (n = Math.floor(n)),
403 (A = Math.floor(A));
404 var r,
405 l,
406 d = ((l = i / (r = M[o]).height), Math.floor(r.logoWidth * l)),
407 c = Math.floor(0.5 * d),
408 a = Math.floor(0.7 * d),
409 h = c + d + a,
410 s = Math.floor(t / 2);
411 n > s ? (n = s) : n < h && (n = h);
412 var g = n - a - d;
413 A > g ? (A = g) : A < c && (A = c);
414 var u = A,
415 f = Math.floor(0.08 * t),
416 p = n - u - d;
417 return {
418 width: t,
419 height: i,
420 leftMargin: u,
421 logoWidth: d,
422 middleMargin: p,
423 labelWidth: t - u - f - p - d,
424 rightMargin: f,
425 contentWidth: t - f - u,
426 };
427 },
428 Y = function () {
429 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
430 i = e.id,

Callers 1

YFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected