MCPcopy
hub / github.com/QwikDev/partytown / O

Function O

tests/integrations/hubspot/leadflows.js:2639–2777  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

2637 );
2638 },
2639 O = function (o) {
2640 var d = this,
2641 r = d.config(o);
2642 d._onMouseDown = function (e) {
2643 if (d._v) {
2644 var a = (e = e || window.event).target || e.srcElement;
2645 if (a) {
2646 if (!s(a, 'is-disabled'))
2647 if (!s(a, 'pika-button') || s(a, 'is-empty') || s(a.parentNode, 'is-disabled'))
2648 s(a, 'pika-prev') ? d.prevMonth() : s(a, 'pika-next') && d.nextMonth();
2649 else {
2650 d.setDate(
2651 new Date(
2652 a.getAttribute('data-pika-year'),
2653 a.getAttribute('data-pika-month'),
2654 a.getAttribute('data-pika-day')
2655 )
2656 );
2657 r.bound &&
2658 i(function () {
2659 d.hide();
2660 r.blurFieldOnSelect && r.field && r.field.blur();
2661 }, 100);
2662 }
2663 if (s(a, 'pika-select')) d._c = !0;
2664 else {
2665 if (!e.preventDefault) {
2666 e.returnValue = !1;
2667 return !1;
2668 }
2669 e.preventDefault();
2670 }
2671 }
2672 }
2673 };
2674 d._onChange = function (e) {
2675 var a = (e = e || window.event).target || e.srcElement;
2676 a &&
2677 (s(a, 'pika-select-month')
2678 ? d.gotoMonth(a.value)
2679 : s(a, 'pika-select-year') && d.gotoYear(a.value));
2680 };
2681 d._onKeyChange = function (e) {
2682 e = e || window.event;
2683 if (d.isVisible())
2684 switch (e.keyCode) {
2685 case 13:
2686 case 27:
2687 r.field && r.field.blur();
2688 break;
2689 case 37:
2690 e.preventDefault();
2691 d.adjustDate('subtract', 1);
2692 break;
2693 case 38:
2694 d.adjustDate('subtract', 7);
2695 break;
2696 case 39:

Callers 4

rFunction · 0.70
uFunction · 0.70
shell.jsFile · 0.70
leadflows.jsFile · 0.70

Calls 9

setAttributeMethod · 0.80
appendChildMethod · 0.80
insertBeforeMethod · 0.80
sFunction · 0.70
iFunction · 0.70
eFunction · 0.70
mFunction · 0.70
lFunction · 0.70
getAttributeMethod · 0.45

Tested by

no test coverage detected