@riab/vendor-due-diligence 0.1.5 → 0.2.0
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/dist/vendor-due-diligence.js +703 -698
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var l=document.createElement("style");l.appendChild(document.createTextNode(':root,:host,.sl-theme-light{color-scheme:light;--sl-color-gray-50: hsl(0 0% 97.5%);--sl-color-gray-100: hsl(240 4.8% 95.9%);--sl-color-gray-200: hsl(240 5.9% 90%);--sl-color-gray-300: hsl(240 4.9% 83.9%);--sl-color-gray-400: hsl(240 5% 64.9%);--sl-color-gray-500: hsl(240 3.8% 46.1%);--sl-color-gray-600: hsl(240 5.2% 33.9%);--sl-color-gray-700: hsl(240 5.3% 26.1%);--sl-color-gray-800: hsl(240 3.7% 15.9%);--sl-color-gray-900: hsl(240 5.9% 10%);--sl-color-gray-950: hsl(240 7.3% 8%);--sl-color-red-50: hsl(0 85.7% 97.3%);--sl-color-red-100: hsl(0 93.3% 94.1%);--sl-color-red-200: hsl(0 96.3% 89.4%);--sl-color-red-300: hsl(0 93.5% 81.8%);--sl-color-red-400: hsl(0 90.6% 70.8%);--sl-color-red-500: hsl(0 84.2% 60.2%);--sl-color-red-600: hsl(0 72.2% 50.6%);--sl-color-red-700: hsl(0 73.7% 41.8%);--sl-color-red-800: hsl(0 70% 35.3%);--sl-color-red-900: hsl(0 62.8% 30.6%);--sl-color-red-950: hsl(0 60% 19.6%);--sl-color-orange-50: hsl(33.3 100% 96.5%);--sl-color-orange-100: hsl(34.3 100% 91.8%);--sl-color-orange-200: hsl(32.1 97.7% 83.1%);--sl-color-orange-300: hsl(30.7 97.2% 72.4%);--sl-color-orange-400: hsl(27 96% 61%);--sl-color-orange-500: hsl(24.6 95% 53.1%);--sl-color-orange-600: hsl(20.5 90.2% 48.2%);--sl-color-orange-700: hsl(17.5 88.3% 40.4%);--sl-color-orange-800: hsl(15 79.1% 33.7%);--sl-color-orange-900: hsl(15.3 74.6% 27.8%);--sl-color-orange-950: hsl(15.2 69.1% 19%);--sl-color-amber-50: hsl(48 100% 96.1%);--sl-color-amber-100: hsl(48 96.5% 88.8%);--sl-color-amber-200: hsl(48 96.6% 76.7%);--sl-color-amber-300: hsl(45.9 96.7% 64.5%);--sl-color-amber-400: hsl(43.3 96.4% 56.3%);--sl-color-amber-500: hsl(37.7 92.1% 50.2%);--sl-color-amber-600: hsl(32.1 94.6% 43.7%);--sl-color-amber-700: hsl(26 90.5% 37.1%);--sl-color-amber-800: hsl(22.7 82.5% 31.4%);--sl-color-amber-900: hsl(21.7 77.8% 26.5%);--sl-color-amber-950: hsl(22.9 74.1% 16.7%);--sl-color-yellow-50: hsl(54.5 91.7% 95.3%);--sl-color-yellow-100: hsl(54.9 96.7% 88%);--sl-color-yellow-200: hsl(52.8 98.3% 76.9%);--sl-color-yellow-300: hsl(50.4 97.8% 63.5%);--sl-color-yellow-400: hsl(47.9 95.8% 53.1%);--sl-color-yellow-500: hsl(45.4 93.4% 47.5%);--sl-color-yellow-600: hsl(40.6 96.1% 40.4%);--sl-color-yellow-700: hsl(35.5 91.7% 32.9%);--sl-color-yellow-800: hsl(31.8 81% 28.8%);--sl-color-yellow-900: hsl(28.4 72.5% 25.7%);--sl-color-yellow-950: hsl(33.1 69% 13.9%);--sl-color-lime-50: hsl(78.3 92% 95.1%);--sl-color-lime-100: hsl(79.6 89.1% 89.2%);--sl-color-lime-200: hsl(80.9 88.5% 79.6%);--sl-color-lime-300: hsl(82 84.5% 67.1%);--sl-color-lime-400: hsl(82.7 78% 55.5%);--sl-color-lime-500: hsl(83.7 80.5% 44.3%);--sl-color-lime-600: hsl(84.8 85.2% 34.5%);--sl-color-lime-700: hsl(85.9 78.4% 27.3%);--sl-color-lime-800: hsl(86.3 69% 22.7%);--sl-color-lime-900: hsl(87.6 61.2% 20.2%);--sl-color-lime-950: hsl(86.5 60.6% 13.9%);--sl-color-green-50: hsl(138.5 76.5% 96.7%);--sl-color-green-100: hsl(140.6 84.2% 92.5%);--sl-color-green-200: hsl(141 78.9% 85.1%);--sl-color-green-300: hsl(141.7 76.6% 73.1%);--sl-color-green-400: hsl(141.9 69.2% 58%);--sl-color-green-500: hsl(142.1 70.6% 45.3%);--sl-color-green-600: hsl(142.1 76.2% 36.3%);--sl-color-green-700: hsl(142.4 71.8% 29.2%);--sl-color-green-800: hsl(142.8 64.2% 24.1%);--sl-color-green-900: hsl(143.8 61.2% 20.2%);--sl-color-green-950: hsl(144.3 60.7% 12%);--sl-color-emerald-50: hsl(151.8 81% 95.9%);--sl-color-emerald-100: hsl(149.3 80.4% 90%);--sl-color-emerald-200: hsl(152.4 76% 80.4%);--sl-color-emerald-300: hsl(156.2 71.6% 66.9%);--sl-color-emerald-400: hsl(158.1 64.4% 51.6%);--sl-color-emerald-500: hsl(160.1 84.1% 39.4%);--sl-color-emerald-600: hsl(161.4 93.5% 30.4%);--sl-color-emerald-700: hsl(162.9 93.5% 24.3%);--sl-color-emerald-800: hsl(163.1 88.1% 19.8%);--sl-color-emerald-900: hsl(164.2 85.7% 16.5%);--sl-color-emerald-950: hsl(164.3 87.5% 9.4%);--sl-color-teal-50: hsl(166.2 76.5% 96.7%);--sl-color-teal-100: hsl(167.2 85.5% 89.2%);--sl-color-teal-200: hsl(168.4 83.8% 78.2%);--sl-color-teal-300: hsl(170.6 76.9% 64.3%);--sl-color-teal-400: hsl(172.5 66% 50.4%);--sl-color-teal-500: hsl(173.4 80.4% 40%);--sl-color-teal-600: hsl(174.7 83.9% 31.6%);--sl-color-teal-700: hsl(175.3 77.4% 26.1%);--sl-color-teal-800: hsl(176.1 69.4% 21.8%);--sl-color-teal-900: hsl(175.9 60.8% 19%);--sl-color-teal-950: hsl(176.5 58.6% 11.4%);--sl-color-cyan-50: hsl(183.2 100% 96.3%);--sl-color-cyan-100: hsl(185.1 95.9% 90.4%);--sl-color-cyan-200: hsl(186.2 93.5% 81.8%);--sl-color-cyan-300: hsl(187 92.4% 69%);--sl-color-cyan-400: hsl(187.9 85.7% 53.3%);--sl-color-cyan-500: hsl(188.7 94.5% 42.7%);--sl-color-cyan-600: hsl(191.6 91.4% 36.5%);--sl-color-cyan-700: hsl(192.9 82.3% 31%);--sl-color-cyan-800: hsl(194.4 69.6% 27.1%);--sl-color-cyan-900: hsl(196.4 63.6% 23.7%);--sl-color-cyan-950: hsl(196.8 61% 16.1%);--sl-color-sky-50: hsl(204 100% 97.1%);--sl-color-sky-100: hsl(204 93.8% 93.7%);--sl-color-sky-200: hsl(200.6 94.4% 86.1%);--sl-color-sky-300: hsl(199.4 95.5% 73.9%);--sl-color-sky-400: hsl(198.4 93.2% 59.6%);--sl-color-sky-500: hsl(198.6 88.7% 48.4%);--sl-color-sky-600: hsl(200.4 98% 39.4%);--sl-color-sky-700: hsl(201.3 96.3% 32.2%);--sl-color-sky-800: hsl(201 90% 27.5%);--sl-color-sky-900: hsl(202 80.3% 23.9%);--sl-color-sky-950: hsl(202.3 73.8% 16.5%);--sl-color-blue-50: hsl(213.8 100% 96.9%);--sl-color-blue-100: hsl(214.3 94.6% 92.7%);--sl-color-blue-200: hsl(213.3 96.9% 87.3%);--sl-color-blue-300: hsl(211.7 96.4% 78.4%);--sl-color-blue-400: hsl(213.1 93.9% 67.8%);--sl-color-blue-500: hsl(217.2 91.2% 59.8%);--sl-color-blue-600: hsl(221.2 83.2% 53.3%);--sl-color-blue-700: hsl(224.3 76.3% 48%);--sl-color-blue-800: hsl(225.9 70.7% 40.2%);--sl-color-blue-900: hsl(224.4 64.3% 32.9%);--sl-color-blue-950: hsl(226.2 55.3% 18.4%);--sl-color-indigo-50: hsl(225.9 100% 96.7%);--sl-color-indigo-100: hsl(226.5 100% 93.9%);--sl-color-indigo-200: hsl(228 96.5% 88.8%);--sl-color-indigo-300: hsl(229.7 93.5% 81.8%);--sl-color-indigo-400: hsl(234.5 89.5% 73.9%);--sl-color-indigo-500: hsl(238.7 83.5% 66.7%);--sl-color-indigo-600: hsl(243.4 75.4% 58.6%);--sl-color-indigo-700: hsl(244.5 57.9% 50.6%);--sl-color-indigo-800: hsl(243.7 54.5% 41.4%);--sl-color-indigo-900: hsl(242.2 47.4% 34.3%);--sl-color-indigo-950: hsl(243.5 43.6% 22.9%);--sl-color-violet-50: hsl(250 100% 97.6%);--sl-color-violet-100: hsl(251.4 91.3% 95.5%);--sl-color-violet-200: hsl(250.5 95.2% 91.8%);--sl-color-violet-300: hsl(252.5 94.7% 85.1%);--sl-color-violet-400: hsl(255.1 91.7% 76.3%);--sl-color-violet-500: hsl(258.3 89.5% 66.3%);--sl-color-violet-600: hsl(262.1 83.3% 57.8%);--sl-color-violet-700: hsl(263.4 70% 50.4%);--sl-color-violet-800: hsl(263.4 69.3% 42.2%);--sl-color-violet-900: hsl(263.5 67.4% 34.9%);--sl-color-violet-950: hsl(265.1 61.5% 21.4%);--sl-color-purple-50: hsl(270 100% 98%);--sl-color-purple-100: hsl(268.7 100% 95.5%);--sl-color-purple-200: hsl(268.6 100% 91.8%);--sl-color-purple-300: hsl(269.2 97.4% 85.1%);--sl-color-purple-400: hsl(270 95.2% 75.3%);--sl-color-purple-500: hsl(270.7 91% 65.1%);--sl-color-purple-600: hsl(271.5 81.3% 55.9%);--sl-color-purple-700: hsl(272.1 71.7% 47.1%);--sl-color-purple-800: hsl(272.9 67.2% 39.4%);--sl-color-purple-900: hsl(273.6 65.6% 32%);--sl-color-purple-950: hsl(276 59.5% 16.5%);--sl-color-fuchsia-50: hsl(289.1 100% 97.8%);--sl-color-fuchsia-100: hsl(287 100% 95.5%);--sl-color-fuchsia-200: hsl(288.3 95.8% 90.6%);--sl-color-fuchsia-300: hsl(291.1 93.1% 82.9%);--sl-color-fuchsia-400: hsl(292 91.4% 72.5%);--sl-color-fuchsia-500: hsl(292.2 84.1% 60.6%);--sl-color-fuchsia-600: hsl(293.4 69.5% 48.8%);--sl-color-fuchsia-700: hsl(294.7 72.4% 39.8%);--sl-color-fuchsia-800: hsl(295.4 70.2% 32.9%);--sl-color-fuchsia-900: hsl(296.7 63.6% 28%);--sl-color-fuchsia-950: hsl(297.1 56.8% 14.5%);--sl-color-pink-50: hsl(327.3 73.3% 97.1%);--sl-color-pink-100: hsl(325.7 77.8% 94.7%);--sl-color-pink-200: hsl(325.9 84.6% 89.8%);--sl-color-pink-300: hsl(327.4 87.1% 81.8%);--sl-color-pink-400: hsl(328.6 85.5% 70.2%);--sl-color-pink-500: hsl(330.4 81.2% 60.4%);--sl-color-pink-600: hsl(333.3 71.4% 50.6%);--sl-color-pink-700: hsl(335.1 77.6% 42%);--sl-color-pink-800: hsl(335.8 74.4% 35.3%);--sl-color-pink-900: hsl(335.9 69% 30.4%);--sl-color-pink-950: hsl(336.2 65.4% 15.9%);--sl-color-rose-50: hsl(355.7 100% 97.3%);--sl-color-rose-100: hsl(355.6 100% 94.7%);--sl-color-rose-200: hsl(352.7 96.1% 90%);--sl-color-rose-300: hsl(352.6 95.7% 81.8%);--sl-color-rose-400: hsl(351.3 94.5% 71.4%);--sl-color-rose-500: hsl(349.7 89.2% 60.2%);--sl-color-rose-600: hsl(346.8 77.2% 49.8%);--sl-color-rose-700: hsl(345.3 82.7% 40.8%);--sl-color-rose-800: hsl(343.4 79.7% 34.7%);--sl-color-rose-900: hsl(341.5 75.5% 30.4%);--sl-color-rose-950: hsl(341.3 70.1% 17.1%);--sl-color-primary-50: var(--sl-color-sky-50);--sl-color-primary-100: var(--sl-color-sky-100);--sl-color-primary-200: var(--sl-color-sky-200);--sl-color-primary-300: var(--sl-color-sky-300);--sl-color-primary-400: var(--sl-color-sky-400);--sl-color-primary-500: var(--sl-color-sky-500);--sl-color-primary-600: var(--sl-color-sky-600);--sl-color-primary-700: var(--sl-color-sky-700);--sl-color-primary-800: var(--sl-color-sky-800);--sl-color-primary-900: var(--sl-color-sky-900);--sl-color-primary-950: var(--sl-color-sky-950);--sl-color-success-50: var(--sl-color-green-50);--sl-color-success-100: var(--sl-color-green-100);--sl-color-success-200: var(--sl-color-green-200);--sl-color-success-300: var(--sl-color-green-300);--sl-color-success-400: var(--sl-color-green-400);--sl-color-success-500: var(--sl-color-green-500);--sl-color-success-600: var(--sl-color-green-600);--sl-color-success-700: var(--sl-color-green-700);--sl-color-success-800: var(--sl-color-green-800);--sl-color-success-900: var(--sl-color-green-900);--sl-color-success-950: var(--sl-color-green-950);--sl-color-warning-50: var(--sl-color-amber-50);--sl-color-warning-100: var(--sl-color-amber-100);--sl-color-warning-200: var(--sl-color-amber-200);--sl-color-warning-300: var(--sl-color-amber-300);--sl-color-warning-400: var(--sl-color-amber-400);--sl-color-warning-500: var(--sl-color-amber-500);--sl-color-warning-600: var(--sl-color-amber-600);--sl-color-warning-700: var(--sl-color-amber-700);--sl-color-warning-800: var(--sl-color-amber-800);--sl-color-warning-900: var(--sl-color-amber-900);--sl-color-warning-950: var(--sl-color-amber-950);--sl-color-danger-50: var(--sl-color-red-50);--sl-color-danger-100: var(--sl-color-red-100);--sl-color-danger-200: var(--sl-color-red-200);--sl-color-danger-300: var(--sl-color-red-300);--sl-color-danger-400: var(--sl-color-red-400);--sl-color-danger-500: var(--sl-color-red-500);--sl-color-danger-600: var(--sl-color-red-600);--sl-color-danger-700: var(--sl-color-red-700);--sl-color-danger-800: var(--sl-color-red-800);--sl-color-danger-900: var(--sl-color-red-900);--sl-color-danger-950: var(--sl-color-red-950);--sl-color-neutral-50: var(--sl-color-gray-50);--sl-color-neutral-100: var(--sl-color-gray-100);--sl-color-neutral-200: var(--sl-color-gray-200);--sl-color-neutral-300: var(--sl-color-gray-300);--sl-color-neutral-400: var(--sl-color-gray-400);--sl-color-neutral-500: var(--sl-color-gray-500);--sl-color-neutral-600: var(--sl-color-gray-600);--sl-color-neutral-700: var(--sl-color-gray-700);--sl-color-neutral-800: var(--sl-color-gray-800);--sl-color-neutral-900: var(--sl-color-gray-900);--sl-color-neutral-950: var(--sl-color-gray-950);--sl-color-neutral-0: hsl(0, 0%, 100%);--sl-color-neutral-1000: hsl(0, 0%, 0%);--sl-border-radius-small: .1875rem;--sl-border-radius-medium: .25rem;--sl-border-radius-large: .5rem;--sl-border-radius-x-large: 1rem;--sl-border-radius-circle: 50%;--sl-border-radius-pill: 9999px;--sl-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 6%);--sl-shadow-small: 0 1px 2px hsl(240 3.8% 46.1% / 12%);--sl-shadow-medium: 0 2px 4px hsl(240 3.8% 46.1% / 12%);--sl-shadow-large: 0 2px 8px hsl(240 3.8% 46.1% / 12%);--sl-shadow-x-large: 0 4px 16px hsl(240 3.8% 46.1% / 12%);--sl-spacing-3x-small: .125rem;--sl-spacing-2x-small: .25rem;--sl-spacing-x-small: .5rem;--sl-spacing-small: .75rem;--sl-spacing-medium: 1rem;--sl-spacing-large: 1.25rem;--sl-spacing-x-large: 1.75rem;--sl-spacing-2x-large: 2.25rem;--sl-spacing-3x-large: 3rem;--sl-spacing-4x-large: 4.5rem;--sl-transition-x-slow: 1s;--sl-transition-slow: .5s;--sl-transition-medium: .25s;--sl-transition-fast: .15s;--sl-transition-x-fast: 50ms;--sl-font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;--sl-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--sl-font-serif: Georgia, "Times New Roman", serif;--sl-font-size-2x-small: .625rem;--sl-font-size-x-small: .75rem;--sl-font-size-small: .875rem;--sl-font-size-medium: 1rem;--sl-font-size-large: 1.25rem;--sl-font-size-x-large: 1.5rem;--sl-font-size-2x-large: 2.25rem;--sl-font-size-3x-large: 3rem;--sl-font-size-4x-large: 4.5rem;--sl-font-weight-light: 300;--sl-font-weight-normal: 400;--sl-font-weight-semibold: 500;--sl-font-weight-bold: 700;--sl-letter-spacing-denser: -.03em;--sl-letter-spacing-dense: -.015em;--sl-letter-spacing-normal: normal;--sl-letter-spacing-loose: .075em;--sl-letter-spacing-looser: .15em;--sl-line-height-denser: 1;--sl-line-height-dense: 1.4;--sl-line-height-normal: 1.8;--sl-line-height-loose: 2.2;--sl-line-height-looser: 2.6;--sl-focus-ring-color: var(--sl-color-primary-600);--sl-focus-ring-style: solid;--sl-focus-ring-width: 3px;--sl-focus-ring: var(--sl-focus-ring-style) var(--sl-focus-ring-width) var(--sl-focus-ring-color);--sl-focus-ring-offset: 1px;--sl-button-font-size-small: var(--sl-font-size-x-small);--sl-button-font-size-medium: var(--sl-font-size-small);--sl-button-font-size-large: var(--sl-font-size-medium);--sl-input-height-small: 1.875rem;--sl-input-height-medium: 2.5rem;--sl-input-height-large: 3.125rem;--sl-input-background-color: var(--sl-color-neutral-0);--sl-input-background-color-hover: var(--sl-input-background-color);--sl-input-background-color-focus: var(--sl-input-background-color);--sl-input-background-color-disabled: var(--sl-color-neutral-100);--sl-input-border-color: var(--sl-color-neutral-300);--sl-input-border-color-hover: var(--sl-color-neutral-400);--sl-input-border-color-focus: var(--sl-color-primary-500);--sl-input-border-color-disabled: var(--sl-color-neutral-300);--sl-input-border-width: 1px;--sl-input-required-content: "*";--sl-input-required-content-offset: -2px;--sl-input-required-content-color: var(--sl-input-label-color);--sl-input-border-radius-small: var(--sl-border-radius-medium);--sl-input-border-radius-medium: var(--sl-border-radius-medium);--sl-input-border-radius-large: var(--sl-border-radius-medium);--sl-input-font-family: var(--sl-font-sans);--sl-input-font-weight: var(--sl-font-weight-normal);--sl-input-font-size-small: var(--sl-font-size-small);--sl-input-font-size-medium: var(--sl-font-size-medium);--sl-input-font-size-large: var(--sl-font-size-large);--sl-input-letter-spacing: var(--sl-letter-spacing-normal);--sl-input-color: var(--sl-color-neutral-700);--sl-input-color-hover: var(--sl-color-neutral-700);--sl-input-color-focus: var(--sl-color-neutral-700);--sl-input-color-disabled: var(--sl-color-neutral-900);--sl-input-icon-color: var(--sl-color-neutral-500);--sl-input-icon-color-hover: var(--sl-color-neutral-600);--sl-input-icon-color-focus: var(--sl-color-neutral-600);--sl-input-placeholder-color: var(--sl-color-neutral-500);--sl-input-placeholder-color-disabled: var(--sl-color-neutral-600);--sl-input-spacing-small: var(--sl-spacing-small);--sl-input-spacing-medium: var(--sl-spacing-medium);--sl-input-spacing-large: var(--sl-spacing-large);--sl-input-focus-ring-color: hsl(198.6 88.7% 48.4% / 40%);--sl-input-focus-ring-offset: 0;--sl-input-filled-background-color: var(--sl-color-neutral-100);--sl-input-filled-background-color-hover: var(--sl-color-neutral-100);--sl-input-filled-background-color-focus: var(--sl-color-neutral-100);--sl-input-filled-background-color-disabled: var(--sl-color-neutral-100);--sl-input-filled-color: var(--sl-color-neutral-800);--sl-input-filled-color-hover: var(--sl-color-neutral-800);--sl-input-filled-color-focus: var(--sl-color-neutral-700);--sl-input-filled-color-disabled: var(--sl-color-neutral-800);--sl-input-label-font-size-small: var(--sl-font-size-small);--sl-input-label-font-size-medium: var(--sl-font-size-medium);--sl-input-label-font-size-large: var(--sl-font-size-large);--sl-input-label-color: inherit;--sl-input-help-text-font-size-small: var(--sl-font-size-x-small);--sl-input-help-text-font-size-medium: var(--sl-font-size-small);--sl-input-help-text-font-size-large: var(--sl-font-size-medium);--sl-input-help-text-color: var(--sl-color-neutral-500);--sl-toggle-size-small: .875rem;--sl-toggle-size-medium: 1.125rem;--sl-toggle-size-large: 1.375rem;--sl-overlay-background-color: hsl(240 3.8% 46.1% / 33%);--sl-panel-background-color: var(--sl-color-neutral-0);--sl-panel-border-color: var(--sl-color-neutral-200);--sl-panel-border-width: 1px;--sl-tooltip-border-radius: var(--sl-border-radius-medium);--sl-tooltip-background-color: var(--sl-color-neutral-800);--sl-tooltip-color: var(--sl-color-neutral-0);--sl-tooltip-font-family: var(--sl-font-sans);--sl-tooltip-font-weight: var(--sl-font-weight-normal);--sl-tooltip-font-size: var(--sl-font-size-small);--sl-tooltip-line-height: var(--sl-line-height-dense);--sl-tooltip-padding: var(--sl-spacing-2x-small) var(--sl-spacing-x-small);--sl-tooltip-arrow-size: 6px;--sl-z-index-drawer: 700;--sl-z-index-dialog: 800;--sl-z-index-dropdown: 900;--sl-z-index-toast: 950;--sl-z-index-tooltip: 1000}.sl-scroll-lock{padding-right:var(--sl-scroll-lock-size)!important;overflow:hidden!important}.sl-toast-stack{position:fixed;top:0;inset-inline-end:0;z-index:var(--sl-z-index-toast);width:28rem;max-width:100%;max-height:100%;overflow:auto}.sl-toast-stack sl-alert{margin:var(--sl-spacing-medium)}.sl-toast-stack sl-alert::part(base){box-shadow:var(--sl-shadow-large)}')),document.head.appendChild(l)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var At = Object.getOwnPropertySymbols,
|
|
2
|
+
var Xr = Object.defineProperty, Qr = Object.defineProperties;
|
|
3
|
+
var ei = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var At = Object.getOwnPropertySymbols, ti = Object.getPrototypeOf, ts = Object.prototype.hasOwnProperty, ns = Object.prototype.propertyIsEnumerable, ni = Reflect.get;
|
|
5
5
|
var en = (t, e) => {
|
|
6
6
|
if (e = Symbol[t])
|
|
7
7
|
return e;
|
|
8
8
|
throw Error("Symbol." + t + " is not defined");
|
|
9
9
|
};
|
|
10
|
-
var es = (t, e, n) => e in t ?
|
|
10
|
+
var es = (t, e, n) => e in t ? Xr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, h = (t, e) => {
|
|
11
11
|
for (var n in e || (e = {}))
|
|
12
12
|
ts.call(e, n) && es(t, n, e[n]);
|
|
13
13
|
if (At)
|
|
14
14
|
for (var n of At(e))
|
|
15
15
|
ns.call(e, n) && es(t, n, e[n]);
|
|
16
16
|
return t;
|
|
17
|
-
}, y = (t, e) =>
|
|
17
|
+
}, y = (t, e) => Qr(t, ei(e));
|
|
18
18
|
var ss = (t, e) => {
|
|
19
19
|
var n = {};
|
|
20
20
|
for (var s in t)
|
|
@@ -24,7 +24,7 @@ var ss = (t, e) => {
|
|
|
24
24
|
e.indexOf(s) < 0 && ns.call(t, s) && (n[s] = t[s]);
|
|
25
25
|
return n;
|
|
26
26
|
};
|
|
27
|
-
var we = (t, e, n) => ti(
|
|
27
|
+
var we = (t, e, n) => ni(ti(t), n, e);
|
|
28
28
|
var g = (t, e, n) => new Promise((s, r) => {
|
|
29
29
|
var i = (d) => {
|
|
30
30
|
try {
|
|
@@ -40,7 +40,7 @@ var g = (t, e, n) => new Promise((s, r) => {
|
|
|
40
40
|
}
|
|
41
41
|
}, a = (d) => d.done ? s(d.value) : Promise.resolve(d.value).then(i, o);
|
|
42
42
|
a((n = n.apply(t, e)).next());
|
|
43
|
-
}),
|
|
43
|
+
}), si = function(t, e) {
|
|
44
44
|
this[0] = t, this[1] = e;
|
|
45
45
|
};
|
|
46
46
|
var rs = (t) => {
|
|
@@ -53,7 +53,7 @@ var rs = (t) => {
|
|
|
53
53
|
}
|
|
54
54
|
return n = !0, {
|
|
55
55
|
done: !1,
|
|
56
|
-
value: new
|
|
56
|
+
value: new si(new Promise((a) => {
|
|
57
57
|
var d = e[i](o);
|
|
58
58
|
if (!(d instanceof Object))
|
|
59
59
|
throw TypeError("Object expected");
|
|
@@ -89,7 +89,7 @@ let tr = class {
|
|
|
89
89
|
return this.cssText;
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
const
|
|
92
|
+
const ri = (t) => new tr(typeof t == "string" ? t : t + "", void 0, Hn), x = (t, ...e) => {
|
|
93
93
|
const n = t.length === 1 ? t[0] : e.reduce((s, r, i) => s + ((o) => {
|
|
94
94
|
if (o._$cssResult$ === !0)
|
|
95
95
|
return o.cssText;
|
|
@@ -98,7 +98,7 @@ const si = (t) => new tr(typeof t == "string" ? t : t + "", void 0, Hn), x = (t,
|
|
|
98
98
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
99
99
|
})(r) + t[i + 1], t[0]);
|
|
100
100
|
return new tr(n, t, Hn);
|
|
101
|
-
},
|
|
101
|
+
}, ii = (t, e) => {
|
|
102
102
|
Vn ? t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet) : e.forEach((n) => {
|
|
103
103
|
const s = document.createElement("style"), r = Nt.litNonce;
|
|
104
104
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = n.cssText, t.appendChild(s);
|
|
@@ -107,7 +107,7 @@ const si = (t) => new tr(typeof t == "string" ? t : t + "", void 0, Hn), x = (t,
|
|
|
107
107
|
let n = "";
|
|
108
108
|
for (const s of e.cssRules)
|
|
109
109
|
n += s.cssText;
|
|
110
|
-
return
|
|
110
|
+
return ri(n);
|
|
111
111
|
})(t) : t;
|
|
112
112
|
/**
|
|
113
113
|
* @license
|
|
@@ -115,10 +115,10 @@ const si = (t) => new tr(typeof t == "string" ? t : t + "", void 0, Hn), x = (t,
|
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
116
|
*/
|
|
117
117
|
var tn;
|
|
118
|
-
const Dt = window, as = Dt.trustedTypes,
|
|
118
|
+
const Dt = window, as = Dt.trustedTypes, oi = as ? as.emptyScript : "", ds = Dt.reactiveElementPolyfillSupport, _n = { toAttribute(t, e) {
|
|
119
119
|
switch (e) {
|
|
120
120
|
case Boolean:
|
|
121
|
-
t = t ?
|
|
121
|
+
t = t ? oi : null;
|
|
122
122
|
break;
|
|
123
123
|
case Object:
|
|
124
124
|
case Array:
|
|
@@ -223,7 +223,7 @@ let He = class extends HTMLElement {
|
|
|
223
223
|
createRenderRoot() {
|
|
224
224
|
var e;
|
|
225
225
|
const n = (e = this.shadowRoot) !== null && e !== void 0 ? e : this.attachShadow(this.constructor.shadowRootOptions);
|
|
226
|
-
return
|
|
226
|
+
return ii(n, this.constructor.elementStyles), n;
|
|
227
227
|
}
|
|
228
228
|
connectedCallback() {
|
|
229
229
|
var e;
|
|
@@ -332,24 +332,24 @@ He[bn] = !0, He.elementProperties = /* @__PURE__ */ new Map(), He.elementStyles
|
|
|
332
332
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
333
333
|
*/
|
|
334
334
|
var sn;
|
|
335
|
-
const
|
|
336
|
-
\f\r]`, tt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ls = /-->/g, us = />/g,
|
|
337
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), hs = /'/g, ps = /"/g, ir = /^(?:script|style|textarea|title)$/i,
|
|
335
|
+
const $t = window, ze = $t.trustedTypes, cs = ze ? ze.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, yn = "$lit$", fe = `lit$${(Math.random() + "").slice(9)}$`, sr = "?" + fe, ai = `<${sr}>`, De = document, dt = () => De.createComment(""), ct = (t) => t === null || typeof t != "object" && typeof t != "function", rr = Array.isArray, di = (t) => rr(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", rn = `[
|
|
336
|
+
\f\r]`, tt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ls = /-->/g, us = />/g, Te = RegExp(`>|${rn}(?:([^\\s"'>=/]+)(${rn}*=${rn}*(?:[^
|
|
337
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), hs = /'/g, ps = /"/g, ir = /^(?:script|style|textarea|title)$/i, ci = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), u = ci(1), $e = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), fs = /* @__PURE__ */ new WeakMap(), Re = De.createTreeWalker(De, 129, null, !1);
|
|
338
338
|
function or(t, e) {
|
|
339
339
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
340
340
|
throw Error("invalid template strings array");
|
|
341
341
|
return cs !== void 0 ? cs.createHTML(e) : e;
|
|
342
342
|
}
|
|
343
|
-
const
|
|
343
|
+
const li = (t, e) => {
|
|
344
344
|
const n = t.length - 1, s = [];
|
|
345
345
|
let r, i = e === 2 ? "<svg>" : "", o = tt;
|
|
346
346
|
for (let a = 0; a < n; a++) {
|
|
347
347
|
const d = t[a];
|
|
348
348
|
let c, f, p = -1, m = 0;
|
|
349
349
|
for (; m < d.length && (o.lastIndex = m, f = o.exec(d), f !== null); )
|
|
350
|
-
m = o.lastIndex, o === tt ? f[1] === "!--" ? o = ls : f[1] !== void 0 ? o = us : f[2] !== void 0 ? (ir.test(f[2]) && (r = RegExp("</" + f[2], "g")), o =
|
|
351
|
-
const b = o ===
|
|
352
|
-
i += o === tt ? d +
|
|
350
|
+
m = o.lastIndex, o === tt ? f[1] === "!--" ? o = ls : f[1] !== void 0 ? o = us : f[2] !== void 0 ? (ir.test(f[2]) && (r = RegExp("</" + f[2], "g")), o = Te) : f[3] !== void 0 && (o = Te) : o === Te ? f[0] === ">" ? (o = r != null ? r : tt, p = -1) : f[1] === void 0 ? p = -2 : (p = o.lastIndex - f[2].length, c = f[1], o = f[3] === void 0 ? Te : f[3] === '"' ? ps : hs) : o === ps || o === hs ? o = Te : o === ls || o === us ? o = tt : (o = Te, r = void 0);
|
|
351
|
+
const b = o === Te && t[a + 1].startsWith("/>") ? " " : "";
|
|
352
|
+
i += o === tt ? d + ai : p >= 0 ? (s.push(c), d.slice(0, p) + yn + d.slice(p) + fe + b) : d + fe + (p === -2 ? (s.push(void 0), a) : b);
|
|
353
353
|
}
|
|
354
354
|
return [or(t, i + (t[n] || "<?>") + (e === 2 ? "</svg>" : "")), s];
|
|
355
355
|
};
|
|
@@ -358,7 +358,7 @@ class lt {
|
|
|
358
358
|
let r;
|
|
359
359
|
this.parts = [];
|
|
360
360
|
let i = 0, o = 0;
|
|
361
|
-
const a = e.length - 1, d = this.parts, [c, f] =
|
|
361
|
+
const a = e.length - 1, d = this.parts, [c, f] = li(e, n);
|
|
362
362
|
if (this.el = lt.createElement(c, s), Re.currentNode = this.el.content, n === 2) {
|
|
363
363
|
const p = this.el.content, m = p.firstChild;
|
|
364
364
|
m.remove(), p.append(...m.childNodes);
|
|
@@ -372,7 +372,7 @@ class lt {
|
|
|
372
372
|
const b = f[o++];
|
|
373
373
|
if (p.push(m), b !== void 0) {
|
|
374
374
|
const ie = r.getAttribute(b.toLowerCase() + yn).split(fe), Et = /([.?@])?(.*)/.exec(b);
|
|
375
|
-
d.push({ type: 1, index: i, name: Et[2], strings: ie, ctor: Et[1] === "." ?
|
|
375
|
+
d.push({ type: 1, index: i, name: Et[2], strings: ie, ctor: Et[1] === "." ? hi : Et[1] === "?" ? fi : Et[1] === "@" ? gi : Ut });
|
|
376
376
|
} else
|
|
377
377
|
d.push({ type: 6, index: i });
|
|
378
378
|
}
|
|
@@ -406,13 +406,13 @@ class lt {
|
|
|
406
406
|
}
|
|
407
407
|
function Ge(t, e, n = t, s) {
|
|
408
408
|
var r, i, o, a;
|
|
409
|
-
if (e ===
|
|
409
|
+
if (e === $e)
|
|
410
410
|
return e;
|
|
411
411
|
let d = s !== void 0 ? (r = n._$Co) === null || r === void 0 ? void 0 : r[s] : n._$Cl;
|
|
412
412
|
const c = ct(e) ? void 0 : e._$litDirective$;
|
|
413
413
|
return (d == null ? void 0 : d.constructor) !== c && ((i = d == null ? void 0 : d._$AO) === null || i === void 0 || i.call(d, !1), c === void 0 ? d = void 0 : (d = new c(t), d._$AT(t, n, s)), s !== void 0 ? ((o = (a = n)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[s] = d : n._$Cl = d), d !== void 0 && (e = Ge(t, d._$AS(t, e.values), d, s)), e;
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class ui {
|
|
416
416
|
constructor(e, n) {
|
|
417
417
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = n;
|
|
418
418
|
}
|
|
@@ -430,7 +430,7 @@ class li {
|
|
|
430
430
|
for (; c !== void 0; ) {
|
|
431
431
|
if (a === c.index) {
|
|
432
432
|
let f;
|
|
433
|
-
c.type === 2 ? f = new gt(o, o.nextSibling, this, e) : c.type === 1 ? f = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (f = new
|
|
433
|
+
c.type === 2 ? f = new gt(o, o.nextSibling, this, e) : c.type === 1 ? f = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (f = new mi(o, this, e)), this._$AV.push(f), c = r[++d];
|
|
434
434
|
}
|
|
435
435
|
a !== (c == null ? void 0 : c.index) && (o = Re.nextNode(), a++);
|
|
436
436
|
}
|
|
@@ -463,7 +463,7 @@ class gt {
|
|
|
463
463
|
return this._$AB;
|
|
464
464
|
}
|
|
465
465
|
_$AI(e, n = this) {
|
|
466
|
-
e = Ge(this, e, n), ct(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !==
|
|
466
|
+
e = Ge(this, e, n), ct(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !== $e && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : di(e) ? this.T(e) : this._(e);
|
|
467
467
|
}
|
|
468
468
|
k(e) {
|
|
469
469
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -480,7 +480,7 @@ class gt {
|
|
|
480
480
|
if (((n = this._$AH) === null || n === void 0 ? void 0 : n._$AD) === i)
|
|
481
481
|
this._$AH.v(s);
|
|
482
482
|
else {
|
|
483
|
-
const o = new
|
|
483
|
+
const o = new ui(i, this), a = o.u(this.options);
|
|
484
484
|
o.v(s), this.$(a), this._$AH = o;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
@@ -522,12 +522,12 @@ class Ut {
|
|
|
522
522
|
const i = this.strings;
|
|
523
523
|
let o = !1;
|
|
524
524
|
if (i === void 0)
|
|
525
|
-
e = Ge(this, e, n, 0), o = !ct(e) || e !== this._$AH && e !==
|
|
525
|
+
e = Ge(this, e, n, 0), o = !ct(e) || e !== this._$AH && e !== $e, o && (this._$AH = e);
|
|
526
526
|
else {
|
|
527
527
|
const a = e;
|
|
528
528
|
let d, c;
|
|
529
529
|
for (e = i[0], d = 0; d < i.length - 1; d++)
|
|
530
|
-
c = Ge(this, a[s + d], n, d), c ===
|
|
530
|
+
c = Ge(this, a[s + d], n, d), c === $e && (c = this._$AH[d]), o || (o = !ct(c) || c !== this._$AH[d]), c === w ? e = w : e !== w && (e += (c != null ? c : "") + i[d + 1]), this._$AH[d] = c;
|
|
531
531
|
}
|
|
532
532
|
o && !r && this.j(e);
|
|
533
533
|
}
|
|
@@ -535,7 +535,7 @@ class Ut {
|
|
|
535
535
|
e === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e != null ? e : "");
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
class
|
|
538
|
+
class hi extends Ut {
|
|
539
539
|
constructor() {
|
|
540
540
|
super(...arguments), this.type = 3;
|
|
541
541
|
}
|
|
@@ -543,22 +543,22 @@ class ui extends Ut {
|
|
|
543
543
|
this.element[this.name] = e === w ? void 0 : e;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
const
|
|
547
|
-
class
|
|
546
|
+
const pi = ze ? ze.emptyScript : "";
|
|
547
|
+
class fi extends Ut {
|
|
548
548
|
constructor() {
|
|
549
549
|
super(...arguments), this.type = 4;
|
|
550
550
|
}
|
|
551
551
|
j(e) {
|
|
552
|
-
e && e !== w ? this.element.setAttribute(this.name,
|
|
552
|
+
e && e !== w ? this.element.setAttribute(this.name, pi) : this.element.removeAttribute(this.name);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
class
|
|
555
|
+
class gi extends Ut {
|
|
556
556
|
constructor(e, n, s, r, i) {
|
|
557
557
|
super(e, n, s, r, i), this.type = 5;
|
|
558
558
|
}
|
|
559
559
|
_$AI(e, n = this) {
|
|
560
560
|
var s;
|
|
561
|
-
if ((e = (s = Ge(this, e, n, 0)) !== null && s !== void 0 ? s : w) ===
|
|
561
|
+
if ((e = (s = Ge(this, e, n, 0)) !== null && s !== void 0 ? s : w) === $e)
|
|
562
562
|
return;
|
|
563
563
|
const r = this._$AH, i = e === w && r !== w || e.capture !== r.capture || e.once !== r.once || e.passive !== r.passive, o = e !== w && (r === w || i);
|
|
564
564
|
i && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
@@ -568,7 +568,7 @@ class fi extends Ut {
|
|
|
568
568
|
typeof this._$AH == "function" ? this._$AH.call((s = (n = this.options) === null || n === void 0 ? void 0 : n.host) !== null && s !== void 0 ? s : this.element, e) : this._$AH.handleEvent(e);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
class
|
|
571
|
+
class mi {
|
|
572
572
|
constructor(e, n, s) {
|
|
573
573
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = s;
|
|
574
574
|
}
|
|
@@ -579,9 +579,9 @@ class gi {
|
|
|
579
579
|
Ge(this, e);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
const gs =
|
|
583
|
-
gs == null || gs(lt, gt), ((sn =
|
|
584
|
-
const
|
|
582
|
+
const gs = $t.litHtmlPolyfillSupport;
|
|
583
|
+
gs == null || gs(lt, gt), ((sn = $t.litHtmlVersions) !== null && sn !== void 0 ? sn : $t.litHtmlVersions = []).push("2.8.0");
|
|
584
|
+
const vi = (t, e, n) => {
|
|
585
585
|
var s, r;
|
|
586
586
|
const i = (s = n == null ? void 0 : n.renderBefore) !== null && s !== void 0 ? s : e;
|
|
587
587
|
let o = i._$litPart$;
|
|
@@ -608,7 +608,7 @@ let E = class extends He {
|
|
|
608
608
|
}
|
|
609
609
|
update(e) {
|
|
610
610
|
const n = this.render();
|
|
611
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
611
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = vi(n, this.renderRoot, this.renderOptions);
|
|
612
612
|
}
|
|
613
613
|
connectedCallback() {
|
|
614
614
|
var e;
|
|
@@ -619,7 +619,7 @@ let E = class extends He {
|
|
|
619
619
|
super.disconnectedCallback(), (e = this._$Do) === null || e === void 0 || e.setConnected(!1);
|
|
620
620
|
}
|
|
621
621
|
render() {
|
|
622
|
-
return
|
|
622
|
+
return $e;
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
E.finalized = !0, E._$litElement$ = !0, (on = globalThis.litElementHydrateSupport) === null || on === void 0 || on.call(globalThis, { LitElement: E });
|
|
@@ -642,17 +642,17 @@ const A = (t) => (e) => typeof e == "function" ? ((n, s) => (customElements.defi
|
|
|
642
642
|
* Copyright 2017 Google LLC
|
|
643
643
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
644
644
|
*/
|
|
645
|
-
const
|
|
645
|
+
const _i = (t, e) => e.kind === "method" && e.descriptor && !("value" in e.descriptor) ? y(h({}, e), { finisher(n) {
|
|
646
646
|
n.createProperty(e.key, t);
|
|
647
647
|
} }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e.key, initializer() {
|
|
648
648
|
typeof e.initializer == "function" && (this[e.key] = e.initializer.call(this));
|
|
649
649
|
}, finisher(n) {
|
|
650
650
|
n.createProperty(e.key, t);
|
|
651
|
-
} },
|
|
651
|
+
} }, bi = (t, e, n) => {
|
|
652
652
|
e.constructor.createProperty(n, t);
|
|
653
653
|
};
|
|
654
654
|
function l(t) {
|
|
655
|
-
return (e, n) => n !== void 0 ?
|
|
655
|
+
return (e, n) => n !== void 0 ? bi(t, e, n) : _i(t, e);
|
|
656
656
|
}
|
|
657
657
|
/**
|
|
658
658
|
* @license
|
|
@@ -685,7 +685,7 @@ const Vt = ({ finisher: t, descriptor: e }) => (n, s) => {
|
|
|
685
685
|
* Copyright 2017 Google LLC
|
|
686
686
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
687
687
|
*/
|
|
688
|
-
function
|
|
688
|
+
function R(t, e) {
|
|
689
689
|
return Vt({ descriptor: (n) => {
|
|
690
690
|
const s = { get() {
|
|
691
691
|
var r, i;
|
|
@@ -706,7 +706,7 @@ function O(t, e) {
|
|
|
706
706
|
* Copyright 2017 Google LLC
|
|
707
707
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
708
708
|
*/
|
|
709
|
-
function
|
|
709
|
+
function yi(t) {
|
|
710
710
|
return Vt({ descriptor: (e) => ({ get() {
|
|
711
711
|
return g(this, null, function* () {
|
|
712
712
|
var s;
|
|
@@ -735,7 +735,7 @@ let dr = class extends Event {
|
|
|
735
735
|
* Copyright 2021 Google LLC
|
|
736
736
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
737
737
|
*/
|
|
738
|
-
let
|
|
738
|
+
let Ei = class {
|
|
739
739
|
constructor(e, n, s, r) {
|
|
740
740
|
var i;
|
|
741
741
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, a) => {
|
|
@@ -762,7 +762,7 @@ let yi = class {
|
|
|
762
762
|
* Copyright 2021 Google LLC
|
|
763
763
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
764
764
|
*/
|
|
765
|
-
let
|
|
765
|
+
let Ai = class {
|
|
766
766
|
constructor(e) {
|
|
767
767
|
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
|
768
768
|
for (const [n, { disposer: s }] of this.subscriptions)
|
|
@@ -797,11 +797,11 @@ let Ei = class {
|
|
|
797
797
|
* Copyright 2021 Google LLC
|
|
798
798
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
799
799
|
*/
|
|
800
|
-
let
|
|
800
|
+
let wi = class extends Event {
|
|
801
801
|
constructor(e) {
|
|
802
802
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
|
803
803
|
}
|
|
804
|
-
},
|
|
804
|
+
}, Ti = class extends Ai {
|
|
805
805
|
constructor(e, n, s) {
|
|
806
806
|
super(n.context !== void 0 ? n.initialValue : s), this.onContextRequest = (r) => {
|
|
807
807
|
const i = r.composedPath()[0];
|
|
@@ -819,7 +819,7 @@ let Ai = class extends Event {
|
|
|
819
819
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
820
820
|
}
|
|
821
821
|
hostConnected() {
|
|
822
|
-
this.host.dispatchEvent(new
|
|
822
|
+
this.host.dispatchEvent(new wi(this.context));
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
/**
|
|
@@ -827,11 +827,11 @@ let Ai = class extends Event {
|
|
|
827
827
|
* Copyright 2017 Google LLC
|
|
828
828
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
829
829
|
*/
|
|
830
|
-
function
|
|
830
|
+
function j({ context: t }) {
|
|
831
831
|
return Vt({ finisher: (e, n) => {
|
|
832
832
|
const s = /* @__PURE__ */ new WeakMap();
|
|
833
833
|
e.addInitializer((a) => {
|
|
834
|
-
s.set(a, new
|
|
834
|
+
s.set(a, new Ti(a, { context: t }));
|
|
835
835
|
});
|
|
836
836
|
const r = Object.getOwnPropertyDescriptor(e.prototype, n), i = r == null ? void 0 : r.set, o = y(h({}, r), { set: function(a) {
|
|
837
837
|
var d;
|
|
@@ -848,7 +848,7 @@ function z({ context: t }) {
|
|
|
848
848
|
function v({ context: t, subscribe: e }) {
|
|
849
849
|
return Vt({ finisher: (n, s) => {
|
|
850
850
|
n.addInitializer((r) => {
|
|
851
|
-
new
|
|
851
|
+
new Ei(r, { context: t, callback: (i) => {
|
|
852
852
|
r[s] = i;
|
|
853
853
|
}, subscribe: e });
|
|
854
854
|
});
|
|
@@ -862,7 +862,7 @@ function lr(t) {
|
|
|
862
862
|
case "[object DOMException]":
|
|
863
863
|
return !0;
|
|
864
864
|
default:
|
|
865
|
-
return
|
|
865
|
+
return Ce(t, Error);
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
function mt(t, e) {
|
|
@@ -887,21 +887,21 @@ function qe(t) {
|
|
|
887
887
|
return mt(t, "Object");
|
|
888
888
|
}
|
|
889
889
|
function Ht(t) {
|
|
890
|
-
return typeof Event != "undefined" &&
|
|
890
|
+
return typeof Event != "undefined" && Ce(t, Event);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
893
|
-
return typeof Element != "undefined" &&
|
|
892
|
+
function xi(t) {
|
|
893
|
+
return typeof Element != "undefined" && Ce(t, Element);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function jn(t) {
|
|
896
896
|
return !!(t && t.then && typeof t.then == "function");
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Ii(t) {
|
|
899
899
|
return qe(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Oi(t) {
|
|
902
902
|
return typeof t == "number" && t !== t;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Ce(t, e) {
|
|
905
905
|
try {
|
|
906
906
|
return t instanceof e;
|
|
907
907
|
} catch (n) {
|
|
@@ -911,7 +911,7 @@ function $e(t, e) {
|
|
|
911
911
|
function hr(t) {
|
|
912
912
|
return !!(typeof t == "object" && t !== null && (t.__isVue || t._isVue));
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function Ye(t, e = 0) {
|
|
915
915
|
return typeof t != "string" || e === 0 || t.length <= e ? t : `${t.slice(0, e)}...`;
|
|
916
916
|
}
|
|
917
917
|
function _s(t, e) {
|
|
@@ -928,11 +928,11 @@ function _s(t, e) {
|
|
|
928
928
|
}
|
|
929
929
|
return n.join(e);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
932
|
-
if (!i.exception || !i.exception.values || !o ||
|
|
931
|
+
function Ri(t, e, n = 250, s, r, i, o) {
|
|
932
|
+
if (!i.exception || !i.exception.values || !o || !Ce(o.originalException, Error))
|
|
933
933
|
return;
|
|
934
934
|
const a = i.exception.values.length > 0 ? i.exception.values[i.exception.values.length - 1] : void 0;
|
|
935
|
-
a && (i.exception.values =
|
|
935
|
+
a && (i.exception.values = Ni(
|
|
936
936
|
En(
|
|
937
937
|
t,
|
|
938
938
|
e,
|
|
@@ -950,7 +950,7 @@ function En(t, e, n, s, r, i, o, a) {
|
|
|
950
950
|
if (i.length >= n + 1)
|
|
951
951
|
return i;
|
|
952
952
|
let d = [...i];
|
|
953
|
-
if (
|
|
953
|
+
if (Ce(s[r], Error)) {
|
|
954
954
|
bs(o, a);
|
|
955
955
|
const c = t(e, s[r]), f = d.length;
|
|
956
956
|
ys(c, r, f, a), d = En(
|
|
@@ -965,7 +965,7 @@ function En(t, e, n, s, r, i, o, a) {
|
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
967
|
return Array.isArray(s.errors) && s.errors.forEach((c, f) => {
|
|
968
|
-
if (
|
|
968
|
+
if (Ce(c, Error)) {
|
|
969
969
|
bs(o, a);
|
|
970
970
|
const p = t(e, c), m = d.length;
|
|
971
971
|
ys(p, `errors[${f}]`, m, a), d = En(
|
|
@@ -995,8 +995,8 @@ function ys(t, e, n, s) {
|
|
|
995
995
|
parent_id: s
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
return t.map((n) => (n.value && (n.value =
|
|
998
|
+
function Ni(t, e) {
|
|
999
|
+
return t.map((n) => (n.value && (n.value = Ye(n.value, e)), n));
|
|
1000
1000
|
}
|
|
1001
1001
|
function wt(t) {
|
|
1002
1002
|
return t && t.Math == Math ? t : void 0;
|
|
@@ -1012,7 +1012,7 @@ function pr(t, e, n) {
|
|
|
1012
1012
|
const s = n || I, r = s.__SENTRY__ = s.__SENTRY__ || {};
|
|
1013
1013
|
return r[t] || (r[t] = e());
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const Di = vt(), $i = 80;
|
|
1016
1016
|
function An(t, e = {}) {
|
|
1017
1017
|
if (!t)
|
|
1018
1018
|
return "<unknown>";
|
|
@@ -1022,7 +1022,7 @@ function An(t, e = {}) {
|
|
|
1022
1022
|
let i = 0, o = 0;
|
|
1023
1023
|
const a = " > ", d = a.length;
|
|
1024
1024
|
let c;
|
|
1025
|
-
const f = Array.isArray(e) ? e : e.keyAttrs, p = !Array.isArray(e) && e.maxStringLength ||
|
|
1025
|
+
const f = Array.isArray(e) ? e : e.keyAttrs, p = !Array.isArray(e) && e.maxStringLength || $i;
|
|
1026
1026
|
for (; n && i++ < s && (c = Ci(n, f), !(c === "html" || i > 1 && o + r.length * d + c.length >= p)); )
|
|
1027
1027
|
r.push(c), o += c.length, n = n.parentNode;
|
|
1028
1028
|
return r.reverse().join(a);
|
|
@@ -1049,20 +1049,20 @@ function Ci(t, e) {
|
|
|
1049
1049
|
o = f[d], a = n.getAttribute(o), a && s.push(`[${o}="${a}"]`);
|
|
1050
1050
|
return s.join("");
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Li() {
|
|
1053
1053
|
try {
|
|
1054
|
-
return
|
|
1054
|
+
return Di.document.location.href;
|
|
1055
1055
|
} catch (t) {
|
|
1056
1056
|
return "";
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1060
|
-
function
|
|
1059
|
+
const Pi = ["debug", "info", "warn", "error", "log", "assert", "trace"], Ct = {};
|
|
1060
|
+
function ki(t) {
|
|
1061
1061
|
if (!("console" in I))
|
|
1062
1062
|
return t();
|
|
1063
|
-
const e = I.console, n = {}, s = Object.keys(
|
|
1063
|
+
const e = I.console, n = {}, s = Object.keys(Ct);
|
|
1064
1064
|
s.forEach((r) => {
|
|
1065
|
-
const i =
|
|
1065
|
+
const i = Ct[r];
|
|
1066
1066
|
n[r] = e[r], e[r] = i;
|
|
1067
1067
|
});
|
|
1068
1068
|
try {
|
|
@@ -1073,13 +1073,13 @@ function Pi(t) {
|
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1076
|
+
const Mi = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
1077
1077
|
function Ft(t, e = !1) {
|
|
1078
1078
|
const { host: n, path: s, pass: r, port: i, projectId: o, protocol: a, publicKey: d } = t;
|
|
1079
1079
|
return `${a}://${d}${e && r ? `:${r}` : ""}@${n}${i ? `:${i}` : ""}/${s && `${s}/`}${o}`;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1082
|
-
const e =
|
|
1081
|
+
function Ui(t) {
|
|
1082
|
+
const e = Mi.exec(t);
|
|
1083
1083
|
if (!e) {
|
|
1084
1084
|
console.error(`Invalid Sentry Dsn: ${t}`);
|
|
1085
1085
|
return;
|
|
@@ -1104,12 +1104,12 @@ function fr(t) {
|
|
|
1104
1104
|
projectId: t.projectId
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Vi(t) {
|
|
1108
1108
|
return !0;
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const e = typeof t == "string" ?
|
|
1112
|
-
if (!(!e || !
|
|
1110
|
+
function Hi(t) {
|
|
1111
|
+
const e = typeof t == "string" ? Ui(t) : fr(t);
|
|
1112
|
+
if (!(!e || !Vi()))
|
|
1113
1113
|
return e;
|
|
1114
1114
|
}
|
|
1115
1115
|
class K extends Error {
|
|
@@ -1122,7 +1122,7 @@ function J(t, e, n) {
|
|
|
1122
1122
|
if (!(e in t))
|
|
1123
1123
|
return;
|
|
1124
1124
|
const s = t[e], r = n(s);
|
|
1125
|
-
typeof r == "function" &&
|
|
1125
|
+
typeof r == "function" && Fi(r, s), t[e] = r;
|
|
1126
1126
|
}
|
|
1127
1127
|
function Lt(t, e, n) {
|
|
1128
1128
|
try {
|
|
@@ -1135,14 +1135,14 @@ function Lt(t, e, n) {
|
|
|
1135
1135
|
} catch (s) {
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Fi(t, e) {
|
|
1139
1139
|
try {
|
|
1140
1140
|
const n = e.prototype || {};
|
|
1141
1141
|
t.prototype = e.prototype = n, Lt(t, "__sentry_original__", e);
|
|
1142
1142
|
} catch (n) {
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function ji(t) {
|
|
1146
1146
|
return Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
|
|
1147
1147
|
}
|
|
1148
1148
|
function gr(t) {
|
|
@@ -1158,13 +1158,13 @@ function gr(t) {
|
|
|
1158
1158
|
target: Es(t.target),
|
|
1159
1159
|
currentTarget: Es(t.currentTarget)
|
|
1160
1160
|
}, As(t));
|
|
1161
|
-
return typeof CustomEvent != "undefined" &&
|
|
1161
|
+
return typeof CustomEvent != "undefined" && Ce(t, CustomEvent) && (e.detail = t.detail), e;
|
|
1162
1162
|
} else
|
|
1163
1163
|
return t;
|
|
1164
1164
|
}
|
|
1165
1165
|
function Es(t) {
|
|
1166
1166
|
try {
|
|
1167
|
-
return
|
|
1167
|
+
return xi(t) ? An(t) : Object.prototype.toString.call(t);
|
|
1168
1168
|
} catch (e) {
|
|
1169
1169
|
return "<unknown>";
|
|
1170
1170
|
}
|
|
@@ -1183,15 +1183,15 @@ function Yi(t, e = 40) {
|
|
|
1183
1183
|
if (n.sort(), !n.length)
|
|
1184
1184
|
return "[object has no keys]";
|
|
1185
1185
|
if (n[0].length >= e)
|
|
1186
|
-
return
|
|
1186
|
+
return Ye(n[0], e);
|
|
1187
1187
|
for (let s = n.length; s > 0; s--) {
|
|
1188
1188
|
const r = n.slice(0, s).join(", ");
|
|
1189
1189
|
if (!(r.length > e))
|
|
1190
|
-
return s === n.length ? r :
|
|
1190
|
+
return s === n.length ? r : Ye(r, e);
|
|
1191
1191
|
}
|
|
1192
1192
|
return "";
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function jt(t) {
|
|
1195
1195
|
return wn(t, /* @__PURE__ */ new Map());
|
|
1196
1196
|
}
|
|
1197
1197
|
function wn(t, e) {
|
|
@@ -1236,7 +1236,7 @@ function ae() {
|
|
|
1236
1236
|
function mr(t) {
|
|
1237
1237
|
return t.exception && t.exception.values ? t.exception.values[0] : void 0;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Bi(t) {
|
|
1240
1240
|
const { message: e, event_id: n } = t;
|
|
1241
1241
|
if (e)
|
|
1242
1242
|
return e;
|
|
@@ -1257,7 +1257,7 @@ function Pt(t, e) {
|
|
|
1257
1257
|
n.mechanism.data = i;
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Ts(t) {
|
|
1261
1261
|
if (t && t.__sentry_captured__)
|
|
1262
1262
|
return !0;
|
|
1263
1263
|
try {
|
|
@@ -1266,11 +1266,11 @@ function Ss(t) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
return !1;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function zi(t) {
|
|
1270
1270
|
return Array.isArray(t) ? t : [t];
|
|
1271
1271
|
}
|
|
1272
|
-
const vr = 50,
|
|
1273
|
-
function
|
|
1272
|
+
const vr = 50, Ss = /\(error: (.*)\)/, xs = /captureMessage|captureException/;
|
|
1273
|
+
function Gi(...t) {
|
|
1274
1274
|
const e = t.sort((n, s) => n[0] - s[0]).map((n) => n[1]);
|
|
1275
1275
|
return (n, s = 0) => {
|
|
1276
1276
|
const r = [], i = n.split(`
|
|
@@ -1279,7 +1279,7 @@ function zi(...t) {
|
|
|
1279
1279
|
const a = i[o];
|
|
1280
1280
|
if (a.length > 1024)
|
|
1281
1281
|
continue;
|
|
1282
|
-
const d =
|
|
1282
|
+
const d = Ss.test(a) ? a.replace(Ss, "$1") : a;
|
|
1283
1283
|
if (!d.match(/\S*Error: /)) {
|
|
1284
1284
|
for (const c of e) {
|
|
1285
1285
|
const f = c(d);
|
|
@@ -1292,10 +1292,10 @@ function zi(...t) {
|
|
|
1292
1292
|
break;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return qi(r);
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function qi(t) {
|
|
1299
1299
|
if (!t.length)
|
|
1300
1300
|
return [];
|
|
1301
1301
|
const e = Array.from(t);
|
|
@@ -1305,16 +1305,16 @@ function Gi(t) {
|
|
|
1305
1305
|
}));
|
|
1306
1306
|
}
|
|
1307
1307
|
const dn = "<anonymous>";
|
|
1308
|
-
function
|
|
1308
|
+
function Wi(t) {
|
|
1309
1309
|
try {
|
|
1310
1310
|
return !t || typeof t != "function" ? dn : t.name || dn;
|
|
1311
1311
|
} catch (e) {
|
|
1312
1312
|
return dn;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
const
|
|
1316
|
-
function
|
|
1317
|
-
if (!("fetch" in
|
|
1315
|
+
const Tn = vt();
|
|
1316
|
+
function Zi() {
|
|
1317
|
+
if (!("fetch" in Tn))
|
|
1318
1318
|
return !1;
|
|
1319
1319
|
try {
|
|
1320
1320
|
return new Headers(), new Request("http://www.example.com"), new Response(), !0;
|
|
@@ -1322,62 +1322,62 @@ function Wi() {
|
|
|
1322
1322
|
return !1;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function Sn(t) {
|
|
1326
1326
|
return t && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString());
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
if (!
|
|
1328
|
+
function Ki() {
|
|
1329
|
+
if (!Zi())
|
|
1330
1330
|
return !1;
|
|
1331
|
-
if (Tn
|
|
1331
|
+
if (Sn(Tn.fetch))
|
|
1332
1332
|
return !0;
|
|
1333
1333
|
let t = !1;
|
|
1334
|
-
const e =
|
|
1334
|
+
const e = Tn.document;
|
|
1335
1335
|
if (e && typeof e.createElement == "function")
|
|
1336
1336
|
try {
|
|
1337
1337
|
const n = e.createElement("iframe");
|
|
1338
|
-
n.hidden = !0, e.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (t =
|
|
1338
|
+
n.hidden = !0, e.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (t = Sn(n.contentWindow.fetch)), e.head.removeChild(n);
|
|
1339
1339
|
} catch (n) {
|
|
1340
1340
|
}
|
|
1341
1341
|
return t;
|
|
1342
1342
|
}
|
|
1343
|
-
const
|
|
1344
|
-
function
|
|
1345
|
-
const t =
|
|
1343
|
+
const Tt = vt();
|
|
1344
|
+
function Ji() {
|
|
1345
|
+
const t = Tt.chrome, e = t && t.app && t.app.runtime, n = "history" in Tt && !!Tt.history.pushState && !!Tt.history.replaceState;
|
|
1346
1346
|
return !e && n;
|
|
1347
1347
|
}
|
|
1348
|
-
const
|
|
1349
|
-
function
|
|
1348
|
+
const S = vt(), rt = "__sentry_xhr_v2__", at = {}, Is = {};
|
|
1349
|
+
function Xi(t) {
|
|
1350
1350
|
if (!Is[t])
|
|
1351
1351
|
switch (Is[t] = !0, t) {
|
|
1352
1352
|
case "console":
|
|
1353
|
-
|
|
1353
|
+
Qi();
|
|
1354
1354
|
break;
|
|
1355
1355
|
case "dom":
|
|
1356
|
-
|
|
1356
|
+
co();
|
|
1357
1357
|
break;
|
|
1358
1358
|
case "xhr":
|
|
1359
|
-
|
|
1359
|
+
no();
|
|
1360
1360
|
break;
|
|
1361
1361
|
case "fetch":
|
|
1362
|
-
|
|
1362
|
+
eo();
|
|
1363
1363
|
break;
|
|
1364
1364
|
case "history":
|
|
1365
|
-
|
|
1365
|
+
so();
|
|
1366
1366
|
break;
|
|
1367
1367
|
case "error":
|
|
1368
|
-
|
|
1368
|
+
lo();
|
|
1369
1369
|
break;
|
|
1370
1370
|
case "unhandledrejection":
|
|
1371
|
-
|
|
1371
|
+
uo();
|
|
1372
1372
|
break;
|
|
1373
1373
|
default:
|
|
1374
1374
|
return;
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
at[t] = at[t] || [], at[t].push(e),
|
|
1377
|
+
function Se(t, e) {
|
|
1378
|
+
at[t] = at[t] || [], at[t].push(e), Xi(t);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function B(t, e) {
|
|
1381
1381
|
if (!(!t || !at[t]))
|
|
1382
1382
|
for (const n of at[t] || [])
|
|
1383
1383
|
try {
|
|
@@ -1385,21 +1385,21 @@ function j(t, e) {
|
|
|
1385
1385
|
} catch (s) {
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1389
|
-
"console" in I &&
|
|
1388
|
+
function Qi() {
|
|
1389
|
+
"console" in I && Pi.forEach(function(t) {
|
|
1390
1390
|
t in I.console && J(I.console, t, function(e) {
|
|
1391
|
-
return
|
|
1392
|
-
|
|
1393
|
-
const s =
|
|
1391
|
+
return Ct[t] = e, function(...n) {
|
|
1392
|
+
B("console", { args: n, level: t });
|
|
1393
|
+
const s = Ct[t];
|
|
1394
1394
|
s && s.apply(I.console, n);
|
|
1395
1395
|
};
|
|
1396
1396
|
});
|
|
1397
1397
|
});
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1399
|
+
function eo() {
|
|
1400
|
+
Ki() && J(I, "fetch", function(t) {
|
|
1401
1401
|
return function(...e) {
|
|
1402
|
-
const { method: n, url: s } =
|
|
1402
|
+
const { method: n, url: s } = to(e), r = {
|
|
1403
1403
|
args: e,
|
|
1404
1404
|
fetchData: {
|
|
1405
1405
|
method: n,
|
|
@@ -1407,13 +1407,13 @@ function Qi() {
|
|
|
1407
1407
|
},
|
|
1408
1408
|
startTimestamp: Date.now()
|
|
1409
1409
|
};
|
|
1410
|
-
return
|
|
1411
|
-
(i) => (
|
|
1410
|
+
return B("fetch", h({}, r)), t.apply(I, e).then(
|
|
1411
|
+
(i) => (B("fetch", y(h({}, r), {
|
|
1412
1412
|
endTimestamp: Date.now(),
|
|
1413
1413
|
response: i
|
|
1414
1414
|
})), i),
|
|
1415
1415
|
(i) => {
|
|
1416
|
-
throw
|
|
1416
|
+
throw B("fetch", y(h({}, r), {
|
|
1417
1417
|
endTimestamp: Date.now(),
|
|
1418
1418
|
error: i
|
|
1419
1419
|
})), i;
|
|
@@ -1428,7 +1428,7 @@ function xn(t, e) {
|
|
|
1428
1428
|
function Os(t) {
|
|
1429
1429
|
return typeof t == "string" ? t : t ? xn(t, "url") ? t.url : t.toString ? t.toString() : "" : "";
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function to(t) {
|
|
1432
1432
|
if (t.length === 0)
|
|
1433
1433
|
return { method: "GET", url: "" };
|
|
1434
1434
|
if (t.length === 2) {
|
|
@@ -1444,8 +1444,8 @@ function eo(t) {
|
|
|
1444
1444
|
method: xn(e, "method") ? String(e.method).toUpperCase() : "GET"
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
if (!
|
|
1447
|
+
function no() {
|
|
1448
|
+
if (!S.XMLHttpRequest)
|
|
1449
1449
|
return;
|
|
1450
1450
|
const t = XMLHttpRequest.prototype;
|
|
1451
1451
|
J(t, "open", function(e) {
|
|
@@ -1464,7 +1464,7 @@ function to() {
|
|
|
1464
1464
|
a.status_code = this.status;
|
|
1465
1465
|
} catch (d) {
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
B("xhr", {
|
|
1468
1468
|
args: n,
|
|
1469
1469
|
endTimestamp: Date.now(),
|
|
1470
1470
|
startTimestamp: s,
|
|
@@ -1486,7 +1486,7 @@ function to() {
|
|
|
1486
1486
|
}), J(t, "send", function(e) {
|
|
1487
1487
|
return function(...n) {
|
|
1488
1488
|
const s = this[rt];
|
|
1489
|
-
return s && n[0] !== void 0 && (s.body = n[0]),
|
|
1489
|
+
return s && n[0] !== void 0 && (s.body = n[0]), B("xhr", {
|
|
1490
1490
|
args: n,
|
|
1491
1491
|
startTimestamp: Date.now(),
|
|
1492
1492
|
xhr: this
|
|
@@ -1494,14 +1494,14 @@ function to() {
|
|
|
1494
1494
|
};
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
|
-
let
|
|
1498
|
-
function
|
|
1499
|
-
if (!
|
|
1497
|
+
let St;
|
|
1498
|
+
function so() {
|
|
1499
|
+
if (!Ji())
|
|
1500
1500
|
return;
|
|
1501
|
-
const t =
|
|
1502
|
-
|
|
1503
|
-
const s =
|
|
1504
|
-
if (
|
|
1501
|
+
const t = S.onpopstate;
|
|
1502
|
+
S.onpopstate = function(...n) {
|
|
1503
|
+
const s = S.location.href, r = St;
|
|
1504
|
+
if (St = s, B("history", {
|
|
1505
1505
|
from: r,
|
|
1506
1506
|
to: s
|
|
1507
1507
|
}), t)
|
|
@@ -1514,8 +1514,8 @@ function no() {
|
|
|
1514
1514
|
return function(...s) {
|
|
1515
1515
|
const r = s.length > 2 ? s[2] : void 0;
|
|
1516
1516
|
if (r) {
|
|
1517
|
-
const i =
|
|
1518
|
-
|
|
1517
|
+
const i = St, o = String(r);
|
|
1518
|
+
St = o, B("history", {
|
|
1519
1519
|
from: i,
|
|
1520
1520
|
to: o
|
|
1521
1521
|
});
|
|
@@ -1523,11 +1523,11 @@ function no() {
|
|
|
1523
1523
|
return n.apply(this, s);
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
J(
|
|
1526
|
+
J(S.history, "pushState", e), J(S.history, "replaceState", e);
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const ro = 1e3;
|
|
1529
1529
|
let Rs, In, On;
|
|
1530
|
-
function
|
|
1530
|
+
function io(t) {
|
|
1531
1531
|
if (t.type !== In)
|
|
1532
1532
|
return !1;
|
|
1533
1533
|
try {
|
|
@@ -1537,10 +1537,10 @@ function ro(t) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
return !0;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function oo(t, e) {
|
|
1541
1541
|
return t !== "keypress" ? !1 : !e || !e.tagName ? !0 : !(e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function ao(t) {
|
|
1544
1544
|
try {
|
|
1545
1545
|
return t.target;
|
|
1546
1546
|
} catch (e) {
|
|
@@ -1551,26 +1551,26 @@ function Ns(t, e = !1) {
|
|
|
1551
1551
|
return (n) => {
|
|
1552
1552
|
if (!n || n._sentryCaptured)
|
|
1553
1553
|
return;
|
|
1554
|
-
const s =
|
|
1555
|
-
if (
|
|
1554
|
+
const s = ao(n);
|
|
1555
|
+
if (oo(n.type, s))
|
|
1556
1556
|
return;
|
|
1557
1557
|
Lt(n, "_sentryCaptured", !0), s && !s._sentryId && Lt(s, "_sentryId", ae());
|
|
1558
1558
|
const r = n.type === "keypress" ? "input" : n.type;
|
|
1559
|
-
|
|
1559
|
+
io(n) || (t({
|
|
1560
1560
|
event: n,
|
|
1561
1561
|
name: r,
|
|
1562
1562
|
global: e
|
|
1563
|
-
}), In = n.type, On = s ? s._sentryId : void 0), clearTimeout(Rs), Rs =
|
|
1563
|
+
}), In = n.type, On = s ? s._sentryId : void 0), clearTimeout(Rs), Rs = S.setTimeout(() => {
|
|
1564
1564
|
On = void 0, In = void 0;
|
|
1565
|
-
},
|
|
1565
|
+
}, ro);
|
|
1566
1566
|
};
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
if (!
|
|
1568
|
+
function co() {
|
|
1569
|
+
if (!S.document)
|
|
1570
1570
|
return;
|
|
1571
|
-
const t =
|
|
1572
|
-
|
|
1573
|
-
const s =
|
|
1571
|
+
const t = B.bind(null, "dom"), e = Ns(t, !0);
|
|
1572
|
+
S.document.addEventListener("click", e, !1), S.document.addEventListener("keypress", e, !1), ["EventTarget", "Node"].forEach((n) => {
|
|
1573
|
+
const s = S[n] && S[n].prototype;
|
|
1574
1574
|
!s || !s.hasOwnProperty || !s.hasOwnProperty("addEventListener") || (J(s, "addEventListener", function(r) {
|
|
1575
1575
|
return function(i, o, a) {
|
|
1576
1576
|
if (i === "click" || i == "keypress")
|
|
@@ -1603,36 +1603,36 @@ function ao() {
|
|
|
1603
1603
|
});
|
|
1604
1604
|
}
|
|
1605
1605
|
let xt = null;
|
|
1606
|
-
function
|
|
1607
|
-
xt =
|
|
1608
|
-
return
|
|
1606
|
+
function lo() {
|
|
1607
|
+
xt = S.onerror, S.onerror = function(t, e, n, s, r) {
|
|
1608
|
+
return B("error", {
|
|
1609
1609
|
column: s,
|
|
1610
1610
|
error: r,
|
|
1611
1611
|
line: n,
|
|
1612
1612
|
msg: t,
|
|
1613
1613
|
url: e
|
|
1614
1614
|
}), xt && !xt.__SENTRY_LOADER__ ? xt.apply(this, arguments) : !1;
|
|
1615
|
-
},
|
|
1615
|
+
}, S.onerror.__SENTRY_INSTRUMENTED__ = !0;
|
|
1616
1616
|
}
|
|
1617
1617
|
let It = null;
|
|
1618
|
-
function lo() {
|
|
1619
|
-
It = T.onunhandledrejection, T.onunhandledrejection = function(t) {
|
|
1620
|
-
return j("unhandledrejection", t), It && !It.__SENTRY_LOADER__ ? It.apply(this, arguments) : !0;
|
|
1621
|
-
}, T.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
|
|
1622
|
-
}
|
|
1623
1618
|
function uo() {
|
|
1624
|
-
|
|
1619
|
+
It = S.onunhandledrejection, S.onunhandledrejection = function(t) {
|
|
1620
|
+
return B("unhandledrejection", t), It && !It.__SENTRY_LOADER__ ? It.apply(this, arguments) : !0;
|
|
1621
|
+
}, S.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
|
|
1625
1622
|
}
|
|
1626
1623
|
function ho() {
|
|
1627
|
-
return "
|
|
1624
|
+
return typeof __SENTRY_BROWSER_BUNDLE__ != "undefined" && !!__SENTRY_BROWSER_BUNDLE__;
|
|
1628
1625
|
}
|
|
1629
1626
|
function po() {
|
|
1630
|
-
return
|
|
1627
|
+
return "npm";
|
|
1628
|
+
}
|
|
1629
|
+
function fo() {
|
|
1630
|
+
return !ho() && Object.prototype.toString.call(typeof process != "undefined" ? process : 0) === "[object process]";
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function go(t, e) {
|
|
1633
1633
|
return t.require(e);
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function mo() {
|
|
1636
1636
|
const t = typeof WeakSet == "function", e = t ? /* @__PURE__ */ new WeakSet() : [];
|
|
1637
1637
|
function n(r) {
|
|
1638
1638
|
if (t)
|
|
@@ -1663,14 +1663,14 @@ function pe(t, e = 100, n = 1 / 0) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
function _r(t, e = 3, n = 100 * 1024) {
|
|
1665
1665
|
const s = pe(t, e);
|
|
1666
|
-
return
|
|
1666
|
+
return yo(s) > n ? _r(t, e - 1, n) : s;
|
|
1667
1667
|
}
|
|
1668
|
-
function Rn(t, e, n = 1 / 0, s = 1 / 0, r =
|
|
1668
|
+
function Rn(t, e, n = 1 / 0, s = 1 / 0, r = mo()) {
|
|
1669
1669
|
const [i, o] = r;
|
|
1670
1670
|
if (e == null || // this matches null and undefined -> eqeq not eqeqeq
|
|
1671
|
-
["number", "boolean", "string"].includes(typeof e) && !
|
|
1671
|
+
["number", "boolean", "string"].includes(typeof e) && !Oi(e))
|
|
1672
1672
|
return e;
|
|
1673
|
-
const a =
|
|
1673
|
+
const a = vo(t, e);
|
|
1674
1674
|
if (!a.startsWith("[object "))
|
|
1675
1675
|
return a;
|
|
1676
1676
|
if (e.__sentry_skip_normalization__)
|
|
@@ -1702,7 +1702,7 @@ function Rn(t, e, n = 1 / 0, s = 1 / 0, r = go()) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
return o(e), f;
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function vo(t, e) {
|
|
1706
1706
|
try {
|
|
1707
1707
|
if (t === "domain" && e && typeof e == "object" && e._events)
|
|
1708
1708
|
return "[Domain]";
|
|
@@ -1716,31 +1716,31 @@ function mo(t, e) {
|
|
|
1716
1716
|
return "[Document]";
|
|
1717
1717
|
if (hr(e))
|
|
1718
1718
|
return "[VueViewModel]";
|
|
1719
|
-
if (
|
|
1719
|
+
if (Ii(e))
|
|
1720
1720
|
return "[SyntheticEvent]";
|
|
1721
1721
|
if (typeof e == "number" && e !== e)
|
|
1722
1722
|
return "[NaN]";
|
|
1723
1723
|
if (typeof e == "function")
|
|
1724
|
-
return `[Function: ${
|
|
1724
|
+
return `[Function: ${Wi(e)}]`;
|
|
1725
1725
|
if (typeof e == "symbol")
|
|
1726
1726
|
return `[${String(e)}]`;
|
|
1727
1727
|
if (typeof e == "bigint")
|
|
1728
1728
|
return `[BigInt: ${String(e)}]`;
|
|
1729
|
-
const n =
|
|
1729
|
+
const n = _o(e);
|
|
1730
1730
|
return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
|
|
1731
1731
|
} catch (n) {
|
|
1732
1732
|
return `**non-serializable** (${n})`;
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function _o(t) {
|
|
1736
1736
|
const e = Object.getPrototypeOf(t);
|
|
1737
1737
|
return e ? e.constructor.name : "null prototype";
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function bo(t) {
|
|
1740
1740
|
return ~-encodeURI(t).split(/%..|./).length;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1743
|
-
return
|
|
1742
|
+
function yo(t) {
|
|
1743
|
+
return bo(JSON.stringify(t));
|
|
1744
1744
|
}
|
|
1745
1745
|
var oe;
|
|
1746
1746
|
(function(t) {
|
|
@@ -1755,7 +1755,7 @@ function Le(t) {
|
|
|
1755
1755
|
e(t);
|
|
1756
1756
|
});
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Yn(t) {
|
|
1759
1759
|
return new H((e, n) => {
|
|
1760
1760
|
n(t);
|
|
1761
1761
|
});
|
|
@@ -1837,7 +1837,7 @@ class H {
|
|
|
1837
1837
|
__init3() {
|
|
1838
1838
|
this._setResult = (e, n) => {
|
|
1839
1839
|
if (this._state === oe.PENDING) {
|
|
1840
|
-
if (
|
|
1840
|
+
if (jn(n)) {
|
|
1841
1841
|
n.then(this._resolve, this._reject);
|
|
1842
1842
|
return;
|
|
1843
1843
|
}
|
|
@@ -1857,7 +1857,7 @@ class H {
|
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Eo(t) {
|
|
1861
1861
|
const e = [];
|
|
1862
1862
|
function n() {
|
|
1863
1863
|
return t === void 0 || e.length < t;
|
|
@@ -1867,7 +1867,7 @@ function yo(t) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
function r(o) {
|
|
1869
1869
|
if (!n())
|
|
1870
|
-
return
|
|
1870
|
+
return Yn(new K("Not adding Promise because buffer limit was reached."));
|
|
1871
1871
|
const a = o();
|
|
1872
1872
|
return e.indexOf(a) === -1 && e.push(a), a.then(() => s(a)).then(
|
|
1873
1873
|
null,
|
|
@@ -1913,14 +1913,14 @@ function cn(t) {
|
|
|
1913
1913
|
// everything minus origin
|
|
1914
1914
|
};
|
|
1915
1915
|
}
|
|
1916
|
-
const
|
|
1917
|
-
function
|
|
1918
|
-
return t === "warn" ? "warning" :
|
|
1916
|
+
const Ao = ["fatal", "error", "warning", "log", "info", "debug"];
|
|
1917
|
+
function wo(t) {
|
|
1918
|
+
return t === "warn" ? "warning" : Ao.includes(t) ? t : "log";
|
|
1919
1919
|
}
|
|
1920
1920
|
const br = vt(), Nn = {
|
|
1921
1921
|
nowSeconds: () => Date.now() / 1e3
|
|
1922
1922
|
};
|
|
1923
|
-
function
|
|
1923
|
+
function To() {
|
|
1924
1924
|
const { performance: t } = br;
|
|
1925
1925
|
if (!t || !t.now)
|
|
1926
1926
|
return;
|
|
@@ -1932,14 +1932,14 @@ function wo() {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
function So() {
|
|
1934
1934
|
try {
|
|
1935
|
-
return
|
|
1935
|
+
return go(module, "perf_hooks").performance;
|
|
1936
1936
|
} catch (t) {
|
|
1937
1937
|
return;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
const ln =
|
|
1940
|
+
const ln = fo() ? So() : To(), Ds = ln === void 0 ? Nn : {
|
|
1941
1941
|
nowSeconds: () => (ln.timeOrigin + ln.now()) / 1e3
|
|
1942
|
-
},
|
|
1942
|
+
}, Yt = Nn.nowSeconds.bind(Nn), yr = Ds.nowSeconds.bind(Ds);
|
|
1943
1943
|
(() => {
|
|
1944
1944
|
const { performance: t } = br;
|
|
1945
1945
|
if (!t || !t.now)
|
|
@@ -1950,11 +1950,11 @@ const ln = po() ? So() : wo(), Ds = ln === void 0 ? Nn : {
|
|
|
1950
1950
|
function _t(t, e = []) {
|
|
1951
1951
|
return [t, e];
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function xo(t, e) {
|
|
1954
1954
|
const [n, s] = t;
|
|
1955
1955
|
return [n, [...s, e]];
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function $s(t, e) {
|
|
1958
1958
|
const n = t[1];
|
|
1959
1959
|
for (const s of n) {
|
|
1960
1960
|
const r = s[0].type;
|
|
@@ -1966,7 +1966,7 @@ function Cs(t, e) {
|
|
|
1966
1966
|
function Dn(t, e) {
|
|
1967
1967
|
return (e || new TextEncoder()).encode(t);
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Io(t, e) {
|
|
1970
1970
|
const [n, s] = t;
|
|
1971
1971
|
let r = JSON.stringify(n);
|
|
1972
1972
|
function i(o) {
|
|
@@ -1988,19 +1988,19 @@ ${JSON.stringify(a)}
|
|
|
1988
1988
|
i(c);
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
return typeof r == "string" ? r :
|
|
1991
|
+
return typeof r == "string" ? r : Oo(r);
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Oo(t) {
|
|
1994
1994
|
const e = t.reduce((r, i) => r + i.length, 0), n = new Uint8Array(e);
|
|
1995
1995
|
let s = 0;
|
|
1996
1996
|
for (const r of t)
|
|
1997
1997
|
n.set(r, s), s += r.length;
|
|
1998
1998
|
return n;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function Ro(t, e) {
|
|
2001
2001
|
const n = typeof t.data == "string" ? Dn(t.data, e) : t.data;
|
|
2002
2002
|
return [
|
|
2003
|
-
|
|
2003
|
+
jt({
|
|
2004
2004
|
type: "attachment",
|
|
2005
2005
|
length: n.length,
|
|
2006
2006
|
filename: t.filename,
|
|
@@ -2010,7 +2010,7 @@ function Oo(t, e) {
|
|
|
2010
2010
|
n
|
|
2011
2011
|
];
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2013
|
+
const No = {
|
|
2014
2014
|
session: "session",
|
|
2015
2015
|
sessions: "session",
|
|
2016
2016
|
attachment: "attachment",
|
|
@@ -2025,8 +2025,8 @@ const Ro = {
|
|
|
2025
2025
|
// TODO: This is a temporary workaround until we have a proper data category for metrics
|
|
2026
2026
|
statsd: "unknown"
|
|
2027
2027
|
};
|
|
2028
|
-
function
|
|
2029
|
-
return
|
|
2028
|
+
function Cs(t) {
|
|
2029
|
+
return No[t];
|
|
2030
2030
|
}
|
|
2031
2031
|
function Er(t) {
|
|
2032
2032
|
if (!t || !t.sdk)
|
|
@@ -2034,40 +2034,40 @@ function Er(t) {
|
|
|
2034
2034
|
const { name: e, version: n } = t.sdk;
|
|
2035
2035
|
return { name: e, version: n };
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function Do(t, e, n, s) {
|
|
2038
2038
|
const r = t.sdkProcessingMetadata && t.sdkProcessingMetadata.dynamicSamplingContext;
|
|
2039
2039
|
return h(h(h({
|
|
2040
2040
|
event_id: t.event_id,
|
|
2041
2041
|
sent_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2042
2042
|
}, e && { sdk: e }), !!n && s && { dsn: Ft(s) }), r && {
|
|
2043
|
-
trace:
|
|
2043
|
+
trace: jt(h({}, r))
|
|
2044
2044
|
});
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function $o(t, e, n) {
|
|
2047
2047
|
const s = [
|
|
2048
2048
|
{ type: "client_report" },
|
|
2049
2049
|
{
|
|
2050
|
-
timestamp: n ||
|
|
2050
|
+
timestamp: n || Yt(),
|
|
2051
2051
|
discarded_events: t
|
|
2052
2052
|
}
|
|
2053
2053
|
];
|
|
2054
2054
|
return _t(e ? { dsn: e } : {}, [s]);
|
|
2055
2055
|
}
|
|
2056
2056
|
const Co = 60 * 1e3;
|
|
2057
|
-
function
|
|
2057
|
+
function Lo(t, e = Date.now()) {
|
|
2058
2058
|
const n = parseInt(`${t}`, 10);
|
|
2059
2059
|
if (!isNaN(n))
|
|
2060
2060
|
return n * 1e3;
|
|
2061
2061
|
const s = Date.parse(`${t}`);
|
|
2062
2062
|
return isNaN(s) ? Co : s - e;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function Po(t, e) {
|
|
2065
2065
|
return t[e] || t.all || 0;
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2067
|
+
function ko(t, e, n = Date.now()) {
|
|
2068
|
+
return Po(t, e) > n;
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function Mo(t, { statusCode: e, headers: n }, s = Date.now()) {
|
|
2071
2071
|
const r = h({}, t), i = n && n["x-sentry-rate-limits"], o = n && n["retry-after"];
|
|
2072
2072
|
if (i)
|
|
2073
2073
|
for (const a of i.trim().split(",")) {
|
|
@@ -2079,14 +2079,14 @@ function ko(t, { statusCode: e, headers: n }, s = Date.now()) {
|
|
|
2079
2079
|
r[m] = s + p;
|
|
2080
2080
|
}
|
|
2081
2081
|
else
|
|
2082
|
-
o ? r.all = s +
|
|
2082
|
+
o ? r.all = s + Lo(o, s) : e === 429 && (r.all = s + 60 * 1e3);
|
|
2083
2083
|
return r;
|
|
2084
2084
|
}
|
|
2085
2085
|
const Bn = "production";
|
|
2086
2086
|
function zn() {
|
|
2087
2087
|
return pr("globalEventProcessors", () => []);
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function Uo(t) {
|
|
2090
2090
|
zn().push(t);
|
|
2091
2091
|
}
|
|
2092
2092
|
function kt(t, e, n, s = 0) {
|
|
@@ -2096,11 +2096,11 @@ function kt(t, e, n, s = 0) {
|
|
|
2096
2096
|
r(e);
|
|
2097
2097
|
else {
|
|
2098
2098
|
const a = o(h({}, e), n);
|
|
2099
|
-
|
|
2099
|
+
jn(a) ? a.then((d) => kt(t, d, n, s + 1).then(r)).then(null, i) : kt(t, a, n, s + 1).then(r).then(null, i);
|
|
2100
2100
|
}
|
|
2101
2101
|
});
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Vo(t) {
|
|
2104
2104
|
const e = yr(), n = {
|
|
2105
2105
|
sid: ae(),
|
|
2106
2106
|
init: !0,
|
|
@@ -2110,7 +2110,7 @@ function Uo(t) {
|
|
|
2110
2110
|
status: "ok",
|
|
2111
2111
|
errors: 0,
|
|
2112
2112
|
ignoreDuration: !1,
|
|
2113
|
-
toJSON: () =>
|
|
2113
|
+
toJSON: () => Fo(n)
|
|
2114
2114
|
};
|
|
2115
2115
|
return t && We(n, t), n;
|
|
2116
2116
|
}
|
|
@@ -2125,12 +2125,12 @@ function We(t, e = {}) {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), typeof e.errors == "number" && (t.errors = e.errors), e.status && (t.status = e.status);
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function Ho(t, e) {
|
|
2129
2129
|
let n = {};
|
|
2130
2130
|
e ? n = { status: e } : t.status === "ok" && (n = { status: "exited" }), We(t, n);
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2132
|
+
function Fo(t) {
|
|
2133
|
+
return jt({
|
|
2134
2134
|
sid: `${t.sid}`,
|
|
2135
2135
|
init: t.init,
|
|
2136
2136
|
// Make sure that sec is converted to ms for date constructor
|
|
@@ -2149,7 +2149,7 @@ function Ho(t) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
2152
|
-
const
|
|
2152
|
+
const jo = 100;
|
|
2153
2153
|
class Ne {
|
|
2154
2154
|
/** Flag if notifying is happening. */
|
|
2155
2155
|
/** Callback for client to receive scope changes. */
|
|
@@ -2322,11 +2322,11 @@ class Ne {
|
|
|
2322
2322
|
* @inheritDoc
|
|
2323
2323
|
*/
|
|
2324
2324
|
addBreadcrumb(e, n) {
|
|
2325
|
-
const s = typeof n == "number" ? n :
|
|
2325
|
+
const s = typeof n == "number" ? n : jo;
|
|
2326
2326
|
if (s <= 0)
|
|
2327
2327
|
return this;
|
|
2328
2328
|
const r = h({
|
|
2329
|
-
timestamp:
|
|
2329
|
+
timestamp: Yt()
|
|
2330
2330
|
}, e), i = this._breadcrumbs;
|
|
2331
2331
|
return i.push(r), this._breadcrumbs = i.length > s ? i.slice(-s) : i, this._notifyScopeListeners(), this;
|
|
2332
2332
|
}
|
|
@@ -2426,7 +2426,7 @@ class Ne {
|
|
|
2426
2426
|
* uses message if there's one instead or get rid of empty fingerprint
|
|
2427
2427
|
*/
|
|
2428
2428
|
_applyFingerprint(e) {
|
|
2429
|
-
e.fingerprint = e.fingerprint ?
|
|
2429
|
+
e.fingerprint = e.fingerprint ? zi(e.fingerprint) : [], this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint;
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
2432
|
function Ls() {
|
|
@@ -2570,7 +2570,7 @@ class wr {
|
|
|
2570
2570
|
const { beforeBreadcrumb: i = null, maxBreadcrumbs: o = Yo } = r.getOptions && r.getOptions() || {};
|
|
2571
2571
|
if (o <= 0)
|
|
2572
2572
|
return;
|
|
2573
|
-
const a =
|
|
2573
|
+
const a = Yt(), d = h({ timestamp: a }, e), c = i ? ki(() => i(d, n)) : d;
|
|
2574
2574
|
c !== null && (r.emit && r.emit("beforeAddBreadcrumb", c, n), s.addBreadcrumb(c, o));
|
|
2575
2575
|
}
|
|
2576
2576
|
/**
|
|
@@ -2666,13 +2666,13 @@ class wr {
|
|
|
2666
2666
|
*/
|
|
2667
2667
|
endSession() {
|
|
2668
2668
|
const n = this.getStackTop().scope, s = n.getSession();
|
|
2669
|
-
s &&
|
|
2669
|
+
s && Ho(s), this._sendSessionUpdate(), n.setSession();
|
|
2670
2670
|
}
|
|
2671
2671
|
/**
|
|
2672
2672
|
* @inheritDoc
|
|
2673
2673
|
*/
|
|
2674
2674
|
startSession(e) {
|
|
2675
|
-
const { scope: n, client: s } = this.getStackTop(), { release: r, environment: i = Bn } = s && s.getOptions() || {}, { userAgent: o } = I.navigator || {}, a =
|
|
2675
|
+
const { scope: n, client: s } = this.getStackTop(), { release: r, environment: i = Bn } = s && s.getOptions() || {}, { userAgent: o } = I.navigator || {}, a = Vo(h(h({
|
|
2676
2676
|
release: r,
|
|
2677
2677
|
environment: i,
|
|
2678
2678
|
user: n.getUser()
|
|
@@ -2722,8 +2722,8 @@ function Bt() {
|
|
|
2722
2722
|
}, I;
|
|
2723
2723
|
}
|
|
2724
2724
|
function Ps(t) {
|
|
2725
|
-
const e = Bt(), n =
|
|
2726
|
-
return
|
|
2725
|
+
const e = Bt(), n = $n(e);
|
|
2726
|
+
return Tr(e, t), n;
|
|
2727
2727
|
}
|
|
2728
2728
|
function D() {
|
|
2729
2729
|
const t = Bt();
|
|
@@ -2732,25 +2732,25 @@ function D() {
|
|
|
2732
2732
|
if (e)
|
|
2733
2733
|
return e;
|
|
2734
2734
|
}
|
|
2735
|
-
return
|
|
2735
|
+
return Bo(t);
|
|
2736
2736
|
}
|
|
2737
|
-
function
|
|
2738
|
-
return (!
|
|
2737
|
+
function Bo(t = Bt()) {
|
|
2738
|
+
return (!zo(t) || $n(t).isOlderThan(Ar)) && Tr(t, new wr()), $n(t);
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function zo(t) {
|
|
2741
2741
|
return !!(t && t.__SENTRY__ && t.__SENTRY__.hub);
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function $n(t) {
|
|
2744
2744
|
return pr("hub", () => new wr(), t);
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function Tr(t, e) {
|
|
2747
2747
|
if (!t)
|
|
2748
2748
|
return !1;
|
|
2749
2749
|
const n = t.__SENTRY__ = t.__SENTRY__ || {};
|
|
2750
2750
|
return n.hub = e, !0;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2753
|
-
const s = e.getOptions(), { publicKey: r } = e.getDsn() || {}, { segment: i } = n && n.getUser() || {}, o =
|
|
2752
|
+
function Go(t, e, n) {
|
|
2753
|
+
const s = e.getOptions(), { publicKey: r } = e.getDsn() || {}, { segment: i } = n && n.getUser() || {}, o = jt({
|
|
2754
2754
|
environment: s.environment || Bn,
|
|
2755
2755
|
release: s.release,
|
|
2756
2756
|
user_segment: i,
|
|
@@ -2765,53 +2765,53 @@ function ks(t, e) {
|
|
|
2765
2765
|
function Ms(t, e) {
|
|
2766
2766
|
D().setTag(t, e);
|
|
2767
2767
|
}
|
|
2768
|
-
function
|
|
2768
|
+
function Cn(t) {
|
|
2769
2769
|
D().setUser(t);
|
|
2770
2770
|
}
|
|
2771
|
-
const
|
|
2772
|
-
function
|
|
2771
|
+
const qo = "7";
|
|
2772
|
+
function Wo(t) {
|
|
2773
2773
|
const e = t.protocol ? `${t.protocol}:` : "", n = t.port ? `:${t.port}` : "";
|
|
2774
2774
|
return `${e}//${t.host}${n}${t.path ? `/${t.path}` : ""}/api/`;
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2777
|
-
return `${
|
|
2776
|
+
function Zo(t) {
|
|
2777
|
+
return `${Wo(t)}${t.projectId}/envelope/`;
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2780
|
-
return
|
|
2779
|
+
function Ko(t, e) {
|
|
2780
|
+
return ji(h({
|
|
2781
2781
|
// We send only the minimum set of required information. See
|
|
2782
2782
|
// https://github.com/getsentry/sentry-javascript/issues/2572.
|
|
2783
2783
|
sentry_key: t.publicKey,
|
|
2784
|
-
sentry_version:
|
|
2784
|
+
sentry_version: qo
|
|
2785
2785
|
}, e && { sentry_client: `${e.name}/${e.version}` }));
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function Jo(t, e = {}) {
|
|
2788
2788
|
const n = typeof e == "string" ? e : e.tunnel, s = typeof e == "string" || !e._metadata ? void 0 : e._metadata.sdk;
|
|
2789
|
-
return n || `${
|
|
2789
|
+
return n || `${Zo(t)}?${Ko(t, s)}`;
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function Xo(t, e) {
|
|
2792
2792
|
return e && (t.sdk = t.sdk || {}, t.sdk.name = t.sdk.name || e.name, t.sdk.version = t.sdk.version || e.version, t.sdk.integrations = [...t.sdk.integrations || [], ...e.integrations || []], t.sdk.packages = [...t.sdk.packages || [], ...e.packages || []]), t;
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function Qo(t, e, n, s) {
|
|
2795
2795
|
const r = Er(n), i = h(h({
|
|
2796
2796
|
sent_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2797
2797
|
}, r && { sdk: r }), !!s && e && { dsn: Ft(e) }), o = "aggregates" in t ? [{ type: "sessions" }, t] : [{ type: "session" }, t.toJSON()];
|
|
2798
2798
|
return _t(i, [o]);
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2800
|
+
function ea(t, e, n, s) {
|
|
2801
2801
|
const r = Er(n), i = t.type && t.type !== "replay_event" ? t.type : "event";
|
|
2802
|
-
|
|
2803
|
-
const o =
|
|
2802
|
+
Xo(t, n && n.sdk);
|
|
2803
|
+
const o = Do(t, r, s, e);
|
|
2804
2804
|
return delete t.sdkProcessingMetadata, _t(o, [[{ type: i }, t]]);
|
|
2805
2805
|
}
|
|
2806
2806
|
const Us = [];
|
|
2807
|
-
function
|
|
2807
|
+
function ta(t, e) {
|
|
2808
2808
|
const n = {};
|
|
2809
2809
|
return e.forEach((s) => {
|
|
2810
|
-
s &&
|
|
2810
|
+
s && Sr(t, s, n);
|
|
2811
2811
|
}), n;
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2814
|
-
if (n[e.name] = e, Us.indexOf(e.name) === -1 && (e.setupOnce(
|
|
2813
|
+
function Sr(t, e, n) {
|
|
2814
|
+
if (n[e.name] = e, Us.indexOf(e.name) === -1 && (e.setupOnce(Uo, D), Us.push(e.name)), t.on && typeof e.preprocessEvent == "function") {
|
|
2815
2815
|
const s = e.preprocessEvent.bind(e);
|
|
2816
2816
|
t.on("preprocessEvent", (r, i) => s(r, i, t));
|
|
2817
2817
|
}
|
|
@@ -2822,12 +2822,12 @@ function Tr(t, e, n) {
|
|
|
2822
2822
|
t.addEventProcessor(r);
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function na(t, e, n, s, r) {
|
|
2826
2826
|
const { normalizeDepth: i = 3, normalizeMaxBreadth: o = 1e3 } = t, a = y(h({}, e), {
|
|
2827
2827
|
event_id: e.event_id || n.event_id || ae(),
|
|
2828
|
-
timestamp: e.timestamp ||
|
|
2828
|
+
timestamp: e.timestamp || Yt()
|
|
2829
2829
|
}), d = n.integrations || t.integrations.map((m) => m.name);
|
|
2830
|
-
|
|
2830
|
+
sa(a, t), oa(a, d), e.type === void 0 && ra(a, t.stackParser);
|
|
2831
2831
|
let c = s;
|
|
2832
2832
|
n.captureContext && (c = Ne.clone(c).update(n.captureContext));
|
|
2833
2833
|
let f = Le(a);
|
|
@@ -2840,18 +2840,18 @@ function ta(t, e, n, s, r) {
|
|
|
2840
2840
|
f = c.applyToEvent(a, n, p);
|
|
2841
2841
|
} else
|
|
2842
2842
|
f = kt([...p, ...zn()], a, n);
|
|
2843
|
-
return f.then((m) => (m &&
|
|
2843
|
+
return f.then((m) => (m && ia(m), typeof i == "number" && i > 0 ? aa(m, i, o) : m));
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function sa(t, e) {
|
|
2846
2846
|
const { environment: n, release: s, dist: r, maxValueLength: i = 250 } = e;
|
|
2847
|
-
"environment" in t || (t.environment = "environment" in e ? n : Bn), t.release === void 0 && s !== void 0 && (t.release = s), t.dist === void 0 && r !== void 0 && (t.dist = r), t.message && (t.message =
|
|
2847
|
+
"environment" in t || (t.environment = "environment" in e ? n : Bn), t.release === void 0 && s !== void 0 && (t.release = s), t.dist === void 0 && r !== void 0 && (t.dist = r), t.message && (t.message = Ye(t.message, i));
|
|
2848
2848
|
const o = t.exception && t.exception.values && t.exception.values[0];
|
|
2849
|
-
o && o.value && (o.value =
|
|
2849
|
+
o && o.value && (o.value = Ye(o.value, i));
|
|
2850
2850
|
const a = t.request;
|
|
2851
|
-
a && a.url && (a.url =
|
|
2851
|
+
a && a.url && (a.url = Ye(a.url, i));
|
|
2852
2852
|
}
|
|
2853
2853
|
const Vs = /* @__PURE__ */ new WeakMap();
|
|
2854
|
-
function
|
|
2854
|
+
function ra(t, e) {
|
|
2855
2855
|
const n = I._sentryDebugIds;
|
|
2856
2856
|
if (!n)
|
|
2857
2857
|
return;
|
|
@@ -2880,7 +2880,7 @@ function sa(t, e) {
|
|
|
2880
2880
|
} catch (o) {
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function ia(t) {
|
|
2884
2884
|
const e = {};
|
|
2885
2885
|
try {
|
|
2886
2886
|
t.exception.values.forEach((s) => {
|
|
@@ -2902,10 +2902,10 @@ function ra(t) {
|
|
|
2902
2902
|
});
|
|
2903
2903
|
});
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2905
|
+
function oa(t, e) {
|
|
2906
2906
|
e.length > 0 && (t.sdk = t.sdk || {}, t.sdk.integrations = [...t.sdk.integrations || [], ...e]);
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function aa(t, e, n) {
|
|
2909
2909
|
if (!t)
|
|
2910
2910
|
return null;
|
|
2911
2911
|
const s = h(h(h(h(h({}, t), t.breadcrumbs && {
|
|
@@ -2921,7 +2921,7 @@ function oa(t, e, n) {
|
|
|
2921
2921
|
});
|
|
2922
2922
|
return t.contexts && t.contexts.trace && s.contexts && (s.contexts.trace = t.contexts.trace, t.contexts.trace.data && (s.contexts.trace.data = pe(t.contexts.trace.data, e, n))), t.spans && (s.spans = t.spans.map((r) => (r.data && (r.data = pe(r.data, e, n)), r))), s;
|
|
2923
2923
|
}
|
|
2924
|
-
class
|
|
2924
|
+
class da {
|
|
2925
2925
|
/** Options passed to the SDK. */
|
|
2926
2926
|
/** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */
|
|
2927
2927
|
/** Array of set up integrations. */
|
|
@@ -2935,8 +2935,8 @@ class aa {
|
|
|
2935
2935
|
* @param options Options for the client.
|
|
2936
2936
|
*/
|
|
2937
2937
|
constructor(e) {
|
|
2938
|
-
if (this._options = e, this._integrations = {}, this._integrationsInitialized = !1, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn && (this._dsn =
|
|
2939
|
-
const n =
|
|
2938
|
+
if (this._options = e, this._integrations = {}, this._integrationsInitialized = !1, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn && (this._dsn = Hi(e.dsn)), this._dsn) {
|
|
2939
|
+
const n = Jo(this._dsn, e);
|
|
2940
2940
|
this._transport = e.transport(y(h({
|
|
2941
2941
|
recordDroppedEvent: this.recordDroppedEvent.bind(this)
|
|
2942
2942
|
}, e.transportOptions), {
|
|
@@ -2949,7 +2949,7 @@ class aa {
|
|
|
2949
2949
|
*/
|
|
2950
2950
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
2951
2951
|
captureException(e, n, s) {
|
|
2952
|
-
if (
|
|
2952
|
+
if (Ts(e))
|
|
2953
2953
|
return;
|
|
2954
2954
|
let r = n && n.event_id;
|
|
2955
2955
|
return this._process(
|
|
@@ -2974,7 +2974,7 @@ class aa {
|
|
|
2974
2974
|
* @inheritDoc
|
|
2975
2975
|
*/
|
|
2976
2976
|
captureEvent(e, n, s) {
|
|
2977
|
-
if (n && n.originalException &&
|
|
2977
|
+
if (n && n.originalException && Ts(n.originalException))
|
|
2978
2978
|
return;
|
|
2979
2979
|
let r = n && n.event_id;
|
|
2980
2980
|
return this._process(
|
|
@@ -3040,7 +3040,7 @@ class aa {
|
|
|
3040
3040
|
* Sets up the integrations
|
|
3041
3041
|
*/
|
|
3042
3042
|
setupIntegrations(e) {
|
|
3043
|
-
(e && !this._integrationsInitialized || this._isEnabled() && !this._integrationsInitialized) && (this._integrations =
|
|
3043
|
+
(e && !this._integrationsInitialized || this._isEnabled() && !this._integrationsInitialized) && (this._integrations = ta(this, this._options.integrations), this._integrationsInitialized = !0);
|
|
3044
3044
|
}
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Gets an installed integration by its `id`.
|
|
@@ -3064,18 +3064,18 @@ class aa {
|
|
|
3064
3064
|
* @inheritDoc
|
|
3065
3065
|
*/
|
|
3066
3066
|
addIntegration(e) {
|
|
3067
|
-
|
|
3067
|
+
Sr(this, e, this._integrations);
|
|
3068
3068
|
}
|
|
3069
3069
|
/**
|
|
3070
3070
|
* @inheritDoc
|
|
3071
3071
|
*/
|
|
3072
3072
|
sendEvent(e, n = {}) {
|
|
3073
3073
|
this.emit("beforeSendEvent", e, n);
|
|
3074
|
-
let s =
|
|
3074
|
+
let s = ea(e, this._dsn, this._options._metadata, this._options.tunnel);
|
|
3075
3075
|
for (const i of n.attachments || [])
|
|
3076
|
-
s =
|
|
3076
|
+
s = xo(
|
|
3077
3077
|
s,
|
|
3078
|
-
|
|
3078
|
+
Ro(
|
|
3079
3079
|
i,
|
|
3080
3080
|
this._options.transportOptions && this._options.transportOptions.textEncoder
|
|
3081
3081
|
)
|
|
@@ -3087,7 +3087,7 @@ class aa {
|
|
|
3087
3087
|
* @inheritDoc
|
|
3088
3088
|
*/
|
|
3089
3089
|
sendSession(e) {
|
|
3090
|
-
const n =
|
|
3090
|
+
const n = Qo(e, this._dsn, this._options._metadata, this._options.tunnel);
|
|
3091
3091
|
this._sendEnvelope(n);
|
|
3092
3092
|
}
|
|
3093
3093
|
/**
|
|
@@ -3169,7 +3169,7 @@ class aa {
|
|
|
3169
3169
|
*/
|
|
3170
3170
|
_prepareEvent(e, n, s) {
|
|
3171
3171
|
const r = this.getOptions(), i = Object.keys(this._integrations);
|
|
3172
|
-
return !n.integrations && i.length > 0 && (n.integrations = i), this.emit("preprocessEvent", e, n),
|
|
3172
|
+
return !n.integrations && i.length > 0 && (n.integrations = i), this.emit("preprocessEvent", e, n), na(r, e, n, s, this).then((o) => {
|
|
3173
3173
|
if (o === null)
|
|
3174
3174
|
return o;
|
|
3175
3175
|
const { propagationContext: a } = o.sdkProcessingMetadata || {};
|
|
@@ -3182,7 +3182,7 @@ class aa {
|
|
|
3182
3182
|
parent_span_id: p
|
|
3183
3183
|
}
|
|
3184
3184
|
}, o.contexts);
|
|
3185
|
-
const b = m ||
|
|
3185
|
+
const b = m || Go(c, this, s);
|
|
3186
3186
|
o.sdkProcessingMetadata = h({
|
|
3187
3187
|
dynamicSamplingContext: b
|
|
3188
3188
|
}, o.sdkProcessingMetadata);
|
|
@@ -3219,7 +3219,7 @@ class aa {
|
|
|
3219
3219
|
_processEvent(e, n, s) {
|
|
3220
3220
|
const r = this.getOptions(), { sampleRate: i } = r, o = Ir(e), a = xr(e), d = e.type || "error", c = `before send for type \`${d}\``;
|
|
3221
3221
|
if (a && typeof i == "number" && Math.random() > i)
|
|
3222
|
-
return this.recordDroppedEvent("sample_rate", "error", e),
|
|
3222
|
+
return this.recordDroppedEvent("sample_rate", "error", e), Yn(
|
|
3223
3223
|
new K(
|
|
3224
3224
|
`Discarding event because it's not included in the random sample (sampling rate = ${i})`,
|
|
3225
3225
|
"log"
|
|
@@ -3231,8 +3231,8 @@ class aa {
|
|
|
3231
3231
|
throw this.recordDroppedEvent("event_processor", f, e), new K("An event processor returned `null`, will not send event.", "log");
|
|
3232
3232
|
if (n.data && n.data.__sentry__ === !0)
|
|
3233
3233
|
return p;
|
|
3234
|
-
const b =
|
|
3235
|
-
return
|
|
3234
|
+
const b = la(r, p, n);
|
|
3235
|
+
return ca(b, c);
|
|
3236
3236
|
}).then((p) => {
|
|
3237
3237
|
if (p === null)
|
|
3238
3238
|
throw this.recordDroppedEvent("before_send", f, e), new K(`${c} returned \`null\`, will not send event.`, "log");
|
|
@@ -3294,9 +3294,9 @@ Reason: ${p}`
|
|
|
3294
3294
|
*/
|
|
3295
3295
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3297
|
+
function ca(t, e) {
|
|
3298
3298
|
const n = `${e} must return \`null\` or a valid event.`;
|
|
3299
|
-
if (
|
|
3299
|
+
if (jn(t))
|
|
3300
3300
|
return t.then(
|
|
3301
3301
|
(s) => {
|
|
3302
3302
|
if (!qe(s) && s !== null)
|
|
@@ -3311,7 +3311,7 @@ function da(t, e) {
|
|
|
3311
3311
|
throw new K(n);
|
|
3312
3312
|
return t;
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function la(t, e, n) {
|
|
3315
3315
|
const { beforeSend: s, beforeSendTransaction: r } = t;
|
|
3316
3316
|
return xr(e) && s ? s(e, n) : Ir(e) && r ? r(e, n) : e;
|
|
3317
3317
|
}
|
|
@@ -3321,17 +3321,17 @@ function xr(t) {
|
|
|
3321
3321
|
function Ir(t) {
|
|
3322
3322
|
return t.type === "transaction";
|
|
3323
3323
|
}
|
|
3324
|
-
const
|
|
3325
|
-
function
|
|
3326
|
-
t.bufferSize ||
|
|
3324
|
+
const ua = 30;
|
|
3325
|
+
function ha(t, e, n = Eo(
|
|
3326
|
+
t.bufferSize || ua
|
|
3327
3327
|
)) {
|
|
3328
3328
|
let s = {};
|
|
3329
3329
|
const r = (o) => n.drain(o);
|
|
3330
3330
|
function i(o) {
|
|
3331
3331
|
const a = [];
|
|
3332
|
-
if (
|
|
3333
|
-
const b =
|
|
3334
|
-
if (
|
|
3332
|
+
if ($s(o, (p, m) => {
|
|
3333
|
+
const b = Cs(m);
|
|
3334
|
+
if (ko(s, b)) {
|
|
3335
3335
|
const ie = Hs(p, m);
|
|
3336
3336
|
t.recordDroppedEvent("ratelimit_backoff", b, ie);
|
|
3337
3337
|
} else
|
|
@@ -3339,12 +3339,12 @@ function ua(t, e, n = yo(
|
|
|
3339
3339
|
}), a.length === 0)
|
|
3340
3340
|
return Le();
|
|
3341
3341
|
const d = _t(o[0], a), c = (p) => {
|
|
3342
|
-
|
|
3342
|
+
$s(d, (m, b) => {
|
|
3343
3343
|
const ie = Hs(m, b);
|
|
3344
|
-
t.recordDroppedEvent(p,
|
|
3344
|
+
t.recordDroppedEvent(p, Cs(b), ie);
|
|
3345
3345
|
});
|
|
3346
|
-
}, f = () => e({ body:
|
|
3347
|
-
(p) => (s =
|
|
3346
|
+
}, f = () => e({ body: Io(d, t.textEncoder) }).then(
|
|
3347
|
+
(p) => (s = Mo(s, p), p),
|
|
3348
3348
|
(p) => {
|
|
3349
3349
|
throw c("network_error"), p;
|
|
3350
3350
|
}
|
|
@@ -3371,17 +3371,17 @@ const Fs = "7.77.0", Y = I;
|
|
|
3371
3371
|
function Or(t, e) {
|
|
3372
3372
|
const n = Gn(t, e), s = {
|
|
3373
3373
|
type: e && e.name,
|
|
3374
|
-
value:
|
|
3374
|
+
value: ma(e)
|
|
3375
3375
|
};
|
|
3376
3376
|
return n.length && (s.stacktrace = { frames: n }), s.type === void 0 && s.value === "" && (s.value = "Unrecoverable error caught"), s;
|
|
3377
3377
|
}
|
|
3378
|
-
function
|
|
3378
|
+
function pa(t, e, n, s) {
|
|
3379
3379
|
const i = D().getClient(), o = i && i.getOptions().normalizeDepth, a = {
|
|
3380
3380
|
exception: {
|
|
3381
3381
|
values: [
|
|
3382
3382
|
{
|
|
3383
3383
|
type: Ht(e) ? e.constructor.name : s ? "UnhandledRejection" : "Error",
|
|
3384
|
-
value:
|
|
3384
|
+
value: ba(e, { isUnhandledRejection: s })
|
|
3385
3385
|
}
|
|
3386
3386
|
]
|
|
3387
3387
|
},
|
|
@@ -3403,32 +3403,32 @@ function un(t, e) {
|
|
|
3403
3403
|
};
|
|
3404
3404
|
}
|
|
3405
3405
|
function Gn(t, e) {
|
|
3406
|
-
const n = e.stacktrace || e.stack || "", s =
|
|
3406
|
+
const n = e.stacktrace || e.stack || "", s = ga(e);
|
|
3407
3407
|
try {
|
|
3408
3408
|
return t(n, s);
|
|
3409
3409
|
} catch (r) {
|
|
3410
3410
|
}
|
|
3411
3411
|
return [];
|
|
3412
3412
|
}
|
|
3413
|
-
const
|
|
3414
|
-
function
|
|
3413
|
+
const fa = /Minified React error #\d+;/i;
|
|
3414
|
+
function ga(t) {
|
|
3415
3415
|
if (t) {
|
|
3416
3416
|
if (typeof t.framesToPop == "number")
|
|
3417
3417
|
return t.framesToPop;
|
|
3418
|
-
if (
|
|
3418
|
+
if (fa.test(t.message))
|
|
3419
3419
|
return 1;
|
|
3420
3420
|
}
|
|
3421
3421
|
return 0;
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function ma(t) {
|
|
3424
3424
|
const e = t && t.message;
|
|
3425
3425
|
return e ? e.error && typeof e.error.message == "string" ? e.error.message : e : "No error message";
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function va(t, e, n, s) {
|
|
3428
3428
|
const r = n && n.syntheticException || void 0, i = qn(t, e, r, s);
|
|
3429
3429
|
return Pt(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), Le(i);
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function _a(t, e, n = "info", s, r) {
|
|
3432
3432
|
const i = s && s.syntheticException || void 0, o = Ln(t, e, i, r);
|
|
3433
3433
|
return o.level = n, s && s.event_id && (o.event_id = s.event_id), Le(o);
|
|
3434
3434
|
}
|
|
@@ -3446,7 +3446,7 @@ function qn(t, e, n, s, r) {
|
|
|
3446
3446
|
}
|
|
3447
3447
|
return "code" in o && (i.tags = y(h({}, i.tags), { "DOMException.code": `${o.code}` })), i;
|
|
3448
3448
|
}
|
|
3449
|
-
return lr(e) ? un(t, e) : qe(e) || Ht(e) ? (i =
|
|
3449
|
+
return lr(e) ? un(t, e) : qe(e) || Ht(e) ? (i = pa(t, e, n, r), Pt(i, {
|
|
3450
3450
|
synthetic: !0
|
|
3451
3451
|
}), i) : (i = Ln(t, e, n, s), ws(i, `${e}`, void 0), Pt(i, {
|
|
3452
3452
|
synthetic: !0
|
|
@@ -3464,18 +3464,18 @@ function Ln(t, e, n, s) {
|
|
|
3464
3464
|
}
|
|
3465
3465
|
return r;
|
|
3466
3466
|
}
|
|
3467
|
-
function
|
|
3467
|
+
function ba(t, { isUnhandledRejection: e }) {
|
|
3468
3468
|
const n = Yi(t), s = e ? "promise rejection" : "exception";
|
|
3469
|
-
return Fn(t) ? `Event \`ErrorEvent\` captured as ${s} with message \`${t.message}\`` : Ht(t) ? `Event \`${
|
|
3469
|
+
return Fn(t) ? `Event \`ErrorEvent\` captured as ${s} with message \`${t.message}\`` : Ht(t) ? `Event \`${ya(t)}\` (type=${t.type}) captured as ${s}` : `Object captured as ${s} with keys: ${n}`;
|
|
3470
3470
|
}
|
|
3471
|
-
function
|
|
3471
|
+
function ya(t) {
|
|
3472
3472
|
try {
|
|
3473
3473
|
const e = Object.getPrototypeOf(t);
|
|
3474
3474
|
return e ? e.constructor.name : void 0;
|
|
3475
3475
|
} catch (e) {
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function Ea(t, {
|
|
3479
3479
|
metadata: e,
|
|
3480
3480
|
tunnel: n,
|
|
3481
3481
|
dsn: s
|
|
@@ -3488,22 +3488,22 @@ function ya(t, {
|
|
|
3488
3488
|
name: e.sdk.name,
|
|
3489
3489
|
version: e.sdk.version
|
|
3490
3490
|
}
|
|
3491
|
-
}), !!n && !!s && { dsn: Ft(s) }), i =
|
|
3491
|
+
}), !!n && !!s && { dsn: Ft(s) }), i = Aa(t);
|
|
3492
3492
|
return _t(r, [i]);
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3494
|
+
function Aa(t) {
|
|
3495
3495
|
return [{
|
|
3496
3496
|
type: "user_report"
|
|
3497
3497
|
}, t];
|
|
3498
3498
|
}
|
|
3499
|
-
class
|
|
3499
|
+
class wa extends da {
|
|
3500
3500
|
/**
|
|
3501
3501
|
* Creates a new Browser SDK instance.
|
|
3502
3502
|
*
|
|
3503
3503
|
* @param options Configuration options for this SDK.
|
|
3504
3504
|
*/
|
|
3505
3505
|
constructor(e) {
|
|
3506
|
-
const n = Y.SENTRY_SDK_SOURCE ||
|
|
3506
|
+
const n = Y.SENTRY_SDK_SOURCE || po();
|
|
3507
3507
|
e._metadata = e._metadata || {}, e._metadata.sdk = e._metadata.sdk || {
|
|
3508
3508
|
name: "sentry.javascript.browser",
|
|
3509
3509
|
packages: [
|
|
@@ -3521,13 +3521,13 @@ class Aa extends aa {
|
|
|
3521
3521
|
* @inheritDoc
|
|
3522
3522
|
*/
|
|
3523
3523
|
eventFromException(e, n) {
|
|
3524
|
-
return
|
|
3524
|
+
return va(this._options.stackParser, e, n, this._options.attachStacktrace);
|
|
3525
3525
|
}
|
|
3526
3526
|
/**
|
|
3527
3527
|
* @inheritDoc
|
|
3528
3528
|
*/
|
|
3529
3529
|
eventFromMessage(e, n = "info", s) {
|
|
3530
|
-
return
|
|
3530
|
+
return _a(this._options.stackParser, e, n, s, this._options.attachStacktrace);
|
|
3531
3531
|
}
|
|
3532
3532
|
/**
|
|
3533
3533
|
* Sends user feedback to Sentry.
|
|
@@ -3535,7 +3535,7 @@ class Aa extends aa {
|
|
|
3535
3535
|
captureUserFeedback(e) {
|
|
3536
3536
|
if (!this._isEnabled())
|
|
3537
3537
|
return;
|
|
3538
|
-
const n =
|
|
3538
|
+
const n = Ea(e, {
|
|
3539
3539
|
metadata: this.getSdkMetadata(),
|
|
3540
3540
|
dsn: this.getDsn(),
|
|
3541
3541
|
tunnel: this.getOptions().tunnel
|
|
@@ -3555,15 +3555,15 @@ class Aa extends aa {
|
|
|
3555
3555
|
const e = this._clearOutcomes();
|
|
3556
3556
|
if (e.length === 0 || !this._dsn)
|
|
3557
3557
|
return;
|
|
3558
|
-
const n =
|
|
3558
|
+
const n = $o(e, this._options.tunnel && Ft(this._dsn));
|
|
3559
3559
|
this._sendEnvelope(n);
|
|
3560
3560
|
}
|
|
3561
3561
|
}
|
|
3562
3562
|
let it;
|
|
3563
|
-
function
|
|
3563
|
+
function Ta() {
|
|
3564
3564
|
if (it)
|
|
3565
3565
|
return it;
|
|
3566
|
-
if (
|
|
3566
|
+
if (Sn(Y.fetch))
|
|
3567
3567
|
return it = Y.fetch.bind(Y);
|
|
3568
3568
|
const t = Y.document;
|
|
3569
3569
|
let e = Y.fetch;
|
|
@@ -3580,7 +3580,7 @@ function wa() {
|
|
|
3580
3580
|
function Sa() {
|
|
3581
3581
|
it = void 0;
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function xa(t, e = Ta()) {
|
|
3584
3584
|
let n = 0, s = 0;
|
|
3585
3585
|
function r(i) {
|
|
3586
3586
|
const o = i.body.length;
|
|
@@ -3612,12 +3612,12 @@ function Ta(t, e = wa()) {
|
|
|
3612
3612
|
}
|
|
3613
3613
|
}));
|
|
3614
3614
|
} catch (d) {
|
|
3615
|
-
return Sa(), n -= o, s--,
|
|
3615
|
+
return Sa(), n -= o, s--, Yn(d);
|
|
3616
3616
|
}
|
|
3617
3617
|
}
|
|
3618
|
-
return
|
|
3618
|
+
return ha(t, r);
|
|
3619
3619
|
}
|
|
3620
|
-
const zt = "?",
|
|
3620
|
+
const zt = "?", Ia = 30, Oa = 40, Ra = 50;
|
|
3621
3621
|
function Wn(t, e, n, s) {
|
|
3622
3622
|
const r = {
|
|
3623
3623
|
filename: t,
|
|
@@ -3627,30 +3627,30 @@ function Wn(t, e, n, s) {
|
|
|
3627
3627
|
};
|
|
3628
3628
|
return n !== void 0 && (r.lineno = n), s !== void 0 && (r.colno = s), r;
|
|
3629
3629
|
}
|
|
3630
|
-
const
|
|
3631
|
-
const e =
|
|
3630
|
+
const Na = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Da = /\((\S*)(?::(\d+))(?::(\d+))\)/, $a = (t) => {
|
|
3631
|
+
const e = Na.exec(t);
|
|
3632
3632
|
if (e) {
|
|
3633
3633
|
if (e[2] && e[2].indexOf("eval") === 0) {
|
|
3634
|
-
const i =
|
|
3634
|
+
const i = Da.exec(e[2]);
|
|
3635
3635
|
i && (e[2] = i[1], e[3] = i[2], e[4] = i[3]);
|
|
3636
3636
|
}
|
|
3637
3637
|
const [s, r] = Rr(e[1] || zt, e[2]);
|
|
3638
3638
|
return Wn(r, s, e[3] ? +e[3] : void 0, e[4] ? +e[4] : void 0);
|
|
3639
3639
|
}
|
|
3640
|
-
}, Ca = [
|
|
3641
|
-
const e =
|
|
3640
|
+
}, Ca = [Ia, $a], La = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, Pa = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, ka = (t) => {
|
|
3641
|
+
const e = La.exec(t);
|
|
3642
3642
|
if (e) {
|
|
3643
3643
|
if (e[3] && e[3].indexOf(" > eval") > -1) {
|
|
3644
|
-
const i =
|
|
3644
|
+
const i = Pa.exec(e[3]);
|
|
3645
3645
|
i && (e[1] = e[1] || "eval", e[3] = i[1], e[4] = i[2], e[5] = "");
|
|
3646
3646
|
}
|
|
3647
3647
|
let s = e[3], r = e[1] || zt;
|
|
3648
3648
|
return [r, s] = Rr(r, s), Wn(s, r, e[4] ? +e[4] : void 0, e[5] ? +e[5] : void 0);
|
|
3649
3649
|
}
|
|
3650
|
-
},
|
|
3651
|
-
const e =
|
|
3650
|
+
}, Ma = [Ra, ka], Ua = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i, Va = (t) => {
|
|
3651
|
+
const e = Ua.exec(t);
|
|
3652
3652
|
return e ? Wn(e[2], e[1] || zt, +e[3], e[4] ? +e[4] : void 0) : void 0;
|
|
3653
|
-
},
|
|
3653
|
+
}, Ha = [Oa, Va], Fa = [Ca, Ma, Ha], ja = Gi(...Fa), Rr = (t, e) => {
|
|
3654
3654
|
const n = t.indexOf("safari-extension") !== -1, s = t.indexOf("safari-web-extension") !== -1;
|
|
3655
3655
|
return n || s ? [
|
|
3656
3656
|
t.indexOf("@") !== -1 ? t.split("@")[0] : zt,
|
|
@@ -3679,7 +3679,7 @@ class Je {
|
|
|
3679
3679
|
onunhandledrejection: !0
|
|
3680
3680
|
}, e), this._installFunc = {
|
|
3681
3681
|
onerror: Ya,
|
|
3682
|
-
onunhandledrejection:
|
|
3682
|
+
onunhandledrejection: Ba
|
|
3683
3683
|
};
|
|
3684
3684
|
}
|
|
3685
3685
|
/**
|
|
@@ -3696,17 +3696,17 @@ class Je {
|
|
|
3696
3696
|
}
|
|
3697
3697
|
Je.__initStatic();
|
|
3698
3698
|
function Ya() {
|
|
3699
|
-
|
|
3699
|
+
Se(
|
|
3700
3700
|
"error",
|
|
3701
3701
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3702
3702
|
(t) => {
|
|
3703
|
-
const [e, n, s] =
|
|
3703
|
+
const [e, n, s] = $r();
|
|
3704
3704
|
if (!e.getIntegration(Je))
|
|
3705
3705
|
return;
|
|
3706
3706
|
const { msg: r, url: i, line: o, column: a, error: d } = t;
|
|
3707
3707
|
if (d && d.__sentry_own_request__)
|
|
3708
3708
|
return;
|
|
3709
|
-
const c = d === void 0 && ut(r) ?
|
|
3709
|
+
const c = d === void 0 && ut(r) ? Ga(r, i, o, a) : Nr(
|
|
3710
3710
|
qn(n, d || r, void 0, s, !1),
|
|
3711
3711
|
i,
|
|
3712
3712
|
o,
|
|
@@ -3716,12 +3716,12 @@ function Ya() {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
);
|
|
3718
3718
|
}
|
|
3719
|
-
function
|
|
3720
|
-
|
|
3719
|
+
function Ba() {
|
|
3720
|
+
Se(
|
|
3721
3721
|
"unhandledrejection",
|
|
3722
3722
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3723
3723
|
(t) => {
|
|
3724
|
-
const [e, n, s] =
|
|
3724
|
+
const [e, n, s] = $r();
|
|
3725
3725
|
if (!e.getIntegration(Je))
|
|
3726
3726
|
return;
|
|
3727
3727
|
let r = t;
|
|
@@ -3731,12 +3731,12 @@ function ja() {
|
|
|
3731
3731
|
}
|
|
3732
3732
|
if (r && r.__sentry_own_request__)
|
|
3733
3733
|
return !0;
|
|
3734
|
-
const i = ur(r) ?
|
|
3734
|
+
const i = ur(r) ? za(r) : qn(n, r, void 0, s, !0);
|
|
3735
3735
|
i.level = "error", Dr(e, r, i, "onunhandledrejection");
|
|
3736
3736
|
}
|
|
3737
3737
|
);
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function za(t) {
|
|
3740
3740
|
return {
|
|
3741
3741
|
exception: {
|
|
3742
3742
|
values: [
|
|
@@ -3749,7 +3749,7 @@ function Ba(t) {
|
|
|
3749
3749
|
}
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
|
-
function
|
|
3752
|
+
function Ga(t, e, n, s) {
|
|
3753
3753
|
const r = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
3754
3754
|
let i = Fn(t) ? t.message : t, o = "Error";
|
|
3755
3755
|
const a = i.match(r);
|
|
@@ -3765,7 +3765,7 @@ function za(t, e, n, s) {
|
|
|
3765
3765
|
}, e, n, s);
|
|
3766
3766
|
}
|
|
3767
3767
|
function Nr(t, e, n, s) {
|
|
3768
|
-
const r = t.exception = t.exception || {}, i = r.values = r.values || [], o = i[0] = i[0] || {}, a = o.stacktrace = o.stacktrace || {}, d = a.frames = a.frames || [], c = isNaN(parseInt(s, 10)) ? void 0 : s, f = isNaN(parseInt(n, 10)) ? void 0 : n, p = ut(e) && e.length > 0 ? e :
|
|
3768
|
+
const r = t.exception = t.exception || {}, i = r.values = r.values || [], o = i[0] = i[0] || {}, a = o.stacktrace = o.stacktrace || {}, d = a.frames = a.frames || [], c = isNaN(parseInt(s, 10)) ? void 0 : s, f = isNaN(parseInt(n, 10)) ? void 0 : n, p = ut(e) && e.length > 0 ? e : Li();
|
|
3769
3769
|
return d.length === 0 && d.push({
|
|
3770
3770
|
colno: c,
|
|
3771
3771
|
filename: p,
|
|
@@ -3782,14 +3782,14 @@ function Dr(t, e, n, s) {
|
|
|
3782
3782
|
originalException: e
|
|
3783
3783
|
});
|
|
3784
3784
|
}
|
|
3785
|
-
function
|
|
3785
|
+
function $r() {
|
|
3786
3786
|
const t = D(), e = t.getClient(), n = e && e.getOptions() || {
|
|
3787
3787
|
stackParser: () => [],
|
|
3788
3788
|
attachStacktrace: !1
|
|
3789
3789
|
};
|
|
3790
3790
|
return [t, n.stackParser, n.attachStacktrace];
|
|
3791
3791
|
}
|
|
3792
|
-
const
|
|
3792
|
+
const js = 1024;
|
|
3793
3793
|
class Gt {
|
|
3794
3794
|
/**
|
|
3795
3795
|
* @inheritDoc
|
|
@@ -3826,33 +3826,33 @@ class Gt {
|
|
|
3826
3826
|
* - History API
|
|
3827
3827
|
*/
|
|
3828
3828
|
setupOnce() {
|
|
3829
|
-
if (this.options.console &&
|
|
3829
|
+
if (this.options.console && Se("console", Za), this.options.dom && Se("dom", Wa(this.options.dom)), this.options.xhr && Se("xhr", Ka), this.options.fetch && Se("fetch", Ja), this.options.history && Se("history", Xa), this.options.sentry) {
|
|
3830
3830
|
const e = D().getClient();
|
|
3831
|
-
e && e.on && e.on("beforeSendEvent",
|
|
3831
|
+
e && e.on && e.on("beforeSendEvent", qa);
|
|
3832
3832
|
}
|
|
3833
3833
|
}
|
|
3834
3834
|
}
|
|
3835
3835
|
Gt.__initStatic();
|
|
3836
|
-
function
|
|
3836
|
+
function qa(t) {
|
|
3837
3837
|
D().addBreadcrumb(
|
|
3838
3838
|
{
|
|
3839
3839
|
category: `sentry.${t.type === "transaction" ? "transaction" : "event"}`,
|
|
3840
3840
|
event_id: t.event_id,
|
|
3841
3841
|
level: t.level,
|
|
3842
|
-
message:
|
|
3842
|
+
message: Bi(t)
|
|
3843
3843
|
},
|
|
3844
3844
|
{
|
|
3845
3845
|
event: t
|
|
3846
3846
|
}
|
|
3847
3847
|
);
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function Wa(t) {
|
|
3850
3850
|
function e(n) {
|
|
3851
3851
|
let s, r = typeof t == "object" ? t.serializeAttribute : void 0, i = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
|
|
3852
|
-
i && i >
|
|
3852
|
+
i && i > js && (i = js), typeof r == "string" && (r = [r]);
|
|
3853
3853
|
try {
|
|
3854
3854
|
const o = n.event;
|
|
3855
|
-
s =
|
|
3855
|
+
s = Qa(o) ? An(o.target, { keyAttrs: r, maxStringLength: i }) : An(o, { keyAttrs: r, maxStringLength: i });
|
|
3856
3856
|
} catch (o) {
|
|
3857
3857
|
s = "<unknown>";
|
|
3858
3858
|
}
|
|
@@ -3870,14 +3870,14 @@ function qa(t) {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
return e;
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function Za(t) {
|
|
3874
3874
|
const e = {
|
|
3875
3875
|
category: "console",
|
|
3876
3876
|
data: {
|
|
3877
3877
|
arguments: t.args,
|
|
3878
3878
|
logger: "console"
|
|
3879
3879
|
},
|
|
3880
|
-
level:
|
|
3880
|
+
level: wo(t.level),
|
|
3881
3881
|
message: _s(t.args, " ")
|
|
3882
3882
|
};
|
|
3883
3883
|
if (t.level === "assert")
|
|
@@ -3890,7 +3890,7 @@ function Wa(t) {
|
|
|
3890
3890
|
level: t.level
|
|
3891
3891
|
});
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function Ka(t) {
|
|
3894
3894
|
const { startTimestamp: e, endTimestamp: n } = t, s = t.xhr[rt];
|
|
3895
3895
|
if (!e || !n || !s)
|
|
3896
3896
|
return;
|
|
@@ -3913,7 +3913,7 @@ function Za(t) {
|
|
|
3913
3913
|
c
|
|
3914
3914
|
);
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3916
|
+
function Ja(t) {
|
|
3917
3917
|
const { startTimestamp: e, endTimestamp: n } = t;
|
|
3918
3918
|
if (n && !(t.fetchData.url.match(/sentry_key/) && t.fetchData.method === "POST"))
|
|
3919
3919
|
if (t.error) {
|
|
@@ -3951,7 +3951,7 @@ function Ka(t) {
|
|
|
3951
3951
|
);
|
|
3952
3952
|
}
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3954
|
+
function Xa(t) {
|
|
3955
3955
|
let e = t.from, n = t.to;
|
|
3956
3956
|
const s = cn(Y.location.href);
|
|
3957
3957
|
let r = cn(e);
|
|
@@ -3964,10 +3964,10 @@ function Ja(t) {
|
|
|
3964
3964
|
}
|
|
3965
3965
|
});
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
3967
|
+
function Qa(t) {
|
|
3968
3968
|
return !!t && !!t.target;
|
|
3969
3969
|
}
|
|
3970
|
-
const
|
|
3970
|
+
const ed = "cause", td = 5;
|
|
3971
3971
|
class qt {
|
|
3972
3972
|
/**
|
|
3973
3973
|
* @inheritDoc
|
|
@@ -3988,7 +3988,7 @@ class qt {
|
|
|
3988
3988
|
* @inheritDoc
|
|
3989
3989
|
*/
|
|
3990
3990
|
constructor(e = {}) {
|
|
3991
|
-
this.name = qt.id, this._key = e.key ||
|
|
3991
|
+
this.name = qt.id, this._key = e.key || ed, this._limit = e.limit || td;
|
|
3992
3992
|
}
|
|
3993
3993
|
/** @inheritdoc */
|
|
3994
3994
|
setupOnce() {
|
|
@@ -3998,7 +3998,7 @@ class qt {
|
|
|
3998
3998
|
*/
|
|
3999
3999
|
preprocessEvent(e, n, s) {
|
|
4000
4000
|
const r = s.getOptions();
|
|
4001
|
-
|
|
4001
|
+
Ri(
|
|
4002
4002
|
Or,
|
|
4003
4003
|
r.stackParser,
|
|
4004
4004
|
r.maxValueLength,
|
|
@@ -4036,7 +4036,7 @@ class Wt {
|
|
|
4036
4036
|
if (e.type)
|
|
4037
4037
|
return e;
|
|
4038
4038
|
try {
|
|
4039
|
-
if (
|
|
4039
|
+
if (nd(e, this._previousEvent))
|
|
4040
4040
|
return null;
|
|
4041
4041
|
} catch (n) {
|
|
4042
4042
|
}
|
|
@@ -4044,18 +4044,18 @@ class Wt {
|
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
4046
4046
|
Wt.__initStatic();
|
|
4047
|
-
function td(t, e) {
|
|
4048
|
-
return e ? !!(nd(t, e) || sd(t, e)) : !1;
|
|
4049
|
-
}
|
|
4050
4047
|
function nd(t, e) {
|
|
4051
|
-
|
|
4052
|
-
return !(!n && !s || n && !s || !n && s || n !== s || !Lr(t, e) || !$r(t, e));
|
|
4048
|
+
return e ? !!(sd(t, e) || rd(t, e)) : !1;
|
|
4053
4049
|
}
|
|
4054
4050
|
function sd(t, e) {
|
|
4055
|
-
const n =
|
|
4056
|
-
return !(!n || !s || n
|
|
4051
|
+
const n = t.message, s = e.message;
|
|
4052
|
+
return !(!n && !s || n && !s || !n && s || n !== s || !Lr(t, e) || !Cr(t, e));
|
|
4057
4053
|
}
|
|
4058
|
-
function
|
|
4054
|
+
function rd(t, e) {
|
|
4055
|
+
const n = Ys(e), s = Ys(t);
|
|
4056
|
+
return !(!n || !s || n.type !== s.type || n.value !== s.value || !Lr(t, e) || !Cr(t, e));
|
|
4057
|
+
}
|
|
4058
|
+
function Cr(t, e) {
|
|
4059
4059
|
let n = Bs(t), s = Bs(e);
|
|
4060
4060
|
if (!n && !s)
|
|
4061
4061
|
return !0;
|
|
@@ -4081,7 +4081,7 @@ function Lr(t, e) {
|
|
|
4081
4081
|
return !1;
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
|
-
function
|
|
4084
|
+
function Ys(t) {
|
|
4085
4085
|
return t.exception && t.exception.values && t.exception.values[0];
|
|
4086
4086
|
}
|
|
4087
4087
|
function Bs(t) {
|
|
@@ -4098,9 +4098,9 @@ class Pr extends Error {
|
|
|
4098
4098
|
super(e), this.name = "APIError";
|
|
4099
4099
|
}
|
|
4100
4100
|
}
|
|
4101
|
-
const
|
|
4101
|
+
const id = (t, e) => {
|
|
4102
4102
|
if (["uat", "production"].includes(t)) {
|
|
4103
|
-
const n = new
|
|
4103
|
+
const n = new wa({
|
|
4104
4104
|
// all options you normally pass to Sentry.init
|
|
4105
4105
|
dsn: "https://26ed528c0727a1a2adb22c381ca4111a@o414861.ingest.sentry.io/4506220268355584",
|
|
4106
4106
|
release: "0.3.0",
|
|
@@ -4110,8 +4110,8 @@ const rd = (t, e) => {
|
|
|
4110
4110
|
// We recommend adjusting this value in production
|
|
4111
4111
|
tracesSampleRate: 0,
|
|
4112
4112
|
// ...
|
|
4113
|
-
transport:
|
|
4114
|
-
stackParser:
|
|
4113
|
+
transport: xa,
|
|
4114
|
+
stackParser: ja,
|
|
4115
4115
|
// Only the integrations listed here will be used
|
|
4116
4116
|
integrations: [
|
|
4117
4117
|
new Gt(),
|
|
@@ -4124,17 +4124,17 @@ const rd = (t, e) => {
|
|
|
4124
4124
|
return i instanceof Pr && (s.fingerprint = ["{{ default }}", String(i.message)]), s;
|
|
4125
4125
|
}
|
|
4126
4126
|
});
|
|
4127
|
-
D().bindClient(n),
|
|
4127
|
+
D().bindClient(n), Cn({ user: e });
|
|
4128
4128
|
}
|
|
4129
|
-
},
|
|
4129
|
+
}, od = {
|
|
4130
4130
|
local: "http://localhost/mrc_api/public/api",
|
|
4131
4131
|
uat: "https://api-uat.myriacompliance.com/api",
|
|
4132
4132
|
production: "https://api.myriacompliance.com/api"
|
|
4133
|
-
},
|
|
4134
|
-
window.location.host === "localhost" ? `${window.location.origin}${
|
|
4135
|
-
class
|
|
4133
|
+
}, ad = window.location.pathname.split("/");
|
|
4134
|
+
window.location.host === "localhost" ? `${window.location.origin}${ad[1].trim()}` : window.location.origin;
|
|
4135
|
+
class dd {
|
|
4136
4136
|
constructor(e, n) {
|
|
4137
|
-
if (this.BASE_URL =
|
|
4137
|
+
if (this.BASE_URL = od[e], this.user = n, this.headers = {
|
|
4138
4138
|
"Content-Type": "application/json",
|
|
4139
4139
|
"Encrypted-User": n
|
|
4140
4140
|
}, !this.BASE_URL || !n)
|
|
@@ -4256,7 +4256,7 @@ class ad {
|
|
|
4256
4256
|
);
|
|
4257
4257
|
return r.blob();
|
|
4258
4258
|
} catch (r) {
|
|
4259
|
-
return
|
|
4259
|
+
return Cn({ id: this.user }), Ms("endpoint", n), ks(r), null;
|
|
4260
4260
|
}
|
|
4261
4261
|
});
|
|
4262
4262
|
}
|
|
@@ -4275,17 +4275,17 @@ class ad {
|
|
|
4275
4275
|
);
|
|
4276
4276
|
return c.json();
|
|
4277
4277
|
} catch (c) {
|
|
4278
|
-
return
|
|
4278
|
+
return Cn({ id: this.user }), Ms("endpoint", e), ks(c), null;
|
|
4279
4279
|
}
|
|
4280
4280
|
});
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
|
-
const
|
|
4283
|
+
const cd = dd;
|
|
4284
4284
|
var Pn = "";
|
|
4285
4285
|
function zs(t) {
|
|
4286
4286
|
Pn = t;
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4288
|
+
function ld(t = "") {
|
|
4289
4289
|
if (!Pn) {
|
|
4290
4290
|
const e = [...document.getElementsByTagName("script")], n = e.find((s) => s.hasAttribute("data-shoelace"));
|
|
4291
4291
|
if (n)
|
|
@@ -4298,10 +4298,10 @@ function cd(t = "") {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
return Pn.replace(/\/$/, "") + (t ? `/${t.replace(/^\//, "")}` : "");
|
|
4300
4300
|
}
|
|
4301
|
-
var
|
|
4301
|
+
var ud = {
|
|
4302
4302
|
name: "default",
|
|
4303
|
-
resolver: (t) =>
|
|
4304
|
-
},
|
|
4303
|
+
resolver: (t) => ld(`assets/icons/${t}.svg`)
|
|
4304
|
+
}, hd = ud, Gs = {
|
|
4305
4305
|
caret: `
|
|
4306
4306
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4307
4307
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
@@ -4412,28 +4412,28 @@ var ld = {
|
|
|
4412
4412
|
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
|
|
4413
4413
|
</svg>
|
|
4414
4414
|
`
|
|
4415
|
-
},
|
|
4415
|
+
}, pd = {
|
|
4416
4416
|
name: "system",
|
|
4417
4417
|
resolver: (t) => t in Gs ? `data:image/svg+xml,${encodeURIComponent(Gs[t])}` : ""
|
|
4418
|
-
},
|
|
4419
|
-
function
|
|
4418
|
+
}, fd = pd, gd = [hd, fd], kn = [];
|
|
4419
|
+
function md(t) {
|
|
4420
4420
|
kn.push(t);
|
|
4421
4421
|
}
|
|
4422
|
-
function
|
|
4422
|
+
function vd(t) {
|
|
4423
4423
|
kn = kn.filter((e) => e !== t);
|
|
4424
4424
|
}
|
|
4425
4425
|
function qs(t) {
|
|
4426
|
-
return
|
|
4426
|
+
return gd.find((e) => e.name === t);
|
|
4427
4427
|
}
|
|
4428
|
-
var Zt = x`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`,
|
|
4428
|
+
var Zt = x`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`, _d = x`${Zt}:host{display:inline-block;width:1em;height:1em;box-sizing:content-box!important}svg{display:block;height:100%;width:100%}`, kr = Object.defineProperty, bd = Object.defineProperties, yd = Object.getOwnPropertyDescriptor, Ed = Object.getOwnPropertyDescriptors, Ws = Object.getOwnPropertySymbols, Ad = Object.prototype.hasOwnProperty, wd = Object.prototype.propertyIsEnumerable, Zs = (t, e, n) => e in t ? kr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Zn = (t, e) => {
|
|
4429
4429
|
for (var n in e || (e = {}))
|
|
4430
|
-
|
|
4430
|
+
Ad.call(e, n) && Zs(t, n, e[n]);
|
|
4431
4431
|
if (Ws)
|
|
4432
4432
|
for (var n of Ws(e))
|
|
4433
|
-
|
|
4433
|
+
wd.call(e, n) && Zs(t, n, e[n]);
|
|
4434
4434
|
return t;
|
|
4435
|
-
},
|
|
4436
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4435
|
+
}, Td = (t, e) => bd(t, Ed(e)), _ = (t, e, n, s) => {
|
|
4436
|
+
for (var r = s > 1 ? void 0 : s ? yd(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
4437
4437
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
4438
4438
|
return s && r && kr(e, n, r), r;
|
|
4439
4439
|
};
|
|
@@ -4529,13 +4529,13 @@ var nt = Symbol(), Ot = Symbol(), hn, pn = /* @__PURE__ */ new Map(), te = class
|
|
|
4529
4529
|
});
|
|
4530
4530
|
}
|
|
4531
4531
|
connectedCallback() {
|
|
4532
|
-
super.connectedCallback(),
|
|
4532
|
+
super.connectedCallback(), md(this);
|
|
4533
4533
|
}
|
|
4534
4534
|
firstUpdated() {
|
|
4535
4535
|
this.initialRender = !0, this.setIcon();
|
|
4536
4536
|
}
|
|
4537
4537
|
disconnectedCallback() {
|
|
4538
|
-
super.disconnectedCallback(),
|
|
4538
|
+
super.disconnectedCallback(), vd(this);
|
|
4539
4539
|
}
|
|
4540
4540
|
getIconSource() {
|
|
4541
4541
|
const t = qs(this.library);
|
|
@@ -4582,7 +4582,7 @@ var nt = Symbol(), Ot = Symbol(), hn, pn = /* @__PURE__ */ new Map(), te = class
|
|
|
4582
4582
|
return this.svg;
|
|
4583
4583
|
}
|
|
4584
4584
|
};
|
|
4585
|
-
te.styles =
|
|
4585
|
+
te.styles = _d;
|
|
4586
4586
|
_([
|
|
4587
4587
|
ar()
|
|
4588
4588
|
], te.prototype, "svg", 2);
|
|
@@ -4605,12 +4605,12 @@ _([
|
|
|
4605
4605
|
bt(["name", "src", "library"])
|
|
4606
4606
|
], te.prototype, "setIcon", 1);
|
|
4607
4607
|
te.define("sl-icon");
|
|
4608
|
-
const U = "api", ue = "environment", Mr = "isLoading", Ur = "isLoadingMRCVendors", Vr = "allVendors", G = "currnetVendor", Hr = "currentPage", Fr = "mrcVendors",
|
|
4608
|
+
const U = "api", ue = "environment", Mr = "isLoading", Ur = "isLoadingMRCVendors", Vr = "allVendors", G = "currnetVendor", Hr = "currentPage", Fr = "mrcVendors", jr = "removeVendor", xd = "userVddFreeDetails", Kt = "vendorDataContext", Yr = "paginationPageContext";
|
|
4609
4609
|
const q = x`:host{max-width:1200px;margin:0 auto;display:block;font-family:Poppins,sans-serif}label,p,span,td,th{font-size:14px}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.main_page_container{font-family:Poppins,sans-serif}.vdd_subtitle_container{display:flex;justify-content:space-between;align-items:center;font-size:20px;font-weight:700;width:100%}.page_title{width:100%}.settings_icon{margin-right:30px}.blue_container{min-height:30px;width:100%;border:1px solid #dee2e6;background-color:#1675ff;border-radius:6px 6px 0 0}.tos_container{margin:0 auto;width:100%;font-family:Poppins;font-style:normal;font-weight:400;font-size:18px;line-height:32px;color:#012330}.tos_headers{width:596px;height:32px;font-family:Poppins;font-style:normal;font-weight:600;font-size:20px;line-height:32px;color:#012330;margin:20px 0}.tos_submit_container{display:flex;flex-direction:row-reverse}.add_vendor_container{min-height:45px;border:1px solid #dee2e6;background-color:#f3f9ff;display:flex;flex-direction:row-reverse;align-items:center;padding:3px 0}.back_to_vendor_container{min-height:45px;border:1px solid #dee2e6;background-color:#f3f9ff;display:flex;flex-direction:row;align-items:center;padding:3px 0}.vendors_back_btn{margin-left:30px;cursor:pointer;font-size:14px;display:flex;align-items:center;line-height:1}.vendors_back_btn sl-icon{margin-right:8px;width:18px;height:18px}.tier_lvl_1{color:#c2280a}.tier_lvl_2{color:#f8991d}.tier_lvl_3{color:#0087db}.tier_lvl_4{color:#34aa44}.tier_lvl_none{color:#1c61c9 text-decoration: underline}#vdd_add_vendor_btn{font-weight:600;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:3px 16px;gap:8px;box-shadow:rgba(0,0,0,.12) 0 1px 5px 0;background:#fff;border:1px solid #fff;box-shadow:0 1px 2px rgba(16,24,40,.05);border-radius:8px;flex:none;order:0;flex-grow:0;margin-right:25px}.vendor-info-wrapper{margin:20px 0 50px 0;display:grid;grid-template-columns:repeat(2,1fr);grid-gap:50px}.vendor-info-wrapper vendor-activity,.vendor-info-wrapper vendor-details{width:100%}.info-section{display:grid;grid-template-columns:1fr 1fr;margin:20px 0;grid-gap:20px}.add_vendor_popup{width:100%;display:flex;flex-direction:column}.add_vendor_popup select{width:100%;padding:.5rem;font-size:14px}.add_vendor_content{width:100%;font-size:14px;color:: #333}.vdd_partnered_desc{margin:1em 0}.spr_label{margin:1em 0}.info_doc_links{margin-bottom:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}.vendor_info_doc{text-decoration:underline;color:#333}.vdd_textarea{background:#fafafa;min-width:100%;max-width:100%;width:100%;height:138px;max-height:100px;margin-bottom:40px;font-family:Poppins;padding:20px;box-shadow:0 3px 4px 0 #ced4DA33 inset;border-radius:6px;box-sizing:border-box;border:.5px solid #dee2e6;outline:0}.no_nda_text{margin:1em 0}.other_vendor_notice p{margin:0}#nda_contract_yes_wrapper,.nda-file-input,.spr_vendor_nda_url_item,.vdd_textarea{margin:1em 0}.remove{display:none}.block{display:block}.confirmation_message{display:flex;justify-content:center;align-items:center;padding:40px}#invite_vendor_name,.vdd_invite_content input{margin:1em 0}.file-container,.file-container-other{display:flex;align-items:flex-start;justify-content:flex-start;width:100%}.nda-file-label{position:absolute;z-index:-1;top:10px;left:40px;font-size:17px;color:#b8b8b8}.button-wrap{position:relative}.nda-file-input{display:inline-block;padding:0 18px;cursor:pointer;border-radius:5px;font-size:14px;font-weight:700}.spr_vendor_upload_file{display:flex}.nda-document-container{padding-bottom:20px}.vdd_ovd_ad_upload_outer_wrapper{padding:10px;border:1px solid #0000001F}h4{font-weight:700;font-size:18px;margin-bottom:0}.send_invite_header{margin-top:35px}input[type=email],input[type=number],input[type=search],input[type=text]{border:1px solid #dee2e6;outline:0;padding:12px;width:100%;border-radius:6px;margin:5px 0;box-sizing:border-box}#invite_vendor_contact,#recipient_email{max-width:349px}.actions-wrapper{margin:20px 0;display:flex;justify-content:end}.actions-wrapper button{margin-right:10px}.confirmation_message{display:flex;justify-content:center;align-items:center;flex-direction:column}.remove-doc-btn{margin-right:10px}`;
|
|
4610
|
-
var
|
|
4611
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4610
|
+
var Id = Object.defineProperty, Od = Object.getOwnPropertyDescriptor, Xe = (t, e, n, s) => {
|
|
4611
|
+
for (var r = s > 1 ? void 0 : s ? Od(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
4612
4612
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
4613
|
-
return s && r &&
|
|
4613
|
+
return s && r && Id(e, n, r), r;
|
|
4614
4614
|
};
|
|
4615
4615
|
let ge = class t extends E {
|
|
4616
4616
|
constructor() {
|
|
@@ -4661,15 +4661,15 @@ Xe([
|
|
|
4661
4661
|
ge = Xe([
|
|
4662
4662
|
A("vendor-due-diligence-tos-page")
|
|
4663
4663
|
], ge);
|
|
4664
|
-
const
|
|
4665
|
-
"check2-circle":
|
|
4666
|
-
"exclamation-octagon":
|
|
4664
|
+
const Rd = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hlY2syLWNpcmNsZSIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNMi41IDhhNS41IDUuNSAwIDAgMSA4LjI1LTQuNzY0LjUuNSAwIDAgMCAuNS0uODY2QTYuNSA2LjUgMCAxIDAgMTQuNSA4YS41LjUgMCAwIDAtMSAwIDUuNSA1LjUgMCAxIDEtMTEgMHoiLz4KICA8cGF0aCBkPSJNMTUuMzU0IDMuMzU0YS41LjUgMCAwIDAtLjcwOC0uNzA4TDggOS4yOTMgNS4zNTQgNi42NDZhLjUuNSAwIDEgMC0uNzA4LjcwOGwzIDNhLjUuNSAwIDAgMCAuNzA4IDBsNy03eiIvPgo8L3N2Zz4=", Nd = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktZXhjbGFtYXRpb24tb2N0YWdvbiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNC41NC4xNDZBLjUuNSAwIDAgMSA0Ljg5MyAwaDYuMjE0YS41LjUgMCAwIDEgLjM1My4xNDZsNC4zOTQgNC4zOTRhLjUuNSAwIDAgMSAuMTQ2LjM1M3Y2LjIxNGEuNS41IDAgMCAxLS4xNDYuMzUzbC00LjM5NCA0LjM5NGEuNS41IDAgMCAxLS4zNTMuMTQ2SDQuODkzYS41LjUgMCAwIDEtLjM1My0uMTQ2TC4xNDYgMTEuNDZBLjUuNSAwIDAgMSAwIDExLjEwN1Y0Ljg5M2EuNS41IDAgMCAxIC4xNDYtLjM1M0w0LjU0LjE0NnpNNS4xIDEgMSA1LjF2NS44TDUuMSAxNWg1LjhsNC4xLTQuMVY1LjFMMTAuOSAxSDUuMXoiLz4KICA8cGF0aCBkPSJNNy4wMDIgMTFhMSAxIDAgMSAxIDIgMCAxIDEgMCAwIDEtMiAwek03LjEgNC45OTVhLjkwNS45MDUgMCAxIDEgMS44IDBsLS4zNSAzLjUwN2EuNTUyLjU1MiAwIDAgMS0xLjEgMEw3LjEgNC45OTV6Ii8+Cjwvc3ZnPg==", Rt = "vendor", fn = "other_vendor", ot = "client_vendor_docs", de = "non_partnered", me = "partnered", Dd = {
|
|
4665
|
+
"check2-circle": Rd,
|
|
4666
|
+
"exclamation-octagon": Nd
|
|
4667
4667
|
}, Be = (t) => new Intl.DateTimeFormat("en-US", {
|
|
4668
4668
|
year: "numeric",
|
|
4669
4669
|
month: "2-digit",
|
|
4670
4670
|
day: "2-digit",
|
|
4671
4671
|
timeZone: "America/New_York"
|
|
4672
|
-
}).format(new Date(t)),
|
|
4672
|
+
}).format(new Date(t)), $d = (i) => {
|
|
4673
4673
|
var o = i, {
|
|
4674
4674
|
message: t,
|
|
4675
4675
|
variant: e,
|
|
@@ -4685,19 +4685,19 @@ const Od = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
4685
4685
|
variant: e != null ? e : "primary",
|
|
4686
4686
|
closable: !0,
|
|
4687
4687
|
duration: n != null ? n : 3e3,
|
|
4688
|
-
innerHTML: `<sl-icon src="${
|
|
4688
|
+
innerHTML: `<sl-icon src="${Dd[s]}" slot="icon"></sl-icon>
|
|
4689
4689
|
${t}`
|
|
4690
4690
|
}, r));
|
|
4691
|
-
},
|
|
4692
|
-
const n =
|
|
4691
|
+
}, T = (t, e) => {
|
|
4692
|
+
const n = $d({
|
|
4693
4693
|
message: t,
|
|
4694
4694
|
variant: "danger",
|
|
4695
4695
|
duration: 5e3,
|
|
4696
4696
|
icon: "exclamation-octagon"
|
|
4697
4697
|
});
|
|
4698
4698
|
return e.append(n), n.toast();
|
|
4699
|
-
}, Cd = (t, e, n = !1) => n ? `${t.BASE_URL}/vendor_due_diligence/get_nonpartnered_doc/${e.request_vendor_id}/${e.id}/${encodeURIComponent(e.name)}?download=1&user=${encodeURIComponent(t.user)}` : `${t.BASE_URL}/vendor_due_diligence/get_partnered_doc/${ot}/${e.vendor_account_id}/${e.id}/${encodeURIComponent(e.name)}?download=1&user=${encodeURIComponent(t.user)}`,
|
|
4700
|
-
class
|
|
4699
|
+
}, Cd = (t, e, n = !1) => n ? `${t.BASE_URL}/vendor_due_diligence/get_nonpartnered_doc/${e.request_vendor_id}/${e.id}/${encodeURIComponent(e.name)}?download=1&user=${encodeURIComponent(t.user)}` : `${t.BASE_URL}/vendor_due_diligence/get_partnered_doc/${ot}/${e.vendor_account_id}/${e.id}/${encodeURIComponent(e.name)}?download=1&user=${encodeURIComponent(t.user)}`, Ld = x`.vendor-documents-wrapper h3{font-size:16px;font-weight:700;margin:5px 0}.vendor-documents-header{background:#0123300A;padding:10px 16px}#addDocument{display:flex;box-shadow:rgba(0,0,0,.12) 0 1px 5px 0;border:0;background:0 0;padding:11px;border-radius:4px;cursor:pointer;margin-left:auto}#addDocument sl-icon{margin-right:5px}.vendor-documents-table{border-collapse:collapse;border:1px solid #0123300A;width:100%}.vendor-documents-table th{text-align:left;padding:16px 24px;font-size:12px;font-weght:700;color:#0000008A}.vendor-documents-table td{font-size:14px;padding:10px 24px}.vendor-documents-table td:last-child,.vendor-documents-table th:last-child{text-align:center}.vendor-documents-table td a{color:#0051ca}.vendor-documents-table td,.vendor-documents-table th{margin:0;border-bottom:1px solid #0123300A}.document-name{cursor:pointer}.vendor-docs-spinner{display:block;margin:20px;text-align:center}.subscribedVendorsTable{width:100%;font-size:14px;color:#0069b2}.vendorsHeader{color:#012330;border-bottom:1px solid #999b9d;border-top:1px solid #999b9d;line-height:12px;font-weight:400;height:40px}table{width:100%;border-collapse:collapse}td,th{padding:8px;text-align:left}th{background-color:#fff;font-weight:400}.actions-th{text-align:center}tbody tr{border-bottom:1px solid #e3e4e5}.vdd_tier_column{font-weight:700}.vdd_ra_column{color:#333}.vdd_vendor_column{color:#012330}.vdd_chip{font-weight:700;font-size:12px;font-style:normal;color:#fff;padding:5px;border-radius:4px;line-height:13px}.vdd_chip_pending{background-color:#d37070}.vdd_chip_subscribed{background-color:#789dc2}.vdd_chip_invited{background-color:#d38e70}.vdd_chip_review{background-color:#d37070}.go_to_vendor_button{cursor:pointer;color:#0d57c5;text-decoration:underline}.remove_vendor_button{color:#0048b2;cursor:pointer;background:rgba(0,72,178,.04);text-align:center;padding:5px;border-radius:4px;font-weight:700}`;
|
|
4700
|
+
class Pd {
|
|
4701
4701
|
/**
|
|
4702
4702
|
* @param parent
|
|
4703
4703
|
* @param {Array} data
|
|
@@ -4747,11 +4747,11 @@ class Ld {
|
|
|
4747
4747
|
document.dispatchEvent(s);
|
|
4748
4748
|
}
|
|
4749
4749
|
}
|
|
4750
|
-
const
|
|
4751
|
-
var
|
|
4752
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4750
|
+
const kd = x`:root{--color-radial-inside:#ff2200;--color-radial-outside:#343232}#pagination{margin:20px 0;text-align:right;display:inline-block;vertical-align:middle;border-radius:.25rem}#pagination a,#pagination i{display:inline-block;vertical-align:middle;width:35px;color:#000;text-align:center;font-size:14px;font-weight:700;padding:.3rem 0 .2rem 0;user-select:none}#pagination a{margin:0 .1rem 0 .1rem;cursor:pointer;background:0 0;border:1px solid #e3e4e5;border-radius:2px}#pagination i{margin:0 .3rem 0 .3rem}#pagination a.current{border:.1rem solid #0d57c5;background:#0d57c5;color:#fff}#pagination a.chevron.disabled::before{color:#e3e4e5}.chevron::before{border-style:solid;border-width:1px 1px 0 0;content:'';display:inline-block;height:.45em;left:.1em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:top;width:.45em;margin-top:4px}.chevron.right:before{left:0;transform:rotate(45deg)}.chevron.bottom:before{top:0;transform:rotate(135deg)}.chevron.left:before{left:.1em;transform:rotate(-135deg)}#pagination a.chevron.left,#pagination a.chevron.right{margin:0}#pagination span a:first-child{margin-left:0}#pagination span a:last-child{margin-right:0}`;
|
|
4751
|
+
var Md = Object.defineProperty, Ud = Object.getOwnPropertyDescriptor, ke = (t, e, n, s) => {
|
|
4752
|
+
for (var r = s > 1 ? void 0 : s ? Ud(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
4753
4753
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
4754
|
-
return s && r &&
|
|
4754
|
+
return s && r && Md(e, n, r), r;
|
|
4755
4755
|
};
|
|
4756
4756
|
let ce = class extends E {
|
|
4757
4757
|
constructor() {
|
|
@@ -4759,7 +4759,7 @@ let ce = class extends E {
|
|
|
4759
4759
|
}
|
|
4760
4760
|
connectedCallback() {
|
|
4761
4761
|
super.connectedCallback();
|
|
4762
|
-
const t = new
|
|
4762
|
+
const t = new Pd(this.parent, this.data, this.step, this.startPage, this.itemsPerPage);
|
|
4763
4763
|
this._pagination.then((e) => {
|
|
4764
4764
|
t.Build(e);
|
|
4765
4765
|
});
|
|
@@ -4768,7 +4768,7 @@ let ce = class extends E {
|
|
|
4768
4768
|
return u`<div id="pagination"></div>`;
|
|
4769
4769
|
}
|
|
4770
4770
|
};
|
|
4771
|
-
ce.styles = [
|
|
4771
|
+
ce.styles = [kd];
|
|
4772
4772
|
ke([
|
|
4773
4773
|
l()
|
|
4774
4774
|
], ce.prototype, "data", 2);
|
|
@@ -4785,21 +4785,19 @@ ke([
|
|
|
4785
4785
|
l()
|
|
4786
4786
|
], ce.prototype, "parent", 2);
|
|
4787
4787
|
ke([
|
|
4788
|
-
|
|
4788
|
+
yi("#pagination")
|
|
4789
4789
|
], ce.prototype, "_pagination", 2);
|
|
4790
4790
|
ce = ke([
|
|
4791
4791
|
A("cpm-pagination")
|
|
4792
4792
|
], ce);
|
|
4793
|
-
var
|
|
4794
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4793
|
+
var Vd = Object.defineProperty, Hd = Object.getOwnPropertyDescriptor, ne = (t, e, n, s) => {
|
|
4794
|
+
for (var r = s > 1 ? void 0 : s ? Hd(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
4795
4795
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
4796
|
-
return s && r &&
|
|
4796
|
+
return s && r && Vd(e, n, r), r;
|
|
4797
4797
|
};
|
|
4798
4798
|
let F = class extends E {
|
|
4799
4799
|
constructor() {
|
|
4800
|
-
super(), this.allVendors = [], this.partneredVendors = [], this.nonPartneredVendor = [], this.unkownVendor = [], this.allUserVendors = []
|
|
4801
|
-
this.page = t.detail.page;
|
|
4802
|
-
});
|
|
4800
|
+
super(), this.allVendors = [], this.partneredVendors = [], this.nonPartneredVendor = [], this.unkownVendor = [], this.allUserVendors = [];
|
|
4803
4801
|
}
|
|
4804
4802
|
navigateToVendorPage(t) {
|
|
4805
4803
|
return g(this, null, function* () {
|
|
@@ -4835,10 +4833,10 @@ let F = class extends E {
|
|
|
4835
4833
|
let n = !1;
|
|
4836
4834
|
return e.ra_submitted != null && (n = this.isMoreThanAyear(new Date(e.ra_submitted))), u`<tr><td class="vdd_vendor_column">${e.vendor_name}</td><td class="vdd_ra_column">${e.ra_submitted ? e.ra_submitted : "------------"}</td><td class="vdd_doc_column"><div class="go_to_vendor_button" @click="${() => this.navigateToVendorPage(e)}">${e.has_not_reviewed_vendor_documents ? "Unreviewed (" + e.has_not_reviewed_vendor_documents + ")" : "View (" + e.vendor_doc_count + ")"}</div></td><td class="vdd_status_column">${e.vendor_type === "partnered" ? u`${e.is_subscribed ? u`<span class="vdd_chip vdd_chip_subscribed">Subscribed</span>` : u`<span class="vdd_chip vdd_chip_pending">Pending</span>`}` : u`<div></div>`} ${e.email_amount ? u`<span class="vdd_chip vdd_chip_invited">Invited</span>` : ""} ${n == !0 ? u`<span class="vdd_chip vdd_chip_review">Review Needed</span>` : ""}</td><td class="vdd_action_column"><div class="remove_vendor_button" @click="${() => this.removeVendor(e)}">Remove</div></td></tr>`;
|
|
4837
4835
|
}
|
|
4838
|
-
)}</tbody></table><div class="text-right">${this.isLoading ? null : u`<cpm-pagination .data="${this.allVendors}" .itemsPerPage="${10}" parent="all-vendors"></cpm-pagination>`}</div></div>`;
|
|
4836
|
+
)}</tbody></table><div class="text-right">${this.isLoading ? null : u`<cpm-pagination .data="${this.allVendors}" .itemsPerPage="${10}" .startPage="${this.page}" parent="all-vendors"></cpm-pagination>`}</div></div>`;
|
|
4839
4837
|
}
|
|
4840
4838
|
};
|
|
4841
|
-
F.styles = [q,
|
|
4839
|
+
F.styles = [q, Ld];
|
|
4842
4840
|
ne([
|
|
4843
4841
|
v({ context: ue }),
|
|
4844
4842
|
l()
|
|
@@ -4868,14 +4866,15 @@ ne([
|
|
|
4868
4866
|
l()
|
|
4869
4867
|
], F.prototype, "allUserVendors", 2);
|
|
4870
4868
|
ne([
|
|
4869
|
+
v({ context: Yr, subscribe: !0 }),
|
|
4871
4870
|
l()
|
|
4872
4871
|
], F.prototype, "page", 2);
|
|
4873
4872
|
F = ne([
|
|
4874
4873
|
A("vendor-subscribed-table")
|
|
4875
4874
|
], F);
|
|
4876
|
-
const
|
|
4877
|
-
var Yd = Object.defineProperty,
|
|
4878
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4875
|
+
const Fd = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iIzBENTdDNSIgY2xhc3M9ImJpIGJpLXBsdXMtbGciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOCAyYS41LjUgMCAwIDEgLjUuNXY1aDVhLjUuNSAwIDAgMSAwIDFoLTV2NWEuNS41IDAgMCAxLTEgMHYtNWgtNWEuNS41IDAgMCAxIDAtMWg1di01QS41LjUgMCAwIDEgOCAyWiIvPgo8L3N2Zz4=", jd = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgOEwxMSA0VjEyTDUgOFoiIGZpbGw9IiMwMTIzMzAiLz4KPC9zdmc+Cg==";
|
|
4876
|
+
var Yd = Object.defineProperty, Bd = Object.getOwnPropertyDescriptor, Jt = (t, e, n, s) => {
|
|
4877
|
+
for (var r = s > 1 ? void 0 : s ? Bd(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
4879
4878
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
4880
4879
|
return s && r && Yd(e, n, r), r;
|
|
4881
4880
|
};
|
|
@@ -4908,7 +4907,7 @@ let Ze = class extends E {
|
|
|
4908
4907
|
});
|
|
4909
4908
|
}
|
|
4910
4909
|
render() {
|
|
4911
|
-
return u`<section><div class="blue_container"></div>${this.currentPage === "vendors_page" ? u`<div class="add_vendor_container"><div id="vdd_add_vendor_btn" @click="${() => this.addVendor()}"><sl-icon src="${
|
|
4910
|
+
return u`<section><div class="blue_container"></div>${this.currentPage === "vendors_page" ? u`<div class="add_vendor_container"><div id="vdd_add_vendor_btn" @click="${() => this.addVendor()}"><sl-icon src="${Fd}"></sl-icon>Add Vendor</div></div>` : u`<div class="back_to_vendor_container"><div class="vendors_back_btn" @click="${() => this.goToMainPage()}"><sl-icon src="${jd}"></sl-icon>BACK</div></div>`}</section>`;
|
|
4912
4911
|
}
|
|
4913
4912
|
};
|
|
4914
4913
|
Ze.styles = [C, q];
|
|
@@ -4926,10 +4925,10 @@ Jt([
|
|
|
4926
4925
|
Ze = Jt([
|
|
4927
4926
|
A("vendor-header-bar")
|
|
4928
4927
|
], Ze);
|
|
4929
|
-
var
|
|
4930
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4928
|
+
var zd = Object.defineProperty, Gd = Object.getOwnPropertyDescriptor, W = (t, e, n, s) => {
|
|
4929
|
+
for (var r = s > 1 ? void 0 : s ? Gd(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
4931
4930
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
4932
|
-
return s && r &&
|
|
4931
|
+
return s && r && zd(e, n, r), r;
|
|
4933
4932
|
};
|
|
4934
4933
|
let k = class t extends E {
|
|
4935
4934
|
constructor() {
|
|
@@ -4975,7 +4974,7 @@ let k = class t extends E {
|
|
|
4975
4974
|
}, i = new CustomEvent("vendor-added", r);
|
|
4976
4975
|
this.resetSelectedVendor(), this.dispatchEvent(i);
|
|
4977
4976
|
} else
|
|
4978
|
-
|
|
4977
|
+
T("This was an error adding this vendor. Please try again.", this.shadowRoot);
|
|
4979
4978
|
});
|
|
4980
4979
|
}
|
|
4981
4980
|
submitPartneredVendor(e) {
|
|
@@ -5002,7 +5001,7 @@ let k = class t extends E {
|
|
|
5002
5001
|
return g(this, null, function* () {
|
|
5003
5002
|
e.preventDefault();
|
|
5004
5003
|
const n = new FormData(e.target);
|
|
5005
|
-
n.append("vendor_type", "unknown"), n.append("vendor_name", this.selectedVendor.vendor_name), (yield this.submitUnknownVendor(n)) ? this.resetSelectedVendor() :
|
|
5004
|
+
n.append("vendor_type", "unknown"), n.append("vendor_name", this.selectedVendor.vendor_name), (yield this.submitUnknownVendor(n)) ? this.resetSelectedVendor() : T("This was an error adding this vendor. Please try again.", this.shadowRoot);
|
|
5006
5005
|
});
|
|
5007
5006
|
}
|
|
5008
5007
|
submitUnknownVendor(e) {
|
|
@@ -5029,7 +5028,7 @@ let k = class t extends E {
|
|
|
5029
5028
|
}, i = new CustomEvent("vendor-added", r);
|
|
5030
5029
|
this.resetSelectedVendor(), this.dispatchEvent(i);
|
|
5031
5030
|
} else
|
|
5032
|
-
|
|
5031
|
+
T("This was an error adding this vendor. Please try again.", this.shadowRoot);
|
|
5033
5032
|
});
|
|
5034
5033
|
}
|
|
5035
5034
|
submitNonPartneredVendor(e) {
|
|
@@ -5106,10 +5105,10 @@ W([
|
|
|
5106
5105
|
k = W([
|
|
5107
5106
|
A("add-document-dialog")
|
|
5108
5107
|
], k);
|
|
5109
|
-
var
|
|
5110
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5108
|
+
var qd = Object.defineProperty, Wd = Object.getOwnPropertyDescriptor, Me = (t, e, n, s) => {
|
|
5109
|
+
for (var r = s > 1 ? void 0 : s ? Wd(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5111
5110
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
5112
|
-
return s && r &&
|
|
5111
|
+
return s && r && qd(e, n, r), r;
|
|
5113
5112
|
};
|
|
5114
5113
|
let le = class extends E {
|
|
5115
5114
|
constructor() {
|
|
@@ -5166,19 +5165,19 @@ Me([
|
|
|
5166
5165
|
l()
|
|
5167
5166
|
], le.prototype, "request_vendor_id", 2);
|
|
5168
5167
|
Me([
|
|
5169
|
-
v({ context:
|
|
5168
|
+
v({ context: jr, subscribe: !0 }),
|
|
5170
5169
|
l()
|
|
5171
5170
|
], le.prototype, "removeVendorDetails", 2);
|
|
5172
5171
|
Me([
|
|
5173
|
-
|
|
5172
|
+
R(".confirmation_cont")
|
|
5174
5173
|
], le.prototype, "confirmationCont", 2);
|
|
5175
5174
|
le = Me([
|
|
5176
5175
|
A("remove-vendor-dialog")
|
|
5177
5176
|
], le);
|
|
5178
|
-
var
|
|
5179
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5177
|
+
var Zd = Object.defineProperty, Kd = Object.getOwnPropertyDescriptor, yt = (t, e, n, s) => {
|
|
5178
|
+
for (var r = s > 1 ? void 0 : s ? Kd(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5180
5179
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
5181
|
-
return s && r &&
|
|
5180
|
+
return s && r && Zd(e, n, r), r;
|
|
5182
5181
|
};
|
|
5183
5182
|
let Pe = class extends E {
|
|
5184
5183
|
constructor() {
|
|
@@ -5219,26 +5218,26 @@ yt([
|
|
|
5219
5218
|
l()
|
|
5220
5219
|
], Pe.prototype, "error", 2);
|
|
5221
5220
|
yt([
|
|
5222
|
-
|
|
5221
|
+
j({ context: jr }),
|
|
5223
5222
|
l()
|
|
5224
5223
|
], Pe.prototype, "removeVendorDetails", 2);
|
|
5225
5224
|
yt([
|
|
5226
|
-
|
|
5225
|
+
R("#removeVendorDialog")
|
|
5227
5226
|
], Pe.prototype, "_removeVendorDialog", 2);
|
|
5228
5227
|
yt([
|
|
5229
|
-
|
|
5228
|
+
R("#addVendorDialog")
|
|
5230
5229
|
], Pe.prototype, "_addVendorDialog", 2);
|
|
5231
5230
|
Pe = yt([
|
|
5232
5231
|
A("vendors-page")
|
|
5233
5232
|
], Pe);
|
|
5234
|
-
const
|
|
5235
|
-
function
|
|
5236
|
-
return
|
|
5233
|
+
const Jd = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktcGx1cy1jaXJjbGUiIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgPHBhdGggZD0iTTggMTVBNyA3IDAgMSAxIDggMWE3IDcgMCAwIDEgMCAxNHptMCAxQTggOCAwIDEgMCA4IDBhOCA4IDAgMCAwIDAgMTZ6Ii8+CiAgPHBhdGggZD0iTTggNGEuNS41IDAgMCAxIC41LjV2M2gzYS41LjUgMCAwIDEgMCAxaC0zdjNhLjUuNSAwIDAgMS0xIDB2LTNoLTNhLjUuNSAwIDAgMSAwLTFoM3YtM0EuNS41IDAgMCAxIDggNHoiLz4KPC9zdmc+", gn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljc1IDExLjI1VjE0LjI1QzE1Ljc1IDE0LjY0NzggMTUuNTkyIDE1LjAyOTQgMTUuMzEwNyAxNS4zMTA3QzE1LjAyOTQgMTUuNTkyIDE0LjY0NzggMTUuNzUgMTQuMjUgMTUuNzVIMy43NUMzLjM1MjE4IDE1Ljc1IDIuOTcwNjQgMTUuNTkyIDIuNjg5MzQgMTUuMzEwN0MyLjQwODA0IDE1LjAyOTQgMi4yNSAxNC42NDc4IDIuMjUgMTQuMjVWMTEuMjUiIHN0cm9rZT0iIzBENTdDNSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTUuMjUgNy41TDkgMTEuMjVMMTIuNzUgNy41IiBzdHJva2U9IiMwRDU3QzUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik05IDExLjI1VjIuMjUiIHN0cm9rZT0iIzBENTdDNSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==", Xd = x`.vendor-documents-wrapper h3{font-size:16px;font-weight:700;margin:5px 0}.vendor-documents-header{background:#0123300A;padding:10px 16px}#addDocument{display:flex;box-shadow:rgba(0,0,0,.12) 0 1px 5px 0;border:0;background:0 0;padding:11px;border-radius:4px;cursor:pointer;margin-left:auto}#addDocument sl-icon{margin-right:5px}.vendor-documents-table{border-collapse:collapse;border:1px solid #0123300A;width:100%}.vendor-documents-table th{text-align:left;padding:16px 24px;font-size:12px;font-weght:700;color:#0000008A}.vendor-documents-table td{font-size:14px;padding:10px 24px}.vendor-documents-table td:last-child,.vendor-documents-table th:last-child{text-align:center}.vendor-documents-table td a{color:#0051ca}.vendor-documents-table td,.vendor-documents-table th{margin:0;border-bottom:1px solid #0123300A}.document-name{cursor:pointer}.vendor-docs-spinner{display:block;margin:20px;text-align:center}.download-icon{width:18px;height:18px}`;
|
|
5234
|
+
function Qd(t) {
|
|
5235
|
+
return ec(t);
|
|
5237
5236
|
}
|
|
5238
5237
|
function mn(t) {
|
|
5239
5238
|
return t.assignedSlot ? t.assignedSlot : t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
|
|
5240
5239
|
}
|
|
5241
|
-
function
|
|
5240
|
+
function ec(t) {
|
|
5242
5241
|
for (let e = t; e; e = mn(e))
|
|
5243
5242
|
if (e instanceof Element && getComputedStyle(e).display === "none")
|
|
5244
5243
|
return null;
|
|
@@ -5251,9 +5250,9 @@ function Qd(t) {
|
|
|
5251
5250
|
}
|
|
5252
5251
|
return null;
|
|
5253
5252
|
}
|
|
5254
|
-
function
|
|
5253
|
+
function tc(t) {
|
|
5255
5254
|
const e = t.tagName.toLowerCase();
|
|
5256
|
-
return t.getAttribute("tabindex") === "-1" || t.hasAttribute("disabled") || t.hasAttribute("aria-disabled") && t.getAttribute("aria-disabled") !== "false" || e === "input" && t.getAttribute("type") === "radio" && !t.hasAttribute("checked") || t.offsetParent === null &&
|
|
5255
|
+
return t.getAttribute("tabindex") === "-1" || t.hasAttribute("disabled") || t.hasAttribute("aria-disabled") && t.getAttribute("aria-disabled") !== "false" || e === "input" && t.getAttribute("type") === "radio" && !t.hasAttribute("checked") || t.offsetParent === null && Qd(t) === null || window.getComputedStyle(t).visibility === "hidden" ? !1 : (e === "audio" || e === "video") && t.hasAttribute("controls") || t.hasAttribute("tabindex") || t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false" ? !0 : ["button", "input", "select", "textarea", "a", "audio", "video", "summary"].includes(e);
|
|
5257
5256
|
}
|
|
5258
5257
|
function vn(t) {
|
|
5259
5258
|
const e = [];
|
|
@@ -5261,7 +5260,7 @@ function vn(t) {
|
|
|
5261
5260
|
if (s instanceof Element) {
|
|
5262
5261
|
if (s.hasAttribute("inert"))
|
|
5263
5262
|
return;
|
|
5264
|
-
!e.includes(s) &&
|
|
5263
|
+
!e.includes(s) && tc(s) && e.push(s);
|
|
5265
5264
|
const r = (i) => {
|
|
5266
5265
|
var o;
|
|
5267
5266
|
return ((o = i.getRootNode({ composed: !0 })) == null ? void 0 : o.host) !== t;
|
|
@@ -5274,10 +5273,10 @@ function vn(t) {
|
|
|
5274
5273
|
}
|
|
5275
5274
|
return n(t), e;
|
|
5276
5275
|
}
|
|
5277
|
-
function*
|
|
5278
|
-
t != null && (yield t, "shadowRoot" in t && t.shadowRoot && t.shadowRoot.mode !== "closed" && (yield* rs(
|
|
5276
|
+
function* Br(t = document.activeElement) {
|
|
5277
|
+
t != null && (yield t, "shadowRoot" in t && t.shadowRoot && t.shadowRoot.mode !== "closed" && (yield* rs(Br(t.shadowRoot.activeElement))));
|
|
5279
5278
|
}
|
|
5280
|
-
var st = [],
|
|
5279
|
+
var st = [], nc = class {
|
|
5281
5280
|
constructor(t) {
|
|
5282
5281
|
this.tabDirection = "forward", this.handleFocusIn = () => {
|
|
5283
5282
|
this.checkFocus();
|
|
@@ -5333,33 +5332,33 @@ var st = [], tc = class {
|
|
|
5333
5332
|
// Checks if the `startElement` is already focused. This is important if the modal already has an existing focus prior
|
|
5334
5333
|
// to the first tab key.
|
|
5335
5334
|
startElementAlreadyFocused(t) {
|
|
5336
|
-
for (const e of
|
|
5335
|
+
for (const e of Br())
|
|
5337
5336
|
if (t === e)
|
|
5338
5337
|
return !0;
|
|
5339
5338
|
return !1;
|
|
5340
5339
|
}
|
|
5341
5340
|
}, Mn = /* @__PURE__ */ new Set();
|
|
5342
|
-
function
|
|
5341
|
+
function sc() {
|
|
5343
5342
|
const t = document.documentElement.clientWidth;
|
|
5344
5343
|
return Math.abs(window.innerWidth - t);
|
|
5345
5344
|
}
|
|
5346
5345
|
function Ks(t) {
|
|
5347
5346
|
if (Mn.add(t), !document.body.classList.contains("sl-scroll-lock")) {
|
|
5348
|
-
const e =
|
|
5347
|
+
const e = sc();
|
|
5349
5348
|
document.body.classList.add("sl-scroll-lock"), document.body.style.setProperty("--sl-scroll-lock-size", `${e}px`);
|
|
5350
5349
|
}
|
|
5351
5350
|
}
|
|
5352
5351
|
function Js(t) {
|
|
5353
5352
|
Mn.delete(t), Mn.size === 0 && (document.body.classList.remove("sl-scroll-lock"), document.body.style.removeProperty("--sl-scroll-lock-size"));
|
|
5354
5353
|
}
|
|
5355
|
-
var
|
|
5354
|
+
var rc = x`${Zt}:host{--width:31rem;--header-spacing:var(--sl-spacing-large);--body-spacing:var(--sl-spacing-large);--footer-spacing:var(--sl-spacing-large);display:contents}.dialog{display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--sl-z-index-dialog)}.dialog__panel{display:flex;flex-direction:column;z-index:2;width:var(--width);max-width:calc(100% - var(--sl-spacing-2x-large));max-height:calc(100% - var(--sl-spacing-2x-large));background-color:var(--sl-panel-background-color);border-radius:var(--sl-border-radius-medium);box-shadow:var(--sl-shadow-x-large)}.dialog__panel:focus{outline:0}@media screen and (max-width:420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{display:flex;opacity:1}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{flex:1 1 auto;font:inherit;font-size:var(--sl-font-size-large);line-height:var(--sl-line-height-dense);padding:var(--header-spacing);margin:0}.dialog__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;gap:var(--sl-spacing-2x-small);padding:0 var(--header-spacing)}.dialog__header-actions ::slotted(sl-icon-button),.dialog__header-actions sl-icon-button{flex:0 0 auto;display:flex;align-items:center;font-size:var(--sl-font-size-medium)}.dialog__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--footer-spacing)}.dialog__footer ::slotted(sl-button:not(:first-of-type)){margin-inline-start:var(--sl-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--sl-overlay-background-color)}@media (forced-colors:active){.dialog__panel{border:solid 1px var(--sl-color-neutral-0)}}`, ic = x`${Zt}:host{display:inline-block;color:var(--sl-color-neutral-600)}.icon-button{flex:0 0 auto;display:flex;align-items:center;background:0 0;border:none;border-radius:var(--sl-border-radius-medium);font-size:inherit;color:inherit;padding:var(--sl-spacing-x-small);cursor:pointer;transition:var(--sl-transition-x-fast) color;-webkit-appearance:none}.icon-button:focus-visible:not(.icon-button--disabled),.icon-button:hover:not(.icon-button--disabled){color:var(--sl-color-primary-600)}.icon-button:active:not(.icon-button--disabled){color:var(--sl-color-primary-700)}.icon-button:focus{outline:0}.icon-button--disabled{opacity:.5;cursor:not-allowed}.icon-button:focus-visible{outline:var(--sl-focus-ring);outline-offset:var(--sl-focus-ring-offset)}.icon-button__icon{pointer-events:none}`;
|
|
5356
5355
|
/**
|
|
5357
5356
|
* @license
|
|
5358
5357
|
* Copyright 2017 Google LLC
|
|
5359
5358
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5360
5359
|
*/
|
|
5361
|
-
const
|
|
5362
|
-
let
|
|
5360
|
+
const oc = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ac = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
|
5361
|
+
let dc = class {
|
|
5363
5362
|
constructor(e) {
|
|
5364
5363
|
}
|
|
5365
5364
|
get _$AU() {
|
|
@@ -5380,10 +5379,10 @@ let ac = class {
|
|
|
5380
5379
|
* Copyright 2018 Google LLC
|
|
5381
5380
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5382
5381
|
*/
|
|
5383
|
-
const Kn =
|
|
5382
|
+
const Kn = ac(class extends dc {
|
|
5384
5383
|
constructor(t) {
|
|
5385
5384
|
var e;
|
|
5386
|
-
if (super(t), t.type !==
|
|
5385
|
+
if (super(t), t.type !== oc.ATTRIBUTE || t.name !== "class" || ((e = t.strings) === null || e === void 0 ? void 0 : e.length) > 2)
|
|
5387
5386
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
5388
5387
|
}
|
|
5389
5388
|
render(t) {
|
|
@@ -5405,7 +5404,7 @@ const Kn = oc(class extends ac {
|
|
|
5405
5404
|
const o = !!e[i];
|
|
5406
5405
|
o === this.it.has(i) || !((s = this.nt) === null || s === void 0) && s.has(i) || (o ? (r.add(i), this.it.add(i)) : (r.remove(i), this.it.delete(i)));
|
|
5407
5406
|
}
|
|
5408
|
-
return
|
|
5407
|
+
return $e;
|
|
5409
5408
|
}
|
|
5410
5409
|
});
|
|
5411
5410
|
/**
|
|
@@ -5413,21 +5412,21 @@ const Kn = oc(class extends ac {
|
|
|
5413
5412
|
* Copyright 2020 Google LLC
|
|
5414
5413
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5415
5414
|
*/
|
|
5416
|
-
const
|
|
5417
|
-
if ((t == null ? void 0 : t.r) ===
|
|
5415
|
+
const zr = Symbol.for(""), cc = (t) => {
|
|
5416
|
+
if ((t == null ? void 0 : t.r) === zr)
|
|
5418
5417
|
return t == null ? void 0 : t._$litStatic$;
|
|
5419
5418
|
}, Xs = (t, ...e) => ({ _$litStatic$: e.reduce((n, s, r) => n + ((i) => {
|
|
5420
5419
|
if (i._$litStatic$ !== void 0)
|
|
5421
5420
|
return i._$litStatic$;
|
|
5422
5421
|
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but
|
|
5423
5422
|
take care to ensure page security.`);
|
|
5424
|
-
})(s) + t[r + 1], t[0]), r:
|
|
5423
|
+
})(s) + t[r + 1], t[0]), r: zr }), Qs = /* @__PURE__ */ new Map(), lc = (t) => (e, ...n) => {
|
|
5425
5424
|
const s = n.length;
|
|
5426
5425
|
let r, i;
|
|
5427
5426
|
const o = [], a = [];
|
|
5428
5427
|
let d, c = 0, f = !1;
|
|
5429
5428
|
for (; c < s; ) {
|
|
5430
|
-
for (d = e[c]; c < s && (i = n[c], (r =
|
|
5429
|
+
for (d = e[c]; c < s && (i = n[c], (r = cc(i)) !== void 0); )
|
|
5431
5430
|
d += r + e[++c], f = !0;
|
|
5432
5431
|
c !== s && a.push(i), o.push(d), c++;
|
|
5433
5432
|
}
|
|
@@ -5436,14 +5435,14 @@ const Br = Symbol.for(""), dc = (t) => {
|
|
|
5436
5435
|
(e = Qs.get(p)) === void 0 && (o.raw = o, Qs.set(p, e = o)), n = a;
|
|
5437
5436
|
}
|
|
5438
5437
|
return t(e, ...n);
|
|
5439
|
-
},
|
|
5438
|
+
}, uc = lc(u);
|
|
5440
5439
|
/**
|
|
5441
5440
|
* @license
|
|
5442
5441
|
* Copyright 2018 Google LLC
|
|
5443
5442
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5444
5443
|
*/
|
|
5445
5444
|
const V = (t) => t != null ? t : w;
|
|
5446
|
-
var
|
|
5445
|
+
var L = class extends be {
|
|
5447
5446
|
constructor() {
|
|
5448
5447
|
super(...arguments), this.hasFocus = !1, this.label = "", this.disabled = !1;
|
|
5449
5448
|
}
|
|
@@ -5470,7 +5469,7 @@ var $ = class extends be {
|
|
|
5470
5469
|
}
|
|
5471
5470
|
render() {
|
|
5472
5471
|
const t = !!this.href, e = t ? Xs`a` : Xs`button`;
|
|
5473
|
-
return
|
|
5472
|
+
return uc`
|
|
5474
5473
|
<${e}
|
|
5475
5474
|
part="base"
|
|
5476
5475
|
class=${Kn({
|
|
@@ -5503,40 +5502,40 @@ var $ = class extends be {
|
|
|
5503
5502
|
`;
|
|
5504
5503
|
}
|
|
5505
5504
|
};
|
|
5506
|
-
|
|
5507
|
-
|
|
5505
|
+
L.styles = ic;
|
|
5506
|
+
L.dependencies = { "sl-icon": te };
|
|
5508
5507
|
_([
|
|
5509
|
-
|
|
5510
|
-
],
|
|
5508
|
+
R(".icon-button")
|
|
5509
|
+
], L.prototype, "button", 2);
|
|
5511
5510
|
_([
|
|
5512
5511
|
ar()
|
|
5513
|
-
],
|
|
5512
|
+
], L.prototype, "hasFocus", 2);
|
|
5514
5513
|
_([
|
|
5515
5514
|
l()
|
|
5516
|
-
],
|
|
5515
|
+
], L.prototype, "name", 2);
|
|
5517
5516
|
_([
|
|
5518
5517
|
l()
|
|
5519
|
-
],
|
|
5518
|
+
], L.prototype, "library", 2);
|
|
5520
5519
|
_([
|
|
5521
5520
|
l()
|
|
5522
|
-
],
|
|
5521
|
+
], L.prototype, "src", 2);
|
|
5523
5522
|
_([
|
|
5524
5523
|
l()
|
|
5525
|
-
],
|
|
5524
|
+
], L.prototype, "href", 2);
|
|
5526
5525
|
_([
|
|
5527
5526
|
l()
|
|
5528
|
-
],
|
|
5527
|
+
], L.prototype, "target", 2);
|
|
5529
5528
|
_([
|
|
5530
5529
|
l()
|
|
5531
|
-
],
|
|
5530
|
+
], L.prototype, "download", 2);
|
|
5532
5531
|
_([
|
|
5533
5532
|
l()
|
|
5534
|
-
],
|
|
5533
|
+
], L.prototype, "label", 2);
|
|
5535
5534
|
_([
|
|
5536
5535
|
l({ type: Boolean, reflect: !0 })
|
|
5537
|
-
],
|
|
5538
|
-
var
|
|
5539
|
-
function
|
|
5536
|
+
], L.prototype, "disabled", 2);
|
|
5537
|
+
var Gr = /* @__PURE__ */ new Map(), hc = /* @__PURE__ */ new WeakMap();
|
|
5538
|
+
function pc(t) {
|
|
5540
5539
|
return t != null ? t : { keyframes: [], options: { duration: 0 } };
|
|
5541
5540
|
}
|
|
5542
5541
|
function er(t, e) {
|
|
@@ -5546,13 +5545,13 @@ function er(t, e) {
|
|
|
5546
5545
|
} : t;
|
|
5547
5546
|
}
|
|
5548
5547
|
function Ue(t, e) {
|
|
5549
|
-
|
|
5548
|
+
Gr.set(t, pc(e));
|
|
5550
5549
|
}
|
|
5551
5550
|
function xe(t, e, n) {
|
|
5552
|
-
const s =
|
|
5551
|
+
const s = hc.get(t);
|
|
5553
5552
|
if (s != null && s[e])
|
|
5554
5553
|
return er(s[e], n.dir);
|
|
5555
|
-
const r =
|
|
5554
|
+
const r = Gr.get(e);
|
|
5556
5555
|
return r ? er(r, n.dir) : {
|
|
5557
5556
|
keyframes: [],
|
|
5558
5557
|
options: { duration: 0 }
|
|
@@ -5570,13 +5569,13 @@ function Ie(t, e, n) {
|
|
|
5570
5569
|
return new Promise((s) => {
|
|
5571
5570
|
if ((n == null ? void 0 : n.duration) === 1 / 0)
|
|
5572
5571
|
throw new Error("Promise-based animations must be finite.");
|
|
5573
|
-
const r = t.animate(e,
|
|
5574
|
-
duration:
|
|
5572
|
+
const r = t.animate(e, Td(Zn({}, n), {
|
|
5573
|
+
duration: fc() ? 0 : n.duration
|
|
5575
5574
|
}));
|
|
5576
5575
|
r.addEventListener("cancel", s, { once: !0 }), r.addEventListener("finish", s, { once: !0 });
|
|
5577
5576
|
});
|
|
5578
5577
|
}
|
|
5579
|
-
function
|
|
5578
|
+
function fc() {
|
|
5580
5579
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
5581
5580
|
}
|
|
5582
5581
|
function Fe(t) {
|
|
@@ -5587,24 +5586,24 @@ function Fe(t) {
|
|
|
5587
5586
|
}))
|
|
5588
5587
|
);
|
|
5589
5588
|
}
|
|
5590
|
-
const Un = /* @__PURE__ */ new Set(),
|
|
5591
|
-
let
|
|
5592
|
-
|
|
5589
|
+
const Un = /* @__PURE__ */ new Set(), gc = new MutationObserver(Zr), je = /* @__PURE__ */ new Map();
|
|
5590
|
+
let qr = document.documentElement.dir || "ltr", Wr = document.documentElement.lang || navigator.language, Oe;
|
|
5591
|
+
gc.observe(document.documentElement, {
|
|
5593
5592
|
attributes: !0,
|
|
5594
5593
|
attributeFilter: ["dir", "lang"]
|
|
5595
5594
|
});
|
|
5596
|
-
function
|
|
5595
|
+
function mc(...t) {
|
|
5597
5596
|
t.map((e) => {
|
|
5598
5597
|
const n = e.$code.toLowerCase();
|
|
5599
|
-
|
|
5600
|
-
}),
|
|
5598
|
+
je.has(n) ? je.set(n, Object.assign(Object.assign({}, je.get(n)), e)) : je.set(n, e), Oe || (Oe = e);
|
|
5599
|
+
}), Zr();
|
|
5601
5600
|
}
|
|
5602
|
-
function
|
|
5603
|
-
|
|
5601
|
+
function Zr() {
|
|
5602
|
+
qr = document.documentElement.dir || "ltr", Wr = document.documentElement.lang || navigator.language, [...Un.keys()].map((t) => {
|
|
5604
5603
|
typeof t.requestUpdate == "function" && t.requestUpdate();
|
|
5605
5604
|
});
|
|
5606
5605
|
}
|
|
5607
|
-
let
|
|
5606
|
+
let vc = class {
|
|
5608
5607
|
constructor(e) {
|
|
5609
5608
|
this.host = e, this.host.addController(this);
|
|
5610
5609
|
}
|
|
@@ -5615,14 +5614,14 @@ let mc = class {
|
|
|
5615
5614
|
Un.delete(this.host);
|
|
5616
5615
|
}
|
|
5617
5616
|
dir() {
|
|
5618
|
-
return `${this.host.dir ||
|
|
5617
|
+
return `${this.host.dir || qr}`.toLowerCase();
|
|
5619
5618
|
}
|
|
5620
5619
|
lang() {
|
|
5621
|
-
return `${this.host.lang ||
|
|
5620
|
+
return `${this.host.lang || Wr}`.toLowerCase();
|
|
5622
5621
|
}
|
|
5623
5622
|
getTranslationData(e) {
|
|
5624
5623
|
var n, s;
|
|
5625
|
-
const r = new Intl.Locale(e.replace(/_/g, "-")), i = r == null ? void 0 : r.language.toLowerCase(), o = (s = (n = r == null ? void 0 : r.region) === null || n === void 0 ? void 0 : n.toLowerCase()) !== null && s !== void 0 ? s : "", a =
|
|
5624
|
+
const r = new Intl.Locale(e.replace(/_/g, "-")), i = r == null ? void 0 : r.language.toLowerCase(), o = (s = (n = r == null ? void 0 : r.region) === null || n === void 0 ? void 0 : n.toLowerCase()) !== null && s !== void 0 ? s : "", a = je.get(`${i}-${o}`), d = je.get(i);
|
|
5626
5625
|
return { locale: r, language: i, region: o, primary: a, secondary: d };
|
|
5627
5626
|
}
|
|
5628
5627
|
exists(e, n) {
|
|
@@ -5653,8 +5652,8 @@ let mc = class {
|
|
|
5653
5652
|
return new Intl.RelativeTimeFormat(this.lang(), s).format(e, n);
|
|
5654
5653
|
}
|
|
5655
5654
|
};
|
|
5656
|
-
var
|
|
5657
|
-
},
|
|
5655
|
+
var Kr = class extends vc {
|
|
5656
|
+
}, Jr = class {
|
|
5658
5657
|
constructor(t, ...e) {
|
|
5659
5658
|
this.slotNames = [], this.handleSlotChange = (n) => {
|
|
5660
5659
|
const s = n.target;
|
|
@@ -5689,7 +5688,7 @@ var Zr = class extends mc {
|
|
|
5689
5688
|
}
|
|
5690
5689
|
}, se = class extends be {
|
|
5691
5690
|
constructor() {
|
|
5692
|
-
super(...arguments), this.hasSlotController = new
|
|
5691
|
+
super(...arguments), this.hasSlotController = new Jr(this, "footer"), this.localize = new Kr(this), this.modal = new nc(this), this.open = !1, this.label = "", this.noHeader = !1, this.handleDocumentKeyDown = (t) => {
|
|
5693
5692
|
t.key === "Escape" && this.modal.isActive() && this.open && (t.stopPropagation(), this.requestClose("keyboard"));
|
|
5694
5693
|
};
|
|
5695
5694
|
}
|
|
@@ -5767,18 +5766,18 @@ var Zr = class extends mc {
|
|
|
5767
5766
|
})}"><div part="overlay" class="dialog__overlay" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="dialog__panel" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${V(this.noHeader ? this.label : void 0)}" aria-labelledby="${V(this.noHeader ? void 0 : "title")}" tabindex="-1">${this.noHeader ? "" : u`<header part="header" class="dialog__header"><h2 part="title" class="dialog__title" id="title"><slot name="label">${this.label.length > 0 ? this.label : String.fromCharCode(65279)}</slot></h2><div part="header-actions" class="dialog__header-actions"><slot name="header-actions"></slot><sl-icon-button part="close-button" exportparts="base:close-button__base" class="dialog__close" name="x-lg" label="${this.localize.term("close")}" library="system" @click="${() => this.requestClose("close-button")}"></sl-icon-button></div></header>`} ${""}<slot part="body" class="dialog__body" tabindex="-1"></slot><footer part="footer" class="dialog__footer"><slot name="footer"></slot></footer></div></div>`;
|
|
5768
5767
|
}
|
|
5769
5768
|
};
|
|
5770
|
-
se.styles =
|
|
5769
|
+
se.styles = rc;
|
|
5771
5770
|
se.dependencies = {
|
|
5772
|
-
"sl-icon-button":
|
|
5771
|
+
"sl-icon-button": L
|
|
5773
5772
|
};
|
|
5774
5773
|
_([
|
|
5775
|
-
|
|
5774
|
+
R(".dialog")
|
|
5776
5775
|
], se.prototype, "dialog", 2);
|
|
5777
5776
|
_([
|
|
5778
|
-
|
|
5777
|
+
R(".dialog__panel")
|
|
5779
5778
|
], se.prototype, "panel", 2);
|
|
5780
5779
|
_([
|
|
5781
|
-
|
|
5780
|
+
R(".dialog__overlay")
|
|
5782
5781
|
], se.prototype, "overlay", 2);
|
|
5783
5782
|
_([
|
|
5784
5783
|
l({ type: Boolean, reflect: !0 })
|
|
@@ -5819,7 +5818,7 @@ Ue("dialog.overlay.hide", {
|
|
|
5819
5818
|
options: { duration: 250 }
|
|
5820
5819
|
});
|
|
5821
5820
|
se.define("sl-dialog");
|
|
5822
|
-
var
|
|
5821
|
+
var _c = {
|
|
5823
5822
|
$code: "en",
|
|
5824
5823
|
$name: "English",
|
|
5825
5824
|
$dir: "ltr",
|
|
@@ -5846,12 +5845,12 @@ var vc = {
|
|
|
5846
5845
|
slideNum: (t) => `Slide ${t}`,
|
|
5847
5846
|
toggleColorFormat: "Toggle color format"
|
|
5848
5847
|
};
|
|
5849
|
-
|
|
5850
|
-
const
|
|
5851
|
-
var
|
|
5852
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5848
|
+
mc(_c);
|
|
5849
|
+
const bc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmkteCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNC42NDYgNC42NDZhLjUuNSAwIDAgMSAuNzA4IDBMOCA3LjI5M2wyLjY0Ni0yLjY0N2EuNS41IDAgMCAxIC43MDguNzA4TDguNzA3IDhsMi42NDcgMi42NDZhLjUuNSAwIDAgMS0uNzA4LjcwOEw4IDguNzA3bC0yLjY0NiAyLjY0N2EuNS41IDAgMCAxLS43MDgtLjcwOEw3LjI5MyA4IDQuNjQ2IDUuMzU0YS41LjUgMCAwIDEgMC0uNzA4eiIvPgo8L3N2Zz4=";
|
|
5850
|
+
var yc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Jn = (t, e, n, s) => {
|
|
5851
|
+
for (var r = s > 1 ? void 0 : s ? Ec(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5853
5852
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
5854
|
-
return s && r &&
|
|
5853
|
+
return s && r && yc(e, n, r), r;
|
|
5855
5854
|
};
|
|
5856
5855
|
let ht = class extends E {
|
|
5857
5856
|
constructor() {
|
|
@@ -5862,7 +5861,7 @@ let ht = class extends E {
|
|
|
5862
5861
|
t.querySelector(".close-dialog-button").addEventListener("click", () => t.hide());
|
|
5863
5862
|
}
|
|
5864
5863
|
render() {
|
|
5865
|
-
return u`<sl-dialog label="" class="dialog" .style="--width: ${this.width}; --body-spacing:40px 32px;" no-header><div style="height:${this.height}"><button class="close-dialog-button"><sl-icon src="${
|
|
5864
|
+
return u`<sl-dialog label="" class="dialog" .style="--width: ${this.width}; --body-spacing:40px 32px;" no-header><div style="height:${this.height}"><button class="close-dialog-button"><sl-icon src="${bc}" class="close-dialog-button-icon"></sl-icon>Close</button><slot name="content"></slot></div></sl-dialog>`;
|
|
5866
5865
|
}
|
|
5867
5866
|
};
|
|
5868
5867
|
ht.styles = [
|
|
@@ -5878,13 +5877,13 @@ Jn([
|
|
|
5878
5877
|
ht = Jn([
|
|
5879
5878
|
A("cpm-modal")
|
|
5880
5879
|
], ht);
|
|
5881
|
-
const
|
|
5882
|
-
var
|
|
5883
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5880
|
+
const Ac = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANLSURBVHgBzZnNchJBEMe7JznLbgipysFU8gKG+ALBu6Xxpp70pJ5iLuotcPDzEnwCyRNELe+uL2ARX0AKD1YJuKTMLTBj97BLbch+7wb4VS0DOzPLn56v7gYhJR3brggQm0qqCiKUFYABo4vp09UCBS0F6hgEWCXTtCAFmKSxbduGBLGrlHrqERML+gEtVGgtCFkzTbMVt18sgY6wfUdYdhQ24gqNFNizT9hiVUhosSi0RVFUl80rh2HtMELcQW5WCxKgsF4sFvYC6/1u8pAOFR7R2wpMh+YCqhs05P3JCuHXeqDwK0xPHFN2DHKBCwJ5WMmsZZg+lV7v5GDy5rkh/tO1HwiBH2CGSKX2Vopm3f08Fkjzbp2Hlm6sw2zp03zccOfjeIjPhlDNKm6rfE1fGTGkFPvuB21Bth5N0p+QkeWl0VbZ/duHrJAVTbaitiBbD+aMgQS9/2qBKHAb5gxE3OVSsFcyBwvDD6PTYY9JTnVDToQSUBYIuAlzCvmZZEFMN7zultJutwPbcF2WrYfEbfIiWYcU8P70iwTcvnXTV2TbqeM2ibxiD+yls8BUft7Hz19gbW3NV6RXHLfhtikxkDZVBSlhITuOuKuOWMZ974rjMi0s0IYM3rJXpJc8xBF9WsUQ61wKmux+QsLEJVw0Lez2+kc0i3eiWkads64lmTDLJTmvKWT9tChBfaPlHCkwChb0vfkDckVBU6CEJswrEixRKumIP7t/lDMclrI27c1QaPk+qkOhUNBl2MkRhdvXfVYY5M1YXC7qFwH1oYL9sA6PHj+Bd2/fwPXsHjPcvXc/ss0ZyBqX2oLsuUZZ8dnzF1pknF8fBPfl57x89Tq8IWJj1UmLeIMmw3H7c01xJIXn3oCCeFfgOGhiK1LIV4MZw/maVU9S6VzgzvFonAVzWfB3TyaTfD0h2uWnnfrgoW2Wloytyfu+uRkK+e5QMc0N3DqleedXEepLdnp23Y2uLgse1lLRDEzxibDO3FFK9ZBXFuQPL8q9MHFMqEBmZdls8LKnhx1CTrDV/lH+xZskCiJRuPCbUiQLknI4iNspYml9GJzSqbXhk6jMRaAXDqrJ/hUdto4iQ77Gf0OgFgRNylpYciCPHackMf8BSLd3MTlxOZYAAAAASUVORK5CYII=";
|
|
5881
|
+
var wc = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, he = (t, e, n, s) => {
|
|
5882
|
+
for (var r = s > 1 ? void 0 : s ? Tc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5884
5883
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
5885
|
-
return s && r &&
|
|
5884
|
+
return s && r && wc(e, n, r), r;
|
|
5886
5885
|
};
|
|
5887
|
-
let
|
|
5886
|
+
let z = class extends E {
|
|
5888
5887
|
constructor() {
|
|
5889
5888
|
super(...arguments), this.isLoading = !1;
|
|
5890
5889
|
}
|
|
@@ -5939,44 +5938,44 @@ let B = class extends E {
|
|
|
5939
5938
|
}
|
|
5940
5939
|
render() {
|
|
5941
5940
|
var t, e, n, s, r, i, o, a;
|
|
5942
|
-
return this.createViewer(), u`<section><h1>${(t = this.document) == null ? void 0 : t.name}</h1><div class="download-section"><div class="download-btn"><a href="${this.downloadUrl}" target="_blank"><img src="${
|
|
5941
|
+
return this.createViewer(), u`<section><h1>${(t = this.document) == null ? void 0 : t.name}</h1><div class="download-section"><div class="download-btn"><a href="${this.downloadUrl}" target="_blank"><img src="${Ac}" class="page-back-button-icon"></a></div></div><div id="documentViewer"></div>${(e = this.document) != null && e.name && !((n = this.document) != null && n.name.endsWith(".pdf")) ? u`<div class="no-preview"><p>Preview Unavailable</p></div>` : null} ${(s = this.document) != null && s.dt_reviewed ? null : u`<div><textarea class="form-control" @change="${(d) => this.note = d.target.value}"></textarea></div>`} ${(r = this.document) != null && r.note && ((i = this.document) == null ? void 0 : i.note) !== "" ? u`<div class="document-review-note"><p><strong>Review Note:</strong></p><p></p><p>${(o = this.document) == null ? void 0 : o.note}</p></div>` : null}<div class="actions-wrapper">${this.type !== "vendor" ? u`<div class="button--clear remove-doc-btn" @click="${this.removeDoc}">${this.isLoading ? u`<page-spinner customStyle="width:15px;height:15px;"></page-spinner>` : "Remove"}</div>` : ""} ${(a = this.document) != null && a.dt_reviewed ? u`<span>Last Review: ${Be(this.document.dt_reviewed)}</span>` : u`<a href="${this.downloadUrl}" class="button--primary mark-reviewed-btn" target="_blank" @click="${this.markAsReviewed}">${this.isLoading ? u`<page-spinner customStyle="width:15px;height:15px;"></page-spinner>` : "Mark as Review"}</a>`}</div></section>`;
|
|
5943
5942
|
}
|
|
5944
5943
|
};
|
|
5945
|
-
|
|
5944
|
+
z.styles = [
|
|
5946
5945
|
C,
|
|
5947
5946
|
x`object{width:100%;height:500px}textarea{width:100%;min-width:100%;max-width:100%;height:150px;margin:20px 0}.document-review-note{margin:15px 0}.document-review-note p{margin:0}.download-doc-btn{margin-right:15px}.mark-reviewed-btn{display:inline-block}.dv-buttons-wrapper{margin-top:15px;padding-bottom:15px}.no-preview{width:100%;height:300px;border:1px solid #b5b5b5;border-radius:5px;position:relative}.no-preview p{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;font-size:30px;color:#b5b5b5}.download-section{display:flex;justify-content:end;padding-bottom:10px}`
|
|
5948
5947
|
];
|
|
5949
5948
|
he([
|
|
5950
5949
|
l()
|
|
5951
|
-
],
|
|
5950
|
+
], z.prototype, "document", 2);
|
|
5952
5951
|
he([
|
|
5953
5952
|
l()
|
|
5954
|
-
],
|
|
5953
|
+
], z.prototype, "url", 2);
|
|
5955
5954
|
he([
|
|
5956
5955
|
l()
|
|
5957
|
-
],
|
|
5956
|
+
], z.prototype, "downloadUrl", 2);
|
|
5958
5957
|
he([
|
|
5959
5958
|
l()
|
|
5960
|
-
],
|
|
5959
|
+
], z.prototype, "type", 2);
|
|
5961
5960
|
he([
|
|
5962
5961
|
l()
|
|
5963
|
-
],
|
|
5962
|
+
], z.prototype, "isLoading", 2);
|
|
5964
5963
|
he([
|
|
5965
5964
|
l()
|
|
5966
|
-
],
|
|
5965
|
+
], z.prototype, "note", 2);
|
|
5967
5966
|
he([
|
|
5968
5967
|
v({ context: G }),
|
|
5969
5968
|
l()
|
|
5970
|
-
],
|
|
5969
|
+
], z.prototype, "currentVendor", 2);
|
|
5971
5970
|
he([
|
|
5972
|
-
|
|
5973
|
-
],
|
|
5974
|
-
|
|
5971
|
+
R("#documentViewer")
|
|
5972
|
+
], z.prototype, "_documentViewer", 2);
|
|
5973
|
+
z = he([
|
|
5975
5974
|
A("view-document")
|
|
5976
|
-
],
|
|
5975
|
+
], z);
|
|
5977
5976
|
var Sc = x`${Zt}:host{display:contents;margin:0}.alert{position:relative;display:flex;align-items:stretch;background-color:var(--sl-panel-background-color);border:solid var(--sl-panel-border-width) var(--sl-panel-border-color);border-top-width:calc(var(--sl-panel-border-width) * 3);border-radius:var(--sl-border-radius-medium);font-family:var(--sl-font-sans);font-size:var(--sl-font-size-small);font-weight:var(--sl-font-weight-normal);line-height:1.6;color:var(--sl-color-neutral-700);margin:inherit}.alert:not(.alert--closable) .alert__close-button,.alert:not(.alert--has-icon) .alert__icon{display:none}.alert__icon{flex:0 0 auto;display:flex;align-items:center;font-size:var(--sl-font-size-large);padding-inline-start:var(--sl-spacing-large)}.alert--primary{border-top-color:var(--sl-color-primary-600)}.alert--primary .alert__icon{color:var(--sl-color-primary-600)}.alert--success{border-top-color:var(--sl-color-success-600)}.alert--success .alert__icon{color:var(--sl-color-success-600)}.alert--neutral{border-top-color:var(--sl-color-neutral-600)}.alert--neutral .alert__icon{color:var(--sl-color-neutral-600)}.alert--warning{border-top-color:var(--sl-color-warning-600)}.alert--warning .alert__icon{color:var(--sl-color-warning-600)}.alert--danger{border-top-color:var(--sl-color-danger-600)}.alert--danger .alert__icon{color:var(--sl-color-danger-600)}.alert__message{flex:1 1 auto;display:block;padding:var(--sl-spacing-large);overflow:hidden}.alert__close-button{flex:0 0 auto;display:flex;align-items:center;font-size:var(--sl-font-size-medium);padding-inline-end:var(--sl-spacing-medium)}`, Ve = Object.assign(document.createElement("div"), { className: "sl-toast-stack" }), re = class extends be {
|
|
5978
5977
|
constructor() {
|
|
5979
|
-
super(...arguments), this.hasSlotController = new
|
|
5978
|
+
super(...arguments), this.hasSlotController = new Jr(this, "icon", "suffix"), this.localize = new Kr(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = 1 / 0;
|
|
5980
5979
|
}
|
|
5981
5980
|
firstUpdated() {
|
|
5982
5981
|
this.base.hidden = !this.open;
|
|
@@ -6055,9 +6054,9 @@ var Sc = x`${Zt}:host{display:contents;margin:0}.alert{position:relative;display
|
|
|
6055
6054
|
}
|
|
6056
6055
|
};
|
|
6057
6056
|
re.styles = Sc;
|
|
6058
|
-
re.dependencies = { "sl-icon-button":
|
|
6057
|
+
re.dependencies = { "sl-icon-button": L };
|
|
6059
6058
|
_([
|
|
6060
|
-
|
|
6059
|
+
R('[part~="base"]')
|
|
6061
6060
|
], re.prototype, "base", 2);
|
|
6062
6061
|
_([
|
|
6063
6062
|
l({ type: Boolean, reflect: !0 })
|
|
@@ -6093,10 +6092,10 @@ Ue("alert.hide", {
|
|
|
6093
6092
|
});
|
|
6094
6093
|
re.define("sl-alert");
|
|
6095
6094
|
const Xn = x`.upload-files{text-align:center}.files-list{list-style-type:none;padding-left:0;margin-top:20px}.file-item{padding:5px;background:#e7e7e7;display:grid;grid-template-columns:auto 15px;font-size:12px;margin-top:2px}.file-remove{cursor:pointer}.drop-files{height:150px;border-radius:5px;border:1px solid #e4e4e4;margin-bottom:20px;position:relative}.drop-files #files{width:100%;height:100%;opacity:0}.drop-files span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:20px}`;
|
|
6096
|
-
var
|
|
6097
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6095
|
+
var xc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, Qe = (t, e, n, s) => {
|
|
6096
|
+
for (var r = s > 1 ? void 0 : s ? Ic(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6098
6097
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6099
|
-
return s && r &&
|
|
6098
|
+
return s && r && xc(e, n, r), r;
|
|
6100
6099
|
};
|
|
6101
6100
|
let ve = class extends E {
|
|
6102
6101
|
constructor() {
|
|
@@ -6129,7 +6128,7 @@ let ve = class extends E {
|
|
|
6129
6128
|
!0
|
|
6130
6129
|
);
|
|
6131
6130
|
if (n.error_message) {
|
|
6132
|
-
this.isLoading = !1, console.log("Error: ", n.error_message),
|
|
6131
|
+
this.isLoading = !1, console.log("Error: ", n.error_message), T(n.error_message, this.shadowRoot);
|
|
6133
6132
|
return;
|
|
6134
6133
|
}
|
|
6135
6134
|
const s = {
|
|
@@ -6159,15 +6158,15 @@ Qe([
|
|
|
6159
6158
|
l()
|
|
6160
6159
|
], ve.prototype, "api", 2);
|
|
6161
6160
|
Qe([
|
|
6162
|
-
|
|
6161
|
+
R("#files")
|
|
6163
6162
|
], ve.prototype, "_files", 2);
|
|
6164
6163
|
ve = Qe([
|
|
6165
6164
|
A("vendor-documents-upload")
|
|
6166
6165
|
], ve);
|
|
6167
|
-
var
|
|
6168
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6166
|
+
var Oc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, et = (t, e, n, s) => {
|
|
6167
|
+
for (var r = s > 1 ? void 0 : s ? Rc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6169
6168
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6170
|
-
return s && r &&
|
|
6169
|
+
return s && r && Oc(e, n, r), r;
|
|
6171
6170
|
};
|
|
6172
6171
|
let _e = class extends E {
|
|
6173
6172
|
constructor() {
|
|
@@ -6200,7 +6199,7 @@ let _e = class extends E {
|
|
|
6200
6199
|
!0
|
|
6201
6200
|
);
|
|
6202
6201
|
if (n.error_message) {
|
|
6203
|
-
this.isLoading = !1, console.log("Error: ", n.error_message),
|
|
6202
|
+
this.isLoading = !1, console.log("Error: ", n.error_message), T(n.error_message, this.shadowRoot);
|
|
6204
6203
|
return;
|
|
6205
6204
|
}
|
|
6206
6205
|
const s = {
|
|
@@ -6230,15 +6229,15 @@ et([
|
|
|
6230
6229
|
l()
|
|
6231
6230
|
], _e.prototype, "api", 2);
|
|
6232
6231
|
et([
|
|
6233
|
-
|
|
6232
|
+
R("#files")
|
|
6234
6233
|
], _e.prototype, "_files", 2);
|
|
6235
6234
|
_e = et([
|
|
6236
6235
|
A("other-vendor-documents-upload")
|
|
6237
6236
|
], _e);
|
|
6238
|
-
var
|
|
6239
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6237
|
+
var Nc = Object.defineProperty, Dc = Object.getOwnPropertyDescriptor, Xt = (t, e, n, s) => {
|
|
6238
|
+
for (var r = s > 1 ? void 0 : s ? Dc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6240
6239
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6241
|
-
return s && r &&
|
|
6240
|
+
return s && r && Nc(e, n, r), r;
|
|
6242
6241
|
};
|
|
6243
6242
|
let pt = class extends E {
|
|
6244
6243
|
render() {
|
|
@@ -6258,12 +6257,12 @@ Xt([
|
|
|
6258
6257
|
pt = Xt([
|
|
6259
6258
|
A("documents-upload")
|
|
6260
6259
|
], pt);
|
|
6261
|
-
var
|
|
6260
|
+
var $c = Object.defineProperty, Cc = Object.getOwnPropertyDescriptor, P = (t, e, n, s) => {
|
|
6262
6261
|
for (var r = s > 1 ? void 0 : s ? Cc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6263
6262
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6264
|
-
return s && r &&
|
|
6263
|
+
return s && r && $c(e, n, r), r;
|
|
6265
6264
|
};
|
|
6266
|
-
let
|
|
6265
|
+
let N = class t extends E {
|
|
6267
6266
|
constructor() {
|
|
6268
6267
|
super(), this.isLoading = !1, this.vendorDocuments = [], this.clientVendorDocuments = [], this.otherVendorDocuments = [], this.addEventListener("mark-document-reviewed", (e) => g(this, null, function* () {
|
|
6269
6268
|
const n = e.detail.type, s = e.detail.document, r = e.detail.note;
|
|
@@ -6303,7 +6302,7 @@ let R = class t extends E {
|
|
|
6303
6302
|
};
|
|
6304
6303
|
(yield this.removedDocument(s, n)) && (this.getOtherVendorDocuments(), this._viewDocumentDialog.shadowRoot.querySelector(".dialog").hide());
|
|
6305
6304
|
} else
|
|
6306
|
-
|
|
6305
|
+
T("Error occured while removing vendor documents!", this.shadowRoot);
|
|
6307
6306
|
}));
|
|
6308
6307
|
}
|
|
6309
6308
|
removedDocument(e, n) {
|
|
@@ -6312,7 +6311,7 @@ let R = class t extends E {
|
|
|
6312
6311
|
return;
|
|
6313
6312
|
this.isLoading = !0;
|
|
6314
6313
|
const s = yield this.api.executeRequest(`/vendor_due_diligence/${n}`, "POST", e);
|
|
6315
|
-
return this.isLoading = !1, s.error ?
|
|
6314
|
+
return this.isLoading = !1, s.error ? T(s.error, this.shadowRoot) : s.success;
|
|
6316
6315
|
});
|
|
6317
6316
|
}
|
|
6318
6317
|
connectedCallback() {
|
|
@@ -6321,7 +6320,7 @@ let R = class t extends E {
|
|
|
6321
6320
|
this.getVendorDocuments(),
|
|
6322
6321
|
this.getOtherVendorDocuments()
|
|
6323
6322
|
]).catch(() => {
|
|
6324
|
-
|
|
6323
|
+
T("Error occured while fetching vendor documents!", this.shadowRoot);
|
|
6325
6324
|
}), this.isLoading = !1;
|
|
6326
6325
|
});
|
|
6327
6326
|
}
|
|
@@ -6331,7 +6330,7 @@ let R = class t extends E {
|
|
|
6331
6330
|
return;
|
|
6332
6331
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/other_vendor_documents/${this.currentVendor.request_vendor_id}`);
|
|
6333
6332
|
if (e.error)
|
|
6334
|
-
return
|
|
6333
|
+
return T(e.error, this.shadowRoot);
|
|
6335
6334
|
e.payload && (this.otherVendorDocuments = [...e.payload.other_vendor_documents]);
|
|
6336
6335
|
});
|
|
6337
6336
|
}
|
|
@@ -6341,7 +6340,7 @@ let R = class t extends E {
|
|
|
6341
6340
|
return;
|
|
6342
6341
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/vendor_documents/${this.currentVendor.vendor_account_id}`, "GET");
|
|
6343
6342
|
if (e.error)
|
|
6344
|
-
return
|
|
6343
|
+
return T(e.error, this.shadowRoot);
|
|
6345
6344
|
e.payload && (this.vendorDocuments = [...e.payload.vendor_documents], this.clientVendorDocuments = [...e.payload.client_docs]);
|
|
6346
6345
|
});
|
|
6347
6346
|
}
|
|
@@ -6388,7 +6387,7 @@ let R = class t extends E {
|
|
|
6388
6387
|
this.isLoading = !0;
|
|
6389
6388
|
const r = yield this.api.executeRequest(`/vendor_due_diligence/${n}`, "POST", s);
|
|
6390
6389
|
if (this.isLoading = !1, r.error)
|
|
6391
|
-
return
|
|
6390
|
+
return T(r.error, this.shadowRoot);
|
|
6392
6391
|
this.updateItemAfterReviewed(e, s.id, r.payload.dt_reviewed);
|
|
6393
6392
|
const i = new CustomEvent("document-reviewed", {
|
|
6394
6393
|
bubbles: !0,
|
|
@@ -6438,60 +6437,60 @@ let R = class t extends E {
|
|
|
6438
6437
|
this._documentsUploadDialog.shadowRoot.querySelector(".dialog")[e ? "show" : "hide"]();
|
|
6439
6438
|
}
|
|
6440
6439
|
render() {
|
|
6441
|
-
return u`<div class="vendor-documents-wrapper"><h3>Documents</h3><div class="vendor-documents-header"><button id="addDocument" @click="${this.showDocumentsUploadDialog}"><sl-icon src="${
|
|
6440
|
+
return u`<div class="vendor-documents-wrapper"><h3>Documents</h3><div class="vendor-documents-header"><button id="addDocument" @click="${this.showDocumentsUploadDialog}"><sl-icon src="${Jd}"></sl-icon>ADD DOCUMENT</button></div><table class="vendor-documents-table"><thead><tr><th>Name</th><th>Added by</th><th>Status</th><th>Last Review</th><th>Download</th></tr></thead><tbody>${this.vendorDocuments.map((e) => u`<tr><td><span class="document-name" @click="${() => this.openDocument(e, Rt)}">${e.name}</span></td><td>${e.firm_name}</td><td>${e.dt_reviewed ? "Reviewed" : u`<a @click="${() => this.markReviewedVendorDocument(e.id, e.name, e.vendor_account_id)}" href="javascript:void(0)">Mark As Reviewed</a>`}</td><td>${e.dt_reviewed ? Be(e.dt_reviewed) : null}</td><td><a href="${this.getVendorDocumentDownloadURL(e, Rt)}" target="_blank"><sl-icon src="${gn}" class="download-icon"></sl-icon></a></td></tr>`)} ${this.clientVendorDocuments.map((e) => u`<tr><td><span class="document-name" @click="${() => this.openDocument(e, ot)}">${e.name}</span></td><td>${e.firm_name}</td><td>${e.dt_reviewed ? "Reviewed" : u`<a @click="${() => this.markReviewedClientVendorDocument(e.id, e.name, e.vendor_account_id)}" href="javascript:void(0)">Mark As Reviewed</a>`}</td><td>${e.dt_reviewed ? Be(e.dt_reviewed) : null}</td><td><a href="${this.getVendorDocumentDownloadURL(e, ot)}" target="_blank"><sl-icon src="${gn}" class="download-icon"></sl-icon></a></td></tr>`)} ${this.otherVendorDocuments.map((e) => u`<tr><td><span class="document-name" @click="${() => this.openDocument(e, fn)}">${e.name}</span></td><td>${e.firm_name}</td><td>${e.dt_reviewed ? "Reviewed" : u`<a @click="${() => this.markReviewedOtherVendorDocument(e.id, e.name, e.request_vendor_id)}" href="javascript:void(0)">Mark As Reviewed</a>`}</td><td>${e.dt_reviewed ? Be(e.dt_reviewed) : null}</td><td><a href="${this.getOtherVendorDocumentDownloadURL(e)}" target="_blank"><sl-icon src="${gn}" class="download-icon"></sl-icon></a></td></tr>`)}</tbody></table>${this.isLoading ? u`<page-spinner class="vendor-docs-spinner"></page-spinner>` : null}<cpm-modal id="viewDocumentDialog"><view-document .document="${this.activeDocument}" .url="${this.documentUrl}" .downloadUrl="${this.downloadUrl}" .type="${this.activeDocumentType}" slot="content"></view-document></cpm-modal><cpm-modal id="documentsUploadDialog"><documents-upload slot="content"></documents-upload></cpm-modal></div>`;
|
|
6442
6441
|
}
|
|
6443
6442
|
};
|
|
6444
|
-
|
|
6445
|
-
|
|
6443
|
+
N.styles = [q, Xd];
|
|
6444
|
+
P([
|
|
6446
6445
|
v({ context: ue }),
|
|
6447
6446
|
l()
|
|
6448
|
-
],
|
|
6449
|
-
|
|
6447
|
+
], N.prototype, "environment", 2);
|
|
6448
|
+
P([
|
|
6450
6449
|
v({ context: U }),
|
|
6451
6450
|
l()
|
|
6452
|
-
],
|
|
6453
|
-
|
|
6451
|
+
], N.prototype, "api", 2);
|
|
6452
|
+
P([
|
|
6454
6453
|
l()
|
|
6455
|
-
],
|
|
6456
|
-
|
|
6454
|
+
], N.prototype, "isLoading", 2);
|
|
6455
|
+
P([
|
|
6457
6456
|
l()
|
|
6458
|
-
],
|
|
6459
|
-
|
|
6457
|
+
], N.prototype, "vendorDocuments", 2);
|
|
6458
|
+
P([
|
|
6460
6459
|
l()
|
|
6461
|
-
],
|
|
6462
|
-
|
|
6460
|
+
], N.prototype, "clientVendorDocuments", 2);
|
|
6461
|
+
P([
|
|
6463
6462
|
l()
|
|
6464
|
-
],
|
|
6465
|
-
|
|
6463
|
+
], N.prototype, "otherVendorDocuments", 2);
|
|
6464
|
+
P([
|
|
6466
6465
|
l()
|
|
6467
|
-
],
|
|
6468
|
-
|
|
6466
|
+
], N.prototype, "activeDocument", 2);
|
|
6467
|
+
P([
|
|
6469
6468
|
l()
|
|
6470
|
-
],
|
|
6471
|
-
|
|
6469
|
+
], N.prototype, "activeDocumentType", 2);
|
|
6470
|
+
P([
|
|
6472
6471
|
l()
|
|
6473
|
-
],
|
|
6474
|
-
|
|
6472
|
+
], N.prototype, "documentUrl", 2);
|
|
6473
|
+
P([
|
|
6475
6474
|
l()
|
|
6476
|
-
],
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
],
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
],
|
|
6483
|
-
|
|
6475
|
+
], N.prototype, "downloadUrl", 2);
|
|
6476
|
+
P([
|
|
6477
|
+
R("#viewDocumentDialog")
|
|
6478
|
+
], N.prototype, "_viewDocumentDialog", 2);
|
|
6479
|
+
P([
|
|
6480
|
+
R("#documentsUploadDialog")
|
|
6481
|
+
], N.prototype, "_documentsUploadDialog", 2);
|
|
6482
|
+
P([
|
|
6484
6483
|
v({ context: G }),
|
|
6485
6484
|
l()
|
|
6486
|
-
],
|
|
6487
|
-
|
|
6485
|
+
], N.prototype, "currentVendor", 2);
|
|
6486
|
+
N = P([
|
|
6488
6487
|
A("vendor-documents-table")
|
|
6489
|
-
],
|
|
6490
|
-
const
|
|
6491
|
-
var
|
|
6492
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6488
|
+
], N);
|
|
6489
|
+
const Lc = x`.vendor-activity-wrapper{box-shadow:rgba(0,0,0,.12) 0 1px 5px 0;height:100%;box-sizing:border-box}.vendor-activity-wrapper table{width:100%;border-collapse:collapse}.vendor-activity-wrapper table th{padding:20px}.vendor-activity-wrapper table td:first-child,.vendor-activity-wrapper table th:first-child{word-break:break-all;width:250px;box-sizing:border-box}.vendor-activity-wrapper table td{padding:10px 20px}.vendor-activity-wrapper table tbody tr:nth-child(odd) td{background:#d9d9D92E}.vendor-activity-wrapper table thead th{border-bottom:1px solid #0000001F}.vendor-activity-wrapper h2{font-size:22px;line-height:33px;font-weight:400;margin:0}.send-reminder-btn{font-weight:400;line-height:20px;text-decoration:none;color:#0051ca}`;
|
|
6490
|
+
var Pc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, Qn = (t, e, n, s) => {
|
|
6491
|
+
for (var r = s > 1 ? void 0 : s ? kc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6493
6492
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6494
|
-
return s && r &&
|
|
6493
|
+
return s && r && Pc(e, n, r), r;
|
|
6495
6494
|
};
|
|
6496
6495
|
let ft = class extends E {
|
|
6497
6496
|
constructor() {
|
|
@@ -6502,7 +6501,7 @@ let ft = class extends E {
|
|
|
6502
6501
|
return u`<div class="vendor-activity-wrapper"><table><thead><tr><th class="text-left"><h2>Vendor History</h2></th><th class="text-right"></th></tr></thead><tbody>${this.isLoading ? u`<tr><td class="text-center" colspan="2"><page-spinner></page-spinner></td></tr>` : (t = this.vendorData) != null && t.activity_log_items && ((n = (e = this.vendorData) == null ? void 0 : e.activity_log_items) != null && n.length) ? (s = this.vendorData) == null ? void 0 : s.activity_log_items.map((r) => u`<tr><td>${r.activity_name.length > 23 ? `${r.activity_name.substring(0, 22)}...` : r.activity_name}</td><td>${r.activity_description}</td></tr>`) : u`<tr><td class="text-center" colspan="2">No activities available!</td></tr>`}</tbody></table></div>`;
|
|
6503
6502
|
}
|
|
6504
6503
|
};
|
|
6505
|
-
ft.styles = [q,
|
|
6504
|
+
ft.styles = [q, Lc];
|
|
6506
6505
|
Qn([
|
|
6507
6506
|
v({ context: Kt, subscribe: !0 }),
|
|
6508
6507
|
l()
|
|
@@ -6513,11 +6512,11 @@ Qn([
|
|
|
6513
6512
|
ft = Qn([
|
|
6514
6513
|
A("vendor-activity")
|
|
6515
6514
|
], ft);
|
|
6516
|
-
const
|
|
6517
|
-
var
|
|
6518
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6515
|
+
const Mc = x`.vendor-details-wrapper{box-shadow:rgba(0,0,0,.12) 0 1px 5px 0;padding:20px;height:100%;box-sizing:border-box}.vendor-details-wrapper h2{font-size:24px;font-weight:500;line-height:30px;margin:0}.last-assessment{margin:5px 0;font-size:16px}.details-description{font-size:16px}.details-btn{padding:8px 16px;border-radius:4px;border:none;outline:0;font-size:14px;font-weight:500;line-height:20px;text-align:center;cursor:pointer;text-transform:uppercase}.ca-btn{background-color:#f3170014;color:#f31700;display:block;margin-top:10px}.edit-btn{margin-top:10px;color:#007cc0}.rm-btn{margin-top:10px;color:#007cc0;background:0 0}`;
|
|
6516
|
+
var Uc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, Qt = (t, e, n, s) => {
|
|
6517
|
+
for (var r = s > 1 ? void 0 : s ? Vc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6519
6518
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6520
|
-
return s && r &&
|
|
6519
|
+
return s && r && Uc(e, n, r), r;
|
|
6521
6520
|
};
|
|
6522
6521
|
let Ke = class extends E {
|
|
6523
6522
|
constructor() {
|
|
@@ -6534,7 +6533,7 @@ let Ke = class extends E {
|
|
|
6534
6533
|
this.currentVendor.vendor_type == me ? (e += "remove_partner_vendor", n = y(h({}, n), { vendor_account_id: this.currentVendor.vendor_account_id })) : this.currentVendor.vendor_type == de ? (e += "remove_non_partnered_vendor", n = y(h({}, n), { request_vendor_id: this.currentVendor.request_vendor_id })) : (e += "remove_unknown_vendor", n = y(h({}, n), { unknown_vendor_id: this.currentVendor.unknown_vendor_id }));
|
|
6535
6534
|
const r = yield this.api.executeRequest(e, "POST", n);
|
|
6536
6535
|
if (!r || r.error_message) {
|
|
6537
|
-
|
|
6536
|
+
T((a = r == null ? void 0 : r.error_message) != null ? a : s, this.shadowRoot), this.isLoading = !1;
|
|
6538
6537
|
return;
|
|
6539
6538
|
}
|
|
6540
6539
|
const i = {
|
|
@@ -6569,11 +6568,11 @@ Qt([
|
|
|
6569
6568
|
Ke = Qt([
|
|
6570
6569
|
A("remove-vendor-popup")
|
|
6571
6570
|
], Ke);
|
|
6572
|
-
const
|
|
6573
|
-
var
|
|
6574
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6571
|
+
const Hc = x`textarea{min-height:150px;min-width:100%;max-width:100%}.upload-files #files{visibility:hidden;position:absolute}.edit-vendor-wrapper .files-list{margin-top:40px}.edit-vendor-wrapper .upload-files{text-align:left}.edit-vendor-wrapper .submit-btn{display:inline-block;margin-left:10px}.file-name a{color:#000}`;
|
|
6572
|
+
var Fc = Object.defineProperty, jc = Object.getOwnPropertyDescriptor, ye = (t, e, n, s) => {
|
|
6573
|
+
for (var r = s > 1 ? void 0 : s ? jc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6575
6574
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6576
|
-
return s && r &&
|
|
6575
|
+
return s && r && Fc(e, n, r), r;
|
|
6577
6576
|
};
|
|
6578
6577
|
let X = class extends E {
|
|
6579
6578
|
constructor() {
|
|
@@ -6612,7 +6611,7 @@ let X = class extends E {
|
|
|
6612
6611
|
!0
|
|
6613
6612
|
);
|
|
6614
6613
|
if (n.error_message) {
|
|
6615
|
-
this.isLoading = !1, console.log("Error: ", n.error_message),
|
|
6614
|
+
this.isLoading = !1, console.log("Error: ", n.error_message), T(n.error_message, this.shadowRoot);
|
|
6616
6615
|
return;
|
|
6617
6616
|
}
|
|
6618
6617
|
const s = {
|
|
@@ -6633,7 +6632,7 @@ let X = class extends E {
|
|
|
6633
6632
|
return;
|
|
6634
6633
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/delete_associated_doc/${this.currentVendor.request_vendor_id}/${t}`, "DELETE");
|
|
6635
6634
|
if (e.error_message) {
|
|
6636
|
-
|
|
6635
|
+
T(e.error_message, this.shadowRoot);
|
|
6637
6636
|
return;
|
|
6638
6637
|
}
|
|
6639
6638
|
this.currentVendor = y(h({}, this.currentVendor), {
|
|
@@ -6648,7 +6647,7 @@ let X = class extends E {
|
|
|
6648
6647
|
return u`<div class="edit-vendor-wrapper"><h2>${this.currentVendor.vendor_name} Information & Documents</h2><form @submit="${this.submitEdit}"><div><label>Description</label> <textarea class="form-control" required @keyup="${(t) => this.description = t.target.value}">${this.currentVendor.description}</textarea></div><ul class="files-list">${this.currentVendor.associated_docs && this.currentVendor.associated_docs.map((t) => u`<li class="file-item"><span class="file-name"><a href="${this.getFileLink(t)}" target="_blank">${t}</a> </span><span class="file-remove" @click="${() => this.removeFileFromAPI(t)}">X</span></li>`)} ${this.files.map((t) => u`<li class="file-item"><span class="file-name">${t.name}</span> <span class="file-remove" @click="${() => this.removeFile(t.name)}">X</span></li>`)}</ul><div class="upload-files actions-wrapper"><input type="file" id="files" @change="${this.uploadedFiles}" @drop="${this.filesOnDrag}" multiple="multiple"> <button class="button--default" @click="${this.browseFiles}">${this.files.length > 0 ? "Add another file" : "Add Files"}</button> <button class="button--primary submit-btn" type="submit" .disabled="${this.isLoading}">${this.isLoading ? u`<page-spinner customStyle="width:15px;height:15px"></page-spinner>` : "Submit Edit"}</button></div></form></div>`;
|
|
6649
6648
|
}
|
|
6650
6649
|
};
|
|
6651
|
-
X.styles = [C,
|
|
6650
|
+
X.styles = [C, Hc, Xn];
|
|
6652
6651
|
ye([
|
|
6653
6652
|
l()
|
|
6654
6653
|
], X.prototype, "files", 2);
|
|
@@ -6671,16 +6670,16 @@ ye([
|
|
|
6671
6670
|
l()
|
|
6672
6671
|
], X.prototype, "description", 2);
|
|
6673
6672
|
ye([
|
|
6674
|
-
|
|
6673
|
+
R("#files")
|
|
6675
6674
|
], X.prototype, "_files", 2);
|
|
6676
6675
|
X = ye([
|
|
6677
6676
|
A("edit-vendor")
|
|
6678
6677
|
], X);
|
|
6679
|
-
const Yc = x`.back-btn{color:#0051ca;text-decoration:none}.actions-wrapper button{display:inline-block;margin-right:10px}.page-row{margin:15px 0}.d-block{display:block}.page-9{text-align:center}.page-9 h3,.page-9 p{margin:0}.page-9 img{width:50px;height:50px}`,
|
|
6680
|
-
var
|
|
6681
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6678
|
+
const Yc = x`.back-btn{color:#0051ca;text-decoration:none}.actions-wrapper button{display:inline-block;margin-right:10px}.page-row{margin:15px 0}.d-block{display:block}.page-9{text-align:center}.page-9 h3,.page-9 p{margin:0}.page-9 img{width:50px;height:50px}`, Bc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hlY2siIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgPHBhdGggZmlsbD0iZ3JlZW4iIGQ9Ik0xMC45NyA0Ljk3YS43NS43NSAwIDAgMSAxLjA3IDEuMDVsLTMuOTkgNC45OWEuNzUuNzUgMCAwIDEtMS4wOC4wMkw0LjMyNCA4LjM4NGEuNzUuNzUgMCAxIDEgMS4wNi0xLjA2bDIuMDk0IDIuMDkzIDMuNDczLTQuNDI1YS4yNjcuMjY3IDAgMCAxIC4wMi0uMDIyeiIvPgo8L3N2Zz4=";
|
|
6679
|
+
var zc = Object.defineProperty, Gc = Object.getOwnPropertyDescriptor, Z = (t, e, n, s) => {
|
|
6680
|
+
for (var r = s > 1 ? void 0 : s ? Gc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6682
6681
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6683
|
-
return s && r &&
|
|
6682
|
+
return s && r && zc(e, n, r), r;
|
|
6684
6683
|
};
|
|
6685
6684
|
let M = class t extends E {
|
|
6686
6685
|
constructor() {
|
|
@@ -6753,8 +6752,8 @@ let M = class t extends E {
|
|
|
6753
6752
|
};
|
|
6754
6753
|
if (this.currentVendor.vendor_type === me ? s.vendor_account_id = this.currentVendor.vendor_account_id : s.request_vendor_id = this.currentVendor.request_vendor_id, n) {
|
|
6755
6754
|
for (let d in this.riskAssessmentItem)
|
|
6756
|
-
if (this.riskAssessmentItem[d] === null) {
|
|
6757
|
-
|
|
6755
|
+
if (this.riskAssessmentItem[d] === null || this.riskAssessmentItem[d] == "") {
|
|
6756
|
+
T("Error submitting Risk Assessment Progress. Make sure you have filled all inputs!", this.shadowRoot), this.isLoadingFinish = !1;
|
|
6758
6757
|
return;
|
|
6759
6758
|
}
|
|
6760
6759
|
}
|
|
@@ -6764,7 +6763,7 @@ let M = class t extends E {
|
|
|
6764
6763
|
s
|
|
6765
6764
|
);
|
|
6766
6765
|
if (n ? this.isLoadingFinish = !1 : this.isLoadingSave = !1, !i || i && i.error_message) {
|
|
6767
|
-
|
|
6766
|
+
T(n ? "Error submitting Risk Assessment Progress. Make sure you have filled all inputs!" : "Error saving Risk Assessment Progress", this.shadowRoot);
|
|
6768
6767
|
return;
|
|
6769
6768
|
}
|
|
6770
6769
|
i.payload && i.payload.risk_assessment && (this.pdf = `data:application/pdf;base64,${i.payload.risk_assessment}`), this.page = 9;
|
|
@@ -6852,7 +6851,7 @@ let M = class t extends E {
|
|
|
6852
6851
|
return u`<div class="page page-8"><div class="page-row"><label for="">Do you feel the services, value, and fees associated with the vendor are reasonable in relation to your contract terms with the vendor?</label> <label class="d-block" for="contract_terms_reasonable_yes"><input id="contract_terms_reasonable_yes" type="radio" name="contract_terms_reasonable" value="${1}" @change="${this.onChangeText}" .checked="${e == 1}"> Yes</label> <label class="d-block" for="contract_terms_reasonable_no"><input id="contract_terms_reasonable_no" type="radio" name="contract_terms_reasonable" value="${0}" @change="${this.onChangeText}" .checked="${e == 0}"> No</label> <textarea name="contract_terms_reasonable_text" class="form-control" @change="${this.onChangeText}">${n}</textarea><p><i>Hint: Where potential or actual conflicts of interest exist, which might benefit your firm or others to the detriment of your clients, you must evaluate the extent to which such potential or actual conflicts are eliminated or mitigated. Agreements must adequately describe the terms of service provided and, if applicable, address the protection of personal information and contain a confidentiality agreement.</i></p></div><div class="page-row"><p>In addition to completing this questionnaire, it is important to review all due diligence documents posted within the vendor's profile within the MyRIACompliance Vendor Due Diligence tool.</p></div></div>`;
|
|
6853
6852
|
}
|
|
6854
6853
|
page_9() {
|
|
6855
|
-
return u`<div class="page page-9"><h3>Vendor Risk Assessment Marked as Complete</h3><img src="${
|
|
6854
|
+
return u`<div class="page page-9"><h3>Vendor Risk Assessment Marked as Complete</h3><img src="${Bc}" class="page-back-button-icon"><p>The Compliance Log has been updated to reflect this.</p></div>`;
|
|
6856
6855
|
}
|
|
6857
6856
|
};
|
|
6858
6857
|
M.styles = [C, Yc];
|
|
@@ -6893,10 +6892,10 @@ Z([
|
|
|
6893
6892
|
M = Z([
|
|
6894
6893
|
A("risk-assessment")
|
|
6895
6894
|
], M);
|
|
6896
|
-
var
|
|
6897
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6895
|
+
var qc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor, Ee = (t, e, n, s) => {
|
|
6896
|
+
for (var r = s > 1 ? void 0 : s ? Wc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6898
6897
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6899
|
-
return s && r &&
|
|
6898
|
+
return s && r && qc(e, n, r), r;
|
|
6900
6899
|
};
|
|
6901
6900
|
let Q = class extends E {
|
|
6902
6901
|
constructor() {
|
|
@@ -6921,7 +6920,7 @@ let Q = class extends E {
|
|
|
6921
6920
|
}}" height="unset"><risk-assessment slot="content"></risk-assessment></cpm-modal>`}</div>`;
|
|
6922
6921
|
}
|
|
6923
6922
|
};
|
|
6924
|
-
Q.styles = [q,
|
|
6923
|
+
Q.styles = [q, Mc];
|
|
6925
6924
|
Ee([
|
|
6926
6925
|
v({ context: Kt, subscribe: !0 }),
|
|
6927
6926
|
l()
|
|
@@ -6937,21 +6936,21 @@ Ee([
|
|
|
6937
6936
|
l()
|
|
6938
6937
|
], Q.prototype, "currentVendor", 2);
|
|
6939
6938
|
Ee([
|
|
6940
|
-
|
|
6939
|
+
R("#removeVendorPopup")
|
|
6941
6940
|
], Q.prototype, "_removeVendorPopup", 2);
|
|
6942
6941
|
Ee([
|
|
6943
|
-
|
|
6942
|
+
R("#editVendorPopup")
|
|
6944
6943
|
], Q.prototype, "_editVendorPopup", 2);
|
|
6945
6944
|
Ee([
|
|
6946
|
-
|
|
6945
|
+
R("#riskAssessmentPopup")
|
|
6947
6946
|
], Q.prototype, "_riskAssessmentPopup", 2);
|
|
6948
6947
|
Q = Ee([
|
|
6949
6948
|
A("vendor-details")
|
|
6950
6949
|
], Q);
|
|
6951
|
-
var
|
|
6952
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6950
|
+
var Zc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, Ae = (t, e, n, s) => {
|
|
6951
|
+
for (var r = s > 1 ? void 0 : s ? Kc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6953
6952
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
6954
|
-
return s && r &&
|
|
6953
|
+
return s && r && Zc(e, n, r), r;
|
|
6955
6954
|
};
|
|
6956
6955
|
let ee = class t extends E {
|
|
6957
6956
|
constructor() {
|
|
@@ -6984,7 +6983,7 @@ let ee = class t extends E {
|
|
|
6984
6983
|
this.isLoading = !0;
|
|
6985
6984
|
const n = yield this.api.executeRequest(e, "GET");
|
|
6986
6985
|
if (n && n.error) {
|
|
6987
|
-
this.isLoading = !1,
|
|
6986
|
+
this.isLoading = !1, T(n.error, this.shadowRoot);
|
|
6988
6987
|
return;
|
|
6989
6988
|
}
|
|
6990
6989
|
if (n && n.payload && n.payload.activity_log_items) {
|
|
@@ -7027,7 +7026,7 @@ Ae([
|
|
|
7027
7026
|
l()
|
|
7028
7027
|
], ee.prototype, "currentVendor", 2);
|
|
7029
7028
|
Ae([
|
|
7030
|
-
|
|
7029
|
+
j({ context: Kt }),
|
|
7031
7030
|
l()
|
|
7032
7031
|
], ee.prototype, "vendorData", 2);
|
|
7033
7032
|
Ae([
|
|
@@ -7036,12 +7035,12 @@ Ae([
|
|
|
7036
7035
|
ee = Ae([
|
|
7037
7036
|
A("vendor-page")
|
|
7038
7037
|
], ee);
|
|
7039
|
-
var
|
|
7040
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
7038
|
+
var Jc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, $ = (t, e, n, s) => {
|
|
7039
|
+
for (var r = s > 1 ? void 0 : s ? Xc(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
7041
7040
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
7042
|
-
return s && r &&
|
|
7041
|
+
return s && r && Jc(e, n, r), r;
|
|
7043
7042
|
};
|
|
7044
|
-
let
|
|
7043
|
+
let O = class t extends E {
|
|
7045
7044
|
constructor() {
|
|
7046
7045
|
super(), this.environment = "", this.isLoading = !1, this.isLoadingMRCVendors = !1, this.allVendors = [], this.mrcVendors = [], this.currentPage = "", this.userVddFreeDetails = {
|
|
7047
7046
|
i_show_vdd_content_only: !1,
|
|
@@ -7052,7 +7051,7 @@ let N = class t extends E {
|
|
|
7052
7051
|
vendors_page: u`<vendors-page></vendors-page>`,
|
|
7053
7052
|
vendor_page: u`<vendor-page></vendor-page>`,
|
|
7054
7053
|
tos_page: u`<vendor-due-diligence-tos-page></vendor-due-diligence-tos-page>`
|
|
7055
|
-
}, this.addEventListener("back-to-main", () => g(this, null, function* () {
|
|
7054
|
+
}, this.page = 1, this.addEventListener("back-to-main", () => g(this, null, function* () {
|
|
7056
7055
|
this.currentPage = "vendors_page";
|
|
7057
7056
|
})), this.addEventListener("remove_vendors", (e) => g(this, null, function* () {
|
|
7058
7057
|
this.currentVendor = e.detail.vendorInfo;
|
|
@@ -7072,7 +7071,9 @@ let N = class t extends E {
|
|
|
7072
7071
|
this.markTosComplete();
|
|
7073
7072
|
})), this.addEventListener("remove-vendor-doc", (e) => g(this, null, function* () {
|
|
7074
7073
|
this.getVendors();
|
|
7075
|
-
}))
|
|
7074
|
+
})), document.addEventListener("page-changed-all-vendors", (e) => {
|
|
7075
|
+
this.page = e.detail.page;
|
|
7076
|
+
});
|
|
7076
7077
|
}
|
|
7077
7078
|
connectedCallback() {
|
|
7078
7079
|
return g(this, null, function* () {
|
|
@@ -7080,11 +7081,11 @@ let N = class t extends E {
|
|
|
7080
7081
|
we(t.prototype, this, "connectedCallback").call(this);
|
|
7081
7082
|
try {
|
|
7082
7083
|
const n = (e = this.environment) == null ? void 0 : e.trim().toLowerCase();
|
|
7083
|
-
this.api = new
|
|
7084
|
+
this.api = new cd(n, this.user), id(n, this.user);
|
|
7084
7085
|
const s = yield this.getVddFreeDetails();
|
|
7085
7086
|
this.userVddFreeDetails = s, !this.userVddFreeDetails.is_customer_terms_of_service_completed && this.userVddFreeDetails.is_vdd_free_type ? this.currentPage = "tos_page" : this.currentPage = "vendors_page", this.getVendors(), this.getMrcVendors();
|
|
7086
7087
|
} catch (n) {
|
|
7087
|
-
return
|
|
7088
|
+
return T("Error occured while initializing API!", this.shadowRoot);
|
|
7088
7089
|
}
|
|
7089
7090
|
});
|
|
7090
7091
|
}
|
|
@@ -7143,58 +7144,62 @@ let N = class t extends E {
|
|
|
7143
7144
|
return this.error ? u`<div>Error loading content</div>` : u`<div class="main_page_container"><h1>Vendor Due Diligence</h1>${this.pageLoading ? u`<page-spinner class="vendor-docs-spinner"></page-spinner>` : u`${this.pages[this.currentPage]}`}</div>`;
|
|
7144
7145
|
}
|
|
7145
7146
|
};
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7147
|
+
O.styles = [C, q];
|
|
7148
|
+
$([
|
|
7149
|
+
j({ context: ue }),
|
|
7149
7150
|
l()
|
|
7150
|
-
],
|
|
7151
|
-
|
|
7152
|
-
|
|
7151
|
+
], O.prototype, "environment", 2);
|
|
7152
|
+
$([
|
|
7153
|
+
j({ context: U }),
|
|
7153
7154
|
l()
|
|
7154
|
-
],
|
|
7155
|
-
|
|
7156
|
-
|
|
7155
|
+
], O.prototype, "api", 2);
|
|
7156
|
+
$([
|
|
7157
|
+
j({ context: Mr }),
|
|
7157
7158
|
l()
|
|
7158
|
-
],
|
|
7159
|
-
|
|
7160
|
-
|
|
7159
|
+
], O.prototype, "isLoading", 2);
|
|
7160
|
+
$([
|
|
7161
|
+
j({ context: Ur }),
|
|
7161
7162
|
l()
|
|
7162
|
-
],
|
|
7163
|
-
|
|
7164
|
-
|
|
7163
|
+
], O.prototype, "isLoadingMRCVendors", 2);
|
|
7164
|
+
$([
|
|
7165
|
+
j({ context: G }),
|
|
7165
7166
|
l()
|
|
7166
|
-
],
|
|
7167
|
-
|
|
7168
|
-
|
|
7167
|
+
], O.prototype, "currentVendor", 2);
|
|
7168
|
+
$([
|
|
7169
|
+
j({ context: Vr }),
|
|
7169
7170
|
l()
|
|
7170
|
-
],
|
|
7171
|
-
|
|
7172
|
-
|
|
7171
|
+
], O.prototype, "allVendors", 2);
|
|
7172
|
+
$([
|
|
7173
|
+
j({ context: Fr }),
|
|
7173
7174
|
l()
|
|
7174
|
-
],
|
|
7175
|
-
|
|
7176
|
-
|
|
7175
|
+
], O.prototype, "mrcVendors", 2);
|
|
7176
|
+
$([
|
|
7177
|
+
j({ context: Hr }),
|
|
7177
7178
|
l()
|
|
7178
|
-
],
|
|
7179
|
-
|
|
7180
|
-
|
|
7179
|
+
], O.prototype, "currentPage", 2);
|
|
7180
|
+
$([
|
|
7181
|
+
j({ context: xd }),
|
|
7181
7182
|
l()
|
|
7182
|
-
],
|
|
7183
|
-
|
|
7183
|
+
], O.prototype, "userVddFreeDetails", 2);
|
|
7184
|
+
$([
|
|
7184
7185
|
l()
|
|
7185
|
-
],
|
|
7186
|
-
|
|
7186
|
+
], O.prototype, "pageLoading", 2);
|
|
7187
|
+
$([
|
|
7187
7188
|
l()
|
|
7188
|
-
],
|
|
7189
|
-
|
|
7189
|
+
], O.prototype, "user", 2);
|
|
7190
|
+
$([
|
|
7190
7191
|
l()
|
|
7191
|
-
],
|
|
7192
|
-
|
|
7192
|
+
], O.prototype, "error", 2);
|
|
7193
|
+
$([
|
|
7193
7194
|
l()
|
|
7194
|
-
],
|
|
7195
|
-
|
|
7195
|
+
], O.prototype, "pages", 2);
|
|
7196
|
+
$([
|
|
7197
|
+
j({ context: Yr }),
|
|
7198
|
+
l()
|
|
7199
|
+
], O.prototype, "page", 2);
|
|
7200
|
+
O = $([
|
|
7196
7201
|
A("vendor-due-diligence-page")
|
|
7197
|
-
],
|
|
7202
|
+
], O);
|
|
7198
7203
|
export {
|
|
7199
|
-
|
|
7204
|
+
O as VendorDueDiligencePage
|
|
7200
7205
|
};
|