Release v23.045 (from 7a3ad012)
1
charting_library/ar-tv-locale.7a3ad012.js
Normal file
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#57a863" d="M0 0h18v6H0z"/><path fill="#f7f8fa" d="M0 6h18v6H0z"/><path fill="#3f4a56" d="M0 12h18v6H0z"/><path fill="#ed5565" d="M0 0h6v18H0z"/></svg>
|
||||
|
Before Width: | Height: | Size: 246 B |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M27.12 37.49a45.06 45.06 0 0 1 87.62 21.05 44.97 44.97 0 0 1-27.66 31.5 5.48 5.48 0 0 0-3.33 3.83 32.83 32.83 0 0 1-63.83-15.33 32.66 32.66 0 0 1 5.7-12.08 8.91 8.91 0 0 0 1.6-7.5 44.76 44.76 0 0 1-.1-21.47z" fill="#2A2E39"/><path d="M2.13 43.36c-.1-.92.48-1.8 1.35-2.1 54.66-19.07 67.37.28 106.52-10.4 1.21-.32 2.46.5 2.6 1.74l5 47.65c.09.88-.42 1.72-1.23 2.05-32.8 13.07-57.45-4.28-106.63 10.3a2.04 2.04 0 0 1-2.62-1.71L2.13 43.36z" fill="#1E222D"/><path d="M57.81 36.55a1 1 0 0 1 1.66-.1l8.56 11.3a1 1 0 0 0 .58.36l13.81 3.14a1 1 0 0 1 .6 1.55l-8.09 11.63a1 1 0 0 0-.17.66l1.28 14.1a1 1 0 0 1-1.28 1.05l-13.56-4.1a1 1 0 0 0-.68.04L47.5 81.77a1 1 0 0 1-1.4-.9l-.3-14.16a1 1 0 0 0-.24-.64L36.23 55.4a1 1 0 0 1 .42-1.6l13.38-4.66a1 1 0 0 0 .53-.43l7.25-12.17z" fill="#1848CC"/><path d="M53.02 68.86a8.26 8.26 0 0 1-1.8-.3 6.03 6.03 0 0 1-1.49-.53l.67-1.91c.37.25.84.46 1.43.64.6.18 1.12.26 1.58.24.8-.03 1.43-.27 1.9-.72.47-.46.7-1.02.67-1.7-.01-.42-.1-.8-.25-1.12a1.96 1.96 0 0 0-.6-.77c-.25-.2-.8-.48-1.68-.85l-1.23-.52A4.87 4.87 0 0 1 50 59.69a4.44 4.44 0 0 1-.69-2.35c-.03-.95.24-1.78.8-2.5a4 4 0 0 1 2.37-1.42l-.06-1.64 1.42-.05.06 1.57c1.47 0 2.47.24 3 .7l-.53 1.8c-.28-.2-.7-.37-1.27-.53a5 5 0 0 0-1.57-.23c-.7.03-1.24.24-1.63.65-.38.41-.56.93-.54 1.55.01.38.1.73.25 1.04.15.3.37.57.64.78.28.2.8.48 1.6.83l.95.4a5.6 5.6 0 0 1 2.4 1.76c.52.7.8 1.61.83 2.74.04.93-.27 1.75-.9 2.48a4.71 4.71 0 0 1-2.7 1.44l.09 2.37-1.43.05-.08-2.27zM64.43 68.2l-.4-11.5-2.99 2.01-.06-1.91c.76-.42 1.56-.99 2.4-1.7.85-.71 1.5-1.38 1.96-2.02l.62-.02.52 15.08-2.05.07z" fill="#D1D4DC"/><path d="M81.35 8.92c.22-.63 1.12-.63 1.34 0a12.61 12.61 0 0 0 7.28 7.54.7.7 0 0 1 0 1.3 12.61 12.61 0 0 0-7.28 7.54c-.22.62-1.12.62-1.34 0a12.61 12.61 0 0 0-7.29-7.54.7.7 0 0 1 0-1.3c3.4-1.32 6.07-4.1 7.29-7.54z" fill="#1E222D"/><path d="M80.4 8.59a1.71 1.71 0 0 1 3.23 0 11.61 11.61 0 0 0 6.7 6.94 1.7 1.7 0 0 1 0 3.16 11.61 11.61 0 0 0-6.7 6.94 1.71 1.71 0 0 1-3.22 0 11.61 11.61 0 0 0-6.7-6.94 1.7 1.7 0 0 1 0-3.16 11.61 11.61 0 0 0 6.7-6.94zm1.62 1.37a13.62 13.62 0 0 1-6.92 7.15 13.62 13.62 0 0 1 6.92 7.14 13.62 13.62 0 0 1 6.91-7.14c-3.12-1.41-5.6-4-6.91-7.15z" fill="#B2B5BE"/><path d="M29.26 62.5a77.08 77.08 0 0 0-16.3 3.92 1 1 0 0 1-.68-1.88 79.05 79.05 0 0 1 16.77-4.03 1 1 0 0 1 .21 2zM106.4 57.67c-3.9.76-10.96 1.6-16.7 1.3a1 1 0 0 0-.11 2c5.95.31 13.19-.55 17.2-1.34a1 1 0 0 0-.38-1.96z" fill="#B2B5BE"/><path d="M68.42 32.4c12.63 1.08 24.48 2.1 41.32-2.5 1.77-.48 3.65.7 3.85 2.6l5 47.65a2.98 2.98 0 0 1-1.85 3.08c-16 6.37-30.1 5.6-45.72 4.76l-1.88-.1c-16.38-.88-34.7-1.57-59.12 5.67A3.04 3.04 0 0 1 6.12 91L1.15 43.46c-.15-1.4.72-2.7 2.01-3.14 27.49-9.6 44.47-9.53 59.48-8.4 1.96.15 3.88.31 5.79.48zm-5.94 1.52c-14.8-1.12-31.5-1.2-58.67 8.28-.45.16-.73.61-.68 1.05L8.12 90.8c.06.6.7 1.04 1.33.85 24.76-7.34 43.36-6.63 59.8-5.75l1.73.1h.04c15.7.85 29.4 1.6 44.98-4.62.4-.16.65-.58.6-1.01l-5-47.66a1.05 1.05 0 0 0-1.33-.87c-17.2 4.7-29.4 3.65-42.04 2.56-1.9-.16-3.81-.33-5.75-.47z" fill="#B2B5BE"/><path d="M47.88 95.92a1 1 0 0 1 1 1v3.75a1 1 0 0 1-2 0v-3.75a1 1 0 0 1 1-1zM47.88 105.08a1 1 0 0 1 1 1v3.75a1 1 0 1 1-2 0v-3.75a1 1 0 0 1 1-1zM40.36 103.38a1 1 0 0 1 1-1h3.75a1 1 0 1 1 0 2h-3.75a1 1 0 0 1-1-1zM49.51 103.38a1 1 0 0 1 1-1h3.75a1 1 0 1 1 0 2h-3.75a1 1 0 0 1-1-1z" fill="#B2B5BE"/></svg>
|
||||
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="32" height="20" viewBox="0 0 32 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 3a3 3 0 0 1 3-3h26a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3z" fill="#fff"/><path d="M14.917 10.247v2.889H14V6h2.431a2.198 2.198 0 0 1 1.574.618 1.986 1.986 0 0 1 .658 1.506 1.977 1.977 0 0 1-.658 1.515c-.425.405-.95.607-1.574.607h-1.514zm0-3.368v2.49h1.537a1.212 1.212 0 0 0 .907-.368 1.215 1.215 0 0 0 0-1.744 1.195 1.195 0 0 0-.907-.379h-1.537v.001zM20.775 8.095c.678 0 1.212.18 1.604.543.392.362.588.858.588 1.49v3.008h-.877v-.677h-.04c-.38.558-.884.837-1.514.837-.538 0-.988-.16-1.35-.479a1.527 1.527 0 0 1-.543-1.195c0-.505.19-.907.573-1.206.381-.298.891-.447 1.529-.448.544 0 .992.1 1.345.299v-.21a1.042 1.042 0 0 0-.379-.811 1.298 1.298 0 0 0-.885-.334c-.512 0-.917.216-1.215.648l-.808-.509c.444-.637 1.102-.956 1.972-.956zm-1.186 3.547a.732.732 0 0 0 .304.598c.203.159.454.243.712.239.387-.001.758-.155 1.031-.428.304-.286.456-.622.456-1.007-.286-.227-.684-.341-1.196-.341-.372 0-.683.09-.931.27-.251.181-.376.403-.376.669zM28 8.254l-3.06 7.035h-.947l1.136-2.462-2.013-4.573h.997l1.454 3.508h.02l1.415-3.508H28z" fill="#5D606B"/><path d="M11.77 10.054c0-.27-.022-.54-.068-.806H7.964v1.527h2.14a1.834 1.834 0 0 1-.79 1.204v.991h1.277c.748-.69 1.179-1.71 1.179-2.916z" fill="#4285F4"/><path d="M7.963 13.927c1.07 0 1.97-.351 2.627-.957l-1.278-.99c-.355.24-.813.378-1.349.378-1.034 0-1.911-.697-2.225-1.636H4.422v1.021a3.964 3.964 0 0 0 3.541 2.184z" fill="#34A853"/><path d="M5.74 10.722a2.375 2.375 0 0 1 0-1.517v-1.02H4.422a3.964 3.964 0 0 0 0 3.559l1.316-1.022z" fill="#FBBC04"/><path d="M7.963 7.57a2.152 2.152 0 0 1 1.52.594l1.132-1.132A3.809 3.809 0 0 0 7.963 6a3.963 3.963 0 0 0-3.541 2.184l1.316 1.021C6.052 8.266 6.93 7.57 7.963 7.57z" fill="#EA4335"/><path d="M3 1h26v-2H3v2zm28 2v14h2V3h-2zm-2 16H3v2h26v-2zM1 17V3h-2v14h2zm2 2a2 2 0 0 1-2-2h-2a4 4 0 0 0 4 4v-2zm28-2a2 2 0 0 1-2 2v2a4 4 0 0 0 4-4h-2zM29 1a2 2 0 0 1 2 2h2a4 4 0 0 0-4-4v2zM3-1a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2v-2z" fill="#5D606B"/></svg>
|
||||
|
Before Width: | Height: | Size: 2.0 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#ed5565" d="M0 0h18v18H0z"/><path fill="#fc0" d="M0 5h18v8H0zm4 6a2 2 0 0 0 2-2V7H2v2a2 2 0 0 0 2 2z"/></svg>
|
||||
|
Before Width: | Height: | Size: 204 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#57a863" d="m0 0h18v18H0z"/><path fill="#4758A9" d="m8 4a5 5 0 1 0 2 0"/><path fill="#fff" d="m4.7 7.6c1.9-.3 3.3-.3 4.3 0s2.6 1.2 5 2.8l-.7 1.5a19.5 19.5 0 0 0-5-2.9 8.3 8.3 0 0 0-4.4 0l.8-1.4z"/><path fill="#fc0" d="m-2.5 9L9 1.8 20.5 9 9 16.2zm7.1 0a4.4 4.4 0 0 0 8.8 0 4.4 4.4 0 0 0-8.8 0z"/></svg>
|
||||
|
Before Width: | Height: | Size: 397 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#3f4a56" d="M0 13l5-4-5-4z"/><path fill="#4758a9" d="M11.5 12l-9 6H18v-6z"/><path fill="#ed5565" d="M2.5 0H18v6h-6.5z"/><path fill="#57a863" d="M0 4V0h1l10 7h7v4h-7L1 18H0v-4l6-5z"/><path fill="#fff" d="M1 18h3l7.5-5.5H18V11h-7L1 18zM1 0h3l7.5 5.5H18V7h-7L1 0z"/><path fill="#fc0" d="M0 2.5V5l5 4-5 4v2.5L7.5 9z"/></svg>
|
||||
|
Before Width: | Height: | Size: 415 B |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M23.69 95.29c12.59 16.04 41.73 14.18 65.08-4.15 23.36-18.33 32.08-46.2 19.5-62.24-12.6-16.04-41.74-14.18-65.1 4.15-11.2 8.8-19.05 19.8-22.78 30.63-.65 1.9-2.53 3.08-4.5 3.39-1.94.3-3.8 1.07-5.4 2.34C5.14 73.6 4.44 81.6 8.9 87.27a13.4 13.4 0 0 0 9.9 5.2c1.7.07 3.37.8 4.38 2.17l.5.65z" fill="#F0F3FA"/><path fill-rule="evenodd" clip-rule="evenodd" d="M93.59 23.55H35.9v12.82H21.16v60.12h72.43V23.55z" fill="#fff"/><path d="M31.58 37a1 1 0 1 0 0-2v2zM21 36v-1a1 1 0 0 0-1 1h1zm0 49.97h-1 1zM36 24v-1a1 1 0 0 0-1 1h1zm57 0h1a1 1 0 0 0-1-1v1zm0 61.97h-1V86l1-.02zM31.58 35H21v2h10.58v-2zM20 36v49.97h2V36h-2zm0 49.97c0 2.77.56 5.54 1.98 7.62 1.46 2.14 3.76 3.48 6.96 3.41l-.04-2c-2.54.06-4.2-.96-5.27-2.53-1.1-1.63-1.63-3.95-1.63-6.5h-2zM28.94 97a7.25 7.25 0 0 0 6.56-4.05c1.16-2.18 1.5-4.84 1.5-6.98h-2c0 1.98-.33 4.27-1.27 6.04A5.26 5.26 0 0 1 28.9 95l.04 2zM37 85.97V24h-2v61.97h2zM36 25h57v-2H36v2zm56-1v61.97h2V24h-2zm0 61.99a11.7 11.7 0 0 1-1.5 5.8A6.1 6.1 0 0 1 85 95v2a8.09 8.09 0 0 0 7.24-4.2A13.7 13.7 0 0 0 94 85.96L92 86zM84.99 95h-.08H84.67 28.92v2H85v-2z" fill="#1E222D"/><path d="M47 39h22M47 48h37M47 55h37M47 62h37M47 69h37" stroke="#1E222D" stroke-width="2" stroke-linecap="round"/><rect x="47" y="77" width="37" height="13" rx="1" stroke="#1E222D" stroke-width="2" stroke-linecap="round"/><path d="M28 44v42" stroke="#1E222D" stroke-width="2" stroke-linecap="round"/><circle cx="90.21" cy="24.85" r="11.52" fill="url(#b)"/><path d="M102.84 24.56a12.52 12.52 0 1 1-23.85-5.35" stroke="#F0F3FA" stroke-width="2"/></g><defs><linearGradient id="b" x1="90.21" y1="13.33" x2="90.21" y2="36.37" gradientUnits="userSpaceOnUse"><stop stop-color="#2962FF"/><stop offset="1" stop-color="#2962FF"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h120v120H0z"/></clipPath></defs></svg>
|
||||
|
Before Width: | Height: | Size: 1.9 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#f7f8fa" d="M0 0h18v18H0z"/><path fill="#57a863" d="M12 0h6v18h-6V0zM0 0h6v18H0V0z"/></svg>
|
||||
|
Before Width: | Height: | Size: 186 B |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M60.037 25h35.96a8 8 0 0 1 8 8v71a8 8 0 0 1-8 8h-35.96V25z" fill="#1848CC"/><path d="M82.884 31.668l-.847.532-.848-.532a1 1 0 0 1 1.695 0z" fill="#D1D4DC"/><path fill-rule="evenodd" clip-rule="evenodd" d="M81.19 31.668l-.007.011-.019.03-.072.116-.271.44a137.062 137.062 0 0 0-3.89 6.78c-1.063 1.989-2.137 4.143-2.947 6.105-.791 1.918-1.395 3.799-1.395 5.183 0 4.867 3.68 8.875 8.411 9.392V64a1 1 0 1 0 2 0v-4.268c4.765-.482 8.484-4.506 8.484-9.4 0-1.383-.603-3.264-1.395-5.182-.81-1.962-1.883-4.116-2.947-6.105a137.216 137.216 0 0 0-4.16-7.22l-.073-.116-.018-.03-.007-.01-.847.53-.848-.53zm8.294 18.665A7.45 7.45 0 0 1 83 57.719V48a1 1 0 1 0-2 0v9.71a7.45 7.45 0 0 1-6.411-7.377c0-.948.452-2.5 1.244-4.42.774-1.875 1.813-3.963 2.862-5.925a135.107 135.107 0 0 1 3.342-5.87 134.967 134.967 0 0 1 3.342 5.871c1.048 1.96 2.087 4.049 2.861 5.924.792 1.92 1.245 3.472 1.245 4.42z" fill="#D1D4DC"/><path d="M83 74a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0v-5zM83 97a1 1 0 1 0-2 0v5a1 1 0 0 0 2 0v-5zM67 88a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1zM91 87a1 1 0 1 0 0 2h5a1 1 0 1 0 0-2h-5zM71.278 77.557a1 1 0 0 1 1.415 0l3.547 3.547a1 1 0 0 1-1.414 1.414l-3.548-3.547a1 1 0 0 1 0-1.414zM89.248 94.111a1 1 0 1 0-1.415 1.414l3.548 3.548a1 1 0 1 0 1.414-1.414l-3.547-3.548zM92.795 77.556a1 1 0 0 1 0 1.414l-3.547 3.548a1 1 0 0 1-1.414-1.414l3.547-3.548a1 1 0 0 1 1.414 0zM76.24 95.525a1 1 0 0 0-1.414-1.414l-3.547 3.547a1 1 0 0 0 1.414 1.415l3.547-3.548z" fill="#D1D4DC"/><path fill-rule="evenodd" clip-rule="evenodd" d="M76 88a6 6 0 1 1 12 0 6 6 0 0 1-12 0zm6-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8z" fill="#D1D4DC"/><path d="M40 32a1 1 0 0 1 1 1v5.05l3.358-3.358a1 1 0 0 1 1.414 1.414L41 40.88v5.001l6.899-6.899a1 1 0 1 1 1.414 1.415L42.708 47h4.74l4.418-4.419a1 1 0 0 1 1.415 1.414L50.276 47H55a1 1 0 1 1 0 2h-5.355l3.636 3.635a1 1 0 0 1-1.415 1.414L46.817 49h-4.74l7.236 7.236a1 1 0 1 1-1.415 1.414L41 50.752v5.156l4.772 4.773a1 1 0 0 1-1.414 1.414L41 58.737V63a1 1 0 1 1-2 0v-4.187l-3.282 3.282a1 1 0 0 1-1.414-1.414L39 55.985v-5.276l-6.942 6.941a1 1 0 1 1-1.414-1.414L37.88 49h-4.74l-5.05 5.05a1 1 0 0 1-1.414-1.415L30.312 49H25a1 1 0 1 1 0-2h4.681l-3.005-3.005a1 1 0 0 1 1.415-1.414L32.51 47h4.738l-6.604-6.604a1 1 0 0 1 1.414-1.415L39 45.923v-5.12l-4.696-4.697a1 1 0 0 1 1.414-1.414L39 37.974V33a1 1 0 0 1 1-1z" fill="#D1D4DC"/><path fill-rule="evenodd" clip-rule="evenodd" d="M39.84 71.373a1 1 0 0 1 .807.41c1.03 1.414 1.603 3.706 1.932 5.819.169 1.08.281 2.165.352 3.151 1.44-1.28 3.599-2.516 6.382-2.622a1 1 0 0 1 1.037.98c.095 4.81-1.02 8.192-2.345 10.347.275-.05.555-.097.837-.138 1.629-.237 3.503-.316 4.966.192a1 1 0 0 1 .595 1.33c-2.942 7.043-9.55 9.103-13.403 9.354V104a1 1 0 0 1-2 0v-3.787c-3.795-.155-10.698-2.128-13.724-9.371a1 1 0 0 1 .595-1.33c1.463-.508 3.337-.429 4.965-.192.283.04.563.087.838.138-1.325-2.155-2.44-5.536-2.346-10.347a1 1 0 0 1 1.038-.98c2.783.106 4.942 1.342 6.382 2.622.07-.986.183-2.072.351-3.151.33-2.113.902-4.405 1.932-5.818a1 1 0 0 1 .808-.411zm12.199 19.801c-2.715 5.158-7.889 6.788-11.039 7.02V88a1 1 0 1 0-2 0v10.213c-3.108-.142-8.55-1.701-11.36-7.039.85-.084 1.86-.027 2.909.125 1.525.221 2.978.621 3.833.916a1 1 0 0 0 .816-1.817c-1.043-.586-3.727-3.506-3.87-10.16 2.93.508 4.852 2.569 5.461 3.596a1 1 0 0 0 1.86-.51c0-1.282.107-3.367.426-5.414.19-1.213.444-2.346.764-3.277.32.931.575 2.064.764 3.277.32 2.047.426 4.132.426 5.413a1 1 0 0 0 1.86.51c.61-1.026 2.532-3.087 5.461-3.594-.142 6.653-2.826 9.573-3.87 10.159a1 1 0 0 0 .816 1.817 22.516 22.516 0 0 1 3.834-.916c1.049-.152 2.059-.209 2.909-.125z" fill="#D1D4DC"/><path fill-rule="evenodd" clip-rule="evenodd" d="M52.59 25c-3.759-.62-7.687-1.53-9.286-2.78a7.936 7.936 0 1 1 9.771-12.507c2.412 1.885 5.364 9.103 6.925 13.285 1.56-4.182 4.512-11.4 6.925-13.285a7.936 7.936 0 0 1 9.77 12.507c-1.598 1.25-5.526 2.16-9.286 2.78H98a8 8 0 0 1 8 8v71a8 8 0 0 1-8 8H24a8 8 0 0 1-8-8V33a8 8 0 0 1 8-8h28.59zm-9.078-12.687a5.936 5.936 0 0 0 1.024 8.331c.511.4 1.695.896 3.517 1.379 1.732.459 3.77.84 5.743 1.144 1.581.243 3.098.434 4.347.575-.44-1.178-.991-2.603-1.61-4.078-.773-1.842-1.636-3.726-2.5-5.296-.91-1.65-1.678-2.679-2.19-3.079a5.936 5.936 0 0 0-8.33 1.024zm32.976 0a5.936 5.936 0 0 1-1.024 8.331c-.512.4-1.695.896-3.517 1.379-1.732.459-3.77.84-5.743 1.144-1.581.243-3.098.434-4.347.575.44-1.178.991-2.603 1.61-4.078.773-1.842 1.636-3.726 2.5-5.296.91-1.65 1.677-2.679 2.189-3.079a5.936 5.936 0 0 1 8.332 1.024zM24 27h74a6 6 0 0 1 6 6v71a6 6 0 0 1-6 6H24a6 6 0 0 1-6-6V33a6 6 0 0 1 6-6z" fill="#D1D4DC"/></svg>
|
||||
|
Before Width: | Height: | Size: 4.5 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18A9 9 0 1 0 9 0a9 9 0 0 0 0 18z" fill="#F0F0F0"/><path d="M5.48 5.87h11.96a9 9 0 0 0-14.8-3.23l2.84 3.23z" fill="#000"/><path d="M5.48 12.13h11.96a9 9 0 0 1-14.8 3.23l2.84-3.23z" fill="#57A863"/><path d="M2.64 2.64a9 9 0 0 0 0 12.72L9 9 2.64 2.64z" fill="#ED5565"/></svg>
|
||||
|
Before Width: | Height: | Size: 379 B |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.9 5.09a8.96 8.96 0 0 0 0 7.82l8.1.79 8.1-.79a8.96 8.96 0 0 0 0-7.82L9 4.3.9 5.1z" fill="#F0F0F0"/><path d="M.9 12.91a9 9 0 0 0 16.2 0H.9z" fill="#496E2D"/><path d="M.9 5.09h16.2a9 9 0 0 0-16.2 0z" fill="#000"/><path d="M2.64 2.64a9 9 0 0 0 0 12.72L9 9 2.64 2.64zM11.35 9c0-1.31.92-2.4 2.15-2.68A2.75 2.75 0 0 0 10.17 9a2.74 2.74 0 0 0 3.33 2.67A2.74 2.74 0 0 1 11.35 9z" fill="#ED5565"/><path d="M13.62 7.24l.38 1.2h1.26l-1.02.73.4 1.2-1.03-.74-1.01.74.39-1.2-1.02-.73h1.26l.38-1.2z" fill="#ED5565"/></svg>
|
||||
|
Before Width: | Height: | Size: 612 B |
@@ -1,4 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1e3],{17683:t=>{t.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:t=>{t.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},98526:(t,e,i)=>{"use strict";i.d(e,{Dialog:()=>h});var o=i(59496),s=i(97754),n=i(50655),a=i(88216),r=i(90186),l=i(17683);class h extends o.PureComponent{constructor(){super(...arguments),this._manager=new a.OverlapManager,this._handleSlot=t=>{this._manager.setContainer(t)}}render(){const{rounded:t=!0,shadowed:e=!0,fullscreen:i=!1,darker:a=!1,className:h,backdrop:d}=this.props,c=s(h,l.dialog,t&&l.rounded,e&&l.shadowed,i&&l.fullscreen,a&&l.darker),u=(0,r.filterDataProps)(this.props),g=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(n.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:l.backdrop}),o.createElement("div",{...u,className:c,style:g,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(n.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:t,left:e,width:i,right:o,top:s,zIndex:n,height:a}=this.props;return{bottom:t,left:e,right:o,top:s,zIndex:n,maxWidth:i,height:a}}}},95711:(t,e,i)=>{"use strict";i.d(e,{PopupContext:()=>o});const o=i(59496).createContext(null)},81e3:(t,e,i)=>{"use strict";i.d(e,{PopupDialog:()=>S});var o=i(59496),s=i(97754),n=i(88537),a=i(98526),r=i(86431),l=i(76594),h=i(64514);function d(t,e,i,o){return t+e>o&&(t=o-e),t<i&&(t=i),t}function c(t){return{x:(0,h.clamp)(t.x,20,document.documentElement.clientWidth-20),y:(0,h.clamp)(t.y,20,window.innerHeight-20)}}function u(t){return{x:t.clientX,y:t.clientY}}function g(t){return{x:t.touches[0].clientX,y:t.touches[0].clientY}}class p{constructor(t,e,i={boundByScreen:!0}){this._drag=null,this._canBeTouchClick=!1,this._frame=null,this._onMouseDragStart=t=>{if(0!==t.button||this._isTargetNoDraggable(t))return;t.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const e=c(u(t));this._dragStart(e)},this._onTouchDragStart=t=>{if(this._isTargetNoDraggable(t))return;this._canBeTouchClick=!0,t.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const e=c(g(t));this._dragStart(e)},this._onMouseDragEnd=t=>{t.target instanceof Node&&this._header.contains(t.target)&&t.preventDefault(),
|
||||
document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=t=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(t){if(t instanceof SVGElement){const e=document.createEvent("SVGEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}t instanceof HTMLElement&&t.click()}(t.target))},this._onMouseDragMove=t=>{const e=c(u(t));this._dragMove(e)},this._onTouchDragMove=t=>{this._canBeTouchClick=!1,t.preventDefault();const e=c(g(t));this._dragMove(e)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=t,this._header=e,this._options=i,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(t){this._options=t}_dragStart(t){const e=this._dialog.getBoundingClientRect();this._drag={startX:t.x,startY:t.y,finishX:t.x,finishY:t.y,dialogX:e.left,dialogY:e.top};const i=Math.round(e.left),o=Math.round(e.top);this._dialog.style.transform=`translate(${i}px, ${o}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(t){if(this._drag){if(this._drag.finishX=t.x,this._drag.finishY=t.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const e=t.x-this._drag.startX,i=t.y-this._drag.startY;this._moveDialog(this._drag.dialogX+e,this._drag.dialogY+i)}this._frame=null})}}_moveDialog(t,e){const i=this._dialog.getBoundingClientRect(),{boundByScreen:o}=this._options,s=d(t,i.width,o?0:-1/0,o?window.innerWidth:1/0),n=d(e,i.height,o?0:-1/0,o?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(s)}px, ${Math.round(n)}px)`}_isTargetNoDraggable(t){return t.target instanceof Element&&null!==t.target.closest("[data-disable-drag]")}}const _={vertical:0};class m{constructor(t,e){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=t,this._guard=e.guard||_,this._calculateDialogPosition=e.calculateDialogPosition,this._initialHeight=t.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(t){this._guard=t.guard||_,this._calculateDialogPosition=t.calculateDialogPosition}setFullscreen(t){this._isFullscreen!==t&&(this._isFullscreen=t,this.recalculateBounds())}centerAndFit(){
|
||||
const{x:t,y:e}=this.getDialogsTopLeftCoordinates(),i=this._calcAvailableHeight(),o=this._calcDialogHeight();if(i===o)if(this._calculateDialogPosition){const{left:t,top:e}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(t)}px, ${Math.round(e)}px)`}else this._dialog.style.height=o+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${t}px, ${e}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:t,clientWidth:e}=document.documentElement,i=this._calcDialogHeight(),o=e/2-this._dialog.clientWidth/2,s=t/2-i/2;return{x:Math.round(o),y:Math.round(s)}}recalculateBounds(){const{clientHeight:t,clientWidth:e}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:i}=this._guard;if(this._calculateDialogPosition){const o=this._calculateDialogPosition(this._dialog,{clientWidth:e,clientHeight:t},{vertical:i}),{left:s,top:n}=o;this._dialog.style.transform=`translate(${Math.round(s)}px, ${Math.round(n)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const o=this._dialog.getBoundingClientRect(),s=t-2*i,n=d(o.left,o.width,0,e),a=d(o.top,o.height,i,t);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(n)}px, ${Math.round(a)}px)`,this._dialog.style.height=s<o.height?s+"px":this._initialHeight}}}destroy(){window.removeEventListener("resize",this._handleResize),null!==this._frame&&(cancelAnimationFrame(this._frame),this._frame=null)}_calcDialogHeight(){const t=this._calcAvailableHeight();return t<this._dialog.clientHeight?t:this._dialog.clientHeight}_calcAvailableHeight(){return document.documentElement.clientHeight-2*this._guard.vertical}}var f=i(65718),v=i(95711),y=i(43989),D=i(12114);D["tooltip-offset"];class x extends o.PureComponent{constructor(t){super(t),this._dialog=null,this._handleDialogRef=t=>{const{reference:e}=this.props;this._dialog=t,"function"==typeof e&&e(t)},this._handleFocus=t=>{this._moveToTop()},this._handleMouseDown=t=>{this._moveToTop()},this._handleTouchStart=t=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return o.createElement(v.PopupContext.Provider,{value:this},o.createElement(l.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},t=>o.createElement("div",{ref:t,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,"data-dialog-name":this.props["data-dialog-name"]},o.createElement(a.Dialog,{style:this._applyAnimationCSSVariables(),...this.props,reference:this._handleDialogRef,className:s(D.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:t,boundByScreen:e,onDragStart:i}=this.props,o=(0,n.ensureNotNull)(this._dialog);if(t){
|
||||
const t=o.querySelector("[data-dragg-area]");t&&t instanceof HTMLElement&&(this._drag=new p(o,t,{boundByScreen:Boolean(e),onDragStart:i}))}this.props.autofocus&&!o.contains(document.activeElement)&&o.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,y.setFixedBodyState)(!0);const{guard:s,calculateDialogPosition:a}=this.props;this._resize=new m(o,{guard:s,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&o.focus()}componentDidUpdate(){if(this._resize){const{guard:t,calculateDialogPosition:e}=this.props;this._resize.updateOptions({guard:t,calculateDialogPosition:e}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,y.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(t){if(this._resize&&this._dialog){const{x:e,y:i}=t,{x:o,y:s}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",e+"px"),this._dialog.style.setProperty("--animationTranslateStartY",i+"px"),this._dialog.style.setProperty("--animationTranslateEndX",o+"px"),this._dialog.style.setProperty("--animationTranslateEndY",s+"px"),this._dialog.classList.add(D.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}x.contextType=f.PortalContext,x.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const S=(0,r.makeOverlapable)(x)}}]);
|
||||
@@ -1 +0,0 @@
|
||||
.dialog-sXuYOF5A{overflow-x:hidden;overflow-y:auto;padding:40px;position:relative;width:720px}@media screen and (max-width:767px){.dialog-sXuYOF5A{padding:24px 20px;width:100%}}.dialog-sXuYOF5A.radius-sXuYOF5A{border-radius:0}.container-sXuYOF5A{display:flex;flex:auto;flex-direction:column;justify-content:center;text-align:center}.closeButton-sXuYOF5A{cursor:pointer;right:30px;top:30px}.icon-sXuYOF5A{margin:0 auto}.title-sXuYOF5A{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-top:25px}html.theme-dark .title-sXuYOF5A{color:#d1d4dc}@media screen and (max-width:767px){.title-sXuYOF5A{font-size:24px;line-height:32px}}.featureDescription-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:left}html.theme-dark .featureDescription-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:15px;text-align:left}html.theme-dark .description-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A a,html.theme-dark .description-sXuYOF5A a{color:#2962ff}@media (any-hover:hover){.description-sXuYOF5A a:hover,html.theme-dark .description-sXuYOF5A a:hover{color:#1e53e5}}.description-sXuYOF5A p{margin-bottom:13px}.description-sXuYOF5A p:last-child{margin-bottom:0}.wrapperButton-sXuYOF5A{margin-top:40px}.actionButton-sXuYOF5A{cursor:pointer}
|
||||
@@ -1 +0,0 @@
|
||||
.dialog-sXuYOF5A{overflow-x:hidden;overflow-y:auto;padding:40px;position:relative;width:720px}@media screen and (max-width:767px){.dialog-sXuYOF5A{padding:24px 20px;width:100%}}.dialog-sXuYOF5A.radius-sXuYOF5A{border-radius:0}.container-sXuYOF5A{display:flex;flex:auto;flex-direction:column;justify-content:center;text-align:center}.closeButton-sXuYOF5A{cursor:pointer;left:30px;top:30px}.icon-sXuYOF5A{margin:0 auto}.title-sXuYOF5A{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-top:25px}html.theme-dark .title-sXuYOF5A{color:#d1d4dc}@media screen and (max-width:767px){.title-sXuYOF5A{font-size:24px;line-height:32px}}.featureDescription-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:right}html.theme-dark .featureDescription-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:15px;text-align:right}html.theme-dark .description-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A a,html.theme-dark .description-sXuYOF5A a{color:#2962ff}@media (any-hover:hover){.description-sXuYOF5A a:hover,html.theme-dark .description-sXuYOF5A a:hover{color:#1e53e5}}.description-sXuYOF5A p{margin-bottom:13px}.description-sXuYOF5A p:last-child{margin-bottom:0}.wrapperButton-sXuYOF5A{margin-top:40px}.actionButton-sXuYOF5A{cursor:pointer}
|
||||
5
charting_library/bundles/1075.2745aa8533e240f5a5aa.js
Normal file
@@ -0,0 +1,5 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1075],{16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var s=n(59496);const r=s.forwardRef((e,t)=>{const{icon:n="",...r}=e;return s.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const s=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),s=n.style;s.visibility="hidden",s.width="100px",s.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-o}return e}})();function r(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function o(e,t){return parseInt(i(e,t))}let l=0,a=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++l){const e=i(t,"overflow"),l=o(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(r(n,"right",s()+"px"),t.style.paddingRight=l+s()+"px",a=!0),t.classList.add("i-no-scroll")}else if(!e&&l>0&&0==--l&&(t.classList.remove("i-no-scroll"),a)){r(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=s()),t.style.paddingRight=(e<0?0:e)+"px",a=!1}}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>i});var s=n(59496),r=n(39640);function i(e){const{click:t,mouseDown:n,touchEnd:i,touchStart:o,handler:l,reference:a,ownerDocument:c=document}=e,u=(0,s.useRef)(null),d=(0,s.useRef)(new CustomEvent("timestamp").timeStamp);return(0,s.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:i,touchStart:o},s=a?a.current:u.current;return(0,r.addOutsideEventListener)(d.current,s,l,c,e)},[t,n,i,o,l]),a||u}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var s=n(59496);class r extends s.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>s});const s=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>_,Menu:()=>g})
|
||||
;var s=n(59496),r=n(97754),i=n.n(r),o=n(88537),l=n(64514),a=n(54475),c=n(50655),u=n(59064),d=n(88216),h=n(25760),p=n(14758),m=n(64706),f=n(16059);const _=f;class g extends s.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,s,r,i;if(this.state.isMeasureValid&&!t)return;const{position:a}=this.props,c=(0,o.ensureNotNull)(this._containerRef);let u=c.getBoundingClientRect();const d=document.documentElement.clientHeight,h=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=d-0-p;const f=u.height>m;if(f){(0,o.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",u=c.getBoundingClientRect()}const{width:_,height:g}=u,v="function"==typeof a?a(_,g,d):a,y=h-(null!==(s=v.overrideWidth)&&void 0!==s?s:_)-0,x=(0,l.clamp)(v.x,0,Math.max(0,y)),C=0+p,w=d-(null!==(r=v.overrideHeight)&&void 0!==r?r:g)-0;let M=(0,l.clamp)(v.y,C,Math.max(C,w));if(v.forbidCorrectYCoord&&M<v.y&&(m-=v.y-M,M=v.y),t&&void 0!==this.props.closeOnScrollOutsideOffset&&v.y<=this.props.closeOnScrollOutsideOffset)return void this._handleGlobalClose(!0);const b=null!==(i=v.overrideHeight)&&void 0!==i?i:f?m:void 0;this.setState({appearingMenuHeight:t?this.state.appearingMenuHeight:b,appearingMenuWidth:t?this.state.appearingMenuWidth:v.overrideWidth,appearingPosition:{x,y:M},isMeasureValid:!0},()=>{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,o.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,o.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,o.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{
|
||||
e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=h.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,children:o,minWidth:l,theme:u=f,className:d,maxHeight:h,onMouseOver:_,onMouseOut:g,onKeyDown:y,onFocus:x,onBlur:C}=this.props,{appearingMenuHeight:w,appearingMenuWidth:M,appearingPosition:b,isMeasureValid:S}=this.state;return s.createElement(m.MenuContext.Provider,{value:this},s.createElement(p.SubmenuHandler,null,s.createElement(c.SlotContext.Provider,{value:this._manager},s.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,className:i()(d,u.menuWrap,!S&&u.isMeasuring),style:{height:w,left:b&&b.x,minWidth:l,position:"fixed",top:b&&b.y,width:M},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:a.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:_,onMouseOut:g,onKeyDown:y,onFocus:x,onBlur:C},s.createElement("div",{className:i()(u.scrollWrap,!this.props.noMomentumBasedScroll&&u.momentumBased),style:{overflowY:void 0!==w?"scroll":"auto",maxHeight:h},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},s.createElement(v,{className:u.menuBox},o)))),s.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function v(e){const t=(0,o.ensureNotNull)((0,s.useContext)(p.SubmenuContext)),n=s.useRef(null);return s.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(s=e.target,null===(r=n.current)||void 0===r?void 0:r.contains(s))))return;var s,r;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}g.contextType=p.SubmenuContext},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>i,getRootOverlapManager:()=>l})
|
||||
;var s=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class i{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const s=this._document.createElement("div");if(s.style.position=t.position,s.style.zIndex=this._index.toString(),s.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(s);else if(t.index<=0)this._container.insertBefore(s,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(s,e)}}else"reverse"===t.direction?this._container.insertBefore(s,this._container.firstChild):this._container.appendChild(s);return this._windows.set(e,s),++this._index,s}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const o=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,s.ensureDefined)(o.get(t));{const t=new i(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return o.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>i});var s=n(59496),r=n(59064);const i=s.createContext(r.globalCloseDelegate)},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>c});var s=n(59496),r=n(87995),i=n(9423),o=n(88216),l=n(50655);class a extends s.PureComponent{constructor(){super(...arguments),this._uuid=(0,i.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(s.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,o.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext
|
||||
;const c=s.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>i});var s=n(59496);class r extends s.Component{shouldComponentUpdate(){return!1}render(){return s.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const i=s.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>r,SubmenuHandler:()=>i});var s=n(59496);const r=s.createContext(null);function i(e){const[t,n]=(0,s.useState)(null),i=(0,s.useRef)(null),o=(0,s.useRef)(new Map);return(0,s.useEffect)(()=>()=>{null!==i.current&&clearTimeout(i.current)},[]),s.createElement(r.Provider,{value:{current:t,setCurrent:function(e){null!==i.current&&(clearTimeout(i.current),i.current=null);null===t?n(e):i.current=setTimeout(()=>{i.current=null,n(e)},100)},registerSubmenu:function(e,t){return o.current.set(e,t),()=>{o.current.delete(e)}},isSubmenuNode:function(e){return Array.from(o.current.values()).some(t=>t(e))}}},e.children)}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20"><path d="M0 3a3 3 0 0 1 3-3h26a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3z" fill="#1E222D"/><circle cx="12" cy="10" r="7" fill="#EB001B"/><circle cx="20" cy="10" r="7" fill="#F79E1B"/><path d="M16 15.75a7 7 0 0 0 0-11.5 7 7 0 0 0 0 11.5z" fill="#FF5F00"/></svg>
|
||||
|
Before Width: | Height: | Size: 350 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#4758a9" d="M0 13h18v5H0z"/><path fill="#ed5565" d="M0 0h18v5H0z"/><path fill="#f7f8fa" d="M0 5h18v8H0z"/><path fill="#57a863" d="M11.1 6.5l-.8.8c.4.3.6.8.6 1.3 0 1-.9 1.8-1.9 1.8a1.9 1.9 0 0 1-1.9-1.8c0-.5.2-1 .6-1.3l-.8-.8a2.9 2.9 0 0 0-.9 2c0 1.7 1.3 3 3 3s3-1.3 3-3a3 3 0 0 0-.9-2z"/><path fill="#fc0" d="M9 7.5l.2.8h.8l-.6.4.2.8L9 9l-.6.5.2-.8-.6-.4h.8z"/></svg>
|
||||
|
Before Width: | Height: | Size: 462 B |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.44 12.13a8.98 8.98 0 0 0 0-6.26L9 5.09l-8.44.78a8.98 8.98 0 0 0 0 6.26l8.44.78 8.44-.78z" fill="#ED5565"/><path d="M9 18a9 9 0 0 0 8.44-5.87H.56A9 9 0 0 0 9 18z" fill="#57A863"/><path d="M9 0A9 9 0 0 0 .56 5.87h16.88A9 9 0 0 0 9 0z" fill="#4758A9"/><path d="M11 9.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0z" fill="#FC0"/><path d="M5.72 10.18h1.53-1.53zm0-1.14h1.53-1.53zM6.49 5v7.72V5z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6.4 8.95V5h.18v3.95h.67v.19h-.67v.95h.67v.18h-.67v2.45h-.19v-2.45h-.67v-.18h.67v-.95h-.67v-.19h.67z" fill="#000"/><path d="M4.67 13.65c1.84.76 3.57.05 3.57.05s-.65-.7-.99-.98c-.32-.27-1.28-.26-1.61 0-.28.21-1.06 1-.97.93zM6.49 12.32c.27 0 .5-.33.5-.73 0-.4-.23-.74-.5-.74-.28 0-.51.33-.51.74 0 .4.23.73.5.73zM6.49 10c.33 0 .6-.17.6-.39 0-.21-.27-.39-.6-.39-.34 0-.62.18-.62.4 0 .2.28.38.62.38zM6.49 8.43a.61.61 0 1 0 0-1.22.61.61 0 0 0 0 1.22zM7.22 5.54s.05.08-.06.29C6.63 6.79 6.1 6.8 6 6.89c-.11.1-.16.09-.16.09l.02-.46c.08-.45.76-.44 1.3-.9.08-.07.07-.08.07-.08z" fill="#000"/><path d="M5.43 7.6s.12.35.14.7c.03.54.55.56.92.56v-.3c-.28 0-.51-.05-.7-.45-.1-.2-.36-.5-.36-.5zM5.41 12.05s.2-.24.42-.8c.12-.29.4-.46.66-.46v-.43c-.59 0-.87.22-.9.53-.06.65-.18 1.16-.18 1.16z" fill="#000"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 0C7.9 0 6.84.2 5.87.56L5.47 9l.4 8.44a8.98 8.98 0 0 0 6.26 0l.4-8.44-.4-8.44A8.98 8.98 0 0 0 9 0z" fill="#FC0"/><path d="M18 9A9 9 0 0 0 12.13.56v16.88A9 9 0 0 0 18 9z" fill="#ED5565"/><path d="M5.87 17.44V.56a9 9 0 0 0 0 16.88z" fill="#4758A9"/></svg>
|
||||
|
Before Width: | Height: | Size: 359 B |
@@ -1 +0,0 @@
|
||||
<svg width="17" height="17" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg"><path d="M13.864 14.103a8.502 8.502 0 0 0-1.61-1.034c.41-1.248.644-2.689.676-4.2h3.322a7.741 7.741 0 0 1-2.388 5.234zM.748 8.87H4.07c.032 1.51.267 2.95.677 4.2a8.502 8.502 0 0 0-1.611 1.033A7.742 7.742 0 0 1 .748 8.87zm2.388-5.973c.5.407 1.04.753 1.61 1.034-.41 1.248-.644 2.689-.676 4.2H.748a7.742 7.742 0 0 1 2.388-5.234zM8.87 8.13V4.796a8.494 8.494 0 0 0 2.703-.567c.373 1.158.587 2.495.618 3.901H8.87zm0 4.074V8.87h3.321c-.032 1.406-.245 2.743-.618 3.9a8.494 8.494 0 0 0-2.703-.566zm2.174 1.88c-.61 1.218-1.37 1.961-2.174 2.136v-3.276c.846.04 1.673.218 2.452.522a8.67 8.67 0 0 1-.278.618zm.953-.316c.458.23.893.508 1.3.828a7.744 7.744 0 0 1-2.638 1.359c.384-.404.736-.92 1.046-1.54.104-.208.201-.424.292-.647zm-6.702.646c.31.62.662 1.137 1.046 1.54a7.742 7.742 0 0 1-2.639-1.358c.408-.32.843-.597 1.3-.828.092.223.19.44.293.646zm2.835-1.47v3.276c-.804-.175-1.565-.918-2.174-2.136a8.72 8.72 0 0 1-.278-.618 7.756 7.756 0 0 1 2.452-.522zm0-4.074v3.334a8.494 8.494 0 0 0-2.703.567c-.373-1.158-.587-2.495-.618-3.901H8.13zm0-4.074V8.13H4.81c.032-1.406.245-2.743.618-3.9a8.494 8.494 0 0 0 2.703.566zm-2.174-1.88C6.566 1.698 7.326.955 8.13.78v3.276a7.756 7.756 0 0 1-2.452-.522c.087-.214.18-.42.278-.618zm-.953.316a7.743 7.743 0 0 1-1.3-.828A7.744 7.744 0 0 1 6.34 1.045c-.384.404-.736.92-1.046 1.54-.104.208-.201.424-.292.647zm6.319.302a7.756 7.756 0 0 1-2.452.522V.78c.804.175 1.565.918 2.174 2.136.099.197.191.404.278.618zm.383-.948c-.31-.62-.662-1.137-1.046-1.54.971.28 1.864.747 2.639 1.358-.408.32-.843.597-1.3.828a9.195 9.195 0 0 0-.293-.646zM12.93 8.13c-.032-1.51-.267-2.95-.677-4.2a8.502 8.502 0 0 0 1.611-1.033 7.74 7.74 0 0 1 2.388 5.233H12.93zm1.229-5.967l-.005-.005a.369.369 0 0 0-.073-.064A8.465 8.465 0 0 0 8.5 0C6.366 0 4.413.79 2.919 2.094a.377.377 0 0 0-.073.064l-.005.005A8.48 8.48 0 0 0 0 8.5a8.48 8.48 0 0 0 2.841 6.337l.005.005a.369.369 0 0 0 .073.064A8.465 8.465 0 0 0 8.5 17c2.134 0 4.087-.79 5.582-2.095a.364.364 0 0 0 .072-.063l.005-.005A8.48 8.48 0 0 0 17 8.5a8.48 8.48 0 0 0-2.841-6.337z" fill="#787B86" fill-rule="evenodd"/></svg>
|
||||
|
Before Width: | Height: | Size: 2.1 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18A9 9 0 1 0 9 0a9 9 0 0 0 0 18z" fill="#F0F0F0"/><path d="M16.5 10.08c-.75 0-.75-.69-1.5-.69s-.75.69-1.5.69-.75-.69-1.5-.69-.75.69-1.5.69-.75-.69-1.5-.69-.75.69-1.5.69-.75-.69-1.5-.69-.75.69-1.5.69-.75-.69-1.5-.69-.75.69-1.5.69S.75 9.4.01 9.39a9 9 0 0 0 .15 1.21c.6.09.65.68 1.34.68.75 0 .75-.69 1.5-.69s.75.69 1.5.69.75-.69 1.5-.69.75.69 1.5.69.75-.69 1.5-.69.75.69 1.5.69.75-.69 1.5-.69.75.69 1.5.69.75-.69 1.5-.69.75.69 1.5.69c.7 0 .75-.59 1.34-.68.08-.4.13-.8.15-1.2-.74 0-.74.68-1.49.68zM15 11.74c-.75 0-.75.68-1.5.68s-.75-.68-1.5-.68-.75.68-1.5.68-.75-.68-1.5-.68-.75.68-1.5.68-.75-.68-1.5-.68-.75.68-1.5.68-.75-.68-1.5-.68-.75.68-1.5.68c-.55 0-.7-.37-1.04-.56.2.61.48 1.2.8 1.74a1 1 0 0 0 .24.02c.75 0 .75-.68 1.5-.68s.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68a1 1 0 0 0 .24-.02c.32-.55.6-1.13.8-1.74-.34.2-.49.56-1.04.56-.75 0-.75-.68-1.5-.68zM17.8 7.06c-.56.12-.63.67-1.3.67-.75 0-.75-.69-1.5-.69s-.75.69-1.5.69-.75-.69-1.5-.69-.75.69-1.5.69-.75-.69-1.5-.69c-.4 0-.6.2-.8.39v1.2c.2-.19.4-.39.8-.39.75 0 .75.69 1.5.69s.75-.69 1.5-.69.75.69 1.5.69.75-.69 1.5-.69.75.69 1.5.69c.7 0 .75-.59 1.34-.68h.13c-.03-.4-.1-.8-.18-1.19zM17.13 5.14a.91.91 0 0 1-.63.24c-.75 0-.75-.68-1.5-.68s-.75.68-1.5.68-.75-.68-1.5-.68-.75.68-1.5.68S9.75 4.7 9 4.7c-.4 0-.6.2-.8.38v1.2c.2-.18.4-.38.8-.38.75 0 .75.68 1.5.68s.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68c.53 0 .69-.34 1-.54-.1-.3-.23-.6-.37-.9zM15.06 2.35H15c-.75 0-.75.68-1.5.68s-.75-.68-1.5-.68-.75.68-1.5.68-.75-.68-1.5-.68c-.4 0-.6.2-.8.38v1.2c.2-.18.4-.38.8-.38.75 0 .75.68 1.5.68s.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68h.13a9.04 9.04 0 0 0-1.57-1.88zM11.3.3c-.2.18-.4.39-.8.39C9.75.69 9.75 0 9 0c-.39 0-.58.18-.77.36v1.2c.2-.18.38-.36.77-.36.75 0 .75.69 1.5.69s.75-.69 1.5-.69.75.69 1.5.69c.31 0 .5-.12.66-.27A8.96 8.96 0 0 0 11.3.3zM10.5 17.12c-.75 0-.75-.69-1.5-.69s-.75.7-1.5.7-.75-.7-1.5-.7c-.57 0-.7.4-1.08.6 1.02.51 2.15.84 3.34.94.18-.17.37-.34.74-.34s.56.17.74.34c1.2-.1 2.32-.43 3.34-.94-.37-.2-.5-.6-1.08-.6-.75 0-.75.7-1.5.7zM13.5 14.77c-.75 0-.75-.68-1.5-.68s-.75.68-1.5.68-.75-.68-1.5-.68-.75.68-1.5.68-.75-.68-1.5-.68-.75.68-1.5.68-.75-.68-1.5-.68c-.54 0-.7.35-1.01.55.2.25.41.5.64.72.1-.05.22-.07.37-.07.75 0 .75.68 1.5.68s.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68.75.68 1.5.68.75-.68 1.5-.68c.15 0 .27.02.37.07.23-.23.44-.47.64-.72-.32-.2-.47-.55-1.01-.55-.75 0-.75.68-1.5.68z" fill="#4758A9"/><path d="M8.98 9H9v-.02L8.98 9z" fill="#F0F0F0"/><path d="M9 4.7v2.64L5.87 4.3 9 4.7zM4.7 9h2.64L4.7 5.48l-.4 2.74.4.78z" fill="#4758A9"/><path d="M9 4.7V0a9 9 0 0 0-9 9h4.7V6.36L7.34 9h1.64L9 8.98V7.34L6.36 4.7H9z" fill="#F0F0F0"/><path d="M4.55 1.17a9.04 9.04 0 0 0-3.38 3.38V9h2.35V3.52H9V1.17H4.55z" fill="#ED5565"/><path d="M9 7.9L5.8 4.7H4.7L9 9V7.9z" fill="#ED5565"/><path d="M11.74 4.7h3.52L13.5 6.46 11.74 4.7z" fill="#57A863"/><path d="M13.9 6.07h-.8v2.15h.8V6.07zM13.9 11.74h-.8v2.15h.8v-2.15z" fill="#A2001D"/><path d="M15.85 10.57a1.17 1.17 0 0 0-1.96-.88V9h.4v-.78h-.4v-.4h-.78v.4h-.4V9h.4v.7a1.17 1.17 0 0 0-1.96.87c0 .34.15.66.4.87v.7h3.9v-.7c.25-.21.4-.53.4-.87z" fill="#FC0"/><path d="M14.67 10.17a.39.39 0 0 0-.26.1l-.52.47h-.78l-.52-.47a.4.4 0 0 0-.52.58l.26.24v.26h2.34v-.26l.26-.23a.4.4 0 0 0-.26-.68z" fill="#ED5565"/></svg>
|
||||
|
Before Width: | Height: | Size: 3.4 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="45.56" cy="34.97" rx="43.65" ry="31.97" fill="#2A2E39"/><ellipse cx="40" cy="61.38" rx="24.9" ry="22.2" fill="#2A2E39"/><ellipse cx="77.2" cy="93.1" rx="33.7" ry="23.1" fill="#2A2E39"/><path d="M78.22 91h-.38l-.29.26L60.02 107H34a9 9 0 0 1-9-9V23a7 7 0 0 1 7-7h63a3 3 0 0 1 3 3v69a3 3 0 0 1-3 3H78.22z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M25 99a8 8 0 0 1 8-8h59v13a3 3 0 0 1-3 3H33a8 8 0 0 1-8-8z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M45.02 99.13l-.54.84.54-.84a2 2 0 0 0-2.2.02L39 101.69V91h10v10.71l-3.98-2.58z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><rect x="43.41" y="34.64" width="36.18" height="36.18" rx="18.09" fill="#1848CC"/><circle cx="61.5" cy="48.99" r="6.34" stroke="#D1D4DC" stroke-width="2"/><path d="M72.7 67.1a1 1 0 1 0 2 0h-2zm-24.4 0a1 1 0 1 0 2 0h-2zm13.2-10.75c6 0 11.2 4.76 11.2 10.74h2c0-7.2-6.2-12.74-13.2-12.74v2zM50.3 67.1c0-5.98 5.18-10.74 11.2-10.74v-2c-7.01 0-13.2 5.55-13.2 12.74h2z" fill="#D1D4DC"/><path d="M71.45 69.03c1.4-.82 4.57-3.63 5.09-4.6M51.55 69.03c-1.4-.82-4.58-3.63-5.1-4.6" stroke="#1E222D" stroke-width="2"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1,94 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1201],{72589:e=>{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseGlobal=void 0;var i=r(e("promise-polyfill")),o="undefined"!=typeof Promise?Promise:i.default;n.PromiseGlobal=o},{"promise-polyfill":66}],2:[function(e,t,n){"use strict";var r=e("./lib/promise"),i={};function o(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=i[n]))return t;var o=document.createElement("script"),a=e.dataAttributes||{},s=e.container||document.head;return o.src=e.src,o.id=e.id||"",o.async=!0,e.crossorigin&&o.setAttribute("crossorigin",""+e.crossorigin),Object.keys(a).forEach((function(e){o.setAttribute("data-"+e,""+a[e])})),t=new r.PromiseGlobal((function(t,n){o.addEventListener("load",(function(){t(o)})),o.addEventListener("error",(function(){n(new Error(e.src+" failed to load."))})),o.addEventListener("abort",(function(){n(new Error(e.src+" has aborted."))})),s.appendChild(o)})),i[n]=t,t}o.clearCache=function(){i={}},t.exports=o},{"./lib/promise":1}],3:[function(e,t,n){t.exports=e("./dist/load-script")},{"./dist/load-script":2}],4:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/Android/.test(e)}},{}],5:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/CrOS/i.test(e)}},{}],6:[function(e,t,n){"use strict";var r=e("./is-edge"),i=e("./is-samsung");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||r(e)||i(e))}},{"./is-edge":7,"./is-samsung":18}],7:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")}},{}],8:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/Firefox/i.test(e)}},{}],9:[function(e,t,n){"use strict";var r=e("./is-ie11");t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("MSIE")||r(e)}},{"./is-ie11":11}],10:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("MSIE 10")}},{}],11:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Trident/7")}},{}],12:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("MSIE 9")}},{}],13:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],14:[function(e,t,n){"use strict";var r=e("./is-ios"),i=e("./is-ios-firefox"),o=/webkit/i;t.exports=function(e){
|
||||
return e=e||window.navigator.userAgent,r(e)&&function(e){return o.test(e)}(e)&&-1===e.indexOf("CriOS")&&!i(e)}},{"./is-ios":17,"./is-ios-firefox":13}],15:[function(e,t,n){"use strict";var r=e("./is-ios");t.exports=function(e){return e=e||window.navigator.userAgent,!!r(e)&&(!!function(e){return/\bGSA\b/.test(e)}(e)||/.+AppleWebKit(?!.*Safari)/.test(e))}},{"./is-ios":17}],16:[function(e,t,n){"use strict";var r=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,r(e)&&t}},{"./is-ios-webview":15}],17:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/iPhone|iPod|iPad/i.test(e)}},{}],18:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],19:[function(e,t,n){"use strict";var r=e("./is-android"),i=e("./is-ios-firefox"),o=e("./is-ios-webview"),a=e("./is-chrome"),s=e("./is-samsung");function c(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}t.exports=function(e){return e=e||window.navigator.userAgent,!(o(e)||i(e)||function(e){return e=e||window.navigator.userAgent,!!r(e)&&/Version\/[\d.]+/.test(e)&&!c(e)}(e)||c(e)||function(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<48}(e)||function(e){return!a(e)&&!s(e)&&/samsung/i.test(e)}(e))}},{"./is-android":4,"./is-chrome":6,"./is-ios-firefox":13,"./is-ios-webview":15,"./is-samsung":18}],20:[function(e,t,n){t.exports=e("./dist/is-android")},{"./dist/is-android":4}],21:[function(e,t,n){t.exports=e("./dist/is-chrome-os")},{"./dist/is-chrome-os":5}],22:[function(e,t,n){t.exports=e("./dist/is-chrome")},{"./dist/is-chrome":6}],23:[function(e,t,n){t.exports=e("./dist/is-edge")},{"./dist/is-edge":7}],24:[function(e,t,n){t.exports=e("./dist/is-firefox")},{"./dist/is-firefox":8}],25:[function(e,t,n){t.exports=e("./dist/is-ie")},{"./dist/is-ie":9}],26:[function(e,t,n){t.exports=e("./dist/is-ie10")},{"./dist/is-ie10":10}],27:[function(e,t,n){t.exports=e("./dist/is-ie9")},{"./dist/is-ie9":12}],28:[function(e,t,n){t.exports=e("./dist/is-ios-safari")},{"./dist/is-ios-safari":14}],29:[function(e,t,n){t.exports=e("./dist/is-ios-webview")},{"./dist/is-ios-webview":15}],30:[function(e,t,n){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":16}],31:[function(e,t,n){t.exports=e("./dist/is-ios")},{"./dist/is-ios":17}],32:[function(e,t,n){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":19}],33:[function(e,t,n){"use strict";function r(e){return e.className.trim().split(/\s+/)}function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.className=r(e).filter((function(e){return-1===t.indexOf(e)})).concat(t).join(" ")}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.className=r(e).filter((function(e){return-1===t.indexOf(e)})).join(" ")}Object.defineProperty(n,"__esModule",{value:!0}),n.toggle=n.remove=n.add=void 0,n.add=i,n.remove=o,n.toggle=function(e,t,n){n?i(e,t):o(e,t)}},{}],34:[function(e,t,n){"use strict"
|
||||
;var r=function(){function e(){this._events={}}return e.prototype.on=function(e,t){this._events[e]?this._events[e].push(t):this._events[e]=[t]},e.prototype.off=function(e,t){var n=this._events[e];if(n){var r=n.indexOf(t);n.splice(r,1)}},e.prototype._emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this._events[e];r&&r.forEach((function(e){e.apply(void 0,t)}))},e.prototype.hasListener=function(e){var t=this._events[e];return!!t&&t.length>0},e.createChild=function(t){t.prototype=Object.create(e.prototype,{constructor:t})},e}();t.exports=r},{}],35:[function(e,t,n){"use strict";var r="undefined"!=typeof Promise?Promise:null,i=function(){function e(t){var n=this;"function"!=typeof t?(this._promise=new e.Promise((function(e,t){n._resolveFunction=e,n._rejectFunction=t})),t=t||{},this._onResolve=t.onResolve||e.defaultOnResolve,this._onReject=t.onReject||e.defaultOnReject,e.shouldCatchExceptions(t)&&this._promise.catch((function(){})),this._resetState()):this._promise=new e.Promise(t)}return e.defaultOnResolve=function(t){return e.Promise.resolve(t)},e.defaultOnReject=function(t){return e.Promise.reject(t)},e.setPromise=function(t){e.Promise=t},e.shouldCatchExceptions=function(t){return t.hasOwnProperty("suppressUnhandledPromiseMessage")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(e.suppressUnhandledPromiseMessage)},e.all=function(t){return e.Promise.all(t)},e.allSettled=function(t){return e.Promise.allSettled(t)},e.race=function(t){return e.Promise.race(t)},e.reject=function(t){return e.Promise.reject(t)},e.resolve=function(t){return e.Promise.resolve(t)},e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.resolve=function(t){var n=this;return this.isFulfilled||(this._setResolved(),e.Promise.resolve().then((function(){return n._onResolve(t)})).then((function(e){n._resolveFunction(e)})).catch((function(e){n._resetState(),n.reject(e)}))),this},e.prototype.reject=function(t){var n=this;return this.isFulfilled||(this._setRejected(),e.Promise.resolve().then((function(){return n._onReject(t)})).then((function(e){n._setResolved(),n._resolveFunction(e)})).catch((function(e){return n._rejectFunction(e)}))),this},e.prototype._resetState=function(){this.isFulfilled=!1,this.isResolved=!1,this.isRejected=!1},e.prototype._setResolved=function(){this.isFulfilled=!0,this.isResolved=!0,this.isRejected=!1},e.prototype._setRejected=function(){this.isFulfilled=!0,this.isResolved=!1,this.isRejected=!0},e.Promise=r,e}();t.exports=i},{}],36:[function(e,t,n){"use strict";var r=e("./lib/set-attributes"),i=e("./lib/default-attributes"),o=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var t=document.createElement("iframe"),n=o.assign({},i.defaultAttributes,e);return n.style&&"string"!=typeof n.style&&(o.assign(t.style,n.style),delete n.style),r.setAttributes(t,n),
|
||||
t.getAttribute("id")||(t.id=t.name),t}},{"./lib/assign":37,"./lib/default-attributes":38,"./lib/set-attributes":39}],37:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assign=void 0,n.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){"object"==typeof t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}},{}],38:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.defaultAttributes=void 0,n.defaultAttributes={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no"}},{}],39:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setAttributes=void 0,n.setAttributes=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];null==r?e.removeAttribute(n):e.setAttribute(n,r)}}},{}],40:[function(e,t,n){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},{}],41:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deferred=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];setTimeout((function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}}),1)}}},{}],42:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.once=function(e){var t=!1;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t||(t=!0,e.apply(void 0,n))}}},{}],43:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.promiseOrCallback=function(e,t){if(!t)return e;e.then((function(e){return t(null,e)})).catch((function(e){return t(e)}))}},{}],44:[function(e,t,n){"use strict";var r=e("./lib/deferred"),i=e("./lib/once"),o=e("./lib/promise-or-callback");function a(e){return function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var s=n[n.length-1];return"function"==typeof s&&(t=n.pop(),t=i.once(r.deferred(t))),o.promiseOrCallback(e.apply(this,n),t)}}a.wrapPrototype=function(e,t){void 0===t&&(t={});var n=t.ignoreMethods||[],r=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter((function(t){var i,o="constructor"!==t&&"function"==typeof e.prototype[t],a=-1===n.indexOf(t);return i=!!r||"_"!==t.charAt(0),o&&i&&a})).forEach((function(t){var n=e.prototype[t];e.prototype[t]=a(n)})),e},t.exports=a},{"./lib/deferred":41,"./lib/once":42,"./lib/promise-or-callback":43}],45:[function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=e("./lib/card-types"),o=e("./lib/add-matching-cards-to-results"),a=e("./lib/is-valid-input-type"),s=e("./lib/find-best-match"),c=e("./lib/clone"),l={},u={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",
|
||||
DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},d=[u.VISA,u.MASTERCARD,u.AMERICAN_EXPRESS,u.DINERS_CLUB,u.DISCOVER,u.JCB,u.UNIONPAY,u.MAESTRO,u.ELO,u.MIR,u.HIPER,u.HIPERCARD],p=c.clone(d);function _(e){return l[e]||i[e]}function E(e,t){void 0===t&&(t=!1);var n=p.indexOf(e);if(!t&&-1===n)throw new Error('"'+e+'" is not a supported card type.');return n}function h(e){var t=[];if(!a.isValidInputType(e))return t;if(0===e.length)return p.map((function(e){return c.clone(_(e))}));p.forEach((function(n){var r=_(n);o.addMatchingCardsToResults(e,r,t)}));var n=s.findBestMatch(t);return n?[n]:t}h.getTypeInfo=function(e){return c.clone(_(e))},h.removeCard=function(e){var t=E(e);p.splice(t,1)},h.addCard=function(e){var t=E(e.type,!0);l[e.type]=e,-1===t&&p.push(e.type)},h.updateCard=function(e,t){var n=l[e]||i[e];if(!n)throw new Error('"'+e+"\" is not a recognized type. Use `addCard` instead.'");if(t.type&&n.type!==t.type)throw new Error("Cannot overwrite type parameter.");var o=c.clone(n);o=r(r({},o),t),l[o.type]=o},h.changeOrder=function(e,t){var n=E(e);p.splice(n,1),p.splice(t,0,e)},h.resetModifications=function(){p=c.clone(d),l={}},h.types=u,t.exports=h},{"./lib/add-matching-cards-to-results":46,"./lib/card-types":47,"./lib/clone":48,"./lib/find-best-match":49,"./lib/is-valid-input-type":50}],46:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addMatchingCardsToResults=void 0;var r=e("./clone"),i=e("./matches");n.addMatchingCardsToResults=function(e,t,n){var o,a;for(o=0;o<t.patterns.length;o++){var s=t.patterns[o];if(i.matches(e,s)){var c=r.clone(t);a=Array.isArray(s)?String(s[0]).length:String(s).length,e.length>=a&&(c.matchStrength=a),n.push(c);break}}}},{"./clone":48,"./matches":51}],47:[function(e,t,n){"use strict";t.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],
|
||||
code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},{}],48:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.clone=void 0,n.clone=function(e){return e?JSON.parse(JSON.stringify(e)):null}},{}],49:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findBestMatch=void 0,n.findBestMatch=function(e){return function(e){var t=e.filter((function(e){return e.matchStrength})).length;return t>0&&t===e.length}(e)?e.reduce((function(e,t){return e?Number(e.matchStrength)<Number(t.matchStrength)?t:e:t})):null}},{}],50:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isValidInputType=void 0,n.isValidInputType=function(e){return"string"==typeof e||e instanceof String}},{}],51:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.matches=void 0,n.matches=function(e,t){return Array.isArray(t)?function(e,t,n){var r=String(t).length,i=e.substr(0,r),o=parseInt(i,10);return t=parseInt(String(t).substr(0,i.length),10),n=parseInt(String(n).substr(0,i.length),10),o>=t&&o<=n}(e,t[0],t[1]):function(e,t){return(t=String(t)).substring(0,e.length)===e.substring(0,t.length)}(e,t)}},{}],52:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Framebus=void 0;var r=e("./lib/is-not-string"),i=e("./lib/subscription-args-invalid"),o=e("./lib/broadcast"),a=e("./lib/package-payload"),s=e("./lib/constants"),c="undefined"!=typeof window&&window.Promise,l=function(){function e(e){void 0===e&&(e={}),this.origin=e.origin||"*",this.channel=e.channel||"",this.verifyDomain=e.verifyDomain,this.isDestroyed=!1,this.listeners=[]}return e.setPromise=function(t){e.Promise=t},e.target=function(t){return new e(t)},e.prototype.include=function(e){return null!=e&&null!=e.Window&&e.constructor===e.Window&&(s.childWindows.push(e),!0)},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){if(this.isDestroyed)return!1;var i=this.origin;if(e=this.namespaceEvent(e),r.isntString(e))return!1;if(r.isntString(i))return!1;"function"==typeof t&&(n=t,t=void 0)
|
||||
;var s=a.packagePayload(e,i,t,n);return!!s&&(o.broadcast(window.top||window.self,s,i),!0)},e.prototype.emitAsPromise=function(t,n){var r=this;return new e.Promise((function(e,i){r.emit(t,n,(function(t){e(t)}))||i(new Error('Listener not added for "'+t+'"'))}))},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var n=this,r=this.origin,o=t;return e=this.namespaceEvent(e),!i.subscriptionArgsInvalid(e,o,r)&&(this.verifyDomain&&(o=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.checkOrigin(this&&this.origin)&&t.apply(void 0,e)}),this.listeners.push({eventName:e,handler:o,originalHandler:t}),s.subscribers[r]=s.subscribers[r]||{},s.subscribers[r][e]=s.subscribers[r][e]||[],s.subscribers[r][e].push(o),!0)},e.prototype.off=function(e,t){var n=t;if(this.isDestroyed)return!1;if(this.verifyDomain)for(var r=0;r<this.listeners.length;r++){var o=this.listeners[r];o.originalHandler===t&&(n=o.handler)}e=this.namespaceEvent(e);var a=this.origin;if(i.subscriptionArgsInvalid(e,n,a))return!1;var c=s.subscribers[a]&&s.subscribers[a][e];if(!c)return!1;for(r=0;r<c.length;r++)if(c[r]===n)return c.splice(r,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var e=0;e<this.listeners.length;e++){var t=this.listeners[e];this.off(t.eventName,t.handler)}this.listeners.length=0}},e.prototype.checkOrigin=function(e){var t,n=document.createElement("a");return n.href=location.href,t="https:"===n.protocol?n.host.replace(/:443$/,""):"http:"===n.protocol?n.host.replace(/:80$/,""):n.host,n.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?this.channel+":"+e:e},e.Promise=c,e}();n.Framebus=l},{"./lib/broadcast":56,"./lib/constants":57,"./lib/is-not-string":60,"./lib/package-payload":62,"./lib/subscription-args-invalid":64}],53:[function(e,t,n){"use strict";var r=e("./lib/attach"),i=e("./framebus");r.attach(),t.exports=i.Framebus},{"./framebus":52,"./lib/attach":54}],54:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.detach=n.attach=void 0;var r=e("./message"),i=!1;n.attach=function(){i||"undefined"==typeof window||(i=!0,window.addEventListener("message",r.onmessage,!1))},n.detach=function(){i=!1,window.removeEventListener("message",r.onmessage,!1)}},{"./message":61}],55:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcastToChildWindows=void 0;var r=e("./broadcast"),i=e("./constants");n.broadcastToChildWindows=function(e,t,n){for(var o=i.childWindows.length-1;o>=0;o--){var a=i.childWindows[o];a.closed?i.childWindows.splice(o,1):n!==a&&r.broadcast(a.top,e,t)}}},{"./broadcast":56,"./constants":57}],56:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcast=void 0;var r=e("./has-opener");n.broadcast=function e(t,n,i){var o,a=0;try{for(t.postMessage(n,i),r.hasOpener(t)&&t.opener.top!==window.top&&e(t.opener.top,n,i);o=t.frames[a];)e(o,n,i),a++}catch(e){}}},{"./has-opener":59}],57:[function(e,t,n){"use strict"
|
||||
;Object.defineProperty(n,"__esModule",{value:!0}),n.subscribers=n.childWindows=n.prefix=void 0,n.prefix="/*framebus*/",n.childWindows=[],n.subscribers={}},{}],58:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dispatch=void 0;var r=e("./constants");n.dispatch=function(e,t,n,i,o){if(r.subscribers[e]&&r.subscribers[e][t]){var a=[];n&&a.push(n),i&&a.push(i);for(var s=0;s<r.subscribers[e][t].length;s++)r.subscribers[e][t][s].apply(o,a)}}},{"./constants":57}],59:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasOpener=void 0,n.hasOpener=function(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}},{}],60:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isntString=void 0,n.isntString=function(e){return"string"!=typeof e}},{}],61:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.onmessage=void 0;var r=e("./is-not-string"),i=e("./unpack-payload"),o=e("./dispatch"),a=e("./broadcast-to-child-windows");n.onmessage=function(e){if(!r.isntString(e.data)){var t=i.unpackPayload(e);if(t){var n=t.eventData,s=t.reply;o.dispatch("*",t.event,n,s,e),o.dispatch(e.origin,t.event,n,s,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},{"./broadcast-to-child-windows":55,"./dispatch":58,"./is-not-string":60,"./unpack-payload":65}],62:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.packagePayload=void 0;var r=e("./subscribe-replier"),i=e("./constants");n.packagePayload=function(e,t,n,o){var a,s={event:e,origin:t};"function"==typeof o&&(s.reply=r.subscribeReplier(o,t)),s.eventData=n;try{a=i.prefix+JSON.stringify(s)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},{"./constants":57,"./subscribe-replier":63}],63:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.subscribeReplier=void 0;var i=e("../framebus"),o=r(e("@braintree/uuid"));n.subscribeReplier=function(e,t){var n=o.default();return i.Framebus.target({origin:t}).on(n,(function r(o,a){e(o,a),i.Framebus.target({origin:t}).off(n,r)})),n}},{"../framebus":52,"@braintree/uuid":40}],64:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscriptionArgsInvalid=void 0;var r=e("./is-not-string");n.subscriptionArgsInvalid=function(e,t,n){return!!r.isntString(e)||"function"!=typeof t||r.isntString(n)}},{"./is-not-string":60}],65:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unpackPayload=void 0;var r=e("./constants"),i=e("./package-payload");n.unpackPayload=function(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,o=e.source,a=t.reply;t.reply=function(e){if(o){var t=i.packagePayload(a,n,e);t&&o.postMessage(t,n)}}}return t}},{"./constants":57,"./package-payload":62}],66:[function(e,t,n){"use strict"
|
||||
;var r=setTimeout;function i(e){return Boolean(e&&void 0!==e.length)}function o(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void l(t.promise,e)}c(t.promise,r)}else(1===e._state?c:l)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void p((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var r,i}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(o);return s(this,new d(e,t,n)),n},a.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},a.all=function(e){return new a((function(t,n){if(!i(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function a(e,i){try{if(i&&("object"==typeof i||"function"==typeof i)){var s=i.then;if("function"==typeof s)return void s.call(i,(function(t){a(e,t)}),n)}r[e]=i,0==--o&&t(r)}catch(e){n(e)}}for(var s=0;s<r.length;s++)a(s,r[s])}))},a.allSettled=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){o(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--i&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--i&&t(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){
|
||||
if(!i(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)a.resolve(e[r]).then(t,n)}))},a._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.exports=a},{}],67:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIos=n.isIE9=n.isSamsungBrowser=n.isAndroidChrome=n.isKitKatWebview=void 0;var r="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,i=e("@braintree/browser-detection/is-android"),o=e("@braintree/browser-detection/is-chrome-os"),a=e("@braintree/browser-detection/is-chrome"),s=e("@braintree/browser-detection/is-ios");n.isIos=s;var c=e("@braintree/browser-detection/is-ie9");n.isIE9=c;var l=/Version\/\d\.\d* Chrome\/\d*\.0\.0\.0/;n.isKitKatWebview=function(e){return void 0===e&&(e=r),i(e)&&l.test(e)},n.isAndroidChrome=function(e){return void 0===e&&(e=r),(i(e)||o(e))&&a(e)},n.isSamsungBrowser=function(e){return void 0===e&&(e=r),/SamsungBrowser/.test(e)||function(e){return!a(e)&&e.indexOf("Samsung")>-1}(e)}},{"@braintree/browser-detection/is-android":20,"@braintree/browser-detection/is-chrome":22,"@braintree/browser-detection/is-chrome-os":21,"@braintree/browser-detection/is-ie9":27,"@braintree/browser-detection/is-ios":31}],68:[function(e,t,n){"use strict";var r=e("./lib/device");t.exports=function(){return!r.isSamsungBrowser()}},{"./lib/device":67}],69:[function(e,t,n){t.exports=e("./dist/supports-input-formatting")},{"./dist/supports-input-formatting":68}],70:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./errors"),o=e("../lib/assign").assign,a=e("../lib/promise"),s=e("../lib/methods"),c=e("../lib/convert-methods-to-error"),l=e("@braintree/wrap-promise");function u(e){this._client=e.client}u.prototype.getRewardsBalance=function(e){var t,n=e.nonce;return n?(delete(t=o({_meta:{source:"american-express"},paymentMethodNonce:n},e)).nonce,this._client.request({method:"get",endpoint:"payment_methods/amex_rewards_balance",data:t}).catch((function(e){return a.reject(new r({type:i.AMEX_NETWORK_ERROR.type,code:i.AMEX_NETWORK_ERROR.code,message:"A network error occurred when getting the American Express rewards balance.",details:{originalError:e}}))}))):a.reject(new r({type:i.AMEX_NONCE_REQUIRED.type,code:i.AMEX_NONCE_REQUIRED.code,message:"getRewardsBalance must be called with a nonce."}))},u.prototype.getExpressCheckoutProfile=function(e){return e.nonce?this._client.request({method:"get",endpoint:"payment_methods/amex_express_checkout_cards/"+e.nonce,data:{_meta:{source:"american-express"},paymentMethodNonce:e.nonce}}).catch((function(e){return a.reject(new r({type:i.AMEX_NETWORK_ERROR.type,code:i.AMEX_NETWORK_ERROR.code,message:"A network error occurred when getting the American Express Checkout nonce profile.",details:{originalError:e}}))})):a.reject(new r({type:i.AMEX_NONCE_REQUIRED.type,code:i.AMEX_NONCE_REQUIRED.code,
|
||||
message:"getExpressCheckoutProfile must be called with a nonce."}))},u.prototype.teardown=function(){return c(this,s(u.prototype)),a.resolve()},t.exports=l.wrapPrototype(u)},{"../lib/assign":123,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/methods":157,"../lib/promise":159,"./errors":71,"@braintree/wrap-promise":44}],71:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={AMEX_NONCE_REQUIRED:{type:r.types.MERCHANT,code:"AMEX_NONCE_REQUIRED"},AMEX_NETWORK_ERROR:{type:r.types.NETWORK,code:"AMEX_NETWORK_ERROR"}}},{"../lib/braintree-error":126}],72:[function(e,t,n){"use strict";var r=e("./american-express"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("@braintree/wrap-promise");t.exports={create:s((function(e){var t="American Express";return i.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,new r(e)}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"./american-express":70,"@braintree/wrap-promise":44}],73:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("../lib/analytics"),o=e("./errors"),a=e("../lib/promise"),s=e("../lib/methods"),c=e("../lib/convert-methods-to-error"),l=e("@braintree/wrap-promise");function u(e){this._instantiatedWithClient=Boolean(!e.useDeferredClient),this._client=e.client,this._createPromise=e.createPromise,this._client&&this._setMerchantIdentifier()}u.prototype._waitForClient=function(){return this._client?a.resolve():this._createPromise.then(function(e){this._client=e,this._setMerchantIdentifier()}.bind(this))},u.prototype._setMerchantIdentifier=function(){var e=this._client.getConfiguration().gatewayConfiguration.applePayWeb;e&&Object.defineProperty(this,"merchantIdentifier",{value:e.merchantIdentifier,configurable:!1,writable:!1})},u.prototype.createPaymentRequest=function(e){return this._instantiatedWithClient?this._createPaymentRequestSynchronously(e):this._waitForClient().then(function(){return this._createPaymentRequestSynchronously(e)}.bind(this))},u.prototype._createPaymentRequestSynchronously=function(e){var t=this._client.getConfiguration().gatewayConfiguration.applePayWeb,n={countryCode:t.countryCode,currencyCode:t.currencyCode,merchantCapabilities:t.merchantCapabilities||["supports3DS"],supportedNetworks:t.supportedNetworks.map((function(e){return"mastercard"===e?"masterCard":e}))};return Object.assign({},n,e)},u.prototype.performValidation=function(e){var t=this;return e&&e.validationURL?this._waitForClient().then((function(){var n={validationUrl:e.validationURL,domainName:e.domainName||window.location.hostname,merchantIdentifier:e.merchantIdentifier||t.merchantIdentifier};return null!=e.displayName&&(n.displayName=e.displayName),t._client.request({method:"post",
|
||||
endpoint:"apple_pay_web/sessions",data:{_meta:{source:"apple-pay"},applePayWebSession:n}})})).then((function(e){return i.sendEvent(t._client,"applepay.performValidation.succeeded"),a.resolve(e)})).catch((function(e){return i.sendEvent(t._client,"applepay.performValidation.failed"),"CLIENT_REQUEST_ERROR"===e.code?a.reject(new r({type:o.APPLE_PAY_MERCHANT_VALIDATION_FAILED.type,code:o.APPLE_PAY_MERCHANT_VALIDATION_FAILED.code,message:o.APPLE_PAY_MERCHANT_VALIDATION_FAILED.message,details:{originalError:e.details.originalError}})):a.reject(new r({type:o.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.type,code:o.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.code,message:o.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.message,details:{originalError:e}}))})):a.reject(new r(o.APPLE_PAY_VALIDATION_URL_REQUIRED))},u.prototype.tokenize=function(e){var t=this;return e.token?this._waitForClient().then((function(){return t._client.request({method:"post",endpoint:"payment_methods/apple_payment_tokens",data:{_meta:{source:"apple-pay"},applePaymentToken:Object.assign({},e.token,{paymentData:btoa(JSON.stringify(e.token.paymentData))})}})})).then((function(e){return i.sendEvent(t._client,"applepay.tokenize.succeeded"),a.resolve(e.applePayCards[0])})).catch((function(e){return i.sendEvent(t._client,"applepay.tokenize.failed"),a.reject(new r({type:o.APPLE_PAY_TOKENIZATION.type,code:o.APPLE_PAY_TOKENIZATION.code,message:o.APPLE_PAY_TOKENIZATION.message,details:{originalError:e}}))})):a.reject(new r(o.APPLE_PAY_PAYMENT_TOKEN_REQUIRED))},u.prototype.teardown=function(){return c(this,s(u.prototype)),a.resolve()},t.exports=l.wrapPrototype(u)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/methods":157,"../lib/promise":159,"./errors":74,"@braintree/wrap-promise":44}],74:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={APPLE_PAY_NOT_ENABLED:{type:r.types.MERCHANT,code:"APPLE_PAY_NOT_ENABLED",message:"Apple Pay is not enabled for this merchant."},APPLE_PAY_VALIDATION_URL_REQUIRED:{type:r.types.MERCHANT,code:"APPLE_PAY_VALIDATION_URL_REQUIRED",message:"performValidation must be called with a validationURL."},APPLE_PAY_MERCHANT_VALIDATION_NETWORK:{type:r.types.NETWORK,code:"APPLE_PAY_MERCHANT_VALIDATION_NETWORK",message:"A network error occurred when validating the Apple Pay merchant."},APPLE_PAY_MERCHANT_VALIDATION_FAILED:{type:r.types.MERCHANT,code:"APPLE_PAY_MERCHANT_VALIDATION_FAILED",message:"Make sure you have registered your domain name in the Braintree Control Panel."},APPLE_PAY_PAYMENT_TOKEN_REQUIRED:{type:r.types.MERCHANT,code:"APPLE_PAY_PAYMENT_TOKEN_REQUIRED",message:"tokenize must be called with a payment token."},APPLE_PAY_TOKENIZATION:{type:r.types.NETWORK,code:"APPLE_PAY_TOKENIZATION",message:"A network error occurred when processing the Apple Pay payment."}}},{"../lib/braintree-error":126}],75:[function(e,t,n){"use strict"
|
||||
;var r=e("./apple-pay"),i=e("../lib/analytics"),o=e("../lib/braintree-error"),a=e("../lib/basic-component-verification"),s=e("../lib/create-assets-url"),c=e("../lib/create-deferred-client"),l=e("../lib/promise"),u=e("./errors"),d=e("@braintree/wrap-promise");t.exports={create:d((function(e){return a.verify({name:"Apple Pay",client:e.client,authorization:e.authorization}).then((function(){var t,n=c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:"Apple Pay"}).then((function(e){return e.getConfiguration().gatewayConfiguration.applePayWeb?(i.sendEvent(e,"applepay.initialized"),e):l.reject(new o(u.APPLE_PAY_NOT_ENABLED))}));return e.createPromise=n,t=new r(e),e.useDeferredClient?t:n.then((function(e){return t._client=e,t}))}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./apple-pay":73,"./errors":74,"@braintree/wrap-promise":44}],76:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-ie"),i=e("@braintree/browser-detection/is-ie9");t.exports={isIe:r,isIe9:i}},{"@braintree/browser-detection/is-ie":25,"@braintree/browser-detection/is-ie9":27}],77:[function(e,t,n){"use strict";var r=e("./constants").BRAINTREE_VERSION,i=e("./request/graphql"),o=e("./request"),a=e("../lib/is-verified-domain"),s=e("../lib/braintree-error"),c=e("../lib/convert-to-braintree-error"),l=e("./get-configuration").getConfiguration,u=e("../lib/create-authorization-data"),d=e("../lib/add-metadata"),p=e("../lib/promise"),_=e("@braintree/wrap-promise"),E=e("../lib/once"),h=e("../lib/deferred"),f=e("../lib/assign").assign,m=e("../lib/analytics"),y=e("./errors"),A=e("../lib/constants").VERSION,T=e("../lib/constants").GRAPHQL_URLS,I=e("../lib/methods"),N=e("../lib/convert-methods-to-error"),b=e("../lib/assets"),O=e("../lib/constants").FRAUDNET_FNCLS,g=e("../lib/constants").FRAUDNET_SOURCE,v=e("../lib/constants").FRAUDNET_URL,P={};function R(e){var t,n;if(e=e||{},t=JSON.stringify(e),!(n=e.gatewayConfiguration))throw new s(y.CLIENT_MISSING_GATEWAY_CONFIGURATION);["assetsUrl","clientApiUrl","configUrl"].forEach((function(e){if(e in n&&!a(n[e]))throw new s({type:y.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:y.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:e+" property is on an invalid domain."})})),this.getConfiguration=function(){return JSON.parse(t)},this._request=o,this._configuration=this.getConfiguration(),this._clientApiBaseUrl=n.clientApiUrl+"/v1/",n.graphQL&&(this._graphQL=new i({graphQL:n.graphQL}))}R.initialize=function(e){var t,n,r=P[e.authorization];if(r)return m.sendEvent(r,"custom.client.load.cached"),r;try{n=u(e.authorization)}catch(e){return p.reject(new s(y.CLIENT_INVALID_AUTHORIZATION))}return r=l(n).then((function(n){return e.debug&&(n.isDebug=!0),n.authorization=e.authorization,t=new R(n)})),P[e.authorization]=r,m.sendEvent(r,"custom.client.load.initialized"),r.then((function(e){
|
||||
return m.sendEvent(t,"custom.client.load.succeeded"),e})).catch((function(t){return delete P[e.authorization],p.reject(t)}))},R.clearCache=function(){P={}},R.prototype._findOrCreateFraudnetJSON=function(e){var t,n,r,i,o=document.querySelector('script[fncls="'+O+'"]');o||((o=document.body.appendChild(document.createElement("script"))).type="application/json",o.setAttribute("fncls",O)),t=this.getConfiguration(),n={rda_tenant:"bt_card",mid:t.gatewayConfiguration.merchantId},(r=t.authorizationFingerprint)&&r.split("&").forEach((function(e){var t=e.split("=");"customer_id"===t[0]&&t.length>1&&(n.cid=t[1])})),i={f:e.substr(0,32),fp:n,bu:!1,s:g},o.text=JSON.stringify(i)},R.prototype.request=function(e,t){var n=this,i=new p((function(t,i){var o,a,l,u,p,_=Boolean("payment_methods/credit_cards"===e.endpoint&&n.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);if("graphQLApi"!==e.api&&(e.method?e.endpoint||(o="options.endpoint"):o="options.method"),o)throw new s({type:y.CLIENT_OPTION_REQUIRED.type,code:y.CLIENT_OPTION_REQUIRED.code,message:o+" is required when making a request."});if(a="api"in e?e.api:"clientApi",u={method:e.method,graphQL:n._graphQL,timeout:e.timeout,metadata:n._configuration.analyticsMetadata},"clientApi"===a)l=n._clientApiBaseUrl,u.data=d(n._configuration,e.data);else{if("graphQLApi"!==a)throw new s({type:y.CLIENT_OPTION_INVALID.type,code:y.CLIENT_OPTION_INVALID.code,message:"options.api is invalid."});l=T[n._configuration.gatewayConfiguration.environment],e.endpoint="",u.method="post",u.data=f({clientSdkMetadata:{platform:n._configuration.analyticsMetadata.platform,source:n._configuration.analyticsMetadata.source,integration:n._configuration.analyticsMetadata.integration,sessionId:n._configuration.analyticsMetadata.sessionId,version:A}},e.data),u.headers={Authorization:"Bearer "+((p=n._configuration).authorizationFingerprint||p.authorization),"Braintree-Version":r}}u.url=l+e.endpoint,u.sendAnalyticsEvent=function(e){m.sendEvent(n,e)},n._request(u,(function(e,r,o){var l,u;(u=function(e,t){var n;if(-1===e?n=new s(y.CLIENT_REQUEST_TIMEOUT):401===e?n=new s(y.CLIENT_AUTHORIZATION_INVALID):403===e?n=new s(y.CLIENT_AUTHORIZATION_INSUFFICIENT):429===e?n=new s(y.CLIENT_RATE_LIMITED):e>=500?n=new s(y.CLIENT_GATEWAY_NETWORK):(e<200||e>=400)&&(n=c(t,{type:y.CLIENT_REQUEST_ERROR.type,code:y.CLIENT_REQUEST_ERROR.code,message:y.CLIENT_REQUEST_ERROR.message})),n)return n.details=n.details||{},n.details.httpStatus=e,n}(o,e))?i(u):"graphQLApi"===a&&r.errors?i(c(r.errors,{type:y.CLIENT_GRAPHQL_REQUEST_ERROR.type,code:y.CLIENT_GRAPHQL_REQUEST_ERROR.code,message:y.CLIENT_GRAPHQL_REQUEST_ERROR.message})):(l=f({_httpStatus:o},r),_&&l.creditCards&&l.creditCards.length>0&&(n._findOrCreateFraudnetJSON(l.creditCards[0].nonce),b.loadScript({src:v,forceScriptReload:!0})),t(l))}))}));return"function"==typeof t?(t=E(h(t)),void i.then((function(e){t(null,e,e._httpStatus)})).catch((function(e){var n=e&&e.details&&e.details.httpStatus;t(e,null,n)}))):i},R.prototype.toJSON=function(){return this.getConfiguration()},
|
||||
R.prototype.getVersion=function(){return A},R.prototype.teardown=_((function(){return delete P[this.getConfiguration().authorization],N(this,I(R.prototype)),p.resolve()})),t.exports=R},{"../lib/add-metadata":120,"../lib/analytics":121,"../lib/assets":122,"../lib/assign":123,"../lib/braintree-error":126,"../lib/constants":128,"../lib/convert-methods-to-error":129,"../lib/convert-to-braintree-error":130,"../lib/create-authorization-data":132,"../lib/deferred":134,"../lib/is-verified-domain":155,"../lib/methods":157,"../lib/once":158,"../lib/promise":159,"./constants":78,"./errors":79,"./get-configuration":80,"./request":92,"./request/graphql":90,"@braintree/wrap-promise":44}],78:[function(e,t,n){"use strict";t.exports={BRAINTREE_VERSION:"2018-05-10"}},{}],79:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN:{type:r.types.MERCHANT,code:"CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN"},CLIENT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"CLIENT_OPTION_REQUIRED"},CLIENT_OPTION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_OPTION_INVALID"},CLIENT_MISSING_GATEWAY_CONFIGURATION:{type:r.types.INTERNAL,code:"CLIENT_MISSING_GATEWAY_CONFIGURATION",message:"Missing gatewayConfiguration."},CLIENT_INVALID_AUTHORIZATION:{type:r.types.MERCHANT,code:"CLIENT_INVALID_AUTHORIZATION",message:"Authorization is invalid. Make sure your client token or tokenization key is valid."},CLIENT_GATEWAY_NETWORK:{type:r.types.NETWORK,code:"CLIENT_GATEWAY_NETWORK",message:"Cannot contact the gateway at this time."},CLIENT_REQUEST_TIMEOUT:{type:r.types.NETWORK,code:"CLIENT_REQUEST_TIMEOUT",message:"Request timed out waiting for a reply."},CLIENT_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_GRAPHQL_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_GRAPHQL_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_RATE_LIMITED:{type:r.types.MERCHANT,code:"CLIENT_RATE_LIMITED",message:"You are being rate-limited; please try again in a few minutes."},CLIENT_AUTHORIZATION_INSUFFICIENT:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INSUFFICIENT",message:"The authorization used has insufficient privileges."},CLIENT_AUTHORIZATION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INVALID",message:"Either the client token has expired and a new one should be generated or the tokenization key has been deactivated or deleted."}}},{"../lib/braintree-error":126}],80:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("../lib/promise"),o=e("@braintree/wrap-promise"),a=e("./request"),s=e("@braintree/uuid"),c=e("../lib/constants"),l=e("./errors"),u=e("./request/graphql"),d=e("../lib/constants").GRAPHQL_URLS,p=e("../lib/is-date-string-before-or-on"),_=e("./constants").BRAINTREE_VERSION;t.exports={getConfiguration:o((function(e){return new i((function(t,n){var i,o,E,h,f=s(),m={merchantAppId:window.location.host,platform:c.PLATFORM,sdkVersion:c.VERSION,source:c.SOURCE,integration:c.INTEGRATION,
|
||||
integrationType:c.INTEGRATION,sessionId:f};o=e.attrs,E=e.configUrl,o._meta=m,o.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,o.configVersion="3",h={url:E,method:"GET",data:o},o.authorizationFingerprint&&e.graphQL?(p(e.graphQL.date,_)&&(h.graphQL=new u({graphQL:{url:e.graphQL.url,features:["configuration"]}})),h.metadata=m):o.tokenizationKey&&(h.graphQL=new u({graphQL:{url:d[e.environment],features:["configuration"]}}),h.metadata=m),a(h,(function(e,a,s){var c;if(e)return c=403===s?l.CLIENT_AUTHORIZATION_INSUFFICIENT:401===s?l.CLIENT_AUTHORIZATION_INVALID:l.CLIENT_GATEWAY_NETWORK,void n(new r({type:c.type,code:c.code,message:c.message,details:{originalError:e}}));i={authorizationType:o.tokenizationKey?"TOKENIZATION_KEY":"CLIENT_TOKEN",authorizationFingerprint:o.authorizationFingerprint,analyticsMetadata:m,gatewayConfiguration:a},t(i)}))}))}))}},{"../lib/braintree-error":126,"../lib/constants":128,"../lib/is-date-string-before-or-on":153,"../lib/promise":159,"./constants":78,"./errors":79,"./request":92,"./request/graphql":90,"@braintree/uuid":40,"@braintree/wrap-promise":44}],81:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./client"),o=e("../lib/promise"),a=e("@braintree/wrap-promise"),s=e("../lib/errors");t.exports={create:a((function(e){return e.authorization?i.initialize(e):o.reject(new r({type:s.INSTANTIATION_OPTION_REQUIRED.type,code:s.INSTANTIATION_OPTION_REQUIRED.code,message:"options.authorization is required when instantiating a client."}))})),VERSION:"3.76.4"}},{"../lib/braintree-error":126,"../lib/errors":137,"../lib/promise":159,"./client":77,"@braintree/wrap-promise":44}],82:[function(e,t,n){"use strict";var r=e("../../lib/querystring"),i=e("../../lib/assign").assign,o=e("./prep-body"),a=e("./parse-body"),s=e("./xhr"),c=s.isAvailable,l=e("./graphql/request"),u=e("./default-request");t.exports={request:function(e,t){!function e(t,n,d){var p,_,E,h,f,m,y,A=t.url,T=t.graphQL,I=t.timeout,N=s.getRequestObject(),b=d,O=Boolean(T&&T.isGraphQLRequest(A,t.data));t.headers=i({"Content-Type":"application/json"},t.headers),A=(E=O?new l(t):new u(t)).getUrl(),h=E.getBody(),f=E.getMethod(),m=E.getHeaders(),"GET"===f&&(A=r.queryify(A,h),h=null),c?N.onreadystatechange=function(){if(4===N.readyState){if(0===N.status&&O)return delete t.graphQL,void e(t,n,d);if(y=a(N.responseText),_=E.adaptResponseBody(y),(p=E.determineStatus(N.status,y))>=400||p<200){if(O&&function(e){var t=!e.data&&e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"UNKNOWN"===t||"INTERNAL"===t}(y))return delete t.graphQL,void e(t,n,d);if(n<1&&function(e){return!e||408===e}(p))return n++,void e(t,n,d);b(_||"error",null,p||500)}else b(null,_,p)}}:(t.headers&&(A=r.queryify(A,m)),N.onload=function(){b(null,a(N.responseText),N.status)},N.onerror=function(){b("error",null,500)},N.onprogress=function(){},N.ontimeout=function(){b("timeout",null,-1)});try{N.open(f,A,!0)}catch(r){if(!O)throw r;return delete t.graphQL,void e(t,n,d)}N.timeout=I,c&&Object.keys(m).forEach((function(e){
|
||||
N.setRequestHeader(e,m[e])}));try{N.send(o(f,h))}catch(e){}}(e,0,t)}}},{"../../lib/assign":123,"../../lib/querystring":160,"./default-request":83,"./graphql/request":91,"./parse-body":95,"./prep-body":96,"./xhr":97}],83:[function(e,t,n){"use strict";function r(e){this._url=e.url,this._data=e.data,this._method=e.method,this._headers=e.headers}r.prototype.getUrl=function(){return this._url},r.prototype.getBody=function(){return this._data},r.prototype.getMethod=function(){return this._method},r.prototype.getHeaders=function(){return this._headers},r.prototype.adaptResponseBody=function(e){return e},r.prototype.determineStatus=function(e){return e},t.exports=r},{}],84:[function(e,t,n){"use strict";t.exports=function(){return window.navigator.userAgent}},{}],85:[function(e,t,n){"use strict";var r=e("./error"),i=e("../../../../lib/assign").assign,o={AMERICAN_EXPRESS:"American Express",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",SOLO:"Solo",UK_MAESTRO:"UK Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},a={VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro"},s={VISA:"Visa",MASTERCARD:"MasterCard",DISCOVER:"Discover",AMERICAN_EXPRESS:"American Express"},c={VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex"},l={VISA:"visa",MASTERCARD:"master",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",DINERS:"diners",INTERNATIONAL_MAESTRO:"maestro",JCB:"jcb"};function u(e,t){return e.reduce((function(e,n){return t.hasOwnProperty(n)?e.concat(t[n]):e}),[])}t.exports=function(e,t){return e.data&&!e.errors?function(e,t){var n,r=e.data.clientConfiguration;return n={environment:r.environment.toLowerCase(),clientApiUrl:r.clientApiUrl,assetsUrl:r.assetsUrl,analytics:{url:r.analyticsUrl},merchantId:r.merchantId,venmo:"off"},r.supportedFeatures&&(n.graphQL={url:t._graphQL._config.url,features:r.supportedFeatures.map((function(e){return e.toLowerCase()}))}),r.braintreeApi&&(n.braintreeApi=r.braintreeApi),r.applePayWeb&&(n.applePayWeb=r.applePayWeb,n.applePayWeb.supportedNetworks=u(r.applePayWeb.supportedCardBrands,a),delete n.applePayWeb.supportedCardBrands),r.ideal&&(n.ideal=r.ideal),r.kount&&(n.kount={kountMerchantId:r.kount.merchantId}),r.creditCard?(n.challenges=r.creditCard.challenges.map((function(e){return e.toLowerCase()})),n.creditCards={supportedCardTypes:u(r.creditCard.supportedCardBrands,o)},n.threeDSecureEnabled=r.creditCard.threeDSecureEnabled,n.threeDSecure=r.creditCard.threeDSecure):(n.challenges=[],n.creditCards={supportedCardTypes:[]},n.threeDSecureEnabled=!1),r.googlePay&&(n.androidPay={displayName:r.googlePay.displayName,enabled:!0,environment:r.googlePay.environment.toLowerCase(),googleAuthorizationFingerprint:r.googlePay.googleAuthorization,paypalClientId:r.googlePay.paypalClientId,supportedNetworks:u(r.googlePay.supportedCardBrands,c)}),r.venmo&&(n.payWithVenmo={merchantId:r.venmo.merchantId,accessToken:r.venmo.accessToken,environment:r.venmo.environment.toLowerCase()}),r.paypal?(n.paypalEnabled=!0,
|
||||
n.paypal=i({},r.paypal),n.paypal.currencyIsoCode=n.paypal.currencyCode,n.paypal.environment=n.paypal.environment.toLowerCase(),delete n.paypal.currencyCode):n.paypalEnabled=!1,r.unionPay&&(n.unionPay={enabled:!0,merchantAccountId:r.unionPay.merchantAccountId}),r.visaCheckout&&(n.visaCheckout={apikey:r.visaCheckout.apiKey,externalClientId:r.visaCheckout.externalClientId,supportedCardTypes:u(r.visaCheckout.supportedCardBrands,s)}),r.masterpass&&(n.masterpass={merchantCheckoutId:r.masterpass.merchantCheckoutId,supportedNetworks:u(r.masterpass.supportedCardBrands,l)}),r.usBankAccount&&(n.usBankAccount={routeId:r.usBankAccount.routeId,plaid:{publicKey:r.usBankAccount.plaidPublicKey}}),n}(e,t):r(e)}},{"../../../../lib/assign":123,"./error":87}],86:[function(e,t,n){"use strict";var r=e("./error"),i={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"Union Pay",VISA:"Visa"},o={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},a={PSDTWO:"psd2"};t.exports=function(e){return e.data&&!e.errors?(s=e.data.tokenizeCreditCard,c=s.creditCard,l=c.last4?c.last4.substr(2,4):"",(u=c.binData)&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach((function(e){u[e]?u[e]=o[u[e]]:u[e]="Unknown"})),["issuingBank","countryOfIssuance","productId"].forEach((function(e){u[e]||(u[e]="Unknown")}))),t={creditCards:[{binData:u,consumed:!1,description:l?"ending in "+l:"",nonce:s.token,details:{cardholderName:c.cardholderName,expirationMonth:c.expirationMonth,expirationYear:c.expirationYear,bin:c.bin||"",cardType:i[c.brandCode]||"Unknown",lastFour:c.last4||"",lastTwo:l},type:"CreditCard",threeDSecureInfo:null}]},s.authenticationInsight&&(n=s.authenticationInsight.customerAuthenticationRegulationEnvironment,t.creditCards[0].authenticationInsight={regulationEnvironment:a[n]||n.toLowerCase()}),t):r(e);var t,n,s,c,l,u}},{"./error":87}],87:[function(e,t,n){"use strict";t.exports=function(e){var t=e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"VALIDATION"===t?function(e){var t,n,r=function(e){var t=[];return e.forEach((function(e){e.extensions&&e.extensions.inputPath&&function e(t,n,r){var i,o=n.extensions.legacyCode,a=t[0];1!==t.length?(r.forEach((function(e){e.field===a&&(i=e)})),i||(i={field:a,fieldErrors:[]},r.push(i)),e(t.slice(1),n,i.fieldErrors)):r.push({code:o,field:a,message:n.message})}(e.extensions.inputPath.slice(1),e,t)})),t}(e.errors);return 0===r.length?{error:{message:e.errors[0].message}}:{error:{message:(t=r,n=t[0].field,{creditCard:"Credit card is invalid"}[n])},fieldErrors:r}}(e):t?function(e){return{error:{message:e.errors[0].message},fieldErrors:[]}}(e):{error:{message:"There was a problem serving your request"},fieldErrors:[]}}},{}],88:[function(e,t,n){"use strict";t.exports=function(){return{
|
||||
query:"query ClientConfiguration { clientConfiguration { analyticsUrl environment merchantId assetsUrl clientApiUrl creditCard { supportedCardBrands challenges threeDSecureEnabled threeDSecure { cardinalAuthenticationJWT } } applePayWeb { countryCode currencyCode merchantIdentifier supportedCardBrands } googlePay { displayName supportedCardBrands environment googleAuthorization paypalClientId } ideal { routeId assetsUrl } kount { merchantId } masterpass { merchantCheckoutId supportedCardBrands } paypal { displayName clientId privacyUrl userAgreementUrl assetsUrl environment environmentNoNetwork unvettedMerchant braintreeClientId billingAgreementsEnabled merchantAccountId currencyCode payeeEmail } unionPay { merchantAccountId } usBankAccount { routeId plaidPublicKey } venmo { merchantId accessToken environment } visaCheckout { apiKey externalClientId supportedCardBrands } braintreeApi { accessToken url } supportedFeatures } }",operationName:"ClientConfiguration"}}},{}],89:[function(e,t,n){"use strict";var r=e("../../../../lib/assign").assign;function i(e,t){var n=e.creditCard,i=n&&n.billingAddress,o=n&&n.expirationDate,a=n&&(n.expirationMonth||o&&o.split("/")[0].trim()),s=n&&(n.expirationYear||o&&o.split("/")[1].trim()),c={input:{creditCard:{number:n&&n.number,expirationMonth:a,expirationYear:s,cvv:n&&n.cvv,cardholderName:n&&n.cardholderName},options:{}}};return t.hasAuthenticationInsight&&(c.authenticationInsightInput={merchantAccountId:e.merchantAccountId}),i&&(c.input.creditCard.billingAddress=i),c.input=function(e,t){var n;return e.creditCard&&e.creditCard.options&&"boolean"==typeof e.creditCard.options.validate?n=e.creditCard.options.validate:e.authorizationFingerprint&&e.tokenizationKey||e.authorizationFingerprint?n=!0:e.tokenizationKey&&(n=!1),"boolean"==typeof n&&(t.options=r({validate:n},t.options)),t}(e,c.input),c}t.exports=function(e){var t,n,r,o={hasAuthenticationInsight:Boolean(e.authenticationInsight&&e.merchantAccountId)};return{query:(t=o,n=t.hasAuthenticationInsight,r="mutation TokenizeCreditCard($input: TokenizeCreditCardInput!",n&&(r+=", $authenticationInsightInput: AuthenticationInsightInput!"),r+=") { tokenizeCreditCard(input: $input) { token creditCard { bin brandCode last4 cardholderName expirationMonth expirationYear binData { prepaid healthcare debit durbinRegulated commercial payroll issuingBank countryOfIssuance productId } } ",n&&(r+=" authenticationInsight(input: $authenticationInsightInput) { customerAuthenticationRegulationEnvironment }"),r+=" } }"),
|
||||
variables:i(e,o),operationName:"TokenizeCreditCard"}}},{"../../../../lib/assign":123}],90:[function(e,t,n){"use strict";var r=e("../../browser-detection"),i={tokenize_credit_cards:"payment_methods/credit_cards",configuration:"configuration"},o=["creditCard.options.unionPayEnrollment"];function a(e){this._config=e.graphQL}a.prototype.getGraphQLEndpoint=function(){return this._config.url},a.prototype.isGraphQLRequest=function(e,t){var n,a=this.getClientApiPath(e);return!(!this._isGraphQLEnabled()||!a||r.isIe9())&&(n=this._config.features.some((function(e){return i[e]===a})),!function(e){return o.some((function(t){return void 0!==t.split(".").reduce((function(e,t){return e&&e[t]}),e)}))}(t)&&n)},a.prototype.getClientApiPath=function(e){var t,n=e.split("/client_api/v1/");return n.length>1&&(t=n[1].split("?")[0]),t},a.prototype._isGraphQLEnabled=function(){return Boolean(this._config)},t.exports=a},{"../../browser-detection":76}],91:[function(e,t,n){"use strict";var r=e("../../constants").BRAINTREE_VERSION,i=e("../../../lib/assign").assign,o=e("./generators/credit-card-tokenization"),a=e("./adapters/credit-card-tokenization"),s=e("./generators/configuration"),c=e("./adapters/configuration"),l={"payment_methods/credit_cards":o,configuration:s},u={"payment_methods/credit_cards":a,configuration:c};function d(e){var t=e.graphQL.getClientApiPath(e.url);this._graphQL=e.graphQL,this._data=e.data,this._method=e.method,this._headers=e.headers,this._clientSdkMetadata={source:e.metadata.source,integration:e.metadata.integration,sessionId:e.metadata.sessionId},this._sendAnalyticsEvent=e.sendAnalyticsEvent||Function.prototype,this._generator=l[t],this._adapter=u[t],this._sendAnalyticsEvent("graphql.init")}d.prototype.getUrl=function(){return this._graphQL.getGraphQLEndpoint()},d.prototype.getBody=function(){var e=function e(t){var n={};return Object.keys(t).forEach((function(r){var i,o=-1===(i=r).indexOf("_")?i:i.toLowerCase().replace(/(\_\w)/g,(function(e){return e[1].toUpperCase()}));"object"==typeof t[r]?n[o]=e(t[r]):"number"==typeof t[r]?n[o]=String(t[r]):n[o]=t[r]})),n}(this._data),t=this._generator(e),n=i({clientSdkMetadata:this._clientSdkMetadata},t);return JSON.stringify(n)},d.prototype.getMethod=function(){return"POST"},d.prototype.getHeaders=function(){var e,t;return this._data.authorizationFingerprint?(this._sendAnalyticsEvent("graphql.authorization-fingerprint"),e=this._data.authorizationFingerprint):(this._sendAnalyticsEvent("graphql.tokenization-key"),e=this._data.tokenizationKey),t={Authorization:"Bearer "+e,"Braintree-Version":r},i({},this._headers,t)},d.prototype.adaptResponseBody=function(e){return this._adapter(e,this)},d.prototype.determineStatus=function(e,t){var n,r;return 200===e?(r=t.errors&&t.errors[0]&&t.errors[0].extensions&&t.errors[0].extensions.errorClass,n=t.data&&!t.errors?200:"VALIDATION"===r?422:"AUTHORIZATION"===r?403:"AUTHENTICATION"===r?401:function(e,t){return!e&&t.errors[0].message}(r,t)?403:500):n=e||500,this._sendAnalyticsEvent("graphql.status."+e),
|
||||
this._sendAnalyticsEvent("graphql.determinedStatus."+n),n},t.exports=d},{"../../../lib/assign":123,"../../constants":78,"./adapters/configuration":85,"./adapters/credit-card-tokenization":86,"./generators/configuration":88,"./generators/credit-card-tokenization":89}],92:[function(e,t,n){"use strict";var r,i=e("../../lib/once"),o=e("./jsonp-driver"),a=e("./ajax-driver"),s=e("./get-user-agent"),c=e("./is-http");t.exports=function(e,t){t=i(t||Function.prototype),e.method=(e.method||"GET").toUpperCase(),e.timeout=null==e.timeout?6e4:e.timeout,e.data=e.data||{},null==r&&(r=!(c()&&/MSIE\s(8|9)/.test(s()))),r?a.request(e,t):o.request(e,t)}},{"../../lib/once":158,"./ajax-driver":82,"./get-user-agent":84,"./is-http":93,"./jsonp-driver":94}],93:[function(e,t,n){"use strict";t.exports=function(){return"http:"===window.location.protocol}},{}],94:[function(e,t,n){"use strict";var r,i=e("@braintree/uuid"),o=e("../../lib/querystring"),a={};function s(e){try{delete window[e]}catch(t){window[e]=null}}t.exports={request:function(e,t){var n,c="callback_json_"+i().replace(/-/g,""),l=e.url,u=e.data,d=e.method,p=e.timeout;l=o.queryify(l,u),function(e,t,n){window[n]=function(r){var i=r.status||500,o=null,c=null;delete r.status,i>=400||i<200?o=r:c=r,s(n),function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}(e),clearTimeout(a[n]),t(o,c,i)}}(n=function(e,t){var n=document.createElement("script"),r=!1;return n.src=e,n.async=!0,n.onerror=function(){window[t]({message:"error",status:500})},n.onload=n.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,n.onload=n.onreadystatechange=null)},n}(l=o.queryify(l,{_method:d,callback:c}),c),t,c),function(e,t){a[t]=setTimeout((function(){a[t]=null,window[t]({error:"timeout",status:-1}),window[t]=function(){s(t)}}),e)}(p,c),r||(r=document.getElementsByTagName("head")[0]),r.appendChild(n)}}},{"../../lib/querystring":160,"@braintree/uuid":40}],95:[function(e,t,n){"use strict";t.exports=function(e){try{e=JSON.parse(e)}catch(e){}return e}},{}],96:[function(e,t,n){"use strict";t.exports=function(e,t){if("string"!=typeof e)throw new Error("Method must be a string");return"get"!==e.toLowerCase()&&null!=t&&(t="string"==typeof t?t:JSON.stringify(t)),t}},{}],97:[function(e,t,n){"use strict";var r="undefined"!=typeof window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest;t.exports={isAvailable:r,getRequestObject:function(){return r?new window.XMLHttpRequest:new window.XDomainRequest}}},{}],98:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={DATA_COLLECTOR_KOUNT_NOT_ENABLED:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_KOUNT_NOT_ENABLED",message:"Kount is not enabled for this merchant."},DATA_COLLECTOR_KOUNT_ERROR:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_KOUNT_ERROR"},DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",message:"Data Collector must be created with Kount and/or PayPal."}}},{"../lib/braintree-error":126}],99:[function(e,t,n){
|
||||
"use strict";var r,i=e("../lib/constants").FRAUDNET_FNCLS,o=e("../lib/constants").FRAUDNET_SOURCE,a=e("../lib/constants").FRAUDNET_URL,s=e("../lib/assets").loadScript,c=e("../lib/promise");function l(){}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}l.prototype.initialize=function(e){var t,n,c=this;return this.sessionId=r=function(){var e,t="";for(e=0;e<32;e++)t+=Math.floor(16*Math.random()).toString(16);return t}(),this._beaconId=(t=this.sessionId,n=(new Date).getTime()/1e3,"https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p="+t+"&t="+n+"&a=14"),this._parameterBlock=function(e,t,n){var r=document.body.appendChild(document.createElement("script")),a={f:e,s:o,b:t};return"production"!==n&&(a.sandbox=!0),r.type="application/json",r.setAttribute("fncls",i),r.text=JSON.stringify(a),r}(this.sessionId,this._beaconId,e),s({src:a}).then((function(e){return c._thirdPartyBlock=e,c})).catch((function(){return null}))},l.prototype.teardown=function(){u(document.querySelector('iframe[title="ppfniframe"]')),u(document.querySelector('iframe[title="pbf"]')),u(this._parameterBlock),u(this._thirdPartyBlock)},t.exports={setup:function(e){var t=new l;return r?(t.sessionId=r,c.resolve(t)):t.initialize(e)},clearSessionIdCache:function(){r=null}}},{"../lib/assets":122,"../lib/constants":128,"../lib/promise":159}],100:[function(e,t,n){"use strict";var r=e("./kount"),i=e("./fraudnet"),o=e("../lib/braintree-error"),a=e("../lib/basic-component-verification"),s=e("../lib/create-deferred-client"),c=e("../lib/create-assets-url"),l=e("../lib/methods"),u=e("../lib/convert-methods-to-error"),d=e("../lib/promise"),p=e("@braintree/wrap-promise"),_=e("./errors");t.exports={create:p((function(e){var t,n="Data Collector",E={_instances:[]};return a.verify({name:n,client:e.client,authorization:e.authorization}).then((function(){return E._instantiatedWithAClient=!e.useDeferredClient,E._createPromise=s.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:n}).then((function(n){var i,a=n.getConfiguration();if(!0===e.kount&&a.gatewayConfiguration.kount){try{i=r.setup({environment:a.gatewayConfiguration.environment,merchantId:a.gatewayConfiguration.kount.kountMerchantId})}catch(e){return d.reject(new o({type:_.DATA_COLLECTOR_KOUNT_ERROR.type,code:_.DATA_COLLECTOR_KOUNT_ERROR.code,message:e.message}))}t=i.deviceData,E._instances.push(i)}else t={};return d.resolve(n)})).then((function(e){return i.setup(e.getConfiguration().gatewayConfiguration.environment).then((function(e){e&&(t.correlation_id=e.sessionId,E._instances.push(e))}))})).then((function(){return 0===E._instances.length?d.reject(new o(_.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)):(E.deviceData=JSON.stringify(t),E.rawDeviceData=t,E)})),E.teardown=function(e){return p((function(){return e._createPromise.then((function(){e._instances.forEach((function(e){e&&e.teardown()})),u(e,l(e))}))}))}(E),E.getDeviceData=function(e){return p((function(t){return t=t||{},e._createPromise.then((function(){
|
||||
return t.raw?d.resolve(e.rawDeviceData):d.resolve(e.deviceData)}))}))}(E),E._instantiatedWithAClient?E._createPromise:E}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/methods":157,"../lib/promise":159,"./errors":98,"./fraudnet":99,"./kount":101,"@braintree/wrap-promise":44}],101:[function(e,t,n){"use strict";var r=e("./vendor/sjcl"),i=e("../lib/camel-case-to-snake-case"),o="https://assets.qa.braintreepayments.com/data",a={development:o,qa:o,sandbox:"https://assets.braintreegateway.com/sandbox/data",production:"https://assets.braintreegateway.com/data"},s={};function c(e){var t=c.getCachedDeviceData(e.merchantId);if(t)return this.deviceData=t,void(this._isCached=!0);this._currentEnvironment=this._initializeEnvironment(e),r.random.startCollectors(),this._deviceSessionId=this._generateDeviceSessionId(),this.deviceData=this._getDeviceData(),c.setCachedDeviceData(e.merchantId,this.deviceData),this._iframe=this._setupIFrame()}c.getCachedDeviceData=function(e){return s[e]},c.setCachedDeviceData=function(e,t){s[e]=t},c.prototype.teardown=function(){this._isCached||(r.random.stopCollectors(),this._removeIframe())},c.prototype._removeIframe=function(){this._iframe.parentNode.removeChild(this._iframe)},c.prototype._getDeviceData=function(){return i({deviceSessionId:this._deviceSessionId,fraudMerchantId:this._currentEnvironment.id})},c.prototype._generateDeviceSessionId=function(){var e;return e=r.random.randomWords(4,0),r.codec.hex.fromBits(e)},c.prototype._setupIFrame=function(){var e,t,n=this;return e="?m="+this._currentEnvironment.id+"&s="+this._deviceSessionId,(t=document.createElement("iframe")).width=1,t.id="braintreeDataFrame-"+this._deviceSessionId,t.height=1,t.frameBorder=0,t.scrolling="no",t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",t.title="Braintree-Kount-iframe",t.setAttribute("aria-hidden","true"),document.body.appendChild(t),setTimeout((function(){t.src=n._currentEnvironment.url+"/logo.htm"+e,t.innerHTML='<img src="'+n._currentEnvironment.url+"/logo.gif"+e+'" alt="" />'}),10),t},c.prototype._initializeEnvironment=function(e){var t=a[e.environment];if(null==t)throw new Error(e.environment+" is not a valid environment for kount.environment");return{url:t,name:e.environment,id:e.merchantId}},t.exports={setup:function(e){return new c(null!=e?e:{})},Kount:c,environmentUrls:a}},{"../lib/camel-case-to-snake-case":127,"./vendor/sjcl":102}],102:[function(e,t,n){"use strict";var r={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(e){this.toString=function(){return"CORRUPT: "+this.message},this.message=e},invalid:function(e){this.toString=function(){return"INVALID: "+this.message},this.message=e},bug:function(e){this.toString=function(){return"BUG: "+this.message},this.message=e},notReady:function(e){this.toString=function(){return"NOT READY: "+this.message},this.message=e}}};function i(e,t,n){
|
||||
if(4!==t.length)throw new r.exception.invalid("invalid aes block size");var i=e.b[n],o=t[0]^i[0],a=t[n?3:1]^i[1],s=t[2]^i[2];t=t[n?1:3]^i[3];var c,l,u,d,p=i.length/4-2,_=4,E=[0,0,0,0];e=(c=e.l[n])[0];var h=c[1],f=c[2],m=c[3],y=c[4];for(d=0;d<p;d++)c=e[o>>>24]^h[a>>16&255]^f[s>>8&255]^m[255&t]^i[_],l=e[a>>>24]^h[s>>16&255]^f[t>>8&255]^m[255&o]^i[_+1],u=e[s>>>24]^h[t>>16&255]^f[o>>8&255]^m[255&a]^i[_+2],t=e[t>>>24]^h[o>>16&255]^f[a>>8&255]^m[255&s]^i[_+3],_+=4,o=c,a=l,s=u;for(d=0;4>d;d++)E[n?3&-d:d]=y[o>>>24]<<24^y[a>>16&255]<<16^y[s>>8&255]<<8^y[255&t]^i[_++],c=o,o=a,a=s,s=t,t=c;return E}function o(e,t){var n,r,i,o=e.u,a=e.b,s=o[0],c=o[1],l=o[2],u=o[3],d=o[4],p=o[5],_=o[6],E=o[7];for(n=0;64>n;n++)16>n?r=t[n]:(r=t[n+1&15],i=t[n+14&15],r=t[15&n]=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(i>>>17^i>>>19^i>>>10^i<<15^i<<13)+t[15&n]+t[n+9&15]|0),r=r+E+(d>>>6^d>>>11^d>>>25^d<<26^d<<21^d<<7)+(_^d&(p^_))+a[n],E=_,_=p,p=d,d=u+r|0,u=l,l=c,s=r+((c=s)&l^u&(c^l))+(c>>>2^c>>>13^c>>>22^c<<30^c<<19^c<<10)|0;o[0]=o[0]+s|0,o[1]=o[1]+c|0,o[2]=o[2]+l|0,o[3]=o[3]+u|0,o[4]=o[4]+d|0,o[5]=o[5]+p|0,o[6]=o[6]+_|0,o[7]=o[7]+E|0}function a(e,t){var n,i=r.random.B[e],o=[];for(n in i)i.hasOwnProperty(n)&&o.push(i[n]);for(n=0;n<o.length;n++)o[n](t)}function s(e,t){"undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now?e.addEntropy(window.performance.now(),t,"loadtime"):e.addEntropy((new Date).valueOf(),t,"loadtime")}function c(e){e.b=l(e).concat(l(e)),e.C=new r.cipher.aes(e.b)}function l(e){for(var t=0;4>t&&(e.g[t]=e.g[t]+1|0,!e.g[t]);t++);return e.C.encrypt(e.g)}function u(e,t){return function(){t.apply(e,arguments)}}r.cipher.aes=function(e){this.l[0][0][0]||this.G();var t,n,i,o,a=this.l[0][4],s=this.l[1],c=1;if(4!==(t=e.length)&&6!==t&&8!==t)throw new r.exception.invalid("invalid aes key size");for(this.b=[i=e.slice(0),o=[]],e=t;e<4*t+28;e++)n=i[e-1],(0==e%t||8===t&&4==e%t)&&(n=a[n>>>24]<<24^a[n>>16&255]<<16^a[n>>8&255]<<8^a[255&n],0==e%t&&(n=n<<8^n>>>24^c<<24,c=c<<1^283*(c>>7))),i[e]=i[e-t]^n;for(t=0;e;t++,e--)n=i[3&t?e:e-4],o[t]=4>=e||4>t?n:s[0][a[n>>>24]]^s[1][a[n>>16&255]]^s[2][a[n>>8&255]]^s[3][a[255&n]]},r.cipher.aes.prototype={encrypt:function(e){return i(this,e,0)},decrypt:function(e){return i(this,e,1)},l:[[[],[],[],[],[]],[[],[],[],[],[]]],G:function(){var e,t,n,r,i,o,a,s=this.l[0],c=this.l[1],l=s[4],u=c[4],d=[],p=[];for(e=0;256>e;e++)p[(d[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!l[t];t^=r||1,n=p[n]||1)for(o=(o=n^n<<1^n<<2^n<<3^n<<4)>>8^255&o^99,l[t]=o,u[o]=t,a=16843009*(i=d[e=d[r=d[t]]])^65537*e^257*r^16843008*t,i=257*d[o]^16843008*o,e=0;4>e;e++)s[e][t]=i=i<<24^i>>>8,c[e][o]=a=a<<24^a>>>8;for(e=0;5>e;e++)s[e]=s[e].slice(0),c[e]=c[e].slice(0)}},r.bitArray={bitSlice:function(e,t,n){return e=r.bitArray.M(e.slice(t/32),32-(31&t)).slice(1),void 0===n?e:r.bitArray.clamp(e,n-t)},extract:function(e,t,n){var r=Math.floor(-t-n&31);return(-32&(t+n-1^t)?e[t/32|0]<<32-r^e[t/32+1|0]>>>r:e[t/32|0]>>>r)&(1<<n)-1},concat:function(e,t){if(0===e.length||0===t.length)return e.concat(t);var n=e[e.length-1],i=r.bitArray.getPartial(n)
|
||||
;return 32===i?e.concat(t):r.bitArray.M(t,i,0|n,e.slice(0,e.length-1))},bitLength:function(e){var t=e.length;return 0===t?0:32*(t-1)+r.bitArray.getPartial(e[t-1])},clamp:function(e,t){if(32*e.length<t)return e;var n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,0<n&&t&&(e[n-1]=r.bitArray.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:function(e,t,n){return 32===e?t:(n?0|t:t<<32-e)+1099511627776*e},getPartial:function(e){return Math.round(e/1099511627776)||32},equal:function(e,t){if(r.bitArray.bitLength(e)!==r.bitArray.bitLength(t))return!1;var n,i=0;for(n=0;n<e.length;n++)i|=e[n]^t[n];return 0===i},M:function(e,t,n,i){var o;for(o=0,void 0===i&&(i=[]);32<=t;t-=32)i.push(n),n=0;if(0===t)return i.concat(e);for(o=0;o<e.length;o++)i.push(n|e[o]>>>t),n=e[o]<<32-t;return o=e.length?e[e.length-1]:0,e=r.bitArray.getPartial(o),i.push(r.bitArray.partial(t+e&31,32<t+e?n:i.pop(),1)),i},Y:function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]},byteswapM:function(e){var t,n;for(t=0;t<e.length;++t)n=e[t],e[t]=n>>>24|n>>>8&65280|(65280&n)<<8|n<<24;return e}},r.codec.utf8String={fromBits:function(e){var t,n,i="",o=r.bitArray.bitLength(e);for(t=0;t<o/8;t++)0==(3&t)&&(n=e[t/4]),i+=String.fromCharCode(n>>>8>>>8>>>8),n<<=8;return decodeURIComponent(escape(i))},toBits:function(e){e=unescape(encodeURIComponent(e));var t,n=[],i=0;for(t=0;t<e.length;t++)i=i<<8|e.charCodeAt(t),3==(3&t)&&(n.push(i),i=0);return 3&t&&n.push(r.bitArray.partial(8*(3&t),i)),n}},r.codec.hex={fromBits:function(e){var t,n="";for(t=0;t<e.length;t++)n+=(0xf00000000000+(0|e[t])).toString(16).substr(4);return n.substr(0,r.bitArray.bitLength(e)/4)},toBits:function(e){var t,n,i=[];for(n=(e=e.replace(/\s|0x/g,"")).length,e+="00000000",t=0;t<e.length;t+=8)i.push(0^parseInt(e.substr(t,8),16));return r.bitArray.clamp(i,4*n)}},r.hash.sha256=function(e){this.b[0]||this.G(),e?(this.u=e.u.slice(0),this.o=e.o.slice(0),this.h=e.h):this.reset()},r.hash.sha256.hash=function(e){return(new r.hash.sha256).update(e).finalize()},r.hash.sha256.prototype={blockSize:512,reset:function(){return this.u=this.K.slice(0),this.o=[],this.h=0,this},update:function(e){"string"==typeof e&&(e=r.codec.utf8String.toBits(e));var t,n=this.o=r.bitArray.concat(this.o,e);if(t=this.h,9007199254740991<(e=this.h=t+r.bitArray.bitLength(e)))throw new r.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!=typeof Uint32Array){var i=new Uint32Array(n),a=0;for(t=512+t-(512+t&511);t<=e;t+=512)o(this,i.subarray(16*a,16*(a+1))),a+=1;n.splice(0,16*a)}else for(t=512+t-(512+t&511);t<=e;t+=512)o(this,n.splice(0,16));return this},finalize:function(){var e,t=this.o,n=this.u;for(e=(t=r.bitArray.concat(t,[r.bitArray.partial(1,1)])).length+2;15&e;e++)t.push(0);for(t.push(Math.floor(this.h/4294967296)),t.push(0|this.h);t.length;)o(this,t.splice(0,16));return this.reset(),n},K:[],b:[],G:function(){function e(e){return 4294967296*(e-Math.floor(e))|0}for(var t,n,r=0,i=2;64>r;i++){for(n=!0,t=2;t*t<=i;t++)if(0==i%t){n=!1;break}n&&(8>r&&(this.K[r]=e(Math.pow(i,.5))),this.b[r]=e(Math.pow(i,1/3)),r++)}}},
|
||||
r.prng=function(e){this.c=[new r.hash.sha256],this.i=[0],this.H=0,this.v={},this.F=0,this.J={},this.L=this.f=this.j=this.T=0,this.b=[0,0,0,0,0,0,0,0],this.g=[0,0,0,0],this.C=void 0,this.D=e,this.s=!1,this.B={progress:{},seeded:{}},this.m=this.S=0,this.w=1,this.A=2,this.O=65536,this.I=[0,48,64,96,128,192,256,384,512,768,1024],this.P=3e4,this.N=80},r.prng.prototype={randomWords:function(e,t){var n,i,o=[];if((n=this.isReady(t))===this.m)throw new r.exception.notReady("generator isn't seeded");if(n&this.A){n=!(n&this.w),i=[];var a,s=0;for(this.L=i[0]=(new Date).valueOf()+this.P,a=0;16>a;a++)i.push(4294967296*Math.random()|0);for(a=0;a<this.c.length&&(i=i.concat(this.c[a].finalize()),s+=this.i[a],this.i[a]=0,n||!(this.H&1<<a));a++);for(this.H>=1<<this.c.length&&(this.c.push(new r.hash.sha256),this.i.push(0)),this.f-=s,s>this.j&&(this.j=s),this.H++,this.b=r.hash.sha256.hash(this.b.concat(i)),this.C=new r.cipher.aes(this.b),n=0;4>n&&(this.g[n]=this.g[n]+1|0,!this.g[n]);n++);}for(n=0;n<e;n+=4)0==(n+1)%this.O&&c(this),i=l(this),o.push(i[0],i[1],i[2],i[3]);return c(this),o.slice(0,e)},setDefaultParanoia:function(e,t){if(0===e&&"Setting paranoia=0 will ruin your security; use it only for testing"!==t)throw new r.exception.invalid("Setting paranoia=0 will ruin your security; use it only for testing");this.D=e},addEntropy:function(e,t,n){n=n||"user";var i,o,s=(new Date).valueOf(),c=this.v[n],l=this.isReady(),u=0;switch(void 0===(i=this.J[n])&&(i=this.J[n]=this.T++),void 0===c&&(c=this.v[n]=0),this.v[n]=(this.v[n]+1)%this.c.length,typeof e){case"number":void 0===t&&(t=1),this.c[c].update([i,this.F++,1,t,s,1,0|e]);break;case"object":if("[object Uint32Array]"===(n=Object.prototype.toString.call(e))){for(o=[],n=0;n<e.length;n++)o.push(e[n]);e=o}else for("[object Array]"!==n&&(u=1),n=0;n<e.length&&!u;n++)"number"!=typeof e[n]&&(u=1);if(!u){if(void 0===t)for(n=t=0;n<e.length;n++)for(o=e[n];0<o;)t++,o>>>=1;this.c[c].update([i,this.F++,2,t,s,e.length].concat(e))}break;case"string":void 0===t&&(t=e.length),this.c[c].update([i,this.F++,3,t,s,e.length]),this.c[c].update(e);break;default:u=1}if(u)throw new r.exception.bug("random: addEntropy only supports number, array of numbers or string");this.i[c]+=t,this.f+=t,l===this.m&&(this.isReady()!==this.m&&a("seeded",Math.max(this.j,this.f)),a("progress",this.getProgress()))},isReady:function(e){return e=this.I[void 0!==e?e:this.D],this.j&&this.j>=e?this.i[0]>this.N&&(new Date).valueOf()>this.L?this.A|this.w:this.w:this.f>=e?this.A|this.m:this.m},getProgress:function(e){return e=this.I[e||this.D],this.j>=e||this.f>e?1:this.f/e},startCollectors:function(){if(!this.s){if(this.a={loadTimeCollector:u(this,this.V),mouseCollector:u(this,this.W),keyboardCollector:u(this,this.U),accelerometerCollector:u(this,this.R),touchCollector:u(this,this.X)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),
|
||||
window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else{if(!document.attachEvent)throw new r.exception.bug("can't attach event");document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector)}this.s=!0}},stopCollectors:function(){this.s&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.s=!1)},addEventListener:function(e,t){this.B[e][this.S++]=t},removeEventListener:function(e,t){var n,r,i=this.B[e],o=[];for(r in i)i.hasOwnProperty(r)&&i[r]===t&&o.push(r);for(n=0;n<o.length;n++)delete i[r=o[n]]},U:function(){s(this,1)},W:function(e){var t,n;try{t=e.x||e.clientX||e.offsetX||0,n=e.y||e.clientY||e.offsetY||0}catch(e){n=t=0}0!=t&&0!=n&&this.addEntropy([t,n],2,"mouse"),s(this,0)},X:function(e){e=e.touches[0]||e.changedTouches[0],this.addEntropy([e.pageX||e.clientX,e.pageY||e.clientY],1,"touch"),s(this,0)},V:function(){s(this,2)},R:function(e){if(e=e.accelerationIncludingGravity.x||e.accelerationIncludingGravity.y||e.accelerationIncludingGravity.z,window.orientation){var t=window.orientation;"number"==typeof t&&this.addEntropy(t,1,"accelerometer")}e&&this.addEntropy(e,2,"accelerometer"),s(this,0)}},r.random=new r.prng(6);e:try{var d,p,_,E;if(E=void 0!==t&&t.exports){var h;try{h=e("crypto")}catch(e){h=null}E=p=h}if(E&&p.randomBytes)d=p.randomBytes(128),d=new Uint32Array(new Uint8Array(d).buffer),r.random.addEntropy(d,1024,"crypto['randomBytes']");else if("undefined"!=typeof window&&"undefined"!=typeof Uint32Array){if(_=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(_);else{if(!window.msCrypto||!window.msCrypto.getRandomValues)break e;window.msCrypto.getRandomValues(_)}r.random.addEntropy(_,1024,"crypto['getRandomValues']")}}catch(e){"undefined"!=typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(e))}void 0!==t&&t.exports&&(t.exports=r)},{crypto:void 0}],103:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={GOOGLE_PAYMENT_NOT_ENABLED:{type:r.types.MERCHANT,code:"GOOGLE_PAYMENT_NOT_ENABLED",message:"Google Pay is not enabled for this merchant."},GOOGLE_PAYMENT_GATEWAY_ERROR:{code:"GOOGLE_PAYMENT_GATEWAY_ERROR",message:"There was an error when tokenizing the Google Pay payment method.",type:r.types.UNKNOWN},GOOGLE_PAYMENT_UNSUPPORTED_VERSION:{code:"GOOGLE_PAYMENT_UNSUPPORTED_VERSION",
|
||||
type:r.types.MERCHANT}}},{"../lib/braintree-error":126}],104:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/assign").assign,o=e("../lib/convert-methods-to-error"),a=e("../lib/find"),s=e("../lib/generate-google-pay-configuration"),c=e("../lib/braintree-error"),l=e("./errors"),u=e("../lib/methods"),d=e("../lib/promise"),p=e("@braintree/wrap-promise"),_={1:"_createV1PaymentDataRequest",2:"_createV2PaymentDataRequest"};function E(e){if(this._createPromise=e.createPromise,this._client=e.client,this._useDeferredClient=e.useDeferredClient,this._googlePayVersion=e.googlePayVersion||1,this._googleMerchantId=e.googleMerchantId,this._isUnsupportedGooglePayAPIVersion())throw new c({code:l.GOOGLE_PAYMENT_UNSUPPORTED_VERSION.code,message:"The Braintree SDK does not support Google Pay version "+this._googlePayVersion+". Please upgrade the version of your Braintree SDK and contact support if this error persists.",type:l.GOOGLE_PAYMENT_UNSUPPORTED_VERSION.type})}E.prototype._waitForClient=function(){return this._client?d.resolve():this._createPromise.then(function(e){this._client=e}.bind(this))},E.prototype._isUnsupportedGooglePayAPIVersion=function(){return!(this._googlePayVersion in _)},E.prototype._getDefaultConfig=function(){return this._defaultConfig||(this._defaultConfig=s(this._client.getConfiguration(),this._googlePayVersion,this._googleMerchantId)),this._defaultConfig},E.prototype._createV1PaymentDataRequest=function(e){var t=this._getDefaultConfig(),n=e.cardRequirements&&e.cardRequirements.allowedCardNetworks,r=t.cardRequirements.allowedCardNetworks,o=n||r;return(e=i({},t,e)).cardRequirements.allowedCardNetworks=o,e},E.prototype._createV2PaymentDataRequest=function(e){var t=this._getDefaultConfig();return e.allowedPaymentMethods&&e.allowedPaymentMethods.forEach((function(e){var n=a(t.allowedPaymentMethods,"type",e.type);n&&function(e,t){Object.keys(t).forEach((function(n){"object"==typeof t[n]?e[n]=i({},t[n],e[n]):e[n]=e[n]||t[n]}))}(e,n)})),e=i({},t,e)},E.prototype.createPaymentDataRequest=function(e){return this._useDeferredClient?this._waitForClient().then(function(){return this._createPaymentDataRequestSyncronously(e)}.bind(this)):this._createPaymentDataRequestSyncronously(e)},E.prototype._createPaymentDataRequestSyncronously=function(e){var t=i({},e),n=this._googlePayVersion,o=_[n];return r.sendEvent(this._createPromise,"google-payment.v"+n+".createPaymentDataRequest"),this[o](t)},E.prototype.parseResponse=function(e){var t=this;return d.resolve().then((function(){var n,i=2===e.apiVersion?e.paymentMethodData.tokenizationData.token:e.paymentMethodToken.token,o=JSON.parse(i),a=o.error;return a?d.reject(a):(r.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded"),o.paypalAccounts?(n=o.paypalAccounts[0],r.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded.paypal"),d.resolve({nonce:n.nonce,type:n.type,description:n.description})):(n=o.androidPayCards[0],r.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded.google-payment"),d.resolve({nonce:n.nonce,
|
||||
type:n.type,description:n.description,details:{cardType:n.details.cardType,lastFour:n.details.lastFour,lastTwo:n.details.lastTwo,isNetworkTokenized:n.details.isNetworkTokenized,bin:n.details.bin},binData:n.binData})))})).catch((function(e){return r.sendEvent(t._createPromise,"google-payment.parseResponse.failed"),d.reject(new c({code:l.GOOGLE_PAYMENT_GATEWAY_ERROR.code,message:l.GOOGLE_PAYMENT_GATEWAY_ERROR.message,type:l.GOOGLE_PAYMENT_GATEWAY_ERROR.type,details:{originalError:e}}))}))},E.prototype.teardown=function(){return o(this,u(E.prototype)),d.resolve()},t.exports=p.wrapPrototype(E)},{"../lib/analytics":121,"../lib/assign":123,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/find":139,"../lib/generate-google-pay-configuration":151,"../lib/methods":157,"../lib/promise":159,"./errors":103,"@braintree/wrap-promise":44}],105:[function(e,t,n){"use strict";var r=e("./google-payment"),i=e("../lib/braintree-error"),o=e("../lib/promise"),a=e("../lib/create-assets-url"),s=e("../lib/create-deferred-client"),c=e("../lib/basic-component-verification"),l=e("@braintree/wrap-promise"),u=e("./errors");t.exports={create:l((function(e){return c.verify({name:"Google Pay",client:e.client,authorization:e.authorization}).then((function(){var t,n;return t=s.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"Google Pay"}).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.androidPay?t:o.reject(new i(u.GOOGLE_PAYMENT_NOT_ENABLED))})),e.createPromise=t,n=new r(e),e.useDeferredClient?n:t.then((function(e){return n._client=e,n}))}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./errors":103,"./google-payment":104,"@braintree/wrap-promise":44}],106:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error"),i=e("../shared/errors"),o=e("../shared/constants").allowedAttributes;t.exports=function(e,t){var n;return o.hasOwnProperty(e)?null==t||function(e,t){return"string"===o[e]?"string"==typeof t||"number"==typeof t:"boolean"===o[e]&&("true"===String(t)||"false"===String(t))}(e,t)||(n=new r({type:i.HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED.type,code:i.HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED.code,message:'Value "'+t+'" is not allowed for "'+e+'" attribute.'})):n=new r({type:i.HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED.type,code:i.HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED.code,message:'The "'+e+'" attribute is not supported in Hosted Fields.'}),n}},{"../../lib/braintree-error":126,"../shared/constants":114,"../shared/errors":115}],107:[function(e,t,n){"use strict";var r=e("../shared/constants"),i=e("../../lib/use-min");t.exports=function(e,t,n){return e+"/web/"+r.VERSION+"/html/hosted-fields-frame"+i(n)+".html#"+t}},{"../../lib/use-min":162,"../shared/constants":114}],108:[function(e,t,n){"use strict"
|
||||
;var r=e("../shared/constants").navigationDirections,i=e("../shared/browser-detection"),o=e("../shared/focus-intercept"),a=e("../shared/find-parent-tags"),s=["INPUT","SELECT","TEXTAREA"],c=["hidden","button","reset","submit","checkbox","radio","file"];function l(e){return i.hasSoftwareKeyboard()?s.indexOf(e.tagName)>-1&&c.indexOf(e.type)<0:"hidden"!==e.type}function u(e){var t,n;for(t=0;t<e.length;t++)if(l(n=e[t]))return n;return null}t.exports={removeExtraFocusElements:function(e,t){var n=Array.prototype.slice.call(e.elements);[u(n),u(n.reverse())].forEach((function(e){e&&o.matchFocusElement(e.getAttribute("id"))&&t(e.getAttribute("id"))}))},createFocusChangeHandler:function(e,t){return function(n){var i,s,c,u,d=document.getElementById("bt-"+n.field+"-"+n.direction+"-"+e);if(d)if(c=a(d,"form")[0],document.forms.length<1||!c)t.onRemoveFocusIntercepts();else{i=(c=[].slice.call(c.elements)).indexOf(d),u=function(e,t){switch(e){case r.BACK:return{checkIndexBounds:function(e){return e<0},indexChange:-1};case r.FORWARD:return{checkIndexBounds:function(e){return e>t-1},indexChange:1}}return{}}(n.direction,c.length);do{if(i+=u.indexChange,u.checkIndexBounds(i))return;s=c[i]}while(!l(s));o.matchFocusElement(s.getAttribute("id"))?t.onTriggerInputFocus(s.getAttribute("data-braintree-type")):s.focus()}}}}},{"../shared/browser-detection":113,"../shared/constants":114,"../shared/find-parent-tags":116,"../shared/focus-intercept":117}],109:[function(e,t,n){"use strict";var r=e("../shared/constants").allowedStyles;t.exports=function(e){var t,n=document.createElement("input"),i={};return"."===e[0]&&(e=e.substring(1)),n.className=e,n.style.display="none !important",n.style.position="fixed !important",n.style.left="-99999px !important",n.style.top="-99999px !important",document.body.appendChild(n),t=window.getComputedStyle(n),r.forEach((function(e){var n=t[e];n&&(i[e]=n)})),document.body.removeChild(n),i}},{"../shared/constants":114}],110:[function(e,t,n){"use strict";var r=e("../../lib/assign").assign,i=e("../../lib/create-assets-url"),o=e("../../lib/is-verified-domain"),a=e("../../lib/destructor"),s=e("@braintree/class-list"),c=e("@braintree/iframer"),l=e("framebus"),u=e("../../lib/create-deferred-client"),d=e("../../lib/braintree-error"),p=e("./compose-url"),_=e("./get-styles-from-class"),E=e("../shared/constants"),h=e("../shared/errors"),f=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,m=e("@braintree/uuid"),y=e("../shared/find-parent-tags"),A=e("../shared/browser-detection"),T=E.events,I=e("@braintree/event-emitter"),N=e("./inject-frame"),b=e("../../lib/analytics"),O=E.allowedFields,g=e("../../lib/methods"),v=e("../../lib/shadow"),P=e("../../lib/find-root-node"),R=e("../../lib/convert-methods-to-error"),C=e("../../lib/errors"),S=e("../shared/get-card-types"),D=e("./attribute-validation-error"),w=e("../../lib/promise"),L=e("@braintree/wrap-promise"),M=e("./focus-change"),U=e("../shared/focus-intercept").destroy;function k(e){return function(t){var n,r=t.merchantPayload,i=r.emittedBy,o=e[i].containerElement
|
||||
;Object.keys(r.fields).forEach((function(t){r.fields[t].container=e[t].containerElement})),n=r.fields[i],"blur"===t.type&&function(e){var t;A.isIos()&&document.activeElement===document.body&&((t=e.querySelector("input"))||((t=document.createElement("input")).type="button",t.style.height="0px",t.style.width="0px",t.style.opacity="0",t.style.padding="0",t.style.position="absolute",t.style.left="-200%",t.style.top="0px",e.insertBefore(t,e.firstChild)),t.focus(),t.blur())}(o),s.toggle(o,E.externalClasses.FOCUSED,n.isFocused),s.toggle(o,E.externalClasses.VALID,n.isValid),s.toggle(o,E.externalClasses.INVALID,!n.isPotentiallyValid),this._state={cards:r.cards,fields:r.fields},this._emit(t.type,r)}}function F(e){var t,n,y,O,P,D=this,L={},V={},x=[],H=m();if(this._merchantConfigurationOptions=r({},e),e.client?(y=(n=e.client.getConfiguration()).gatewayConfiguration.assetsUrl,O=n.isDebug):(y=i.create(e.authorization),O=Boolean(e.isDebug)),this._clientPromise=u.create({client:e.client,authorization:e.authorization,debug:O,assetsUrl:y,name:"Hosted Fields"}),P=p(y,H,O),!e.fields||0===Object.keys(e.fields).length)throw new d({type:C.INSTANTIATION_OPTION_REQUIRED.type,code:C.INSTANTIATION_OPTION_REQUIRED.code,message:"options.fields is required when instantiating Hosted Fields."});I.call(this),this._injectedNodes=[],this._destructor=new a,this._fields=L,this._state={fields:{},cards:S("")},this._bus=new l({channel:H,verifyDomain:o}),this._destructor.registerFunctionForTeardown((function(){D._bus.teardown()})),e.client?b.sendEvent(this._clientPromise,"custom.hosted-fields.initialized"):b.sendEvent(this._clientPromise,"custom.hosted-fields.initialized.deferred-client"),Object.keys(e.fields).forEach(function(t){var n,r,i,o,a;if(!E.allowedFields.hasOwnProperty(t))throw new d({type:h.HOSTED_FIELDS_INVALID_FIELD_KEY.type,code:h.HOSTED_FIELDS_INVALID_FIELD_KEY.code,message:'"'+t+'" is not a valid field.'});if("string"==typeof(r=(n=e.fields[t]).container||n.selector)&&(r=document.querySelector(r)),!r||1!==r.nodeType)throw new d({type:h.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.type,code:h.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.code,message:h.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.message,details:{fieldSelector:n.selector,fieldContainer:n.container,fieldKey:t}});if(r.querySelector('iframe[name^="braintree-"]'))throw new d({type:h.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.type,code:h.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.code,message:h.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.message,details:{fieldSelector:n.selector,fieldContainer:n.container,fieldKey:t}});if(i=r,v.isShadowElement(i)&&(i=v.transformToSlot(i,"height: 100%")),n.maxlength&&"number"!=typeof n.maxlength)throw new d({type:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:"The value for maxlength must be a number.",details:{fieldKey:t}});if(n.minlength&&"number"!=typeof n.minlength)throw new d({type:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:"The value for minlength must be a number.",details:{
|
||||
fieldKey:t}});o=c({type:t,name:"braintree-hosted-field-"+t,style:E.defaultIFrameStyle,title:"Secure Credit Card Frame - "+E.allowedFields[t].label}),this._injectedNodes.push.apply(this._injectedNodes,N(H,o,i,(function(){D._bus.emit(T.TRIGGER_INPUT_FOCUS,{field:t})}))),this._setupLabelFocus(t,r),L[t]={frameElement:o,containerElement:r},a=new w((function(e){V[t]=e})),x.push(a),this._state.fields[t]={isEmpty:!0,isValid:!1,isPotentiallyValid:!0,isFocused:!1,container:r},setTimeout((function(){A.isIE()||A.isEdge()?(o.src="about:blank",setTimeout((function(){o.src=P}),0)):o.src=P}),0)}.bind(this)),this._merchantConfigurationOptions.styles&&Object.keys(this._merchantConfigurationOptions.styles).forEach((function(e){var t=D._merchantConfigurationOptions.styles[e];"string"==typeof t&&(D._merchantConfigurationOptions.styles[e]=_(t))})),this._bus.on(T.REMOVE_FOCUS_INTERCEPTS,(function(e){U(e&&e.id)})),this._bus.on(T.TRIGGER_FOCUS_CHANGE,M.createFocusChangeHandler(H,{onRemoveFocusIntercepts:function(e){D._bus.emit(T.REMOVE_FOCUS_INTERCEPTS,{id:e})},onTriggerInputFocus:function(e){D._bus.emit(T.TRIGGER_INPUT_FOCUS,{field:e})}})),this._bus.on(T.READY_FOR_CLIENT,(function(e){D._clientPromise.then((function(t){e(t)}))})),this._bus.on(T.CARD_FORM_ENTRY_HAS_BEGUN,(function(){b.sendEvent(D._clientPromise,"hosted-fields.input.started")})),this._bus.on(T.BIN_AVAILABLE,(function(e){D._emit("binAvailable",{bin:e})})),t=setTimeout((function(){b.sendEvent(D._clientPromise,"custom.hosted-fields.load.timed-out"),D._emit("timeout")}),f),w.all(x).then((function(e){var n,i,o=e[0];clearTimeout(t),o((n=D._merchantConfigurationOptions,(i=r({},n)).fields=r({},i.fields),Object.keys(i.fields).forEach((function(e){i.fields[e]=r({},i.fields[e]),delete i.fields[e].container})),i)),D._cleanUpFocusIntercepts(),D._emit("ready")})),this._bus.on(T.FRAME_READY,(function(e,t){V[e.field](t)})),this._bus.on(T.INPUT_EVENT,k(L).bind(this)),A.isIos()&&this._bus.on(T.TRIGGER_INPUT_FOCUS,(function(e){var t=L[e.field].containerElement;setTimeout((function(){var e,n,r;e=t.getBoundingClientRect(),n=Math.floor(e.height/2),r=Math.floor(e.width/2),e.top<(window.innerHeight-n||document.documentElement.clientHeight-n)&&e.right>r&&e.bottom>n&&e.left<(window.innerWidth-r||document.documentElement.clientWidth-r)||t.scrollIntoView()}),5)})),this._destructor.registerFunctionForTeardown((function(){var e,t,n;for(e=0;e<D._injectedNodes.length;e++)(n=(t=D._injectedNodes[e]).parentNode).removeChild(t),s.remove(n,E.externalClasses.FOCUSED,E.externalClasses.INVALID,E.externalClasses.VALID)})),this._destructor.registerFunctionForTeardown((function(){U()})),this._destructor.registerFunctionForTeardown((function(){var e=g(F.prototype).concat(g(I.prototype));R(D,e)}))}I.createChild(F),F.prototype._setupLabelFocus=function(e,t){var n,r,i=A.isIos(),o=this._bus,a=P(t);if(!i&&null!=t.id){for(n=Array.prototype.slice.call(document.querySelectorAll('label[for="'+t.id+'"]')),a!==document&&(n=n.concat(Array.prototype.slice.call(a.querySelectorAll('label[for="'+t.id+'"]')))),
|
||||
n=(n=n.concat(y(t,"label"))).filter((function(e,t,n){return n.indexOf(e)===t})),r=0;r<n.length;r++)n[r].addEventListener("click",s,!1);this._destructor.registerFunctionForTeardown((function(){for(r=0;r<n.length;r++)n[r].removeEventListener("click",s,!1)}))}function s(){o.emit(T.TRIGGER_INPUT_FOCUS,{field:e})}},F.prototype._getAnyFieldContainer=function(){var e=this;return Object.keys(this._fields).reduce((function(t,n){return t||e._fields[n].containerElement}),null)},F.prototype._cleanUpFocusIntercepts=function(){var e,t;document.forms.length<1?this._bus.emit(T.REMOVE_FOCUS_INTERCEPTS):(e=this._getAnyFieldContainer(),(t=y(e,"form")[0])?M.removeExtraFocusElements(t,function(e){this._bus.emit(T.REMOVE_FOCUS_INTERCEPTS,{id:e})}.bind(this)):this._bus.emit(T.REMOVE_FOCUS_INTERCEPTS))},F.prototype._attachInvalidFieldContainersToError=function(e){e.details&&e.details.invalidFieldKeys&&e.details.invalidFieldKeys.length>0&&(e.details.invalidFields={},e.details.invalidFieldKeys.forEach(function(t){e.details.invalidFields[t]=this._fields[t].containerElement}.bind(this)))},F.prototype.getChallenges=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.challenges}))},F.prototype.getSupportedCardTypes=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes.map((function(e){return"MasterCard"===e?"Mastercard":e}))}))},F.prototype.teardown=function(){var e=this;return new w((function(t,n){e._destructor.teardown((function(r){b.sendEvent(e._clientPromise,"custom.hosted-fields.teardown-completed"),r?n(r):t()}))}))},F.prototype.tokenize=function(e){var t=this;return e||(e={}),new w((function(n,r){t._bus.emit(T.TOKENIZATION_REQUEST,e,(function(e){var i=e[0],o=e[1];i?(t._attachInvalidFieldContainersToError(i),r(new d(i))):n(o)}))}))},F.prototype.addClass=function(e,t){var n;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.ADD_CLASS,{field:e,classname:t}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot add class to "'+e+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when adding a class.'}),n?w.reject(n):w.resolve()},F.prototype.removeClass=function(e,t){var n;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.REMOVE_CLASS,{field:e,classname:t}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot remove class from "'+e+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when removing a class.'}),n?w.reject(n):w.resolve()},F.prototype.setAttribute=function(e){var t,n
|
||||
;return O.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=D(e.attribute,e.value))?n=t:this._bus.emit(T.SET_ATTRIBUTE,{field:e.field,attribute:e.attribute,value:e.value}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot set attribute for "'+e.field+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e.field+'" is not a valid field. You must use a valid field option when setting an attribute.'}),n?w.reject(n):w.resolve()},F.prototype.setMonthOptions=function(e){var t,n=this,r=this._merchantConfigurationOptions.fields;return r.expirationMonth?r.expirationMonth.select||(t="Expiration month field must be a select element."):t="Expiration month field must exist to use setMonthOptions.",t?w.reject(new d({type:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:t})):new w((function(t){n._bus.emit(T.SET_MONTH_OPTIONS,e,t)}))},F.prototype.setMessage=function(e){this._bus.emit(T.SET_MESSAGE,{field:e.field,message:e.message})},F.prototype.removeAttribute=function(e){var t,n;return O.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=D(e.attribute))?n=t:this._bus.emit(T.REMOVE_ATTRIBUTE,{field:e.field,attribute:e.attribute}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot remove attribute for "'+e.field+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e.field+'" is not a valid field. You must use a valid field option when removing an attribute.'}),n?w.reject(n):w.resolve()},F.prototype.setPlaceholder=function(e,t){return this.setAttribute({field:e,attribute:"placeholder",value:t})},F.prototype.clear=function(e){var t;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.CLEAR_FIELD,{field:e}):t=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot clear "'+e+'" field because it is not part of the current Hosted Fields options.'}):t=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when clearing a field.'}),t?w.reject(t):w.resolve()},F.prototype.focus=function(e){var t;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.TRIGGER_INPUT_FOCUS,{field:e}):t=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot focus "'+e+'" field because it is not part of the current Hosted Fields options.'}):t=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when focusing a field.'}),t?w.reject(t):w.resolve()},
|
||||
F.prototype.getState=function(){return this._state},t.exports=L.wrapPrototype(F)},{"../../lib/analytics":121,"../../lib/assign":123,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/create-assets-url":131,"../../lib/create-deferred-client":133,"../../lib/destructor":135,"../../lib/errors":137,"../../lib/find-root-node":138,"../../lib/is-verified-domain":155,"../../lib/methods":157,"../../lib/promise":159,"../../lib/shadow":161,"../shared/browser-detection":113,"../shared/constants":114,"../shared/errors":115,"../shared/find-parent-tags":116,"../shared/focus-intercept":117,"../shared/get-card-types":118,"./attribute-validation-error":106,"./compose-url":107,"./focus-change":108,"./get-styles-from-class":109,"./inject-frame":111,"@braintree/class-list":33,"@braintree/event-emitter":34,"@braintree/iframer":36,"@braintree/uuid":40,"@braintree/wrap-promise":44,framebus:53}],111:[function(e,t,n){"use strict";var r=e("../shared/focus-intercept"),i=e("../shared/constants").navigationDirections;t.exports=function(e,t,n,o){var a=t.getAttribute("type"),s=document.createElement("div"),c=document.createDocumentFragment(),l=r.generate(e,a,i.BACK,o),u=r.generate(e,a,i.FORWARD,o);return s.style.clear="both",c.appendChild(l),c.appendChild(t),c.appendChild(u),c.appendChild(s),n.appendChild(c),[t,s]}},{"../shared/constants":114,"../shared/focus-intercept":117}],112:[function(e,t,n){"use strict";var r=e("./external/hosted-fields"),i=e("../lib/basic-component-verification"),o=e("./shared/errors"),a=e("restricted-input/supports-input-formatting"),s=e("@braintree/wrap-promise"),c=e("../lib/braintree-error"),l=e("../lib/promise");t.exports={supportsInputFormatting:a,create:s((function(e){return i.verify({name:"Hosted Fields",authorization:e.authorization,client:e.client}).then((function(){var t=new r(e);return new l((function(e,n){t.on("ready",(function(){e(t)})),t.on("timeout",(function(){n(new c(o.HOSTED_FIELDS_TIMEOUT))}))}))}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/promise":159,"./external/hosted-fields":110,"./shared/errors":115,"@braintree/wrap-promise":44,"restricted-input/supports-input-formatting":69}],113:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-android"),i=e("@braintree/browser-detection/is-chrome-os"),o=e("@braintree/browser-detection/is-ios"),a=e("@braintree/browser-detection/is-chrome");t.exports={isIE:e("@braintree/browser-detection/is-ie"),isEdge:e("@braintree/browser-detection/is-edge"),isIe9:e("@braintree/browser-detection/is-ie9"),isIe10:e("@braintree/browser-detection/is-ie10"),isAndroid:r,isChromeOS:i,isChromeIos:function(){return a()&&o()},isFirefox:e("@braintree/browser-detection/is-firefox"),isIos:o,isIosWebview:e("@braintree/browser-detection/is-ios-webview"),hasSoftwareKeyboard:function(){return r()||i()||o()}}},{"@braintree/browser-detection/is-android":20,"@braintree/browser-detection/is-chrome":22,"@braintree/browser-detection/is-chrome-os":21,
|
||||
"@braintree/browser-detection/is-edge":23,"@braintree/browser-detection/is-firefox":24,"@braintree/browser-detection/is-ie":25,"@braintree/browser-detection/is-ie10":26,"@braintree/browser-detection/is-ie9":27,"@braintree/browser-detection/is-ios":31,"@braintree/browser-detection/is-ios-webview":29}],114:[function(e,t,n){"use strict";var r=e("../../lib/enumerate"),i=e("./errors"),o={VERSION:"3.76.4",maxExpirationYearAge:19,externalEvents:{FOCUS:"focus",BLUR:"blur",EMPTY:"empty",NOT_EMPTY:"notEmpty",VALIDITY_CHANGE:"validityChange",CARD_TYPE_CHANGE:"cardTypeChange"},defaultMaxLengths:{number:19,postalCode:8,expirationDate:7,expirationMonth:2,expirationYear:4,cvv:3},externalClasses:{FOCUSED:"braintree-hosted-fields-focused",INVALID:"braintree-hosted-fields-invalid",VALID:"braintree-hosted-fields-valid"},navigationDirections:{BACK:"before",FORWARD:"after"},defaultIFrameStyle:{border:"none",width:"100%",height:"100%",float:"left"},tokenizationErrorCodes:{81724:i.HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE,81736:i.HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED},allowedStyles:["-moz-appearance","-moz-box-shadow","-moz-osx-font-smoothing","-moz-tap-highlight-color","-moz-transition","-webkit-appearance","-webkit-box-shadow","-webkit-font-smoothing","-webkit-tap-highlight-color","-webkit-transition","appearance","box-shadow","color","direction","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-weight","letter-spacing","line-height","margin","margin-top","margin-right","margin-bottom","margin-left","opacity","outline","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","text-shadow","transition"],allowedFields:{cardholderName:{name:"cardholder-name",label:"Cardholder Name"},number:{name:"credit-card-number",label:"Credit Card Number"},cvv:{name:"cvv",label:"CVV"},expirationDate:{name:"expiration",label:"Expiration Date"},expirationMonth:{name:"expiration-month",label:"Expiration Month"},expirationYear:{name:"expiration-year",label:"Expiration Year"},postalCode:{name:"postal-code",label:"Postal Code"}},allowedAttributes:{"aria-invalid":"boolean","aria-required":"boolean",disabled:"boolean",placeholder:"string"},autocompleteMappings:{"cardholder-name":"cc-name","credit-card-number":"cc-number",expiration:"cc-exp","expiration-month":"cc-exp-month","expiration-year":"cc-exp-year",cvv:"cc-csc","postal-code":"billing postal-code"}};o.events=r(["ADD_CLASS","AUTOFILL_DATA_AVAILABLE","BIN_AVAILABLE","CARD_FORM_ENTRY_HAS_BEGUN","CLEAR_FIELD","CONFIGURATION","FRAME_READY","INPUT_EVENT","READY_FOR_CLIENT","REMOVE_ATTRIBUTE","REMOVE_CLASS","REMOVE_FOCUS_INTERCEPTS","SET_ATTRIBUTE","SET_MESSAGE","SET_MONTH_OPTIONS","TOKENIZATION_REQUEST","TRIGGER_FOCUS_CHANGE","TRIGGER_INPUT_FOCUS","VALIDATE_STRICT"],"hosted-fields:"),t.exports=o},{"../../lib/enumerate":136,"./errors":115}],115:[function(e,t,n){"use strict"
|
||||
;var r=e("../../lib/braintree-error");t.exports={HOSTED_FIELDS_TIMEOUT:{type:r.types.UNKNOWN,code:"HOSTED_FIELDS_TIMEOUT",message:"Hosted Fields timed out when attempting to set up."},HOSTED_FIELDS_INVALID_FIELD_KEY:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_KEY"},HOSTED_FIELDS_INVALID_FIELD_SELECTOR:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_SELECTOR",message:"Selector does not reference a valid DOM node."},HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME",message:"Element already contains a Braintree iframe."},HOSTED_FIELDS_FIELD_INVALID:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_INVALID"},HOSTED_FIELDS_FIELD_NOT_PRESENT:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_NOT_PRESENT"},HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE",message:"This credit card already exists in the merchant's vault."},HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED",message:"CVV verification failed during tokenization."},HOSTED_FIELDS_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."},HOSTED_FIELDS_FIELDS_EMPTY:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_EMPTY",message:"All fields are empty. Cannot tokenize empty card fields."},HOSTED_FIELDS_FIELDS_INVALID:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_INVALID",message:"Some payment input fields are invalid. Cannot tokenize invalid card fields."},HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED"},HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED"},HOSTED_FIELDS_FIELD_PROPERTY_INVALID:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_PROPERTY_INVALID"}}},{"../../lib/braintree-error":126}],116:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.parentNode,r=[];null!=n;)null!=n.tagName&&n.tagName.toLowerCase()===t&&r.push(n),n=n.parentNode;return r}},{}],117:[function(e,t,n){"use strict";var r=e("./browser-detection"),i=e("@braintree/class-list"),o=e("./constants"),a=Object.keys(o.allowedFields),s=o.navigationDirections,c={generate:function(e,t,n,o){var a=document.createElement("input");return r.hasSoftwareKeyboard()||r.isFirefox()||r.isIE()?(a.setAttribute("aria-hidden","true"),a.setAttribute("autocomplete","off"),a.setAttribute("data-braintree-direction",n),a.setAttribute("data-braintree-type",t),a.setAttribute("id","bt-"+t+"-"+n+"-"+e),a.setAttribute("style",JSON.stringify({border:"none !important",display:"block !important",height:"1px !important",left:"-1px !important",opacity:"0 !important",position:"absolute !important",top:"-1px !important",
|
||||
width:"1px !important"}).replace(/[{}"]/g,"").replace(/,/g,";")),i.add(a,"focus-intercept"),a.addEventListener("focus",(function(e){o(e),r.hasSoftwareKeyboard()||a.blur()})),a):document.createDocumentFragment()},destroy:function(e){var t;e?t=[document.getElementById(e)]:(t=document.querySelectorAll("[data-braintree-direction]"),t=[].slice.call(t)),t.forEach((function(e){e&&1===e.nodeType&&c.matchFocusElement(e.getAttribute("id"))&&e.parentNode.removeChild(e)}))},matchFocusElement:function(e){var t,n,r,i;return!!e&&!((t=e.split("-")).length<4)&&(n="bt"===t[0],r=a.indexOf(t[1])>-1,i=t[2]===s.BACK||t[2]===s.FORWARD,Boolean(n&&r&&i))}};t.exports=c},{"./browser-detection":113,"./constants":114,"@braintree/class-list":33}],118:[function(e,t,n){"use strict";var r=e("credit-card-type");t.exports=function(e){var t=r(e);return t.forEach((function(e){"mastercard"===e.type&&(e.type="master-card")})),t}},{"credit-card-type":45}],119:[function(e,t,n){"use strict";var r=e("./american-express"),i=e("./apple-pay"),o=e("./client"),a=e("./data-collector"),s=e("./hosted-fields"),c=e("./local-payment"),l=e("./masterpass"),u=e("./payment-request"),d=e("./paypal"),p=e("./paypal-checkout"),_=e("./google-payment"),E=e("./three-d-secure"),h=e("./unionpay"),f=e("./us-bank-account"),m=e("./vault-manager"),y=e("./venmo"),A=e("./visa-checkout"),T=e("./preferred-payment-methods");t.exports={americanExpress:r,applePay:i,client:o,dataCollector:a,hostedFields:s,localPayment:c,masterpass:l,googlePayment:_,paymentRequest:u,paypal:d,paypalCheckout:p,threeDSecure:E,unionpay:h,usBankAccount:f,vaultManager:m,venmo:y,visaCheckout:A,preferredPaymentMethods:T,VERSION:"3.76.4"}},{"./american-express":72,"./apple-pay":75,"./client":81,"./data-collector":100,"./google-payment":105,"./hosted-fields":112,"./local-payment":166,"./masterpass":169,"./payment-request":174,"./paypal":181,"./paypal-checkout":178,"./preferred-payment-methods":184,"./three-d-secure":194,"./unionpay":198,"./us-bank-account":204,"./vault-manager":207,"./venmo":212,"./visa-checkout":220}],120:[function(e,t,n){"use strict";var r=e("./create-authorization-data"),i=e("./json-clone"),o=e("./constants");t.exports=function(e,t){var n,a=t?i(t):{},s=r(e.authorization).attrs,c=i(e.analyticsMetadata);for(n in a.braintreeLibraryVersion=o.BRAINTREE_LIBRARY_VERSION,a._meta)a._meta.hasOwnProperty(n)&&(c[n]=a._meta[n]);return a._meta=c,s.tokenizationKey?a.tokenizationKey=s.tokenizationKey:a.authorizationFingerprint=s.authorizationFingerprint,a}},{"./constants":128,"./create-authorization-data":132,"./json-clone":156}],121:[function(e,t,n){"use strict";var r=e("./promise"),i=e("./constants"),o=e("./add-metadata");t.exports={sendEvent:function(e,t,n){var a=Date.now();return r.resolve(e).then((function(e){var r=Date.now(),s=e.getConfiguration(),c=e._request,l=s.gatewayConfiguration.analytics.url,u={analytics:[{kind:i.ANALYTICS_PREFIX+t,isAsync:Math.floor(r/1e3)!==Math.floor(a/1e3),timestamp:a}]};c({url:l,method:"post",data:o(s,u),timeout:i.ANALYTICS_REQUEST_TIMEOUT_MS},n)}))}}},{"./add-metadata":120,
|
||||
"./constants":128,"./promise":159}],122:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script");t.exports={loadScript:r}},{"@braintree/asset-loader/load-script":3}],123:[function(e,t,n){"use strict";var r="function"==typeof Object.assign?Object.assign:i;function i(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])n.hasOwnProperty(r)&&(e[r]=n[r]);return e}t.exports={assign:r,_assign:i}},{}],124:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./promise"),o=e("./errors");t.exports={verify:function(e){var t,n,a;return e?(a=e.name,t=e.client,n=e.authorization,t||n?n||"3.76.4"===t.getVersion()?i.resolve():i.reject(new r({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+a+" (version 3.76.4) components must be from the same SDK version."})):i.reject(new r({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+a+"."}))):i.reject(new r({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":126,"./errors":137,"./promise":159}],125:[function(e,t,n){"use strict";var r=e("./once");function i(e,t){0===e.length?(e(),t(null)):e(t)}t.exports=function(e,t){var n,o=e.length,a=o,s=r(t);if(0!==o)for(n=0;n<o;n++)i(e[n],c);else s(null);function c(e){e?s(e):0==(a-=1)&&s(null)}}},{"./once":158}],126:[function(e,t,n){"use strict";var r=e("./enumerate");function i(e){if(!i.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.types=r(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),i.findRootError=function(e){return e instanceof i&&e.details&&e.details.originalError?i.findRootError(e.details.originalError):e},t.exports=i},{"./enumerate":136}],127:[function(e,t,n){"use strict";t.exports=function(e){return Object.keys(e).reduce((function(t,n){return t[function(e){return e.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()}(n)]=e[n],t}),{})}},{}],128:[function(e,t,n){"use strict";t.exports={ANALYTICS_PREFIX:"web.",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",
|
||||
sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:"3.76.4",INTEGRATION:"custom",SOURCE:"client",PLATFORM:"web",BRAINTREE_LIBRARY_VERSION:"braintree/web/3.76.4"}},{}],129:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./errors");t.exports=function(e,t){t.forEach((function(t){e[t]=function(){throw new r({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}}))}},{"./braintree-error":126,"./errors":137}],130:[function(e,t,n){"use strict";var r=e("./braintree-error");t.exports=function(e,t){return e instanceof r?e:new r({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}},{"./braintree-error":126}],131:[function(e,t,n){"use strict";var r=e("./constants").ASSETS_URLS;t.exports={create:function(e){return r.production}}},{"./constants":128}],132:[function(e,t,n){"use strict";var r=e("../lib/vendor/polyfill").atob,i=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,n,o,a,s={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(o=e.split("_"),a=o[0],n={merchantId:o.slice(2).join("_"),environment:a},s.environment=n.environment,s.attrs.tokenizationKey=e,s.configUrl=i[n.environment]+"/merchants/"+n.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(r(e)),s.environment=t.environment,s.attrs.authorizationFingerprint=t.authorizationFingerprint,s.configUrl=t.configUrl,s.graphQL=t.graphQL),s}},{"../lib/constants":128,"../lib/vendor/polyfill":163}],133:[function(e,t,n){"use strict";var r=e("./braintree-error"),i=e("./promise"),o=e("./assets"),a=e("./errors");t.exports={create:function(e){var t=i.resolve();return e.client?i.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/3.76.4/js/client.min.js"}).catch((function(e){return i.reject(new r({type:a.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:a.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:a.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}))),t.then((function(){return"3.76.4"!==window.braintree.client.VERSION?i.reject(new r({type:a.INCOMPATIBLE_VERSIONS.type,code:a.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version 3.76.4) components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})})))}}},{"./assets":122,"./braintree-error":126,"./errors":137,"./promise":159}],134:[function(e,t,n){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout((function(){e.apply(null,t)}),1)}}},{}],135:[function(e,t,n){"use strict";var r=e("./batch-execute-functions");function i(){this._teardownRegistry=[],this._isTearingDown=!1}i.prototype.registerFunctionForTeardown=function(e){"function"==typeof e&&this._teardownRegistry.push(e)},i.prototype.teardown=function(e){this._isTearingDown?e(new Error("Destructor is already tearing down")):(this._isTearingDown=!0,
|
||||
r(this._teardownRegistry,function(t){this._teardownRegistry=[],this._isTearingDown=!1,"function"==typeof e&&e(t)}.bind(this)))},t.exports=i},{"./batch-execute-functions":125}],136:[function(e,t,n){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce((function(e,n){return e[n]=t+n,e}),{})}},{}],137:[function(e,t,n){"use strict";var r=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:r.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:r.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:r.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:r.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"}}},{"./braintree-error":126}],138:[function(e,t,n){"use strict";t.exports=function(e){for(;e.parentNode;)e=e.parentNode;return e}},{}],139:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r;for(r=0;r<e.length;r++)if(e[r].hasOwnProperty(t)&&e[r][t]===n)return e[r];return null}},{}],140:[function(e,t,n){"use strict";var r=e("./strategies/popup"),i=e("./strategies/popup-bridge"),o=e("./strategies/modal"),a=e("framebus"),s=e("../shared/events"),c=e("../shared/errors"),l=e("../shared/constants"),u=e("@braintree/uuid"),d=e("@braintree/iframer"),p=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("../../is-https"),h=e("./../../assign").assign,f=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,m=["name","dispatchFrameUrl","openFrameUrl"];function y(){}function A(e){!function(e){if(!e)throw new Error("Valid configuration is required");if(m.forEach((function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")})),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}(e),this._serviceId=u().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new a({channel:this._serviceId}),this._setBusEvents()}A.prototype.initialize=function(e){var t=function(){e(),this._bus.off(s.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(s.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},A.prototype._writeDispatchFrame=function(){var e=l.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=d({"aria-hidden":!0,name:e,title:e,src:t,class:l.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},A.prototype._setBusEvents=function(){this._bus.on(s.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(f,function(e){e(this.state)}.bind(this))},A.prototype.open=function(e,t){if(e=e||{},
|
||||
this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof i)){if(h(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(_.isIE()&&!E.isHTTPS()?new p(c.FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG):new p(c.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},A.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},A.prototype.close=function(){this.isFrameClosed()||this._frame.close()},A.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},A.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},A.prototype.createNoopHandler=function(){return{close:y,focus:y}},A.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},A.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},A.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},A.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new p(c.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),l.POPUP_POLL_INTERVAL),this._popupInterval},A.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),n=Boolean(window.popupBridge),a=h({},this._options,e);return n?new i(a):t?new r(a):new o(a)},t.exports=A},{"../../braintree-error":126,"../../constants":128,"../../is-https":154,"../shared/browser-detection":147,"../shared/constants":148,"../shared/errors":149,"../shared/events":150,"./../../assign":123,"./strategies/modal":142,"./strategies/popup":145,"./strategies/popup-bridge":143,"@braintree/iframer":36,"@braintree/uuid":40,framebus:53}],141:[function(e,t,n){"use strict";var r=e("./frame-service");t.exports={create:function(e,t){var n=new r(e);n.initialize((function(){t(n)}))}}},{"./frame-service":140}],142:[function(e,t,n){"use strict";var r=e("@braintree/iframer"),i=e("../../../assign").assign,o=e("../../shared/browser-detection"),a={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function s(){}function c(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}c.prototype.initialize=s,c.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:i({},a),title:"Lightbox Frame"};o.isIos()?(o.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),i(this._el.style,a,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=r(e),
|
||||
this._el.appendChild(this._frame)):this._el=this._frame=r(e),this._closed=!1,this._container.appendChild(this._el)},c.prototype.focus=s,c.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,o.isIosWKWebview()&&this._unlockScrolling()},c.prototype.isClosed=function(){return Boolean(this._closed)},c.prototype.redirect=function(e){this._frame.src=e},c.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},c.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=c},{"../../../assign":123,"../../shared/browser-detection":147,"@braintree/iframer":36}],143:[function(e,t,n){"use strict";var r=e("../../../braintree-error"),i=e("../../shared/errors");function o(){}function a(e){this._closed=null,this._options=e}a.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(n,o){var a=!o&&!n;t._closed=!0,n||a?e(new r(i.FRAME_SERVICE_FRAME_CLOSED)):e(null,o)}},a.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)},a.prototype.focus=o,a.prototype.close=o,a.prototype.isClosed=function(){return Boolean(this._closed)},a.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=a},{"../../../braintree-error":126,"../../shared/errors":149}],144:[function(e,t,n){"use strict";var r=e("../../../shared/constants"),i=e("./position");function o(e,t,n){return void 0!==t?t:i[e](n)}t.exports=function(e){var t=e.height||r.DEFAULT_POPUP_HEIGHT,n=e.width||r.DEFAULT_POPUP_WIDTH,i=o("top",e.top,t),a=o("left",e.left,n);return[r.POPUP_BASE_OPTIONS,"height="+t,"width="+n,"top="+i,"left="+a].join(",")}},{"../../../shared/constants":148,"./position":146}],145:[function(e,t,n){"use strict";var r=e("./compose-options");function i(e){this._frame=null,this._options=e||{},this.open()}i.prototype.initialize=function(){},i.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,r(this._options))},i.prototype.focus=function(){this._frame.focus()},i.prototype.close=function(){this._frame.closed||this._frame.close()},i.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},i.prototype.redirect=function(e){this._frame.location.href=e},t.exports=i},{"./compose-options":144}],146:[function(e,t,n){"use strict";function r(e,t,n){return(e-t)/2+n}t.exports={top:function(e){
|
||||
return r(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)},left:function(e){return r(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)},center:r}},{}],147:[function(e,t,n){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),isIE:e("@braintree/browser-detection/is-ie"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ie":25,"@braintree/browser-detection/is-ios":31,"@braintree/browser-detection/is-ios-wkwebview":30,"@braintree/browser-detection/supports-popups":32}],148:[function(e,t,n){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],149:[function(e,t,n){"use strict";var r=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."},FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG",message:"Could not open frame. This may be due to a bug in IE browsers when attempting to open an HTTPS page from a HTTP page. https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11324352/"}}},{"../../braintree-error":126}],150:[function(e,t,n){"use strict";var r=e("../../enumerate");t.exports=r(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":136}],151:[function(e,t,n){"use strict";var r=e("./assign").assign;function i(e,t){var n=e.analyticsMetadata,i={gateway:"braintree","braintree:merchantId":e.gatewayConfiguration.merchantId,"braintree:apiVersion":"v1","braintree:sdkVersion":"3.76.4","braintree:metadata":JSON.stringify({source:n.source,integration:n.integration,sessionId:n.sessionId,version:"3.76.4",platform:n.platform})};return r({},i,t)}t.exports=function(e,t,n){var r,o,a=e.gatewayConfiguration.androidPay,s="production"===e.gatewayConfiguration.environment?"PRODUCTION":"TEST";return 2===t?(r={apiVersion:2,apiVersionMinor:0,environment:s,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:a.supportedNetworks.map((function(e){return e.toUpperCase()}))},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:i(e,{"braintree:authorizationFingerprint":a.googleAuthorizationFingerprint})}}]},n&&(r.merchantInfo={merchantId:n}),a.paypalClientId&&(o={type:"PAYPAL",parameters:{purchase_context:{purchase_units:[{payee:{client_id:a.paypalClientId},recurring_payment:!0}]}},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:i(e,{
|
||||
"braintree:paypalClientId":a.paypalClientId})}},r.allowedPaymentMethods.push(o))):(r={environment:s,allowedPaymentMethods:["CARD","TOKENIZED_CARD"],paymentMethodTokenizationParameters:{tokenizationType:"PAYMENT_GATEWAY",parameters:i(e,{"braintree:authorizationFingerprint":a.googleAuthorizationFingerprint})},cardRequirements:{allowedCardNetworks:a.supportedNetworks.map((function(e){return e.toUpperCase()}))}},"TOKENIZATION_KEY"===e.authorizationType&&(r.paymentMethodTokenizationParameters.parameters["braintree:clientKey"]=e.authorization),n&&(r.merchantId=n),t&&(r.apiVersion=t)),r}},{"./assign":123}],152:[function(e,t,n){"use strict";t.exports=function(e){e=e||window;try{return e.self!==e.top}catch(e){return!0}}},{}],153:[function(e,t,n){"use strict";function r(e){var t=e.split("-");return new Date(t[0],t[1],t[2])}t.exports=function(e,t){return r(e)<=r(t)}},{}],154:[function(e,t,n){"use strict";t.exports={isHTTPS:function(e){return"https:"===(e=e||window.location.protocol)}}},{}],155:[function(e,t,n){"use strict";var r,i={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};t.exports=function(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((r=r||document.createElement("a")).href=e,t=r.hostname.split(".").slice(-2).join("."),i.hasOwnProperty(t))}},{}],156:[function(e,t,n){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],157:[function(e,t,n){"use strict";t.exports=function(e){return Object.keys(e).filter((function(t){return"function"==typeof e[t]}))}},{}],158:[function(e,t,n){"use strict";t.exports=function(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}},{}],159:[function(e,t,n){"use strict";var r=e("promise-polyfill"),i=e("@braintree/extended-promise"),o="undefined"!=typeof Promise?Promise:r;i.suppressUnhandledPromiseMessage=!0,i.setPromise(o),t.exports=o},{"@braintree/extended-promise":35,"promise-polyfill":66}],160:[function(e,t,n){"use strict";function r(e){return e=e||window.location.href,/\?/.test(e)}function i(e,t){var n,r,o,a,s=[];for(o in e)e.hasOwnProperty(o)&&(r=e[o],n=t?(a=e)&&"object"==typeof a&&"number"==typeof a.length&&"[object Array]"===Object.prototype.toString.call(a)?t+"[]":t+"["+o+"]":o,"object"==typeof r?s.push(i(r,n)):s.push(encodeURIComponent(n)+"="+encodeURIComponent(r)));return s.join("&")}t.exports={parse:function(e){return r(e=e||window.location.href)?e.replace(/#.*$/,"").replace(/^.*\?/,"").split("&").reduce((function(e,t){var n=t.split("="),r=decodeURIComponent(n[0]),i=decodeURIComponent(n[1]);return e[r]=i,e}),{}):{}},stringify:i,queryify:function(e,t){return e=e||"",null!=t&&"object"==typeof t&&function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=i(t)),e},hasQueryParams:r}},{}],161:[function(e,t,n){"use strict";var r=e("@braintree/uuid"),i=e("./find-root-node");function o(e){return"[object ShadowRoot]"===(e=i(e)).toString()}function a(e){return o(e=i(e))?e.host:null}t.exports={isShadowElement:o,getShadowHost:a,
|
||||
transformToSlot:function e(t,n){var s=i(t).querySelector("style"),c=a(t),l="shadow-slot-"+r(),u=document.createElement("slot"),d=document.createElement("div");return u.setAttribute("name",l),t.appendChild(u),d.setAttribute("slot",l),c.appendChild(d),n&&(s||(s=document.createElement("style"),t.appendChild(s)),s.sheet.insertRule('::slotted([slot="'+l+'"]) { '+n+" }")),o(c)?e(d,n):d}}},{"./find-root-node":138,"@braintree/uuid":40}],162:[function(e,t,n){"use strict";t.exports=function(e){return e?"":".min"}},{}],163:[function(e,t,n){"use strict";var r="function"==typeof atob?window.atob:i;function i(e){var t,n,r,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";if(!new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$").test(e))throw new Error("Non base64 encoded input passed to window.atob polyfill");a=0;do{t=(63&s.indexOf(e.charAt(a++)))<<2|(i=s.indexOf(e.charAt(a++)))>>4&3,n=(15&i)<<4|(o=s.indexOf(e.charAt(a++)))>>2&15,r=(3&o)<<6|63&s.indexOf(e.charAt(a++)),c+=String.fromCharCode(t)+(n?String.fromCharCode(n):"")+(r?String.fromCharCode(r):"")}while(a<e.length);return c}t.exports={atob:function(e){return r.call(window,e)},_atob:i}},{}],164:[function(e,t,n){"use strict";t.exports={REQUIRED_OPTIONS_FOR_START_PAYMENT:["onPaymentStart","paymentType","amount","fallback"]}},{}],165:[function(e,t,n){"use strict";var r=e("../../lib/frame-service/external"),i=e("../../lib/braintree-error"),o=e("../../lib/use-min"),a=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,s=e("../../lib/analytics"),c=e("../../lib/methods"),l=e("../../lib/convert-methods-to-error"),u=e("../../lib/convert-to-braintree-error"),d=e("../../lib/promise"),p=e("@braintree/extended-promise"),_=e("../../lib/querystring"),E=e("@braintree/wrap-promise"),h=e("./constants"),f=e("../shared/errors");function m(e){this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.assetsUrl+"/web/3.76.4",this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/local-payment-landing-frame"+o(this._isDebug)+".html",this._authorizationInProgress=!1,this._paymentType="unknown",this._merchantAccountId=e.merchantAccountId}m.prototype._initialize=function(){var e=this,t=this._client,n=setTimeout((function(){s.sendEvent(t,"local-payment.load.timed-out")}),a);return new d((function(i){r.create({name:"localpaymentlandingpage",dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+o(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},(function(r){e._frameService=r,clearTimeout(n),s.sendEvent(t,"local-payment.load.succeeded"),i(e)}))}))},m.prototype.startPayment=function(e){var t,n,r,a=this,c=this._frameService._serviceId,l=e.windowOptions||{};return function(e){var t,n;if(!e)return!0;for(t=0;t<h.REQUIRED_OPTIONS_FOR_START_PAYMENT.length;t++)if(n=h.REQUIRED_OPTIONS_FOR_START_PAYMENT[t],!e.hasOwnProperty(n))return!0;return!e.fallback.url||!e.fallback.buttonText
|
||||
}(e)?d.reject(new i(f.LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION)):(t=e.address||{},n={intent:"sale",returnUrl:_.queryify(a._assetsUrl+"/html/local-payment-redirect-frame"+o(a._isDebug)+".html",{channel:c,r:e.fallback.url,t:e.fallback.buttonText}),cancelUrl:_.queryify(a._assetsUrl+"/html/local-payment-redirect-frame"+o(a._isDebug)+".html",{channel:c,r:e.fallback.cancelUrl||e.fallback.url,t:e.fallback.cancelButtonText||e.fallback.buttonText,c:1}),experienceProfile:{noShipping:!e.shippingAddressRequired},fundingSource:e.paymentType,paymentTypeCountryCode:e.paymentTypeCountryCode,amount:e.amount,currencyIsoCode:e.currencyCode,firstName:e.givenName,lastName:e.surname,payerEmail:e.email,phone:e.phone,line1:t.streetAddress,line2:t.extendedAddress,city:t.locality,state:t.region,postalCode:t.postalCode,countryCode:t.countryCode,merchantAccountId:a._merchantAccountId,bic:e.bic},a._paymentType=e.paymentType.toLowerCase(),a._authorizationInProgress?(s.sendEvent(a._client,a._paymentType+".local-payment.start-payment.error.already-opened"),d.reject(new i(f.LOCAL_PAYMENT_ALREADY_IN_PROGRESS))):(a._authorizationInProgress=!0,r=new p,a._startPaymentCallback=a._createStartPaymentCallback((function(e){r.resolve(e)}),(function(e){r.reject(e)})),a._frameService.open({width:l.width||1282,height:l.height||720},a._startPaymentCallback),a._client.request({method:"post",endpoint:"local_payments/create",data:n}).then((function(t){s.sendEvent(a._client,a._paymentType+".local-payment.start-payment.opened"),a._startPaymentOptions=e,e.onPaymentStart({paymentId:t.paymentResource.paymentToken},(function(){a._frameService.redirect(t.paymentResource.redirectUrl)}))})).catch((function(e){var t=e.details&&e.details.httpStatus;a._frameService.close(),a._authorizationInProgress=!1,422!==t?r.reject(u(e,{type:f.LOCAL_PAYMENT_START_PAYMENT_FAILED.type,code:f.LOCAL_PAYMENT_START_PAYMENT_FAILED.code,message:f.LOCAL_PAYMENT_START_PAYMENT_FAILED.message})):r.reject(new i({type:f.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.type,code:f.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.code,message:f.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.message,details:{originalError:e}}))})),r))},m.prototype.tokenize=function(e){var t=this,n=this._client;return(e=e||_.parse()).c||e.wasCanceled?d.reject(new i({type:f.LOCAL_PAYMENT_CANCELED.type,code:f.LOCAL_PAYMENT_CANCELED.code,message:f.LOCAL_PAYMENT_CANCELED.message,details:{originalError:{errorcode:e.errorcode,token:e.btLpToken}}})):e.errorcode?d.reject(new i({type:f.LOCAL_PAYMENT_START_PAYMENT_FAILED.type,code:f.LOCAL_PAYMENT_START_PAYMENT_FAILED.code,message:f.LOCAL_PAYMENT_START_PAYMENT_FAILED.message,details:{originalError:{errorcode:e.errorcode,token:e.btLpToken}}})):n.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e)}).then((function(e){var r=t._formatTokenizePayload(e);return window.popupBridge?s.sendEvent(n,t._paymentType+".local-payment.tokenization.success-popupbridge"):s.sendEvent(n,t._paymentType+".local-payment.tokenization.success"),r})).catch((function(e){
|
||||
return s.sendEvent(n,t._paymentType+".local-payment.tokenization.failed"),d.reject(u(e,{type:f.LOCAL_PAYMENT_TOKENIZATION_FAILED.type,code:f.LOCAL_PAYMENT_TOKENIZATION_FAILED.code,message:f.LOCAL_PAYMENT_TOKENIZATION_FAILED.message}))}))},m.prototype.closeWindow=function(){this._authoriztionInProgress&&s.sendEvent(this._client,this._paymentType+".local-payment.start-payment.closed.by-merchant"),this._frameService.close()},m.prototype.focusWindow=function(){this._frameService.focus()},m.prototype._createStartPaymentCallback=function(e,t){var n=this,r=this._client;return function(o,a){if(n._authorizationInProgress=!1,o)if("FRAME_SERVICE_FRAME_CLOSED"===o.code){if(a&&"processing_error"===a.errorcode)return s.sendEvent(r,n._paymentType+".local-payment.failed-in-window"),void t(new i(f.LOCAL_PAYMENT_START_PAYMENT_FAILED));s.sendEvent(r,n._paymentType+".local-payment.tokenization.closed.by-user"),t(new i(f.LOCAL_PAYMENT_WINDOW_CLOSED))}else o.code&&o.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&t(new i({code:f.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.code,type:f.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.type,message:f.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.message,details:{originalError:o}}));else a&&(window.popupBridge||n._frameService.redirect(n._loadingFrameUrl),n.tokenize(a).then(e).catch(t).then((function(){n._frameService.close()})))}},m.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&(n.details.payerInfo&&(t.details=n.details.payerInfo),n.details.correlationId&&(t.correlationId=n.details.correlationId)),t},m.prototype.hasTokenizationParams=function(){var e=_.parse();return!!e.errorcode||Boolean(e.btLpToken&&e.btLpPaymentId&&e.btLpPayerId)},m.prototype._formatTokenizeData=function(e){var t=this._client.getConfiguration().gatewayConfiguration;return{merchantAccountId:this._merchantAccountId,paypalAccount:{correlationId:e.btLpToken||e.token,paymentToken:e.btLpPaymentId||e.paymentId,payerId:e.btLpPayerId||e.PayerID,unilateral:t.paypal.unvettedMerchant,intent:"sale"}}},m.prototype.teardown=function(){return this._frameService.teardown(),l(this,c(m.prototype)),s.sendEvent(this._client,"local-payment.teardown-completed"),d.resolve()},t.exports=E.wrapPrototype(m)},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/convert-to-braintree-error":130,"../../lib/frame-service/external":141,"../../lib/methods":157,"../../lib/promise":159,"../../lib/querystring":160,"../../lib/use-min":162,"../shared/errors":167,"./constants":164,"@braintree/extended-promise":35,"@braintree/wrap-promise":44}],166:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./external/local-payment"),c=e("../lib/promise"),l=e("@braintree/wrap-promise"),u=e("../lib/braintree-error"),d=e("./shared/errors");t.exports={create:l((function(e){var t="Local Payment"
|
||||
;return i.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){var n=t.getConfiguration();return e.client=t,!0!==n.gatewayConfiguration.paypalEnabled?c.reject(new u(d.LOCAL_PAYMENT_NOT_ENABLED)):(r.sendEvent(t,"local-payment.initialized"),new s(e)._initialize())}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./external/local-payment":165,"./shared/errors":167,"@braintree/wrap-promise":44}],167:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={LOCAL_PAYMENT_NOT_ENABLED:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_NOT_ENABLED",message:"LocalPayment is not enabled for this merchant."},LOCAL_PAYMENT_ALREADY_IN_PROGRESS:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_ALREADY_IN_PROGRESS",message:"LocalPayment payment is already in progress."},LOCAL_PAYMENT_CANCELED:{type:r.types.CUSTOMER,code:"LOCAL_PAYMENT_CANCELED",message:"Customer canceled the LocalPayment before authorizing."},LOCAL_PAYMENT_WINDOW_CLOSED:{type:r.types.CUSTOMER,code:"LOCAL_PAYMENT_WINDOW_CLOSED",message:"Customer closed LocalPayment window before authorizing."},LOCAL_PAYMENT_WINDOW_OPEN_FAILED:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_WINDOW_OPEN_FAILED",message:"LocalPayment window failed to open; make sure startPayment was called in response to a user action."},LOCAL_PAYMENT_START_PAYMENT_FAILED:{type:r.types.NETWORK,code:"LOCAL_PAYMENT_START_PAYMENT_FAILED",message:"LocalPayment startPayment failed."},LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION",message:"Missing required option for startPayment."},LOCAL_PAYMENT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"LOCAL_PAYMENT_TOKENIZATION_FAILED",message:"Could not tokenize user's local payment method."},LOCAL_PAYMENT_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_INVALID_PAYMENT_OPTION",message:"Local payment options are invalid."}}},{"../../lib/braintree-error":126}],168:[function(e,t,n){"use strict";var r=e("../../lib/promise"),i=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),a=e("../shared/errors"),s=e("../../lib/methods"),c=e("@braintree/wrap-promise"),l=e("../../lib/analytics"),u=e("../../lib/convert-methods-to-error"),d=e("../../lib/convert-to-braintree-error"),p=e("../shared/constants"),_=e("../../lib/constants").INTEGRATION_TIMEOUT_MS;function E(e){var t=e.client.getConfiguration();this._client=e.client,this._assetsUrl=t.gatewayConfiguration.assetsUrl+"/web/3.76.4",this._isDebug=t.isDebug,this._authInProgress=!1,
|
||||
window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix?this._callbackUrl=window.popupBridge.getReturnUrlPrefix()+"return":this._callbackUrl=this._assetsUrl+"/html/redirect-frame"+(this._isDebug?"":".min")+".html"}E.prototype._initialize=function(){var e=this;return new r((function(t){var n=setTimeout((function(){l.sendEvent(e._client,"masterpass.load.timed-out")}),_);i.create({name:p.LANDING_FRAME_NAME,height:p.POPUP_HEIGHT,width:p.POPUP_WIDTH,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+(e._isDebug?"":".min")+".html",openFrameUrl:e._assetsUrl+"/html/masterpass-landing-frame"+(e._isDebug?"":".min")+".html"},(function(r){e._frameService=r,clearTimeout(n),l.sendEvent(e._client,"masterpass.load.succeeded"),t(e)}))}))},E.prototype.tokenize=function(e){var t=this;return!e||function(e){var t,n;for(t=0;t<p.REQUIRED_OPTIONS_FOR_TOKENIZE.length;t++)if(n=p.REQUIRED_OPTIONS_FOR_TOKENIZE[t],!e.hasOwnProperty(n))return!0;return!1}(e)?r.reject(new o(a.MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION)):t._authInProgress?r.reject(new o(a.MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS)):new r((function(n,r){t._navigateFrameToLoadingPage(e).catch(r),t._frameService.open(e.frameOptions,t._createFrameOpenHandler(n,r))}))},E.prototype._navigateFrameToLoadingPage=function(e){var t=this;return this._authInProgress=!0,this._client.request({method:"post",endpoint:"masterpass/request_token",data:{requestToken:{originUrl:window.location.protocol+"//"+window.location.hostname,subtotal:e.subtotal,currencyCode:e.currencyCode,callbackUrl:this._callbackUrl}}}).then((function(n){var r,i=t._assetsUrl+"/html/masterpass-loading-frame"+(t._isDebug?"":".min")+".html?",o=t._client.getConfiguration().gatewayConfiguration,a=e.config||{};r={environment:o.environment,requestToken:n.requestToken,callbackUrl:t._callbackUrl,merchantCheckoutId:o.masterpass.merchantCheckoutId,allowedCardTypes:o.masterpass.supportedNetworks,version:p.MASTERPASS_VERSION},Object.keys(a).forEach((function(e){"function"!=typeof a[e]&&(r[e]=a[e])})),i+=Object.keys(r).map((function(e){return e+"="+r[e]})).join("&"),t._frameService.redirect(i)})).catch((function(e){var n=e.details&&e.details.httpStatus;return t._closeWindow(),422===n?r.reject(d(e,a.MASTERPASS_INVALID_PAYMENT_OPTION)):r.reject(d(e,a.MASTERPASS_FLOW_FAILED))}))},E.prototype._createFrameOpenHandler=function(e,t){var n=this;return window.popupBridge?function(r,i){return n._authInProgress=!1,r?(l.sendEvent(n._client,"masterpass.tokenization.closed-popupbridge.by-user"),void t(d(r,a.MASTERPASS_POPUP_CLOSED))):i.queryItems?void n._tokenizeMasterpass(i.queryItems).then(e).catch(t):(l.sendEvent(n._client,"masterpass.tokenization.failed-popupbridge"),void t(new o(a.MASTERPASS_FLOW_FAILED)))}:function(r,i){if(r)return n._authInProgress=!1,"FRAME_SERVICE_FRAME_CLOSED"===r.code?(l.sendEvent(n._client,"masterpass.tokenization.closed.by-user"),void t(new o(a.MASTERPASS_POPUP_CLOSED))):r.code&&r.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(l.sendEvent(n._client,"masterpass.tokenization.failed.to-open"),
|
||||
void t(new o({code:a.MASTERPASS_POPUP_OPEN_FAILED.code,type:a.MASTERPASS_POPUP_OPEN_FAILED.type,message:a.MASTERPASS_POPUP_OPEN_FAILED.message,details:{originalError:r}}))):(l.sendEvent(n._client,"masterpass.tokenization.failed"),n._closeWindow(),void t(d(r,a.MASTERPASS_FLOW_FAILED)));n._tokenizeMasterpass(i).then(e).catch(t)}},E.prototype._tokenizeMasterpass=function(e){var t=this;return"success"!==e.mpstatus?(l.sendEvent(t._client,"masterpass.tokenization.closed.by-user"),t._closeWindow(),r.reject(new o(a.MASTERPASS_POPUP_CLOSED))):function(e){return[e.oauth_verifier,e.oauth_token,e.checkout_resource_url].some((function(e){return null==e||"null"===e}))}(e)?(l.sendEvent(t._client,"masterpass.tokenization.closed.missing-payload"),t._closeWindow(),r.reject(new o(a.MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS))):t._client.request({endpoint:"payment_methods/masterpass_cards",method:"post",data:{masterpassCard:{checkoutResourceUrl:e.checkout_resource_url,requestToken:e.oauth_token,verifierToken:e.oauth_verifier}}}).then((function(e){return t._closeWindow(),window.popupBridge?l.sendEvent(t._client,"masterpass.tokenization.success-popupbridge"):l.sendEvent(t._client,"masterpass.tokenization.success"),e.masterpassCards[0]})).catch((function(e){return t._closeWindow(),window.popupBridge?l.sendEvent(t._client,"masterpass.tokenization.failed-popupbridge"):l.sendEvent(t._client,"masterpass.tokenization.failed"),r.reject(d(e,a.MASTERPASS_ACCOUNT_TOKENIZATION_FAILED))}))},E.prototype._closeWindow=function(){this._authInProgress=!1,this._frameService.close()},E.prototype.teardown=function(){var e=this;return new r((function(t){e._frameService.teardown(),u(e,s(E.prototype)),l.sendEvent(e._client,"masterpass.teardown-completed"),t()}))},t.exports=c.wrapPrototype(E)},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/convert-to-braintree-error":130,"../../lib/frame-service/external":141,"../../lib/methods":157,"../../lib/promise":159,"../shared/constants":171,"../shared/errors":172,"@braintree/wrap-promise":44}],169:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("../lib/basic-component-verification"),o=e("./shared/browser-detection"),a=e("./external/masterpass"),s=e("../lib/create-deferred-client"),c=e("../lib/create-assets-url"),l=e("./shared/errors"),u=e("../lib/promise"),d=e("@braintree/wrap-promise");function p(){return Boolean(window.popupBridge||o.supportsPopups())}t.exports={create:d((function(e){return i.verify({name:"Masterpass",client:e.client,authorization:e.authorization}).then((function(){return p()?u.resolve():u.reject(new r(l.MASTERPASS_BROWSER_NOT_SUPPORTED))})).then((function(){return s.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:"Masterpass"})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.masterpass?new a(e)._initialize():u.reject(new r(l.MASTERPASS_NOT_ENABLED))}))})),isSupported:p,VERSION:"3.76.4"}},{
|
||||
"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./external/masterpass":168,"./shared/browser-detection":170,"./shared/errors":172,"@braintree/wrap-promise":44}],170:[function(e,t,n){"use strict";t.exports={supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/supports-popups":32}],171:[function(e,t,n){"use strict";t.exports={LANDING_FRAME_NAME:"braintreemasterpasslanding",POPUP_WIDTH:450,POPUP_HEIGHT:660,MASTERPASS_VERSION:"v6",REQUIRED_OPTIONS_FOR_TOKENIZE:["subtotal","currencyCode"]}},{}],172:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={MASTERPASS_BROWSER_NOT_SUPPORTED:{type:r.types.CUSTOMER,code:"MASTERPASS_BROWSER_NOT_SUPPORTED",message:"Browser is not supported."},MASTERPASS_NOT_ENABLED:{type:r.types.MERCHANT,code:"MASTERPASS_NOT_ENABLED",message:"Masterpass is not enabled for this merchant."},MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION",message:"Missing required option for tokenize."},MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS:{type:r.types.MERCHANT,code:"MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS",message:"Masterpass tokenization is already in progress."},MASTERPASS_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"MASTERPASS_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's Masterpass account."},MASTERPASS_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"MASTERPASS_POPUP_OPEN_FAILED",message:"Masterpass popup failed to open. Make sure to tokenize in response to a user action, such as a click."},MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS:{type:r.types.MERCHANT,code:"MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS",message:"Masterpass popup failed to return all required parameters needed to continue tokenization."},MASTERPASS_POPUP_CLOSED:{type:r.types.CUSTOMER,code:"MASTERPASS_POPUP_CLOSED",message:"Customer closed Masterpass popup before authorizing."},MASTERPASS_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"MASTERPASS_INVALID_PAYMENT_OPTION",message:"Masterpass payment options are invalid."},MASTERPASS_FLOW_FAILED:{type:r.types.NETWORK,code:"MASTERPASS_FLOW_FAILED",message:"Could not initialize Masterpass flow."}}},{"../../lib/braintree-error":126}],173:[function(e,t,n){"use strict";var r=e("../../lib/analytics"),i=e("../../lib/assign").assign,o=e("framebus"),a=e("../../lib/convert-methods-to-error"),s=e("../../lib/generate-google-pay-configuration"),c=e("@braintree/iframer"),l=e("@braintree/uuid"),u=e("../../lib/use-min"),d=e("../../lib/methods"),p=e("../../lib/promise"),_=e("@braintree/event-emitter"),E=e("../../lib/braintree-error"),h=e("../shared/constants"),f=h.events,m=h.errors,y=e("@braintree/wrap-promise"),A={Visa:"visa",MasterCard:"mastercard","American Express":"amex","Diners Club":"diners",Discover:"discover",JCB:"jcb",UnionPay:"unionpay",Maestro:"maestro"};function T(e){var t=e.enabledPaymentMethods||{}
|
||||
;_.call(this),this._componentId=l(),this._client=e.client,this._enabledPaymentMethods={basicCard:!1!==t.basicCard,googlePay:!1!==t.googlePay},this._googlePayVersion=2===e.googlePayVersion?2:1,this._googleMerchantId="18278000977346790994",this._supportedPaymentMethods=this._constructDefaultSupportedPaymentMethods(),this._defaultSupportedPaymentMethods=Object.keys(this._supportedPaymentMethods).map(function(e){return this._supportedPaymentMethods[e]}.bind(this)),this._bus=new o({channel:this._componentId})}_.createChild(T),T.prototype._constructDefaultSupportedPaymentMethods=function(){var e=this._client.getConfiguration(),t=e.gatewayConfiguration.androidPay,n=e.gatewayConfiguration.creditCards,r={};return this._enabledPaymentMethods.basicCard&&n&&n.supportedCardTypes.length>0&&(r.basicCard={supportedMethods:"basic-card",data:{supportedNetworks:n.supportedCardTypes.reduce((function(e,t){return t in A&&e.push(A[t]),e}),[])}}),this._enabledPaymentMethods.googlePay&&t&&t.enabled&&(r.googlePay={supportedMethods:"https://google.com/pay",data:s(e,this._googlePayVersion,this._googleMerchantId)}),r},T.prototype.initialize=function(){var e=this._client.getConfiguration(),t=this;return this._frame=c({allowPaymentRequest:!0,name:"braintree-payment-request-frame",class:"braintree-payment-request-frame",height:0,width:0,style:{position:"absolute",left:"-9999px"},title:"Secure Payment Frame"}),0===this._defaultSupportedPaymentMethods.length?p.reject(new E(m.PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS)):new p((function(n){var i,o,a;t._bus.on(f.FRAME_READY,(function(e){e(t._client)})),t._bus.on(f.FRAME_CAN_MAKE_REQUESTS,(function(){r.sendEvent(t._client,"payment-request.initialized"),t._bus.on(f.SHIPPING_ADDRESS_CHANGE,(function(e){var n={target:{shippingAddress:e},updateWith:function(e){t._bus.emit(f.UPDATE_SHIPPING_ADDRESS,e)}};t._emit("shippingAddressChange",n),t._emit("shippingaddresschange",n)})),t._bus.on(f.SHIPPING_OPTION_CHANGE,(function(e){var n={target:{shippingOption:e},updateWith:function(e){t._bus.emit(f.UPDATE_SHIPPING_OPTION,e)}};t._emit("shippingOptionChange",n),t._emit("shippingoptionchange",n)})),n(t)})),t._frame.src=(i=e.gatewayConfiguration.assetsUrl,o=t._componentId,a=e.isDebug,i+"/web/3.76.4/html/payment-request-frame"+u(a)+".html#"+o),document.body.appendChild(t._frame)}))},T.prototype.createSupportedPaymentMethodsConfiguration=function(e,t){var n;if(!e)throw new E(m.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE);if(!this._enabledPaymentMethods[e])throw new E(m.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED);return(n=i({},this._supportedPaymentMethods[e])).data=i({},n.data,t),n},T.prototype.tokenize=function(e){var t=this;return new p((function(n,i){t._bus.emit(f.PAYMENT_REQUEST_INITIALIZED,{supportedPaymentMethods:e.supportedPaymentMethods||t._defaultSupportedPaymentMethods,details:e.details,options:e.options},(function(e){var o=e[0],a=e[1];o?i(t._formatTokenizationError(o)):(r.sendEvent(t._client,"payment-request.tokenize.succeeded"),
|
||||
n({nonce:a.nonce,type:a.type,description:a.description,details:{rawPaymentResponse:a.details.rawPaymentResponse,cardType:a.details.cardType,lastFour:a.details.lastFour,lastTwo:a.details.lastTwo},binData:a.binData}))}))}))},T.prototype.canMakePayment=function(e){var t,n=this;return window.PaymentRequest?e.supportedPaymentMethods&&(e.supportedPaymentMethods.forEach((function(e){var n=e.supportedMethods;n in h.SUPPORTED_METHODS||(t=n)})),t)?p.reject(new E({type:m.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.type,code:m.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.code,message:t+" is not a supported payment method."})):new p((function(t,i){n._bus.emit(f.CAN_MAKE_PAYMENT,{supportedPaymentMethods:e.supportedPaymentMethods||n._defaultSupportedPaymentMethods,details:e.details,options:e.options},(function(e){var o=e[0],a=e[1];o?i(n._formatCanMakePaymentError(o)):(r.sendEvent(n._client,"payment-request.can-make-payment."+a),t(a))}))})):(r.sendEvent(n._client,"payment-request.can-make-payment.not-available"),p.resolve(!1))},T.prototype.teardown=function(){return this._bus.teardown(),this._frame.parentNode.removeChild(this._frame),a(this,d(T.prototype)),r.sendEvent(this._client,"payment-request.teardown-completed"),p.resolve()},T.prototype._formatTokenizationError=function(e){var t;switch(e.name){case"AbortError":return t=new E({type:m.PAYMENT_REQUEST_CANCELED.type,code:m.PAYMENT_REQUEST_CANCELED.code,message:m.PAYMENT_REQUEST_CANCELED.message,details:{originalError:e}}),r.sendEvent(this._client,"payment-request.tokenize.canceled"),t;case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new E({type:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_TOKENIZATION_ERROR":t=new E({type:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.type,code:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.code,message:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_PARSING_ERROR":t=new E({type:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.type,code:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.code,message:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.message,details:{originalError:e}});break;default:t=new E({code:m.PAYMENT_REQUEST_NOT_COMPLETED.code,type:e.type||E.types.CUSTOMER,message:m.PAYMENT_REQUEST_NOT_COMPLETED.message,details:{originalError:e}})}return r.sendEvent(this._client,"payment-request.tokenize.failed"),t},T.prototype._formatCanMakePaymentError=function(e){var t;switch(e.name){case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new E({type:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"NotAllowedError":t=new E({type:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.type,
|
||||
code:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.code,message:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.message,details:{originalError:e}});break;default:t=new E({code:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.code,type:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.type,message:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.message,details:{originalError:e}})}return r.sendEvent(this._client,"payment-request.can-make-payment.failed"),t},t.exports=y.wrapPrototype(T)},{"../../lib/analytics":121,"../../lib/assign":123,"../../lib/braintree-error":126,"../../lib/convert-methods-to-error":129,"../../lib/generate-google-pay-configuration":151,"../../lib/methods":157,"../../lib/promise":159,"../../lib/use-min":162,"../shared/constants":175,"@braintree/event-emitter":34,"@braintree/iframer":36,"@braintree/uuid":40,"@braintree/wrap-promise":44,framebus:53}],174:[function(e,t,n){"use strict";var r=e("./external/payment-request"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("@braintree/wrap-promise");t.exports={create:s((function(e){var t="Payment Request";return i.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,new r(e).initialize()}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"./external/payment-request":173,"@braintree/wrap-promise":44}],175:[function(e,t,n){"use strict";var r=e("../../lib/enumerate"),i=e("./errors"),o={};o.events=r(["CAN_MAKE_PAYMENT","FRAME_READY","FRAME_CAN_MAKE_REQUESTS","PAYMENT_REQUEST_INITIALIZED","SHIPPING_ADDRESS_CHANGE","UPDATE_SHIPPING_ADDRESS","SHIPPING_OPTION_CHANGE","UPDATE_SHIPPING_OPTION"],"payment-request:"),o.errors=i,o.SUPPORTED_METHODS={"basic-card":!0,"https://google.com/pay":!0},t.exports=o},{"../../lib/enumerate":136,"./errors":176}],176:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS",message:"There are no supported payment methods associated with this account."},PAYMENT_REQUEST_CANCELED:{type:r.types.CUSTOMER,code:"PAYMENT_REQUEST_CANCELED",message:"Payment request was canceled."},PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED",message:"Something went wrong when configuring the payment request."},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED:{type:r.types.UNKNOWN,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED",message:"Something went wrong when calling `canMakePayment`"},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED",
|
||||
message:"Something went wrong when calling `canMakePayment`. Most likely, `canMakePayment` was called multiple times with different supportedMethods configurations."},PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD"},PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE",message:"Something went wrong when tokenizing the Google Pay card."},PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR:{type:r.types.UNKNOWN,code:"PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR",message:"Something went wrong when tokenizing the Google Pay card."},PAYMENT_REQUEST_NOT_COMPLETED:{code:"PAYMENT_REQUEST_NOT_COMPLETED",message:"Payment request could not be completed."},PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE",message:"createSupportedPaymentMethodsConfiguration must include a type parameter."},PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED",message:"createSupportedPaymentMethodsConfiguration type parameter must be valid or enabled."}}},{"../../lib/braintree-error":126}],177:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED:{type:r.types.MERCHANT,code:"PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED",message:"A linked PayPal Sandbox account is required to use PayPal Checkout in Sandbox. See https://developers.braintreepayments.com/guides/paypal/testing-go-live/#linked-paypal-testing for details on linking your PayPal sandbox with Braintree."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED"},PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED:{type:r.types.NETWORK,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED",message:"Something went wrong when setting up the checkout workflow."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED",message:"PayPal popup failed to open, make sure to initiate the vault checkout in response to a user action."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED:{type:r.types.CUSTOMER,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED",
|
||||
message:"Customer closed PayPal popup before authorizing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS",message:"Vault initiated checkout already in progress."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../lib/braintree-error":126}],178:[function(e,t,n){"use strict";var r=e("../lib/basic-component-verification"),i=e("@braintree/wrap-promise"),o=e("./paypal-checkout");t.exports={create:i((function(e){return r.verify({name:"PayPal Checkout",client:e.client,authorization:e.authorization}).then((function(){return new o(e)._initialize(e)}))})),isSupported:function(){return!0},VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"./paypal-checkout":179,"@braintree/wrap-promise":44}],179:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/assign").assign,o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("../lib/promise"),c=e("@braintree/extended-promise"),l=e("@braintree/wrap-promise"),u=e("../lib/braintree-error"),d=e("../lib/convert-to-braintree-error"),p=e("./errors"),_=e("../paypal/shared/constants"),E=e("../lib/frame-service/external"),h=e("../lib/create-authorization-data"),f=e("../lib/methods"),m=e("../lib/use-min"),y=e("../lib/convert-methods-to-error"),A=e("../lib/querystring"),T=e("../lib/constants").INTEGRATION_TIMEOUT_MS,I=["amount","currency","vaultInitiatedCheckoutPaymentMethodToken"];function N(e){this._merchantAccountId=e.merchantAccountId,this._autoSetDataUserIdToken=Boolean(e.autoSetDataUserIdToken)}N.prototype._initialize=function(e){var t;return e.client?(t=e.client.getConfiguration(),this._authorizationInformation={fingerprint:t.authorizationFingerprint,environment:t.gatewayConfiguration.environment}):(t=h(e.authorization),this._authorizationInformation={fingerprint:t.attrs.authorizationFingerprint,environment:t.environment}),this._clientPromise=o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"PayPal Checkout"}).then(function(e){return this._configuration=e.getConfiguration(),this._merchantAccountId||(this._configuration.gatewayConfiguration.paypalEnabled?!0===this._configuration.gatewayConfiguration.paypal.environmentNoNetwork&&(this._setupError=new u(p.PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED)):this._setupError=new u(p.PAYPAL_NOT_ENABLED)),this._setupError?s.reject(this._setupError):(r.sendEvent(e,"paypal-checkout.initialized"),this._frameServicePromise=this._setupFrameService(e),e)}.bind(this)),e.client?this._clientPromise.then(function(){return this}.bind(this)):s.resolve(this)},N.prototype._setupFrameService=function(e){var t=new c,n=e.getConfiguration(),i=setTimeout((function(){r.sendEvent(e,"paypal-checkout.frame-service.timed-out"),t.reject(new u(p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED))}),T);return this._assetsUrl=n.gatewayConfiguration.paypal.assetsUrl+"/web/3.76.4",this._isDebug=n.isDebug,
|
||||
this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+m(this._isDebug)+".html",E.create({name:"braintreepaypallanding",dispatchFrameUrl:this._assetsUrl+"/html/dispatch-frame"+m(this._isDebug)+".html",openFrameUrl:this._loadingFrameUrl},function(e){this._frameService=e,clearTimeout(i),t.resolve()}.bind(this)),t},N.prototype.createPayment=function(e){return e&&_.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(r.sendEvent(this._clientPromise,"paypal-checkout.createPayment"),this._createPaymentResource(e).then((function(t){return"checkout"===e.flow?t.paymentResource.redirectUrl.match(/EC-\w+/)[0]:t.agreementSetup.tokenId}))):s.reject(new u(p.PAYPAL_FLOW_OPTION_REQUIRED))},N.prototype._createPaymentResource=function(e,t){var n=this,i="paypal_hermes/"+_.FLOW_ENDPOINTS[e.flow];return delete this.intentFromCreatePayment,t=t||{},!0===e.offerCredit&&r.sendEvent(this._clientPromise,"paypal-checkout.credit.offered"),this._clientPromise.then((function(r){return r.request({endpoint:i,method:"post",data:n._formatPaymentResourceData(e,t)}).then((function(t){return n.intentFromCreatePayment=e.intent,t}))})).catch((function(e){return n._setupError?s.reject(n._setupError):422===(e.details&&e.details.httpStatus)?s.reject(new u({type:p.PAYPAL_INVALID_PAYMENT_OPTION.type,code:p.PAYPAL_INVALID_PAYMENT_OPTION.code,message:p.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):s.reject(d(e,{type:p.PAYPAL_FLOW_FAILED.type,code:p.PAYPAL_FLOW_FAILED.code,message:p.PAYPAL_FLOW_FAILED.message}))}))},N.prototype.startVaultInitiatedCheckout=function(e){var t,n=this;return this._vaultInitiatedCheckoutInProgress?(r.sendEvent(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.error.already-in-progress"),s.reject(new u(p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS))):(I.forEach((function(n){e.hasOwnProperty(n)||(t=n)})),t?s.reject(new u({type:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.type,code:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.code,message:"Required param "+t+" is missing."})):(this._vaultInitiatedCheckoutInProgress=!0,this._addModalBackdrop(e),e=i({},e,{flow:"checkout"}),r.sendEvent(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.started"),this._waitForVaultInitiatedCheckoutDependencies().then((function(){var t=new c,r=n._createPaymentResource(e,{returnUrl:n._constructVaultCheckutUrl("redirect-frame"),cancelUrl:n._constructVaultCheckutUrl("cancel-frame")}).then((function(e){var r=e.paymentResource.redirectUrl;return n._frameService.redirect(r),t}));return n._frameService.open({},n._createFrameServiceCallback(t)),r})).catch((function(e){return n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),"FRAME_SERVICE_FRAME_CLOSED"===e.code?(r.sendEvent(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-customer"),s.reject(new u(p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED))):(n._frameService&&n._frameService.close(),
|
||||
e.code&&e.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(r.sendEvent(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.failed.popup-not-opened"),s.reject(new u({code:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.code,type:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.type,message:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.message,details:{originalError:e}}))):s.reject(e))})).then((function(e){return n._frameService.close(),n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),r.sendEvent(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.succeeded"),s.resolve(e)}))))},N.prototype._addModalBackdrop=function(e){e.optOutOfModalBackdrop||(this._modalBackdrop||(this._modalBackdrop=document.createElement("div"),this._modalBackdrop.setAttribute("data-braintree-paypal-vault-initiated-checkout-modal",!0),this._modalBackdrop.style.position="fixed",this._modalBackdrop.style.top=0,this._modalBackdrop.style.bottom=0,this._modalBackdrop.style.left=0,this._modalBackdrop.style.right=0,this._modalBackdrop.style.zIndex=9999,this._modalBackdrop.style.background="black",this._modalBackdrop.style.opacity="0.7",this._modalBackdrop.addEventListener("click",function(){this.focusVaultInitiatedCheckoutWindow()}.bind(this))),document.body.appendChild(this._modalBackdrop))},N.prototype._removeModalBackdrop=function(){this._modalBackdrop&&this._modalBackdrop.parentNode&&this._modalBackdrop.parentNode.removeChild(this._modalBackdrop)},N.prototype.closeVaultInitiatedCheckoutWindow=function(){return this._vaultInitiatedCheckoutInProgress&&r.sendEvent(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-merchant"),this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.close()}.bind(this))},N.prototype.focusVaultInitiatedCheckoutWindow=function(){return this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.focus()}.bind(this))},N.prototype._createFrameServiceCallback=function(e){var t=this;return function(n,r){n?e.reject(n):r&&(t._frameService.redirect(t._loadingFrameUrl),t.tokenizePayment({paymentToken:r.token,payerID:r.PayerID,paymentID:r.paymentId}).then((function(t){e.resolve(t)})).catch((function(t){e.reject(t)})))}},N.prototype._waitForVaultInitiatedCheckoutDependencies=function(){var e=this;return this._clientPromise.then((function(){return e._frameServicePromise}))},N.prototype._constructVaultCheckutUrl=function(e){var t=this._frameService._serviceId;return this._assetsUrl+"/html/"+e+m(this._isDebug)+".html?channel="+t},N.prototype.tokenizePayment=function(e){var t,n=this,i=!0,o={flow:e.billingToken&&!e.paymentID?"vault":"checkout",intent:e.intent||this.intentFromCreatePayment},a={ecToken:e.paymentToken,billingToken:e.billingToken,payerId:e.payerID,paymentId:e.paymentID,shippingOptionsId:e.shippingOptionsId};return e.hasOwnProperty("vault")&&(i=e.vault),o.vault=i,r.sendEvent(this._clientPromise,"paypal-checkout.tokenization.started"),this._clientPromise.then((function(e){
|
||||
return e.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:n._formatTokenizeData(o,a)})})).then((function(e){return t=n._formatTokenizePayload(e),r.sendEvent(n._clientPromise,"paypal-checkout.tokenization.success"),t.creditFinancingOffered&&r.sendEvent(n._clientPromise,"paypal-checkout.credit.accepted"),t})).catch((function(e){return n._setupError?s.reject(n._setupError):(r.sendEvent(n._clientPromise,"paypal-checkout.tokenization.failed"),s.reject(d(e,{type:p.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:p.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:p.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message})))}))},N.prototype.getClientId=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.paypal.clientId}))},N.prototype.loadPayPalSDK=function(e){var t,n=new c,r=e&&e.dataAttributes;return t=r&&r["user-id-token"]?r["user-id-token"]:this._authorizationInformation.fingerprint&&this._authorizationInformation.fingerprint.split("?")[0],this._paypalScript=document.createElement("script"),delete(e=i({},{components:"buttons"},e)).dataAttributes,e.vault?e.intent=e.intent||"tokenize":(e.intent=e.intent||"authorize",e.currency=e.currency||"USD"),this._paypalScript.onload=function(){n.resolve()},r&&Object.keys(r).forEach(function(e){this._paypalScript.setAttribute("data-"+e,r[e])}.bind(this)),(e["client-id"]?s.resolve(e["client-id"]):this.getClientId()).then(function(n){e["client-id"]=n,this._autoSetDataUserIdToken&&t&&(this._paypalScript.setAttribute("data-user-id-token",t),this._attachPreloadPixel({id:n,userIdToken:t,amount:r&&r.amount,currency:e.currency,merchantId:e["merchant-id"]})),this._paypalScript.src=A.queryify("https://www.paypal.com/sdk/js?",e),document.head.insertBefore(this._paypalScript,document.head.firstElementChild)}.bind(this)),n.then(function(){return this}.bind(this))},N.prototype._attachPreloadPixel=function(e){var t,n=e.id,r=e.userIdToken,i=this._authorizationInformation.environment,o="https://www.{ENV}paypal.com/smart/buttons/preload".replace("{ENV}","production"===i?"":"sandbox."),a={"client-id":n,"user-id-token":r};e.amount&&(a.amount=e.amount),e.currency&&(a.currency=e.currency),e.merchantId&&(a["merchant-id"]=e.merchantId),(t=new XMLHttpRequest).open("GET",A.queryify(o,a)),t.send()},N.prototype._formatPaymentResourceData=function(e,t){var n,r=this._configuration.gatewayConfiguration,i=e.intent,o={returnUrl:t.returnUrl||"https://www.paypal.com/checkoutnow/error",cancelUrl:t.cancelUrl||"https://www.paypal.com/checkoutnow/error",offerPaypalCredit:!0===e.offerCredit,merchantAccountId:this._merchantAccountId,experienceProfile:{brandName:e.displayName||r.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType},shippingOptions:e.shippingOptions};if("checkout"===e.flow){for(n in o.amount=e.amount,o.currencyIsoCode=e.currency,o.requestBillingAgreement=e.requestBillingAgreement,i&&("capture"===i&&(i="sale"),o.intent=i),
|
||||
e.hasOwnProperty("lineItems")&&(o.lineItems=e.lineItems),e.hasOwnProperty("vaultInitiatedCheckoutPaymentMethodToken")&&(o.vaultInitiatedCheckoutPaymentMethodToken=e.vaultInitiatedCheckoutPaymentMethodToken),e.hasOwnProperty("shippingOptions")&&(o.shippingOptions=e.shippingOptions),e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(n)&&(o[n]=e.shippingAddressOverride[n]);e.hasOwnProperty("billingAgreementDetails")&&(o.billingAgreementDetails=e.billingAgreementDetails)}else o.shippingAddress=e.shippingAddressOverride,e.billingAgreementDescription&&(o.description=e.billingAgreementDescription);return o},N.prototype._formatTokenizeData=function(e,t){var n=this._configuration,r=n.gatewayConfiguration,i="TOKENIZATION_KEY"===n.authorizationType,o="vault"===e.flow,a={paypalAccount:{correlationId:t.billingToken||t.ecToken,options:{validate:o&&!i&&e.vault}}};return o?a.paypalAccount.billingAgreementToken=t.billingToken:(a.paypalAccount.paymentToken=t.paymentId,a.paypalAccount.payerId=t.payerId,a.paypalAccount.unilateral=r.paypal.unvettedMerchant,e.intent&&(a.paypalAccount.intent=e.intent)),this._merchantAccountId&&(a.merchantAccountId=this._merchantAccountId),a},N.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),n.details&&n.details.shippingOptionId&&(t.shippingOptionId=n.details.shippingOptionId),n.details&&n.details.cobrandedCardLabel&&(t.cobrandedCardLabel=n.details.cobrandedCardLabel),t},N.prototype.teardown=function(){var e=this;return y(this,f(N.prototype)),this._paypalScript&&this._paypalScript.parentNode&&this._paypalScript.parentNode.removeChild(this._paypalScript),this._frameServicePromise.catch((function(){})).then((function(){return e._frameService?e._frameService.teardown():s.resolve()}))},t.exports=l.wrapPrototype(N)},{"../lib/analytics":121,"../lib/assign":123,"../lib/braintree-error":126,"../lib/constants":128,"../lib/convert-methods-to-error":129,"../lib/convert-to-braintree-error":130,"../lib/create-assets-url":131,"../lib/create-authorization-data":132,"../lib/create-deferred-client":133,"../lib/frame-service/external":141,"../lib/methods":157,"../lib/promise":159,"../lib/querystring":160,"../lib/use-min":162,"../paypal/shared/constants":182,"./errors":177,"@braintree/extended-promise":35,"@braintree/wrap-promise":44}],180:[function(e,t,n){"use strict";var r=e("../../lib/frame-service/external"),i=e("../../lib/braintree-error"),o=e("../../lib/convert-to-braintree-error"),a=e("../../lib/use-min"),s=e("../../lib/once"),c=e("../shared/constants"),l=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,u=e("../../lib/analytics"),d=e("../../lib/methods"),p=e("../../lib/deferred"),_=e("../shared/errors"),E=e("../../lib/convert-methods-to-error"),h=e("../../lib/querystring"),f=e("../../lib/promise"),m=e("@braintree/wrap-promise");function y(e){
|
||||
this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.paypal.assetsUrl+"/web/3.76.4",this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+a(this._isDebug)+".html",this._authorizationInProgress=!1}y.prototype._initialize=function(){var e=this,t=this._client,n=setTimeout((function(){u.sendEvent(t,"paypal.load.timed-out")}),l);return new f((function(i){r.create({name:c.LANDING_FRAME_NAME,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+a(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},(function(r){e._frameService=r,clearTimeout(n),u.sendEvent(t,"paypal.load.succeeded"),i(e)}))}))},y.prototype.tokenize=function(e,t){var n,r,o=this,a=this._client;return t&&(t=s(p(t))),e&&c.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(n=new f((function(t,n){o._authorizationInProgress?(u.sendEvent(a,"paypal.tokenization.error.already-opened"),n(new i(_.PAYPAL_TOKENIZATION_REQUEST_ACTIVE))):(o._authorizationInProgress=!0,window.popupBridge||u.sendEvent(a,"paypal.tokenization.opened"),!0===e.offerCredit&&u.sendEvent(a,"paypal.credit.offered"),!0===e.offerPayLater&&u.sendEvent(a,"paypal.paylater.offered"),o._navigateFrameToAuth(e).catch(n),o._frameService.open({},o._createFrameServiceCallback(e,t,n)))})),t?(n.then((function(e){t(null,e)})).catch(t),this._frameService.createHandler({beforeClose:function(){u.sendEvent(a,"paypal.tokenization.closed.by-merchant")}})):n):(r=new i(_.PAYPAL_FLOW_OPTION_REQUIRED),t?(t(r),this._frameService.createNoopHandler()):f.reject(r))},y.prototype._createFrameServiceCallback=function(e,t,n){var r=this,o=this._client;return window.popupBridge?function(a,s){var c=s&&s.path&&"/cancel"===s.path.substring(0,7);r._authorizationInProgress=!1,a||c?(u.sendEvent(o,"paypal.tokenization.closed-popupbridge.by-user"),n(new i(_.PAYPAL_POPUP_CLOSED))):s&&r._tokenizePayPal(e,s.queryItems).then(t).catch(n)}:function(a,s){r._authorizationInProgress=!1,a?"FRAME_SERVICE_FRAME_CLOSED"===a.code?(u.sendEvent(o,"paypal.tokenization.closed.by-user"),n(new i(_.PAYPAL_POPUP_CLOSED))):a.code&&a.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&n(new i({code:_.PAYPAL_POPUP_OPEN_FAILED.code,type:_.PAYPAL_POPUP_OPEN_FAILED.type,message:_.PAYPAL_POPUP_OPEN_FAILED.message,details:{originalError:a}})):s&&r._tokenizePayPal(e,s).then(t).catch(n)}},y.prototype._tokenizePayPal=function(e,t){var n=this,r=this._client;return window.popupBridge||this._frameService.redirect(this._loadingFrameUrl),r.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e,t)}).then((function(e){var t=n._formatTokenizePayload(e);return window.popupBridge?u.sendEvent(r,"paypal.tokenization.success-popupbridge"):u.sendEvent(r,"paypal.tokenization.success"),t.creditFinancingOffered&&u.sendEvent(r,"paypal.credit.accepted"),n._frameService.close(),t})).catch((function(e){return window.popupBridge?u.sendEvent(r,"paypal.tokenization.failed-popupbridge"):u.sendEvent(r,"paypal.tokenization.failed"),n._frameService.close(),f.reject(o(e,{
|
||||
type:_.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:_.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:_.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message}))}))},y.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),t},y.prototype._formatTokenizeData=function(e,t){var n=this._client.getConfiguration(),r=n.gatewayConfiguration,i="TOKENIZATION_KEY"===n.authorizationType,o={paypalAccount:{correlationId:t.ba_token||t.token,options:{validate:"vault"===e.flow&&!i}}};return t.ba_token?o.paypalAccount.billingAgreementToken=t.ba_token:(o.paypalAccount.paymentToken=t.paymentId,o.paypalAccount.payerId=t.PayerID,o.paypalAccount.unilateral=r.paypal.unvettedMerchant,e.hasOwnProperty("intent")&&(o.paypalAccount.intent=e.intent)),o},y.prototype._navigateFrameToAuth=function(e){var t=this,n=this._client,r="paypal_hermes/"+c.FLOW_ENDPOINTS[e.flow];return n.request({endpoint:r,method:"post",data:this._formatPaymentResourceData(e)}).then((function(r){var i;i="checkout"===e.flow?r.paymentResource.redirectUrl:r.agreementSetup.approvalUrl,"commit"===e.useraction&&(i=h.queryify(i,{useraction:"commit"})),window.popupBridge&&u.sendEvent(n,"paypal.tokenization.opened-popupbridge"),t._frameService.redirect(i)})).catch((function(e){var n=e.details&&e.details.httpStatus;return t._frameService.close(),t._authorizationInProgress=!1,422===n?f.reject(new i({type:_.PAYPAL_INVALID_PAYMENT_OPTION.type,code:_.PAYPAL_INVALID_PAYMENT_OPTION.code,message:_.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):f.reject(o(e,{type:_.PAYPAL_FLOW_FAILED.type,code:_.PAYPAL_FLOW_FAILED.code,message:_.PAYPAL_FLOW_FAILED.message}))}))},y.prototype._formatPaymentResourceData=function(e){var t,n=this._client.getConfiguration().gatewayConfiguration,r=this._frameService._serviceId,i={returnUrl:n.paypal.assetsUrl+"/web/3.76.4/html/redirect-frame"+a(this._isDebug)+".html?channel="+r,cancelUrl:n.paypal.assetsUrl+"/web/3.76.4/html/cancel-frame"+a(this._isDebug)+".html?channel="+r,offerPaypalCredit:!0===e.offerCredit,offerPayLater:!0===e.offerPayLater,experienceProfile:{brandName:e.displayName||n.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType}};if(window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix&&(i.returnUrl=window.popupBridge.getReturnUrlPrefix()+"return",i.cancelUrl=window.popupBridge.getReturnUrlPrefix()+"cancel"),"checkout"===e.flow)for(t in i.amount=e.amount,i.currencyIsoCode=e.currency,e.hasOwnProperty("intent")&&(i.intent=e.intent),e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(t)&&(i[t]=e.shippingAddressOverride[t]);else i.shippingAddress=e.shippingAddressOverride,
|
||||
e.billingAgreementDescription&&(i.description=e.billingAgreementDescription);return i},y.prototype.closeWindow=function(){this._authorizationInProgress&&u.sendEvent(this._client,"paypal.tokenize.closed.by-merchant"),this._frameService.close()},y.prototype.focusWindow=function(){this._frameService.focus()},y.prototype.teardown=m((function(){return this._frameService.teardown(),E(this,d(y.prototype)),u.sendEvent(this._client,"paypal.teardown-completed"),f.resolve()})),t.exports=y},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/convert-to-braintree-error":130,"../../lib/deferred":134,"../../lib/frame-service/external":141,"../../lib/methods":157,"../../lib/once":158,"../../lib/promise":159,"../../lib/querystring":160,"../../lib/use-min":162,"../shared/constants":182,"../shared/errors":183,"@braintree/wrap-promise":44}],181:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("../lib/braintree-error"),c=e("./shared/errors"),l=e("./external/paypal"),u=e("@braintree/wrap-promise"),d=e("../lib/promise");t.exports={create:u((function(e){return i.verify({name:"PayPal",client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"PayPal"})})).then((function(t){var n=t.getConfiguration();return e.client=t,!0!==n.gatewayConfiguration.paypalEnabled?d.reject(new s(c.PAYPAL_NOT_ENABLED)):(r.sendEvent(e.client,"paypal.initialized"),new l(e)._initialize())}))})),isSupported:function(){return!0},VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./external/paypal":180,"./shared/errors":183,"@braintree/wrap-promise":44}],182:[function(e,t,n){"use strict";t.exports={LANDING_FRAME_NAME:"braintreepaypallanding",FLOW_ENDPOINTS:{checkout:"create_payment_resource",vault:"setup_billing_agreement"}}},{}],183:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"PAYPAL_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"PAYPAL_POPUP_OPEN_FAILED",
|
||||
message:"PayPal popup failed to open, make sure to tokenize in response to a user action."},PAYPAL_POPUP_CLOSED:{type:r.types.CUSTOMER,code:"PAYPAL_POPUP_CLOSED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../../lib/braintree-error":126}],184:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),i=e("../lib/basic-component-verification"),o=e("./preferred-payment-methods");t.exports={create:r((function(e){return i.verify({name:"PreferredPaymentMethods",client:e.client,authorization:e.authorization}).then((function(){return(new o).initialize(e)}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"./preferred-payment-methods":185,"@braintree/wrap-promise":44}],185:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),i=e("../lib/analytics"),o=e("../lib/create-assets-url"),a=e("../lib/create-deferred-client"),s=e("../lib/promise");function c(){}c.prototype.initialize=function(e){var t=this;return this._clientPromise=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:o.create(e.authorization),name:"PreferredPaymentMethods"}).catch((function(e){return t._setupError=e,s.reject(e)})),i.sendEvent(this._clientPromise,"preferred-payment-methods.initialized"),s.resolve(this)},c.prototype.fetchPreferredPaymentMethods=function(){var e,t=this;return this._clientPromise.then((function(t){return(e=t).request({api:"graphQLApi",data:{query:"query PreferredPaymentMethods { preferredPaymentMethods { paypalPreferred venmoPreferred } }"}})})).then((function(t){var n=t.data.preferredPaymentMethods.paypalPreferred,r=t.data.preferredPaymentMethods.venmoPreferred;return i.sendEvent(e,"preferred-payment-methods.paypal.api-detected."+n),i.sendEvent(e,"preferred-payment-methods.venmo.api-detected."+r),{paypalPreferred:n,venmoPreferred:r}})).catch((function(){return t._setupError?s.reject(t._setupError):(i.sendEvent(e,"preferred-payment-methods.api-error"),{paypalPreferred:!1,venmoPreferred:!1})}))},t.exports=r.wrapPrototype(c)},{"../lib/analytics":121,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"@braintree/wrap-promise":44}],186:[function(e,t,n){"use strict";var r=e("../../../lib/assign").assign,i=e("../../../lib/analytics"),o=e("../../../lib/braintree-error"),a=e("../../../lib/promise"),s=e("../../../lib/is-verified-domain"),c=e("@braintree/extended-promise"),l=e("@braintree/event-emitter"),u=e("../../shared/errors"),d=e("@braintree/iframer"),p=e("framebus"),_=e("../../shared/constants"),E=e("@braintree/uuid"),h=e("../../shared/events"),f=e("../../../lib/use-min"),m=e("../../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT;function y(e){l.call(this),this._client=e.client,this._createPromise=e.createPromise,this._createOptions=e,this._client?(this._isDebug=this._client.getConfiguration().isDebug,
|
||||
this._assetsUrl=this._client.getConfiguration().gatewayConfiguration.assetsUrl):(this._isDebug=Boolean(e.isDebug),this._assetsUrl=e.assetsUrl),this._assetsUrl=this._assetsUrl+"/web/3.76.4"}l.createChild(y),y.prototype._waitForClient=function(){return this._client?a.resolve():this._createPromise.then(function(e){this._client=e}.bind(this))},y.prototype.setUpEventListeners=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.verifyCard=function(e,t){var n,r,o=this;return t=t||{},(r=this._checkForVerifyCardError(e,t))?a.reject(r):(this._verifyCardInProgress=!0,n=this._formatVerifyCardOptions(e),this._formatLookupData(n).then((function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.started"),o._performLookup(n.nonce,e)})).then((function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.3ds-version."+e.lookup.threeDSecureVersion),o._onLookupComplete(e,n)})).then((function(e){return o.initializeChallengeWithLookupResponse(e,n)})).then((function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.completed"),e})).catch((function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.failed"),a.reject(e)})))},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._presentChallenge=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.prepareLookup=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._resetVerificationState=function(){this._verifyCardInProgress=!1,this._verifyCardPromisePlus=null},y.prototype._performLookup=function(e,t){var n=this,r="payment_methods/"+e+"/three_d_secure/lookup";return this._waitForClient().then((function(){return n._client.request({endpoint:r,method:"post",data:t}).catch((function(e){var t,r=e&&e.details&&e.details.httpStatus,s="three-d-secure.verification-flow.lookup-failed";return 404===r?(t=u.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR,s+=".404"):422===r?(t=u.THREEDS_LOOKUP_VALIDATION_ERROR,s+=".422"):t=u.THREEDS_LOOKUP_ERROR,i.sendEvent(n._createPromise,s),a.reject(new o({type:t.type,code:t.code,message:t.message,details:{originalError:e}}))}))}))},y.prototype._checkForVerifyCardError=function(e,t){var n;return!0===this._verifyCardInProgress?new o(u.THREEDS_AUTHENTICATION_IN_PROGRESS):(e.nonce?e.amount||(n="an amount"):n="a nonce",n||(n=this._checkForFrameworkSpecificVerifyCardErrors(e,t)),n?new o({type:u.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:u.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include "+n+"."}):null)},y.prototype.initializeChallengeWithLookupResponse=function(e,t){var n=this;return t=t||{},this._lookupPaymentMethod=e.paymentMethod,n._verifyCardPromisePlus=n._verifyCardPromisePlus||new c,n._handleLookupResponse(e,t),n._verifyCardPromisePlus.then((function(e){
|
||||
return i.sendEvent(n._createPromise,"three-d-secure.verification-flow.liability-shifted."+String(e.liabilityShifted)),i.sendEvent(n._createPromise,"three-d-secure.verification-flow.liability-shift-possible."+String(e.liabilityShiftPossible)),e}))},y.prototype._handleLookupResponse=function(e,t){var n,r=Boolean(e.lookup&&e.lookup.acsUrl);i.sendEvent(this._createPromise,"three-d-secure.verification-flow.challenge-presented."+String(r)),r?this._presentChallenge(e,t):((n=this._formatAuthResponse(e.paymentMethod,e.threeDSecureInfo)).verificationDetails=e.threeDSecureInfo,this._verifyCardPromisePlus.resolve(n))},y.prototype._onLookupComplete=function(e){return this._lookupPaymentMethod=e.paymentMethod,this._verifyCardPromisePlus=new c,a.resolve(e)},y.prototype._formatAuthResponse=function(e,t){return{nonce:e.nonce,binData:e.binData,details:e.details,description:e.description&&e.description.replace(/\+/g," "),liabilityShifted:t&&t.liabilityShifted,liabilityShiftPossible:t&&t.liabilityShiftPossible,threeDSecureInfo:e.threeDSecureInfo}},y.prototype._formatVerifyCardOptions=function(e){return r({},e)},y.prototype._formatLookupData=function(e){var t={amount:e.amount};return a.resolve(t)},y.prototype._handleV1AuthResponse=function(e){var t=JSON.parse(e.auth_response);t.success?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(t.paymentMethod,t.threeDSecureInfo)):t.threeDSecureInfo&&t.threeDSecureInfo.liabilityShiftPossible?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(this._lookupPaymentMethod,t.threeDSecureInfo)):this._verifyCardPromisePlus.reject(new o({type:o.types.UNKNOWN,code:"UNKNOWN_AUTH_RESPONSE",message:t.error.message}))},y.prototype.cancelVerifyCard=function(){var e,t;return this._verifyCardInProgress=!1,this._lookupPaymentMethod?(t=this._lookupPaymentMethod.threeDSecureInfo,e=r({},this._lookupPaymentMethod,{liabilityShiftPossible:t&&t.liabilityShiftPossible,liabilityShifted:t&&t.liabilityShifted,verificationDetails:t&&t.verificationDetails}),a.resolve(e)):a.reject(new o(u.THREEDS_NO_VERIFICATION_PAYLOAD))},y.prototype._setupV1Bus=function(e){var t=window.location.href.split("#")[0],n=e.lookupResponse,r=E(),i=new p({channel:r,verifyDomain:s}),o=this._assetsUrl+"/html/three-d-secure-authentication-complete-frame.html?channel="+encodeURIComponent(r)+"&";return i.on(m,(function(e){e({acsUrl:n.acsUrl,pareq:n.pareq,termUrl:n.termUrl+"&three_d_secure_version=3.76.4&authentication_complete_base_url="+encodeURIComponent(o),md:n.md,parentUrl:t})})),i.on(h.AUTHENTICATION_COMPLETE,e.handleAuthResponse),i},y.prototype._setupV1Iframe=function(e){var t=this._assetsUrl+"/html/three-d-secure-bank-frame"+f(this._isDebug)+".html?showLoader="+e.showLoader;return d({src:t,height:400,width:400,name:_.LANDING_FRAME_NAME+"_"+this._v1Bus.channel,title:"3D Secure Authorization Frame"})},y.prototype._setupV1Elements=function(e){this._v1Bus=this._setupV1Bus(e),this._v1Iframe=this._setupV1Iframe(e)},y.prototype._teardownV1Elements=function(){this._v1Bus&&(this._v1Bus.teardown(),this._v1Bus=null),
|
||||
this._v1Iframe&&this._v1Iframe.parentNode&&(this._v1Iframe.parentNode.removeChild(this._v1Iframe),this._v1Iframe=null),this._onV1Keyup&&(document.removeEventListener("keyup",this._onV1Keyup),this._onV1Keyup=null)},y.prototype.teardown=function(){return i.sendEvent(this._createPromise,"three-d-secure.teardown-completed"),this._teardownV1Elements(),a.resolve()},t.exports=y},{"../../../lib/analytics":121,"../../../lib/assign":123,"../../../lib/braintree-error":126,"../../../lib/constants":128,"../../../lib/is-verified-domain":155,"../../../lib/promise":159,"../../../lib/use-min":162,"../../shared/constants":195,"../../shared/errors":196,"../../shared/events":197,"@braintree/event-emitter":34,"@braintree/extended-promise":35,"@braintree/iframer":36,"@braintree/uuid":40,framebus:53}],187:[function(e,t,n){"use strict";var r=e("./songbird");function i(e){r.call(this,e)}i.prototype=Object.create(r.prototype,{constructor:r}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='<div class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="CCAFrameModal-label" aria-hidden="true" style="display: block;"><div class="modal-dialog" style="width:440px;z-index:999999;"><div class="modal-content"><div class="modal-body" data-braintree-v1-fallback-iframe-container><button type="button" data-braintree-v1-fallback-close-button class="close" data-dismiss="modal" aria-hidden="true">×</button></div></div></div><div data-braintree-v1-fallback-backdrop style="position: fixed;cursor: pointer;z-index: 999998;top: 0;left: 0;width: 100%;height: 100%;"></div></div>',t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},i.prototype._createCardinalConfigurationOptions=function(e){var t=r.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="bootstrap3",t},t.exports=i},{"./songbird":192}],188:[function(e,t,n){"use strict";var r=e("./songbird");function i(e){r.call(this,e)}i.prototype=Object.create(r.prototype,{constructor:r}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div"),n=Boolean(this._createOptions&&this._createOptions.cardinalSDKConfig&&this._createOptions.cardinalSDKConfig.payment&&this._createOptions.cardinalSDKConfig.payment.displayExitButton)
|
||||
;return t.innerHTML='<div style="position: fixed;z-index: 999999;top: 50%;left: 50%;padding: 24px 20px;transform: translate(-50%,-50%);border-radius: 2px;background: #fff;max-width: 100%;overflow: auto;"><div><button data-braintree-v1-fallback-close-button style="font-family: Helvetica,Arial,sans-serif;font-size: 25px;line-height: 12px;position: absolute;top: 2px;right: 0px;cursor: pointer;color: #999;border: 0;outline: none;background: none;" onMouseOver="this.style.color=\'#000\'" onMouseOut="this.style.color=\'#999\'">×</button></div><div data-braintree-v1-fallback-iframe-container style="height: 400px;"></div></div><div data-braintree-v1-fallback-backdrop style="position: fixed;z-index: 999998;cursor: pointer;top: 0;left: 0;width: 100%;height: 100%;transition: opacity 1ms ease;background: rgba(0,0,0,.6);"></div>',n||(t.querySelector("[data-braintree-v1-fallback-close-button]").style.display="none"),t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},t.exports=i},{"./songbird":192}],189:[function(e,t,n){"use strict";var r=e("./legacy"),i=e("./cardinal-modal"),o=e("./bootstrap3-modal"),a=e("./inline-iframe");t.exports={legacy:r,"cardinal-modal":i,"bootstrap3-modal":o,"inline-iframe":a}},{"./bootstrap3-modal":187,"./cardinal-modal":188,"./inline-iframe":190,"./legacy":191}],190:[function(e,t,n){"use strict";var r=e("./songbird"),i=e("../../../lib/braintree-error"),o=e("../../shared/errors"),a=e("../../../lib/enumerate");function s(e){r.call(this,e)}s.prototype=Object.create(r.prototype,{constructor:r}),s.events=a(["AUTHENTICATION_IFRAME_AVAILABLE"],"inline-iframe-framework:"),s.prototype.setUpEventListeners=function(e){r.prototype.setUpEventListeners.call(this,e),this.on(s.events.AUTHENTICATION_IFRAME_AVAILABLE,(function(t,n){e("authentication-iframe-available",t,n)}))},s.prototype._createCardinalConfigurationOptions=function(e){var t=r.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="inline",t},s.prototype._addV1IframeToPage=function(){this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:this._v1Modal},(function(){}))},s.prototype._setupFrameworkSpecificListeners=function(){this.setCardinalListener("ui.inline.setup",this._onInlineSetup.bind(this))},s.prototype._onInlineSetup=function(e,t,n,r){var a,c;e&&t?("CCA"!==t.paymentType||"suppress"!==t.data.mode&&"static"!==t.data.mode)&&(c=!0):c=!0,c?r(new i(o.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT)):((a=document.createElement("div")).innerHTML=e,"suppress"===t.data.mode?(a.style.display="none",document.body.appendChild(a),n()):"static"===t.data.mode&&this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:a},(function(){n()})))},t.exports=s},{"../../../lib/braintree-error":126,"../../../lib/enumerate":136,"../../shared/errors":196,"./songbird":192}],191:[function(e,t,n){"use strict";var r=e("./base"),i=e("../../../lib/deferred");function o(e){r.call(this,e)}o.prototype=Object.create(r.prototype,{constructor:o}),o.prototype.setUpEventListeners=function(){},
|
||||
o.prototype.transformV1CustomerBillingAddress=function(e){return e.billingAddress.line1=e.billingAddress.streetAddress,e.billingAddress.line2=e.billingAddress.extendedAddress,e.billingAddress.city=e.billingAddress.locality,e.billingAddress.state=e.billingAddress.region,e.billingAddress.countryCode=e.billingAddress.countryCodeAlpha2,delete e.billingAddress.streetAddress,delete e.billingAddress.extendedAddress,delete e.billingAddress.locality,delete e.billingAddress.region,delete e.billingAddress.countryCodeAlpha2,e},o.prototype._createIframe=function(e){var t=this;return this._setupV1Elements({lookupResponse:e.lookupResponse,showLoader:e.showLoader,handleAuthResponse:function(n){t._handleAuthResponse(n,e)}}),this._v1Iframe},o.prototype._handleAuthResponse=function(e,t){this._v1Bus.teardown(),t.removeFrame(),i(function(){this._handleV1AuthResponse(e)}.bind(this))()},o.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e){var t;return"function"!=typeof e.addFrame?t="an addFrame function":"function"!=typeof e.removeFrame&&(t="a removeFrame function"),t},o.prototype._formatVerifyCardOptions=function(e){var t=r.prototype._formatVerifyCardOptions.call(this,e);return t.addFrame=i(e.addFrame),t.removeFrame=i(e.removeFrame),t.showLoader=!1!==e.showLoader,t},o.prototype._formatLookupData=function(e){var t=this;return r.prototype._formatLookupData.call(this,e).then((function(n){return e.customer&&e.customer.billingAddress&&(n.customer=t.transformV1CustomerBillingAddress(e.customer)),n}))},o.prototype._presentChallenge=function(e,t){t.addFrame(null,this._createIframe({showLoader:t.showLoader,lookupResponse:e.lookup,removeFrame:t.removeFrame}))},t.exports=o},{"../../../lib/deferred":134,"./base":186}],192:[function(e,t,n){"use strict";var r=e("./base"),i=e("../../../lib/assign").assign,o=e("../../../lib/deferred"),a=e("../../../lib/braintree-error"),s=e("../../../lib/convert-to-braintree-error"),c=e("../../../lib/analytics"),l=e("../../../lib/assets"),u=e("../../shared/errors"),d=e("../../../lib/enumerate"),p=e("../../shared/constants"),_=e("../../../lib/promise"),E=e("@braintree/extended-promise"),h=e("../../../lib/constants").INTEGRATION_TIMEOUT_MS,f=e("../../../lib/constants").PLATFORM,m=["ui.close","ui.render","ui.renderHidden","ui.loading.close","ui.loading.render"];function y(e){r.call(this,e),this._useV1Fallback=!1,this._clientMetadata={requestedThreeDSecureVersion:"2",sdkVersion:f+"/3.76.4"},this._getDfReferenceIdPromisePlus=new E,this.setupSongbird(e),this._cardinalEvents=[]}function A(e,t,n){t[n+"Line1"]=e.streetAddress,t[n+"Line2"]=e.extendedAddress,t[n+"Line3"]=e.line3,t[n+"City"]=e.locality,t[n+"State"]=e.region,t[n+"PostalCode"]=e.postalCode,t[n+"CountryCode"]=e.countryCodeAlpha2}y.prototype=Object.create(r.prototype,{constructor:y}),y.events=d(["LOOKUP_COMPLETE","CUSTOMER_CANCELED","UI.CLOSE","UI.RENDER","UI.RENDERHIDDEN","UI.LOADING.CLOSE","UI.LOADING.RENDER"],"songbird-framework:"),y.prototype.setUpEventListeners=function(e){this.on(y.events.LOOKUP_COMPLETE,(function(t,n){e("lookup-complete",t,n)})),
|
||||
this.on(y.events.CUSTOMER_CANCELED,(function(){e("customer-canceled")})),this.on(y.events["UI.CLOSE"],(function(){e("authentication-modal-close")})),this.on(y.events["UI.RENDER"],(function(){e("authentication-modal-render")})),this.on(y.events["UI.RENDERHIDDEN"],(function(){e("authentication-modal-render-hidden")})),this.on(y.events["UI.LOADING.CLOSE"],(function(){e("authentication-modal-loader-close")})),this.on(y.events["UI.LOADING.RENDER"],(function(){e("authentication-modal-loader-render")}))},y.prototype.prepareLookup=function(e){var t=i({},e),n=this;return this.getDfReferenceId().then((function(e){t.dfReferenceId=e})).then((function(){return n._triggerCardinalBinProcess(e.bin)})).catch((function(){})).then((function(){return n._waitForClient()})).then((function(){return t.clientMetadata=n._clientMetadata,t.authorizationFingerprint=n._client.getConfiguration().authorizationFingerprint,t.braintreeLibraryVersion="braintree/web/3.76.4",t}))},y.prototype.initializeChallengeWithLookupResponse=function(e,t){return this.setupSongbird().then(function(){return r.prototype.initializeChallengeWithLookupResponse.call(this,e,t)}.bind(this))},y.prototype._initiateV1Fallback=function(e){this._useV1Fallback=!0,c.sendEvent(this._createPromise,"three-d-secure.v1-fallback."+e),this._songbirdPromise.resolve()},y.prototype._triggerCardinalBinProcess=function(e){var t=this,n=Date.now();return e?window.Cardinal.trigger("bin.process",e).then((function(e){t._clientMetadata.issuerDeviceDataCollectionTimeElapsed=Date.now()-n,t._clientMetadata.issuerDeviceDataCollectionResult=e&&e.Status})):_.resolve()},y.prototype.transformBillingAddress=function(e,t){return t&&(A(t,e,"billing"),e.billingPhoneNumber=t.phoneNumber,e.billingGivenName=t.givenName,e.billingSurname=t.surname),e},y.prototype.transformShippingAddress=function(e){var t=e.shippingAddress;return t&&(A(t,e,"shipping"),delete e.shippingAddress),e},y.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='<div data-braintree-v1-fallback-iframe-container="true" style="height: 400px;"></div>',t.querySelector('[data-braintree-v1-fallback-iframe-container="true"]').appendChild(e),t},y.prototype._createV1IframeModal=function(e){var t=this._createV1IframeModalElement(e),n=t.querySelector("[data-braintree-v1-fallback-close-button]"),r=t.querySelector("[data-braintree-v1-fallback-backdrop]"),i=this;function o(){t.parentNode.removeChild(t),i.cancelVerifyCard(u.THREEDS_CARDINAL_SDK_CANCELED),document.removeEventListener("keyup",i._onV1Keyup),i._onV1Keyup=null}return this._onV1Keyup=function(e){"Escape"===e.key&&t.parentNode&&o()},n&&n.addEventListener("click",o),r&&r.addEventListener("click",o),document.addEventListener("keyup",this._onV1Keyup),t},y.prototype._addV1IframeToPage=function(){document.body.appendChild(this._v1Modal)},y.prototype._handleAuthResponseFromV1Fallback=function(e){this._teardownV1Elements(),this._v1Modal.parentNode.removeChild(this._v1Modal),this._handleV1AuthResponse(e)},
|
||||
y.prototype._presentChallengeWithV1Fallback=function(e){var t=this;this._setupV1Elements({lookupResponse:e,showLoader:!0,handleAuthResponse:function(e){t._handleAuthResponseFromV1Fallback(e)}}),this._v1Modal=this._createV1IframeModal(this._v1Iframe),this._addV1IframeToPage()},y.prototype.setupSongbird=function(e){var t=this,n=Date.now();return this._songbirdPromise||(e=e||{},this._songbirdPromise=new E,this._v2SetupFailureReason="reason-unknown",t._loadCardinalScript(e).then((function(){return window.Cardinal?t._configureCardinalSdk({setupOptions:e,setupStartTime:n}):(t._v2SetupFailureReason="cardinal-global-unavailable",_.reject(new a(u.THREEDS_CARDINAL_SDK_SETUP_FAILED)))})).catch((function(e){var n=s(e,{type:u.THREEDS_CARDINAL_SDK_SETUP_FAILED.type,code:u.THREEDS_CARDINAL_SDK_SETUP_FAILED.code,message:u.THREEDS_CARDINAL_SDK_SETUP_FAILED.message});t._getDfReferenceIdPromisePlus.reject(n),window.clearTimeout(t._songbirdSetupTimeoutReference),c.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-failed"),t._initiateV1Fallback("cardinal-sdk-setup-failed."+t._v2SetupFailureReason)}))),this._songbirdPromise},y.prototype._configureCardinalSdk=function(e){var t=this;return this._waitForClient().then((function(){var e=t._client.getConfiguration().gatewayConfiguration.threeDSecure;return e.hasOwnProperty("versionTwo")&&"cardinal"!==e.versionTwo?_.reject(new Error("cardinal-api-not-available-or-configured")):e})).then((function(n){var r=n.cardinalAuthenticationJWT,i=e.setupOptions,o=e.setupStartTime,a=t._createCardinalConfigurationOptions(i);m.forEach((function(e){t.setCardinalListener(e,(function(){t._emit(y.events[e.toUpperCase()])}))})),t.setCardinalListener("payments.setupComplete",t._createPaymentsSetupCompleteCallback()),t._setupFrameworkSpecificListeners(),window.Cardinal.configure(a),window.Cardinal.setup("init",{jwt:r}),t._clientMetadata.cardinalDeviceDataCollectionTimeElapsed=Date.now()-o,t.setCardinalListener("payments.validated",t._createPaymentsValidatedCallback())})).catch((function(e){return"cardinal-api-not-available-or-configured"===e.message?t._v2SetupFailureReason="cardinal-api-not-available-or-configured":t._v2SetupFailureReason="cardinal-configuration-threw-error",_.reject(e)}))},y.prototype.setCardinalListener=function(e,t){this._cardinalEvents.push(e),window.Cardinal.on(e,t)},y.prototype._setupFrameworkSpecificListeners=function(){},y.prototype._createCardinalConfigurationOptions=function(e){var t=e.cardinalSDKConfig||{},n=t.payment||{};return!t.logging&&e.loggingEnabled&&(t.logging={level:"verbose"}),t.payment={},n.hasOwnProperty("displayLoading")&&(t.payment.displayLoading=n.displayLoading),n.hasOwnProperty("displayExitButton")&&(t.payment.displayExitButton=n.displayExitButton),t},y.prototype._loadCardinalScript=function(e){var t=this,n=p.CARDINAL_SCRIPT_SOURCE.sandbox;return this._waitForClient().then((function(){var r="production"===t._client.getConfiguration().gatewayConfiguration.environment;return t._songbirdSetupTimeoutReference=window.setTimeout((function(){
|
||||
c.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-timeout"),t._initiateV1Fallback("cardinal-sdk-setup-timeout")}),e.timeout||h),r&&(n=p.CARDINAL_SCRIPT_SOURCE.production),l.loadScript({src:n})})).catch((function(e){return t._v2SetupFailureReason="songbird-js-failed-to-load",_.reject(s(e,u.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED))}))},y.prototype._createPaymentsSetupCompleteCallback=function(){var e=this;return function(t){e._getDfReferenceIdPromisePlus.resolve(t.sessionId),window.clearTimeout(e._songbirdSetupTimeoutReference),c.sendEvent(e._createPromise,"three-d-secure.cardinal-sdk.init.setup-completed"),e._songbirdPromise.resolve()}},y.prototype.getDfReferenceId=function(){return this._getDfReferenceIdPromisePlus},y.prototype._performJWTValidation=function(e,t){var n=this,r=this._lookupPaymentMethod.nonce,i="payment_methods/"+r+"/three_d_secure/authenticate_from_jwt",o=e&&e.Payment&&e.Payment.ExtendedData&&e.Payment.ExtendedData.ChallengeCancel;return o&&(c.sendEvent(this._createPromise,"three-d-secure.verification-flow.cardinal-sdk.cancel-code."+o),"01"===o&&this._emit(y.events.CUSTOMER_CANCELED)),c.sendEvent(this._createPromise,"three-d-secure.verification-flow.upgrade-payment-method.started"),this._waitForClient().then((function(){return n._client.request({method:"post",endpoint:i,data:{jwt:t,paymentMethodNonce:r}})})).then((function(t){var r=t.paymentMethod||n._lookupPaymentMethod,i=n._formatAuthResponse(r,t.threeDSecureInfo);return i.rawCardinalSDKVerificationData=e,c.sendEvent(n._client,"three-d-secure.verification-flow.upgrade-payment-method.succeeded"),_.resolve(i)})).catch((function(e){var t=new a({type:u.THREEDS_JWT_AUTHENTICATION_FAILED.type,code:u.THREEDS_JWT_AUTHENTICATION_FAILED.code,message:u.THREEDS_JWT_AUTHENTICATION_FAILED.message,details:{originalError:e}});return c.sendEvent(n._client,"three-d-secure.verification-flow.upgrade-payment-method.errored"),_.reject(t)}))},y.prototype._createPaymentsValidatedCallback=function(){var e=this;return function(t,n){var r;if(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk.action-code."+t.ActionCode.toLowerCase()),e._verifyCardPromisePlus)switch(t.ActionCode){case"SUCCESS":case"NOACTION":case"FAILURE":e._performJWTValidation(t,n).then((function(t){e._verifyCardPromisePlus.resolve(t)})).catch((function(t){e._verifyCardPromisePlus.reject(t)}));break;case"ERROR":switch(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk-error."+t.ErrorNumber),t.ErrorNumber){case 10001:case 10002:r=new a(u.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);break;case 10003:case 10007:case 10009:r=new a(u.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);break;case 10005:case 10006:r=new a(u.THREEDS_CARDINAL_SDK_BAD_CONFIG);break;case 10008:case 10010:r=new a(u.THREEDS_CARDINAL_SDK_BAD_JWT);break;case 10011:c.sendEvent(e._createPromise,"three-d-secure.verification-flow.canceled"),r=new a(u.THREEDS_CARDINAL_SDK_CANCELED);break;default:r=new a(u.THREEDS_CARDINAL_SDK_ERROR)}r.details={originalError:{code:t.ErrorNumber,
|
||||
description:t.ErrorDescription}},e._verifyCardPromisePlus.reject(r)}else e._initiateV1Fallback("cardinal-sdk-setup-error.number-"+t.ErrorNumber)}},y.prototype._checkForVerifyCardError=function(e,t){return r.prototype._checkForVerifyCardError.call(this,e,t)},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e,t){var n;return"function"==typeof e.onLookupComplete||t.ignoreOnLookupCompleteRequirement||(n="an onLookupComplete function"),n},y.prototype._formatVerifyCardOptions=function(e){var t=r.prototype._formatVerifyCardOptions.call(this,e),n=t.additionalInformation||{};return n=this.transformBillingAddress(n,e.billingAddress),n=this.transformShippingAddress(n),e.onLookupComplete&&(t.onLookupComplete=o(e.onLookupComplete)),e.email&&(n.email=e.email),e.mobilePhoneNumber&&(n.mobilePhoneNumber=e.mobilePhoneNumber),t.additionalInformation=n,t},y.prototype._onLookupComplete=function(e,t){var n=this;return r.prototype._onLookupComplete.call(this,e).then((function(e){return new _((function(r,i){function o(){r(e)}e.requiresUserAuthentication=Boolean(e.lookup&&e.lookup.acsUrl),n._verifyCardPromisePlus.catch(i),t.onLookupComplete?t.onLookupComplete(e,o):n._emit(y.events.LOOKUP_COMPLETE,e,o)}))}))},y.prototype._presentChallenge=function(e){!this._useV1Fallback&&e.lookup.transactionId?window.Cardinal.continue("cca",{AcsUrl:e.lookup.acsUrl,Payload:e.lookup.pareq},{OrderDetails:{TransactionId:e.lookup.transactionId}}):this._presentChallengeWithV1Fallback(e.lookup)},y.prototype._formatLookupData=function(e){var t=this;return r.prototype._formatLookupData.call(this,e).then((function(n){return n.additionalInfo=e.additionalInformation,e.accountType&&(n.accountType=e.accountType),e.challengeRequested&&(n.challengeRequested=e.challengeRequested),e.dataOnlyRequested&&(n.dataOnlyRequested=e.dataOnlyRequested),e.exemptionRequested&&(n.exemptionRequested=e.exemptionRequested),e.bin&&(n.bin=e.bin),t.prepareLookup(n)}))},y.prototype.cancelVerifyCard=function(e){var t=this;return r.prototype.cancelVerifyCard.call(this).then((function(n){return t._verifyCardPromisePlus&&(e=e||new a(u.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT),t._verifyCardPromisePlus.reject(e)),n}))},y.prototype.teardown=function(){return window.Cardinal&&this._cardinalEvents.forEach((function(e){window.Cardinal.off(e)})),r.prototype.teardown.call(this)},t.exports=y},{"../../../lib/analytics":121,"../../../lib/assets":122,"../../../lib/assign":123,"../../../lib/braintree-error":126,"../../../lib/constants":128,"../../../lib/convert-to-braintree-error":130,"../../../lib/deferred":134,"../../../lib/enumerate":136,"../../../lib/promise":159,"../../shared/constants":195,"../../shared/errors":196,"./base":186,"@braintree/extended-promise":35}],193:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),i=e("../../lib/methods"),o=e("../../lib/convert-methods-to-error"),a=e("@braintree/event-emitter"),s=e("./frameworks");function c(e){var t=this,n=s[e.framework];a.call(this),this._framework=new n(e),this._framework.setUpEventListeners((function(){
|
||||
t._emit.apply(t,arguments)}))}a.createChild(c),c.prototype.verifyCard=function(e){var t;return this.hasListener("lookup-complete")&&(t={ignoreOnLookupCompleteRequirement:!0}),this._framework.verifyCard(e,t)},c.prototype.initializeChallengeWithLookupResponse=function(e){return"string"==typeof e&&(e=JSON.parse(e)),this._framework.initializeChallengeWithLookupResponse(e)},c.prototype.prepareLookup=function(e){return this._framework.prepareLookup(e).then((function(e){return JSON.stringify(e)}))},c.prototype.cancelVerifyCard=function(){return this._framework.cancelVerifyCard()},c.prototype.teardown=function(){var e=i(c.prototype).concat(i(a.prototype));return o(this,e),this._framework.teardown()},t.exports=r.wrapPrototype(c)},{"../../lib/convert-methods-to-error":129,"../../lib/methods":157,"./frameworks":189,"@braintree/event-emitter":34,"@braintree/wrap-promise":44}],194:[function(e,t,n){"use strict";var r=e("./external/three-d-secure"),i=e("../lib/is-https").isHTTPS,o=e("../lib/basic-component-verification"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/braintree-error"),l=e("../lib/analytics"),u=e("./shared/errors"),d=e("../lib/promise"),p=e("@braintree/wrap-promise");t.exports={create:p((function(e){return o.verify({name:"3D Secure",client:e.client,authorization:e.authorization}).then((function(){var t=s.create(e.authorization),n=function(e){var t=String(e.version||"");if(!t||"1"===t)return"legacy";switch(t){case"2":case"2-cardinal-modal":return"cardinal-modal";case"2-bootstrap3-modal":return"bootstrap3-modal";case"2-inline-iframe":return"inline-iframe";default:throw new c({code:u.THREEDS_UNRECOGNIZED_VERSION.code,type:u.THREEDS_UNRECOGNIZED_VERSION.type,message:"Version `"+e.version+"` is not a recognized version. You may need to update the version of your Braintree SDK to support this version."})}}(e),o=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:t,name:"3D Secure"}).then((function(t){var r,o=t.getConfiguration(),a=o.gatewayConfiguration;return e.client=t,a.threeDSecureEnabled||(r=u.THREEDS_NOT_ENABLED),"TOKENIZATION_KEY"===o.authorizationType&&(r=u.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY),"production"===a.environment&&!i()&&(r=u.THREEDS_HTTPS_REQUIRED),"legacy"===n||a.threeDSecure&&a.threeDSecure.cardinalAuthenticationJWT||(l.sendEvent(e.client,"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT"),r=u.THREEDS_NOT_ENABLED_FOR_V2),r?d.reject(new c(r)):(l.sendEvent(e.client,"three-d-secure.initialized"),t)})),p=new r({client:e.client,assetsUrl:t,createPromise:o,loggingEnabled:e.loggingEnabled,cardinalSDKConfig:e.cardinalSDKConfig,framework:n});return e.client?o.then((function(){return p})):p}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/is-https":154,"../lib/promise":159,"./external/three-d-secure":193,"./shared/errors":196,"@braintree/wrap-promise":44}],195:[function(e,t,n){
|
||||
"use strict";t.exports={LANDING_FRAME_NAME:"braintreethreedsecurelanding",CARDINAL_SCRIPT_SOURCE:{production:"https://songbird.cardinalcommerce.com/edge/v1/songbird.js",sandbox:"https://songbirdstag.cardinalcommerce.com/edge/v1/songbird.js"}}},{}],196:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={THREEDS_NOT_ENABLED:{type:r.types.MERCHANT,code:"THREEDS_NOT_ENABLED",message:"3D Secure is not enabled for this merchant."},THREEDS_CAN_NOT_USE_TOKENIZATION_KEY:{type:r.types.MERCHANT,code:"THREEDS_CAN_NOT_USE_TOKENIZATION_KEY",message:"3D Secure can not use a tokenization key for authorization."},THREEDS_HTTPS_REQUIRED:{type:r.types.MERCHANT,code:"THREEDS_HTTPS_REQUIRED",message:"3D Secure requires HTTPS."},THREEDS_NOT_ENABLED_FOR_V2:{type:r.types.MERCHANT,code:"THREEDS_NOT_ENABLED_FOR_V2",message:"3D Secure version 2 is not enabled for this merchant. Contact Braintree Support for assistance at https://help.braintreepayments.com/"},THREEDS_UNRECOGNIZED_VERSION:{type:r.types.MERCHANT,code:"THREEDS_UNRECOGNIZED_VERSION"},THREEDS_CARDINAL_SDK_SETUP_FAILED:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_FAILED",message:"Something went wrong setting up Cardinal's Songbird.js library."},THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED:{type:r.types.NETWORK,code:"THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED",message:"Cardinal's Songbird.js library could not be loaded."},THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT",message:"Cardinal's Songbird.js took too long to setup."},THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT",message:"Cardinal's API took too long to respond."},THREEDS_CARDINAL_SDK_BAD_CONFIG:{type:r.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_CONFIG",message:"JWT or other required field missing. Please check your setup configuration."},THREEDS_CARDINAL_SDK_BAD_JWT:{type:r.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_JWT",message:"Cardinal JWT missing or malformed. Please check your setup configuration."},THREEDS_CARDINAL_SDK_ERROR:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_ERROR",message:"A general error has occurred with Cardinal. See description for more information."},THREEDS_CARDINAL_SDK_CANCELED:{type:r.types.CUSTOMER,code:"THREEDS_CARDINAL_SDK_CANCELED",message:"Canceled by user."},THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT:{type:r.types.MERCHANT,code:"THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT",message:"3D Secure verfication canceled by merchant."},THREEDS_AUTHENTICATION_IN_PROGRESS:{type:r.types.MERCHANT,code:"THREEDS_AUTHENTICATION_IN_PROGRESS",message:"Cannot call verifyCard while existing authentication is in progress."},THREEDS_MISSING_VERIFY_CARD_OPTION:{type:r.types.MERCHANT,code:"THREEDS_MISSING_VERIFY_CARD_OPTION"},THREEDS_JWT_AUTHENTICATION_FAILED:{type:r.types.UNKNOWN,code:"THREEDS_JWT_AUTHENTICATION_FAILED",message:"Something went wrong authenticating the JWT from Cardinal"},THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR:{type:r.types.MERCHANT,
|
||||
code:"THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR",message:"Either the payment method nonce passed to `verifyCard` does not exist, or it was already consumed"},THREEDS_LOOKUP_VALIDATION_ERROR:{type:r.types.CUSTOMER,code:"THREEDS_LOOKUP_VALIDATION_ERROR",message:"The data passed in `verifyCard` did not pass validation checks. See details for more info"},THREEDS_LOOKUP_ERROR:{type:r.types.UNKNOWN,code:"THREEDS_LOOKUP_ERROR",message:"Something went wrong during the 3D Secure lookup"},THREEDS_INLINE_IFRAME_DETAILS_INCORRECT:{type:r.types.UNKNOWN,code:"THREEDS_INLINE_IFRAME_DETAILS_INCORRECT",message:"Something went wrong when attempting to add the authentication iframe to the page."},THREEDS_NO_VERIFICATION_PAYLOAD:{type:r.types.MERCHANT,code:"THREEDS_NO_VERIFICATION_PAYLOAD",message:"No verification payload available."},THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN:{type:r.types.INTERNAL,code:"THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN",message:"Term Url must be on a Braintree domain."},THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED:{type:r.types.INTERNAL,code:"THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED",message:"Method not implemented for this framework."}}},{"../../lib/braintree-error":126}],197:[function(e,t,n){"use strict";var r=e("../../lib/enumerate");t.exports=r(["AUTHENTICATION_COMPLETE"],"threedsecure:")},{"../../lib/enumerate":136}],198:[function(e,t,n){"use strict";var r=e("./shared/unionpay"),i=e("../lib/basic-component-verification"),o=e("../lib/braintree-error"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/analytics"),l=e("./shared/errors"),u=e("../lib/promise"),d=e("@braintree/wrap-promise");t.exports={create:d((function(e){return i.verify({name:"UnionPay",client:e.client,authorization:e.authorization}).then((function(){return a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:"UnionPay"})})).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.unionPay&&!0===n.gatewayConfiguration.unionPay.enabled?(c.sendEvent(e.client,"unionpay.initialized"),new r(e)):u.reject(new o(l.UNIONPAY_NOT_ENABLED))}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./shared/errors":200,"./shared/unionpay":201,"@braintree/wrap-promise":44}],199:[function(e,t,n){"use strict";var r=e("../../lib/enumerate");t.exports={events:r(["HOSTED_FIELDS_FETCH_CAPABILITIES","HOSTED_FIELDS_ENROLL","HOSTED_FIELDS_TOKENIZE"],"union-pay:"),HOSTED_FIELDS_FRAME_NAME:"braintreeunionpayhostedfields"}},{"../../lib/enumerate":136}],200:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={UNIONPAY_NOT_ENABLED:{type:r.types.MERCHANT,code:"UNIONPAY_NOT_ENABLED",message:"UnionPay is not enabled for this merchant."},UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID:{type:r.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID",
|
||||
message:"Found an invalid Hosted Fields instance. Please use a valid Hosted Fields instance."},UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:r.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"Could not find the Hosted Fields instance."},UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:r.types.MERCHANT,code:"UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"A card or a Hosted Fields instance is required. Please supply a card or a Hosted Fields instance."},UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES:{type:r.types.MERCHANT,code:"UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES",message:"Please supply either a card or a Hosted Fields instance, not both."},UNIONPAY_EXPIRATION_DATE_INCOMPLETE:{type:r.types.MERCHANT,code:"UNIONPAY_EXPIRATION_DATE_INCOMPLETE",message:"You must supply expiration month and year or neither."},UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID:{type:r.types.CUSTOMER,code:"UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID",message:"Enrollment failed due to user input error."},UNIONPAY_ENROLLMENT_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_ENROLLMENT_NETWORK_ERROR",message:"Could not enroll UnionPay card."},UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR",message:"Could not fetch card capabilities."},UNIONPAY_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},UNIONPAY_MISSING_MOBILE_PHONE_DATA:{type:r.types.MERCHANT,code:"UNIONPAY_MISSING_MOBILE_PHONE_DATA",message:"A `mobile` with `countryCode` and `number` is required."},UNIONPAY_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"UNIONPAY_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."}}},{"../../lib/braintree-error":126}],201:[function(e,t,n){"use strict";var r=e("../../lib/analytics"),i=e("../../lib/braintree-error"),o=e("framebus"),a=e("./constants"),s=e("../../lib/is-verified-domain"),c=e("../../lib/use-min"),l=e("../../lib/convert-methods-to-error"),u=e("./errors"),d=a.events,p=e("@braintree/iframer"),_=e("../../lib/methods"),E=e("@braintree/uuid"),h=e("../../lib/promise"),f=e("@braintree/wrap-promise"),m=e("../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT;function y(e){this._options=e}y.prototype.fetchCapabilities=function(e){var t=this,n=this._options.client,o=e.card?e.card.number:null,a=e.hostedFields;return o&&a?h.reject(new i(u.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):o?n.request({method:"get",endpoint:"payment_methods/credit_cards/capabilities",data:{_meta:{source:"unionpay"},creditCard:{number:o}}}).then((function(e){return r.sendEvent(n,"unionpay.capabilities-received"),e})).catch((function(e){var t=e.details&&e.details.httpStatus;return r.sendEvent(n,"unionpay.capabilities-failed"),403===t?h.reject(e):h.reject(new i({type:u.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.type,code:u.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.code,message:u.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.message,details:{originalError:e}}))
|
||||
})):a?a._bus?t._initializeHostedFields().then((function(){return new h((function(e,n){t._bus.emit(d.HOSTED_FIELDS_FETCH_CAPABILITIES,{hostedFields:a},(function(t){t.err?n(new i(t.err)):e(t.payload)}))}))})):h.reject(new i(u.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):h.reject(new i(u.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},y.prototype.enroll=function(e){var t,n=this,o=this._options.client,a=e.card,s=e.mobile,c=e.hostedFields;if(!s)return h.reject(new i(u.UNIONPAY_MISSING_MOBILE_PHONE_DATA));if(c)return c._bus?a?h.reject(new i(u.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):new h((function(e,t){n._initializeHostedFields().then((function(){n._bus.emit(d.HOSTED_FIELDS_ENROLL,{hostedFields:c,mobile:s},(function(n){n.err?t(new i(n.err)):e(n.payload)}))}))})):h.reject(new i(u.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID));if(a&&a.number){if(t={_meta:{source:"unionpay"},unionPayEnrollment:{number:a.number,mobileCountryCode:s.countryCode,mobileNumber:s.number}},a.expirationDate)t.unionPayEnrollment.expirationDate=a.expirationDate;else if(a.expirationMonth||a.expirationYear){if(!a.expirationMonth||!a.expirationYear)return h.reject(new i(u.UNIONPAY_EXPIRATION_DATE_INCOMPLETE));t.unionPayEnrollment.expirationYear=a.expirationYear,t.unionPayEnrollment.expirationMonth=a.expirationMonth}return o.request({method:"post",endpoint:"union_pay_enrollments",data:t}).then((function(e){return r.sendEvent(o,"unionpay.enrollment-succeeded"),{enrollmentId:e.unionPayEnrollmentId,smsCodeRequired:e.smsCodeRequired}})).catch((function(e){var t,n=e.details&&e.details.httpStatus;return 403===n?t=e:n<500?(t=new i(u.UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID)).details={originalError:e}:(t=new i(u.UNIONPAY_ENROLLMENT_NETWORK_ERROR)).details={originalError:e},r.sendEvent(o,"unionpay.enrollment-failed"),h.reject(t)}))}return h.reject(new i(u.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},y.prototype.tokenize=function(e){var t,n=this,o=this._options.client,a=e.card,s=e.hostedFields;return a&&s?h.reject(new i(u.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):a?(t={_meta:{source:"unionpay"},creditCard:{number:e.card.number,options:{unionPayEnrollment:{id:e.enrollmentId}}}},e.smsCode&&(t.creditCard.options.unionPayEnrollment.smsCode=e.smsCode),a.expirationDate?t.creditCard.expirationDate=a.expirationDate:a.expirationMonth&&a.expirationYear&&(t.creditCard.expirationYear=a.expirationYear,t.creditCard.expirationMonth=a.expirationMonth),e.card.cvv&&(t.creditCard.cvv=e.card.cvv),o.request({method:"post",endpoint:"payment_methods/credit_cards",data:t}).then((function(e){var t=e.creditCards[0];return delete t.consumed,delete t.threeDSecureInfo,r.sendEvent(o,"unionpay.nonce-received"),t})).catch((function(e){var t,n=e.details&&e.details.httpStatus;return r.sendEvent(o,"unionpay.nonce-failed"),403===n?t=e:n<500?(t=new i(u.UNIONPAY_FAILED_TOKENIZATION)).details={originalError:e}:(t=new i(u.UNIONPAY_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},h.reject(t)}))):s?s._bus?new h((function(t,r){n._initializeHostedFields().then((function(){
|
||||
n._bus.emit(d.HOSTED_FIELDS_TOKENIZE,e,(function(e){e.err?r(new i(e.err)):t(e.payload)}))}))})):h.reject(new i(u.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):h.reject(new i(u.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},y.prototype.teardown=function(){return this._bus&&(this._hostedFieldsFrame.parentNode.removeChild(this._hostedFieldsFrame),this._bus.teardown()),l(this,_(y.prototype)),h.resolve()},y.prototype._initializeHostedFields=function(){var e,t,n=E(),r=this;return this._hostedFieldsInitializePromise||(this._hostedFieldsInitializePromise=new h((function(i){e=r._options.client.getConfiguration().gatewayConfiguration.assetsUrl,t=r._options.client.getConfiguration().isDebug,r._bus=new o({channel:n,verifyDomain:s}),r._hostedFieldsFrame=p({name:a.HOSTED_FIELDS_FRAME_NAME+"_"+n,src:e+"/web/3.76.4/html/unionpay-hosted-fields-frame"+c(t)+".html",height:0,width:0}),r._bus.on(m,(function(e){e(r._options.client),i()})),document.body.appendChild(r._hostedFieldsFrame)}))),this._hostedFieldsInitializePromise},t.exports=f.wrapPrototype(y)},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/is-verified-domain":155,"../../lib/methods":157,"../../lib/promise":159,"../../lib/use-min":162,"./constants":199,"./errors":200,"@braintree/iframer":36,"@braintree/uuid":40,"@braintree/wrap-promise":44,framebus:53}],202:[function(e,t,n){"use strict";t.exports={PLAID_LINK_JS:"https://cdn.plaid.com/link/v2/stable/link-initialize.js"}},{}],203:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={US_BANK_ACCOUNT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_OPTION_REQUIRED"},US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS"},US_BANK_ACCOUNT_LOGIN_LOAD_FAILED:{type:r.types.NETWORK,code:"US_BANK_ACCOUNT_LOGIN_LOAD_FAILED",message:"Bank login flow failed to load."},US_BANK_ACCOUNT_LOGIN_CLOSED:{type:r.types.CUSTOMER,code:"US_BANK_ACCOUNT_LOGIN_CLOSED",message:"Customer closed bank login flow before authorizing."},US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE",message:"Another bank login tokenization request is active."},US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},US_BANK_ACCOUNT_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"US_BANK_ACCOUNT_FAILED_TOKENIZATION",message:"The supplied data failed tokenization."},US_BANK_ACCOUNT_NOT_ENABLED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_NOT_ENABLED",message:"US bank account is not enabled."},US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED",message:"Bank login is not enabled."}}},{"../lib/braintree-error":126}],204:[function(e,t,n){"use strict"
|
||||
;var r=e("../lib/basic-component-verification"),i=e("../lib/braintree-error"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./errors"),c=e("./us-bank-account"),l=e("../lib/promise"),u=e("@braintree/wrap-promise");t.exports={create:u((function(e){var t="US Bank Account";return r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.usBankAccount?new c(e):l.reject(new i(s.US_BANK_ACCOUNT_NOT_ENABLED))}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./errors":203,"./us-bank-account":205,"@braintree/wrap-promise":44}],205:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./constants"),o=e("./errors"),a=e("../lib/errors"),s=e("../lib/analytics"),c=e("../lib/once"),l=e("../lib/convert-methods-to-error"),u=e("../lib/methods"),d=e("../lib/promise"),p=e("@braintree/wrap-promise"),_=I("UsBankAccount"),E=I("UsBankLogin");function h(e){this._client=e.client,this._isTokenizingBankLogin=!1,s.sendEvent(this._client,"usbankaccount.initialized")}function f(e){var t,n=e.details&&e.details.httpStatus;return(t=new r(401===n?a.BRAINTREE_API_ACCESS_RESTRICTED:n<500?o.US_BANK_ACCOUNT_FAILED_TOKENIZATION:o.US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},t}function m(e,t){var n=e.data[t].paymentMethod,r="US bank account ending in - "+n.details.last4;return{nonce:n.id,details:{},description:r,type:"us_bank_account"}}function y(e,t){function n(){var r=this.readyState;r&&"loaded"!==r&&"complete"!==r||(e.removeEventListener("error",i),e.removeEventListener("load",n),e.removeEventListener("readystatechange",n),t(null,window.Plaid))}function i(){e.parentNode.removeChild(e),t(new r(o.US_BANK_ACCOUNT_LOGIN_LOAD_FAILED))}e.addEventListener("error",i),e.addEventListener("load",n),e.addEventListener("readystatechange",n)}function A(e){return{streetAddress:e.streetAddress,extendedAddress:e.extendedAddress,city:e.locality,state:e.region,zipCode:e.postalCode}}function T(e,t){"personal"===t.ownershipType?e.individualOwner={firstName:t.firstName,lastName:t.lastName}:"business"===t.ownershipType&&(e.businessOwner={businessName:t.businessName})}function I(e){return"mutation Tokenize"+e+"($input: Tokenize"+e+"Input!) { tokenize"+e+"(input: $input) { paymentMethod { id details { ... on UsBankAccountDetails { last4 } } } }}"}h.prototype.tokenize=function(e){return(e=e||{}).mandateText?e.bankDetails&&e.bankLogin?d.reject(new r({type:o.US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS.type,code:o.US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS.code,message:"tokenize must be called with bankDetails or bankLogin, not both."
|
||||
})):e.bankDetails?this._tokenizeBankDetails(e):e.bankLogin?this._tokenizeBankLogin(e):d.reject(new r({type:o.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:o.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"tokenize must be called with bankDetails or bankLogin."})):d.reject(new r({type:o.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:o.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"mandateText property is required."}))},h.prototype._tokenizeBankDetails=function(e){var t=this._client,n=e.bankDetails,r={achMandate:e.mandateText,routingNumber:n.routingNumber,accountNumber:n.accountNumber,accountType:n.accountType.toUpperCase(),billingAddress:A(n.billingAddress||{})};return T(r,n),t.request({api:"graphQLApi",data:{query:_,variables:{input:{usBankAccount:r}}}}).then((function(e){return s.sendEvent(t,"usbankaccount.bankdetails.tokenization.succeeded"),d.resolve(m(e,"tokenizeUsBankAccount"))})).catch((function(e){var n=f(e);return s.sendEvent(t,"usbankaccount.bankdetails.tokenization.failed"),d.reject(n)}))},h.prototype._tokenizeBankLogin=function(e){var t=this,n=this._client,i=n.getConfiguration().gatewayConfiguration,a="production"===i.environment,c=i.usBankAccount.plaid;return e.bankLogin.displayName?c?this._isTokenizingBankLogin?d.reject(new r(o.US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE)):(this._isTokenizingBankLogin=!0,new d((function(i,l){t._loadPlaid((function(u,d){u?l(u):(d.create({clientName:e.bankLogin.displayName,apiVersion:"v2",env:a?"production":"sandbox",key:c.publicKey,product:"auth",selectAccount:!0,onExit:function(){t._isTokenizingBankLogin=!1,s.sendEvent(n,"usbankaccount.banklogin.tokenization.closed.by-user"),l(new r(o.US_BANK_ACCOUNT_LOGIN_CLOSED))},onSuccess:function(r,o){var c=e.bankLogin,u={publicToken:r,accountId:a?o.account_id:"plaid_account_id",accountType:o.account.subtype.toUpperCase(),achMandate:e.mandateText,billingAddress:A(c.billingAddress||{})};T(u,c),n.request({api:"graphQLApi",data:{query:E,variables:{input:{usBankLogin:u}}}}).then((function(e){t._isTokenizingBankLogin=!1,s.sendEvent(n,"usbankaccount.banklogin.tokenization.succeeded"),i(m(e,"tokenizeUsBankLogin"))})).catch((function(e){var r;t._isTokenizingBankLogin=!1,r=f(e),s.sendEvent(n,"usbankaccount.banklogin.tokenization.failed"),l(r)}))}}).open(),s.sendEvent(n,"usbankaccount.banklogin.tokenization.started"))}))}))):d.reject(new r(o.US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED)):d.reject(new r({type:o.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:o.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"displayName property is required when using bankLogin."}))},h.prototype._loadPlaid=function(e){var t,n;e=c(e),window.Plaid?e(null,window.Plaid):(t=document.querySelector('script[src="'+i.PLAID_LINK_JS+'"]'))?y(t,e):((n=document.createElement("script")).src=i.PLAID_LINK_JS,n.async=!0,y(n,e),document.body.appendChild(n),this._plaidScript=n)},h.prototype.teardown=function(){return this._plaidScript&&document.body.removeChild(this._plaidScript),l(this,u(h.prototype)),d.resolve()},t.exports=p.wrapPrototype(h)},{"../lib/analytics":121,"../lib/braintree-error":126,
|
||||
"../lib/convert-methods-to-error":129,"../lib/errors":137,"../lib/methods":157,"../lib/once":158,"../lib/promise":159,"./constants":202,"./errors":203,"@braintree/wrap-promise":44}],206:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN:{type:r.types.MERCHANT,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN",message:"A client token with a customer id must be used to delete a payment method nonce."},VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND:{type:r.types.MERCHANT,code:"VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND"},VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR:{type:r.types.UNKNOWN,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR"}}},{"../lib/braintree-error":126}],207:[function(e,t,n){"use strict";var r=e("../lib/basic-component-verification"),i=e("../lib/create-deferred-client"),o=e("../lib/create-assets-url"),a=e("./vault-manager"),s=e("@braintree/wrap-promise");t.exports={create:s((function(e){var t="Vault Manager";return r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return new a({createPromise:i.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:o.create(e.authorization),name:t})})}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"./vault-manager":208,"@braintree/wrap-promise":44}],208:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/braintree-error"),o=e("./errors"),a=e("../lib/convert-methods-to-error"),s=e("../lib/methods"),c=e("../lib/promise"),l=e("@braintree/wrap-promise");function u(e){this._createPromise=e.createPromise}function d(e){var t={nonce:e.nonce,default:e.default,details:e.details,hasSubscription:e.hasSubscription,type:e.type};return e.description&&(t.description=e.description),e.binData&&(t.binData=e.binData),t}u.prototype.fetchPaymentMethods=function(e){var t;return t=!0===(e=e||{}).defaultFirst?1:0,this._createPromise.then((function(e){return e.request({endpoint:"payment_methods",method:"get",data:{defaultFirst:t}})})).then(function(e){return r.sendEvent(this._createPromise,"vault-manager.fetch-payment-methods.succeeded"),e.paymentMethods.map(d)}.bind(this))},u.prototype.deletePaymentMethod=function(e){return this._createPromise.then((function(t){return"CLIENT_TOKEN"===t.getConfiguration().authorizationType?t.request({api:"graphQLApi",data:{query:"mutation DeletePaymentMethodFromSingleUseToken($input: DeletePaymentMethodFromSingleUseTokenInput!) { deletePaymentMethodFromSingleUseToken(input: $input) { clientMutationId }}",variables:{input:{singleUseTokenId:e}},operationName:"DeletePaymentMethodFromSingleUseToken"}}).then((function(){r.sendEvent(t,"vault-manager.delete-payment-method.succeeded")})).catch((function(n){var a,s=n.details.originalError;return r.sendEvent(t,"vault-manager.delete-payment-method.failed"),s[0]&&"NOT_FOUND"===s[0].extensions.errorClass&&(a=new i({
|
||||
type:o.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.type,code:o.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.code,message:"A payment method for payment method nonce `"+e+"` could not be found.",details:{originalError:s}})),a||(a=new i({type:o.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.type,code:o.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.code,message:"An unknown error occured when attempting to delete the payment method assocaited with the payment method nonce `"+e+"`.",details:{originalError:s}})),c.reject(a)})):c.reject(new i(o.VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN))}))},u.prototype.teardown=function(){return a(this,s(u.prototype)),c.resolve()},t.exports=l.wrapPrototype(u)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/methods":157,"../lib/promise":159,"./errors":206,"@braintree/wrap-promise":44}],209:[function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e("./venmo-desktop"));t.exports=function(e){return new r.default(e).initialize()}},{"./venmo-desktop":211}],210:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY=n.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY=n.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY=void 0,n.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY="mutation CreateVenmoQRCodePaymentContext($input: CreateVenmoQRCodePaymentContextInput!) {\n createVenmoQRCodePaymentContext(input: $input) {\n clientMutationId\n venmoQRCodePaymentContext {\n id\n merchantId\n createdAt\n expiresAt\n }\n }\n}",n.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY="mutation UpdateVenmoQRCodePaymentContext($input: UpdateVenmoQRCodePaymentContextInput!) {\n updateVenmoQRCodePaymentContext(input: $input) {\n clientMutationId\n }\n}",n.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY="query PaymentContext($id: ID!) {\n node(id: $id) {\n ... on VenmoQRCodePaymentContext {\n status\n paymentMethodId\n userName\n }\n }\n}"},{}],211:[function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var o=i(e("framebus")),a=i(e("@braintree/iframer")),s=i(e("@braintree/uuid")),c=e("../shared/events"),l=e("./queries"),u=function(){function e(e){this.isHidden=!0,this.env=e.environment,this.id=s.default(),this.profileId=e.profileId;var t=e.url+"#"+this.env+"_"+this.id;this.bus=new o.default({channel:this.id,verifyDomain:e.verifyDomain}),this.apiRequest=e.apiRequest,this.sendEvent=e.sendEvent,this.Promise=e.Promise,this.alertBox=document.createElement("div"),this.alertBox.setAttribute("data-venmo-desktop-id",this.id),
|
||||
this.alertBox.setAttribute("role","alert"),this.alertBox.style.position="fixed",this.alertBox.style.display="none",this.alertBox.style.height="1px",this.alertBox.style.width="1px",this.alertBox.style.overflow="hidden",this.alertBox.style.zIndex="0",this.iframe=a.default({src:t,name:"venmo-desktop-iframe",style:{display:"none",position:"fixed",top:"0",bottom:"0",right:"0",left:"0",height:"100%",width:"100%",zIndex:"9999999"},title:"Venmo Desktop"})}return e.prototype.initialize=function(){var e=this;return new this.Promise((function(t){e.bus.on(c.VENMO_DESKTOP_IFRAME_READY,(function(){t(e)})),e.bus.on(c.VENMO_DESKTOP_REQUEST_NEW_QR_CODE,(function(){e.sendEvent("venmo.tokenize.desktop.restarted-from-error-view"),e.startPolling()})),document.body.appendChild(e.iframe),document.body.appendChild(e.alertBox)}))},e.prototype.launchDesktopFlow=function(){var e=this;this.isHidden=!1;var t=new this.Promise((function(t,n){e.launchDesktopPromiseRejectFunction=n;var r=function(){e.bus.off(c.VENMO_DESKTOP_CUSTOMER_CANCELED,o),e.bus.off(c.VENMO_DESKTOP_AUTHORIZATION_COMPLETED,a),e.bus.off(c.VENMO_DESKTOP_UNKNOWN_ERROR,i)},i=function(t){r(),e.sendEvent("venmo.tokenize.desktop.unknown-error"),n({allowUIToHandleError:!1,reason:"UNKNOWN_ERROR",err:t})},o=function(){r(),e.updateVenmoDesktopPaymentContext("CANCELED"),e.sendEvent("venmo.tokenize.desktop.status-change.canceled-from-modal"),n({allowUIToHandleError:!1,reason:"CUSTOMER_CANCELED"})},a=function(e){r(),t(e)};e.bus.on(c.VENMO_DESKTOP_CUSTOMER_CANCELED,o),e.bus.on(c.VENMO_DESKTOP_AUTHORIZATION_COMPLETED,a),e.bus.on(c.VENMO_DESKTOP_UNKNOWN_ERROR,i)}));return this.iframe.style.display="block",this.setAlert("Generating a QR code, get your Venmo app ready"),this.iframe.focus(),this.startPolling(),t.then((function(t){return delete e.venmoContextId,delete e.launchDesktopPromiseRejectFunction,t})).catch((function(t){return delete e.venmoContextId,delete e.launchDesktopPromiseRejectFunction,e.Promise.reject(t)}))},e.prototype.triggerCompleted=function(e){var t=this;this.isHidden||setTimeout((function(){t.bus.emit(c.VENMO_DESKTOP_AUTHORIZATION_COMPLETED,e)}),2e3)},e.prototype.triggerRejected=function(e){this.launchDesktopPromiseRejectFunction&&this.launchDesktopPromiseRejectFunction(e)},e.prototype.hideDesktopFlow=function(){this.setAlert(""),this.iframe.style.display="none",this.bus.emit(c.VENMO_DESKTOP_CLOSED_FROM_PARENT),this.isHidden=!0},e.prototype.displayError=function(e){this.isHidden||(this.bus.emit(c.VENMO_DESKTOP_DISPLAY_ERROR,{message:e}),this.setAlert(e))},e.prototype.displayQRCode=function(e,t){this.isHidden||(this.bus.emit(c.VENMO_DESKTOP_DISPLAY_QR_CODE,{id:e,merchantId:t}),this.setAlert("To scan the QR code, open your Venmo app"))},e.prototype.authorize=function(){this.isHidden||(this.bus.emit(c.VENMO_DESKTOP_AUTHORIZE),this.setAlert("Venmo account authorized"))},e.prototype.authorizing=function(){this.isHidden||(this.bus.emit(c.VENMO_DESKTOP_AUTHORIZING),this.setAlert("Authorize on your Venmo app"))},e.prototype.startPolling=function(){var e=this
|
||||
;return this.createVenmoDesktopPaymentContext().then((function(t){var n=new Date(t.expiresAt).getTime()-new Date(t.createdAt).getTime(),r=Date.now()+n;return e.displayQRCode(t.id,t.merchantId),e.pollForStatusChange(t.status,r)})).then((function(t){if(t){var n=t.userName||"";n="@"+n.replace("@",""),e.triggerCompleted({paymentMethodNonce:t.paymentMethodId,username:n})}})).catch((function(t){t.allowUIToHandleError||(e.sendEvent("venmo.tokenize.desktop.unhandled-error"),e.triggerRejected(t))}))},e.prototype.pollForStatusChange=function(e,t){var n=this;return this.venmoContextId?Date.now()>t?this.updateVenmoDesktopPaymentContext("EXPIRED").then((function(){return n.displayError("Something went wrong"),n.sendEvent("venmo.tokenize.desktop.status-change.sdk-timeout"),n.Promise.reject({allowUIToHandleError:!0,reason:"TIMEOUT"})})):this.lookupVenmoDesktopPaymentContext().then((function(r){if(!n.venmoContextId||!r)return n.Promise.resolve();var i=r.status;if(i!==e)switch(e=i,n.sendEvent("venmo.tokenize.desktop.status-change."+e.toLowerCase()),e){case"CREATED":break;case"EXPIRED":case"FAILED":case"CANCELED":var o="CANCELED"===e?"The authorization was canceled":"Something went wrong";return n.displayError(o),n.Promise.reject({allowUIToHandleError:!0,reason:e});case"SCANNED":n.authorizing();break;case"APPROVED":return n.authorize(),n.Promise.resolve(r)}return new n.Promise((function(r,i){setTimeout((function(){n.pollForStatusChange(e,t).then(r).catch(i)}),1e3)}))})):this.Promise.resolve()},e.prototype.teardown=function(){this.bus.teardown(),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.alertBox.parentNode&&this.alertBox.parentNode.removeChild(this.alertBox)},e.prototype.setAlert=function(e){this.alertBox.style.display=e?"block":"none",this.alertBox.textContent=e},e.prototype.createVenmoDesktopPaymentContext=function(){var e=this,t={environment:this.env,intent:"PAY_FROM_APP"};return this.apiRequest(l.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,{input:t}).then((function(t){var n=t.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext;e.venmoContextId=n.id;var r=e.profileId||n.merchantId;return{id:n.id,status:n.status,merchantId:r,createdAt:n.createdAt,expiresAt:n.expiresAt}}))},e.prototype.updateVenmoDesktopPaymentContext=function(e,t){if(void 0===t&&(t={}),!this.venmoContextId)return this.Promise.resolve();var n={input:r({id:this.venmoContextId,status:e},t)};return this.apiRequest(l.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,n).then((function(){}))},e.prototype.lookupVenmoDesktopPaymentContext=function(){return this.venmoContextId?this.apiRequest(l.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY,{id:this.venmoContextId}).then((function(e){return e.node})):this.Promise.resolve()},e}();n.default=u},{"../shared/events":216,"./queries":210,"@braintree/iframer":36,"@braintree/uuid":40,framebus:53}],212:[function(e,t,n){"use strict"
|
||||
;var r=e("../lib/analytics"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./shared/errors"),c=e("@braintree/wrap-promise"),l=e("../lib/braintree-error"),u=e("./venmo"),d=e("../lib/promise"),p=e("./shared/supports-venmo");t.exports={create:c((function(e){return i.verify({name:"Venmo",client:e.client,authorization:e.authorization}).then((function(){var t,n;return e.profileId&&"string"!=typeof e.profileId?d.reject(new l(s.VENMO_INVALID_PROFILE_ID)):e.deepLinkReturnUrl&&"string"!=typeof e.deepLinkReturnUrl?d.reject(new l(s.VENMO_INVALID_DEEP_LINK_RETURN_URL)):(t=o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"Venmo"}).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.payWithVenmo?t:d.reject(new l(s.VENMO_NOT_ENABLED))})),e.createPromise=t,n=new u(e),r.sendEvent(t,"venmo.initialized"),t.then((function(){return n})))}))})),isBrowserSupported:function(e){return p.isBrowserSupported(e)},VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./shared/errors":215,"./shared/supports-venmo":217,"./venmo":218,"@braintree/wrap-promise":44}],213:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-android"),i=e("@braintree/browser-detection/is-chrome"),o=e("@braintree/browser-detection/is-ios"),a=e("@braintree/browser-detection/is-ios-safari"),s=e("@braintree/browser-detection/is-ios-webview");t.exports={isAndroid:r,isAndroidWebview:function(){return r()&&window.navigator.userAgent.toLowerCase().indexOf("wv")>-1},isChrome:i,isIos:o,isIosSafari:a,isIosWebview:s}},{"@braintree/browser-detection/is-android":20,"@braintree/browser-detection/is-chrome":22,"@braintree/browser-detection/is-ios":31,"@braintree/browser-detection/is-ios-safari":28,"@braintree/browser-detection/is-ios-webview":29}],214:[function(e,t,n){"use strict";t.exports={DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY:500,DEFAULT_PROCESS_RESULTS_DELAY:1e3,VENMO_OPEN_URL:"https://venmo.com/braintree/checkout"}},{}],215:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={VENMO_NOT_ENABLED:{type:r.types.MERCHANT,code:"VENMO_NOT_ENABLED",message:"Venmo is not enabled for this merchant."},VENMO_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE",message:"No tokenization in progress."},VENMO_APP_FAILED:{type:r.types.UNKNOWN,code:"VENMO_APP_FAILED",message:"Venmo app encountered a problem."},VENMO_APP_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_APP_CANCELED",message:"Venmo app authorization was canceled."},VENMO_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_CANCELED",
|
||||
message:"User canceled Venmo authorization, or Venmo app is not available."},VENMO_DESKTOP_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_DESKTOP_CANCELED",message:"User canceled Venmo authorization by closing the Venmo Desktop modal."},VENMO_TOKENIZATION_CANCELED_BY_MERCHANT:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_CANCELED_BY_MERCHANT",message:"The Venmo tokenization was canceled by the merchant."},VENMO_DESKTOP_UNKNOWN_ERROR:{type:r.types.UNKNOWN,code:"VENMO_DESKTOP_UNKNOWN_ERROR",message:"Something went wrong with the Venmo Desktop flow."},VENMO_MOBILE_POLLING_SETUP_FAILED:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_SETUP_FAILED",message:"Something went wrong setting up Venmo for mobile polling."},VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR",message:"Something went wrong during mobile polling."},VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED",message:"The Venmo authorization request is expired."},VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED",message:"The Venmo authorization was canceled"},VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT",message:"Customer took too long to authorize Venmo payment."},VENMO_MOBILE_POLLING_TOKENIZATION_FAILED:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_FAILED",message:"The Venmo authorization failed."},VENMO_INVALID_PROFILE_ID:{type:r.types.MERCHANT,code:"VENMO_INVALID_PROFILE_ID",message:"Venmo profile ID is invalid."},VENMO_INVALID_DEEP_LINK_RETURN_URL:{type:r.types.MERCHANT,code:"VENMO_INVALID_DEEP_LINK_RETURN_URL",message:"Venmo deep link return URL is invalid."}}},{"../../lib/braintree-error":126}],216:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VENMO_DESKTOP_UNKNOWN_ERROR=n.VENMO_DESKTOP_REQUEST_NEW_QR_CODE=n.VENMO_DESKTOP_CLOSED_FROM_PARENT=n.VENMO_DESKTOP_IFRAME_READY=n.VENMO_DESKTOP_DISPLAY_QR_CODE=n.VENMO_DESKTOP_DISPLAY_ERROR=n.VENMO_DESKTOP_CUSTOMER_CANCELED=n.VENMO_DESKTOP_AUTHORIZATION_COMPLETED=n.VENMO_DESKTOP_AUTHORIZING=n.VENMO_DESKTOP_AUTHORIZE=n.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT=void 0,n.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT="VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT",n.VENMO_DESKTOP_AUTHORIZE="VENMO_DESKTOP_AUTHORIZE",n.VENMO_DESKTOP_AUTHORIZING="VENMO_DESKTOP_AUTHORIZING",n.VENMO_DESKTOP_AUTHORIZATION_COMPLETED="VENMO_DESKTOP_AUTHORIZATION_COMPLETED",n.VENMO_DESKTOP_CUSTOMER_CANCELED="VENMO_DESKTOP_CUSTOMER_CANCELED",n.VENMO_DESKTOP_DISPLAY_ERROR="VENMO_DESKTOP_DISPLAY_ERROR",n.VENMO_DESKTOP_DISPLAY_QR_CODE="VENMO_DESKTOP_DISPLAY_QR_CODE",n.VENMO_DESKTOP_IFRAME_READY="VENMO_DESKTOP_IFRAME_READY",n.VENMO_DESKTOP_CLOSED_FROM_PARENT="VENMO_DESKTOP_CLOSED_FROM_PARENT",n.VENMO_DESKTOP_REQUEST_NEW_QR_CODE="VENMO_DESKTOP_REQUEST_NEW_QR_CODE",n.VENMO_DESKTOP_UNKNOWN_ERROR="VENMO_DESKTOP_UNKNOWN_ERROR"},{}],217:[function(e,t,n){
|
||||
"use strict";var r=e("./browser-detection");t.exports={isBrowserSupported:function(e){var t,n,i=r.isAndroid(),o=i||r.isIos(),a=i&&r.isChrome(),s=r.isIosSafari()||a;return n=!0===(e=e||{}).allowDesktop,t=!e.hasOwnProperty("allowNewBrowserTab")||e.allowNewBrowserTab,!(e.hasOwnProperty("allowWebviews")&&!e.allowWebviews&&(r.isAndroidWebview()||r.isIosWebview()))&&(t?!!n||o:!!s||n&&!o)}}},{"./browser-detection":213}],218:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("./shared/supports-venmo"),o=e("./shared/browser-detection"),a=e("./shared/constants"),s=e("./shared/errors"),c=e("../lib/querystring"),l=e("../lib/is-verified-domain"),u=e("../lib/methods"),d=e("../lib/convert-methods-to-error"),p=e("@braintree/wrap-promise"),_=e("../lib/braintree-error"),E=e("../lib/in-iframe"),h=e("../lib/promise"),f=e("@braintree/extended-promise"),m=e("./external/"),y=e("./external/queries");function A(e){var t=this;this._createPromise=e.createPromise,this._allowNewBrowserTab=!1!==e.allowNewBrowserTab,this._allowWebviews=!1!==e.allowWebviews,this._allowDesktop=!0===e.allowDesktop,this._requireManualReturn=!0===e.requireManualReturn,this._useRedirectForIOS=!0===e.useRedirectForIOS,this._profileId=e.profileId,this._deepLinkReturnUrl=e.deepLinkReturnUrl,this._ignoreHistoryChanges=e.ignoreHistoryChanges,this._useDesktopFlow=this._allowDesktop&&this._isDesktop(),this._useMobilePollingStrategy=E()||this._requireManualReturn,r.sendEvent(this._createPromise,"venmo.desktop-flow.configured."+String(Boolean(this._allowDesktop))),this._useDesktopFlow?this._createPromise=this._createPromise.then((function(e){var n=e.getConfiguration().gatewayConfiguration;return m({url:n.assetsUrl+"/web/3.76.4/html/venmo-desktop-frame.html",environment:"production"===n.environment?"PRODUCTION":"SANDBOX",profileId:t._profileId||n.payWithVenmo.merchantId,Promise:h,apiRequest:function(t,n){return e.request({api:"graphQLApi",data:{query:t,variables:n}}).then((function(e){return e.data}))},sendEvent:function(e){r.sendEvent(t._createPromise,e)},verifyDomain:l}).then((function(n){return t._venmoDesktopInstance=n,r.sendEvent(t._createPromise,"venmo.desktop-flow.presented"),e})).catch((function(){return r.sendEvent(t._createPromise,"venmo.desktop-flow.setup-failed"),t._useDesktopFlow=!1,e}))})):this._useMobilePollingStrategy&&(this._mobilePollingInterval=250,this._mobilePollingExpiresThreshold=3e5,this._createPromise=this._createPromise.then((function(e){var n=e.getConfiguration().gatewayConfiguration;return t._mobilePollingContextEnvironment=n.environment.toUpperCase(),e.request({api:"graphQLApi",data:{query:y.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,variables:{input:{environment:t._mobilePollingContextEnvironment,intent:"PAY_FROM_APP"}}}}).then((function(n){var i=n.data.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext;return t._mobilePollingContextStatus=i.status,t._mobilePollingContextId=i.id,r.sendEvent(t._createPromise,"venmo.mobile-polling.presented"),e})).catch((function(e){
|
||||
return r.sendEvent(t._createPromise,"venmo.mobile-polling.setup-failed"),h.reject(new _({type:s.VENMO_MOBILE_POLLING_SETUP_FAILED.type,code:s.VENMO_MOBILE_POLLING_SETUP_FAILED.code,message:s.VENMO_MOBILE_POLLING_SETUP_FAILED.message,details:{originalError:e}}))}))})))}function T(e){return(e||window.location.hash.substring(1)).split("&").reduce((function(e,t){var n=t.split("="),r=decodeURIComponent(n[0]).replace(/\W/g,""),i=decodeURIComponent(n[1]);return e[r]=i,e}),{})}function I(){var e;return void 0!==window.document.hidden?e="visibilitychange":void 0!==window.document.msHidden?e="msvisibilitychange":void 0!==window.document.webkitHidden&&(e="webkitvisibilitychange"),e}A.prototype.getUrl=function(){return this._createPromise.then(function(e){var t=e.getConfiguration(),n={},r=this._deepLinkReturnUrl||window.location.href.replace(window.location.hash,""),i=t.gatewayConfiguration.payWithVenmo,o=t.analyticsMetadata,s=i.accessToken,l={_meta:{version:o.sdkVersion,integration:o.integration,platform:o.platform,sessionId:o.sessionId}};return r=r.replace(/#*$/,""),this._mobilePollingContextId&&(s+="|pcid:"+this._mobilePollingContextId),this._shouldIncludeReturnUrls()?(n["x-success"]=r+"#venmoSuccess=1",n["x-cancel"]=r+"#venmoCancel=1",n["x-error"]=r+"#venmoError=1"):(n["x-success"]="NOOP",n["x-cancel"]="NOOP",n["x-error"]="NOOP"),n.ua=window.navigator.userAgent,n.braintree_merchant_id=this._profileId||i.merchantId,n.braintree_access_token=s,n.braintree_environment=i.environment,n.braintree_sdk_data=btoa(JSON.stringify(l)),a.VENMO_OPEN_URL+"?"+c.stringify(n)}.bind(this))},A.prototype.isBrowserSupported=function(){return i.isBrowserSupported({allowNewBrowserTab:this._allowNewBrowserTab,allowWebviews:this._allowWebviews,allowDesktop:this._allowDesktop})},A.prototype.hasTokenizationResult=function(){return this._hasTokenizationResult()},A.prototype._hasTokenizationResult=function(e){var t=T(e);return void 0!==(t.venmoSuccess||t.venmoError||t.venmoCancel)},A.prototype._shouldIncludeReturnUrls=function(){return!!this._deepLinkReturnUrl||!this._useMobilePollingStrategy},A.prototype._isDesktop=function(){return!(o.isIos()||o.isAndroid())},A.prototype.tokenize=function(e){var t=this;return e=e||{},!0===this._tokenizationInProgress?h.reject(new _(s.VENMO_TOKENIZATION_REQUEST_ACTIVE)):(this._tokenizationInProgress=!0,(this._useDesktopFlow?this._tokenizeForDesktop(e):this._useMobilePollingStrategy?this._tokenizeForMobileWithPolling():this._tokenizeForMobileWithHashChangeListeners(e)).then((function(e){return t._tokenizationInProgress=!1,function(e){return{nonce:e.paymentMethodNonce,type:"VenmoAccount",details:{username:e.username}}}(e)})).catch((function(e){return t._tokenizationInProgress=!1,h.reject(e)})))},A.prototype.cancelTokenization=function(){return this._tokenizationInProgress?(this._removeVisibilityEventListener(),this._tokenizePromise&&this._tokenizePromise.reject(new _(s.VENMO_TOKENIZATION_CANCELED_BY_MERCHANT)),
|
||||
h.all([this._cancelMobilePollingContext(),this._cancelVenmoDesktopContext()])):h.reject(new _(s.VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE))},A.prototype._pollForStatusChange=function(){var e=this;return Date.now()>e._mobilePollingContextExpiresIn?h.reject(new _(s.VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT)):this._createPromise.then((function(t){return t.request({api:"graphQLApi",data:{query:y.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY,variables:{id:e._mobilePollingContextId}}})})).catch((function(e){return h.reject(new _({type:s.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.type,code:s.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.code,message:s.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.message,details:{originalError:e}}))})).then((function(t){var n=t.data.node,i=n.status;if(i!==e._mobilePollingContextStatus)switch(e._mobilePollingContextStatus=i,r.sendEvent(e._createPromise,"venmo.tokenize.mobile-polling.status-change."+i.toLowerCase()),i){case"EXPIRED":case"FAILED":case"CANCELED":return h.reject(new _(s["VENMO_MOBILE_POLLING_TOKENIZATION_"+i]));case"APPROVED":return h.resolve(n)}return new h((function(t,n){setTimeout((function(){e._pollForStatusChange().then(t).catch(n)}),e._mobilePollingInterval)}))}))},A.prototype._tokenizeForMobileWithPolling=function(){var e=this;return r.sendEvent(this._createPromise,"venmo.tokenize.mobile-polling.start"),this._mobilePollingContextExpiresIn=Date.now()+this._mobilePollingExpiresThreshold,this._tokenizePromise=new f,this._pollForStatusChange().then((function(t){r.sendEvent(e._createPromise,"venmo.tokenize.mobile-polling.success"),e._tokenizePromise.resolve({paymentMethodNonce:t.paymentMethodId,username:"@"+(t.userName||"").replace("@","")})})).catch((function(t){r.sendEvent(e._createPromise,"venmo.tokenize.mobile-polling.failure"),e._tokenizePromise.reject(t)})),this.getUrl().then((function(t){return r.sendEvent(e._createPromise,"venmo.appswitch.start.browser"),o.isIosWebview()||e._shouldUseRedirectStrategy()?window.location.href=t:window.open(t),e._tokenizePromise}))},A.prototype._shouldUseRedirectStrategy=function(){return!!o.isIos()&&this._useRedirectForIOS},A.prototype._tokenizeForMobileWithHashChangeListeners=function(e){var t,n,i=this;if(this.hasTokenizationResult())return this._processResults();function o(e){var t;i._processResults(e).catch((function(e){t=e})).then((function(e){i._ignoreHistoryChanges||window.location.hash===i._previousHash||(window.location.hash=i._previousHash),i._removeVisibilityEventListener(),t?i._tokenizePromise.reject(t):i._tokenizePromise.resolve(e),delete i._tokenizePromise}))}return r.sendEvent(this._createPromise,"venmo.tokenize.mobile.start"),this._tokenizePromise=new f,this._previousHash=window.location.hash,this._onHashChangeListener=function(e){var r=e.newURL.split("#")[1];i._hasTokenizationResult(r)&&(t=!0,clearTimeout(n),o(r))},window.addEventListener("hashchange",this._onHashChangeListener,!1),this._visibilityChangeListener=function(){var r=e.processResultsDelay||a.DEFAULT_PROCESS_RESULTS_DELAY
|
||||
;window.document.hidden||t||(n=setTimeout(o,r))},this.getUrl().then((function(e){return i._deepLinkReturnUrl?window.navigator.platform&&/iPhone|iPad|iPod/.test(window.navigator.platform)?(r.sendEvent(i._createPromise,"venmo.appswitch.start.ios-webview"),window.location.href=e):window.popupBridge&&"function"==typeof window.popupBridge.open?(r.sendEvent(i._createPromise,"venmo.appswitch.start.popup-bridge"),window.popupBridge.open(e)):(r.sendEvent(i._createPromise,"venmo.appswitch.start.webview"),window.open(e)):(r.sendEvent(i._createPromise,"venmo.appswitch.start.browser"),i._shouldUseRedirectStrategy()?window.location.href=e:window.open(e)),setTimeout((function(){window.document.addEventListener(I(),i._visibilityChangeListener)}),a.DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY),i._tokenizePromise}))},A.prototype._tokenizeForDesktop=function(){var e=this;return r.sendEvent(this._createPromise,"venmo.tokenize.desktop.start"),this._tokenizePromise=new f,this._createPromise.then((function(){return e._venmoDesktopInstance.launchDesktopFlow()})).then((function(t){e._venmoDesktopInstance.hideDesktopFlow(),r.sendEvent(e._createPromise,"venmo.tokenize.desktop.success"),e._tokenizePromise.resolve(t)})).catch((function(t){r.sendEvent(e._createPromise,"venmo.tokenize.desktop.failure"),e._venmoDesktopInstance&&e._venmoDesktopInstance.hideDesktopFlow(),t&&"CUSTOMER_CANCELED"===t.reason?e._tokenizePromise.reject(new _(s.VENMO_DESKTOP_CANCELED)):e._tokenizePromise.reject(new _({type:s.VENMO_DESKTOP_UNKNOWN_ERROR.type,code:s.VENMO_DESKTOP_UNKNOWN_ERROR.code,message:s.VENMO_DESKTOP_UNKNOWN_ERROR.message,details:{originalError:t}}))})),this._tokenizePromise},A.prototype._updateVenmoDesktopPaymentContext=function(e,t){return this._venmoDesktopInstance.updateVenmoDesktopPaymentContext(e,t)},A.prototype._cancelMobilePollingContext=function(){var e=this;return this._createPromise.then((function(t){return e._mobilePollingContextId?t.request({api:"graphQLApi",data:{query:y.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,variables:{input:{id:e._mobilePollingContextId,status:"CANCELED"}}}}):h.resolve()}))},A.prototype._cancelVenmoDesktopContext=function(){var e=this;return this._createPromise.then((function(){return e._venmoDesktopInstance&&e._venmoDesktopInstance.updateVenmoDesktopPaymentContext("CANCELED"),h.resolve()}))},A.prototype.teardown=function(){var e=this;return this._removeVisibilityEventListener(),this._createPromise.then(function(){e._venmoDesktopInstance&&e._venmoDesktopInstance.teardown(),e._cancelMobilePollingContext(),d(this,u(A.prototype))}.bind(this))},A.prototype._removeVisibilityEventListener=function(){window.removeEventListener("hashchange",this._onHashChangeListener),window.document.removeEventListener(I(),this._visibilityChangeListener),delete this._visibilityChangeListener,delete this._onHashChangeListener},A.prototype._processResults=function(e){var t=this,n=T(e);return new h((function(e,i){n.venmoSuccess?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.success"),
|
||||
e(n)):n.venmoError?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.error"),i(new _({type:s.VENMO_APP_FAILED.type,code:s.VENMO_APP_FAILED.code,message:s.VENMO_APP_FAILED.message,details:{originalError:{message:decodeURIComponent(n.errorMessage),code:n.errorCode}}}))):n.venmoCancel?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.cancel"),i(new _(s.VENMO_APP_CANCELED))):(r.sendEvent(t._createPromise,"venmo.appswitch.cancel-or-unavailable"),i(new _(s.VENMO_CANCELED))),t._clearFragmentParameters()}))},A.prototype._clearFragmentParameters=function(){this._ignoreHistoryChanges||"function"==typeof window.history.replaceState&&window.location.hash&&history.pushState({},"",window.location.href.slice(0,window.location.href.indexOf("#")))},t.exports=p.wrapPrototype(A)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/in-iframe":152,"../lib/is-verified-domain":155,"../lib/methods":157,"../lib/promise":159,"../lib/querystring":160,"./external/":209,"./external/queries":210,"./shared/browser-detection":213,"./shared/constants":214,"./shared/errors":215,"./shared/supports-venmo":217,"@braintree/extended-promise":35,"@braintree/wrap-promise":44}],219:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={VISA_CHECKOUT_NOT_ENABLED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_NOT_ENABLED",message:"Visa Checkout is not enabled for this merchant."},VISA_CHECKOUT_INIT_OPTIONS_REQUIRED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_INIT_OPTIONS_REQUIRED",message:"initOptions requires an object."},VISA_CHECKOUT_PAYMENT_REQUIRED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_PAYMENT_REQUIRED",message:"tokenize requires callid, encKey, and encPaymentData."},VISA_CHECKOUT_TOKENIZATION:{type:r.types.NETWORK,code:"VISA_CHECKOUT_TOKENIZATION",message:"A network error occurred when processing the Visa Checkout payment."}}},{"../lib/braintree-error":126}],220:[function(e,t,n){"use strict";var r=e("../lib/basic-component-verification"),i=e("../lib/braintree-error"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./visa-checkout"),c=e("../lib/analytics"),l=e("./errors"),u=e("../lib/promise"),d=e("@braintree/wrap-promise");t.exports={create:d((function(e){var t="Visa Checkout";return r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.visaCheckout?(c.sendEvent(e.client,"visacheckout.initialized"),new s(e)):u.reject(new i(l.VISA_CHECKOUT_NOT_ENABLED))}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./errors":219,"./visa-checkout":221,"@braintree/wrap-promise":44}],221:[function(e,t,n){"use strict"
|
||||
;var r=e("../lib/braintree-error"),i=e("../lib/analytics"),o=e("./errors"),a=e("../lib/json-clone"),s=e("../lib/methods"),c=e("../lib/convert-methods-to-error"),l=e("../lib/promise"),u=e("@braintree/wrap-promise"),d={Visa:"VISA",MasterCard:"MASTERCARD",Discover:"DISCOVER","American Express":"AMEX"};function p(e){this._client=e.client}p.prototype.createInitOptions=function(e){var t,n=this._client.getConfiguration().gatewayConfiguration,i=n.visaCheckout;if(!e)throw new r(o.VISA_CHECKOUT_INIT_OPTIONS_REQUIRED);return(t=a(e)).apikey=t.apikey||i.apikey,t.externalClientId=t.externalClientId||i.externalClientId,t.settings=t.settings||{},t.settings.dataLevel="FULL",t.settings.payment=t.settings.payment||{},t.settings.payment.cardBrands||(t.settings.payment.cardBrands=n.visaCheckout.supportedCardTypes.reduce((function(e,t){return d.hasOwnProperty(t)?e.concat(d[t]):e}),[])),t},p.prototype.tokenize=function(e){var t=this;return e.callid&&e.encKey&&e.encPaymentData?this._client.request({method:"post",endpoint:"payment_methods/visa_checkout_cards",data:{_meta:{source:"visa-checkout"},visaCheckoutCard:{callId:e.callid,encryptedPaymentData:e.encPaymentData,encryptedKey:e.encKey}}}).then((function(e){return i.sendEvent(t._client,"visacheckout.tokenize.succeeded"),e.visaCheckoutCards[0]})).catch((function(e){return i.sendEvent(t._client,"visacheckout.tokenize.failed"),l.reject(new r({type:o.VISA_CHECKOUT_TOKENIZATION.type,code:o.VISA_CHECKOUT_TOKENIZATION.code,message:o.VISA_CHECKOUT_TOKENIZATION.message,details:{originalError:e}}))})):l.reject(new r(o.VISA_CHECKOUT_PAYMENT_REQUIRED))},p.prototype.teardown=function(){return c(this,s(p.prototype)),l.resolve()},t.exports=u.wrapPrototype(p)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/json-clone":156,"../lib/methods":157,"../lib/promise":159,"./errors":219,"@braintree/wrap-promise":44}]},{},[119])(119)},39391:e=>{"use strict";function t(e){return"function"==typeof e?e():e}function n(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=void 0,a=void 0,s=void 0,c=[];return function(){var u=t(r),d=(new Date).getTime(),p=!o||d-o>u;o=d;for(var _=arguments.length,E=Array(_),h=0;h<_;h++)E[h]=arguments[h];if(p&&i.leading)return i.accumulate?Promise.resolve(e.call(this,[E])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(E)));if(a?clearTimeout(s):a=n(),c.push(E),s=setTimeout(l.bind(this),u),i.accumulate){var f=c.length-1;return a.promise.then((function(e){return e[f]}))}return a.promise};function l(){var t=a;clearTimeout(s),Promise.resolve(i.accumulate?e.call(this,c):e.apply(this,c[c.length-1])).then(t.resolve,t.reject),c=[],a=null}}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
.back-button-837Z5B3u{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;height:23px;margin:0;padding:8px;width:23px}html.theme-dark .back-button-837Z5B3u{color:#d1d4dc}@media (any-hover:hover){.back-button-837Z5B3u:hover{background:#f0f3fa;color:#000}html.theme-dark .back-button-837Z5B3u:hover{background:#2a2e39;color:#f0f3fa}}.back-button-837Z5B3u:active{background:#e0e3eb;color:#131722}html.theme-dark .back-button-837Z5B3u:active{background:#1e222d;color:#d1d4dc}.back-button-837Z5B3u{outline:none;overflow:visible;position:relative}.back-button-837Z5B3u:focus{outline:none}.back-button-837Z5B3u:focus-visible{outline:none}.back-button-837Z5B3u:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.back-button-837Z5B3u:focus:after{display:block}.back-button-837Z5B3u:focus-visible:after{display:block}.back-button-837Z5B3u:focus:not(:focus-visible):after{display:none}.back-button-837Z5B3u:after{border-color:#2962ffcc;border-radius:8px}.back-button-837Z5B3u:disabled{color:#131722;cursor:default}@media (any-hover:hover){.back-button-837Z5B3u:disabled:hover{color:#131722;cursor:default}}html.theme-dark .back-button-837Z5B3u:disabled{color:#d1d4dc}@media (any-hover:hover){html.theme-dark .back-button-837Z5B3u:disabled:hover{color:#d1d4dc}}.icon-837Z5B3u,.icon-837Z5B3u svg{height:100%;width:100%}.button-m-837Z5B3u{height:17px;width:17px}
|
||||
@@ -1 +0,0 @@
|
||||
.back-button-837Z5B3u{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;height:23px;margin:0;padding:8px;width:23px}html.theme-dark .back-button-837Z5B3u{color:#d1d4dc}@media (any-hover:hover){.back-button-837Z5B3u:hover{background:#f0f3fa;color:#000}html.theme-dark .back-button-837Z5B3u:hover{background:#2a2e39;color:#f0f3fa}}.back-button-837Z5B3u:active{background:#e0e3eb;color:#131722}html.theme-dark .back-button-837Z5B3u:active{background:#1e222d;color:#d1d4dc}.back-button-837Z5B3u{outline:none;overflow:visible;position:relative}.back-button-837Z5B3u:focus{outline:none}.back-button-837Z5B3u:focus-visible{outline:none}.back-button-837Z5B3u:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.back-button-837Z5B3u:focus:after{display:block}.back-button-837Z5B3u:focus-visible:after{display:block}.back-button-837Z5B3u:focus:not(:focus-visible):after{display:none}.back-button-837Z5B3u:after{border-color:#2962ffcc;border-radius:8px}.back-button-837Z5B3u:disabled{color:#131722;cursor:default}@media (any-hover:hover){.back-button-837Z5B3u:disabled:hover{color:#131722;cursor:default}}html.theme-dark .back-button-837Z5B3u:disabled{color:#d1d4dc}@media (any-hover:hover){html.theme-dark .back-button-837Z5B3u:disabled:hover{color:#d1d4dc}}.icon-837Z5B3u,.icon-837Z5B3u svg{height:100%;width:100%}.icon-837Z5B3u svg{transform:rotate(180deg)}.button-m-837Z5B3u{height:17px;width:17px}
|
||||
@@ -1 +0,0 @@
|
||||
.icon-P882WPW5{display:flex}.wrap-TyQYOCnx{position:relative}.input-TyQYOCnx{bottom:0;left:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;top:0}
|
||||
@@ -1 +0,0 @@
|
||||
.icon-P882WPW5{display:flex}.wrap-TyQYOCnx{position:relative}.input-TyQYOCnx{bottom:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;right:0;top:0}
|
||||
@@ -1 +0,0 @@
|
||||
.errorDialog-0R3aCXZS{line-height:1.5}.tv-free-trial-q2JdOW0b{padding:0 40px}@media screen and (max-width:479px){.tv-free-trial-q2JdOW0b{padding:0 20px}}.tv-free-trial__total-q2JdOW0b{padding-bottom:24px}.tv-free-trial__total-separator-q2JdOW0b{border-bottom:1px dashed #c1c4cd;margin:16px 0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{display:flex}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-today-description-container-q2JdOW0b{flex:1.5}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{color:#131722;flex:1;font-weight:700;text-align:right}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-price-q2JdOW0b span+span,.tv-free-trial__total-today-price-q2JdOW0b span+span{margin-left:10px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{text-align:initial}}.tv-free-trial__total-after-trial-price-year-q2JdOW0b,.tv-free-trial__total-today-price-year-q2JdOW0b{color:#ff4a68}html.theme-dark .tv-free-trial__total-after-trial-price-year-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-year-q2JdOW0b{color:#cc2f3c}.tv-free-trial__total-after-trial-price-year--crossed-q2JdOW0b,.tv-free-trial__total-today-price-year--crossed-q2JdOW0b{text-decoration:line-through}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-right:20px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-right:0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{flex-direction:column}}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-after-trial-title-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b,.tv-free-trial__total-today-title-q2JdOW0b{color:#131722;font-size:24px;line-height:36px}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-after-trial-title-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-title-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-description-q2JdOW0b,.tv-free-trial__total-today-description-q2JdOW0b{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .tv-free-trial__total-after-trial-description-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-description-q2JdOW0b{color:#787b86}.tv-free-trial__footer-info-q2JdOW0b{display:flex}.tv-free-trial__footer-info-block-q2JdOW0b{background-color:#e3effd;border-radius:4px;flex:1;padding:16px 16px 4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b{background-color:#132042}.tv-free-trial__footer-info-block-q2JdOW0b h3{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b h3{color:#d1d4dc}.tv-free-trial__footer-info-block-q2JdOW0b p{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b p{color:#b2b5be}.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-right:20px}@media screen and (max-width:767px){.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-bottom:20px;margin-right:0}.tv-free-trial__footer-info-q2JdOW0b{flex-direction:column}}
|
||||
@@ -1 +0,0 @@
|
||||
.errorDialog-0R3aCXZS{line-height:1.5}.tv-free-trial-q2JdOW0b{padding:0 40px}@media screen and (max-width:479px){.tv-free-trial-q2JdOW0b{padding:0 20px}}.tv-free-trial__total-q2JdOW0b{padding-bottom:24px}.tv-free-trial__total-separator-q2JdOW0b{border-bottom:1px dashed #c1c4cd;margin:16px 0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{display:flex}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-today-description-container-q2JdOW0b{flex:1.5}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{color:#131722;flex:1;font-weight:700;text-align:left}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-price-q2JdOW0b span+span,.tv-free-trial__total-today-price-q2JdOW0b span+span{margin-right:10px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{text-align:initial}}.tv-free-trial__total-after-trial-price-year-q2JdOW0b,.tv-free-trial__total-today-price-year-q2JdOW0b{color:#ff4a68}html.theme-dark .tv-free-trial__total-after-trial-price-year-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-year-q2JdOW0b{color:#cc2f3c}.tv-free-trial__total-after-trial-price-year--crossed-q2JdOW0b,.tv-free-trial__total-today-price-year--crossed-q2JdOW0b{text-decoration:line-through}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-left:20px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-left:0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{flex-direction:column}}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-after-trial-title-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b,.tv-free-trial__total-today-title-q2JdOW0b{color:#131722;font-size:24px;line-height:36px}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-after-trial-title-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-title-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-description-q2JdOW0b,.tv-free-trial__total-today-description-q2JdOW0b{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .tv-free-trial__total-after-trial-description-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-description-q2JdOW0b{color:#787b86}.tv-free-trial__footer-info-q2JdOW0b{display:flex}.tv-free-trial__footer-info-block-q2JdOW0b{background-color:#e3effd;border-radius:4px;flex:1;padding:16px 16px 4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b{background-color:#132042}.tv-free-trial__footer-info-block-q2JdOW0b h3{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b h3{color:#d1d4dc}.tv-free-trial__footer-info-block-q2JdOW0b p{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b p{color:#b2b5be}.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-left:20px}@media screen and (max-width:767px){.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-bottom:20px;margin-left:0}.tv-free-trial__footer-info-q2JdOW0b{flex-direction:column}}
|
||||
@@ -1,24 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1482],{12857:e=>{e.exports={"textarea-container":"textarea-container-I5L4qQPj","change-highlight":"change-highlight-I5L4qQPj",focused:"focused-I5L4qQPj","resize-vertical":"resize-vertical-I5L4qQPj","resize-horizontal":"resize-horizontal-I5L4qQPj","resize-both":"resize-both-I5L4qQPj",textarea:"textarea-I5L4qQPj"}},74588:e=>{e.exports={wrap:"wrap-sYKPueSl",thicknessItem:"thicknessItem-sYKPueSl",checked:"checked-sYKPueSl",radio:"radio-sYKPueSl",bar:"bar-sYKPueSl"}},9198:e=>{e.exports={innerLabel:"innerLabel-MS9pjVpT"}},44712:e=>{e.exports={controlWrapper:"controlWrapper-y2rn9wiU",hidden:"hidden-y2rn9wiU",control:"control-y2rn9wiU",controlIncrease:"controlIncrease-y2rn9wiU",controlDecrease:"controlDecrease-y2rn9wiU",controlIcon:"controlIcon-y2rn9wiU",title:"title-y2rn9wiU"}},16300:e=>{e.exports={titleWrap:"titleWrap-ZYQL0yaM",groupFooter:"groupFooter-ZYQL0yaM"}},23128:e=>{e.exports={inlineRow:"inlineRow-CqPNtHDN"}},70199:e=>{e.exports={icon:"icon-OTC0ma9h"}},6041:e=>{e.exports={input:"input-pBN3Orju",symbol:"symbol-pBN3Orju",checkbox:"checkbox-pBN3Orju",label:"label-pBN3Orju",dropdownMenu:"dropdownMenu-pBN3Orju",sessionStart:"sessionStart-pBN3Orju",sessionEnd:"sessionEnd-pBN3Orju",sessionInputContainer:"sessionInputContainer-pBN3Orju",sessionDash:"sessionDash-pBN3Orju",inputGroup:"inputGroup-pBN3Orju",textarea:"textarea-pBN3Orju",inlineGroup:"inlineGroup-pBN3Orju",hasTooltip:"hasTooltip-pBN3Orju"}},46828:e=>{e.exports={content:"content-ByXdMGQj",cell:"cell-ByXdMGQj",inner:"inner-ByXdMGQj",first:"first-ByXdMGQj",inlineCell:"inlineCell-ByXdMGQj",fill:"fill-ByXdMGQj",top:"top-ByXdMGQj",topCenter:"topCenter-ByXdMGQj",offset:"offset-ByXdMGQj",inlineRow:"inlineRow-ByXdMGQj",grouped:"grouped-ByXdMGQj",separator:"separator-ByXdMGQj",groupSeparator:"groupSeparator-ByXdMGQj",big:"big-ByXdMGQj",adaptive:"adaptive-ByXdMGQj",checkableTitle:"checkableTitle-ByXdMGQj"}},300:e=>{e.exports={wrap:"wrap-l3G0HrB9",labelWrap:"labelWrap-l3G0HrB9",label:"label-l3G0HrB9",hasTooltip:"hasTooltip-l3G0HrB9"}},91131:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-xe9kH1lJ",submitButton:"submitButton-xe9kH1lJ",buttons:"buttons-xe9kH1lJ"}},55914:e=>{e.exports={wrap:"wrap-GsOqvniR",icon:"icon-GsOqvniR",text:"text-GsOqvniR",disabled:"disabled-GsOqvniR"}},14348:e=>{e.exports={colorPickerWrap:"colorPickerWrap-pz6IRAmC",focused:"focused-pz6IRAmC",readonly:"readonly-pz6IRAmC",disabled:"disabled-pz6IRAmC","size-small":"size-small-pz6IRAmC","size-medium":"size-medium-pz6IRAmC","size-large":"size-large-pz6IRAmC","font-size-small":"font-size-small-pz6IRAmC","font-size-medium":"font-size-medium-pz6IRAmC","font-size-large":"font-size-large-pz6IRAmC","border-none":"border-none-pz6IRAmC",shadow:"shadow-pz6IRAmC","border-thin":"border-thin-pz6IRAmC","border-thick":"border-thick-pz6IRAmC","intent-default":"intent-default-pz6IRAmC","intent-success":"intent-success-pz6IRAmC","intent-warning":"intent-warning-pz6IRAmC","intent-danger":"intent-danger-pz6IRAmC",
|
||||
"intent-primary":"intent-primary-pz6IRAmC","corner-top-left":"corner-top-left-pz6IRAmC","corner-top-right":"corner-top-right-pz6IRAmC","corner-bottom-right":"corner-bottom-right-pz6IRAmC","corner-bottom-left":"corner-bottom-left-pz6IRAmC",colorPicker:"colorPicker-pz6IRAmC",swatch:"swatch-pz6IRAmC",placeholderContainer:"placeholderContainer-pz6IRAmC",placeholder:"placeholder-pz6IRAmC",mixedColor:"mixedColor-pz6IRAmC",white:"white-pz6IRAmC",opacitySwatch:"opacitySwatch-pz6IRAmC",colorLine:"colorLine-pz6IRAmC",multiWidth:"multiWidth-pz6IRAmC",line:"line-pz6IRAmC",thicknessContainer:"thicknessContainer-pz6IRAmC",thicknessTitle:"thicknessTitle-pz6IRAmC"}},83421:e=>{e.exports={thicknessContainer:"thicknessContainer-ofeynovw",thicknessTitle:"thicknessTitle-ofeynovw"}},83998:e=>{e.exports={hasTooltip:"hasTooltip-0t5K1wco",uppercase:"uppercase-0t5K1wco"}},26527:e=>{e.exports={wrap:"wrap-dHwHcgvB"}},27345:e=>{e.exports={checkbox:"checkbox-24x04noU",title:"title-24x04noU"}},51842:e=>{e.exports={titleWrap:"titleWrap-O5QDBhZc",title:"title-O5QDBhZc"}},10667:e=>{e.exports={container:"container-WiTVOllB",sectionTitle:"sectionTitle-WiTVOllB",separator:"separator-WiTVOllB",customButton:"customButton-WiTVOllB"}},99565:e=>{e.exports={container:"container-UpS01XRM",form:"form-UpS01XRM",swatch:"swatch-UpS01XRM",inputWrap:"inputWrap-UpS01XRM",inputHash:"inputHash-UpS01XRM",input:"input-UpS01XRM",buttonWrap:"buttonWrap-UpS01XRM",hueSaturationWrap:"hueSaturationWrap-UpS01XRM",saturation:"saturation-UpS01XRM",hue:"hue-UpS01XRM"}},24429:e=>{e.exports={hue:"hue-oQv2KoOx",pointer:"pointer-oQv2KoOx",pointerContainer:"pointerContainer-oQv2KoOx"}},15381:e=>{e.exports={opacity:"opacity-YL5Gjk00",opacitySlider:"opacitySlider-YL5Gjk00",opacitySliderGradient:"opacitySliderGradient-YL5Gjk00",pointer:"pointer-YL5Gjk00",dragged:"dragged-YL5Gjk00",opacityPointerWrap:"opacityPointerWrap-YL5Gjk00",opacityInputWrap:"opacityInputWrap-YL5Gjk00",opacityInput:"opacityInput-YL5Gjk00",opacityInputPercent:"opacityInputPercent-YL5Gjk00"}},88440:e=>{e.exports={saturation:"saturation-lJHGRPyu",pointer:"pointer-lJHGRPyu"}},24590:e=>{e.exports={swatches:"swatches-qgksmXjR",swatch:"swatch-qgksmXjR",hover:"hover-qgksmXjR",empty:"empty-qgksmXjR",white:"white-qgksmXjR",selected:"selected-qgksmXjR",contextItem:"contextItem-qgksmXjR"}},88722:e=>{e.exports={wrap:"wrap-TyQYOCnx",input:"input-TyQYOCnx"}},24451:e=>{e.exports={icon:"icon-P882WPW5"}},2568:(e,t,n)=>{"use strict";n.d(t,{Textarea:()=>y});var o,r=n(59496),s=n(97754),a=n(66092),i=n(29202),l=n(48027),c=n(45812),u=n(47201),p=n(48907),d=n(67029),h=n(78274),m=n(12857),f=n.n(m);!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(o||(o={}));const g=r.forwardRef((e,t)=>{
|
||||
const{id:n,title:o,tabIndex:a,containerTabIndex:i,role:l,inputClassName:c,autoComplete:u,autoFocus:p,cols:m,disabled:g,isFocused:v,form:C,maxLength:y,minLength:b,name:E,placeholder:S,readonly:N,required:_,rows:w,value:x,defaultValue:T,wrap:k,containerReference:P,onChange:I,onSelect:R,onFocus:B,onContainerFocus:M,onBlur:D,"aria-describedby":O,...V}=e,A={id:n,title:o,tabIndex:a,role:l,autoComplete:u,autoFocus:p,cols:m,disabled:g,form:C,maxLength:y,minLength:b,name:E,placeholder:S,readOnly:N,required:_,rows:w,value:x,defaultValue:T,wrap:k,onChange:I,onSelect:R,onFocus:B,onBlur:D,"aria-describedby":O};return r.createElement(d.ControlSkeleton,{...V,tabIndex:i,disabled:g,readonly:N,isFocused:v,ref:P,onFocus:M,middleSlot:r.createElement(h.MiddleSlot,null,r.createElement("textarea",{...A,className:s(f().textarea,c),ref:t}))})});g.displayName="TextareaView";const v=(e,t,n)=>t?void 0:e?-1:n,C=(e,t,n)=>t?void 0:e?n:-1,y=r.forwardRef((e,t)=>{e=(0,l.useControl)(e);const{className:n,disabled:d,autoSelectOnFocus:h,tabIndex:m=0,borderStyle:y,highlight:b,resize:E,containerReference:S=null,onFocus:N,onBlur:_,...w}=e,x=(0,r.useRef)(null),T=(0,r.useRef)(null),{isMouseDown:k,handleMouseDown:P,handleMouseUp:I}=(0,c.useIsMouseDown)(),[R,B]=(0,i.useFocus)(),M=(0,u.createSafeMulticastEventHandler)(B.onFocus,(function(e){h&&!k.current&&(0,p.selectAllContent)(e.currentTarget)}),N),D=(0,u.createSafeMulticastEventHandler)(B.onBlur,_),O=void 0!==E&&E!==o.None,V=null!=y?y:O?b?"thick":"thin":void 0,A=null!=b?b:!O&&void 0;return r.createElement(g,{...w,className:s(f()["textarea-container"],O&&f()["change-highlight"],E&&E!==o.None&&f()["resize-"+E],R&&f().focused,n),disabled:d,isFocused:R,containerTabIndex:v(R,d,m),tabIndex:C(R,d,m),borderStyle:V,highlight:A,onContainerFocus:function(e){T.current===e.target&&null!==x.current&&x.current.focus()},onFocus:M,onBlur:D,onMouseDown:P,onMouseUp:I,ref:function(e){x.current=e,"function"==typeof t?t(e):t&&(t.current=e)},containerReference:(0,a.useMergedRefs)([S,T])})});y.displayName="Textarea"},92399:(e,t,n)=>{"use strict";n.d(t,{NumberInputView:()=>x});var o=n(59496),r=n(32563),s=n(97754),a=n(67029),i=n(78274),l=n(86623),c=n(86629),u=n(1405),p=n(9198);const d={large:a.InputClasses.FontSizeLarge,medium:a.InputClasses.FontSizeMedium},h={attachment:u.anchors.top.attachment,targetAttachment:u.anchors.top.targetAttachment,attachmentOffsetY:-4};function m(e){const{className:t,inputClassName:n,stretch:r=!0,errorMessage:a,fontSizeStyle:u="large",endSlot:m,button:f,error:g,warning:v,innerLabel:C,inputReference:y,children:b,...E}=e,S=g&&void 0!==a?[a]:void 0,N=v&&void 0!==a?[a]:void 0,_=s(p.inputContainer,d[u],t),w=C?o.createElement(i.StartSlot,{className:p.innerLabel,interactive:!1},C):void 0,x=m||f||b?o.createElement(i.EndSlot,null,m,f,b):void 0;return o.createElement(l.FormInput,{...E,className:_,inputClassName:n,errors:S,warnings:N,hasErrors:g,hasWarnings:v,messagesPosition:c.MessagesPosition.Attached,customErrorsAttachment:h,messagesRoot:"document",inheritMessagesWidthFromTarget:!0,disableMessagesRtlStyles:!0,
|
||||
iconHidden:!0,stretch:r,reference:y,startSlot:w,endSlot:x})}var f=n(28353),g=n(9745),v=n(81268),C=n(44712);function y(e){const t=s(C.control,C.controlIncrease),n=s(C.control,C.controlDecrease);return o.createElement(o.Fragment,null,void 0!==e.title&&o.createElement("div",{className:C.title},e.title),o.createElement("div",{className:C.controlWrapper},(e.defaultButtonsVisible||e.title)&&o.createElement(o.Fragment,null,o.createElement("button",{type:"button",tabIndex:-1,"aria-label":(0,f.t)("Increase"),className:t,onClick:e.increaseValue},o.createElement(g.Icon,{icon:v,className:C.controlIcon})),o.createElement("button",{type:"button",tabIndex:-1,"aria-label":(0,f.t)("Decrease"),className:n,onClick:e.decreaseValue},o.createElement(g.Icon,{icon:v,className:C.controlIcon})))))}var b=n(70412),E=n(29202),S=n(47201),N=n(68335);const _=[38],w=[40];function x(e){const[t,n]=(0,b.useHover)(),[s,a]=(0,E.useFocus)(),i=(0,S.createSafeMulticastEventHandler)(a.onFocus,e.onFocus),l=(0,S.createSafeMulticastEventHandler)(a.onBlur,e.onBlur),c=(0,o.useCallback)(t=>{!e.disabled&&s&&(t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1))},[s,e.disabled,e.onValueByStepChange]);return o.createElement(m,{...n,id:e.id,name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,inputClassName:e.inputClassName,button:function(){const{button:n,forceShowControls:a,disabled:i,title:l}=e,c=!i&&!r.mobiletouch&&(a||s||t);return i?void 0:o.createElement(o.Fragment,null,null!=n?n:o.createElement(y,{increaseValue:u,decreaseValue:p,defaultButtonsVisible:c,title:l}))}(),disabled:e.disabled,placeholder:e.placeholder,innerLabel:e.innerLabel,endSlot:e.endSlot,containerReference:e.containerReference,inputReference:e.inputReference,inputMode:e.inputMode,type:e.type,error:e.error,errorMessage:e.errorMessage,onClick:e.onClick,onFocus:i,onBlur:l,onChange:e.onValueChange,onKeyDown:function(t){if(e.disabled||0!==(0,N.modifiersFromEvent)(t.nativeEvent))return;let n=_,o=w;e.controlDecKeyCodes&&(o=o.concat(e.controlDecKeyCodes));e.controlIncKeyCodes&&(n=n.concat(e.controlIncKeyCodes));(o.includes(t.keyCode)||n.includes(t.keyCode))&&(t.preventDefault(),e.onValueByStepChange(o.includes(t.keyCode)?-1:1));e.onKeyDown&&e.onKeyDown(t)},onWheelNoPassive:c,stretch:e.stretch,intent:e.intent,highlight:e.highlight,highlightRemoveRoundBorder:e.highlightRemoveRoundBorder,autoSelectOnFocus:e.autoSelectOnFocus,"data-property-id":e["data-name"]});function u(){e.disabled||e.onValueByStepChange(1)}function p(){e.disabled||e.onValueByStepChange(-1)}}},35726:(e,t,n)=>{"use strict";n.d(t,{splitThousands:()=>r});var o=n(93751);function r(e,t=" "){let n=e+"";-1!==n.indexOf("e")&&(n=function(e){return(0,o.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));const r=n.split(".");return r[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(r[1]?"."+r[1]:"")}},46446:(e,t,n)=>{"use strict";n.d(t,{bind:()=>a,setter:()=>i});var o=n(59496),r=n(617),s=n(27365);function a(e){var t
|
||||
;return(t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=(e,t,n)=>{const{setValue:o}=this.context,{onChange:r}=this.props;i(o,r)(e,t,n)}}render(){const{input:t}=this.props,{values:n,model:r}=this.context;return o.createElement(e,{...this.props,value:n[t.id],tzName:(0,s.getTimezoneName)(r),onChange:this._onChange})}}).contextType=r.PropertyContext,t}function i(e,t){return(n,o,r)=>{e(o,n,r),t&&t(n,o,r)}}},617:(e,t,n)=>{"use strict";n.d(t,{PropertyContext:()=>c,PropertyContainer:()=>u});var o=n(59496),r=n(88537),s=n(28353),a=n(24980);const i=(0,n(98125).getLogger)("Platform.GUI.StudyInputPropertyContainer"),l=new a.TranslatedString("change {propertyName} property",(0,s.t)("change {propertyName} property")),c=o.createContext(null);class u extends o.PureComponent{constructor(e){super(e),this._setValue=(e,t,n)=>{const{property:o,model:c}=this.props,u=(0,r.ensureDefined)(o.child(e));i.logNormal(`Changing property "${e}" value from "${o.value()}" to "${t}"`);const p=new a.TranslatedString(n,function(e){return(0,s.t)(e,{context:"input"})}(n));c.setProperty(u,t,l.format({propertyName:p}))};const{property:t}=e,n={};t.childNames().forEach(e=>{const o=(0,r.ensureDefined)(t.child(e));n.hasOwnProperty(e)||(n[e]=o.value())}),this.state=n}componentDidMount(){const{property:e,onStudyInputChange:t}=this.props;e.childNames().forEach(n=>{(0,r.ensureDefined)(e.child(n)).subscribe(this,e=>{const o=e.value();i.logNormal(`Property "${n}" updated to value "${o}"`),this.setState({[n]:o}),null==t||t(o,n)})})}componentWillUnmount(){const{property:e}=this.props;e.childNames().forEach(t=>{(0,r.ensureDefined)(e.child(t)).unsubscribeAll(this)})}render(){const{study:e,model:t,children:n}=this.props,r={study:e,model:t,values:this.state,setValue:this._setValue};return o.createElement(c.Provider,{value:r},n)}}},44488:(e,t,n)=>{"use strict";n.d(t,{ModelContext:()=>r,bindModel:()=>s});var o=n(59496);const r=o.createContext(null);function s(e,t){return o.createElement(r.Consumer,null,n=>n?o.createElement(e,{...Object.assign({model:n},t)}):null)}},87536:(e,t,n)=>{"use strict";n.d(t,{StylePropertyContext:()=>s,StylePropertyContainer:()=>a,bindPropertyContext:()=>i});var o=n(59496),r=n(44488);const s=o.createContext(null);class a extends o.PureComponent{constructor(){super(...arguments),this._setValue=(e,t,n)=>{const{model:o}=this.props;o.setProperty(e,t,n)}}componentDidMount(){const{property:e}=this.props;e.subscribe(this,()=>this.forceUpdate())}componentWillUnmount(){const{property:e}=this.props;e.unsubscribeAll(this)}render(){const e={setValue:this._setValue};return o.createElement(s.Provider,{value:e},this.props.children)}}function i(e,t){return(0,r.bindModel)(({model:n})=>o.createElement(a,{model:n,property:t.property},o.createElement(e,{...t})),t)}},65376:(e,t,n)=>{"use strict";n.d(t,{InputTooltip:()=>h});var o=n(59496),r=n(97754),s=n.n(r),a=n(9745),i=n(38780),l=n(32563),c=n(70199),u=n(60495);function p(){document.removeEventListener("scroll",p),document.removeEventListener("touchstart",p),(0,i.hide)()}function d(e){
|
||||
l.mobiletouch&&((0,i.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",p),document.addEventListener("touchstart",p))}function h(e){const{className:t,title:n}=e;return o.createElement(a.Icon,{icon:u,className:s()(t,"apply-common-tooltip",c.icon),title:n,onClick:d})}},95087:(e,t,n)=>{"use strict";n.d(t,{isGroup:()=>r,isInputInlines:()=>s,getInputGroups:()=>a});var o=n(88537);function r(e){return e.hasOwnProperty("groupType")}function s(e){return r(e)&&"inline"===e.groupType}function a(e){const t=[],n=new Map,r=new Map;return r.set(void 0,new Map),e.forEach(e=>{const{group:s,inline:a}=e;if(void 0!==s||void 0!==a)if(void 0!==s)if(void 0!==a)if(n.has(s)){const t=(0,o.ensureDefined)(n.get(s));let l;r.has(t)?l=(0,o.ensureDefined)(r.get(t)):(l=new Map,r.set(t,l)),i(e,"inline",a,l,t.children)}else{const o={id:a,groupType:"inline",children:[e]},i={id:s,groupType:"group",children:[o]},l=new Map;l.set(a,o),r.set(i,l),n.set(s,i),t.push(i)}else i(e,"group",s,n,t);else{const n=(0,o.ensureDefined)(r.get(void 0));i(e,"inline",(0,o.ensureDefined)(a),n,t)}else t.push(e)}),t}function i(e,t,n,r,s){if(r.has(n))(0,o.ensureDefined)(r.get(n)).children.push(e);else{const o={id:n,groupType:t,children:[e]};r.set(n,o),s.push(o)}}},27547:(e,t,n)=>{"use strict";n.d(t,{InputRow:()=>X});var o=n(28353),r=n(59496),s=n(88537),a=n(33266),i=n(26007),l=n(48948),c=n(48100),u=n(97754),p=n.n(u),d=n(31261),h=n(46446),m=n(93379),f=n(6041);class g extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:o,onKeyDown:s,hasTooltip:a}=this.props;return r.createElement(d.InputControl,{className:p()(f.input,a&&f.hasTooltip),value:void 0===t?e:t,onChange:this._onChange,onBlur:o,onKeyDown:s,disabled:n})}}const v=(0,m.debounced)(g),C=(0,h.bind)(v);var y=n(76110),b=n(35868);function E(e){const{className:t}=e,n=(0,r.useContext)(b.PropertyTable.InlineRowContext);return r.createElement("div",{className:u(f.inputGroup,n&&f.inlineGroup,t)},e.children)}var S=n(36565);function N(e=""){const[,t="",n="",o="",r=""]=Array.from(e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[]);return[`${t}:${n}`,`${o}:${r}`]}class _ extends r.PureComponent{constructor(e){super(e),this._onStartPick=e=>{this.setState({startTime:e},this._onChange)},this._onEndPick=e=>{this.setState({endTime:e},this._onChange)},this._onChange=()=>{const{input:{id:e,name:t},onChange:n}=this.props,{startTime:o,endTime:r}=this.state;n(o.replace(":","")+"-"+r.replace(":",""),e,t)};const t=e.value||e.input.defval,[n,o]=N(t);this.state={prevValue:t,startTime:n,endTime:o}}render(){const{startTime:e,endTime:t}=this.state,{hasTooltip:n,disabled:o}=this.props;return r.createElement(E,{className:p()(n&&f.hasTooltip)},r.createElement("div",{className:f.sessionStart},r.createElement(S.TimeInput,{className:p()(f.input,f.sessionInputContainer),name:"start",value:(0,s.ensureDefined)(e),onChange:this._onStartPick,disabled:o}),r.createElement("span",{
|
||||
className:f.sessionDash}," — ")),r.createElement("div",{className:f.sessionEnd},r.createElement(S.TimeInput,{className:p()(f.input,f.sessionInputContainer),name:"end",value:(0,s.ensureDefined)(t),onChange:this._onEndPick,disabled:o})))}static getDerivedStateFromProps(e,t){if(e.value===t.prevValue)return t;const[n,o]=N(e.value);return{prevValue:e.value,startTime:n,endTime:o}}}const w=(0,h.bind)(_);var x=n(67337),T=n(67072),k=n.n(T),P=n(617),I=n(58368);class R extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e,t,n)}}render(){const{input:{id:e,defval:t,options:n,optionsTitles:s},value:a,disabled:i,hasTooltip:l}=this.props,c=n.map(e=>{const t=s&&s[e]?s[e]:e;return{value:e,content:(0,o.t)(t,{context:"input"})}}),u=void 0!==a&&n.includes(a)?a:t;return r.createElement(I.Select,{id:e,className:p()(f.input,l&&f.hasTooltip),menuClassName:f.dropdownMenu,value:u,items:c,onChange:this._onChange,disabled:i})}}const B=(0,h.bind)(R);var M=n(72280);const D={open:(0,o.t)("open"),high:(0,o.t)("high"),low:(0,o.t)("low"),close:(0,o.t)("close"),hl2:(0,o.t)("hl2"),hlc3:(0,o.t)("hlc3"),ohlc4:(0,o.t)("ohlc4"),hlcc4:(0,o.t)("hlcc4")};class O extends r.PureComponent{render(){const{input:e}=this.props,{study:t,model:n}=this.context;let o={...D};delete o.hlcc4;const a=(0,M.createAdapter)(t);if(t&&this._isStudy(t)&&t.isChildStudy()){const t=a.parentSource(),n=t.title(),r=k().getChildSourceInputTitles(e,t.metaInfo(),n);o={...o,...r}}if(x.enabled("study_on_study")&&t&&this._isStudy(t)&&(t.isChildStudy()||k().canBeChild(t.metaInfo()))){const e=[t,...a.getAllChildren()];n.model().allStudies().filter(t=>t.canHaveChildren()&&!e.includes(t)).forEach(e=>{const t=e.title(!0,void 0,!0),n=e.sourceId()||"#"+e.id(),r=e.metaInfo(),a=r.styles,i=r.plots||[];if(1===i.length)o[n+"$0"]=t;else if(i.length>1){const e=i.reduce((e,o,r)=>{if(!k().canPlotBeSourceOfChildStudy(o.type))return e;let i;try{i=(0,s.ensureDefined)((0,s.ensureDefined)(a)[o.id]).title}catch(e){i=o.id}return{...e,[`${n}$${r}`]:`${t}: ${i}`}},{});o={...o,...e}}})}const i={...e,type:"text",options:Object.keys(o),optionsTitles:o};return r.createElement(B,{...this.props,input:i})}_isStudy(e){return!e.hasOwnProperty("isInputsStudy")}}O.contextType=P.PropertyContext;var V=n(29823),A=n(9315);const z=void 0,L=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"];class F extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e,t,n)}}render(){const{input:e,value:t,disabled:n,hasTooltip:s}=this.props,a=V.Interval.parse(void 0===t?e.defval:t),i=a.isValid()?a.value():t,l=z?z.get().filter(e=>!V.Interval.parse(e).isRange()):[],c=(0,A.mergeResolutions)(L,l);return c.unshift(""),r.createElement(I.Select,{id:e.id,className:p()(f.input,f.resolution,s&&f.hasTooltip),menuClassName:p()(f.dropdownMenu,f.resolution),items:(u=c,u.map(e=>({value:e,content:""===e?(0,o.t)("Chart"):(0,A.getTranslatedResolutionModel)(e).hint}))),value:i,onChange:this._onChange,
|
||||
disabled:n});var u}}const W=(0,h.bind)(F);var G=n(79946),j=n(87536);class H extends r.PureComponent{render(){return r.createElement(P.PropertyContext.Consumer,null,e=>e?this._getColorInputWithContext(e):null)}_getColorInputWithContext(e){var t;const{input:{id:n},disabled:o,hasTooltip:s}=this.props,{model:a,study:i}=e;if("properties"in i||"tempProperties"in i){const e="properties"in i?i.properties().inputs[n]:null===(t=i.tempProperties)||void 0===t?void 0:t.inputs.child(n);return r.createElement(j.StylePropertyContainer,{model:a,property:e},r.createElement(G.ColorWithThicknessSelect,{className:p()(s&&f.hasTooltip),color:e,disabled:o}))}return null}}class U extends r.PureComponent{render(){const{input:e,disabled:t,onChange:n,tzName:o,hasTooltip:s}=this.props;if((0,a.isStudyInputOptionsInfo)(e))return r.createElement(B,{input:e,disabled:t,onChange:n,hasTooltip:s});switch(e.type){case"integer":return r.createElement(i.IntegerInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"float":case"price":return r.createElement(l.FloatInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"bool":return r.createElement(c.BoolInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"text":return r.createElement(C,{input:e,disabled:t,onChange:n,hasTooltip:s});case"symbol":return r.createElement(y.SymbolInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"session":return r.createElement(w,{input:e,disabled:t,onChange:n,hasTooltip:s});case"source":return r.createElement(O,{input:e,disabled:t,onChange:n,hasTooltip:s});case"resolution":return r.createElement(W,{input:e,disabled:t,onChange:n,hasTooltip:s});case"time":return null;case"color":return r.createElement(H,{input:e,disabled:t,onChange:n,hasTooltip:s});default:return null}}}var K=n(65376);class X extends r.PureComponent{render(){const{label:e,children:t,input:n,disabled:a,onChange:i,labelAlign:l,grouped:c,tooltip:u,offset:p}=this.props;return r.createElement(b.PropertyTable.Row,null,r.createElement(b.PropertyTable.Cell,{placement:"first",verticalAlign:l,grouped:c,offset:p},void 0!==e?e:(0,o.t)((0,s.ensureDefined)(n).name,{context:"input"})),r.createElement(b.PropertyTable.Cell,{placement:"last",grouped:c},t||r.createElement(U,{input:(0,s.ensureDefined)(n),onChange:i,disabled:a,hasTooltip:Boolean(u)}),u&&r.createElement(K.InputTooltip,{title:u})))}}},22855:(e,t,n)=>{"use strict";n.d(t,{InputsTabContent:()=>V});var o=n(59496),r=n(28353),s=n(617),a=n(35868),i=n(54349),l=n(45631),c=n(88537),u=n(76110),p=n(46446),d=n(65376),h=n(6041);function m(e){const{children:t,input:n,disabled:m,onChange:f,grouped:g,tooltip:v}=e,C=(0,o.useContext)(s.PropertyContext),{values:y,setValue:b}=(0,c.ensureNotNull)(C),E=y[n.id],[S,N]=(0,o.useState)(E?"another-symbol":"main-symbol"),[_,w]=(0,o.useState)(E);return(0,o.useEffect)(()=>{E&&w(E)},[E]),o.createElement(i.SwitchGroup,{name:"symbol-source-"+n.id,values:[S],onChange:function(e){N(e),"main-symbol"===e?(0,p.setter)(b)("",n.id,n.name):"another-symbol"===e&&_&&(0,p.setter)(b,f)(_,n.id,n.name)}
|
||||
},o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{colSpan:2,placement:"first",grouped:g},o.createElement(l.RadioButton,{value:"main-symbol",className:h.checkbox,disabled:m,label:o.createElement("span",{className:h.label},(0,r.t)("Main chart symbol",{context:"input"}))}))),o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",grouped:g},o.createElement(l.RadioButton,{value:"another-symbol",className:h.checkbox,disabled:m,label:o.createElement("span",{className:h.label},(0,r.t)("Another symbol",{context:"input"}))})),o.createElement(a.PropertyTable.Cell,{placement:"last",grouped:g},t||o.createElement(u.SymbolInput,{input:(0,c.ensureDefined)(n),onChange:f,disabled:m||"main-symbol"===S,hasTooltip:Boolean(v)}),v&&o.createElement(d.InputTooltip,{title:v}))))}var f=n(48100);class g extends o.PureComponent{render(){const{label:e,input:t,tooltip:n}=this.props;return o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",colSpan:2},o.createElement(f.BoolInput,{label:e,input:t,hasTooltip:Boolean(n)}),n&&o.createElement(d.InputTooltip,{title:n})))}}var v=n(27547),C=n(97754),y=n.n(C),b=n(2568),E=n(67029),S=n(93379);class N extends o.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:r,onKeyDown:s}=this.props;return o.createElement(b.Textarea,{className:y()(h.input,h.textarea,E.InputClasses.FontSizeMedium),value:void 0===t?e:t,onChange:this._onChange,onBlur:r,onKeyDown:s,disabled:n})}}const _=(0,S.debounced)(N),w=(0,p.bind)(_);var x=n(300);function T(e){const{input:t,label:n,tooltip:r}=e;return o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",colSpan:2,className:x.wrap},o.createElement("div",{className:x.labelWrap},o.createElement("span",{className:y()(x.label,r&&x.hasTooltip)},n),r&&o.createElement(d.InputTooltip,{title:r})),o.createElement(w,{input:t})))}function k(e){const{input:t,tooltip:n}=e;return"symbol"===t.type&&t.optional?o.createElement(m,{input:t,tooltip:n}):"bool"===t.type?o.createElement(g,{label:(0,r.t)(t.name,{context:"input"}),input:t,tooltip:n}):"text_area"===t.type?o.createElement(T,{label:(0,r.t)(t.name,{context:"input"}),input:t,tooltip:n}):o.createElement(v.InputRow,{labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:n})}var P=n(86067),I=n(23128);function R(e){const{content:t}=e;let n;return o.createElement(a.PropertyTable.InlineRowContext.Provider,{value:!0},o.createElement("div",{className:I.inlineRow},t.children.map((e,r)=>(void 0!==e.tooltip&&(n=e.tooltip),o.createElement(k,{key:e.id,input:e,tooltip:r===t.children.length-1?n:void 0})))))}var B=n(95087),M=n(16300);function D(e){const{content:t}=e;return(0,B.isGroup)(t)?(0,B.isInputInlines)(t)?o.createElement(R,{content:t
|
||||
}):o.createElement(o.Fragment,null,o.createElement("div",{className:M.titleWrap},o.createElement(P.GroupTitleSection,{title:(0,r.t)(t.id,{context:"input"}),name:t.id})),t.children.map(e=>(0,B.isGroup)(e)?o.createElement(R,{key:e.id,content:e}):o.createElement(k,{key:e.id,input:e,tooltip:e.tooltip})),o.createElement("div",{className:M.groupFooter})):o.createElement(k,{input:t,tooltip:t.tooltip})}const O={offset:(0,r.t)("Offset")};class V extends o.PureComponent{render(){const{reference:e,inputs:t,property:n,study:r,model:s,onStudyInputChange:i,className:l}=this.props,{offset:c,offsets:u}=n;return o.createElement(a.PropertyTable,{reference:e,className:l},o.createElement(A,{study:r,model:s,property:n.inputs,inputs:t,onStudyInputChange:i}),c&&this._createOffsetSection(c),u&&u.childNames().map(e=>{const t=u.childs()[e];return this._createOffsetSection(t)}))}_createOffsetSection(e){const t=e.childs();return o.createElement(A,{key:"offset_"+t.title.value(),study:this.props.study,model:this.props.model,inputs:[z(t)],property:e})}}function A(e){const{study:t,model:n,inputs:r,property:a,onStudyInputChange:i}=e,l=r,c=(0,o.useMemo)(()=>(0,B.getInputGroups)(l),[l]);return o.createElement(s.PropertyContainer,{property:a,study:t,model:n,onStudyInputChange:i},!1,c.map(e=>o.createElement(D,{key:e.id,content:e})))}function z(e){return{id:"val",name:e.title.value()||O.offset,defval:e.val.value(),type:"integer",min:e.min.value(),max:e.max.value()}}},48100:(e,t,n)=>{"use strict";n.d(t,{BoolInputComponent:()=>c,BoolInput:()=>u});var o=n(59496),r=n(15294),s=n(97754),a=n.n(s),i=n(46446),l=n(6041);class c extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{const{input:{id:e,name:t},value:n,onChange:o}=this.props;o(!n,e,t)}}render(){const{input:{defval:e},value:t,disabled:n,label:s,hasTooltip:i}=this.props,c=void 0===t?e:t;return o.createElement(r.Checkbox,{className:a()(l.checkbox,i&&l.hasTooltip),disabled:n,checked:c,onChange:this._onChange,label:o.createElement("span",{className:l.label},s),labelAlignBaseline:!0})}}const u=(0,i.bind)(c)},93379:(e,t,n)=>{"use strict";n.d(t,{debounced:()=>s});var o=n(59496);const r={blur:0,commit:0,change:1/0};function s(e,t=r){return class extends o.PureComponent{constructor(e){super(e),this._onChange=(e,n,o)=>{const r=t.change;r?(clearTimeout(this._timeout),this.setState({value:e},()=>{r!==1/0&&(this._timeout=setTimeout(()=>this._flush(),r))})):this._flush(e)},this._onBlur=()=>{this._debounce(t.blur);const{onBlur:e}=this.props;e&&e()},this._onKeyDown=e=>{13===e.keyCode&&this._debounce(t.commit)},this.state={prevValue:e.value,value:e.value}}componentWillUnmount(){this._flush()}render(){const{value:t}=this.state;return o.createElement(e,{...this.props,value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown})}static getDerivedStateFromProps(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}}_debounce(e){e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout(()=>this._flush(),e))):this.setState(e=>{this._flush(e.value)})}_flush(e){
|
||||
const{input:{id:t,name:n},onChange:o}=this.props,{prevValue:r,value:s}=this.state;clearTimeout(this._timeout);const a=void 0!==e?e:s;void 0!==a&&a!==r&&o(a,t,n)}}}},48948:(e,t,n)=>{"use strict";n.d(t,{FloatInputComponent:()=>p,FloatInput:()=>d});var o=n(59496),r=n(97754),s=n.n(r),a=n(17571),i=n(46446),l=n(93379),c=n(6041);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(a.NumericInput,{...this.props,className:s()(c.input,e&&c.hasTooltip),stretch:!1})}}const p=(0,l.debounced)(u,{change:1/0,commit:0,blur:0}),d=(0,i.bind)(p)},26007:(e,t,n)=>{"use strict";n.d(t,{IntegerInputComponent:()=>p,IntegerInput:()=>d});var o=n(59496),r=n(97754),s=n.n(r),a=n(46446),i=n(93379),l=n(17571),c=n(6041);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(l.NumericInput,{...this.props,mode:"integer",className:s()(c.input,e&&c.hasTooltip),stretch:!1})}}const p=(0,i.debounced)(u,{change:1/0,commit:0,blur:0}),d=(0,a.bind)(p)},17571:(e,t,n)=>{"use strict";n.d(t,{NumericInput:()=>b});var o=n(59496),r=n(88537),s=n(28353),a=n(60521),i=n(49483),l=n(92399),c=n(35726),u=n(62820);var p=n(95505),d=n(64514);const h=(0,s.t)("Number format is invalid."),m=new class{constructor(e=" "){this._divider=e}format(e){const t=(0,c.splitThousands)(e,this._divider);return(0,u.isRtl)()?(0,u.startWithLTR)(t):t}parse(e){const t=(0,u.stripLTRMarks)(e).split(this._divider).join(""),n=Number(t);return isNaN(n)||/e/i.test(t)?{res:!1}:{res:!0,value:n,suggest:this.format(n)}}},f=/^-?[0-9]*$/,g=9e15;class v extends o.PureComponent{constructor(e){super(e),this._onFocus=e=>{this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this.setState({displayValue:C(this.props,this.props.value),focused:!1}),this.props.errorHandler&&this.props.errorHandler(!1),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.target.value;if(void 0!==this.props.onEmptyString&&""===t&&this.props.onEmptyString(),"integer"===this.props.mode&&!f.test(t))return;const n=y(t,this.props.formatter),o=n.res?this._checkValueBoundaries(n.value):{isPassed:!1,msg:void 0},r=n.res&&!o.isPassed,s=n.res&&n.suggest&&!this.state.focused?n.suggest:t,a=r&&o.msg?o.msg:h;this.setState({displayValue:s,errorMsg:a}),n.res&&o.isPassed&&this.props.onValueChange(n.value,"input"),this.props.errorHandler&&this.props.errorHandler(!n.res||r)},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1,uiStep:o,min:r=n,formatter:s}=this.props,i=y(this.state.displayValue,s),l=null!=o?o:n;let c=n;if(i.res){const o=new a.Big(i.value),s=o.minus(r).mod(n);let u=o.plus(e*l);!s.eq(0)&&t&&(u=u.plus((e>0?0:1)*l).minus(s)),c=u.toNumber()}const{isPassed:u,clampedValue:p}=this._checkValueBoundaries(c);c=u?c:p,this.setState({displayValue:C(this.props,c)}),this.props.onValueChange(c,"step"),this.props.errorHandler&&this.props.errorHandler(!1)};const{value:t}=e;this.state={value:t,displayValue:C(e,t),focused:!1,errorMsg:h}}render(){var e;return o.createElement(l.NumberInputView,{id:this.props.id,
|
||||
inputMode:null!==(e=this.props.inputMode)&&void 0!==e?e:i.CheckMobile.iOS()?void 0:"numeric",borderStyle:this.props.borderStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,inputClassName:this.props.inputClassName,button:this.props.button,placeholder:this.props.placeholder,innerLabel:this.props.innerLabel,endSlot:this.props.endSlot,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes,title:this.props.title,intent:this.props.intent,highlight:this.props.highlight,highlightRemoveRoundBorder:this.props.highlightRemoveRoundBorder,stretch:this.props.stretch,autoSelectOnFocus:!i.CheckMobile.any()})}getClampedValue(){const{min:e=-1/0,max:t=g}=this.props,n=y(this.state.displayValue,this.props.formatter);return n.res?(0,d.clamp)(n.value,e,t):null}static getDerivedStateFromProps(e,t){const{alwaysUpdateValueFromProps:n,value:o}=e;return t.focused&&!n||t.value===o?null:{value:o,displayValue:C(e,o)}}_checkValueBoundaries(e){var t,n,o,r;const{min:a=-1/0,max:i=g}=this.props,l=function(e,t,n){const o=e>=t,r=e<=n;return{passMin:o,passMax:r,pass:o&&r,clamped:(0,d.clamp)(e,t,n)}}(e,a,i);let c;return l.passMax||(c=null!==(n=null===(t=this.props.boundariesErrorMessages)||void 0===t?void 0:t.greaterThanMax)&&void 0!==n?n:(0,s.t)("Specified value is more than the instrument maximum of {max}.",{replace:{max:String(i)}})),l.passMin||(c=null!==(r=null===(o=this.props.boundariesErrorMessages)||void 0===o?void 0:o.lessThanMin)&&void 0!==r?r:(0,s.t)("Specified value is less than the instrument minimum of {min}.",{replace:{min:String(a)}})),{isPassed:l.pass,msg:c,clampedValue:l.clamped}}}function C(e,t){const{useFormatter:n=!0,formatter:o,mode:r}=e;return n&&"integer"!==r?function(e,t=m){return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return p.NumericFormatter.formatNoE(e)}(t)}function y(e,t=m){return t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}class b extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._handleContainerRef=e=>this._container=e,this._onChange=(e,t)=>{const{input:{id:n,name:o},onChange:r,onBlur:s}=this.props;r(e,n,o),"step"===t&&s&&s()},this._onBlur=e=>{const{onBlur:t}=this.props;if(t){const n=(0,r.ensureNotNull)(this._container);n.contains(document.activeElement)||n.contains(e.relatedTarget)||t()}}}render(){const{input:{defval:e,min:t,max:n,step:r},value:s,disabled:a,onKeyDown:i,className:l,mode:c,stretch:u}=this.props;return o.createElement(v,{className:l,value:Number(void 0===s?e:s),min:t,max:n,step:r,mode:c,onBlur:this._onBlur,
|
||||
onValueChange:this._onChange,onKeyDown:i,disabled:a,containerReference:this._handleContainerRef,fontSizeStyle:"medium",roundByStep:!1,stretch:u})}}},76110:(e,t,n)=>{"use strict";n.d(t,{getSymbolName:()=>c,SymbolInput:()=>u});var o=n(59496),r=n(88537),s=n(617),a=n(46446),i=n(72280),l=n(48897);function c(e,t){const n=(0,i.createAdapter)(t).resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}const u=(0,a.bind)((function(e){const t=(0,o.useContext)(s.PropertyContext),{study:n}=(0,r.ensureNotNull)(t),{input:{defval:a},value:i}=e;return o.createElement(l.SymbolInputsButton,{...e,value:c(i||a||"",n),study:n})}))},79946:(e,t,n)=>{"use strict";n.d(t,{ColorWithThicknessSelect:()=>g});var o=n(59496),r=n(24377),s=n(28353),a=n(24980),i=n(68906),l=n(87536),c=n(58593),u=n(463),p=n(51768);const d=new a.TranslatedString("change thickness",(0,s.t)("change thickness")),h=new a.TranslatedString("change color",(0,s.t)("change color")),m=new a.TranslatedString("change opacity",(0,s.t)("change opacity")),f=[1,2,3,4];class g extends o.PureComponent{constructor(){super(...arguments),this._trackEventLabel=null,this._getTransparencyValue=()=>{const{transparency:e}=this.props;return e?e.value():0},this._getOpacityValue=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);if(t)return(0,i.isHexColor)(t)?(0,i.transparencyToAlpha)(this._getTransparencyValue()):(0,r.parseRgba)(t)[3]},this._getColorValueInHex=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);return t?(0,i.isHexColor)(t)?t:(0,r.rgbToHexString)((0,r.parseRgb)(t)):null},this._onThicknessChange=e=>{const{thickness:t}=this.props;void 0!==t&&this._setProperty(t,e,d)},this._onColorChange=e=>{const{color:t,isPaletteColor:n}=this.props,o=(0,u.getPropertyValue)(t);let s=0;o&&(s=(0,i.isHexColor)(o)?this._getTransparencyValue():(0,i.alphaToTransparency)((0,r.parseRgba)(o)[3])),this._setProperty(t,(0,i.generateColor)(String(e),s,!0),h),this._trackEventLabel="Plot color > "+(n?"Palette":"Single")},this._onOpacityChange=e=>{const{color:t}=this.props,n=(0,u.getPropertyValue)(t);this._setProperty(t,(0,i.generateColor)(n,(0,i.alphaToTransparency)(e),!0),m)},this._onPopupClose=()=>{this._trackEventLabel&&((0,p.trackEvent)("GUI","Study settings",this._trackEventLabel),this._trackEventLabel=null)}}componentWillUnmount(){this._onPopupClose()}render(){const{selectOpacity:e=!0,disabled:t,className:n}=this.props;return o.createElement(c.ColorSelect,{className:n,disabled:t,color:this._getColorValueInHex(),selectOpacity:e,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),thicknessItems:f,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onPopupClose:this._onPopupClose})}_getThicknessValue(){const{thickness:e}=this.props;return e?(0,u.getPropertyValue)(e):void 0}_setProperty(e,t,n){const{setValue:o}=this.context;(0,u.setPropertyValue)(e,e=>o(e,t,n))}}g.contextType=l.StylePropertyContext},35868:(e,t,n)=>{"use strict";n.d(t,{PropertyTable:()=>l})
|
||||
;var o=n(59496),r=n(97754),s=n(90186),a=n(46828);const i=o.createContext(!1);class l extends o.PureComponent{render(){return o.createElement("div",{ref:this.props.reference,className:r(a.content,this.props.className)},this.props.children)}}l.InlineRowContext=i,l.Row=function(e){const{children:t}=e;return(0,o.useContext)(i)?o.createElement("span",{className:a.inlineRow},t):o.createElement(o.Fragment,null,t)},l.Cell=function(e){const t=(0,o.useContext)(i),n=r(a.cell,e.offset&&a.offset,e.grouped&&a.grouped,t&&a.inlineCell,"top"===e.verticalAlign&&a.top,"topCenter"===e.verticalAlign&&a.topCenter,"adaptive"===e.verticalAlign&&a.adaptive,e.checkableTitle&&a.checkableTitle,2===e.colSpan&&a.fill,"first"===e.placement&&2!==e.colSpan&&a.first,"last"===e.placement&&2!==e.colSpan&&a.last),l=(0,s.filterDataProps)(e);return o.createElement("div",{...l,className:n},o.createElement("div",{className:r(a.inner,e.className)},e.children))},l.Separator=function(e){return o.createElement(l.Row,null,o.createElement("div",{className:r(a.cell,a.separator,a.fill)}))},l.GroupSeparator=function(e){const t=e.size||0;return o.createElement(l.Row,null,o.createElement("div",{className:r(a.cell,a.groupSeparator,a.fill,1===t&&a.big)}))}},463:(e,t,n)=>{"use strict";function o(e){return Array.isArray(e)?e[0].value():e.value()}function r(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}n.d(t,{getPropertyValue:()=>o,setPropertyValue:()=>r})},50182:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>d});var o=n(59496),r=n(97754),s=n.n(r),a=n(97737),i=n(88537),l=n(28353),c=n(68335),u=n(85457),p=n(91131);class d extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:o}=this.props;switch(e){case"submit":t();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;13===(0,c.hashFromEvent)(e)&&o&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:r,footerLeftRenderer:s,submitButtonText:a,submitButtonDisabled:i,defaultActionOnClose:l,submitOnEnterKey:c,...p}=this.props;return o.createElement(u.AdaptivePopupDialog,{...p,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,i.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:n,additionalButtons:r,submitButtonText:i,submitButtonDisabled:c,onSubmit:u,cancelButtonText:d,showCancelButton:h=!0,submitButtonClassName:m,cancelButtonClassName:f,buttonsWrapperClassName:g}=this.props;return o.createElement(o.Fragment,null,t(e),o.createElement("div",{className:p.footer},n&&n(e.isSmallWidth),o.createElement("div",{className:s()(p.buttons,g)},r,h&&o.createElement(a.Button,{className:f,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=d?d:(0,l.t)("Cancel")),o.createElement("span",{
|
||||
className:p.submitButton},o.createElement(a.Button,{className:m,disabled:c,name:"submit",onClick:u,"data-name":"submit-button"},null!=i?i:(0,l.t)("Ok"))))))}}}d.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},58593:(e,t,n)=>{"use strict";n.d(t,{ColorSelect:()=>w});var o=n(59496),r=n(97754),s=n.n(r),a=n(88537),i=n(68335),l=n(50628),c=n(29202),u=n(27797),p=n(64706);function d(e){const{button:t,children:n,className:r,onPopupClose:s,...d}=e,[h,m]=(0,o.useState)(!1),[f,g]=(0,o.useState)(!1),[v,C]=(0,c.useFocus)(),y=(0,o.useRef)(null);return o.createElement("div",{className:r},o.createElement("div",{tabIndex:e.disabled?void 0:-1,ref:y,onClick:b,onFocus:C.onFocus,onBlur:C.onBlur,onKeyDown:E},"function"==typeof t?t(f,v):t),o.createElement(l.PopupMenu,{isOpened:f,onClose:S,position:function(){const e=(0,a.ensureNotNull)(y.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},doNotCloseOn:y.current,onKeyDown:E},o.createElement(p.MenuContext.Consumer,null,e=>o.createElement(u.ColorPicker,{...d,onToggleCustom:m,menu:e})),!h&&n));function b(){e.disabled||(g(e=>!e),m(!1))}function E(e){switch((0,i.hashFromEvent)(e)){case 27:f&&(e.preventDefault(),S())}}function S(){b(),(0,a.ensureNotNull)(y.current).focus(),s&&s()}}var h=n(56512),m=n(68906),f=n(6914),g=n(28353),v=n(54349),C=n(74588);const y=(0,v.makeSwitchGroupItem)(class extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const{name:e,checked:t,value:n}=this.props,s=r(C.thicknessItem,{[C.checked]:t}),a=r(C.bar,{[C.checked]:t}),i={borderTopWidth:parseInt(n)};return o.createElement("div",{className:s},o.createElement("input",{type:"radio",className:C.radio,name:e,value:n,onChange:this._onChange,checked:t}),o.createElement("div",{className:a,style:i}," "))}});function b(e){const{name:t,values:n,selectedValues:r,onChange:s}=e,a=n.map((e,t)=>o.createElement(y,{key:t,value:e.toString()})),i=r.map(e=>e.toString());return o.createElement("div",{className:C.wrap},o.createElement(v.SwitchGroup,{name:t,onChange:e=>{s(parseInt(e))},values:i},a))}var E=n(83421);const S=(0,g.t)("Thickness");function N(e){const{value:t,items:n,onChange:r}=e;return o.createElement("div",{className:E.thicknessContainer},o.createElement("div",{className:E.thicknessTitle},S),o.createElement(b,{name:"color_picker_thickness_select",onChange:r,values:n,selectedValues:"mixed"===t?[]:[t]}))}var _=n(14348);function w(e){const{className:t,selectOpacity:n=void 0!==e.opacity,thickness:r,color:a,disabled:i,opacity:l=1,onColorChange:c,onOpacityChange:u,onThicknessChange:p,thicknessItems:m,onPopupClose:f}=e,[g,v,C]=(0,h.useCustomColors)();return o.createElement(d,{className:t,disabled:i,color:"mixed"!==a?a:null,selectOpacity:n,opacity:l,selectCustom:!0,customColors:g,onColorChange:c,onOpacityChange:a?u:void 0,onAddColor:v,onRemoveCustomColor:C,button:function(e,t){const n=e||t,c=n?"primary":"default";return o.createElement("div",{
|
||||
className:s()(_.colorPickerWrap,_["intent-"+c],_["border-thin"],_["size-medium"],n&&_.highlight,n&&_.focused,i&&_.disabled),"data-role":"button","data-name":r?"color-with-thickness-select":"color-select"},o.createElement("div",{className:s()(_.colorPicker,i&&_.disabled)},a&&"mixed"!==a?function(){const e=x(a,l),t=l>=.95&&T(a);return o.createElement("div",{className:_.opacitySwatch},o.createElement("div",{style:{backgroundColor:e},className:s()(_.swatch,t&&_.white)}))}():o.createElement("div",{className:_.placeholderContainer},o.createElement("div",{className:"mixed"===a?_.mixedColor:_.placeholder})),r&&function(){const e=a&&"mixed"!==a?x(a,l):void 0;if("mixed"===r)return o.createElement("div",{className:_.multiWidth},o.createElement("div",{style:{backgroundColor:e},className:_.line}),o.createElement("div",{style:{backgroundColor:e},className:_.line}),o.createElement("div",{style:{backgroundColor:e},className:_.line}));return o.createElement("span",{className:s()(_.colorLine,T(a)&&_.white),style:{height:r,backgroundColor:e}})}()),n&&o.createElement("span",{className:_.shadow}))},onPopupClose:f},r&&m&&o.createElement(N,{value:r,items:m,onChange:function(e){p&&p(e)}}))}function x(e,t){return e?(0,m.generateColor)(e,(0,m.alphaToTransparency)(t)):"#000000"}function T(e){return!!e&&e.toLowerCase()===f.white}},48897:(e,t,n)=>{"use strict";n.d(t,{SymbolInputsButton:()=>w});var o=n(59496),r=n(97754),s=n.n(r),a=n(28353),i=n(88537),l=n(50655),c=n(95711),u=n(67337),p=n(76110),d=n(89453),h=n(1861),m=n(9745),f=n(36826),g=n(55914);function v(e){const{value:t,onClick:n,className:s,startSlot:a,disabled:i=!1}=e;return o.createElement("div",{className:r(g.wrap,i&&g.disabled,s),onClick:n,"data-name":"edit-button"},o.createElement("div",{className:r(g.text,"apply-overflow-tooltip")},void 0!==a&&a,o.createElement("span",null,t)),o.createElement(m.Icon,{icon:f,className:g.icon}))}var C=n(31356),y=n(78260),b=n(7785),E=n(15983),S=n(82708),N=n(83998);function _(e){const{symbol:t,onSymbolChanged:n,disabled:r,className:i}=e,[p,m]=(0,o.useState)(t),f=(0,o.useContext)(l.SlotContext),g=(0,o.useContext)(c.PopupContext);return o.createElement(v,{value:p,onClick:function(){const e=function(e){const t=(0,b.tokenize)(e);return(0,E.isSpread)(t)}(p)?p:(0,S.safeShortName)(p),t=(0,d.getSymbolSearchCompleteOverrideFunction)();(0,h.showSymbolSearchItemsDialog)({onSearchComplete:e=>{t(e[0].symbol).then(e=>{n(e),m(e)})},dialogTitle:(0,a.t)("Change symbol"),defaultValue:e,manager:f,onClose:()=>{g&&g.focus()},showSpreadActions:u.enabled("show_spread_operators")&&u.enabled("studies_symbol_search_spread_operators")})},disabled:r,className:s()(i,u.enabled("uppercase_instrument_names")&&N.uppercase)})}function w(e){if("definition"in e){const{propType:t,properties:n,id:r,title:s=""}=e.definition,a=n[t],l=a.value()||"",c=e=>{a.setValue(e)};return o.createElement(C.CommonSection,{id:r,title:s},o.createElement(y.CellWrap,null,o.createElement(_,{symbol:(0,i.ensureDefined)(l),onSymbolChanged:c})))}{
|
||||
const{study:t,value:n,input:{id:r,name:a},onChange:l,disabled:c,hasTooltip:u}=e,d=e=>{const n=(0,p.getSymbolName)(e,t);l(n,r,a)};return o.createElement(_,{symbol:(0,i.ensureDefined)(n),onSymbolChanged:d,disabled:c,className:s()(u&&N.hasTooltip)})}}},72280:(e,t,n)=>{"use strict";n.d(t,{createAdapter:()=>s});var o=n(14291),r=n(81851);function s(e){if((0,o.isLineTool)(e))return{isPine:()=>!1,isStandardPine:()=>!1,canOverrideMinTick:()=>!1,resolvedSymbolInfoBySymbol:()=>{throw new TypeError("Only study is supported.")},symbolsResolved:()=>{throw new TypeError("Only study is supported.")},parentSource:()=>{throw new TypeError("Only study is supported.")},getAllChildren:()=>[],sourceId:()=>{throw new TypeError("Only study is supported.")}};if((0,r.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},45560:(e,t,n)=>{"use strict";n.d(t,{useDefinitionProperty:()=>s});var o=n(59496),r=n(71953);const s=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[s,a]=(0,o.useState)(t?t.value():n);(0,o.useEffect)(()=>{if(t){const n={};return a(t.value()),t.subscribe(n,t=>{const n=t.value();e.handler&&e.handler(n),a(n)}),()=>t.unsubscribeAll(n)}return()=>{}},[t]);return[s,e=>{if(void 0!==t){const n=t.value();r.logger.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},78260:(e,t,n)=>{"use strict";n.d(t,{CellWrap:()=>i});var o=n(59496),r=n(97754),s=n.n(r),a=n(26527);function i(e){return o.createElement("div",{className:s()(a.wrap,e.className)},e.children)}},53424:(e,t,n)=>{"use strict";n.d(t,{CheckableTitle:()=>c});var o=n(59496),r=n(15294),s=n(45560);function a(e){const{property:t,...n}=e,[a,i]=(0,s.useDefinitionProperty)({property:t}),l="mixed"===a;return o.createElement(r.Checkbox,{...n,name:"toggle-enabled",checked:l||a,indeterminate:l,onChange:function(){i("mixed"===a||!a)}})}var i=n(78260),l=n(27345);function c(e){const{property:t,disabled:n,title:r,className:s,name:c}=e,u=o.createElement("span",{className:l.title},r);return o.createElement(i.CellWrap,{className:s},t?o.createElement(a,{name:c,className:l.checkbox,property:t,disabled:n,label:u,labelAlignBaseline:!0}):u)}},31356:(e,t,n)=>{"use strict";n.d(t,{CommonSection:()=>a});var o=n(59496),r=n(35868),s=n(53424);function a(e){const{id:t,offset:n,disabled:a,checked:i,title:l,children:c}=e;return o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(c)?void 0:2,checkableTitle:!0},o.createElement(s.CheckableTitle,{name:"is-enabled-"+t,title:l,disabled:a,property:i})),Boolean(c)&&o.createElement(r.PropertyTable.Cell,{placement:"last","data-section-name":t},c))}},86067:(e,t,n)=>{"use strict";n.d(t,{GroupTitleSection:()=>i});var o=n(59496),r=n(35868),s=n(53424),a=n(51842);function i(e){return o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{className:a.titleWrap,placement:"first",verticalAlign:"adaptive",colSpan:2,
|
||||
"data-section-name":e.name,checkableTitle:!0},o.createElement(s.CheckableTitle,{title:e.title,name:"is-enabled-"+e.name,className:a.title})))}},71953:(e,t,n)=>{"use strict";n.d(t,{logger:()=>o});const o=(0,n(98125).getLogger)("Platform.GUI.PropertyDefinitionTrace")},27365:(e,t,n)=>{"use strict";n.d(t,{getTimezoneName:()=>o});n(10480);function o(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}},27797:(e,t,n)=>{"use strict";n.d(t,{ColorPicker:()=>B});var o=n(59496),r=n(97754),s=n.n(r),a=n(28353),i=n(24377),l=n(88537),c=n(49483),u=n(50628),p=n(16396);const d=o.createContext(void 0);var h=n(6914),m=n(78679),f=n(24590);function g(e){const{index:t,color:n,selected:s,onSelect:i}=e,[g,v]=(0,o.useState)(!1),C=(0,o.useContext)(d),y=(0,o.useRef)(null),b=Boolean(C)&&!c.CheckMobile.any();return o.createElement(o.Fragment,null,o.createElement("div",{ref:y,style:n?{color:n}:void 0,className:r(f.swatch,g&&f.hover,s&&f.selected,!n&&f.empty,String(n).toLowerCase()===h.white&&f.white),onClick:function(){i(n)},onContextMenu:b?E:void 0}),b&&o.createElement(u.PopupMenu,{isOpened:g,onClose:E,position:function(){const e=(0,l.ensureNotNull)(y.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+4}},onClickOutside:E},o.createElement(p.PopupMenuItem,{className:f.contextItem,label:(0,a.t)("Remove color"),icon:m,onClick:function(){E(),(0,l.ensureDefined)(C)(t)},dontClosePopup:!0})));function E(){v(!g)}}class v extends o.PureComponent{constructor(){super(...arguments),this._onSelect=e=>{const{onSelect:t}=this.props;t&&t(e)}}render(){const{colors:e,color:t,children:n}=this.props;if(!e)return null;const r=t?(0,i.parseRgb)(String(t)):void 0;return o.createElement("div",{className:f.swatches},e.map((e,t)=>o.createElement(g,{key:String(e)+t,index:t,color:e,selected:r&&(0,i.areEqualRgb)(r,(0,i.parseRgb)(String(e))),onSelect:this._onSelect})),n)}}var C=n(54368),y=n(97737);function b(e){const t="Invalid RGB color: "+e;if(null===e)throw new Error(t);const n=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===n)throw new Error(t);const[,o,r,s]=n;if(!o||!r||!s)throw new Error(t);const a=parseInt(o,16)/255,i=parseInt(r,16)/255,l=parseInt(s,16)/255,c=Math.max(a,i,l),u=Math.min(a,i,l);let p;const d=c,h=c-u,m=0===c?0:h/c;if(c===u)p=0;else{switch(c){case a:p=(i-l)/h+(i<l?6:0);break;case i:p=(l-a)/h+2;break;case l:p=(a-i)/h+4;break;default:p=0}p/=6}return{h:p,s:m,v:d}}var E=n(43370),S=n(88440);class N extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{h:t},onChange:n}=this.props;if(!n)return;const o=(0,l.ensureNotNull)(this._container).getBoundingClientRect(),r=e.clientX-o.left,s=e.clientY-o.top;let a=r/o.width;a<0?a=0:a>1&&(a=1);let i=1-s/o.height;i<0?i=0:i>1&&(i=1),n({h:t,s:a,v:i})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{
|
||||
window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t,s:n,v:r}}=this.props,a=`hsl(${360*t}, 100%, 50%)`;return o.createElement("div",{className:s()(S.saturation,e),style:{backgroundColor:a},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:S.pointer,style:{left:100*n+"%",top:100*(1-r)+"%"}}))}}var _=n(24429);class w extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{s:t,v:n},onChange:o}=this.props;if(!o)return;const r=(0,l.ensureNotNull)(this._container).getBoundingClientRect();let s=(e.clientY-r.top)/r.height;s<0?s=0:s>1&&(s=1),o({h:s,s:t,v:n})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t}}=this.props;return o.createElement("div",{className:s()(_.hue,e)},o.createElement("div",{className:_.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:_.pointer,style:{top:100*t+"%"}})))}}var x=n(99565);const T=(0,a.t)("Add",{context:"Color Picker"});class k extends o.PureComponent{constructor(e){super(e),this._handleHSV=e=>{const t=function(e){const{h:t,s:n,v:o}=e;let r,s,a;const i=Math.floor(6*t),l=6*t-i,c=o*(1-n),u=o*(1-l*n),p=o*(1-(1-l)*n);switch(i%6){case 0:r=o,s=p,a=c;break;case 1:r=u,s=o,a=c;break;case 2:r=c,s=o,a=p;break;case 3:r=c,s=u,a=o;break;case 4:r=p,s=c,a=o;break;case 5:r=o,s=c,a=u;break;default:r=0,s=0,a=0}return"#"+[255*r,255*s,255*a].map(e=>("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")).join("")}(e)||"#000000";this.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e}),this.props.onSelect(t)},this._handleInput=e=>{const t=e.currentTarget.value;try{const e=b(t),n="#"+t;this.setState({color:n,inputColor:t,hsv:e}),this.props.onSelect(n)}catch(e){this.setState({inputColor:t})}},this._handleAddColor=()=>this.props.onAdd(this.state.color);const t=e.color||"#000000";this.state={color:t,inputColor:t.replace(/^#/,""),hsv:b(t)}}render(){const{color:e,hsv:t,inputColor:n}=this.state;return o.createElement("div",{className:x.container},o.createElement("div",{className:x.form},o.createElement("div",{className:x.swatch,style:{backgroundColor:e}}),o.createElement("div",{className:x.inputWrap},o.createElement("span",{className:x.inputHash},"#"),o.createElement("input",{
|
||||
type:"text",className:x.input,value:n,onChange:this._handleInput})),o.createElement("div",{className:x.buttonWrap},o.createElement(y.Button,{size:"s",onClick:this._handleAddColor},T))),o.createElement("div",{className:x.hueSaturationWrap},o.createElement(N,{className:x.saturation,hsv:t,onChange:this._handleHSV}),o.createElement(w,{className:x.hue,hsv:t,onChange:this._handleHSV})))}}var P=n(10667);const I=(0,a.t)("Add custom color",{context:"Color Picker"}),R=(0,a.t)("Opacity",{context:"Color Picker"});class B extends o.PureComponent{constructor(e){super(e),this._handleAddColor=e=>{this.setState({isCustom:!1}),this._onToggleCustom(!1);const{onAddColor:t}=this.props;t&&t(e)},this._handleSelectColor=e=>{const{onColorChange:t}=this.props,{isCustom:n}=this.state;t&&t(e,n)},this._handleCustomClick=()=>{this.setState({isCustom:!0}),this._onToggleCustom(!0)},this._handleOpacity=e=>{const{onOpacityChange:t}=this.props;t&&t(e)},this.state={isCustom:!1}}componentDidUpdate(e,t){e.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()}render(){const{color:e,opacity:t,selectCustom:n,selectOpacity:r,customColors:a,onRemoveCustomColor:i}=this.props,{isCustom:l}=this.state,c="number"==typeof t?t:1;return l?o.createElement(k,{color:e,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):o.createElement("div",{className:P.container},o.createElement(v,{colors:h.basic,color:e,onSelect:this._handleSelectColor}),o.createElement(v,{colors:h.extended,color:e,onSelect:this._handleSelectColor}),o.createElement("div",{className:P.separator}),o.createElement(d.Provider,{value:i},o.createElement(v,{colors:a,color:e,onSelect:this._handleSelectColor},n&&o.createElement("div",{className:s()(P.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:I}))),r&&o.createElement(o.Fragment,null,o.createElement("div",{className:P.sectionTitle},R),o.createElement(C.Opacity,{color:e,opacity:c,onChange:this._handleOpacity})))}_onToggleCustom(e){const{onToggleCustom:t}=this.props;t&&t(e)}}},54368:(e,t,n)=>{"use strict";n.d(t,{Opacity:()=>l});var o=n(59496),r=n(97754),s=n(88537),a=n(64514),i=n(15381);class l extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._raf=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const t=(0,s.ensureNotNull)(this._container),n=(0,s.ensureNotNull)(this._pointer),o=t.getBoundingClientRect(),r=n.offsetWidth,i=e.clientX-r/2-o.left,l=(0,a.clamp)(i/(o.width-r),0,1);this.setState({inputOpacity:Math.round(100*l).toString()}),this.props.onChange(l),this._raf=null}))},this._onSliderClick=e=>{this._handlePosition(e.nativeEvent),this._dragSubscribe()},this._mouseUp=e=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(e)},this._mouseMove=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{
|
||||
this.setState({isPointerDragged:!0}),this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=e=>{const t=e.currentTarget.value,n=Number(t)/100;this.setState({inputOpacity:t}),Number.isNaN(n)||n>1||this.props.onChange(n)},this.state={inputOpacity:Math.round(100*e.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:e,opacity:t,hideInput:n}=this.props,{inputOpacity:s,isPointerDragged:a}=this.state,l={color:e||void 0};return o.createElement("div",{className:i.opacity},o.createElement("div",{className:i.opacitySlider,style:l,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:i.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${e})`}}),o.createElement("div",{className:i.opacityPointerWrap},o.createElement("div",{className:r(i.pointer,a&&i.dragged),style:{left:100*t+"%"},ref:this._refPointer}))),!n&&o.createElement("div",{className:i.opacityInputWrap},o.createElement("input",{type:"text",className:i.opacityInput,value:s,onChange:this._handleInput}),o.createElement("span",{className:i.opacityInputPercent},"%")))}_dragSubscribe(){const e=(0,s.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,s.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}}},6914:(e,t,n)=>{"use strict";n.d(t,{white:()=>r,basic:()=>i,extended:()=>c});var o=n(45112);const r=o.colorsPalette["color-white"],s=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],a=[200,300,400,500,600,700,800,900].map(e=>"color-cold-gray-"+e);a.unshift("color-white"),a.push("color-black"),s.forEach(e=>{a.push(`color-${e}-500`)});const i=a.map(e=>o.colorsPalette[e]),l=[];[100,200,300,400,700,900].forEach(e=>{s.forEach(t=>{l.push(`color-${t}-${e}`)})});const c=l.map(e=>o.colorsPalette[e])},56512:(e,t,n)=>{"use strict";n.d(t,{useCustomColors:()=>l});var o=n(59496),r=n(56840),s=n(76422);function a(e,t){(0,o.useEffect)(()=>(s.subscribe(e,t,null),()=>{s.unsubscribe(e,t,null)}),[e,t])}var i=n(24377);function l(){const[e,t]=(0,o.useState)((0,r.getJSON)("pickerCustomColors",[]));a("add_new_custom_color",n=>t(c(n,e))),a("remove_custom_color",n=>t(u(n,e)));const n=(0,o.useCallback)(t=>{const n=t?(0,i.parseRgb)(t):null;e.some(e=>null!==e&&null!==n&&(0,i.areEqualRgb)((0,i.parseRgb)(e),n))||(s.emit("add_new_custom_color",t),(0,r.setJSON)("pickerCustomColors",c(t,e)))},[e]),l=(0,o.useCallback)(t=>{(t>=0||t<e.length)&&(s.emit("remove_custom_color",t),(0,r.setJSON)("pickerCustomColors",u(t,e)))},[e]);return[e,n,l]}function c(e,t){
|
||||
const n=t.slice();return n.push(e),n.length>29&&n.shift(),n}function u(e,t){return t.filter((t,n)=>e!==n)}},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>O});var o=n(49483),r=n(59496),s=n(97754),a=n.n(s),i=n(88537),l=n(47201),c=n(78274),u=n(31261),p=n(9745),d=n(24451),h=n(35692);function m(e){return r.createElement(p.Icon,{className:d.icon,icon:h})}var f=n(29202),g=n(88722);var v=n(58095),C=n(64514);const y={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function b(e,t,n){const o=[],r=n;let s=0,a=0;const i=e.length,l=r.length;let c=-1,u=0;const p=[],d=i-1,h=[];let m;for(;s<i&&a<l;){const n=e.charAt(s),i=r.charAt(a),l=y[n];l?(i.match(l.pattern)?(o.push(i),l.recursive&&(-1===c?c=s:s===d&&s!==c&&(s=c-1),d===c&&(s-=1)),s+=1):i===m?(u--,m=void 0):l.optional?(s+=1,a-=1):l.fallback?(o.push(l.fallback),s+=1,a-=1):h.push({p:a,v:i,e:l.pattern}),a+=1):(t||o.push(n),i===n?(p.push(a),a+=1):(m=n,p.push(a+u),u++),s+=1)}const f=e.charAt(d);i!==l+1||y[f]||o.push(f);const g=o.join("");return[g,function(e,t){const n={};for(let e=0;e<t.length;e++)n[t[e]+0]=1;return n}(0,p),h]}function E(e,t,n){const o=function(e){let t=!0;for(let n=0;n<e.length;n++){const o=y[e.charAt(n)];if(o&&o.recursive){t=!1;break}}return t?e.length:void 0}(e),[s,a]=b(e,!1,t),[l,c]=(0,r.useState)(s),[u,p]=(0,r.useState)(0),[d,h]=(0,r.useState)(!1),m=(0,r.useRef)(a),f=(0,r.useRef)(l);return(0,r.useEffect)(()=>{const[n,o]=b(e,!1,t);c(n),g(o)},[t,e]),(0,r.useLayoutEffect)(()=>{const e=(0,i.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),h(!1)),p(S(e))},[d]),[t,f,{onChange:function(){const t=(0,i.ensureNotNull)(n.current),o=t.value,[r,s]=b(e,!1,o);c(r),f.current=r;const a=g(s),d=function(e,t,n,o,r,s){if(e!==t){const a=t.length,i=e.length;let l=0,c=0,u=0,p=0,d=0;for(d=o;d<a&&r[d];d++)c++;for(d=o-1;d>=0&&r[d];d--)l++;for(d=o-1;d>=0;d--)r[d]&&u++;for(d=n-1;d>=0;d--)s[d]&&p++;if(o>i)o=10*a;else if(n>=o&&n!==i){if(s[o]){const e=o;o-=p-u,r[o-=l]&&(o=e)}}else o>n&&(o+=u-p,o+=c)}return o}(l,r,u,S(t),s,a);p(d),h(!0)},onSelect:function(){const e=(0,i.ensureNotNull)(n.current);p(S(e))},maxLength:o}];function g(e){const t=m.current;return m.current=e,t}}function S(e){return e.selectionStart||0}function N(e){const{value:t,mask:n,onChange:o,...s}=e,a=(0,r.useRef)(null),[i,l,c]=E(n,t,a);return(0,r.useLayoutEffect)(()=>{void 0!==e.reference&&(e.reference.current=a.current)},[e.reference]),r.createElement(u.InputControl,{...s,maxLength:c.maxLength,value:i,autoComplete:"off",reference:function(e){a.current=e},onChange:function(){c.onChange(),o(l.current)},onSelect:c.onSelect})}var _=n(68335),w=n(50628),x=n(16396),T=n(55257);const k=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[o,r]=[M(t.toString()),M(n.toString())],s=`${o}:${r}`,a=R(s)?s:B(s);e.push(a)}return e})();function P(e){let t=!1;const n=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)(null),[u,p]=(0,f.useFocus)(),[d,h]=(0,r.useState)(e.value),g=I(d),y=R(g)?g:B(g),[b,E]=(0,
|
||||
r.useState)(y),S=u||F().some(e=>null!==e&&e.contains(document.activeElement));(0,r.useLayoutEffect)(()=>h(e.value),[e.value]),(0,r.useLayoutEffect)(()=>E(y),[d,S]),(0,r.useEffect)(()=>W(b===y?"auto":"smooth"),[b]);const P=(0,T.lowerbound)(k,y,(e,t)=>e<t);let M=k;k[P]!==y&&(M=[...k],M.splice(P,0,y));const D=(0,v.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:function(e){null!==o.current&&S&&e.target instanceof Node&&null!==s.current&&!s.current.contains(e.target)&&o.current.blur()}});return r.createElement("div",{className:a()(e.className),onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,_.hashFromEvent)(e.nativeEvent);if(38===t){e.preventDefault();const t=(M.indexOf(b)+M.length-1)%M.length;E(M[t])}if(40===t){e.preventDefault();const t=(M.indexOf(b)+M.length+1)%M.length;E(M[t])}},onFocus:function(e){z(e)||p.onFocus(e)},onBlur:function(e){z(e)||p.onBlur(e)},ref:D},r.createElement(N,{disabled:e.disabled,name:e.name,endSlot:r.createElement(c.EndSlot,{icon:!0},r.createElement(m,null)),reference:o,containerReference:n,mask:"09:00",value:d,onFocus:function(e){setTimeout(G,0)},onBlur:function(e){z(e)||O(d)},onChange:function(t){h(t),e.onInput&&e.onInput(t)},onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,_.hashFromEvent)(e.nativeEvent);13===t&&(e.preventDefault(),O(b),(0,i.ensureNotNull)(o.current).blur());27===t&&(e.preventDefault(),(0,i.ensureNotNull)(o.current).blur())}}),r.createElement(w.PopupMenu,{onOpen:function(){W()},onClose:function(){},position:function(){const e=(0,i.ensureNotNull)(n.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,o=e.top;let r=231,s=e.bottom;if(r>o&&r>t){const n=(0,C.clamp)(r,0,o),a=(0,C.clamp)(r,0,t);r=Math.max(n,a),s=n>a?e.top-n:e.bottom}else r>t&&(s=e.top-r);return{x:e.left,y:s,overrideWidth:e.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:s},M.map(e=>r.createElement(x.PopupMenuItem,{key:e,label:e,isActive:e===y,isHovered:e===b,reference:e===b?V:void 0,onClick:A,onClickArg:e}))));function O(n){const o=I(n),r=R(o)?o:B(o);h(r),t||(t=!0,e.onChange(r))}function V(e){l.current=e}function A(e){O((0,i.ensureDefined)(e)),(0,i.ensureNotNull)(s.current).blur()}function z(e){return u&&(null!==L(document.activeElement)||null!==L(e.relatedTarget))}function L(e){return e instanceof Node&&F().find(t=>null!==t&&t.contains(e))||null}function F(){return[s.current,o.current]}function W(e="auto"){if(null!==l.current){const t=(0,i.ensureNotNull)(s.current).getBoundingClientRect(),n=l.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&l.current.scrollIntoView({behavior:e})}}function G(){const e=o.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}function I(e){const[t="",n=""]=e.split(":"),[o,r]=[M(t),D(n)];return`${o}:${r}`}function R(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function B(e){const[t,n]=e.split(":"),[o,r]=[(0,C.clamp)(parseInt(t),0,23),(0,C.clamp)(parseInt(n),0,59)],[s,a]=[M(o.toString()),D(r.toString())];return`${s}:${a}`}function M(e){
|
||||
return e.slice(0,2).padStart(2,"0")}function D(e){return e.slice(0,2).padEnd(2,"0")}const O=o.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:o,className:s,...p}=e,d=(0,r.useRef)(null),[h,v]=(0,f.useFocus)(),C=(0,l.createSafeMulticastEventHandler)(v.onBlur,(function(){d.current&&o&&(d.current.defaultValue=o)}));return(0,r.useLayoutEffect)(()=>{d.current&&o&&(d.current.defaultValue=o)},[]),(0,r.useLayoutEffect)(()=>{d.current&&o&&(d.current.value=o)},[o]),r.createElement("div",{className:a()(g.wrap,s)},r.createElement(u.InputControl,{...p,type:"text",endSlot:r.createElement(c.EndSlot,{icon:!0},r.createElement(m,null)),value:o,highlight:h,intent:h?"primary":void 0,onFocus:function(e){(0,i.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),r.createElement("input",{...v,disabled:e.disabled,className:g.input,type:"time",onBlur:C,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:P},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>i});var o=n(59496),r=n(59142),s=n(88537),a=n(49483);function i(e){const{reference:t,children:n,...s}=e,i=(0,o.useRef)(null),c=(0,o.useCallback)(e=>{t&&(t.current=e),a.CheckMobile.iOS()&&(null!==i.current&&(0,r.enableBodyScroll)(i.current),i.current=e,null!==i.current&&(0,r.disableBodyScroll)(i.current,{allowTouchMove:l(i)}))},[t]);return o.createElement("div",{ref:c,...s},n)}function l(e){return t=>{const n=(0,s.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},36826:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M13.5 7l1.65-1.65a.5.5 0 0 0 0-.7l-1.8-1.8a.5.5 0 0 0-.7 0L11 4.5M13.5 7L11 4.5M13.5 7l-8.35 8.35a.5.5 0 0 1-.36.15H2.5v-2.3a.5.5 0 0 1 .15-.35L11 4.5"/></svg>'},60495:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 8.5h1.5V14"/><circle fill="currentColor" cx="9" cy="5" r="1"/><path stroke="currentColor" d="M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0z"/></svg>'},35692:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17"><path fill="currentColor" d="M1 8.5a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0zM8.5 0a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM9 9V3H8v5H5v1h4z"/></svg>'}}]);
|
||||
|
Before Width: | Height: | Size: 147 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M81.77 86c25.58-18.68 37.37-46.06 26.34-61.17-11.03-15.1-40.71-12.2-66.29 6.5C16.25 50 4.46 77.38 15.5 92.48c4.56 6.26 12.32 9.42 21.67 9.66-2.51 3.91-3.24 7.76-1.58 10.58 3.23 5.48 14.26 4.97 24.64-1.15 9.88-5.82 15.62-14.63 13.34-20.18a96.95 96.95 0 0 0 8.21-5.4z" fill="#2A2E39"/><circle cx="61.9" cy="20.76" r="20.01" fill="#1848CC"/><path d="M67.22 12.72C58.06 2.66 43.9 18.27 55.88 26.68c2.36-6.9 5.46-10.44 11.34-13.96z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><ellipse cx="77.82" cy="32.9" rx="22.73" ry="22.73" transform="rotate(-6.73 77.82 32.9)" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><ellipse cx="77.82" cy="32.9" rx="16.2" ry="16.2" transform="rotate(12.64 77.82 32.9)" fill="#1E222D"/><path d="M76.84 21.26l1.72 14.52-12.59 1.48" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M84.43 11.06c7.1-11.6 23.94 1.07 13.77 11.58-3.62-6.34-7.34-9.23-13.77-11.58z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M94.55 49.45l6.38 6.62M65.35 52.38l-4.93 8.47" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/><path d="M23.75 68.38c-7.91-11.06-23.8 2.78-12.9 12.53 3.16-6.58 6.65-9.73 12.9-12.53z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><ellipse cx="31.92" cy="89.66" rx="22.73" ry="22.73" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M33 74.5v16.24H18.93" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M41.04 68.75c8.41-10.69 23.65 3.87 12.31 13.11-2.85-6.72-6.2-10.02-12.31-13.11z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M46.58 108.06l5.56 7.32M17.24 107.54l-5.88 7.84" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/><path d="M84.75 68.37c-7.92-11.05-23.8 2.79-12.9 12.54 3.15-6.58 6.65-9.73 12.9-12.54z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><ellipse cx="92.91" cy="89.66" rx="22.73" ry="22.73" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M94 74.5v16.24H79.93" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M102.03 68.75c8.42-10.69 23.65 3.87 12.32 13.1-2.85-6.71-6.2-10.01-12.32-13.1z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M107.58 108.06l5.56 7.32M78.24 107.54l-5.89 7.84M34 20.65v18M43 39.65v6M25 9.74v16M16 21.65v8M110.77 18.71l-4.9 5.1M108.36 30.74h4.16" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB |
@@ -1,4 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1536],{12525:()=>{},41235:()=>{},4502:()=>{},42845:(t,s,e)=>{"use strict";e.d(s,{default:()=>h});var i=e(20497),o=(e(41235),e(23127)),n=e(13398);const a=e(98125).getLogger("Ui.TvControlCheckbox"),l={labelWrapper:'{{#hasLabel}}<label>{{#labelLeft}}<span class="tv-control-checkbox__label {{#labelAddClass}}{{labelAddClass}}{{/labelAddClass}}">{{labelLeft}}</span>{{/labelLeft}}{{> inputWrapper }}{{#labelRight}}<span class="tv-control-checkbox__label {{#labelAddClass}}{{labelAddClass}}{{/labelAddClass}}">{{labelRight}}</span>{{/labelRight}}</label>{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}{{> ripple }}</{{ tag }}>',checkbox:'<input{{#id}} id="{{ id }}"{{/id}} class="{{> checkboxClass }}" type="checkbox"{{#name}} name="{{ name }}"{{/name}}{{#checked}} checked{{/checked}}{{#disabled}} disabled{{/disabled}}>',checkboxClass:"{{ customClass }}__input",box:'<span class="{{ customClass }}__box {{#boxAddClass}}{{boxAddClass}}{{/boxAddClass}}">'+e(4135)+"</span>",ripple:'<span class="{{ customClass }}__ripple js-ripple"></span>'};class d{constructor({customClass:t="tv-control-checkbox",$checkbox:s,tag:e,id:i,name:n,checked:l,disabled:d,labelLeft:h,labelRight:c,labelAddClass:r,boxAddClass:u}){this.$el=null,void 0===e&&(e=h||c?"span":"label");const p=s instanceof o&&!!s.length;if(p){if(!s.is("input[type=checkbox]"))return void a.logError("`$checkbox` need to be input[type=checkbox]");if(s.hasClass("i-inited"))return;this._setInputId(s,i),this._setInputClass(s,t),this._setInputName(s,n),this._setInputChecked(s,l),this._setInputDisabled(s,d),l=!!s.prop("checked"),d=!!s.attr("disabled")}this.$el=this.render({$checkbox:s,hasCheckbox:p,customClass:t,tag:e,id:i,name:n,checked:l,disabled:d,labelLeft:h,labelRight:c,hasLabel:h||c,labelAddClass:r,boxAddClass:u}),this.$checkbox=p?s:this.$el.find("input[type=checkbox]")}_setInputId(t,s){void 0!==s&&t.attr("id",s)}_setInputClass(t,s){const e=n.render(l.checkboxClass,{customClass:s});t.addClass(e)}_setInputName(t,s){void 0!==s&&t.attr("name",s)}_setInputChecked(t,s){void 0!==s&&t.prop("checked",!!s)}_setInputDisabled(t,s){void 0!==s&&(s?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}render(t){const s=t.$checkbox,e=o(n.render(l.labelWrapper,t,l));if(t.hasCheckbox){e.insertBefore(s);e.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(s.detach()),s.addClass("i-inited")}return e}set checked(t){this._setInputChecked(this.$checkbox,!!t)}get checked(){return!!this.$checkbox.prop("checked")}}o.fn.tvControlCheckbox=(0,i.createTvBlockWithInstance)("tv-control-checkbox",(function(t,s={}){return new d(TradingView.mergeObj(s,{$checkbox:t}))}));const h=d},51536:(t,s,e)=>{"use strict";e.d(s,{TVDialogAbstract:()=>m});var i=e(32563),o=e(68587),n=(e(78754),e(42845)),a=(e(4502),e(12525),e(52014),
|
||||
e(85459)),l=e.n(a),d=e(88216),h=e(23127),c=e(13398),r=e(25977);let u,p=0,b=[];const g=h(document),f={closeOnEsc:!0,closeButton:!0,focusFirstControl:!0,closeOnOutsideClick:!0,closeButtonAddClass:"",focusClass:"i-focused",template:'<div class="tv-dialog" tabindex="-1">',errorTemplate:'<div class="tv-dialog__error i-slided{{# errorMod }} tv-dialog__error--{{ errorMod }}{{/ errorMod }}">{{{ error }}}</div>',titleTemplate:'<div class="tv-dialog__section tv-dialog__section--title js-dialog__drag"><div class="js-title-text tv-dialog__title">{{{ title }}}</div></div>',contentWrapTemplate:'<div class="tv-dialog__section tv-dialog__section--no-border">',actionsWrapTemplate:'<div class="tv-dialog__section tv-dialog__section--actions tv-dialog__section--no-border">',closeButtonTemplate:`<div class="tv-dialog__close js-dialog__close">${e(49370)}</div>`,helpButtonTemplate:'<a href="{{{ link }}}" target="_blank" class="tv-dialog__help apply-common-tooltip" title="{{{ title }}}"></a>',helpActionsMod:"tv-dialog__section--actions_with-help"},v={default:"tv-button tv-button--default",primary:"tv-button tv-button--primary",success:"tv-button tv-button--success",danger:"tv-button tv-button--danger",warning:"tv-button tv-button--warning",link:"tv-button tv-button--link",checkbox:"tv-control-checkbox tv-control-checkbox--in-actions","default-ghost":"tv-button tv-button--default_ghost","primary-ghost":"tv-button tv-button--primary_ghost","success-ghost":"tv-button tv-button--success_ghost","danger-ghost":"tv-button tv-button--danger_ghost","warning-ghost":"tv-button tv-button--warning_ghost"},_={_default:'<div data-name="{{ name }}" class="js-dialog__action-click js-dialog__no-drag {{ class }}">{{ text }}</div>',"submit-primary":'<button type="submit" class="tv-button tv-button--primary">{{ text }}</button>',"submit-success":'<button type="submit" class="tv-button tv-button--success">{{ text }}</button>'};class m extends(l()){constructor(t={}){if(super(),this.manager=t.manager||(0,d.getRootOverlapManager)(t.ownerDocument),this._id=p++,this.loadingActions=[],this.disabledActions=[],this.firstFocusControl=null,this.options={...f,...t},this.$el=h(c.render(this.options.template,{title:this.options.title,closeButton:this.options.closeButton})),this.$el.addClass("js-dialog"),this.el=this.$el[0],this.options.dataset)for(const[t,s]of Object.entries(this.options.dataset))"string"==typeof s&&this.el.setAttribute("data-"+t,s);for(this.options.addClass&&this.$el.addClass(this.options.addClass),this.options.width&&this.$el.css({width:"100%","max-width":this.options.width}),this.on("beforeOpen",()=>{this.$wrap=this.manager.ensureWindow(this._id)}),this.on("afterClose",()=>{this.$wrap=null,this.manager.unregisterWindow(this._id)}),this.options.title&&(this.$title=h(c.render(this.options.titleTemplate,{title:this.options.title})).appendTo(this.$el)),this.$content=h(this.options.contentWrapTemplate).appendTo(this.$el),this.$contentIn=this.$content;this.$contentIn.length;)this.$contentIn=this.$contentIn.children();if(this.$contentIn=this.$contentIn.end(),
|
||||
this.options.content&&this.renderContent(this.options.content),(this.options.actions||this.options.help)&&(this.$content.hasClass("tv-dialog__section")&&this.$content.addClass("tv-dialog__section--no-padding_bottom"),this.$actions=h(this.options.actionsWrapTemplate).appendTo(this.$el)),this.options.actions){this.actions={},this.$el.on("click",".js-dialog__action-click",t=>{t.preventDefault(),this.actionDispatcher(h(t.currentTarget).data("name"))});for(let t=this.options.actions.length-1;t>=0;t--){const s=this.options.actions[t];if(s.type||(s.type="default"),s.class||(s.class=v[s.type]?v[s.type]:v.default),"checkbox"===s.type){const t=new n.default({labelRight:s.text,name:s.name,checked:s.checked});this.actions[s.name]=t.$el.appendTo(this.$actions),this.actions[s.name].on("change",()=>{setTimeout(()=>this.actionDispatcher(s.name,t.checked))})}else this.actions[s.name]=h(c.render(s.template?s.template:_[s.type]||_._default,s,s)).appendTo(this.$actions);if(s.method&&"function"==typeof this[s.method]&&this.on("action:"+s.name,this[s.method].bind(this)),s.addClass&&this.actions[s.name].addClass(s.addClass),s.key)if("string"==typeof s.key&&s.key.split("+").length>1){let t=[];const e=s.key.split("+"),i=s=>{t=[]},o=i=>{const o=""+i.keyCode;-1!==e.indexOf(o)&&t.indexOf(o)&&t.push(o),this._focused&&t.length===e.length&&(t=[],this.actionDispatcher(s.name))};this.on("afterOpen",()=>{g.on("keydown",o),g.on("keyup",i)}),this.on("beforeClose",()=>{g.off("keydown",o),g.off("keyup",i)})}else{const t=h.isArray(s.key)?s.key:[s.key],e=e=>{!e.isDefaultPrevented()&&this._focused&&-1!==t.indexOf(e.keyCode)&&this.actionDispatcher(s.name)};this.on("afterOpen",()=>g.on("keydown",e)),this.on("beforeClose",()=>g.off("keydown",e))}}}if(this.options.help&&h(c.render(this.options.helpButtonTemplate,this.options.help)).prependTo(this.$actions.addClass(this.options.helpActionsMod)),this.options.closeButton){const t=h(this.options.closeButtonTemplate);t.addClass(this.options.closeButtonAddClass||"");let s=this.$el;1===this.$el.find(".js-close-button-place").length&&(s=this.$el.find(".js-close-button-place")),t.appendTo(s)}this.setZIndex(110+b.length),t.errorMod&&(this.errorMod=t.errorMod),this.on("afterOpen",()=>{this.$el.focus(),this.options.focusFirstControl&&!i.mobiletouch&&(this.firstFocusControl||this.$el.find('input:not([type="hidden"]), textarea').first()).focus()}),this.$el.on("click",".js-dialog__close",this.close.bind(this)),this.$el.on("mousedown touchstart",this.focus.bind(this)),b.push(this)}renderContent(t){return this.$contentIn.html("function"==typeof t?t(this):t),this}setDestroyOnClose(t){this.options.destroyOnClose=t}setZIndex(t){return this.zIndex=t,this.trigger("change:zIndex",[this]),this}toTop(){for(let t=b.length-1;t>=0;t--)b[t].zIndex>this.zIndex&&b[t].setZIndex(b[t].zIndex-1);return this.setZIndex(110+b.length),this.manager.moveToTop(this._id),this._hotkeys&&this._hotkeys.promote(),this}isEventOut(t){if(this.options.isClickOutFn){const s=this.options.isClickOutFn(t);if(void 0!==s)return s}let s=!0;const e=h(t.target)
|
||||
;return e.get(0)!==this.$el.get(0)&&(h(">*",this.$el).each((function(){e.get(0)===h(this).get(0)&&(s=!1),0===e.closest("HTML",h(this).get(0)).length&&(s=!1)})),s)}focus(){u&&u!==this&&u.unfocus(),this._setFocused(),this._focused=!0,this.$el.addClass(this.options.focusClass),this.trigger("focus",[this]),setTimeout(()=>{g.on("mousedown.tv-dialog-unfocus-"+this._id,t=>{this.isEventOut(t)&&(this.unfocus(),g.off("mousedown.tv-dialog-unfocus-"+this._id))})},20)}_setFocused(){u!==this&&(u=this)}_setUnfocused(){u===this&&(u=void 0)}unfocus(){u===this&&(this._setUnfocused(),this._focused=!1,this.$el.removeClass(this.options.focusClass).find(":focus").blur(),this.trigger("unfocus",[this]))}isFocused(){return this._focused}setTitle(t,s=!1){return this.$title.toggleClass("tv-dialog__section--one-line apply-overflow-tooltip",s),this.$title.html(t),this}setTitleText(t){this.$title.find(".js-title-text").text(t)}actionDispatcher(t,...s){this.disabledActions.includes(t)||this.loadingActions.includes(t)||this.trigger("action:"+t,[this,...s])}toggleAction(t,s){return s||this.disabledActions.includes(t)?s&&this.disabledActions.includes(t)&&(this.disabledActions=r.without(this.disabledActions,t)):this.disabledActions.push(t),this.actions[t].toggleClass("i-disabled",!s),this}actionLoader(t,s="init"){return this.actions[t].tvButtonLoader(s),"init"===s&&(this.actions[t].off("tv-button-loader:start.dialog-action").on("tv-button-loader:start.dialog-action",()=>{this.loadingActions.push(t)}),this.actions[t].off("tv-button-loader:stop.dialog-action").on("tv-button-loader:stop.dialog-action",()=>{this.loadingActions=r.without(this.loadingActions,t)})),this}error(t){const s=h(c.render(this.options.errorTemplate,{error:t,errorMod:this.errorMod})).appendTo(this.$el);return setTimeout(()=>s.removeClass("i-slided"),20),g.one("touchstart mousedown keydown",()=>{s.addClass("i-slided"),setTimeout(()=>s.remove(),.75*o.dur)}),this.trigger("error",[this,s]),this}destroy(){this.$wrap=null,this.manager.unregisterWindow(this._id),this._hotkeys&&this._hotkeys.destroy(),b=r.without(b,this);for(let t=0;t<b.length;t++)b[t].setZIndex(110+t);this.trigger("destroy",[this])}isOpened(){return Boolean(this.opened)}getDialogId(){return this._id}}},49370:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="currentColor" d="M5.18 6.6L1.3 2.7.6 2 2 .59l.7.7 3.9 3.9 3.89-3.9.7-.7L12.61 2l-.71.7L8 6.6l3.89 3.89.7.7-1.4 1.42-.71-.71L6.58 8 2.72 11.9l-.71.7-1.41-1.4.7-.71 3.9-3.9z"/></svg>'}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.93 16.43a8.96 8.96 0 0 0 10.14 0L9 15.65l-5.07.78zM14.07 1.57a8.96 8.96 0 0 0-10.14 0L9 2.35l5.07-.78z" fill="#ED5565"/><path d="M18 9a9.54 9.54 0 0 0-3.93-7.43H3.93a8.99 8.99 0 0 0 0 14.86h10.14A8.99 8.99 0 0 0 18 9z" fill="#4758A9"/><path d="M8.5 14.68c-.13-.1-3.02-2.62-3.02-5.68 0-3.06 2.89-5.58 3.01-5.68L9 2.88l.5.44c.13.1 3.02 2.62 3.02 5.68 0 3.06-2.89 5.58-3.01 5.68l-.51.44-.5-.44z" fill="#ED5565"/><path d="M11.74 9C11.74 6.26 9 3.91 9 3.91S6.26 6.26 6.26 9c0 .84.26 1.64.61 2.35h4.26c.35-.71.6-1.51.6-2.35z" fill="#4A89DC"/><path d="M11.74 9c0 .84-.26 1.64-.61 2.35L9 11.74l-2.13-.4A5.28 5.28 0 0 1 6.27 9h5.47z" fill="#4758A9"/><path d="M9 14.09s1.32-1.13 2.13-2.74H6.87A9.92 9.92 0 0 0 9 14.09z" fill="#FC0"/><path d="M7.24 7.43h3.52L9 9.2 7.24 7.43z" fill="#57A863"/><path d="M9.59 8.6H8.4v3.53H9.6V8.61z" fill="#A2001D"/></svg>
|
||||
|
Before Width: | Height: | Size: 950 B |
@@ -1,23 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1594],{66783:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,r){if(n(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;for(var a=0;a<o.length;a++)if(!t.call(r,o[a])||!n(e[o[a]],r[o[a]]))return!1;return!0}},55576:e=>{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},74246:e=>{e.exports={actions:"actions-FZxvEi7a",actionButton:"actionButton-FZxvEi7a"}},82132:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",itemRow:"itemRow-uhHv1IHJ",multiLine:"multiLine-uhHv1IHJ",cell:"cell-uhHv1IHJ",itemInfoCell:"itemInfoCell-uhHv1IHJ",description:"description-uhHv1IHJ",symbolDescription:"symbolDescription-uhHv1IHJ",flag:"flag-uhHv1IHJ",exchangeDescription:"exchangeDescription-uhHv1IHJ",marketType:"marketType-uhHv1IHJ",exchangeName:"exchangeName-uhHv1IHJ",actionHandleWrap:"actionHandleWrap-uhHv1IHJ",hover:"hover-uhHv1IHJ",selected:"selected-uhHv1IHJ",active:"active-uhHv1IHJ",highlighted:"highlighted-uhHv1IHJ",light:"light-uhHv1IHJ","highlight-animation-theme-light":"highlight-animation-theme-light-uhHv1IHJ",dark:"dark-uhHv1IHJ","highlight-animation-theme-dark":"highlight-animation-theme-dark-uhHv1IHJ",markedFlag:"markedFlag-uhHv1IHJ",offset:"offset-uhHv1IHJ",descriptionCell:"descriptionCell-uhHv1IHJ",addition:"addition-uhHv1IHJ",exchangeCell:"exchangeCell-uhHv1IHJ",fixedWidth:"fixedWidth-uhHv1IHJ",expandHandle:"expandHandle-uhHv1IHJ",expanded:"expanded-uhHv1IHJ",symbolTitle:"symbolTitle-uhHv1IHJ",invalid:"invalid-uhHv1IHJ",noDescription:"noDescription-uhHv1IHJ",highlightedText:"highlightedText-uhHv1IHJ",icon:"icon-uhHv1IHJ",narrow:"narrow-uhHv1IHJ",dataMode:"dataMode-uhHv1IHJ",actionsCell:"actionsCell-uhHv1IHJ",action:"action-uhHv1IHJ",targetAction:"targetAction-uhHv1IHJ",removeAction:"removeAction-uhHv1IHJ",addAction:"addAction-uhHv1IHJ",
|
||||
markedFlagWrap:"markedFlagWrap-uhHv1IHJ",markedFlagMobile:"markedFlagMobile-uhHv1IHJ",logo:"logo-uhHv1IHJ",isExpandable:"isExpandable-uhHv1IHJ"}},42608:e=>{e.exports={wrap:"wrap-nJ9riypy",libAllSelected:"libAllSelected-nJ9riypy",container:"container-nJ9riypy",iconWrap:"iconWrap-nJ9riypy",icon:"icon-nJ9riypy",title:"title-nJ9riypy",highlighted:"highlighted-nJ9riypy",description:"description-nJ9riypy",mobile:"mobile-nJ9riypy",allSelected:"allSelected-nJ9riypy",desktop:"desktop-nJ9riypy",allSelectedIcon:"allSelectedIcon-nJ9riypy",selected:"selected-nJ9riypy",titleWithoutDesc:"titleWithoutDesc-nJ9riypy",textBlock:"textBlock-nJ9riypy",bordered:"bordered-nJ9riypy"}},90819:e=>{e.exports={container:"container-ZOfHxh0z",contentList:"contentList-ZOfHxh0z",contentListDesktop:"contentListDesktop-ZOfHxh0z",searchSourceItemsContainer:"searchSourceItemsContainer-ZOfHxh0z",searchSourceItemsContainerDesktop:"searchSourceItemsContainerDesktop-ZOfHxh0z",groupTitleDesktop:"groupTitleDesktop-ZOfHxh0z",emptyText:"emptyText-ZOfHxh0z",noResultsDesktop:"noResultsDesktop-ZOfHxh0z"}},77338:e=>{e.exports={wrap:"wrap-LlwUhJDs",item:"item-LlwUhJDs",small:"small-LlwUhJDs",text:"text-LlwUhJDs",exchange:"exchange-LlwUhJDs"}},74915:e=>{e.exports={wrap:"wrap-SLQfcZ66",watchlist:"watchlist-SLQfcZ66",noFeed:"noFeed-SLQfcZ66",scrollContainer:"scrollContainer-SLQfcZ66",listContainer:"listContainer-SLQfcZ66",multiLineItemsContainer:"multiLineItemsContainer-SLQfcZ66"}},98749:e=>{e.exports={button:"button-v1WheJQo",desktop:"desktop-v1WheJQo"}},92540:e=>{e.exports={search:"search-RSKUFnp7",upperCase:"upperCase-RSKUFnp7",symbolType:"symbolType-RSKUFnp7",spinnerWrap:"spinnerWrap-RSKUFnp7",emptyText:"emptyText-RSKUFnp7",noResultsDesktop:"noResultsDesktop-RSKUFnp7",brokerCheckboxWrap:"brokerCheckboxWrap-RSKUFnp7"}},53474:e=>{e.exports={flagWrap:"flagWrap-7I0uFLqE",icon:"icon-7I0uFLqE",caret:"caret-7I0uFLqE",title:"title-7I0uFLqE"}},6215:e=>{e.exports={dialog:"dialog-JcokGZNe",tabletDialog:"tabletDialog-JcokGZNe",desktopDialog:"desktopDialog-JcokGZNe"}},70516:e=>{e.exports={childrenWrapper:"childrenWrapper-HNZPlz4e",container:"container-HNZPlz4e"}},99167:e=>{e.exports={bubbles:"bubbles-bgopH9MJ",multiLine:"multiLine-bgopH9MJ",bubble:"bubble-bgopH9MJ"}},74765:e=>{e.exports={bubble:"bubble-vcCjkHCG",animated:"animated-vcCjkHCG",content:"content-vcCjkHCG","appearance-default":"appearance-default-vcCjkHCG",active:"active-vcCjkHCG",red:"red-vcCjkHCG",blue:"blue-vcCjkHCG",green:"green-vcCjkHCG",orange:"orange-vcCjkHCG",purple:"purple-vcCjkHCG",cyan:"cyan-vcCjkHCG",pink:"pink-vcCjkHCG","appearance-text":"appearance-text-vcCjkHCG","fontSize-s":"fontSize-s-vcCjkHCG","fontSize-m":"fontSize-m-vcCjkHCG","size-m":"size-m-vcCjkHCG","size-l":"size-l-vcCjkHCG"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>o});var r=n(59496);const o=r.forwardRef((e,t)=>{const{icon:n="",...o}=e
|
||||
;return r.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:n}})})},90186:(e,t,n)=>{"use strict";function r(e){return s(e,a)}function o(e){return s(e,i)}function s(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function a(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function i(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>r,filterAriaProps:()=>o,filterProps:()=>s,isDataAttribute:()=>a,isAriaAttribute:()=>i})},4825:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>l,ToolWidgetButton:()=>c});var r=n(59496),o=n(97754),s=n(9745),a=n(37669),i=n(55576);const l=i,c=r.forwardRef((e,t)=>{const{icon:n,isActive:l,isOpened:c,isDisabled:u,isGrouped:d,isHovered:h,onClick:p,text:m,textBeforeIcon:v,title:f,theme:g=i,className:y,forceInteractive:b,"data-name":S,...x}=e,C=o(y,g.button,f&&"apply-common-tooltip",{[g.isActive]:l,[g.isOpened]:c,[g.isInteractive]:(b||Boolean(p))&&!u,[g.isDisabled]:u,[g.isGrouped]:d,[g.hover]:h,[g.newStyles]:a.hasNewHeaderToolbarStyles}),w=n&&("string"==typeof n?r.createElement(s.Icon,{className:g.icon,icon:n}):r.cloneElement(n,{className:o(g.icon,n.props.className)}));return r.createElement("div",{...x,ref:t,"data-role":"button",className:C,onClick:u?void 0:p,title:f,"data-name":S},v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m),w,!v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m))})},37669:(e,t,n)=>{"use strict";n.d(t,{hasNewHeaderToolbarStyles:()=>r});n(67337);const r=!1},47670:(e,t,n)=>{"use strict";n.d(t,{marketType:()=>l});var r=n(28353);n(94419);const o=new Map,s={context:"market_type"},a={cfd:(0,r.t)("cfd",s),bitcoin:(0,r.t)("crypto",s),crypto:(0,r.t)("crypto",s),dr:(0,r.t)("dr",s),forex:(0,r.t)("forex",s),futures:(0,r.t)("futures",s),index:(0,r.t)("index",s),stock:(0,r.t)("stock",s),economic:(0,r.t)("economy",s)},i=new Set(["cfd","spreadbet","defi"]);function l(e,t=[]){const n=t.filter(e=>i.has(e)),l=`${e}_${n.sort().join("_")}`,c=o.get(l);if(void 0!==c)return c;const u=Boolean(t.length)?(0,r.t)(e,s)+" "+n.join(" "):a[e]||e;return o.set(l,u),u}},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,o){function s(o){if(e>o.timeStamp)return;const s=o.target;void 0!==n&&null!==t&&null!==s&&s.ownerDocument===r&&(t.contains(s)||n(o))}return o.click&&r.addEventListener("click",s,!1),o.mouseDown&&r.addEventListener("mousedown",s,!1),o.touchEnd&&r.addEventListener("touchend",s,!1),o.touchStart&&r.addEventListener("touchstart",s,!1),()=>{r.removeEventListener("click",s,!1),r.removeEventListener("mousedown",s,!1),r.removeEventListener("touchend",s,!1),r.removeEventListener("touchstart",s,!1)}}n.d(t,{addOutsideEventListener:()=>r})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>r,matchMediaMinMax:()=>o,setStyle:()=>s,getCSSProperty:()=>a,getCSSPropertyNumericValue:()=>i});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar",
|
||||
document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const a=s.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=o-a}return e}})();function o(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function s(e,t,n){null!==e&&e.style.setProperty(t,n)}function a(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function i(e,t){return parseInt(a(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>a});var r=n(68722);let o=0,s=!1;function a(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++o){const e=(0,r.getCSSProperty)(t,"overflow"),o=(0,r.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,r.setStyle)(n,"right",(0,r.getScrollbarWidth)()+"px"),t.style.paddingRight=o+(0,r.getScrollbarWidth)()+"px",s=!0),t.classList.add("i-no-scroll")}else if(!e&&o>0&&0==--o&&(t.classList.remove("i-no-scroll"),s)){(0,r.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,r.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>k});var r=n(59496),o=n(88537);var s=n(97754),a=n.n(s),i=n(68335),l=n(35749),c=n(81e3),u=n(1109),d=n(24437),h=n(90692),p=n(95711),m=n(52092),v=n(76422),f=n(9745);const g=r.createContext({setHideClose:()=>{}});var y=n(37257),b=n(91441);function S(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:s,renderBefore:i,renderAfter:l,draggable:c,className:u,unsetAlign:d}=e,[h,p]=(0,r.useState)(!1);return r.createElement(g.Provider,{value:{setHideClose:p}},r.createElement("div",{className:a()(b.container,u,(n||d)&&b.unsetAlign)},i,r.createElement("div",{"data-dragg-area":c,className:b.title},r.createElement("div",{className:b.ellipsis},t),n&&r.createElement("div",{className:a()(b.ellipsis,b.subtitle)},n)),l,o&&!h&&r.createElement(f.Icon,{className:b.close,icon:y,onClick:s,"data-name":"close","data-role":"button"})))}var x=n(67179);const C={vertical:20},w={vertical:0};class k extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,
|
||||
i.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,l.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;v.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:s,dataName:i,onClickOutside:l,additionalElementPos:m,additionalHeaderElement:v,backdrop:f,shouldForceFocus:g=!0,showSeparator:y,subtitle:b,draggable:k=!0,fullScreen:E=!1,showCloseIcon:I=!0,rounded:_=!0,isAnimationEnabled:N,growPoint:H,dialogTooltip:D,unsetHeaderAlign:M,onDragStart:T,dataDialogName:L}=this.props,A="after"!==m?v:void 0,F="after"===m?v:void 0,O="string"==typeof s?s:L||"";return r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||E)&&_,className:a()(x.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:d||E,guard:m?w:C,boundByScreen:d||E,shouldForceFocus:g,backdrop:f,draggable:k,isAnimationEnabled:N,growPoint:H,name:this.props.dataName,dialogTooltip:D,onDragStart:T},r.createElement("div",{className:a()(x.wrapper,t),"data-name":i,"data-dialog-name":O},void 0!==s&&r.createElement(S,{draggable:k&&!(d||E),onClose:this._handleClose,renderAfter:F,renderBefore:A,subtitle:b,title:s,showCloseIcon:I,className:n,unsetAlign:M}),y&&r.createElement(u.Separator,{className:x.separator}),r.createElement(p.PopupContext.Consumer,null,e=>this._renderChildren(e,d||E))))))}}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>u});var r=n(59496),o=n(97754),s=n.n(o),a=n(28353),i=n(9745),l=n(5639),c=n(28712);function u(e){const{children:t,renderInput:n,onCancel:o,...u}=e
|
||||
;return r.createElement("div",{className:c.container},r.createElement("div",{className:s()(c.inputContainer,o&&c.withCancel)},n||r.createElement(d,{...u})),t,r.createElement(i.Icon,{className:c.icon,icon:l}),o&&r.createElement("div",{className:c.cancel,onClick:o},(0,a.t)("Cancel")))}function d(e){const{className:t,reference:n,value:o,onChange:a,onFocus:i,onBlur:l,onKeyDown:u,onSelect:d,placeholder:h,...p}=e;return r.createElement("input",{...p,ref:n,type:"text",className:s()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:o,onChange:a,onFocus:i,onBlur:l,onSelect:d,onKeyDown:u})}},5648:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogContentItem:()=>g});var r=n(59496),o=n(97754),s=n.n(o),a=n(88537),i=n(9745),l=(n(67337),n(24637)),c=n(19785),u=n(84524),d=n(24633),h=n(77975),p=n(45345),m=n(32563),v=n(88142),f=n(82132);function g(e){const{dangerousTitleHTML:t,title:n,dangerousDescriptionHTML:o,description:g,searchToken:y,exchangeName:b,marketType:S,onClick:x,isSelected:C,isEod:w=!1,isActive:k=!1,isOffset:E=!1,invalid:I=!1,isHighlighted:_=!1,hideExchange:N=!1,hideMarkedListFlag:H=!1,onExpandClick:D,isExpanded:M,hoverComponent:T,country:L,providerId:A,source:F,type:O,flag:R,itemRef:B,onMouseOut:P,onMouseOver:W,className:J,actions:z,reference:V,fullSymbolName:q,logoId:U,currencyLogoId:Z,baseCurrencyLogoId:G,shortName:j,hideLogo:K=!1}=e,{isSmallWidth:Q,isMobile:$}=(0,a.ensureNotNull)((0,r.useContext)(u.SymbolSearchItemsDialogContext)),Y=Boolean(T),X=!I&&!N&&($||!Y),ee=(0,h.useWatchedValueReadonly)({watchedValue:p.watchedTheme})===d.StdTheme.Dark?f.dark:f.light,te=T;return r.createElement("div",{className:s()(f.itemRow,Q&&f.multiLine,_&&f.highlighted,_&&ee,C&&f.selected,k&&f.active,I&&f.invalid,!$&&m.mobiletouch&&Y&&f.hover,J),onClick:function(e,t){if(!e||t.defaultPrevented)return;t.preventDefault(),e(t)}.bind(null,x),"data-role":e["data-role"]||"list-item","data-active":k,"data-name":"symbol-search-dialog-content-item",onMouseOut:P,onMouseOver:W,ref:V},r.createElement("div",{ref:B,className:s()(f.itemInfoCell,f.cell,E&&f.offset)},r.createElement("div",{className:s()(f.actionHandleWrap,f.fixedWidth)},r.createElement(r.Fragment,null,!1,D&&r.createElement("div",{onClick:function(e){if(!D||e.defaultPrevented)return;e.preventDefault(),D(e)}},r.createElement(i.Icon,{className:s()(f.expandHandle,M&&f.expanded,C&&f.selected),icon:v})),!1)),r.createElement("div",{className:s()(f.description,!1)},n&&r.createElement("div",{className:s()(f.symbolTitle,k&&f.active,I&&f.invalid,!Boolean(o)&&f.noDescription),"data-name":"list-item-title"},"string"==typeof n&&y?r.createElement(l.HighlightedText,{className:f.highlightedText,text:n,queryString:y,rules:(0,c.createRegExpList)(y)}):n,w&&r.createElement("span",{className:f.dataMode},"E")),!n&&t&&r.createElement("div",{className:s()(f.symbolTitle,k&&f.active,I&&f.invalid),"data-name":"list-item-title"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),w&&r.createElement("span",{className:f.dataMode},"E")),Q&&ne())),!Q&&r.createElement("div",{
|
||||
className:s()(f.cell,f.descriptionCell,Boolean(te)&&f.addition)},ne(),te?r.createElement(te,{...e,className:f.actions,onMouseOver:void 0,onMouseOut:void 0}):null),Q&&te?r.createElement(te,{...e,className:f.cell,onMouseOver:void 0,onMouseOut:void 0}):null,X&&r.createElement("div",{className:s()(f.exchangeCell,f.cell)},r.createElement("div",{className:s()(f.exchangeDescription)},r.createElement("div",{className:s()(f.marketType,k&&f.active)},S),"economic"===O&&F?r.createElement("div",{className:s()(f.exchangeName,k&&f.active,"apply-common-tooltip",f.narrow),title:F},F):r.createElement("div",{className:s()(f.exchangeName,k&&f.active)},b)),!1),r.createElement("div",{className:s()(f.cell,Boolean(z)&&f.actionsCell)},z));function ne(){if(I)return null;const e=s()(f.symbolDescription,k&&f.active,!m.mobiletouch&&"apply-overflow-tooltip apply-overflow-tooltip--allow-text");return g?r.createElement("div",{className:e},y?r.createElement(l.HighlightedText,{className:f.highlightedText,text:g,queryString:y,rules:(0,c.createRegExpList)(y)}):g):o?r.createElement("div",{className:e,dangerouslySetInnerHTML:{__html:o}}):null}}},58442:(e,t,n)=>{"use strict";n.d(t,{qualifyProName:()=>a,QualifiedSources:()=>r});var r,o=n(88537),s=n(67337);n(81319);function a(e){return e}!function(e){function t(e){return e.pro_name}function n(e){{const t=s.enabled("pay_attention_to_ticker_not_symbol")?e.ticker:e.full_name;return(0,o.ensureDefined)(t)}}e.fromQuotesSnapshot=function(e){return"error"===e.status?e.symbolname:e.values.pro_name},e.fromQuotesResponse=function(e){const{values:n,symbolname:r,status:o}=e;return"error"===o&&r?r:t(n)},e.fromQuotes=t,e.fromSymbolSearchResult=function(e,t){{const{ticker:n,full_name:r}=null!=t?t:e;return s.enabled("pay_attention_to_ticker_not_symbol")?(0,o.ensureDefined)(null!=n?n:r):(0,o.ensureDefined)(r)}},e.fromSymbolInfo=n,e.fromSymbolMessage=function(e,t){return"symbol_resolved"===t.method?n(t.params[1]):e}}(r||(r={}))},24389:(e,t,n)=>{"use strict";n.d(t,{QuoteSessionContext:()=>r});const r=n(59496).createContext(null)},20882:(e,t,n)=>{"use strict";function r(e){return""===e.value()}function o(e,t){return e.filter(e=>e.includes(t))}function s(e){const t=new Map;return e.forEach(e=>{t.has(e.group())?t.get(e.group()).push(e):t.set(e.group(),[e])}),t}function a(e,t){return t.map(t=>new e(t))}n.d(t,{isAllSearchSourcesSelected:()=>r,filterSearchSources:()=>o,splitSearchSourcesByGroup:()=>s,createSearchSources:()=>a})},1861:(e,t,n)=>{"use strict";n.d(t,{showSymbolSearchItemsDialog:()=>c});var r=n(59496),o=n(87995),s=n(50655),a=n(24389),i=n(51826),l=n(12045);function c(e){const{initialMode:t="symbolSearch",autofocus:n=!0,defaultValue:c,showSpreadActions:u,selectSearchOnInit:d,onSearchComplete:h,onSearchFeedReady:p,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,onClose:x,footer:C,symbolTypes:w,searchInput:k,emptyState:E,hideMarkedListFlag:I,dialogWidth:_="auto",manager:N}=e
|
||||
;if(i.dialogsOpenerManager.isOpened("SymbolSearch")||i.dialogsOpenerManager.isOpened("ChangeIntervalDialog"))return;const H=document.createElement("div"),D=r.createElement(s.SlotContext.Provider,{value:null!=N?N:null},r.createElement(a.QuoteSessionContext.Provider,{value:null},r.createElement(l.SymbolSearchItemsDialog,{onClose:M,initialMode:t,defaultValue:c,showSpreadActions:u,hideMarkedListFlag:I,onSearchFeedReady:p,selectSearchOnInit:d,onSearchComplete:h,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,footer:C,symbolTypes:w,searchInput:k,emptyState:E,autofocus:n,dialogWidth:_})));function M(){o.unmountComponentAtNode(H),i.dialogsOpenerManager.setAsClosed("SymbolSearch"),x&&x()}return o.render(D,H),i.dialogsOpenerManager.setAsOpened("SymbolSearch"),{close:M}}},70613:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogBodyContext:()=>r});const r=n(59496).createContext(null)},84524:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialogContext:()=>r});const r=n(59496).createContext(null)},12045:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialog:()=>Pe});var r=n(59496),o=n(97754),s=n.n(o),a=n(28353),i=n(7785),l=n(15983),c=n(84877),u=n(67337),d=n(24437),h=n(85457),p=n(9745),m=n(84524),v=n(69654),f=n(20882),g=n(70516);function y(e){const{children:t,className:n}=e;return r.createElement("div",{className:s()(g.container,n)},r.createElement("div",{className:g.childrenWrapper},t))}var b=n(88537),S=n(78036),x=n(24637),C=n(19785),w=n(29601),k=n(42608);function E(e){const{searchSource:t,onClick:n,queryString:o}=e,{selectedSearchSource:a,isAllSearchSourcesSelected:i,isMobile:l}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),c=(0,b.ensureNotNull)(a).value(),u=i(t),d=t.value()===c,h=(0,r.useMemo)(()=>(0,C.createRegExpList)(o),[o]),v=t.description(),f=v&&!u,g=s()(k.container,l?k.mobile:k.desktop,d&&k.selected,u&&k.allSelected,u&&k.libAllSelected,!u&&l&&k.bordered);return r.createElement("div",{className:s()(!l&&k.wrap,u&&k.libAllSelected),onClick:n},r.createElement("div",{className:g},r.createElement("div",{className:k.iconWrap},!!u&&r.createElement(p.Icon,{className:s()(k.icon,k.allSelectedIcon),icon:w})),r.createElement("div",{className:k.textBlock},r.createElement("div",{className:s()(k.title,!f&&!l&&k.titleWithoutDesc)},r.createElement(x.HighlightedText,{className:s()(d&&k.highlighted),queryString:o,text:t.name(),rules:h})),f&&r.createElement("div",{className:s()(k.description,"apply-overflow-tooltip")},r.createElement(x.HighlightedText,{className:k.highlighted,queryString:o,rules:h,text:v})))))}var I=n(77975),_=n(45345),N=n(26843),H=n(70613),D=n(70029),M=n(72802),T=n(90819);const L={emptyTextClassName:T.emptyText};function A(e){const{searchSources:t}=e,{setSelectedSearchSource:n,setMode:o,isMobile:i,emptyState:l,autofocus:c}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),u=(0,I.useWatchedValueReadonly)({watchedValue:_.watchedTheme})===N.StdTheme.Dark?D:M,[d,h]=(0,r.useState)(""),g=(0,r.useMemo)(()=>[{group:null,sources:(0,f.filterSearchSources)(t,d)}],[t,d]),b=(0,
|
||||
r.useRef)(null),x=(0,r.useRef)(null);(0,r.useLayoutEffect)(()=>{var e;c&&(null===(e=null==b?void 0:b.current)||void 0===e||e.focus())},[]);const C=l?r.createElement(l,null):r.createElement(y,{className:T.noResultsDesktop},r.createElement(p.Icon,{icon:u}),r.createElement("div",{className:T.emptyText},(0,a.t)("No exchanges match your criteria"))),w=!(g.length&&g.every(e=>0===e.sources.length));return r.createElement(H.SymbolSearchDialogBodyContext.Provider,{value:L},r.createElement(v.DialogSearch,{placeholder:(0,a.t)("Search"),onChange:function(e){h(e.target.value),x&&x.current&&(x.current.scrollTop=0)},reference:b}),w?r.createElement("div",{ref:x,className:s()(T.contentList,!i&&T.contentListDesktop),onTouchStart:function(){var e;null===(e=b.current)||void 0===e||e.blur()}},g.map(e=>{const{group:t,sources:n}=e;return 0===n.length?r.createElement(r.Fragment,{key:t}):r.createElement(r.Fragment,{key:t},!1,r.createElement("div",{className:s()(T.searchSourceItemsContainer,!i&&T.searchSourceItemsContainerDesktop)},n.map(e=>r.createElement(E,{key:e.value(),searchSource:e,queryString:d,onClick:k.bind(null,e)}))))})):C);function k(e){n(e),o("symbolSearch")}}var F=n(87995),O=n(8128);n(76861),n(85198);function R(e){return e.hasOwnProperty("exchange")}async function B(e){return new Promise(t=>{window.ChartApiInstance.searchSymbols(e.text||"",e.exchange||"",e.type||"","",!1,!0,"",!0,"",e=>{t(e)})})}var P=n(81319),W=n(78136),J=n(51768),z=n(68335),V=n(4825),q=n(20832),U=n(21740),Z=n(38927),G=n(43088),j=n(56584),K=n(19586),Q=n(74246);function $(e){var t;const{state:n,update:o}=e,{searchRef:s,forceUpdate:a,upperCaseEnabled:c}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),d=(0,i.tokenize)(null===(t=s.current)||void 0===t?void 0:t.value),h=(0,l.validate)(d);let p=[{icon:q,insert:"/",type:"binaryOp",name:"division"},{icon:U,insert:"-",type:"binaryOp",name:"subtraction"},{icon:Z,insert:"+",type:"binaryOp",name:"addition"},{icon:G,insert:"*",type:"binaryOp",name:"multiplication"}];return u.enabled("hide_exponentiation_spread_operator")||(p=p.concat([{icon:j,insert:"^",type:"binaryOp",name:"exponentiation"}])),u.enabled("hide_reciprocal_spread_operator")||(p=p.concat([{icon:K,type:"complete",name:"1/x",callback:()=>{!s.current||h.errors.length||h.warnings.length||(s.current.value=(0,l.stringifyTokens)((0,l.flip)(d)),a())}}])),r.createElement("div",{className:Q.actions},p.map(e=>r.createElement(V.ToolWidgetButton,{className:Q.actionButton,icon:e.icon,key:e.name,isDisabled:Y(e,h),onClick:()=>function(e){var t;if(!Y(e,h)){if(e.insert&&s.current){const t=s.current.value+e.insert;s.current.value=t,s.current.setSelectionRange(t.length,t.length);const[r,,i]=(0,l.getCurrentTokenParamsFromInput)(s.current,c);n.current&&(n.current.selectedIndexValue=-1,n.current.searchSpreadsValue=(0,l.isSpread)(i),n.current.searchTokenValue=r),a(),o()}e.callback&&e.callback(),null===(t=s.current)||void 0===t||t.focus(),(0,J.trackEvent)("GUI","SS",e.name)}}(e)})))}function Y(e,t){let n=!1;if(!t.errors.length)switch(e.type){case"binaryOp":
|
||||
n="var"===t.currentState;break;case"openBrace":n="var"!==t.currentState;break;case"closeBrace":n="var"===t.currentState&&t.braceBalance>0;break;case"complete":n=!t.errors.length&&!t.warnings.length}return!n}var X=n(90186),ee=n(74765);function te(e){const{title:t,isActive:n,isAnimated:r,activeColor:o,size:a="m",appearance:i="default",fontSize:l="m",className:c}=e;return s()(ee.bubble,n&&ee.active,o&&ee[o],t&&"apply-common-tooltip",a&&ee["size-"+a],l&&ee["fontSize-"+l],i&&ee["appearance-"+i],r&&ee.animated,c)}function ne(e){const{id:t,title:n,tabIndex:o,role:a,contentClassName:i,children:l,onClick:c,onMouseDown:u,reference:d,...h}=e;return r.createElement("span",{...(0,X.filterAriaProps)(h),...(0,X.filterDataProps)(h),id:t,title:n,tabIndex:o,role:a,className:te(e),onClick:c,onMouseDown:u,ref:d},r.createElement("span",{className:s()(ee.content,i)},l))}var re=n(99167);function oe(e){const{className:t,itemClassName:n,itemContentClassName:s,items:a,getItemTitle:i,getItemTooltip:l,getItemKey:c,checkItemIsActive:u,getItemColor:d,onBubbleClick:h,multiline:p,children:m,BubbleComponent:v=ne,reference:f,fontSize:g}=e;return r.createElement("div",{className:o(t,re.bubbles,p&&re.multiLine),ref:f},a.map((e,t)=>r.createElement(v,{key:c?c(e):t,id:c?c(e):t.toString(),className:o(re.bubble,n),contentClassName:s,onClick:function(){h(e)},onMouseDown:function(e){e.preventDefault()},isActive:!!u&&u(e),activeColor:d?d(e):void 0,fontSize:g,title:l?l(e):void 0},i(e))),m)}var se=n(61074),ae=n(69397),ie=n(9837),le=n.n(ie),ce=n(10381),ue=n(53474);function de(e){const{mode:t,setMode:n,searchRef:o,cachedInputValue:i,selectedSearchSource:l,isAllSearchSourcesSelected:c,upperCaseEnabled:u}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),d=(0,b.ensureNotNull)(l),h="symbolSearch"===t,v=c(d);return h?r.createElement("div",{className:s()(ue.flagWrap,"apply-common-tooltip"),title:(0,a.t)("Select source"),onClick:function(){o.current&&(i.current=u?o.current.value.toUpperCase():o.current.value);n("exchange")}},!!v&&r.createElement(p.Icon,{className:ue.icon,icon:w}),r.createElement("div",{className:ue.title},d.name()),r.createElement(ce.ToolWidgetCaret,{className:ue.caret,dropped:!1})):null}var he=n(77338);function pe(e){const{isSmallWidth:t,selectedSearchSource:n,searchSources:o}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),i=n&&o.length>1&&!(0,P.exchangeSelectDisabled)();return r.createElement("div",{className:s()(he.wrap,t&&he.small)},r.createElement("div",{className:he.item},r.createElement("div",{className:he.text},t?(0,a.t)("Symbol & description"):(0,a.t)("Symbol"))),r.createElement("div",{className:he.item},!t&&r.createElement("div",{className:he.text},(0,a.t)("Description")),i&&r.createElement("div",{className:he.exchange},r.createElement(de,null))))}var me=n(62820),ve=n(74915);function fe(e){const{onTouchMove:t,listRef:n,className:o,listWrapRef:a,virtualListKey:i,items:l,getItemSize:c,hideFeed:u}=e,{mode:d,isSmallWidth:h,handleListWidth:p}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),[v,f]=(0,
|
||||
r.useState)(null),g=(0,r.useCallback)(e=>{const{index:t,style:n}=e;return r.createElement("div",{style:n},l[t])},[l]),y=(0,r.useCallback)(e=>(0,b.ensure)(l[e].key),[l]),x="watchlist"===d&&null!==v;return r.createElement(le(),{onMeasure:function(e){f(e.height),p(e.width)}},r.createElement("div",{ref:a,className:s()(ve.wrap,x&&ve.watchlist,u&&ve.noFeed,o),onTouchMove:t},r.createElement("div",{className:s()(ve.scrollContainer,u&&ve.noFeed)},x?r.createElement(ae.VariableSizeList,{key:i,ref:n,className:ve.listContainer,width:"100%",height:(0,b.ensureNotNull)(v),itemCount:l.length,itemSize:c,children:g,itemKey:y,overscanCount:20,direction:(0,me.isRtl)()?"rtl":"ltr"}):r.createElement("div",{className:s()(ve.listContainer,h&&ve.multiLineItemsContainer)},r.createElement(pe,null),...l))))}var ge=n(5648),ye=n(92540);const be=u.enabled("hide_image_invalid_symbol");function Se(e){const{token:t,state:n,otherSymbolsCount:o,onChangeSymbolTypeFilter:s,onResetFilters:a,onListTouchMove:i,brokerTitle:l,isBrokerChecked:c,onBrokerCheckboxChange:u,listRef:d,listWrapRef:h}=e,{mode:p,isMobile:v,selectedSymbolType:f,symbolTypes:g,feedItems:y,contentItem:b,emptyState:x=xe}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),C=l&&r.createElement(BrokerCheckbox,{brokerTitle:l,checked:c,onCheckboxChange:u}),w="symbolSearch"===p&&"good"===n,k=null!=b?b:ge.SymbolSearchDialogContentItem,E=(0,r.useMemo)(()=>y.map(e=>r.createElement(k,{...e,searchToken:t})),[y]);return r.createElement(r.Fragment,null,"symbolSearch"===p&&r.createElement(r.Fragment,null,g.length>0&&r.createElement(oe,{itemClassName:ye.symbolType,items:g,getItemTitle:e=>e.name,getItemKey:e=>e.value,checkItemIsActive:e=>e.value===f,onBubbleClick:s,multiline:!v},!v&&C),v&&g.length>0&&l&&r.createElement("div",{className:ye.brokerCheckboxWrap},C)),r.createElement(fe,{listRef:d,listWrapRef:h,onTouchMove:i,items:E,getItemSize:()=>we,hideFeed:!w}),"loading"===n&&r.createElement("div",{className:ye.spinnerWrap},r.createElement(se.Spinner,null)),"symbolSearch"===p&&r.createElement(r.Fragment,null,!1,"empty"===n&&r.createElement(x,null)))}function xe(e){const t=(0,I.useWatchedValueReadonly)({watchedValue:_.watchedTheme})===N.StdTheme.Dark?D:M;return r.createElement(y,{className:ye.noResultsDesktop},!be&&r.createElement(p.Icon,{icon:t}),r.createElement("div",{className:ye.emptyText},(0,a.t)("No symbols match your criteria")))}const Ce=(0,P.getDefaultSearchSource)(),we=52;function ke(e){const{mode:t,setMode:n,setSelectedIndex:o,isMobile:i,selectedSearchSource:c,setSelectedSearchSource:d,isAllSearchSourcesSelected:h,selectedSymbolType:p,setSelectedSymbolType:f,setRenderSymbolSearchList:g,searchRef:y,cachedInputValue:b,setSearchSpreads:x,showSpreadActions:C,selectedItem:w,onSearchFeedReady:k,forceUpdate:E,placeholder:I,initialScreen:_,footer:N,searchInput:D,upperCaseEnabled:M,externalInput:T,handleKeyDown:L,customSearchSymbols:A}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),V=(0,r.useRef)(t);V.current=t;const q=(0,r.useRef)(new AbortController),[U,Z]=(0,r.useState)(0),[G,j]=(0,
|
||||
r.useState)("noop"),K=(0,r.useRef)(0),[Q,Y]=(0,r.useState)(b.current),X=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)({selectedIndexValue:-1,searchTokenValue:"",searchSpreadsValue:!0}),ne=(0,r.useRef)(null),re=(0,r.useRef)(null),{broker:oe=null,brokerId:se,brokerTitle:ae,isBrokerChecked:ie=!1,setIsBrokerChecked:le=(()=>{}),unhideSymbolSearchGroups:ce=""}={brokerId:void 0,brokerTitle:void 0};(0,r.useEffect)(()=>()=>{q.current.abort(),Ie()},[]),(0,r.useEffect)(()=>{(null==y?void 0:y.current)&&Y(y.current.value)},[]),(0,r.useEffect)(()=>{const e=y.current;if(e)return e.addEventListener("input",ge),e.addEventListener("focus",ke),e.addEventListener("select",fe),e.addEventListener("click",fe),e.addEventListener("keyup",Ee),T&&L&&e.addEventListener("keydown",L),()=>{e&&(e.removeEventListener("input",ge),e.removeEventListener("focus",ke),e.removeEventListener("select",fe),e.removeEventListener("click",fe),e.removeEventListener("keyup",Ee),T&&L&&e.removeEventListener("keydown",L))}},[L]),(0,r.useEffect)(()=>{Boolean(_)&&""===Q.trim()||(xe(Q,p,c),X.current&&(X.current.scrollTop=0))},[Q,p,c,ie,_]),(0,r.useEffect)(()=>{if(!w||!y.current)return;if(!u.enabled("show_spread_operators"))return y.current.value=w.symbol,void E();const e=R(w)?w.exchange:w.parent.exchange,t={name:w.symbol,exchange:e,prefix:w.prefix,fullName:w.full_name},[n,r]=(0,l.getNextSymbolInputValueAndPosition)(y.current,t,M);y.current.value=n,y.current.setSelectionRange(r,r),E()},[w]);const ue=(0,r.useCallback)(e=>k?k(e):e,[k]),de=null!=_?_:"div",he=Boolean(_)&&"symbolSearch"!==t,pe=null!=D?D:v.DialogSearch,me=(0,r.useMemo)(()=>({listRef:ee,resetRecommends:we,updateRecommends:xe,searchToken:Q,emptyTextClassName:ye.emptyText,isBrokerChecked:ie,symbolSearchState:G,currentMode:V}),[ee,Q,ie,G,V]);return r.createElement(H.SymbolSearchDialogBodyContext.Provider,{value:me},!(T&&"symbolSearch"===t)&&r.createElement(pe,{reference:y,className:s()(ye.search,M&&ye.upperCase),placeholder:I||(0,a.t)("Search")},C&&r.createElement($,{state:te,update:be})),he?r.createElement(de,null):r.createElement(Se,{token:Q,state:G,otherSymbolsCount:U,onListTouchMove:function(){var e;null===(e=y.current)||void 0===e||e.blur()},onChangeSymbolTypeFilter:function(e){const{value:t}=e;f(t),o(-1)},onResetFilters:function(){var e;f((0,P.getAllSymbolTypesValue)()),Ce&&d(Ce);le(!1),i||null===(e=y.current)||void 0===e||e.focus()},brokerTitle:ae,isBrokerChecked:ie,onBrokerCheckboxChange:function(e){le("on"!==e)},listRef:ee,listWrapRef:X}),N);function ve(){if(!y.current)return;const[e,t,n]=(0,l.getCurrentTokenParamsFromInput)(y.current,M);K.current=t,te.current={selectedIndexValue:-1,searchSpreadsValue:(0,l.isSpread)(n),searchTokenValue:e},ne.current||(ne.current=setTimeout(be,0))}function fe(){if(!y.current)return;const[,e]=(0,l.getCurrentTokenParamsFromInput)(y.current,M);e!==K.current&&ve()}function ge(){u.enabled("show_spread_operators")?ve():y.current&&(te.current={selectedIndexValue:-1,searchSpreadsValue:!1,searchTokenValue:y.current.value},ne.current||(ne.current=setTimeout(be,0)))}
|
||||
function be(){const{selectedIndexValue:e,searchTokenValue:t,searchSpreadsValue:n}=te.current;ne.current=null,(0,F.unstable_batchedUpdates)(()=>{x(n),o(e),Y(M?t.toUpperCase():t)})}async function xe(e,t,n){try{"noop"===G?j("loading"):(Ie(),re.current=setTimeout(()=>{j("loading")},500)),_e();const r=await async function(e,t,n,r){var o,s,a,i;const d=u.enabled("show_spread_operators")?(0,l.shortName)(t):null===(o=y.current)||void 0===o?void 0:o.value;let h;if(ie&&oe){const t=await(0,O.respectAbort)(e,oe.accountMetainfo());h=t.prefix}const p=u.enabled("show_spread_operators")?null!==(a=null!==(s=(0,l.getExchange)(t))&&void 0!==s?s:h)&&void 0!==a?a:null==r?void 0:r.getRequestExchangeValue():null==c?void 0:c.getRequestExchangeValue(),m=(0,l.getExchange)(t)||null===(i=r||c)||void 0===i?void 0:i.getRequestCountryValue(),v={serverHighlight:!1,text:d,exchange:p,country:m,type:n,lang:window.language||"",brokerId:se,onlyTradable:Boolean(se)&&ie,unhideSymbolSearchGroups:ce,signal:e},f=(0,W.getSearchRequestDelay)();void 0!==f&&await(0,O.delay)(e,f);return A?A(v):B(v)}(q.current.signal,e,t,n),o=ue(function(e,t=window.ChartApiInstance.symbolsGrouping()){var n;const r={},o=[];for(let s=0;s<e.length;++s){const a=e[s];if(a.prefix||Array.isArray(a.contracts))return e;const i=t[a.type];if(void 0===i){o.push(a);continue}const l=i.exec(a.symbol);if(l){const e=l[1];let t;r.hasOwnProperty(e)?t=r[e]:(t=o.length,r[e]=t,o.push({type:a.type,symbol:e,exchange:a.exchange,description:a.description,full_name:a.exchange+":"+e,contracts:[]})),null===(n=o[t].contracts)||void 0===n||n.push(a)}else o.push(a)}return o}(r));if(!o.length)return Ie(),void j("empty");Ie(),g(o),j("good")}catch(e){(0,O.skipAbortError)(e)}}function we(){_e(),j("empty"),Y(""),x(!1),Ie()}function ke(){"watchlist"===V.current&&(n("symbolSearch"),(0,J.trackEvent)("Watchlist","Mobile SS","Go to SS page"))}function Ee(e){switch((0,z.hashFromEvent)(e)){case 37:case 39:fe()}}function Ie(){re.current&&clearTimeout(re.current)}function _e(){q.current.abort(),q.current=new AbortController}}var Ee=n(64360),Ie=n(98749);function _e(e){const{theme:t=Ie}=e,{setMode:n,isMobile:o}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext);return r.createElement(p.Icon,{className:s()(e.className,t.button,!o&&t.desktop),icon:Ee,onClick:function(){n("symbolSearch")}})}var Ne=n(47670),He=n(58442),De=n(56840);function Me(e){const[t,n]=(0,r.useState)(()=>{const{defaultSearchSource:t,searchSources:n}=e,r=De.getValue("symboledit.exchangefilter","");return n.find(e=>e.value()===r)||t});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.exchangefilter",t.value())},[])]}function Te(e){const[t,n]=(0,r.useState)(()=>{if(1===e.types.length)return e.types[0].value;const t=De.getValue("symboledit.filter",(0,P.getAllSymbolTypesValue)());return e.types.find(e=>e.value===t)?t:(0,P.getAllSymbolTypesValue)()});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.filter",t)},[])]}var Le=n(36947),Ae=n(82708),Fe=n(6215);const Oe=(0,P.getAvailableSearchSources)(),Re=(0,
|
||||
P.getDefaultSearchSource)(),Be=u.enabled("uppercase_instrument_names");function Pe(e){var t;const{onClose:n,initialMode:o,defaultValue:s="",showSpreadActions:h,hideMarkedListFlag:p,selectSearchOnInit:v=!0,onSearchComplete:g,onSearchFeedReady:y,dialogTitle:b=(0,a.t)("Symbol Search"),placeholder:S,fullscreen:x,initialScreen:C,wrapper:w,dialog:k,contentItem:E,footer:I,searchInput:_,emptyState:N,autofocus:H,dialogWidth:D,onKeyDown:M,searchSourcesScreen:T,customSearchSymbols:L,isDisableFiltering:F}=e,O=(0,r.useMemo)(()=>F?[]:e.symbolTypes?e.symbolTypes:(0,P.getAvailableSymbolTypes)(),[]),W=void 0!==e.input,J=F?[]:Oe,[V,q]=(0,r.useState)(o),U=(0,r.useRef)(s),[Z,G]=Me({searchSources:J,defaultSearchSource:Re}),[j,K]=Te({types:O}),[Q,$]=(0,r.useState)([]),[Y,X]=(0,r.useState)(!1),[ee,te]=(0,r.useState)(-1),ne=(0,r.useRef)(null!==(t=e.input)&&void 0!==t?t:null),[re,oe]=(0,r.useState)(!1),se=(0,Le.useForceUpdate)(),[ae,ie]=(0,r.useState)(new Set),{broker:le=null,brokerId:ce,unhideSymbolSearchGroups:ue="",displayBrokerSymbol:de=!1}={brokerId:void 0};(0,r.useLayoutEffect)(()=>{var e;!(null==ne?void 0:ne.current)||!W&&Boolean(null===(e=ne.current)||void 0===e?void 0:e.value)||(W||"compare"===V||(ne.current.value=U.current),!H||W&&"symbolSearch"!==V||ne.current.focus())},[V]),(0,r.useEffect)(()=>{(null==ne?void 0:ne.current)&&v&&H&&ne.current.select()},[]);const he=(0,r.useMemo)(()=>Q.reduce((e,t)=>{const n=ze(t),r=ae.has(n);return e.push(t),r&&t.contracts&&e.push(...t.contracts.map(e=>({...e,parent:t}))),e},[]),[Q,ae]),pe=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;-1!==ee&&(null===(e=pe.current)||void 0===e||e.scrollIntoView({block:"nearest"}))},[ee,pe]);const me=(0,r.useMemo)(()=>he.map((e,t)=>{var n,r,o,s;if(R(e)){const o=ze(e),s=e.contracts?ae.has(o):void 0,a=t===ee;return{key:t,id:o,title:Je(e,de),description:e.description,isOffset:!1,onClick:xe.bind(null,e),providerId:e.provider_id,source:e.source,country:null===(n=e.country)||void 0===n?void 0:n.toLocaleLowerCase(),type:e.type,exchangeName:e.exchange,marketType:(0,Ne.marketType)(e.type,e.typespecs),isEod:null===(r=e.params)||void 0===r?void 0:r.includes("eod"),isExpanded:s,onExpandClick:e.contracts?Ce.bind(null,o):void 0,fullSymbolName:P.isOpenFirstContractEnabled&&e.contracts?He.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):He.QualifiedSources.fromSymbolSearchResult(e),itemRef:a?pe:void 0,isSelected:t===ee,hideMarkedListFlag:p,item:e,logoId:e.logoid,currencyLogoId:e["currency-logoid"],baseCurrencyLogoId:e["base-currency-logoid"],shortName:(0,Ae.safeShortName)(He.QualifiedSources.fromSymbolSearchResult(e)),currencyCode:e.currency_code}}{const{parent:n}=e,r=ze(n),a=t===ee;return{key:t,id:r+e.symbol,dangerousTitleHTML:Je(e,de),dangerousDescriptionHTML:`${n.description} (${e.description})`,isOffset:!0,isEod:null===(o=e.params)||void 0===o?void 0:o.includes("eod"),onClick:we.bind(null,e.parent,e),providerId:n.provider_id,country:null===(s=n.country)||void 0===s?void 0:s.toLowerCase(),type:n.type,exchangeName:n.exchange,marketType:(0,
|
||||
Ne.marketType)(n.type,e.typespecs),fullSymbolName:He.QualifiedSources.fromSymbolSearchResult(e.parent,e),itemRef:a?pe:void 0,isSelected:a,hideMarkedListFlag:p,item:e}}}),[Q,ae,V,ee,M]),ve=null!=k?k:qe,fe=ve!==qe&&!W,ge=(e,t)=>({mode:V,setMode:q,selectedSearchSource:Z,setSelectedSearchSource:G,isAllSearchSourcesSelected:f.isAllSearchSourcesSelected,selectedSymbolType:j,setSelectedSymbolType:K,selectedIndex:ee,setSelectedIndex:te,onClose:n,setRenderSymbolSearchList:$,searchRef:ne,cachedInputValue:U,searchSpreads:Y,setSearchSpreads:X,handleListWidth:Ee,isSmallWidth:re,feedItems:me,isMobile:e,showSpreadActions:h,selectSearchOnInit:v,isTablet:t,selectedItem:he[ee],onSearchFeedReady:y,forceUpdate:se,placeholder:S,initialScreen:C,toggleExpand:Ce,openedItems:ae,onSubmit:Fe,onSearchComplete:g,footer:I,symbolTypes:O,contentItem:E,searchInput:_,emptyState:N,autofocus:H,upperCaseEnabled:Be,externalInput:W,handleKeyDown:fe?void 0:De,customSearchSymbols:L,searchSources:J}),ye=null!=T?T:A,be="exchange"===V?{title:(0,a.t)("Sources"),dataName:"exchanges-search",render:()=>r.createElement(ye,{searchSources:J}),additionalHeaderElement:r.createElement(_e,null),additionalElementPos:"before"}:{title:b,dataName:"symbol-search-items-dialog",render:()=>r.createElement(ke,null),additionalElementPos:"after"},Se=null!=w?w:"div";return r.createElement(Se,null,r.createElement(c.MatchMediaMap,{rules:d.DialogBreakpoints},({TabletSmall:e,TabletNormal:t})=>r.createElement(m.SymbolSearchItemsDialogContext.Provider,{value:ge(e,t)},r.createElement(ve,{...be,fullScreen:x,onClose:n,onClickOutside:n,onKeyDown:fe?void 0:De,isOpened:!0}))));function xe(e){if(e.contracts)return P.isOpenFirstContractEnabled&&e.contracts.length?void we(e,e.contracts[0]):void Ce(ze(e));we(e)}function Ce(e){const t=new Set(ae);t.has(e)?t.delete(e):t.add(e),ie(t)}function we(e,t){const r=t||e,{exchange:o}=e;if(u.enabled("show_spread_operators")){const e={name:r.symbol,exchange:o,prefix:r.prefix,fullName:r.full_name};if(Y)return Ie(e),void se();if(ne.current&&ne.current.value.includes(","))return void Ie(e)}const s=[{resolved:!0,symbol:He.QualifiedSources.fromSymbolSearchResult(e,t),result:r}];g(s),n()}function Ee(e){oe("fixed"===D||e<=640)}function Ie(e){if(!ne.current)return;const[t,n]=(0,l.getNextSymbolInputValueAndPosition)(ne.current,e,Be);ne.current.value=t,ne.current.setSelectionRange(n,n),ne.current.focus()}function De(e){switch((0,z.hashFromEvent)(e)){case 38:if(e.preventDefault(),0===ee)return;if(-1===ee)return void te(0);te(ee-1);break;case 40:if(e.preventDefault(),ee===me.length-1)return;te(ee+1);break;case 37:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||!ae.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(M)||(e.preventDefault(),Ce(n)),o)return void(null==M||M(e,!0));break}case 39:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||ae.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(M)||(e.preventDefault(),Ce(n)),o)return void(null==M||M(e,!0));break}case 13:e.preventDefault(),Fe(!0)
|
||||
;break;case 27:e.preventDefault(),n()}null==M||M(e)}function Fe(e){if(!ne.current)return;const t=ne.current.value;if(u.enabled("show_spread_operators")&&Y&&t){if(t.includes(",")){const r=Ve(t);if(r.some(e=>!Pe(e)))return;return g(r.map(We)),void(e&&n())}if(!Pe(t))return;return g([{symbol:Be?t.toUpperCase():t,resolved:!1}]),void(e&&n())}if(t.includes(","))return g(Ve(t).map(We)),void(e&&n());if(-1!==ee){me[ee].onClick()}else{const r=Be?t.toUpperCase():t;if(r&&""!==r.trim()){const e=Ve(r);if(void 0!==ce&&-1===r.indexOf(":"))(function(e){let t=!1;return Promise.all(e.map(e=>-1!==e.indexOf(":")||t?Promise.resolve({symbol:e,resolved:!1}):(t=!0,async function(e){var t;null===(t=await(null==le?void 0:le.accountMetainfo()))||void 0===t||t.prefix;const n=await B({strictMatch:!0,serverHighlight:!1,text:e,lang:window.language||"",brokerId:ce,onlyTradable:!0,unhideSymbolSearchGroups:ue,exchange:void 0});if(0!==n.length){const e=n[0],{contracts:t}=e,r=t&&t.length>0?t[0]:void 0,o=e.prefix||e.exchange,s=r?r.symbol:e.symbol;if(o&&s)return{symbol:He.QualifiedSources.fromSymbolSearchResult(e,r),resolved:!0,result:e}}return{symbol:e,resolved:!1}}(e))))})(e).then(e=>g(e));else{const t=e.map(We);g(t)}}e&&n()}}function Pe(e){const t=(0,i.tokenize)(e),n=(0,l.validate)(t);if(n.errors.length||n.warnings.length)return!1;const r=me[ee];return!r||void 0===r.isExpanded||(r.onClick(),!1)}}function We(e){return{symbol:Be?e.toUpperCase():e,resolved:!1}}function Je(e,t){const{broker_symbol:n,symbol:r}=e;return`${r}${t&&n?` (${n})`:""}`}function ze(e){return e.symbol+e.exchange+e.description}function Ve(e){return e.split(",").map(e=>e.trim()).filter(e=>""!==e)}function qe(e){const{isMobile:t,isTablet:n}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext);return r.createElement(h.AdaptivePopupDialog,{...e,className:s()(Fe.dialog,!t&&(n?Fe.tabletDialog:Fe.desktopDialog)),backdrop:!0,draggable:!1})}},15983:(e,t,n)=>{"use strict";n.d(t,{validate:()=>a,flip:()=>i,stringifyTokens:()=>l,isSpread:()=>u,shortName:()=>h,getExchange:()=>p,getNextSymbolInputValueAndPosition:()=>v,getCurrentTokenParamsFromInput:()=>f});var r=n(67337),o=n(7785),s=n(81319);function a(e){const t={braceBalance:0,currentState:"var",warnings:[],errors:[]};if(r.enabled("charting_library_base")&&!r.enabled("show_spread_operators"))return t;let n="init";const o=[];for(let r=0;r<e.length;r++){const s=e[r];if("whitespace"!==s.type){if("incompleteSymbol"===s.type||"incompleteNumber"===s.type){const n=r!==e.length-1,o={status:n?"error":"incomplete",reason:"incomplete_token",offset:s.offset,token:s};if(n?t.errors.push(o):t.warnings.push(o),n)continue}switch(s.type){case"symbol":case"number":if("var"===n){t.errors.push({status:"error",reason:"unexpected_token",offset:s.offset,token:s});continue}n="var";break;case"plus":case"minus":case"multiply":case"divide":case"power":if("var"!==n){t.errors.push({status:"error",reason:"unexpected_token",offset:s.offset,token:s});continue}n="operator";break;case"openBrace":if("var"===n){t.errors.push({status:"error",reason:"unexpected_token",
|
||||
offset:s.offset,token:s});continue}o.push(s),n="init";break;case"closeBrace":if("var"!==n){t.errors.push({status:"error",reason:"unexpected_token",offset:s.offset,token:s});continue}o.pop()||t.errors.push({status:"error",reason:"unbalanced_brace",offset:s.offset,token:s}),n="var";break;case"unparsed":t.errors.push({status:"error",reason:"unparsed_entity",offset:s.offset,token:s})}}}for(t.braceBalance=o.length,"var"!==n&&t.warnings.push({status:"incomplete",token:e[e.length-1]});o.length;){const e=o.pop();e&&t.warnings.push({status:"incomplete",reason:"unbalanced_brace",offset:e.offset,token:e})}return t.currentState=n,t}function i(e){const t=function(e){let t,n=0,r=0;for(let o=0;o<e.length;o++){const s=e[o];if("whitespace"!==s.type)switch(n){case 0:if("number"!==s.type||1!=+s.value)return[];n=1;break;case 1:if(1!==n||"divide"!==s.type)return[];n=2,t=o+1;break;case 2:if("openBrace"===s.type)n=3,r=1;else if(c(s.type))return[];break;case 3:"openBrace"===s.type?r++:"closeBrace"===s.type&&(r--,r<=0&&(n=2))}}return e.slice(t)}(e);return t.length?d(t):d((0,o.tokenize)("1/("+l(e)+")"))}function l(e){return e.reduce((e,t)=>"symbol"===t.type&&o.symbolTokenEscapeRe.test(t.value)?e+`'${t.value}'`:e+t.value,"")}function c(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function u(e){return e.length>1&&e.some(e=>c(e.type))}function d(e){e=function(e){const t=[];for(const n of e)"whitespace"!==n.type&&t.push(n);return t}(e);const t=[],n=[];let r;for(let o=0;o<e.length;o++){const s=e[o];switch(s.type){case"plus":case"minus":case"multiply":case"divide":case"power":n.length&&n[n.length-1].minPrecedence>s.precedence&&(n[n.length-1].minPrecedence=s.precedence);break;case"openBrace":r={minPrecedence:1/0,openBraceIndex:o},n.push(r);break;case"closeBrace":{if(r=n.pop(),!r)break;const s=e[r.openBraceIndex-1],a=e[o+1],i=s&&("plus"===s.type||"multiply"===s.type);(!c(null==a?void 0:a.type)||(null==a?void 0:a.precedence)<=r.minPrecedence)&&(!c(null==s?void 0:s.type)||(null==s?void 0:s.precedence)<(null==r?void 0:r.minPrecedence)||(null==s?void 0:s.precedence)===(null==r?void 0:r.minPrecedence)&&i)&&(t.unshift(r.openBraceIndex),t.push(o),n.length&&n[n.length-1].minPrecedence>r.minPrecedence&&(n[n.length-1].minPrecedence=r.minPrecedence))}}}for(let n=t.length;n--;)e.splice(t[n],1);return e}function h(e){return d((0,o.tokenize)(e)).reduce((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,n]=m(t);return n?e+n:e},"")}function p(e){const t=function(e){const t=(0,o.tokenize)(e),n=[];return t.forEach(e=>{if("symbol"!==e.type)return;const[t]=m(e);t&&n.push(t)}),n}(e);if(1===t.length)return t[0]}function m(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}function v(e,t,n){const r=e.value,[a,i]=f(e,n),l=(0,s.getSymbolFullName)(t),c=o.symbolTokenEscapeRe.test(l)?`'${l}'`:l;return[r.substring(0,i)+c+r.substring(i+a.length),i+c.length]}function f(e,t){const{value:n,selectionStart:r}=e,s=(0,o.tokenize)(t?n.toUpperCase():n),a=function(e,t){for(let n=0;n<e.length;n++){
|
||||
const r=e[n],o="symbol"===r.type||"incompleteSymbol"===r.type||"number"===r.type;if(r.offset<=t&&t<=r.offset+r.value.length&&o)return r}return null}(s,r||0);return[(null==a?void 0:a.value)||"",a?a.offset:n.length,s]}},81319:(e,t,n)=>{"use strict";n.d(t,{exchangeSelectDisabled:()=>p,getAllSymbolTypesValue:()=>h,getAvailableExchanges:()=>c,getAvailableSearchSources:()=>l,getAvailableSymbolTypes:()=>d,getDefaultSearchSource:()=>i,getSymbolFullName:()=>a,isOpenFirstContractEnabled:()=>m});var r=n(28353),o=n(20882);class s{constructor(e){this._exchange=e}value(){return this._exchange.value}name(){return(0,o.isAllSearchSourcesSelected)(this)?(0,r.t)("All sources"):this._exchange.name}description(){return this._exchange.desc}country(){return this._exchange.country}providerId(){return this._exchange.providerId}group(){return this._exchange.group}includes(e){return function(e,t){const n=t.toLowerCase(),{name:r,desc:o,searchTerms:s}=e;return r.toLowerCase().includes(n)||o.toLowerCase().includes(n)||void 0!==s&&s.some(e=>e.toLowerCase().includes(n))}(this._exchange,e)}getRequestExchangeValue(){return this._exchange.value}getRequestCountryValue(){}}function a(e){if(e.fullName)return e.fullName;let t;return t=e.prefix||e.exchange?(e.prefix||e.exchange)+":"+e.name:e.name,t.replace(/<\/?[^>]+(>|$)/g,"")}function i(){const e=l();return e.find(o.isAllSearchSourcesSelected)||e[0]||null}function l(){return(0,o.createSearchSources)(s,u())}function c(){return u()}function u(){return window.ChartApiInstance.supportedExchangesList().map(e=>({...e,country:"",providerId:"",flag:""}))}function d(){return window.ChartApiInstance.supportedSymbolsTypes()}function h(){return""}function p(){return!1}const m=!1},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>r,dialogsOpenerManager:()=>o});class r{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const o=new r},82708:(e,t,n)=>{"use strict";n.d(t,{safeShortName:()=>o});var r=n(82029);function o(e){try{return(0,r.shortName)(e)}catch(t){return e}}},7785:(e,t,n)=>{"use strict";n.d(t,{symbolTokenEscapeRe:()=>s,tokenize:()=>l});var r=n(67337);const o=r.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,s=/[+\-/*]/,a={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:o,incompleteSymbol:/'[^']*/,separatorPrefix:"###",openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},i=new RegExp(Object.values(a).map(e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t}).filter(e=>""!==e).concat(".").join("|"),"g");function l(e){if(!e)return[]
|
||||
;const t=[],n=Object.keys(a);let r;for(;r=i.exec(e);){let e=!1;for(let o=n.length;o--;)if(r[o+1]){n[o]&&t.push({value:r[o+1],type:n[o],precedence:0,offset:r.index}),e=!0;break}e||t.push({value:r[0],type:"unparsed",precedence:0,offset:r.index})}return t}},19785:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>o,createRegExpList:()=>s,getHighlightedChars:()=>a});var r=n(80643);function o(e){const{data:t,rules:n,queryString:o,isPreventedFromFiltering:s,primaryKey:a,secondaryKey:i=a,optionalPrimaryKey:l}=e;return t.map(e=>{const t=l&&e[l]?e[l]:e[a],s=e[i];let c,u=0;return n.forEach(e=>{var n,a,i,l;const{re:d,fullMatch:h}=e;return d.lastIndex=0,t&&t.toLowerCase()===o.toLowerCase()?(u=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,r.isString)(t)&&h.test(t)?(u=2,void(c=null===(a=t.match(h))||void 0===a?void 0:a.index)):(0,r.isString)(s)&&h.test(s)?(u=1,void(c=null===(i=s.match(h))||void 0===i?void 0:i.index)):void((0,r.isString)(s)&&d.test(s)&&(u=1,c=null===(l=s.match(d))||void 0===l?void 0:l.index))}),{matchPriority:u,matchIndex:c,item:e}}).filter(e=>s||e.matchPriority).sort((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0}).map(({item:e})=>e)}function s(e,t){const n=[],r=e.toLowerCase(),o=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+i(e):i(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${i(e)})`,"i"),re:new RegExp("^"+o,"i"),reserveRe:new RegExp(o,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function a(e,t,n){const r=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:o,reserveRe:s}=e;n.lastIndex=0,o.lastIndex=0;const a=n.exec(t),i=a||o.exec(t)||s&&s.exec(t);if(e.fuzzyHighlight=!a,i)if(e.fuzzyHighlight){let e=i.index;for(let t=1;t<i.length;t++){const n=i[t],o=i[t].length;if(t%2){const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");r[t?e+1:e]=!0}e+=o}}else for(let e=0;e<i[0].length;e++)r[i.index+e]=!0}),r):r}function i(e){return e.replace(/[!-/[-^{-}]/g,"\\$&")}},24637:(e,t,n)=>{"use strict";n.d(t,{HighlightedText:()=>i});var r=n(59496),o=n(97754),s=n(19785),a=n(81524);function i(e){const{queryString:t,rules:n,text:i,className:l}=e,c=(0,r.useMemo)(()=>(0,s.getHighlightedChars)(t,i,n),[t,n,i]);return r.createElement(r.Fragment,null,c.length?i.split("").map((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:o(a.highlighted,l)},e):r.createElement("span",null,e))):i)}},78036:(e,t,n)=>{"use strict";n.d(t,{useEnsuredContext:()=>s});var r=n(59496),o=n(88537);function s(e){return(0,o.ensureNotNull)((0,r.useContext)(e))}},36947:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>o});var r=n(59496);const o=()=>{const[,e]=(0,r.useReducer)((e,t)=>e+1,0);return e}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var r=n(59496),o=n(39640);function s(e){
|
||||
const{click:t,mouseDown:n,touchEnd:s,touchStart:a,handler:i,reference:l,ownerDocument:c=document}=e,u=(0,r.useRef)(null),d=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:s,touchStart:a},r=l?l.current:u.current;return(0,o.addOutsideEventListener)(d.current,r,i,c,e)},[t,n,s,a,i]),l||u}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>o});var r=n(59496);const o=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,o="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[s,a]=(0,r.useState)(n?n.value():o);return(t?r.useLayoutEffect:r.useEffect)(()=>{if(n){a(n.value());const e=e=>a(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),s}},84877:(e,t,n)=>{"use strict";n.d(t,{MatchMediaMap:()=>a});var r=n(59496),o=n(66783),s=n.n(o);class a extends r.Component{constructor(e){super(e),this._handleMediaChange=()=>{const e=l(this.state.queries,(e,t)=>t.matches);let t=!1;for(const n in e)if(e.hasOwnProperty(n)&&this.state.matches[n]!==e[n]){t=!0;break}t&&this.setState({matches:e})};const{rules:t}=this.props;this.state=i(t)}shouldComponentUpdate(e,t){return!s()(e,this.props)||(!s()(t.rules,this.state.rules)||!s()(t.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(e,t){s()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(e,t){if(s()(e.rules,t.rules))return null;const{rules:n}=e;return i(n)}_migrate(e,t){null!==e&&l(e,(e,t)=>{t.removeListener(this._handleMediaChange)}),null!==t&&l(t,(e,t)=>{t.addListener(this._handleMediaChange)})}}function i(e){const t=l(e,(e,t)=>window.matchMedia(t));return{queries:t,matches:l(t,(e,t)=>t.matches),rules:{...e}}}function l(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(r,e[r]));return n}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>o});var r=n(59496);class o extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>a});var r=n(59496),o=n(97754),s=n(91626);function a(e){return r.createElement("div",{className:o(s.separator,e.className)})}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(58095);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict"
|
||||
;n.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>i});var r=n(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const a=new WeakMap;function i(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(a.get(t));{const t=new s(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return a.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(59496),o=n(65718);function s(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:r.createElement(o.Portal,null,s)}}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var r=n(59496),o=n(87995),s=n(9423),a=n(88216),i=n(50655);class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",
|
||||
o.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=i.SlotContext;const c=r.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>o,SlotContext:()=>s});var r=n(59496);class o extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=r.createContext(null)},61074:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>a});var r=n(59496),o=n(97754),s=n(33134);n(24780);function a(e){const t=o(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+s.spinnerSizeMap[e.size||s.DEFAULT_SIZE]);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},10381:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetCaret:()=>l});var r=n(59496),o=n(97754),s=n(9745),a=n(40367),i=n(81268);function l(e){const{dropped:t,className:n}=e;return r.createElement(s.Icon,{className:o(n,a.icon,{[a.dropped]:t}),icon:i})}},81268:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 8" width="16" height="8"><path fill="currentColor" d="M0 1.475l7.396 6.04.596.485.593-.49L16 1.39 14.807 0 7.393 6.122 8.58 6.12 1.186.08z"/></svg>'},64360:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentcolor" stroke-width="1.2" d="M17 21l-7.5-7.5L17 6"/></svg>'},29601:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M2.5 14.5c1.68-1.26 3.7-2 6.5-2s4.91.74 6.5 2m-13-11c1.68 1.26 3.7 2 6.5 2s4.91-.74 6.5-2"/><circle stroke="currentColor" cx="9" cy="9" r="8.5"/><path stroke="currentColor" d="M13.5 9c0 2.42-.55 4.58-1.4 6.12-.87 1.56-1.98 2.38-3.1 2.38s-2.23-.82-3.1-2.38c-.85-1.54-1.4-3.7-1.4-6.12s.55-4.58 1.4-6.12C6.77 1.32 7.88.5 9 .5s2.23.82 3.1 2.38c.85 1.54 1.4 3.7 1.4 6.12z"/></svg>'},37257:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="currentColor"><path d="m.58 1.42.82-.82 15 15-.82.82z"/><path d="m.58 15.58 15-15 .82.82-15 15z"/></svg>'},70029:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#B2B5BE" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},72802:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#131722" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},5639:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},88142:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 5l3.5 3.5L8 12"/></svg>'},20832:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h9"/><circle fill="currentColor" cx="7" cy="3" r="1"/><circle fill="currentColor" cx="7" cy="10" r="1"/></svg>'},19586:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" stroke-linejoin="round" d="M3.5 10V2.5L1 5"/><path stroke-linecap="square" d="M1.5 10.5h4"/><path d="M8 12l3-11"/></g></svg>'},21740:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8"/></svg>'},43088:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 10l7-7M3 3l7 7"/></svg>'},38927:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8m-4-4v8"/></svg>'},56584:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 7l3.5-3.5L10 7"/></svg>'}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="121" height="121" viewBox="0 0 121 121" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M34.58 99.52c0-4.55-2.57-9.6-6.8-11.3A40.23 40.23 0 1 1 78.92 33.2 2.3 2.3 0 0 0 81 34.47a29.3 29.3 0 0 1 .1 58.6h-.15c-3.13-.02-6.07 3.26-6.07 6.39a20.14 20.14 0 1 1-40.29.06z" fill="#26A69A"/><path d="M59.04 37.8a4 4 0 0 1 6.92 0L79.4 61.07a4 4 0 0 1-3.46 6H49.07a4 4 0 0 1-3.46-6l13.43-23.25z" fill="#D32F2F"/><path d="M55.77 26c0-5.95 0-15 14.4-15H31.92c-8.51 0-9.63 11-9.12 15l1.88-.9a9.36 9.36 0 0 1 8.46.22c.8.43 1.74.56 2.64.36l11.7-2.61 8.29 2.92z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M31.46 11H69.5a16 16 0 0 1 16 16v83h-37a10 10 0 0 1-10-10V26.22c0-7.75-.91-13.3-7.04-15.24z" fill="#1E222D"/><path d="M31.46 11v-1a1 1 0 0 0-.3 1.94l.3-.95zm54.04 99v1h1v-1h-1zM31.46 12H69.5v-2H31.46v2zM84.5 27v83h2V27h-2zm1 82h-37v2h37v-2zm-46-9V26.22h-2V100h2zm0-73.77c0-3.88-.22-7.37-1.29-10.16a9.6 9.6 0 0 0-6.45-6.03l-.6 1.9a7.61 7.61 0 0 1 5.18 4.85c.93 2.4 1.16 5.57 1.16 9.44h2zm9 82.76a9 9 0 0 1-9-9h-2a11 11 0 0 0 11 11v-2zm21-97a15 15 0 0 1 15 15h2a17 17 0 0 0-17-17v2z" fill="#B2B5BE"/><path d="M61.76 96.7c-.1 5.82-1.3 13.3-14.4 13.3h48.25c7.63 0 9.32-8.82 9.23-13.54-.01-.7-.78-1.1-1.4-.75l-2.12 1.2a4 4 0 0 1-3.9 0l-1.47-.83a4 4 0 0 0-3.9 0l-1.47.82a4 4 0 0 1-3.9 0l-1.47-.82a4 4 0 0 0-3.9 0l-1.47.82a4 4 0 0 1-3.9 0l-1.48-.82a4 4 0 0 0-3.9 0l-1.47.82a4 4 0 0 1-3.9 0l-1.93-1.08c-.67-.37-1.48.11-1.5.87z" fill="#1E222D"/><path d="M61.76 96.7l-1-.02 1 .01zm43.08-.24l-1 .02 1-.02zm-19.63-.38l-.5.87.5-.87zm1.47.82l.48-.87-.48.87zm3.9 0l-.49-.87.49.87zm1.47-.82l-.49-.87.49.87zm-17.59 0l.5-.87-.5.87zm1.47.82l-.48.87.48-.87zm3.9 0l-.48-.87.49.87zm1.48-.82l-.5-.87.5.87zm-18.05-.26l-.49.87.49-.87zm1.93 1.08l.49-.87-.49.87zm3.9 0l.5.87-.5-.87zm1.47-.82l.5.87-.5-.87zm25.39 0l-.49.87.49-.87zm1.47.82l.49-.87-.5.87zm3.9 0l-.49-.87.49.87zm2.13-1.19l.48.88-.48-.88zM47.36 111c6.74 0 10.67-1.93 12.87-4.86 2.15-2.87 2.48-6.49 2.53-9.42l-2-.03c-.05 2.89-.39 5.92-2.13 8.24-1.7 2.26-4.91 4.07-11.27 4.07v2zm56.48-14.5c.04 2.26-.35 5.47-1.62 8.07-1.25 2.56-3.29 4.43-6.6 4.43v2c4.3 0 6.92-2.53 8.4-5.55a20.62 20.62 0 0 0 1.82-9l-2 .04zm-8.23 12.5H47.36v2h48.25v-2zm-10.9-12.04l1.48.82.97-1.74-1.47-.82-.97 1.74zm6.36.82l1.47-.82-.98-1.74-1.47.82.98 1.74zm-17.1-.82l1.48.82.97-1.74-1.47-.82-.97 1.74zm6.35.82l1.47-.82-.97-1.74-1.47.82.97 1.74zM62.77 96.7l1.93 1.08.98-1.74-1.93-1.08-.98 1.74zm6.81 1.08l1.47-.82-.97-1.74-1.47.82.97 1.74zm25.88-.82l1.47.82.98-1.74-1.47-.82-.98 1.74zm6.35.82l2.12-1.18-.97-1.75-2.13 1.19.98 1.74zm-4.88 0a5 5 0 0 0 4.88 0l-.98-1.74a3 3 0 0 1-2.92 0l-.98 1.74zm-32.23 0a5 5 0 0 0 4.88 0l-.97-1.74a3 3 0 0 1-2.93 0l-.98 1.74zm10.75 0a5 5 0 0 0 4.87 0l-.97-1.74a3 3 0 0 1-2.93 0l-.97 1.74zm10.74 0a5 5 0 0 0 4.88 0l-.98-1.74a3 3 0 0 1-2.93 0l-.97 1.74zm-11.24-2.56a5 5 0 0 0-4.87 0l.97 1.74a3 3 0 0 1 2.93 0l.97-1.74zm10.74 0a5 5 0 0 0-4.87 0l.97 1.74a3 3 0 0 1 2.93 0l.97-1.74zm20.15 1.24c-.03-1.56-1.68-2.28-2.88-1.61l.97 1.75c.01 0 0 0 0 0l-.03-.01a.12.12 0 0 1-.04-.04.14.14 0 0 1-.02-.05l2-.04zm-13.3.5a3 3 0 0 1 2.92 0l.98-1.74a5 5 0 0 0-4.88 0l.98 1.74zm-29.78-.24l.01-.01.98-1.75a2.01 2.01 0 0 0-2.99 1.73l2 .03z" fill="#B2B5BE"/><path d="M48.5 21h28M48.5 28h28M48.51 78.81H76.6M48.5 87h28" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/><circle cx="62.5" cy="53.92" r="17" fill="#00897B"/><path d="M17.82 39.22a2 2 0 0 1 3.75 0l1.02 2.74a2 2 0 0 0 1.18 1.18l2.74 1.01a2 2 0 0 1 0 3.75l-2.74 1.02a2 2 0 0 0-1.18 1.18l-1.02 2.74a2 2 0 0 1-3.75 0l-1.01-2.74a2 2 0 0 0-1.19-1.18l-2.74-1.02a2 2 0 0 1 0-3.75l2.74-1.01a2 2 0 0 0 1.19-1.18l1.01-2.74zM104.3 63.54a1.5 1.5 0 0 1 2.8 0l.75 2.02c.15.4.48.73.89.88l2.02.75a1.5 1.5 0 0 1 0 2.81l-2.02.75a1.5 1.5 0 0 0-.89.89l-.74 2.01a1.5 1.5 0 0 1-2.82 0l-.74-2.01a1.5 1.5 0 0 0-.89-.89l-2.02-.75a1.5 1.5 0 0 1 0-2.81l2.02-.75c.41-.15.73-.47.89-.88l.74-2.02z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.71 91.23a1 1 0 1 0-2 0v3.75a1 1 0 1 0 2 0v-3.75zm0 9.16a1 1 0 1 0-2 0v3.75a1 1 0 0 0 2 0v-3.75zm-8.53-2.71a1 1 0 0 1 1-1h3.75a1 1 0 0 1 0 2H6.18a1 1 0 0 1-1-1zm10.16-1a1 1 0 1 0 0 2h3.75a1 1 0 1 0 0-2h-3.75z" fill="#B2B5BE"/><path d="M55.04 54.4l5.31 5.32L71.6 48.47" stroke="#D1D4DC" stroke-width="2" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1 +0,0 @@
|
||||
.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 2px 0 6px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-right:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651}
|
||||
@@ -1 +0,0 @@
|
||||
.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 6px 0 2px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-left:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651}
|
||||
@@ -1,12 +1,13 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{97639:o=>{o.exports={button:"button-G7o5fBfa",hover:"hover-G7o5fBfa",bg:"bg-G7o5fBfa",icon:"icon-G7o5fBfa",isActive:"isActive-G7o5fBfa",isTransparent:"isTransparent-G7o5fBfa",isGrayed:"isGrayed-G7o5fBfa",isHidden:"isHidden-G7o5fBfa"}},16534:(o,e,l)=>{"use strict";l.d(e,{ToolButton:()=>t});var i=l(59496),n=l(97754),a=l(9745),s=l(90186),c=l(97639);function t(o){const{id:e,activeClass:l,children:t,className:r,icon:T,isActive:d,isGrayed:L,isHidden:h,isTransparent:z,theme:m=c,onClick:v,title:g,buttonHotKey:w,tooltipPosition:N="vertical"}=o;return i.createElement("div",{id:e,className:n(m.button,r,d&&l,{"apply-common-tooltip":Boolean(g),"common-tooltip-vertical":Boolean(g)&&"vertical"===N,[m.isActive]:d,[m.isGrayed]:L,[m.isHidden]:h,[m.isTransparent]:z}),onClick:v,title:g,"data-role":"button","data-tooltip-hotkey":w,...(0,s.filterDataProps)(o)},i.createElement("div",{className:m.bg},T&&("string"==typeof T?i.createElement(a.Icon,{className:m.icon,icon:T}):i.createElement("span",{className:m.icon},T)),t))}},10458:(o,e,l)=>{"use strict";l.d(e,{drawingToolsIcons:()=>i});const i={SyncDrawing:l(69786),arrow:l(69725),cursor:l(52263),dot:l(71908),drawginmode:l(47970),drawginmodeActive:l(87518),eraser:l(94239),group:l(99042),hideAllDrawings:l(59266),hideAllDrawingsActive:l(48111),hideAllIndicators:l(77222),hideAllIndicatorsActive:l(39056),hideAllDrawingTools:l(28407),hideAllDrawingToolsActive:l(43969),hideAllPositionsTools:l(99186),hideAllPositionsToolsActive:l(18968),lockAllDrawings:l(56717),lockAllDrawingsActive:l(28358),magnet:l(32709),strongMagnet:l(76025),measure:l(47291),removeAllDrawingTools:l(78679),showObjectTree:l(17748),zoom:l(29469),"zoom-out":l(23794)}},92469:(o,e,l)=>{"use strict";l.d(e,{lineToolsInfo:()=>m});var i=l(28353),n=l(61814),a=(l(94419),l(45749)),s=l(10458),c=l(60870),t=l(68335);const r=(0,t.humanReadableModifiers)(t.Modifiers.Shift,!1),T=(0,t.humanReadableModifiers)(t.Modifiers.Alt,!1),d=(0,t.humanReadableModifiers)(t.Modifiers.Mod,!1),L={keys:[r],text:(0,i.t)("{hotKey_0} — drawing a straight line at angles of 45")},h={keys:[r],text:(0,i.t)("{hotKey_0} — circle")},z={keys:[r],text:(0,i.t)("{hotKey_0} — square")},m={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:c.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:c.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:c.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:c.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkLeft},LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight,
|
||||
localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:c.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:c.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:c.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:c.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:c.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:c.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:c.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:c.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:c.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange,localizedName:c.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:c.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:c.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:c.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:c.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:c.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:c.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:c.lineToolsLocalizedNames.LineToolEllipse,hotKey:(0,n.hotKeySerialize)(h)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:c.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:c.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:c.lineToolsLocalizedNames.LineToolFibCircles,hotKey:(0,n.hotKeySerialize)(h)},LineToolFibRetracement:{icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:c.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs,
|
||||
localizedName:c.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:c.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:(0,n.hotKeySerialize)(z)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:c.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:c.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:c.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:c.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:a.lineToolsIcons.LineToolImage,localizedName:c.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:c.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:(0,n.hotKeySerialize)(L)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:c.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:c.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:c.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:c.lineToolsLocalizedNames.LineToolGannFan},LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:c.lineToolsLocalizedNames.LineToolGannSquare,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:c.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:c.lineToolsLocalizedNames.LineToolHorzLine,hotKey:(0,n.hotKeySerialize)({keys:[T,"H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:c.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:c.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:c.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:c.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:c.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:c.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:c.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:(0,n.hotKeySerialize)(L)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan,localizedName:c.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork,
|
||||
localizedName:c.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{icon:a.lineToolsIcons.LineToolPolyline,localizedName:c.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:c.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:c.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:c.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:c.lineToolsLocalizedNames.LineToolPriceNote,hotKey:(0,n.hotKeySerialize)(L)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:c.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:c.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:c.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:c.lineToolsLocalizedNames.LineToolRectangle,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — square")})},LineToolCircle:{icon:a.lineToolsIcons.LineToolCircle,localizedName:c.lineToolsLocalizedNames.LineToolCircle},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:c.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong,localizedName:c.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:c.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:c.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:c.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:(0,n.hotKeySerialize)(L)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:c.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:c.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:c.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:c.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:c.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:c.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:c.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{
|
||||
icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:c.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,localizedName:c.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:c.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:c.lineToolsLocalizedNames.LineToolTrendLine,hotKey:(0,n.hotKeySerialize)(L)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:c.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:c.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:c.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:c.lineToolsLocalizedNames.LineToolVertLine,hotKey:(0,n.hotKeySerialize)({keys:[T,"V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:c.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:c.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:s.drawingToolsIcons.SyncDrawing,iconActive:s.drawingToolsIcons.SyncDrawingActive,localizedName:(0,i.t)("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:s.drawingToolsIcons.arrow,localizedName:(0,i.t)("Arrow")},cursor:{icon:s.drawingToolsIcons.cursor,localizedName:(0,i.t)("Cross")},dot:{icon:s.drawingToolsIcons.dot,localizedName:(0,i.t)("Dot")},drawginmode:{icon:s.drawingToolsIcons.drawginmode,iconActive:s.drawingToolsIcons.drawginmodeActive,localizedName:(0,i.t)("Stay in Drawing Mode")},eraser:{icon:s.drawingToolsIcons.eraser,localizedName:(0,i.t)("Eraser")},group:{icon:s.drawingToolsIcons.group,localizedName:(0,i.t)("Show Hidden Tools")},hideAllDrawings:{icon:s.drawingToolsIcons.hideAllDrawings,iconActive:s.drawingToolsIcons.hideAllDrawingsActive,localizedName:(0,i.t)("Hide All Drawing Tools"),hotKey:(0,n.hotKeySerialize)({keys:[d,T,"H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:s.drawingToolsIcons.lockAllDrawings,iconActive:s.drawingToolsIcons.lockAllDrawingsActive,localizedName:(0,i.t)("Lock All Drawing Tools")},magnet:{icon:s.drawingToolsIcons.magnet,localizedName:(0,i.t)("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:(0,n.hotKeySerialize)({keys:[d],text:"{0}"})},measure:{icon:s.drawingToolsIcons.measure,localizedName:(0,i.t)("Measure"),hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} + Click on the chart")})},removeAllDrawingTools:{icon:s.drawingToolsIcons.removeAllDrawingTools,localizedName:(0,i.t)("Remove Drawings")},showObjectsTree:{icon:s.drawingToolsIcons.showObjectTree,localizedName:(0,i.t)("Show Object Tree")},zoom:{
|
||||
icon:s.drawingToolsIcons.zoom,localizedName:(0,i.t)("Zoom In")},"zoom-out":{icon:s.drawingToolsIcons["zoom-out"],localizedName:(0,i.t)("Zoom Out")}};m.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:c.lineToolsLocalizedNames.LineToolGhostFeed}},89377:(o,e,l)=>{"use strict";l.d(e,{LinetoolsFavoritesStore:()=>n});var i,n,a=l(2872),s=l.n(a),c=l(56840);!function(o){function e(){o.favorites=[];(0,c.getJSON)("chart.favoriteDrawings",[]).forEach(e=>{l(e.tool||e)&&o.favorites.push(e.tool||e)}),o.favoritesSynced.fire()}function l(o){return"string"==typeof o&&""!==o}o.favorites=[],o.favoritesSynced=new(s()),o.favoriteIndex=function(e){return o.favorites.indexOf(e)},o.isValidLineToolName=l,o.saveFavorites=function(e){(0,c.setJSON)("chart.favoriteDrawings",o.favorites,e)},e(),c.onSync.subscribe(null,e)}(i||(i={})),function(o){function e(o){return i.isValidLineToolName(o)}function l(){return i.favorites.length}function n(o){return-1!==i.favoriteIndex(o)}o.favoriteAdded=new(s()),o.favoriteRemoved=new(s()),o.favoriteMoved=new(s()),o.favoritesSynced=i.favoritesSynced,o.favorites=function(){return i.favorites.slice()},o.isValidLineToolName=e,o.favoritesCount=l,o.favorite=function(o){return o<0||o>=l()?"":i.favorites[o]},o.addFavorite=function(l,a){return!(n(l)||!e(l))&&(i.favorites.push(l),i.saveFavorites(a),o.favoriteAdded.fire(l),!0)},o.removeFavorite=function(e,l){const n=i.favoriteIndex(e);return-1!==n&&(i.favorites.splice(n,1),i.saveFavorites(l),o.favoriteRemoved.fire(e),!0)},o.isFavorite=n,o.moveFavorite=function(n,a,s){if(a<0||a>=l()||!e(n))return!1;const c=i.favoriteIndex(n);return-1!==c&&a!==c&&(i.favorites.splice(c,1),i.favorites.splice(a,0,n),i.saveFavorites(s),o.favoriteMoved.fire(n,c,a),!0)}}(n||(n={}))},99042:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30" height="30"><path fill="currentColor" d="M5.5 13A2.5 2.5 0 0 0 3 15.5 2.5 2.5 0 0 0 5.5 18 2.5 2.5 0 0 0 8 15.5 2.5 2.5 0 0 0 5.5 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5A2.5 2.5 0 0 0 15 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 15 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0-2.5-2.5z"/></svg>'},69725:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.682 16.09l3.504 6.068 1.732-1-3.497-6.057 3.595-2.1L8 7.74v10.512l3.682-2.163zm-.362 1.372L7 20V6l12 7-4.216 2.462 3.5 6.062-3.464 2-3.5-6.062z"/></svg>'},52263:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path d="M18 15h8v-1h-8z"/><path d="M14 18v8h1v-8zM14 3v8h1v-8zM3 15h8v-1h-8z"/></g></svg>'},71908:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><circle fill="currentColor" cx="14" cy="14" r="3"/></svg>'},87518:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M23.002 23C23 23 23 18.003 23 18.003L15.998 18C16 18 16 22.997 16 22.997l7.002.003zM15 18.003A1 1 0 0 1 15.998 17h7.004c.551 0 .998.438.998 1.003v4.994A1 1 0 0 1 23.002 24h-7.004A.993.993 0 0 1 15 22.997v-4.994z"/><path d="M19 20h1v2h-1z"/><path fill-rule="nonzero" d="M22 17.5v-2a2.5 2.5 0 0 0-5 0v2h1v-2a1.5 1.5 0 0 1 3 0v2h1z"/><g fill-rule="nonzero"><path d="M3 14.707A1 1 0 0 1 3.293 14L14.439 2.854a1.5 1.5 0 0 1 2.122 0l2.585 2.585a1.5 1.5 0 0 1 0 2.122L8 18.707a1 1 0 0 1-.707.293H4a1 1 0 0 1-1-1v-3.293zm1 0V18h3.293L18.439 6.854a.5.5 0 0 0 0-.708l-2.585-2.585a.5.5 0 0 0-.708 0L4 14.707z"/><path d="M13.146 4.854l4 4 .708-.708-4-4zm-9 9l4 4 .708-.708-4-4z"/><path d="M15.146 6.146l-9 9 .708.708 9-9z"/></g></g></svg>'},47970:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M23.002 23C23 23 23 18.003 23 18.003L15.998 18C16 18 16 22.997 16 22.997l7.002.003zM15 18.003A1 1 0 0 1 15.998 17h7.004c.551 0 .998.438.998 1.003v4.994A1 1 0 0 1 23.002 24h-7.004A.993.993 0 0 1 15 22.997v-4.994z"/><path d="M19 20h1v2h-1z"/><path fill-rule="nonzero" d="M22 14.5a2.5 2.5 0 0 0-5 0v3h1v-3a1.5 1.5 0 0 1 3 0v.5h1v-.5z"/><g fill-rule="nonzero"><path d="M3 14.707A1 1 0 0 1 3.293 14L14.439 2.854a1.5 1.5 0 0 1 2.122 0l2.585 2.585a1.5 1.5 0 0 1 0 2.122L8 18.707a1 1 0 0 1-.707.293H4a1 1 0 0 1-1-1v-3.293zm1 0V18h3.293L18.439 6.854a.5.5 0 0 0 0-.708l-2.585-2.585a.5.5 0 0 0-.708 0L4 14.707z"/><path d="M13.146 4.854l4 4 .708-.708-4-4zm-9 9l4 4 .708-.708-4-4z"/><path d="M15.146 6.146l-9 9 .708.708 9-9z"/></g></g></svg>'},94239:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 31" width="29" height="31"><g fill="currentColor" fill-rule="nonzero"><path d="M15.3 22l8.187-8.187c.394-.394.395-1.028.004-1.418l-4.243-4.243c-.394-.394-1.019-.395-1.407-.006l-11.325 11.325c-.383.383-.383 1.018.007 1.407l1.121 1.121h7.656zm-9.484-.414c-.781-.781-.779-2.049-.007-2.821l11.325-11.325c.777-.777 2.035-.78 2.821.006l4.243 4.243c.781.781.78 2.048-.004 2.832l-8.48 8.48h-8.484l-1.414-1.414z"/><path d="M13.011 22.999h7.999v-1h-7.999zM13.501 11.294l6.717 6.717.707-.707-6.717-6.717z"/></g></svg>'},32709:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M14 10a2 2 0 0 0-2 2v11H6V12c0-4.416 3.584-8 8-8s8 3.584 8 8v11h-6V12a2 2 0 0 0-2-2zm-3 2a3 3 0 0 1 6 0v10h4V12c0-3.864-3.136-7-7-7s-7 3.136-7 7v10h4V12z"/><path d="M6.5 18h5v1h-5zm10 0h5v1h-5z"/></g></svg>'},47291:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M2 9.75a1.5 1.5 0 0 0-1.5 1.5v5.5a1.5 1.5 0 0 0 1.5 1.5h24a1.5 1.5 0 0 0 1.5-1.5v-5.5a1.5 1.5 0 0 0-1.5-1.5zm0 1h3v2.5h1v-2.5h3.25v3.9h1v-3.9h3.25v2.5h1v-2.5h3.25v3.9h1v-3.9H22v2.5h1v-2.5h3a.5.5 0 0 1 .5.5v5.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-5.5a.5.5 0 0 1 .5-.5z" transform="rotate(-45 14 14)"/></svg>'},17748:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M14 18.634l-.307-.239-7.37-5.73-2.137-1.665 9.814-7.633 9.816 7.634-.509.394-1.639 1.269-7.667 5.969zm7.054-6.759l1.131-.876-8.184-6.366-8.186 6.367 1.123.875 7.063 5.491 7.054-5.492z"/><path d="M7 14.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/><path d="M7 17.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/></g></svg>'},76025:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="nonzero" d="M14 5a7 7 0 0 0-7 7v3h4v-3a3 3 0 1 1 6 0v3h4v-3a7 7 0 0 0-7-7zm7 11h-4v3h4v-3zm-10 0H7v3h4v-3zm-5-4a8 8 0 1 1 16 0v8h-6v-8a2 2 0 1 0-4 0v8H6v-8zm3.293 11.294l-1.222-2.037.858-.514 1.777 2.963-2 1 1.223 2.037-.858.514-1.778-2.963 2-1zm9.778-2.551l.858.514-1.223 2.037 2 1-1.777 2.963-.858-.514 1.223-2.037-2-1 1.777-2.963z"/></svg>'},69786:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"/><path d="M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"/></g></svg>'},43969:o=>{
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1784],{59142:function(o,e){var l,i,n;i=[e],void 0===(n="function"==typeof(l=function(o){"use strict";function e(o){if(Array.isArray(o)){for(var e=0,l=Array(o.length);e<o.length;e++)l[e]=o[e];return l}return Array.from(o)}Object.defineProperty(o,"__esModule",{value:!0});var l=!1;if("undefined"!=typeof window){var i={get passive(){l=!0}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var n="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),a=[],s=!1,t=-1,c=void 0,r=void 0,d=function(o){return a.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(o))}))},T=function(o){var e=o||window.event;return!!d(e.target)||1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1)},L=function(){setTimeout((function(){void 0!==r&&(document.body.style.paddingRight=r,r=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)}))};o.disableBodyScroll=function(o,i){if(n){if(!o)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(o&&!a.some((function(e){return e.targetElement===o}))){var L={targetElement:o,options:i||{}};a=[].concat(e(a),[L]),o.ontouchstart=function(o){1===o.targetTouches.length&&(t=o.targetTouches[0].clientY)},o.ontouchmove=function(e){var l,i,n,a;1===e.targetTouches.length&&(i=o,a=(l=e).targetTouches[0].clientY-t,!d(l.target)&&(i&&0===i.scrollTop&&0<a||(n=i)&&n.scrollHeight-n.scrollTop<=n.clientHeight&&a<0?T(l):l.stopPropagation()))},s||(document.addEventListener("touchmove",T,l?{passive:!1}:void 0),s=!0)}}else{m=i,setTimeout((function(){if(void 0===r){var o=!!m&&!0===m.reserveScrollBarGap,e=window.innerWidth-document.documentElement.clientWidth;o&&0<e&&(r=document.body.style.paddingRight,document.body.style.paddingRight=e+"px")}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")}));var h={targetElement:o,options:i||{}};a=[].concat(e(a),[h])}var m},o.clearAllBodyScrollLocks=function(){n?(a.forEach((function(o){o.targetElement.ontouchstart=null,o.targetElement.ontouchmove=null})),s&&(document.removeEventListener("touchmove",T,l?{passive:!1}:void 0),s=!1),a=[],t=-1):(L(),a=[])},o.enableBodyScroll=function(o){if(n){if(!o)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");o.ontouchstart=null,o.ontouchmove=null,a=a.filter((function(e){return e.targetElement!==o})),s&&0===a.length&&(document.removeEventListener("touchmove",T,l?{passive:!1}:void 0),s=!1)}else 1===a.length&&a[0].targetElement===o?(L(),a=[]):a=a.filter((function(e){return e.targetElement!==o}))}})?l.apply(e,i):l)||(o.exports=n)},97639:o=>{o.exports={button:"button-G7o5fBfa",hover:"hover-G7o5fBfa",bg:"bg-G7o5fBfa",icon:"icon-G7o5fBfa",isActive:"isActive-G7o5fBfa",isTransparent:"isTransparent-G7o5fBfa",isGrayed:"isGrayed-G7o5fBfa",
|
||||
isHidden:"isHidden-G7o5fBfa"}},96746:o=>{o.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},16842:o=>{o.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},16534:(o,e,l)=>{"use strict";l.d(e,{ToolButton:()=>c});var i=l(59496),n=l(97754),a=l(9745),s=l(90186),t=l(97639);function c(o){const{id:e,activeClass:l,children:c,className:r,icon:d,isActive:T,isGrayed:L,isHidden:h,isTransparent:m,theme:v=t,onClick:z,title:g,buttonHotKey:w,tooltipPosition:u="vertical"}=o;return i.createElement("div",{id:e,className:n(v.button,r,T&&l,{"apply-common-tooltip":Boolean(g),"common-tooltip-vertical":Boolean(g)&&"vertical"===u,[v.isActive]:T,[v.isGrayed]:L,[v.isHidden]:h,[v.isTransparent]:m}),onClick:z,title:g,"data-role":"button","data-tooltip-hotkey":w,...(0,s.filterDataProps)(o)},i.createElement("div",{className:v.bg},d&&("string"==typeof d?i.createElement(a.Icon,{className:v.icon,icon:d}):i.createElement("span",{className:v.icon},d)),c))}},10458:(o,e,l)=>{"use strict";l.d(e,{drawingToolsIcons:()=>i});const i={SyncDrawing:l(69786),arrow:l(69725),cursor:l(52263),dot:l(71908),drawginmode:l(47970),drawginmodeActive:l(87518),eraser:l(94239),group:l(99042),hideAllDrawings:l(59266),hideAllDrawingsActive:l(48111),hideAllIndicators:l(77222),hideAllIndicatorsActive:l(39056),hideAllDrawingTools:l(28407),hideAllDrawingToolsActive:l(43969),hideAllPositionsTools:l(99186),hideAllPositionsToolsActive:l(18968),lockAllDrawings:l(56717),lockAllDrawingsActive:l(28358),magnet:l(32709),strongMagnet:l(76025),measure:l(47291),removeAllDrawingTools:l(78679),showObjectTree:l(17748),zoom:l(29469),"zoom-out":l(23794)}},92469:(o,e,l)=>{"use strict";l.d(e,{lineToolsInfo:()=>v});var i=l(28353),n=l(61814),a=(l(94419),l(45749)),s=l(10458),t=l(60870),c=l(68335);const r=(0,c.humanReadableModifiers)(c.Modifiers.Shift,!1),d=(0,c.humanReadableModifiers)(c.Modifiers.Alt,!1),T=(0,c.humanReadableModifiers)(c.Modifiers.Mod,!1),L={keys:[r],text:(0,i.t)("{hotKey_0} — drawing a straight line at angles of 45")},h={keys:[r],text:(0,i.t)("{hotKey_0} — circle")},m={keys:[r],text:(0,i.t)("{hotKey_0} — square")},v={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:t.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:t.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:t.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:t.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkLeft},LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight,
|
||||
localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:t.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:t.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:t.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:t.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:t.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:t.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:t.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:t.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:t.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange,localizedName:t.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:t.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:t.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:t.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:t.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:t.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:t.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:t.lineToolsLocalizedNames.LineToolEllipse,hotKey:(0,n.hotKeySerialize)(h)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:t.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:t.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:t.lineToolsLocalizedNames.LineToolFibCircles,hotKey:(0,n.hotKeySerialize)(h)},LineToolFibRetracement:{icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:t.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs,
|
||||
localizedName:t.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:t.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:(0,n.hotKeySerialize)(m)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:t.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:t.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:t.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:t.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:a.lineToolsIcons.LineToolImage,localizedName:t.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:t.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:(0,n.hotKeySerialize)(L)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:t.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:t.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:t.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:t.lineToolsLocalizedNames.LineToolGannFan},LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:t.lineToolsLocalizedNames.LineToolGannSquare,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:t.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:t.lineToolsLocalizedNames.LineToolHorzLine,hotKey:(0,n.hotKeySerialize)({keys:[d,"H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:t.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:t.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:t.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:t.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:t.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:t.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:t.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:(0,n.hotKeySerialize)(L)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan,localizedName:t.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork,
|
||||
localizedName:t.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{icon:a.lineToolsIcons.LineToolPolyline,localizedName:t.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:t.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:t.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:t.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:t.lineToolsLocalizedNames.LineToolPriceNote,hotKey:(0,n.hotKeySerialize)(L)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:t.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:t.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:t.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:t.lineToolsLocalizedNames.LineToolRectangle,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — square")})},LineToolCircle:{icon:a.lineToolsIcons.LineToolCircle,localizedName:t.lineToolsLocalizedNames.LineToolCircle},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:t.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong,localizedName:t.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:t.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:t.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:t.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:(0,n.hotKeySerialize)(L)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:t.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:t.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:t.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:t.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:t.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:t.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:t.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{
|
||||
icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:t.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,localizedName:t.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:t.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:t.lineToolsLocalizedNames.LineToolTrendLine,hotKey:(0,n.hotKeySerialize)(L)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:t.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:t.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:t.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:t.lineToolsLocalizedNames.LineToolVertLine,hotKey:(0,n.hotKeySerialize)({keys:[d,"V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:t.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:t.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:s.drawingToolsIcons.SyncDrawing,iconActive:s.drawingToolsIcons.SyncDrawingActive,localizedName:(0,i.t)("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:s.drawingToolsIcons.arrow,localizedName:(0,i.t)("Arrow")},cursor:{icon:s.drawingToolsIcons.cursor,localizedName:(0,i.t)("Cross")},dot:{icon:s.drawingToolsIcons.dot,localizedName:(0,i.t)("Dot")},drawginmode:{icon:s.drawingToolsIcons.drawginmode,iconActive:s.drawingToolsIcons.drawginmodeActive,localizedName:(0,i.t)("Stay in Drawing Mode")},eraser:{icon:s.drawingToolsIcons.eraser,localizedName:(0,i.t)("Eraser")},group:{icon:s.drawingToolsIcons.group,localizedName:(0,i.t)("Show Hidden Tools")},hideAllDrawings:{icon:s.drawingToolsIcons.hideAllDrawings,iconActive:s.drawingToolsIcons.hideAllDrawingsActive,localizedName:(0,i.t)("Hide All Drawing Tools"),hotKey:(0,n.hotKeySerialize)({keys:[T,d,"H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:s.drawingToolsIcons.lockAllDrawings,iconActive:s.drawingToolsIcons.lockAllDrawingsActive,localizedName:(0,i.t)("Lock All Drawing Tools")},magnet:{icon:s.drawingToolsIcons.magnet,localizedName:(0,i.t)("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:(0,n.hotKeySerialize)({keys:[T],text:"{0}"})},measure:{icon:s.drawingToolsIcons.measure,localizedName:(0,i.t)("Measure"),hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} + Click on the chart")})},removeAllDrawingTools:{icon:s.drawingToolsIcons.removeAllDrawingTools,localizedName:(0,i.t)("Remove Drawings")},showObjectsTree:{icon:s.drawingToolsIcons.showObjectTree,localizedName:(0,i.t)("Show Object Tree")},zoom:{
|
||||
icon:s.drawingToolsIcons.zoom,localizedName:(0,i.t)("Zoom In")},"zoom-out":{icon:s.drawingToolsIcons["zoom-out"],localizedName:(0,i.t)("Zoom Out")}};v.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:t.lineToolsLocalizedNames.LineToolGhostFeed}},89377:(o,e,l)=>{"use strict";l.d(e,{LinetoolsFavoritesStore:()=>n});var i,n,a=l(2872),s=l.n(a),t=l(56840);!function(o){function e(){o.favorites=[];(0,t.getJSON)("chart.favoriteDrawings",[]).forEach(e=>{l(e.tool||e)&&o.favorites.push(e.tool||e)}),o.favoritesSynced.fire()}function l(o){return"string"==typeof o&&""!==o}o.favorites=[],o.favoritesSynced=new(s()),o.favoriteIndex=function(e){return o.favorites.indexOf(e)},o.isValidLineToolName=l,o.saveFavorites=function(e){(0,t.setJSON)("chart.favoriteDrawings",o.favorites,e)},e(),t.onSync.subscribe(null,e)}(i||(i={})),function(o){function e(o){return i.isValidLineToolName(o)}function l(){return i.favorites.length}function n(o){return-1!==i.favoriteIndex(o)}o.favoriteAdded=new(s()),o.favoriteRemoved=new(s()),o.favoriteMoved=new(s()),o.favoritesSynced=i.favoritesSynced,o.favorites=function(){return i.favorites.slice()},o.isValidLineToolName=e,o.favoritesCount=l,o.favorite=function(o){return o<0||o>=l()?"":i.favorites[o]},o.addFavorite=function(l,a){return!(n(l)||!e(l))&&(i.favorites.push(l),i.saveFavorites(a),o.favoriteAdded.fire(l),!0)},o.removeFavorite=function(e,l){const n=i.favoriteIndex(e);return-1!==n&&(i.favorites.splice(n,1),i.saveFavorites(l),o.favoriteRemoved.fire(e),!0)},o.isFavorite=n,o.moveFavorite=function(n,a,s){if(a<0||a>=l()||!e(n))return!1;const t=i.favoriteIndex(n);return-1!==t&&a!==t&&(i.favorites.splice(t,1),i.favorites.splice(a,0,n),i.saveFavorites(s),o.favoriteMoved.fire(n,t,a),!0)}}(n||(n={}))},24437:(o,e,l)=>{"use strict";l.d(e,{DialogBreakpoints:()=>n});var i=l(96746);const n={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},36189:(o,e,l)=>{"use strict";l.d(e,{FavoriteButton:()=>T});var i=l(28353),n=l(59496),a=l(97754),s=l(9745),t=l(20614),c=l(55783),r=l(16842);const d={add:(0,i.t)("Add to favorites"),remove:(0,i.t)("Remove from favorites")};function T(o){const{className:e,isFilled:l,isActive:i,onClick:T,...L}=o;return n.createElement(s.Icon,{...L,className:a(r.favorite,"apply-common-tooltip",l&&r.checked,i&&r.active,e),icon:l?t:c,onClick:T,title:l?d.remove:d.add})}},40173:(o,e,l)=>{"use strict";function i(o,e,l={}){const i=Object.assign({},e);for(const n of Object.keys(e)){const a=l[n]||n;a in o&&(i[n]=[o[a],e[n]].join(" "))}return i}function n(o,e,l={}){return Object.assign({},o,i(o,e,l))}l.d(e,{weakComposeClasses:()=>i,mergeThemes:()=>n})},99042:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30" height="30"><path fill="currentColor" d="M5.5 13A2.5 2.5 0 0 0 3 15.5 2.5 2.5 0 0 0 5.5 18 2.5 2.5 0 0 0 8 15.5 2.5 2.5 0 0 0 5.5 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5A2.5 2.5 0 0 0 15 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 15 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0-2.5-2.5z"/></svg>'},69725:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.682 16.09l3.504 6.068 1.732-1-3.497-6.057 3.595-2.1L8 7.74v10.512l3.682-2.163zm-.362 1.372L7 20V6l12 7-4.216 2.462 3.5 6.062-3.464 2-3.5-6.062z"/></svg>'},52263:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path d="M18 15h8v-1h-8z"/><path d="M14 18v8h1v-8zM14 3v8h1v-8zM3 15h8v-1h-8z"/></g></svg>'},71908:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><circle fill="currentColor" cx="14" cy="14" r="3"/></svg>'},87518:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M23.002 23C23 23 23 18.003 23 18.003L15.998 18C16 18 16 22.997 16 22.997l7.002.003zM15 18.003A1 1 0 0 1 15.998 17h7.004c.551 0 .998.438.998 1.003v4.994A1 1 0 0 1 23.002 24h-7.004A.993.993 0 0 1 15 22.997v-4.994z"/><path d="M19 20h1v2h-1z"/><path fill-rule="nonzero" d="M22 17.5v-2a2.5 2.5 0 0 0-5 0v2h1v-2a1.5 1.5 0 0 1 3 0v2h1z"/><g fill-rule="nonzero"><path d="M3 14.707A1 1 0 0 1 3.293 14L14.439 2.854a1.5 1.5 0 0 1 2.122 0l2.585 2.585a1.5 1.5 0 0 1 0 2.122L8 18.707a1 1 0 0 1-.707.293H4a1 1 0 0 1-1-1v-3.293zm1 0V18h3.293L18.439 6.854a.5.5 0 0 0 0-.708l-2.585-2.585a.5.5 0 0 0-.708 0L4 14.707z"/><path d="M13.146 4.854l4 4 .708-.708-4-4zm-9 9l4 4 .708-.708-4-4z"/><path d="M15.146 6.146l-9 9 .708.708 9-9z"/></g></g></svg>'},47970:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M23.002 23C23 23 23 18.003 23 18.003L15.998 18C16 18 16 22.997 16 22.997l7.002.003zM15 18.003A1 1 0 0 1 15.998 17h7.004c.551 0 .998.438.998 1.003v4.994A1 1 0 0 1 23.002 24h-7.004A.993.993 0 0 1 15 22.997v-4.994z"/><path d="M19 20h1v2h-1z"/><path fill-rule="nonzero" d="M22 14.5a2.5 2.5 0 0 0-5 0v3h1v-3a1.5 1.5 0 0 1 3 0v.5h1v-.5z"/><g fill-rule="nonzero"><path d="M3 14.707A1 1 0 0 1 3.293 14L14.439 2.854a1.5 1.5 0 0 1 2.122 0l2.585 2.585a1.5 1.5 0 0 1 0 2.122L8 18.707a1 1 0 0 1-.707.293H4a1 1 0 0 1-1-1v-3.293zm1 0V18h3.293L18.439 6.854a.5.5 0 0 0 0-.708l-2.585-2.585a.5.5 0 0 0-.708 0L4 14.707z"/><path d="M13.146 4.854l4 4 .708-.708-4-4zm-9 9l4 4 .708-.708-4-4z"/><path d="M15.146 6.146l-9 9 .708.708 9-9z"/></g></g></svg>'},94239:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 31" width="29" height="31"><g fill="currentColor" fill-rule="nonzero"><path d="M15.3 22l8.187-8.187c.394-.394.395-1.028.004-1.418l-4.243-4.243c-.394-.394-1.019-.395-1.407-.006l-11.325 11.325c-.383.383-.383 1.018.007 1.407l1.121 1.121h7.656zm-9.484-.414c-.781-.781-.779-2.049-.007-2.821l11.325-11.325c.777-.777 2.035-.78 2.821.006l4.243 4.243c.781.781.78 2.048-.004 2.832l-8.48 8.48h-8.484l-1.414-1.414z"/><path d="M13.011 22.999h7.999v-1h-7.999zM13.501 11.294l6.717 6.717.707-.707-6.717-6.717z"/></g></svg>'},32709:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M14 10a2 2 0 0 0-2 2v11H6V12c0-4.416 3.584-8 8-8s8 3.584 8 8v11h-6V12a2 2 0 0 0-2-2zm-3 2a3 3 0 0 1 6 0v10h4V12c0-3.864-3.136-7-7-7s-7 3.136-7 7v10h4V12z"/><path d="M6.5 18h5v1h-5zm10 0h5v1h-5z"/></g></svg>'},47291:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M2 9.75a1.5 1.5 0 0 0-1.5 1.5v5.5a1.5 1.5 0 0 0 1.5 1.5h24a1.5 1.5 0 0 0 1.5-1.5v-5.5a1.5 1.5 0 0 0-1.5-1.5zm0 1h3v2.5h1v-2.5h3.25v3.9h1v-3.9h3.25v2.5h1v-2.5h3.25v3.9h1v-3.9H22v2.5h1v-2.5h3a.5.5 0 0 1 .5.5v5.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-5.5a.5.5 0 0 1 .5-.5z" transform="rotate(-45 14 14)"/></svg>'},17748:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M14 18.634l-.307-.239-7.37-5.73-2.137-1.665 9.814-7.633 9.816 7.634-.509.394-1.639 1.269-7.667 5.969zm7.054-6.759l1.131-.876-8.184-6.366-8.186 6.367 1.123.875 7.063 5.491 7.054-5.492z"/><path d="M7 14.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/><path d="M7 17.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/></g></svg>'},76025:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="nonzero" d="M14 5a7 7 0 0 0-7 7v3h4v-3a3 3 0 1 1 6 0v3h4v-3a7 7 0 0 0-7-7zm7 11h-4v3h4v-3zm-10 0H7v3h4v-3zm-5-4a8 8 0 1 1 16 0v8h-6v-8a2 2 0 1 0-4 0v8H6v-8zm3.293 11.294l-1.222-2.037.858-.514 1.777 2.963-2 1 1.223 2.037-.858.514-1.778-2.963 2-1zm9.778-2.551l.858.514-1.223 2.037 2 1-1.777 2.963-.858-.514 1.223-2.037-2-1 1.777-2.963z"/></svg>'},69786:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"/><path d="M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"/></g></svg>'},43969:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M19.76 6.07l-.7.7a13.4 13.4 0 011.93 2.47c.19.3.33.55.42.72l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-.98 0-1.88-.2-2.7-.52l-.77.76c1.03.47 2.18.76 3.47.76 3.12 0 5.5-1.75 7.06-3.44a16 16 0 002.38-3.38v-.02h.01L22 10l.45.22.1-.22-.1-.22L22 10l.45-.22-.01-.02a5.1 5.1 0 00-.15-.28 16 16 0 00-2.53-3.41zM6.24 13.93l.7-.7-.27-.29a15 15 0 01-2.08-2.9L4.56 10l.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12.98 0 1.88.2 2.7.52l.77-.76A8.32 8.32 0 0013 2.94c-3.12 0-5.5 1.75-7.06 3.44a16 16 0 00-2.38 3.38v.02h-.01L4 10l-.45-.22-.1.22.1.22L4 10l-.45.22.01.02a5.5 5.5 0 00.15.28 16 16 0 002.53 3.41zm6.09-.43a3.6 3.6 0 004.24-4.24l-.93.93a2.6 2.6 0 01-2.36 2.36l-.95.95zm-1.97-3.69l-.93.93a3.6 3.6 0 014.24-4.24l-.95.95a2.6 2.6 0 00-2.36 2.36zm11.29 7.84l-.8.79a1.5 1.5 0 000 2.12l.59.59a1.5 1.5 0 002.12 0l1.8-1.8-.71-.7-1.8 1.79a.5.5 0 01-.7 0l-.59-.59a.5.5 0 010-.7l.8-.8-.71-.7zm-5.5 3.5l.35.35-.35-.35.01-.02.02-.02.02-.02a4.68 4.68 0 01.65-.5c.4-.27 1-.59 1.65-.59.66 0 1.28.33 1.73.77.44.45.77 1.07.77 1.73a2.5 2.5 0 01-.77 1.73 2.5 2.5 0 01-1.73.77h-4a.5.5 0 01-.42-.78l1-1.5 1-1.5a.5.5 0 01.07-.07zm.74.67a3.46 3.46 0 01.51-.4c.35-.24.75-.42 1.1-.42.34 0 .72.17 1.02.48.3.3.48.68.48 1.02 0 .34-.17.72-.48 1.02-.3.3-.68.48-1.02.48h-3.07l.49-.72.97-1.46zM21.2 2.5L5.5 18.2l-.7-.7L20.5 1.8l.7.7z"/></svg>'},39056:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M16.47 3.7A8.32 8.32 0 0013 2.94c-3.12 0-5.5 1.75-7.06 3.44a16 16 0 00-2.38 3.38v.02h-.01L4 10l-.45-.22-.1.22.1.22L4 10l-.45.22.01.02a5.5 5.5 0 00.15.28 16 16 0 002.53 3.41l.7-.7-.27-.29a15 15 0 01-2.08-2.9L4.56 10l.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12.98 0 1.88.2 2.7.52l.77-.76zm-7.04 7.04l.93-.93a2.6 2.6 0 012.36-2.36l.95-.95a3.6 3.6 0 00-4.24 4.24zm.1 5.56c1.03.47 2.18.76 3.47.76 3.12 0 5.5-1.75 7.06-3.44a16 16 0 002.38-3.38v-.02h.01L22 10l.45.22.1-.22-.1-.22L22 10l.45-.22-.01-.02-.02-.03-.01-.03a9.5 9.5 0 00-.57-1 16 16 0 00-2.08-2.63l-.7.7.27.29a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-.98 0-1.88-.2-2.7-.52l-.77.76zm2.8-2.8a3.6 3.6 0 004.24-4.24l-.93.93a2.6 2.6 0 01-2.36 2.36l-.95.95zm7.9 3.73c-.12.12-.23.35-.23.77v2h1v1h-1v2c0 .58-.14 1.1-.52 1.48-.38.38-.9.52-1.48.52s-1.1-.14-1.48-.52c-.38-.38-.52-.9-.52-1.48h1c0 .42.1.65.23.77.12.12.35.23.77.23.42 0 .65-.1.77-.23.12-.12.23-.35.23-.77v-2h-1v-1h1v-2c0-.58.14-1.1.52-1.48.38-.38.9-.52 1.48-.52s1.1.14 1.48.52c.38.38.52.9.52 1.48h-1c0-.42-.1-.65-.23-.77-.12-.12-.35-.23-.77-.23-.42 0-.65.1-.77.23zm2.56 6.27l-1.14-1.15.7-.7 1.15 1.14 1.15-1.14.7.7-1.14 1.15 1.14 1.15-.7.7-1.15-1.14-1.15 1.14-.7-.7 1.14-1.15zM21.2 2.5L5.5 18.2l-.7-.7L20.5 1.8l.7.7z"/></svg>'},18968:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M5.5 18.2L21.2 2.5l-.7-.7L4.8 17.5l.7.7zM19.05 6.78l.71-.7a14.26 14.26 0 0 1 2.08 2.64 14.26 14.26 0 0 1 .6 1.05v.02h.01L22 10l.45.22-.01.02a5.18 5.18 0 0 1-.15.28 16 16 0 0 1-2.23 3.1c-1.56 1.69-3.94 3.44-7.06 3.44-1.29 0-2.44-.3-3.47-.76l.76-.76c.83.32 1.73.52 2.71.52 2.73 0 4.85-1.53 6.33-3.12a15.01 15.01 0 0 0 2.08-2.9l.03-.04-.03-.04a15 15 0 0 0-2.36-3.18zM22 10l.45-.22.1.22-.1.22L22 10zM6.94 13.23l-.7.7a14.24 14.24 0 0 1-2.08-2.64 14.28 14.28 0 0 1-.6-1.05v-.02h-.01L4 10l-.45-.22.01-.02a5.55 5.55 0 0 1 .15-.28 16 16 0 0 1 2.23-3.1C7.5 4.69 9.88 2.94 13 2.94c1.29 0 2.44.3 3.47.76l-.76.76A7.27 7.27 0 0 0 13 3.94c-2.73 0-4.85 1.53-6.33 3.12a15 15 0 0 0-2.08 2.9l-.03.04.03.04a15.01 15.01 0 0 0 2.36 3.18zM4 10l-.45.22-.1-.22.1-.22L4 10zm9 3.56c-.23 0-.46-.02-.67-.06l.95-.95a2.6 2.6 0 0 0 2.36-2.36l.93-.93a3.6 3.6 0 0 1-3.57 4.3zm-3.57-2.82l.93-.93a2.6 2.6 0 0 1 2.36-2.36l.95-.95a3.6 3.6 0 0 0-4.24 4.24zM17.5 21.9l3.28 2.18a.5.5 0 1 1-.56.84L17.5 23.1l-2.72 1.82a.5.5 0 1 1-.56-.84l3.28-2.18zM18.58 19.22a.5.5 0 0 1 .7-.14L22 20.9l2.72-1.82a.5.5 0 0 1 .56.84L22 22.1l-3.28-2.18a.5.5 0 0 1-.14-.7z"/></svg>'},28358:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M14 6a3 3 0 0 0-3 3v3h6V9a3 3 0 0 0-3-3zm4 6V9a4 4 0 0 0-8 0v3H8.5A2.5 2.5 0 0 0 6 14.5v7A2.5 2.5 0 0 0 8.5 24h11a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-2.5-2.5H18zm-5 5a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z"/></svg>'},56717:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M14 6a3 3 0 0 0-3 3v3h8.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 6 21.5v-7A2.5 2.5 0 0 1 8.5 12H10V9a4 4 0 0 1 8 0h-1a3 3 0 0 0-3-3zm-1 11a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z"/></svg>'},59266:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.56 14a10.05 10.05 0 00.52.91c.41.69 1.04 1.6 1.85 2.5C8.58 19.25 10.95 21 14 21c3.05 0 5.42-1.76 7.07-3.58A17.18 17.18 0 0023.44 14a9.47 9.47 0 00-.52-.91c-.41-.69-1.04-1.6-1.85-2.5C19.42 8.75 17.05 7 14 7c-3.05 0-5.42 1.76-7.07 3.58A17.18 17.18 0 004.56 14zM24 14l.45-.21-.01-.03a7.03 7.03 0 00-.16-.32c-.11-.2-.28-.51-.5-.87-.44-.72-1.1-1.69-1.97-2.65C20.08 7.99 17.45 6 14 6c-3.45 0-6.08 2-7.8 3.92a18.18 18.18 0 00-2.64 3.84v.02h-.01L4 14l-.45-.21-.1.21.1.21L4 14l-.45.21.01.03a5.85 5.85 0 00.16.32c.11.2.28.51.5.87.44.72 1.1 1.69 1.97 2.65C7.92 20.01 10.55 22 14 22c3.45 0 6.08-2 7.8-3.92a18.18 18.18 0 002.64-3.84v-.02h.01L24 14zm0 0l.45.21.1-.21-.1-.21L24 14zm-10-3a3 3 0 100 6 3 3 0 000-6zm-4 3a4 4 0 118 0 4 4 0 01-8 0z"/></svg>'},28407:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5 10.76l-.41-.72-.03-.04.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12 2.73 0 4.85 1.53 6.33 3.12a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-2.73 0-4.85-1.53-6.33-3.12a15 15 0 01-1.66-2.18zm17.45-.98L22 10l.45.22-.01.02a5.04 5.04 0 01-.15.28 16.01 16.01 0 01-2.23 3.1c-1.56 1.69-3.94 3.44-7.06 3.44-3.12 0-5.5-1.75-7.06-3.44a16 16 0 01-2.38-3.38v-.02h-.01L4 10l-.45-.22.01-.02a5.4 5.4 0 01.15-.28 16 16 0 012.23-3.1C7.5 4.69 9.88 2.94 13 2.94c3.12 0 5.5 1.75 7.06 3.44a16.01 16.01 0 012.38 3.38v.02h.01zM22 10l.45-.22.1.22-.1.22L22 10zM3.55 9.78L4 10l-.45.22-.1-.22.1-.22zm6.8.22A2.6 2.6 0 0113 7.44 2.6 2.6 0 0115.65 10 2.6 2.6 0 0113 12.56 2.6 2.6 0 0110.35 10zM13 6.44A3.6 3.6 0 009.35 10 3.6 3.6 0 0013 13.56c2 0 3.65-1.58 3.65-3.56A3.6 3.6 0 0013 6.44zm7.85 12l.8-.8.7.71-.79.8a.5.5 0 000 .7l.59.59c.2.2.5.2.7 0l1.8-1.8.7.71-1.79 1.8a1.5 1.5 0 01-2.12 0l-.59-.59a1.5 1.5 0 010-2.12zM16.5 21.5l-.35-.35a.5.5 0 00-.07.07l-1 1.5-1 1.5a.5.5 0 00.42.78h4a2.5 2.5 0 001.73-.77A2.5 2.5 0 0021 22.5a2.5 2.5 0 00-.77-1.73A2.5 2.5 0 0018.5 20a3.1 3.1 0 00-1.65.58 5.28 5.28 0 00-.69.55v.01h-.01l.35.36zm.39.32l-.97 1.46-.49.72h3.07c.34 0 .72-.17 1.02-.48.3-.3.48-.68.48-1.02 0-.34-.17-.72-.48-1.02-.3-.3-.68-.48-1.02-.48-.35 0-.75.18-1.1.42a4.27 4.27 0 00-.51.4z"/></svg>'},77222:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5 10.76a13.27 13.27 0 01-.41-.72L4.56 10l.03-.04a15 15 0 012.08-2.9c1.48-1.6 3.6-3.12 6.33-3.12s4.85 1.53 6.33 3.12a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.08 2.9c-1.48 1.6-3.6 3.12-6.33 3.12s-4.85-1.53-6.33-3.12a15 15 0 01-1.66-2.18zm17.45-.98L22 10l.45.22-.01.02a14.3 14.3 0 01-.6 1.05c-.4.64-1 1.48-1.78 2.33-1.56 1.7-3.94 3.44-7.06 3.44s-5.5-1.75-7.06-3.44a16 16 0 01-2.23-3.1 9.39 9.39 0 01-.15-.28v-.02h-.01L4 10l-.45-.22.01-.02a5.59 5.59 0 01.15-.28 16 16 0 012.23-3.1C7.5 4.69 9.87 2.94 13 2.94c3.12 0 5.5 1.75 7.06 3.44a16 16 0 012.23 3.1 9.5 9.5 0 01.15.28v.01l.01.01zM22 10l.45-.22.1.22-.1.22L22 10zM3.55 9.78L4 10l-.45.22-.1-.22.1-.22zm6.8.22A2.6 2.6 0 0113 7.44 2.6 2.6 0 0115.65 10 2.6 2.6 0 0113 12.56 2.6 2.6 0 0110.35 10zM13 6.44A3.6 3.6 0 009.35 10c0 1.98 1.65 3.56 3.65 3.56s3.65-1.58 3.65-3.56A3.6 3.6 0 0013 6.44zM20 18c0-.42.1-.65.23-.77.12-.13.35-.23.77-.23.42 0 .65.1.77.23.13.12.23.35.23.77h1c0-.58-.14-1.1-.52-1.48-.38-.38-.9-.52-1.48-.52s-1.1.14-1.48.52c-.37.38-.52.9-.52 1.48v2h-1v1h1v2c0 .42-.1.65-.23.77-.12.13-.35.23-.77.23-.42 0-.65-.1-.77-.23-.13-.12-.23-.35-.23-.77h-1c0 .58.14 1.1.52 1.48.38.37.9.52 1.48.52s1.1-.14 1.48-.52c.37-.38.52-.9.52-1.48v-2h1v-1h-1v-2zm1.65 4.35l1.14 1.15-1.14 1.15.7.7 1.15-1.14 1.15 1.14.7-.7-1.14-1.15 1.14-1.15-.7-.7-1.15 1.14-1.15-1.14-.7.7z"/></svg>'},99186:o=>{
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.5 10a8.46 8.46 0 0 0 .46.8c.38.6.94 1.4 1.68 2.19 1.48 1.6 3.62 3.13 6.36 3.13s4.88-1.53 6.36-3.13A15.07 15.07 0 0 0 21.5 10a7.41 7.41 0 0 0-.46-.8c-.38-.6-.94-1.4-1.68-2.19-1.48-1.6-3.62-3.13-6.36-3.13S8.12 5.4 6.64 7A15.07 15.07 0 0 0 4.5 10zM22 10l.41-.19-.4.19zm0 0l.41.19-.4-.19zm.41.19l.09-.19-.09-.19-.01-.02a6.86 6.86 0 0 0-.15-.28c-.1-.18-.25-.45-.45-.76-.4-.64-.99-1.48-1.77-2.32C18.47 4.74 16.11 3 13 3 9.89 3 7.53 4.74 5.97 6.43A15.94 15.94 0 0 0 3.6 9.79v.02h-.01L3.5 10l.09.19.01.02a6.59 6.59 0 0 0 .15.28c.1.18.25.45.45.76.4.64.99 1.48 1.77 2.32C7.53 15.26 9.89 17 13 17c3.11 0 5.47-1.74 7.03-3.43a15.94 15.94 0 0 0 2.37-3.36v-.02h.01zM4 10l-.41-.19.4.19zm9-2.63c-1.5 0-2.7 1.18-2.7 2.63s1.2 2.63 2.7 2.63c1.5 0 2.7-1.18 2.7-2.63S14.5 7.37 13 7.37zM9.4 10C9.4 8.07 11 6.5 13 6.5s3.6 1.57 3.6 3.5S15 13.5 13 13.5A3.55 3.55 0 0 1 9.4 10zm8.1 11.9l3.28 2.18a.5.5 0 1 1-.56.84L17.5 23.1l-2.72 1.82a.5.5 0 1 1-.56-.84l3.28-2.18zm1.78-2.82a.5.5 0 0 0-.56.84L22 22.1l3.28-2.18a.5.5 0 1 0-.56-.84L22 20.9l-2.72-1.82z"/></svg>'},29469:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/><path d="M13 16V9h-1v7z"/></svg>'},23794:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/></svg>'},37049:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 16" width="10" height="16"><path d="M.6 1.4l1.4-1.4 8 8-8 8-1.4-1.4 6.389-6.532-6.389-6.668z"/></svg>'}}]);
|
||||
o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.5 10a8.46 8.46 0 0 0 .46.8c.38.6.94 1.4 1.68 2.19 1.48 1.6 3.62 3.13 6.36 3.13s4.88-1.53 6.36-3.13A15.07 15.07 0 0 0 21.5 10a7.41 7.41 0 0 0-.46-.8c-.38-.6-.94-1.4-1.68-2.19-1.48-1.6-3.62-3.13-6.36-3.13S8.12 5.4 6.64 7A15.07 15.07 0 0 0 4.5 10zM22 10l.41-.19-.4.19zm0 0l.41.19-.4-.19zm.41.19l.09-.19-.09-.19-.01-.02a6.86 6.86 0 0 0-.15-.28c-.1-.18-.25-.45-.45-.76-.4-.64-.99-1.48-1.77-2.32C18.47 4.74 16.11 3 13 3 9.89 3 7.53 4.74 5.97 6.43A15.94 15.94 0 0 0 3.6 9.79v.02h-.01L3.5 10l.09.19.01.02a6.59 6.59 0 0 0 .15.28c.1.18.25.45.45.76.4.64.99 1.48 1.77 2.32C7.53 15.26 9.89 17 13 17c3.11 0 5.47-1.74 7.03-3.43a15.94 15.94 0 0 0 2.37-3.36v-.02h.01zM4 10l-.41-.19.4.19zm9-2.63c-1.5 0-2.7 1.18-2.7 2.63s1.2 2.63 2.7 2.63c1.5 0 2.7-1.18 2.7-2.63S14.5 7.37 13 7.37zM9.4 10C9.4 8.07 11 6.5 13 6.5s3.6 1.57 3.6 3.5S15 13.5 13 13.5A3.55 3.55 0 0 1 9.4 10zm8.1 11.9l3.28 2.18a.5.5 0 1 1-.56.84L17.5 23.1l-2.72 1.82a.5.5 0 1 1-.56-.84l3.28-2.18zm1.78-2.82a.5.5 0 0 0-.56.84L22 22.1l3.28-2.18a.5.5 0 1 0-.56-.84L22 20.9l-2.72-1.82z"/></svg>'},29469:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/><path d="M13 16V9h-1v7z"/></svg>'},23794:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/></svg>'},37049:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 16" width="10" height="16"><path d="M.6 1.4l1.4-1.4 8 8-8 8-1.4-1.4 6.389-6.532-6.389-6.668z"/></svg>'},20614:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},55783:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="45.56" cy="34.97" rx="43.65" ry="31.97" fill="#F0F3FA"/><ellipse cx="40" cy="61.38" rx="24.9" ry="22.2" fill="#F0F3FA"/><ellipse cx="77.2" cy="93.1" rx="33.7" ry="23.1" fill="#F0F3FA"/><path d="M78.22 91h-.38l-.29.26L60.02 107H34a9 9 0 0 1-9-9V23a7 7 0 0 1 7-7h63a3 3 0 0 1 3 3v69a3 3 0 0 1-3 3H78.22z" fill="#fff" stroke="#1E222D" stroke-width="2"/><path d="M25 99a8 8 0 0 1 8-8h59v13a3 3 0 0 1-3 3H33a8 8 0 0 1-8-8z" fill="#fff" stroke="#1E222D" stroke-width="2"/><path d="M45.02 99.13l-.54.84.54-.84a2 2 0 0 0-2.2.02L39 101.69V91h10v10.71l-3.98-2.58z" fill="#fff" stroke="#1E222D" stroke-width="2"/><rect x="43.41" y="34.64" width="36.18" height="36.18" rx="18.09" fill="#2962FF"/><circle cx="61.5" cy="48.99" r="6.34" stroke="#fff" stroke-width="2"/><path d="M72.7 67.09a1 1 0 1 0 2 0h-2zm-24.4 0a1 1 0 1 0 2 0h-2zm13.2-10.74c6 0 11.2 4.76 11.2 10.74h2c0-7.2-6.2-12.74-13.2-12.74v2zM50.3 67.1c0-5.98 5.18-10.74 11.2-10.74v-2c-7.01 0-13.2 5.55-13.2 12.74h2z" fill="#fff"/><path d="M71.45 69.03c1.4-.82 4.57-3.63 5.09-4.6M51.55 69.03c-1.4-.82-4.58-3.63-5.1-4.6" stroke="#fff" stroke-width="2"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
.billing-date-EEnD87dn{color:#131722;font-size:24px;line-height:36px}html.theme-dark .billing-date-EEnD87dn{color:#d1d4dc}.total-JkT5MEd7{display:flex}@media screen and (max-width:767px){.total-JkT5MEd7{flex-direction:column}}.description-container-JkT5MEd7{flex:1.5}.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-right:20px}@media screen and (max-width:767px){.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-right:0}}.description-JkT5MEd7{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .description-JkT5MEd7{color:#787b86}.price-JkT5MEd7,.title-JkT5MEd7{color:#131722;font-size:24px;line-height:36px}html.theme-dark .price-JkT5MEd7,html.theme-dark .title-JkT5MEd7{color:#d1d4dc}.price-JkT5MEd7{color:#131722;flex:1;font-weight:700;text-align:right}html.theme-dark .price-JkT5MEd7{color:#d1d4dc}@media screen and (max-width:767px){.price-JkT5MEd7{text-align:initial}}.info-block-pdxqWuDM{background-color:#e3effd;border-radius:4px;flex:1;margin-top:24px;padding:16px 16px 4px}html.theme-dark .info-block-pdxqWuDM{background-color:#132042}h3.info-block-title-pdxqWuDM{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark h3.info-block-title-pdxqWuDM{color:#d1d4dc}p.info-block-description-pdxqWuDM{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark p.info-block-description-pdxqWuDM{color:#b2b5be}.footer-N3Bb7EMK{margin-top:20px}.separator-N3Bb7EMK{border-bottom:1px dashed #c1c4cd;margin:16px 0}.title-iyvXI0en{color:#131722;font-size:31px;line-height:44px;margin:40px 60px 20px 0}html.theme-dark .title-iyvXI0en{color:#d1d4dc}.checkbox-wrap-e1ycFYBm{margin-top:20px}.checkbox-e1ycFYBm{align-items:baseline}p.label-p-e1ycFYBm{color:#434651;font-size:14px;line-height:1.6em;margin-bottom:0}html.theme-dark p.label-p-e1ycFYBm{color:#d1d4dc}.actions-9KDBaBYj{display:flex;justify-content:flex-end;margin-top:20px}.hide-btn-text-9KDBaBYj{opacity:0}.plans-container-GAQ9CocC{display:flex;justify-content:space-between}.plan-box-GAQ9CocC{border-radius:6px;box-sizing:border-box;padding:20px;width:320px}@media screen and (max-width:479px){.plan-box-GAQ9CocC{padding:12px}}.plan-box-GAQ9CocC.one-card-layout-GAQ9CocC{width:100%}.plan--next-GAQ9CocC{background-color:#fff;border:3px solid #2962ff}html.theme-dark .plan--next-GAQ9CocC{background-color:#1e222d;border:3px solid #1848cc}@media screen and (max-width:479px){.plan--next-GAQ9CocC{border-width:2px}}.plan--current-GAQ9CocC{background-color:#f8f9fd}html.theme-dark .plan--current-GAQ9CocC{background-color:#131722}.plan-box--title-GAQ9CocC{color:#131722;display:block;font-size:24px;font-weight:600;line-height:32px;margin-bottom:4px}html.theme-dark .plan-box--title-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--title-GAQ9CocC{font-size:20px;line-height:28px}}.plan-box--description-GAQ9CocC{color:#434651;display:block;font-size:14px;line-height:21px;margin-bottom:12px}html.theme-dark .plan-box--description-GAQ9CocC{color:#b2b5be}@media screen and (max-width:479px){.plan-box--description-GAQ9CocC{display:none}}.plan-box--days-left-GAQ9CocC{color:#131722;display:block;font-size:20px;line-height:36px;margin:0}html.theme-dark .plan-box--days-left-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--days-left-GAQ9CocC{font-size:18px;line-height:28px}}.arrow-GAQ9CocC{align-self:center;color:#131722}html.theme-dark .arrow-GAQ9CocC{color:#d1d4dc}.arrow-GAQ9CocC svg{height:48px;width:48px}.content-X3KKyG5H{padding:0 40px}@media screen and (max-width:479px){.content-X3KKyG5H{padding:0 20px}}.checkboxes-X3KKyG5H{margin-top:20px}.dialog-xQE4WxzT.change-plan-xQE4WxzT{min-width:768px;overflow:hidden;padding-bottom:10px}@media screen and (max-width:767px){.dialog-xQE4WxzT.change-plan-xQE4WxzT{border-radius:0;bottom:0;left:0;min-width:auto;position:fixed;right:0;top:0;width:100%}}.body-xQE4WxzT{display:flex;flex-direction:column}.body-xQE4WxzT.body-xQE4WxzT{padding:0 0 30px;position:relative}.close-button-xQE4WxzT{position:absolute;right:30px;top:30px}
|
||||
@@ -1 +0,0 @@
|
||||
.billing-date-EEnD87dn{color:#131722;font-size:24px;line-height:36px}html.theme-dark .billing-date-EEnD87dn{color:#d1d4dc}.total-JkT5MEd7{display:flex}@media screen and (max-width:767px){.total-JkT5MEd7{flex-direction:column}}.description-container-JkT5MEd7{flex:1.5}.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-left:20px}@media screen and (max-width:767px){.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-left:0}}.description-JkT5MEd7{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .description-JkT5MEd7{color:#787b86}.price-JkT5MEd7,.title-JkT5MEd7{color:#131722;font-size:24px;line-height:36px}html.theme-dark .price-JkT5MEd7,html.theme-dark .title-JkT5MEd7{color:#d1d4dc}.price-JkT5MEd7{color:#131722;flex:1;font-weight:700;text-align:left}html.theme-dark .price-JkT5MEd7{color:#d1d4dc}@media screen and (max-width:767px){.price-JkT5MEd7{text-align:initial}}.info-block-pdxqWuDM{background-color:#e3effd;border-radius:4px;flex:1;margin-top:24px;padding:16px 16px 4px}html.theme-dark .info-block-pdxqWuDM{background-color:#132042}h3.info-block-title-pdxqWuDM{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark h3.info-block-title-pdxqWuDM{color:#d1d4dc}p.info-block-description-pdxqWuDM{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark p.info-block-description-pdxqWuDM{color:#b2b5be}.footer-N3Bb7EMK{margin-top:20px}.separator-N3Bb7EMK{border-bottom:1px dashed #c1c4cd;margin:16px 0}.title-iyvXI0en{color:#131722;font-size:31px;line-height:44px;margin:40px 0 20px 60px}html.theme-dark .title-iyvXI0en{color:#d1d4dc}.checkbox-wrap-e1ycFYBm{margin-top:20px}.checkbox-e1ycFYBm{align-items:baseline}p.label-p-e1ycFYBm{color:#434651;font-size:14px;line-height:1.6em;margin-bottom:0}html.theme-dark p.label-p-e1ycFYBm{color:#d1d4dc}.actions-9KDBaBYj{display:flex;justify-content:flex-end;margin-top:20px}.hide-btn-text-9KDBaBYj{opacity:0}.plans-container-GAQ9CocC{display:flex;justify-content:space-between}.plan-box-GAQ9CocC{border-radius:6px;box-sizing:border-box;padding:20px;width:320px}@media screen and (max-width:479px){.plan-box-GAQ9CocC{padding:12px}}.plan-box-GAQ9CocC.one-card-layout-GAQ9CocC{width:100%}.plan--next-GAQ9CocC{background-color:#fff;border:3px solid #2962ff}html.theme-dark .plan--next-GAQ9CocC{background-color:#1e222d;border:3px solid #1848cc}@media screen and (max-width:479px){.plan--next-GAQ9CocC{border-width:2px}}.plan--current-GAQ9CocC{background-color:#f8f9fd}html.theme-dark .plan--current-GAQ9CocC{background-color:#131722}.plan-box--title-GAQ9CocC{color:#131722;display:block;font-size:24px;font-weight:600;line-height:32px;margin-bottom:4px}html.theme-dark .plan-box--title-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--title-GAQ9CocC{font-size:20px;line-height:28px}}.plan-box--description-GAQ9CocC{color:#434651;display:block;font-size:14px;line-height:21px;margin-bottom:12px}html.theme-dark .plan-box--description-GAQ9CocC{color:#b2b5be}@media screen and (max-width:479px){.plan-box--description-GAQ9CocC{display:none}}.plan-box--days-left-GAQ9CocC{color:#131722;display:block;font-size:20px;line-height:36px;margin:0}html.theme-dark .plan-box--days-left-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--days-left-GAQ9CocC{font-size:18px;line-height:28px}}.arrow-GAQ9CocC{align-self:center;color:#131722}html.theme-dark .arrow-GAQ9CocC{color:#d1d4dc}.arrow-GAQ9CocC svg{height:48px;width:48px}.content-X3KKyG5H{padding:0 40px}@media screen and (max-width:479px){.content-X3KKyG5H{padding:0 20px}}.checkboxes-X3KKyG5H{margin-top:20px}.dialog-xQE4WxzT.change-plan-xQE4WxzT{min-width:768px;overflow:hidden;padding-bottom:10px}@media screen and (max-width:767px){.dialog-xQE4WxzT.change-plan-xQE4WxzT{border-radius:0;bottom:0;left:0;min-width:auto;position:fixed;right:0;top:0;width:100%}}.body-xQE4WxzT{display:flex;flex-direction:column}.body-xQE4WxzT.body-xQE4WxzT{padding:0 0 30px;position:relative}.close-button-xQE4WxzT{left:30px;position:absolute;top:30px}
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="awmbugblh" maskUnits="userSpaceOnUse" x="0" y="0" width="18" height="18"><path d="M18 9A9 9 0 1 1 0 9a9 9 0 0 1 18 0z" fill="#C4C4C4"/></mask><g mask="url(#awmbugblh)"><path d="M-4.5 0h27v18h-27V0z" fill="#003787"/><path d="M-4.5 0h27l-12 12v6h-3v-6l-12-12z" fill="#F0F0F0"/><path d="M9 9.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill="#F9D90F"/><path d="M6.5 7.5h5L9 12 6.5 7.5z" fill="#F0F0F0"/><path d="M9 12L5 8.25h8L9 12z" fill="#CF142B"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 550 B |
@@ -1,20 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1946],{35806:(e,t,a)=>{e.exports=a.p+"4419319a45a29943de1cbb904c896305.svg"},96622:(e,t,a)=>{e.exports=a.p+"1614841ed51c3d3bebf01c2a573e83ee.svg"},80875:(e,t,a)=>{e.exports=a.p+"7e42b51d668e0b400a9cb506aec1fc00.svg"},9037:e=>{e.exports={"round-tabs":"round-tabs-K7mS8XY3","align-start":"align-start-K7mS8XY3","align-center":"align-center-K7mS8XY3",tab:"tab-K7mS8XY3","tab-primary":"tab-primary-K7mS8XY3",checked:"checked-K7mS8XY3","tab-ghost":"tab-ghost-K7mS8XY3","size-xsmall":"size-xsmall-K7mS8XY3","size-small":"size-small-K7mS8XY3","size-large":"size-large-K7mS8XY3"}},41207:e=>{e.exports={title:"title-vJ96rZdD title-yKAVl1gH",description:"description-vJ96rZdD","apple-pay-container":"apple-pay-container-vJ96rZdD",termsCheckboxContainer:"termsCheckboxContainer-vJ96rZdD",hidden:"hidden-vJ96rZdD","apple-pay-button-with-text":"apple-pay-button-with-text-vJ96rZdD","apple-pay-button-with-text-white":"apple-pay-button-with-text-white-vJ96rZdD","apple-pay-button-with-text-black":"apple-pay-button-with-text-black-vJ96rZdD"}},41033:e=>{e.exports={title:"title-eSrDwvYT title-yKAVl1gH",description:"description-eSrDwvYT",accent:"accent-eSrDwvYT",block:"block-eSrDwvYT",listOfCrypto:"listOfCrypto-eSrDwvYT",vital:"vital-eSrDwvYT",link:"link-eSrDwvYT"}},48372:e=>{e.exports={title:"title-MIHsGXyq title-3IsblctN",addressField:"addressField-MIHsGXyq",invalidInput:"invalidInput-MIHsGXyq",focusInput:"focusInput-MIHsGXyq",cardInput:"cardInput-MIHsGXyq",validInput:"validInput-MIHsGXyq",addressFieldsContainer:"addressFieldsContainer-MIHsGXyq",additionalFieldsContainer:"additionalFieldsContainer-MIHsGXyq"}},69644:e=>{e.exports={purchaseBlock:"purchaseBlock-8RcOLBfK"}},77150:e=>{e.exports={policyCheckbox:"policyCheckbox-LSoXiIEh",checkboxLabel:"checkboxLabel-LSoXiIEh",checkbox:"checkbox-LSoXiIEh"}},12150:e=>{e.exports={"price-row":"price-row-RlX7XxW1","total-title":"total-title-RlX7XxW1","total-number":"total-number-RlX7XxW1","tax-row":"tax-row-RlX7XxW1"}},68819:e=>{e.exports={title:"title-3IsblctN",highlight:"highlight-3IsblctN highlight-yKAVl1gH",cardForm:"cardForm-3IsblctN",formInput:"formInput-3IsblctN",input:"input-3IsblctN","button-container":"button-container-3IsblctN",addressField:"addressField-3IsblctN",creditCardFormContainer:"creditCardFormContainer-3IsblctN",creditCardFieldsContainer:"creditCardFieldsContainer-3IsblctN",creditCardWrapper:"creditCardWrapper-3IsblctN",cardTypeIcon:"cardTypeIcon-3IsblctN",cardNumber:"cardNumber-3IsblctN",cardholderName:"cardholderName-3IsblctN",cardInput:"cardInput-3IsblctN",creditCardNumberInput:"creditCardNumberInput-3IsblctN",nameInput:"nameInput-3IsblctN"}},37793:e=>{e.exports={link:"link-Gp0emyGe",description:"description-Gp0emyGe"}},37024:e=>{e.exports={error:"error-SnZhQzb8",errorCountry:"errorCountry-SnZhQzb8",errorTitleWrapper:"errorTitleWrapper-SnZhQzb8",errorText:"errorText-SnZhQzb8",errorCountryText:"errorCountryText-SnZhQzb8",descriptionText:"descriptionText-SnZhQzb8",lastText:"lastText-SnZhQzb8",
|
||||
errorCountryLastText:"errorCountryLastText-SnZhQzb8",secondButton:"secondButton-SnZhQzb8",icon:"icon-SnZhQzb8",button:"button-SnZhQzb8",solutionWrapper:"solutionWrapper-SnZhQzb8",solutions:"solutions-SnZhQzb8",itemLink:"itemLink-SnZhQzb8"}},19230:e=>{e.exports={title:"title-9F7Jqc3D title-yKAVl1gH",description:"description-9F7Jqc3D","google-pay-container":"google-pay-container-9F7Jqc3D","google-pay-button":"google-pay-button-9F7Jqc3D",hidden:"hidden-9F7Jqc3D"}},72443:e=>{e.exports={radio:"radio-MOJsE6Ae",title:"title-MOJsE6Ae title-yKAVl1gH",actionBlock:"actionBlock-MOJsE6Ae",action:"action-MOJsE6Ae",icon:"icon-MOJsE6Ae",radioButton:"radioButton-MOJsE6Ae",radioButtonColor:"radioButtonColor-MOJsE6Ae",iconWrapper:"iconWrapper-MOJsE6Ae"}},72733:e=>{e.exports={pageContainer:"pageContainer-yKAVl1gH",spinnerContainer:"spinnerContainer-yKAVl1gH",loading:"loading-yKAVl1gH",hide:"hide-yKAVl1gH",title:"title-yKAVl1gH",highlight:"highlight-yKAVl1gH",tabs:"tabs-yKAVl1gH",termsCheckboxContainer:"termsCheckboxContainer-yKAVl1gH",purchaseBlock:"purchaseBlock-yKAVl1gH",cardholderName:"cardholderName-yKAVl1gH"}},42729:e=>{e.exports={title:"title-hLncX8Ky title-yKAVl1gH",description:"description-hLncX8Ky",paypalButton:"paypalButton-hLncX8Ky",disabled:"disabled-hLncX8Ky",hidden:"hidden-hLncX8Ky"}},26661:e=>{e.exports={success:"success-zMRBI9iz",successText:"successText-zMRBI9iz",descriptionText:"descriptionText-zMRBI9iz",lastText:"lastText-zMRBI9iz",icon:"icon-zMRBI9iz",button:"button-zMRBI9iz"}},60670:(e,t,a)=>{"use strict";a.d(t,{DEFAULT_ROUND_TABS_THEME:()=>d,RoundTabsButtons:()=>u});var n=a(59496),r=a(5437),o=a(97754);function s(e,t){const{align:a="start",size:n="xsmall"}=t;return o(e["round-tabs"],e["align-"+a],e["size-"+n])}function i(e,t){const{variant:a="primary",isChecked:n}=t;return o(e.tab,e["tab-"+a],n&&e.checked)}var l=a(9037),c=a.n(l);const d=c(),u=n.forwardRef((e,t)=>{const{tabs:a,size:o="xsmall",variant:l="primary",theme:d=c()}=e;return n.createElement("div",{className:s(d,e),ref:t},a.map(e=>{const{isChecked:t,...a}=e;return n.createElement(r.RoundButton,{...a,className:i(d,{...a,variant:l,isChecked:t}),size:o,variant:l})}))});u.displayName="RoundTabsButtons";n.forwardRef((e,t)=>{const{tabs:a,size:o="xsmall",variant:l="primary",theme:d=c()}=e;return n.createElement("div",{className:s(d,e),ref:t},a.map(e=>{const{isChecked:t,...a}=e;return n.createElement(r.RoundAnchorButton,{...a,className:i(d,{...a,variant:l,isChecked:t}),size:o,variant:l})}))}).displayName="RoundTabsAnchors"},74745:(e,t,a)=>{"use strict";a.d(t,{TermsCheckbox:()=>l});var n=a(59496),r=a(28353),o=(a(94419),a(15294)),s=a(77150);const i="policy-checkbox";function l(e){const{onChange:t,checked:a,labelText:l,checkboxId:c=i,children:d,showError:u}=e,m=l||r.t("I have read and agree with TradingView's {termsLink}Terms of Use{closeLink} and {privacyLink}Privacy Policy{closeLink}").format({termsLink:'<a class="link" href="/policies/" target="_blank">',privacyLink:'<a class="link" href="/privacy-policy/" target="_blank">',closeLink:"</a>"})
|
||||
;return n.createElement("div",{className:s.policyCheckbox},n.createElement(o.Checkbox,{id:c,checked:a,onChange:t,className:s.checkbox,intent:u&&!a?"danger":void 0}),n.createElement("label",{htmlFor:c,dangerouslySetInnerHTML:d?void 0:{__html:m},className:s.checkboxLabel},d))}},14972:(e,t,a)=>{"use strict";a.d(t,{getDeviceData:()=>o});var n=a(72589),r=a.n(n);function o(e){return r().client.create({authorization:e}).then(e=>r().dataCollector.create({client:e,paypal:!0}).then(e=>e.deviceData))}},60679:(e,t,a)=>{"use strict";a.d(t,{PaymentDataType:()=>n,orderDetails:()=>i,onStartTrial:()=>l,onChangeTrial:()=>c,onCoinbasePurchase:()=>d,onEcommpayPurchase:()=>u,onOrderPurchase:()=>m});var n,r=a(85198),o=a(10878);function s(e,t,a,o,s,i){const l={product_id:a};return o===n.Nonce?l.payment_method_nonce=t:o===n.Token&&(l.payment_method_token=t),s&&(l.billing_cycle=s),i&&(l.user_details=i),(0,r.fetch)(e,{method:"POST",credentials:"include",body:JSON.stringify(l)})}function i(){return(0,r.fetch)("/order/details/").then(e=>e.json())}function l(e,t,a,n,r){return s("/trial/new/",e,t[0],a,n,r)}function c(e){const t=new FormData;return t.append("product_id",e),(0,r.fetch)("/trial/change/",{method:"POST",credentials:"include",headers:new Headers({acccept:"application/json","X-Requested-With":"XMLHttpRequest"}),body:t})}async function d(e,t,a){const n=await(0,r.fetch)("/order/coinbase/products/",{method:"POST",credentials:"include",body:JSON.stringify({products:e,billing_cycle:t,...a})});if(!n.ok){const e=await n.json();throw Error(e.detail)}return n.json()}async function u(e,t,a,n){const s=await(0,r.fetch)("/order/ecommpay/products/",{method:"POST",credentials:"include",body:JSON.stringify({products:e,billing_cycle:t,currency:o.Currencies.Rub,is_trial_period:n,...a})});if(!s.ok){const e=await s.json();throw Error(e.detail)}return s.json()}function m(e,t,a,s,i){const l={products:t,currency:o.Currencies.Usd};return a===n.Nonce?l.payment_method_nonce=e:a===n.Token&&(l.payment_method_token=e),s&&(l.billing_cycle=s),i&&(l.user_details=i),(0,r.fetch)("/order/products/",{method:"POST",credentials:"include",body:JSON.stringify(l)})}!function(e){e.Nonce="nonce",e.Token="token"}(n||(n={}))},31946:(e,t,a)=>{"use strict";a.d(t,{PaymentMethod:()=>v});var n=a(59496),r=a(28353),o=a(97754),s=a.n(o),i=a(76266),l=a(76974),c=a(78540),d=a(60679),u=a(88537),m=a(61074),p=a(60670),h=a(57762),y=a(98125),g=a(68769),C=a(72733);const b=(0,y.getLogger)("PaymentsMethod"),f=[h.PaymentTab.OneClick,h.PaymentTab.CreditCard,h.PaymentTab.Ecommpay,h.PaymentTab.ApplePay,h.PaymentTab.GooglePay,h.PaymentTab.Paypal,h.PaymentTab.Coinbase];function v(e){
|
||||
const{products:t,billingCycle:a=c.BillingCycle.Monthly,successText:r,hideTotalPrice:o,hideTryAgainButtonCodes:y,defaultTab:f,purchaseButtonText:v,termsText:k,spinnerContainerClassName:_,successTitle:N,errorTitle:S,buttonContainer:A,checked:x=!1,children:I,excludedTabs:w=[],check2faForOneClick:M=!1,inResponsiveContainer:F=!1,onTryAgain:V,onTabChange:B,onSuccess:D,onError:R,onClose:L,onPurchase:O,onCheckboxValidityChange:H,onBillingAddressChange:z,price:U,currency:K,defaultCountry:W,isTrial:Z,blockedCountries:G}=e,[X,Y]=(0,n.useState)(null),[$,q]=(0,n.useState)(null),[J,j]=(0,n.useState)(""),[Q,ee]=(0,n.useState)(""),[te,ae]=(0,n.useState)(""),[ne,re]=(0,n.useState)(null),[oe,se]=(0,n.useState)(!1),[ie,le]=(0,n.useState)(T(w,W)),[ce,de]=(0,n.useState)(!0),[ue,me]=(0,n.useState)(x),[pe,he]=(0,n.useState)(""),[ye,ge]=(0,n.useState)(""),[Ce,be]=(0,n.useState)(),[fe,ve]=(0,n.useState)(!1),Ee=(0,l.useIsMounted)(),Te=(0,n.useCallback)(e=>{Ee.current&&e!==X&&(B&&B(e),Y(e),q(null),de(!0))},[B,X]),Pe=(0,n.useCallback)(e=>{e.preventDefault(),Te(h.PaymentTab.CreditCard)},[Te]),ke=(0,n.useCallback)(e=>{Ee.current&&Ee.current&&(q(h.PaymentResult.Success),de(!1),D&&D(e))},[D]),_e=(0,n.useCallback)((e,t)=>{he(null!=e?e:""),ge(null!=t?t:""),q(h.PaymentResult.Error),de(!1)},[]),Ne=(0,n.useCallback)(e=>{if(H)return H(e);ve(e)},[H]),Se=X!==h.PaymentTab.OneClick?d.PaymentDataType.Nonce:d.PaymentDataType.Token,Ae=(0,n.useCallback)(async(e,n)=>{if(!ue)return void Ne(!ue);const r=await O(e,t,Se,a,n);if(r.ok)return void ke(r);const o=await r.json();o.detail&&o.code&&Ee.current&&_e(o.detail,o.code)},[Se,ke,O,ue,Ne,a,t]),xe=(0,n.useCallback)(async e=>{try{const n=await(0,d.onCoinbasePurchase)(t,a,e);window.open(n.hosted_url,"_self")}catch(e){b.logError(e.message),_e(e.message)}},[t,a]),Ie=(0,n.useCallback)(async e=>{try{const n=await(0,d.onEcommpayPurchase)(t,a,e,Z);window.open(n.payment_page_url,"_self")}catch(e){b.logError(e.message),_e(e.message)}},[t,a,Z]),we=(0,n.useCallback)(()=>{V&&V(),q(null)},[V]);(0,n.useEffect)(()=>{(0,u.ensureDefined)(window.pro).runOrUpdate(()=>be(window.pro)),(0,d.orderDetails)().then(e=>{if(!Ee.current)return;const{client_token:t,payment_methods:a,paypal_client_id:n,google_pay_merchant_id:r,is_2fa_active:o}=e,s=!M||o?a:[],i=null==s?void 0:s.filter(e=>e.is_address_complete);j(t),ee(n),ae(r),re(null!=i?i:[])}).catch(R)},[]),(0,n.useEffect)(()=>{ne&&(0===ne.length?le(T([h.PaymentTab.OneClick,...w],W)):le(T(w,W)))},[ne,w,W]),(0,n.useEffect)(()=>{if(!ne)return;const e=(0,g.showEcommpay)(W),t=(0,i.isFeatureEnabled)("ecommpay_ru");e&&!f?t?Te(h.PaymentTab.Ecommpay):ie.includes(h.PaymentTab.Coinbase)?Te(h.PaymentTab.Coinbase):Te(ie[0]):e&&f&&f!==h.PaymentTab.OneClick?E.includes(f)&&t?Te(h.PaymentTab.Ecommpay):t||f!==h.PaymentTab.Ecommpay?Te(f):Te(ie[0]):e&&t&&f===h.PaymentTab.OneClick?Te(h.PaymentTab.Ecommpay):f&&f!==h.PaymentTab.OneClick?Te(f):0===ne.length?Te(h.PaymentTab.CreditCard):Te(h.PaymentTab.OneClick),se(!0)},[ne,f,W,ie]),(0,n.useEffect)(()=>{me(x)},[x]);const Me=(0,
|
||||
n.useCallback)(()=>me(!ue),[ue]),Fe=ie.map((e,t)=>({onClick:()=>Te(e),children:n.createElement("span",null,P(e)),isChecked:X===e,key:`tab_${e}_${t}`,role:"tabpanel","aria-controls":"tab-method-"+t,"aria-selected":X===e,id:"tabpanel-method-"+t,disabled:ce||Boolean($)}));return J&&Ce&&oe?n.createElement(n.Fragment,null,n.createElement("div",{className:C.tabs,role:"tablist"},n.createElement(p.RoundTabsButtons,{tabs:Fe,align:"start",size:"xsmall",theme:p.DEFAULT_ROUND_TABS_THEME})),n.createElement("div",{className:s()(C.pageContainer,ce&&C.loading,!F&&"responsive-container-base")},n.createElement("div",{className:s()(C.spinnerContainer,_,ce&&C.hide)},n.createElement(m.Spinner,{size:"medium"})),n.createElement(h.RenderPage,{tab:X,paypalClientId:Q,googlePayMerchantId:te,result:$,errorText:pe,errorCode:ye,errorTitle:S,hideTryAgainButtonCodes:y,onTryAgainHandler:we,onClose:L,successText:r,successTitle:N,onCheckboxValidity:Ne,buttonContainer:A,termsText:k,purchaseButtonText:v,hideTotalPrice:o,showCheckboxError:fe,onCheckboxChange:Me,checkboxChecked:ue,setLoading:de,onNewCard:Pe,products:t,token:J,onPurchaseHandler:Ae,onCoinbasePurchaseHandler:xe,onEcommpayPurchaseHandler:Ie,activePaymentMethods:ne,loading:ce,onErrorPurchaseHandler:_e,onBillingAddressChange:z,price:U,billingCycle:a,defaultCountry:W,currency:K,blockedCountries:G},I))):n.createElement(m.Spinner,{size:"medium"})}const E=[h.PaymentTab.OneClick,h.PaymentTab.GooglePay,h.PaymentTab.ApplePay,h.PaymentTab.CreditCard,h.PaymentTab.Paypal];function T(e,t){const a=new Set(e),n=(0,g.showEcommpay)(t),r=(0,i.isFeatureEnabled)("ecommpay_ru");return r&&n&&E.forEach(e=>a.add(e)),r&&n||a.add(h.PaymentTab.Ecommpay),f.filter(e=>!a.has(e))}function P(e){return{[h.PaymentTab.OneClick]:(0,r.t)("One click"),[h.PaymentTab.CreditCard]:(0,r.t)("Payment card"),[h.PaymentTab.ApplePay]:"Apple Pay",[h.PaymentTab.GooglePay]:"Google Pay",[h.PaymentTab.Paypal]:(0,r.t)("PayPal"),[h.PaymentTab.Coinbase]:(0,r.t)("Crypto"),[h.PaymentTab.Ecommpay]:(0,r.t)("Payment card")}[e]}},57762:(e,t,a)=>{"use strict";a.d(t,{PaymentResult:()=>st,PaymentTab:()=>ot,RenderPage:()=>it});var n=a(59496),r=a(28353),o=a(76974),s=a(76266),i=a(97754),l=a.n(i),c=a(72589),d=a.n(c),u=a(98125),m=a(87995),p=a(42707),h=a(86240),y=a(71036),g=a(69644);function C(e){const{customButton:t,onPurchase:a,disabled:r,buttonText:o,buttonContainer:s}=e;return(null==s?void 0:s.current)?m.createPortal(n.createElement(b,{btn:t,onClick:a,disabled:r,buttonText:o}),s.current):n.createElement("div",{className:g.purchaseBlock},n.createElement(b,{btn:t,onClick:a,disabled:r,buttonText:o}))}function b(e){const{btn:t,onClick:a,disabled:o,buttonText:s}=e,i=(0,p.useSafeMatchMedia)(h["media-mf-tablet-landscape"]);return t||n.createElement(y.SquareButton,{size:i?"medium":"large",onClick:a,disabled:o},s||(0,r.t)("Complete your purchase"))}var f=a(29302),v=a(28805),E=a(35587),T=a(30798);const P=[v.required,v.latin,v.ascii,v.withoutNumbers,v.cardholderName],k={value:"",isValid:!1,errors:[]};function _(e){
|
||||
const{onChange:t,value:a,isValid:r,errors:o,label:s,className:i}=e,l=(0,n.useCallback)(e=>t(e.currentTarget.value),[]),[c,d]=n.useState(!1),u=(0,n.useCallback)(()=>d(!0),[]),m=(0,n.useCallback)(()=>d(!1),[]);return n.createElement(f.OrderFieldContainer,{label:s,for:T.OrderInputsConsts.CardholderName},n.createElement(E.OrderInput,{id:T.OrderInputsConsts.CardholderName,name:T.OrderInputsConsts.CardholderName,value:a,type:"text",onChange:l,inputClassName:i,intent:!c&&r?"success":void 0,hasErrors:0!==o.length&&!r&&!c,errors:o,onFocus:u,onBlur:m}))}function N(e){let t=!0,a=[];const n=e.trim();for(const e of P){const{isValid:r,errors:o}=e(n);if(!r){t=r,a=o;break}}return{value:e,isValid:t,errors:a}}var S=a(96722),A=a(76861),x=a(49483),I=a(68769),w=a(9745),M=a(68819);const F=(0,u.getLogger)("Payments.CreditCard"),V={number:"expirationDate",expirationDate:"cvv",cvv:void 0,postalCode:void 0,expirationYear:void 0,expirationMonth:void 0,cardholderName:void 0};class B extends n.PureComponent{constructor(e){super(e),this._hostedFieldsInstance=null,this._creditCardId="card-number",this._expirationDateId="expiration-date",this._cvvId="cvv",this._isMounted=!1,this._createBrainTreeClient=()=>{const{clientToken:e,onError:t}=this.props;d().client.create({authorization:e},(e,a)=>{if(this._isMounted)return e?(F.logError(e.message),t(e.message)):void this._createHostedFields(a)})},this._createHostedFields=e=>{const{onError:t,onLoad:a}=this.props;d().hostedFields.create({client:e,styles:{"form input":{direction:"ltr"},input:M.cardInput},fields:{number:{selector:"#"+this._creditCardId,placeholder:(0,A.isProd)()?(0,r.t)("Credit card number"):"4111 1111 1111 1111"},cvv:{selector:"#"+this._cvvId,placeholder:"CVV",type:"password"},expirationDate:{selector:"#"+this._expirationDateId,placeholder:"MM/YY"}}},(e,n)=>e?(F.logError(e.message),t(e.message)):n?(this._hostedFieldsInstance=n,this._hostedFieldsInstance.on("validityChange",e=>{this.setState({cardFieldValid:this._isCardFieldsValid(e)})}),this._hostedFieldsInstance.on("cardTypeChange",e=>{this._onCardTypeChange(e)}),x.isSafari||this._hostedFieldsInstance.focus("number"),void a(!1)):t())},this._prePurchase=()=>{if(this.props.loading)return;const{allCardFieldsValid:e}=this.state,t=this._isAllFieldsValid();e||this.setState({btFieldsValid:!1}),t||this.props.validateAllFields(),e&&t&&this._onPurchase()},this._onPurchase=()=>{var e;const{onError:t,onLoad:a,onPurchase:n}=this.props,r=(0,I.removeMultipleWhitespace)(this.props.cardholderName.value),o=(0,I.convertAddressStateToModel)(this.props.billingAddress),s={countryCodeAlpha2:o.country_code_alpha2,region:o.region,locality:o.locality,streetAddress:o.street_address,postalCode:o.postal_code};a(!0),null===(e=this._hostedFieldsInstance)||void 0===e||e.tokenize({billingAddress:s,cardholderName:r},(e,a)=>e?(F.logError(e.message),t(e.message)):a?void n(a.nonce):t())},this._isCardFieldsValid=e=>{var t;let a=!0;if(e.emittedBy){const a=V[e.emittedBy],n=e.fields[e.emittedBy]
|
||||
;n.isFocused&&n.isValid&&a&&(null===(t=this._hostedFieldsInstance)||void 0===t||t.focus(a))}return Object.values(e.fields).forEach(e=>{e.isValid||(a=!1)}),this.setState({allCardFieldsValid:a}),a},this._onCardTypeChange=e=>{if(1!==e.cards.length)return void this.setState({cardTypeIconUrl:I.paymentTypeToIconMap.default});const{type:t}=e.cards[0],a=I.paymentTypeToIconMap[t];a&&this.setState({cardTypeIconUrl:a})},this.state={cardFieldValid:!1,cardTypeIconUrl:I.paymentTypeToIconMap.default,allCardFieldsValid:!1,btFieldsValid:!0}}componentDidMount(){this._createBrainTreeClient(),this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{purchaseButtonText:e,buttonContainer:t,cardholderName:a,onCardholderNameChange:o}=this.props,{cardTypeIconUrl:s,btFieldsValid:l}=this.state;return n.createElement(n.Fragment,null,n.createElement("h3",{className:M.title},(0,r.t)("Payment details")),n.createElement("div",{className:M.highlight},(0,r.t)("The bank may hold and release $1 US to verify the card.")),n.createElement("div",{className:M.creditCardFormContainer},n.createElement("form",{action:"/order-coins/",method:"POST"},n.createElement("div",{className:M.cardForm},n.createElement("div",{className:M.creditCardFieldsContainer},n.createElement("div",{className:i(M.formInput,M.cardNumber)},n.createElement(S.Label,{htmlFor:this._creditCardId},(0,r.t)("Payment card number")),n.createElement("div",{id:"credit-cart-wrapper",className:M.creditCardWrapper},s&&(s===I.paymentTypeToIconMap.default?n.createElement(w.Icon,{icon:s,className:M.cardTypeIcon}):n.createElement("img",{src:s,className:M.cardTypeIcon})),n.createElement("div",{id:this._creditCardId,className:i(M.input,M.creditCardNumberInput,!l&&"braintree-hosted-fields-invalid"),tabIndex:1}))),n.createElement("div",{className:M.formInput},n.createElement(S.Label,{htmlFor:this._expirationDateId},(0,r.t)("Expiration date")),n.createElement("div",{id:this._expirationDateId,className:i(M.input,!l&&"braintree-hosted-fields-invalid")})),n.createElement("div",{className:M.formInput},n.createElement(S.Label,{htmlFor:this._cvvId},(0,r.t)("Security code")),n.createElement("div",{id:this._cvvId,className:i(M.input,!l&&"braintree-hosted-fields-invalid")})),n.createElement("div",{className:M.cardholderName},n.createElement(_,{...a,onChange:o,className:M.nameInput,label:(0,r.t)("Cardholder name")})))))),n.createElement(C,{onPurchase:this._prePurchase,buttonText:e,buttonContainer:t}))}_isAllFieldsValid(){return this.state.cardFieldValid&&this.props.isAllFieldsValid}}var D=a(54349),R=a(45631),L=a(25424),O=a(72443);class H extends n.PureComponent{constructor(e){var t;super(e),this._onMethodChange=e=>{const{paymentMethods:t,onBillingAddressChange:a}=this.props;this.setState({method:e});const n=t.find(t=>t.token===e);n&&a&&a((0,I.convertAddressModelToState)(n.billing_address))},this._onPurchase=()=>{const{onLoad:e,isAllFieldsValid:t,onPurchase:a,loading:n,validateTermCheckbox:r}=this.props,{method:o}=this.state;n||(t?(e(!0),a(o)):r())};const a=this.props.paymentMethods[0]
|
||||
;a&&a.token&&this.props.onBillingAddressChange&&this.props.onBillingAddressChange((0,I.convertAddressModelToState)(a.billing_address)),this.state={method:null!==(t=null==a?void 0:a.token)&&void 0!==t?t:"",expanded:!1}}componentDidMount(){const{paymentMethods:e,onLoad:t}=this.props;e.length>0&&(t(!1),e.length<=3&&this.setState({expanded:!0}))}componentDidUpdate(e){var t;const{paymentMethods:a,onLoad:n}=this.props;e.paymentMethods!==a&&(this.setState({method:(null===(t=a[0])||void 0===t?void 0:t.token)||""}),n(!1)),a.length<=3&&this.setState({expanded:!0})}render(){const{method:e,expanded:t}=this.state,{paymentMethods:a,onNewCard:o,purchaseButtonText:s,buttonContainer:l}=this.props,c=t?a:a.slice(0,3);return n.createElement(n.Fragment,null,n.createElement("h3",{className:O.title},(0,r.t)("Choose your payment method")),c.length>0&&n.createElement(D.SwitchGroup,{name:"payment-method",values:[e],onChange:this._onMethodChange},c.map(e=>{let t;if(1===e.method){const{acct:a}=e,{cardtype:n}=e;t=this._getPaymentMethodIcon(a,n)}else 2===e.method?t=(0,r.t)("PayPal account"):3===e.method?t="Google Pay":4===e.method&&(t="Apple Pay");return n.createElement("div",{className:O.radio,key:e.token},n.createElement(R.RadioButton,{className:i(O.radioButton,O.radioButtonColor),label:t,value:e.token}))})),n.createElement("div",{className:O.actionBlock},n.createElement("a",{href:"#",className:O.action,role:"button",onClick:o},n.createElement(w.Icon,{icon:L,className:O.icon}),n.createElement("span",null,(0,r.t)("Add a new card"))),!t&&n.createElement("button",{className:O.action,onClick:()=>this.setState({expanded:!0})},(0,r.t)("More payment methods"))),n.createElement(C,{onPurchase:this._onPurchase,buttonContainer:l,buttonText:s}))}_getPaymentMethodIcon(e,t){return n.createElement("span",{className:O.iconWrapper},n.createElement("img",{className:O.icon,src:I.braintreePaymentTypeToIconMap[t]}),"*",e)}}var z=a(41033);class U extends n.PureComponent{constructor(){super(...arguments),this._prePurchase=()=>{const{isAllFieldsValid:e}=this.props;e?this._onPurchase():this.props.validateAllFields()},this._onPurchase=async()=>{const{onLoad:e,onPurchase:t}=this.props;e(!0),t()}}componentDidMount(){const{onLoad:e}=this.props;e(!1)}render(){const{purchaseButtonText:e,buttonContainer:t}=this.props;return n.createElement(n.Fragment,null,n.createElement("h3",{className:z.title},(0,r.t)("Crypto")),n.createElement("div",{className:z.description},n.createElement("p",{className:i(z.block,z.accent)},(0,r.t)("What cryptocurrencies are accepted for payments?")),n.createElement("ul",{className:i(z.block,z.listOfCrypto)},n.createElement("li",null,(0,r.t)("Bitcoin (BTC) - Bitcoin network")),n.createElement("li",null,(0,r.t)("Ethereum (ETH) - ERC20 network")),n.createElement("li",null,(0,r.t)("USD Coin (USDC) - ERC20 network")),n.createElement("li",null,(0,r.t)("Litecoin (LTC) - Litecoin network")),n.createElement("li",null,(0,r.t)("Bitcoin Cash (BCH) - Bitcoin Cash network")),n.createElement("li",null,(0,
|
||||
r.t)("Dogecoin (DOGE) - Dogecoin network")),n.createElement("li",null,(0,r.t)("DAI (DAI) - ERC20 network"))),n.createElement("p",{className:z.vital},(0,r.t)("It's vital that the network you withdraw funds from, and the one you deposit funds to, are the same.")),n.createElement("p",{className:i(z.block,z.accent)},(0,r.t)("Please note that if the funds are sent via a different network, it will result in losing your payment. Please make sure you consider your options and don't always choose the cheapest commission option.")),n.createElement("p",{className:z.block},(0,r.t)("You will be automatically redirected to Coinbase to complete your purchase. Once the payment is completed you will be taken back to the TradingView page.")),n.createElement("p",{className:z.block},(0,r.t)("Please note you do not need to have a Coinbase account to complete the payment - you can use any available wallet.")),n.createElement("p",{className:z.accent},(0,r.t)("This step is highly important so we ask you to not skip or interrupt it."))),n.createElement(C,{onPurchase:this._prePurchase,buttonContainer:t,buttonText:e}))}}var K=a(37793);class W extends n.PureComponent{constructor(){super(...arguments),this._prePurchase=()=>{const{isAllFieldsValid:e}=this.props;e?this._onPurchase():this.props.validateAllFields()},this._onPurchase=async()=>{const{onLoad:e,onPurchase:t}=this.props;e(!0),t()}}componentDidMount(){const{onLoad:e}=this.props;e(!1)}render(){const{purchaseButtonText:e,buttonContainer:t}=this.props;return n.createElement(n.Fragment,null,n.createElement("div",{className:K.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"Ecommpay"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{onPurchase:this._prePurchase,buttonContainer:t,buttonText:e}))}}var Z=a(10878);const G=new Map;function X(e,t={}){let a=G.get(e);return void 0!==a||(a=new Promise((a,n)=>{const r=document.createElement("script");r.type="text/javascript",r.src=e;for(const[e,a]of Object.entries(t))r.setAttribute(e,a);r.onload=a,r.onerror=n,document.head.appendChild(r)}),G.set(e,a)),a}var Y=a(15298),$=a(42729);const q=(0,u.getLogger)("Payments.PayPal");class J extends n.PureComponent{constructor(e){super(e),this._createPayPalCheckout=e=>{const{onError:t,onLoad:a}=this.props;c.paypalCheckout.create({client:e},(e,n)=>{var r;if(e)return q.logError(e.message),t(e.message);null===(r=window.paypal)||void 0===r||r.Buttons({style:{color:"blue",size:"responsive",shape:"rect",tagline:!1},createBillingAgreement:()=>{const{isAllFieldsValid:e,validateAllFields:t,products:a}=this.props;if(!e)return void t();const r=(0,I.getProductsStr)(a);return n.createPayment({flow:"vault",billingAgreementDescription:r+" on TradingView",
|
||||
enableShippingAddress:!0,shippingAddressEditable:!1,currency:Z.Currencies.Usd})},onApprove:(e,r)=>(this.setState({ready:!1}),a(!0),n.tokenizePayment(e,(e,a)=>{if(e)return q.logError(e.message),t(e.message);this.props.onPurchase(a.nonce)})),onCancel:e=>{q.logInfo(JSON.stringify(e))},onError:e=>{t(e.message)}}).render("#paypal-button").then(()=>{a(!1),this.setState({ready:!0})}).catch(t)})},this._onDisableClick=e=>{const{isAllFieldsValid:t,validateAllFields:a}=this.props;t&&(a(),e.preventDefault(),e.stopPropagation())},this.state={ready:!1}}componentDidMount(){const{paypalClientId:e,onError:t,clientToken:a}=this.props;this.setState({ready:!1});const n=(0,Y.getCspNonce)();if(void 0===n)return t("Nonce not found");X(`https://www.paypal.com/sdk/js?client-id=${e}&vault=true&disable-funding=card`,{"data-csp-nonce":n}).then(()=>{c.client.create({authorization:a},(e,t)=>{e?q.logError(e.message):this._createPayPalCheckout(t)})}).catch(t)}render(){const{buttonContainer:e,isAllFieldsValid:t}=this.props,{ready:a}=this.state,o=n.createElement("div",{className:l()($.paypalButton,!a&&$.hidden),onClickCapture:this._onDisableClick},n.createElement("div",{id:"paypal-button",onClickCapture:this._onDisableClick}),!t&&n.createElement("div",{className:$.disabled}));return n.createElement(n.Fragment,null,n.createElement("h3",{className:$.title},(0,r.t)("PayPal")),n.createElement("div",{className:$.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"PayPal"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{customButton:o,buttonContainer:e}))}}var j=a(6087),Q=a(26843),ee=a(53402),te=a(41207);const ae=(0,u.getLogger)("Payments.ApplePay"),ne=window.ApplePaySession;class re extends n.PureComponent{constructor(e){super(e),this._createClient=()=>{const{onError:e,clientToken:t}=this.props;if(!(null==ne?void 0:ne.canMakePayments())){const t="This device is not capable of making Apple Pay payments";return ae.logError(t),e(t)}d().client.create({authorization:t},(t,a)=>{if(t)return ae.logError(t.message),e(t.message);this._createPaymentInstance(a)})},this._createPaymentInstance=e=>{const{onError:t,onLoad:a}=this.props;d().applePay.create({client:e},(e,n)=>{if(e)return ae.logError(e.message),t(e.message);this._instance=n,a(!1),this.setState({ready:!0})})},this._createSession=()=>{var e;const{onError:t,products:a,onPurchase:n,price:r,isAllFieldsValid:o,validateAllFields:s}=this.props;if(!o)return void s();const i=null===(e=this._instance)||void 0===e?void 0:e.createPaymentRequest({total:{label:"TradingView",amount:(0,ee.round2)(r.totalCostWithTax)},countryCode:"US",currencyCode:Z.Currencies.Usd,supportedNetworks:["amex","chinaUnionPay","elo","jcb","masterCard","visa"],
|
||||
merchantCapabilities:["supports3DS","supportsCredit","supportsDebit","supportsEMV"],requiredBillingContactFields:["name"]});if(!i||!ne)return;const l=new ne(3,i);l.onvalidatemerchant=e=>{var n;null===(n=this._instance)||void 0===n||n.performValidation({validationURL:e.validationURL,displayName:(0,I.getProductsStr)(a)},(e,a)=>{if(e)return ae.logError(e.message),t(e.message);l.completeMerchantValidation(a)})},l.onpaymentauthorized=e=>{var a;null===(a=this._instance)||void 0===a||a.tokenize({token:e.payment.token},(e,a)=>{if(e)return l.completePayment(ne.STATUS_FAILURE),ae.logError(e.message),t(e.message);n(a.nonce),l.completePayment(ne.STATUS_SUCCESS)})},l.begin()},this.state={ready:!1}}componentDidMount(){this._createClient()}render(){const{buttonContainer:e}=this.props,{ready:t}=this.state,a=n.createElement("div",{className:l()(te["apple-pay-container"],!t&&te.hidden)},n.createElement("div",{onClick:this._createSession,className:l()(te["apple-pay-button-with-text"],(0,j.getCurrentTheme)().name===Q.StdTheme.Dark?te["apple-pay-button-with-text-black"]:te["apple-pay-button-with-text-white"])}));return n.createElement(n.Fragment,null,n.createElement("h3",{className:te.title},"Apple Pay"),n.createElement("div",{className:te.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"Apple Pay"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{customButton:a,buttonContainer:e}))}}var oe=a(19230);const se=(0,u.getLogger)("Payments.GooglePay");class ie extends n.PureComponent{constructor(e){super(e),this._isMounted=!1,this._googlePaymentInstance=null,this._createClient=async()=>{const{onError:e,clientToken:t,googlePayMerchantId:a}=this.props;try{const e=await d().client.create({authorization:t});this._googlePaymentInstance=await d().googlePayment.create({client:e,useDeferredClient:!0,googlePayVersion:2,googleMerchantId:a});const n=await this._googlePaymentInstance.createPaymentDataRequest();this._paymentDataRequest.allowedPaymentMethods=n.allowedPaymentMethods,await this._createPaymentInstance()}catch(t){se.logError(t.statusMessage),e(t.statusMessage)}},this._createPaymentInstance=async()=>{const{onError:e,onLoad:t}=this.props,a=new google.payments.api.PaymentsClient({environment:(0,A.isProd)()?"PRODUCTION":"TEST",paymentDataCallbacks:{onPaymentAuthorized:this._onPaymentAuthorized}}),n=await a.isReadyToPay({...this._paymentDataRequest,existingPaymentMethodRequired:!0}),r=document.querySelector("#google-pay-button");if(!n.result||!r)return;const o=(0,j.getCurrentTheme)().name===Q.StdTheme.Dark,s=a.createButton({buttonColor:o?"white":"black",buttonType:"buy",buttonSizeMode:"fill",onClick:async t=>{t.preventDefault();try{await this._createSession(a)}catch(t){
|
||||
"CANCELED"!==t.statusCode&&(se.logError(t.statusMessage),e(t.statusMessage))}}});r.appendChild(s),t(!1),this.setState({ready:!0})},this._createSession=async e=>{const{price:t,isAllFieldsValid:a,validateAllFields:n}=this.props;if(!a)return void n();if(null===this._googlePaymentInstance)return;this._paymentDataRequest.transactionInfo.totalPriceStatus="FINAL",this._paymentDataRequest.transactionInfo.totalPrice=(0,ee.round2)(t.totalCostWithTax);const r=(await this._googlePaymentInstance.createPaymentDataRequest(this._paymentDataRequest)).allowedPaymentMethods[0];r.parameters.billingAddressRequired=!1,r.parameters.billingAddressParameters={format:"MIN"},await e.loadPaymentData({...this._paymentDataRequest,allowedPaymentMethods:[r]})},this._onPaymentAuthorized=async e=>{if(null===this._googlePaymentInstance)return{transactionState:"ERROR",error:{reason:"OTHER_ERROR",message:"Google payment instance is null",intent:"PAYMENT_AUTHORIZATION"}};const{onPurchase:t,onLoad:a}=this.props,n=await this._googlePaymentInstance.parseResponse(e);if(!this._isMounted)return{transactionState:"ERROR",error:{reason:"OTHER_ERROR",message:"Component unmounted",intent:"PAYMENT_AUTHORIZATION"}};this.setState({ready:!1}),a(!0);try{return await t(n.nonce),{transactionState:"SUCCESS"}}catch(e){return{transactionState:"ERROR",error:{reason:"OTHER_ERROR",message:"Cannot pay",intent:"PAYMENT_AUTHORIZATION"}}}};const{price:t}=e;this.state={ready:!1},this._paymentDataRequest={apiVersion:2,apiVersionMinor:0,transactionInfo:{currencyCode:Z.Currencies.Usd,totalPriceStatus:"ESTIMATED",totalPrice:(0,ee.round2)(t.totalCostWithTax),totalPriceLabel:"Total"},allowedPaymentMethods:[],merchantInfo:{merchantId:this.props.googlePayMerchantId},callbackIntents:["PAYMENT_AUTHORIZATION"]}}componentDidMount(){this._isMounted=!0;const{onError:e}=this.props;this.setState({ready:!1});const t=(0,Y.getCspNonce)();if(void 0===t)return e("Nonce not found");X("https://pay.google.com/gp/p/js/pay.js",{nonce:t}).then(this._createClient).catch(e)}componentWillUnmount(){this._isMounted=!1}render(){const{buttonContainer:e}=this.props,{ready:t}=this.state,a=n.createElement("div",{className:l()(oe["google-pay-container"],!t&&oe.hidden)},n.createElement("div",{id:"google-pay-button",className:oe["google-pay-button"]}));return n.createElement(n.Fragment,null,n.createElement("h3",{className:oe.title},"Google Pay"),n.createElement("div",{className:oe.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"Google Pay"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{customButton:a,buttonContainer:e}))}}var le=a(97737),ce=a(80875),de=a(96622),ue=a(26661);function me(e){const{text:t,title:a,onClose:o}=e,s=(0,
|
||||
j.getCurrentTheme)().name===Q.StdTheme.Dark;return n.createElement("div",{className:ue.success},n.createElement("img",{className:ue.icon,src:s?de:ce}),n.createElement("h3",{className:l()(ue.successText,!t&&ue.lastText)},a||(0,r.t)("Your payment was successful!")),t&&n.createElement("p",{className:l()(ue.descriptionText,ue.lastText)},t),o&&n.createElement(le.Button,{onClick:o,className:ue.button},(0,r.t)("Close",{context:"input"})))}var pe=a(5437),he=a(35806),ye=a(37024);function ge(e){const{text:t,hideTryAgainButton:a,errorTitle:o,showPaymentMethodSolutions:s,buttonClickList:i}=e,c=new RegExp(/\{\w+\}/),d=null==t?void 0:t.split(c);return n.createElement("div",{className:l()(ye.error,s&&ye.errorCountry)},n.createElement("div",{className:s&&ye.errorTitleWrapper},n.createElement("img",{className:ye.icon,src:he}),n.createElement("h3",{className:l()(ye.errorText,{[ye.lastText]:!t,[ye.errorCountryText]:s})},null!=o?o:(0,r.t)("Payment error"))),d&&n.createElement("div",{className:l()(ye.descriptionText,ye.lastText,s&&ye.errorCountryLastText)},d.map((e,t)=>n.createElement("p",{key:t},e))),s&&n.createElement("div",{className:ye.solutionWrapper},n.createElement("ul",{className:ye.solutions},n.createElement("li",{className:ye.item},n.createElement("a",{className:ye.itemLink,href:"/u/?solution=43000485536/"},(0,r.t)("Crypto"))),n.createElement("li",{className:ye.item},n.createElement("a",{className:ye.itemLink,href:"/u/?solution=43000665347/"},(0,r.t)("Mobile"))),n.createElement("li",{className:ye.item},n.createElement("a",{className:ye.itemLink,href:"/u/?solution=43000538306/"},(0,r.t)("TradingView coins"))))),!a&&n.createElement("div",{className:ye.buttonWrapper},i.map((e,t)=>n.createElement(pe.RoundButton,{onClick:e.handler,variant:e.buttonColor||"primary",className:l()(ye.button,i.length>1&&ye.secondButton),key:t},e.message))))}var Ce=a(12150);function be(e){const{cost:t,tax:a,products:o,billingCycle:s,currency:i=Z.Currencies.Usd}=e,l=window.pro;let c=[];l&&(c=o.map(e=>{const t=l.getProduct(e);if(l.isPlan(t)){const e=s?(0,ee.getReadableNumericCycle)(s):"",a=(0,ee.humanizeProPlan)(t.text_id);return(0,r.t)("{plan} plan ({billingCycle}){point}",{replace:{plan:a,billingCycle:e,point:""}})}return t.name}));const d=c.join(", ")+".",u=void 0!==a&&0!==a,m=i===Z.Currencies.Usd?"$":"",p=(0,r.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,ee.round2)(null!=a?a:0),currency:i,currencySign:m});return n.createElement("div",null,n.createElement("div",{className:Ce["price-row"]},n.createElement("div",{className:Ce["total-title"]},(0,r.t)("Total price")),n.createElement("div",{className:Ce["total-number"]},(0,r.t)("{currencySign}{cost} {currency}").format({currency:i,currencySign:m,cost:(0,ee.round2)(t)}))),u&&n.createElement("div",{className:Ce["tax-row"]},d," ",p))}var fe=a(74745),ve=a(66302);function Ee(e){const{value:t,onChange:a,isValid:r,errors:o,name:s,label:i}=e,l=(0,n.useCallback)(e=>a(e.currentTarget.value),[a]),[c,d]=n.useState(!1),u=(0,n.useCallback)(()=>d(!0),[]),m=(0,n.useCallback)(()=>d(!1),[])
|
||||
;return n.createElement(f.OrderFieldContainer,{label:i,for:s},n.createElement(E.OrderInput,{name:s,value:t,type:"text",onChange:l,hasErrors:!c&&0!==o.length&&!r,errors:o,onFocus:u,onBlur:m}))}var Te=a(40161),Pe=a(86629),ke=a(18244);v.required,v.latin;function _e(e){var t;const{value:a,onChange:o,countryCode:s,errors:i,isValid:l}=e,c=null!==(t=ke.stateItems[s])&&void 0!==t?t:[];return n.createElement(f.OrderFieldContainer,{label:r.t("State/Region"),labelId:T.OrderInputsConsts.State},n.createElement(Te.FormSelect,{"aria-labelledby":T.OrderInputsConsts.State,items:c,value:""===a?void 0:a,placeholder:r.t("Select state/region"),onChange:function(e){o(null!=e?e:"")},size:"large",stretch:!0,hasErrors:0!==i.length&&!l,errors:i,messagesPosition:Pe.MessagesPosition.Attached}))}var Ne=a(11298);function Se(e){var t,a,s,i;const{value:l,onChange:c,ignoreCountries:d}=e,[u,m]=(0,n.useState)([]),p=(0,n.useMemo)(()=>{const e={};return u.forEach(t=>{e[t.code]=t}),e},[u]),h=(0,o.useIsMounted)();(0,n.useEffect)(()=>{(0,Ne.getCountries)().then(e=>{h.current&&m(e[0].filter(e=>!(null==d?void 0:d.includes(e.code))))})},[d]);const y=(0,n.useCallback)(e=>c(e.code),[c]);return n.createElement(f.OrderFieldContainer,{label:(0,r.t)("Country"),for:e.name},n.createElement(Ne.CountrySelect,{countries:u,onSelected:y,flagUrl:((null==d?void 0:d.includes(l))?null===(t=p.US)||void 0===t?void 0:t.iconUrl:null===(a=p[l])||void 0===a?void 0:a.iconUrl)||"",text:((null==d?void 0:d.includes(l))?null===(s=p.US)||void 0===s?void 0:s.name:null===(i=p[l])||void 0===i?void 0:i.name)||"",stretch:!0}))}var Ae=a(53876),xe=a(18609);const Ie={AA:[{from:34001,to:34095}],AE:[{from:9001,to:9977}],AP:[{from:96201,to:96698}],AL:[{from:35e3,to:36999}],AK:[{from:99500,to:99999}],AZ:[{from:85e3,to:86999}],AR:[{from:71600,to:72999}],CA:[{from:9e4,to:96699}],CO:[{from:8e4,to:81999}],CT:[{from:6e3,to:6389},{from:6391,to:6999}],DC:[{from:2e4,to:20099},{from:20200,to:20599},{from:56900,to:56999}],DE:[{from:19700,to:19999}],FL:[{from:32e3,to:34999}],GA:[{from:3e4,to:31999},{from:39800,to:39999}],HI:[{from:96700,to:96999}],ID:[{from:83200,to:83999}],IL:[{from:6e4,to:62999}],IN:[{from:46e3,to:47999}],IA:[{from:5e4,to:52999}],KS:[{from:66e3,to:67999}],KY:[{from:4e4,to:42999}],LA:[{from:7e4,to:71599}],ME:[{from:3900,to:4999}],MD:[{from:20600,to:21999}],MA:[{from:1e3,to:2799},{from:5501,to:5501},{from:5544,to:5544}],MI:[{from:48e3,to:49999}],MN:[{from:55e3,to:56899}],MS:[{from:38600,to:39999}],MO:[{from:63e3,to:65999}],MT:[{from:59e3,to:59999}],NE:[{from:68e3,to:69999}],NV:[{from:88900,to:89999}],NH:[{from:3e3,to:3899}],NJ:[{from:7e3,to:8999}],NM:[{from:87e3,to:88499}],NY:[{from:1e4,to:14999},{from:6390,to:6390},{from:501,to:501},{from:544,to:544}],NC:[{from:27e3,to:28999}],ND:[{from:58e3,to:58999}],OH:[{from:43e3,to:45999}],OK:[{from:73e3,to:73199},{from:73400,to:74999}],OR:[{from:97e3,to:97999}],PA:[{from:15e3,to:19699}],PR:[{from:300,to:999}],RI:[{from:2800,to:2999}],SC:[{from:29e3,to:29999}],SD:[{from:57e3,to:57999}],TN:[{from:37e3,to:38599}],TX:[{from:75e3,to:79999},{from:73301,
|
||||
to:73399},{from:88500,to:88599}],UT:[{from:84e3,to:84999}],VT:[{from:5e3,to:5999}],VA:[{from:20100,to:20199},{from:22e3,to:24699},{from:20598,to:20598}],WA:[{from:98e3,to:99499}],WV:[{from:24700,to:26999}],WI:[{from:53e3,to:54999}],WY:[{from:82e3,to:83199}]},we={NSW:[{from:1e3,to:2599},{from:2619,to:2899},{from:2921,to:2999}],ACT:[{from:200,to:299},{from:2600,to:2618},{from:2900,to:2920}],VIC:[{from:3e3,to:3999},{from:8e3,to:8999}],QLD:[{from:4e3,to:4999},{from:9e3,to:9999}],SA:[{from:5e3,to:5999}],WA:[{from:6e3,to:6797},{from:6800,to:6999}],TAS:[{from:7e3,to:7999}],NT:[{from:800,to:999}],CX:[{from:6798,to:6798}],CC:[{from:6799,to:6799}]},Me={DL:[{from:11e4,to:119999}],HR:[{from:12e4,to:139999}],PB:[{from:14e4,to:159999}],CH:[{from:16e4,to:169999}],HP:[{from:17e4,to:179999}],JK:[{from:18e4,to:199999}],UP:[{from:2e5,to:289999}],RJ:[{from:3e5,to:349999}],GJ:[{from:36e4,to:399999}],MH:[{from:4e5,to:449999}],MP:[{from:45e4,to:489999}],CT:[{from:49e4,to:499999}],TG:[{from:5e5,to:509999}],AP:[{from:51e4,to:539999}],KA:[{from:56e4,to:599999}],TN:[{from:6e5,to:649999}],KL:[{from:67e4,to:699999}],WB:[{from:7e5,to:749999}],OR:[{from:75e4,to:779999}],AS:[{from:78e4,to:789999}],AR:[{from:79e4,to:792999}],ML:[{from:793e3,to:794999}],MN:[{from:795e3,to:795999}],MZ:[{from:796e3,to:796999}],NL:[{from:797e3,to:798999}],TR:[{from:799e3,to:799999}],BR:[{from:8e5,to:859999}],APS:[{from:9e5,to:999999}]},Fe={AB:["T"],BC:["V"],MB:["R"],NB:["E"],NL:["A"],NT:["X"],NS:["B"],NU:["X"],ON:["P","N","M","L","K"],PE:["C"],QC:["J","G","H"],SK:["S"],YT:["Y"]},Ve={Adana:"01",Adiyaman:"02",Afyonkarahisar:"03",Agri:"04",Aksaray:"68",Amasya:"05",Ankara:"06",Antalya:"07",Ardahan:"75",Artvin:"08",Aydin:"09",Balikesir:"10",Bartin:"74",Batman:"72",Bayburt:"69",Bilecik:"11",Bingol:"12",Bitlis:"13",Bolu:"14",Burdur:"15",Bursa:"16",Canakkale:"17",Cankiri:"18",Corum:"19",Denizli:"20",Diyarbakir:"21",Duzce:"81",Edirne:"22",Elazig:"23",Erzincan:"24",Erzurum:"25",Eskisehir:"26",Gaziantep:"27",Giresun:"28",Gumushane:"29",Hakkari:"30",Hatay:"31",Igdir:"76",Isparta:"32",Istanbul:"34",Izmir:"35",Kahramanmaras:"46",Karabuk:"78",Karaman:"70",Kars:"36",Kastamonu:"37",Kayseri:"38",Kirikkale:"71",Kirklareli:"39",Kirsehir:"40",Kilis:"79",Kocaeli:"41",Konya:"42",Kutahya:"43",Malatya:"44",Manisa:"45",Mardin:"47",Mersin:"33",Mugla:"48",Mus:"49",Nevsehir:"50",Nigde:"51",Ordu:"52",Osmaniye:"80",Rize:"53",Sakarya:"54",Samsun:"55",Siirt:"56",Sinop:"57",Sivas:"58",Sanliurfa:"63",Sirnak:"73",Tekirdag:"59",Tokat:"60",Trabzon:"61",Tunceli:"62",Usak:"64",Van:"65",Yalova:"77",Yozgat:"66",Zonguldak:"67"},Be={AT:/^(AT)?(U\d{8})$/i,BE:/^(BE)?(\d{10})$/i,BG:/^(BG)?(\d{9,10})$/i,CY:/^(CY)?(\d{8}[A-Z])$/i,CZ:/^(CZ)?(\d{8,10})?$/i,DE:/^(DE)?(\d{9})$/i,DK:/^(DK)?(\d{8})$/i,EE:/^(EE)?(\d{9})$/i,EL:/^(EL|GR)?(\d{9})$/i,GR:/^(GR|EL)?(\d{9})$/i,ES:/^(ES)?([0-9A-Z][0-9]{7}[0-9A-Z])$/i,FI:/^(FI)?(\d{8})$/i,FR:/^(FR)?([0-9A-Z]{2}[0-9]{9})$/i,GB:/^(GB)?((?:[0-9]{12}|[0-9]{9}|(?:GD|HA)[0-9]{3}))$/i,HR:/^(HR)?(\d{11})$/i,HU:/^(HU)?(\d{8})$/i,IE:/^(IE)?[0-9][0-9A-Z\+\*][0-9]{5}[A-Z]{1,2}$/i,
|
||||
IT:/^(IT)?(\d{11})$/i,LV:/^(LV)?(\d{11})$/i,LT:/^(LT)?(\d{9}$|\d{12})$/i,LU:/^(LU)?(\d{8})$/i,MT:/^(MT)?(\d{8})$/i,NL:/^(NL)?(\d{9}B\d{2})$/i,PL:/^(PL)?(\d{10})$/i,PT:/^(PT)?(\d{9})$/i,RO:/^(RO)?(\d{2,10})$/i,SI:/^(SI)?(\d{8})$/i,SK:/^(SK)?(\d{10})$/i,SE:/^(SE)?(\d{12})$/i},De={isValid:!1,errors:[(0,r.t)("No matching state found")]};function Re(e,t){const a=parseInt(t,10),n=e.some(e=>e.from<=a&&a<=e.to);return{isValid:n,errors:n?[]:[(0,r.t)("No matching state found")]}}function Le(e){return{isValid:!1,errors:[(0,r.t)("Must be a {length}-digit zip code",{replace:{length:e.toString()}})]}}const Oe=[v.required,Ae.postalCode,e=>(0,Ae.getPostalCodeMaxLengthValidator)(e)];function He(e,t){const a=[...Oe];var n;return"US"===e&&a.push((n=t,e=>{var t;const[a]=null!==(t=null==e?void 0:e.split("-"))&&void 0!==t?t:[];return 5!==(null==a?void 0:a.length)?Le(5):n in Ie?Re(Ie[n],a):De})),"CA"===e&&a.push(function(e){return t=>{var a,n;const o=(0,r.t)("Must be a 6-character alphanumeric code");if(void 0===t)return{isValid:!1,errors:[o]};const s=" "===t[3]?`${t.slice(0,3)}${t.slice(4)}`:t;if(6!==s.length)return{isValid:!1,errors:[o]};return s.split("").every((e,t)=>t%2==0?(0,xe.isLatin)(e)&&isNaN(Number(e)):isFinite(Number(e)))?(null===(a=Fe[e])||void 0===a?void 0:a.includes(null===(n=s[0])||void 0===n?void 0:n.toUpperCase()))?{isValid:!0,errors:[]}:De:{isValid:!1,errors:[(0,r.t)("Unknown format")]}}}(t)),"TR"===e&&a.push(function(e){return t=>{if(5!==(null==t?void 0:t.length)||!isFinite(Number(t)))return Le(5);if(e in Ve){const a=t.startsWith(Ve[e]);return{isValid:a,errors:a?[]:[(0,r.t)("No matching region found")]}}return{isValid:!1,errors:["Unknown region."]}}}(t)),"AU"===e&&a.push(function(e){return t=>4!==(null==t?void 0:t.length)?Le(4):e in we?Re(we[e],t):De}(t)),"IN"===e&&a.push(function(e){return t=>6!==(null==t?void 0:t.length)?Le(6):e in Me?Re(Me[e],t):De}(t)),a}function ze(e){return t=>{if(!Be[e]||!t)return{isValid:!0,errors:[]};const a=Be[e].test(t.replace(/\s/g,""));return{isValid:a,errors:a?[]:[(0,r.t)("VAT number format is incorrect")]}}}const Ue=[v.required,v.latin],Ke=[v.latin],We=[function(e){return isFinite(Number(e))?{isValid:!0,errors:[]}:{isValid:!1,errors:[(0,r.t)("This field only supports numbers")]}},function(e){return 0===e.length||e.length>=9&&e.length<=11?{isValid:!0,errors:[]}:{isValid:!1,errors:[(0,r.t)("Incorrect length")]}}];function Ze(e){return[v.required,v.latin,(t=e.maxLength,(e="")=>e.trim().length>t?{isValid:!1,errors:[(0,r.t)("Incorrect length")]}:{isValid:!0,errors:[]})];var t}var Ge=a(48372);const Xe={value:"US",isValid:!0,errors:[]},Ye={value:"",isValid:!1,errors:[]},$e={country_code_alpha2:Xe,region:Ye,postal_code:Ye,locality:Ye,street_address:Ye,vat_number:{value:"",isValid:!0,errors:[]}};function qe(e){const{onChange:t,addressState:a,blockedCountries:o}=e,l=(0,n.useCallback)(e=>{t({...$e,country_code_alpha2:{value:e,isValid:!0,errors:[]}})},[t]),c=(0,n.useCallback)(e=>{const n=Qe(Ze({maxLength:60
|
||||
}),e),r=n.isValid&&""!==a.postal_code.value?Qe(He(a.country_code_alpha2.value,n.value),a.postal_code.value):a.postal_code;t({...a,postal_code:r,region:n})},[t,a]),d=(0,n.useCallback)(e=>{const n=Ze({maxLength:60});t({...a,locality:Qe(n,e)})},[t,a]),u=(0,n.useCallback)(e=>{const n=Ze({maxLength:100});t({...a,street_address:Qe(n,e)})},[t,a]),m=(0,n.useCallback)(e=>{const n=Qe(Ue,a.region.value),r=n.isValid?He(a.country_code_alpha2.value,n.value):Oe;t({...a,region:n,postal_code:Qe(r,e)})},[t,a]),{value:p}=a.country_code_alpha2,h=ve.COUNTRY_WITH_STATE_SELECT.includes(p),y=(0,n.useMemo)(()=>(0,s.isFeatureEnabled)("vertex-tax")&&(0,I.isCountryTaxable)(p)&&((0,I.isCountrySupportVAT)(p)||(0,I.isCountrySupportTIN)(p)),[p]),g=(0,n.useMemo)(()=>ze(p),[p]),C=(0,n.useCallback)(e=>{const n=[...Ke,g],r=(0,I.isCountrySupportTIN)(a.country_code_alpha2.value)?We:n;t({...a,vat_number:Qe(r,e)})},[t,a]);let b=(0,r.t)("VAT number");return(0,I.isCountrySupportTIN)(p)&&(b=(0,r.t)("Tax Identification Number")),n.createElement(n.Fragment,null,n.createElement("h3",{className:Ge.title},(0,r.t)("Address")),n.createElement("div",{className:Ge.addressFieldsContainer},n.createElement("div",{className:Ge.addressField},n.createElement(Se,{value:(null==o?void 0:o.includes(p))?"US":p,onChange:l,name:T.OrderInputsConsts.Country,ignoreCountries:o})),n.createElement("div",{className:Ge.addressField},h?n.createElement(_e,{...a.region,name:T.OrderInputsConsts.State,countryCode:p,onChange:c}):n.createElement(Ee,{...a.region,name:T.OrderInputsConsts.State,onChange:c,label:(0,r.t)("State/Region")})),n.createElement("div",{className:i(Ge.additionalFieldsContainer,Ge.addressField)},n.createElement(Ee,{...a.locality,onChange:d,name:T.OrderInputsConsts.City,label:(0,r.t)("City")}),n.createElement(Ee,{...a.street_address,onChange:u,name:T.OrderInputsConsts.Street,label:(0,r.t)("Street")}),n.createElement(Ee,{...a.postal_code,onChange:m,name:T.OrderInputsConsts.Zip,label:(0,r.t)("Zip/Postal code")}),y&&n.createElement(Ee,{...a.vat_number,onChange:C,name:T.OrderInputsConsts.VatNumber,label:b}))))}function Je(e){return Object.values(e).every(e=>e.isValid)}function je(e){const t=Qe(Ze({maxLength:60}),e.region.value),a=t.isValid?He(e.country_code_alpha2.value,t.value):Oe,n=(0,I.isCountrySupportTIN)(e.country_code_alpha2.value)?We:[...Ke,ze(e.country_code_alpha2.value)],r=Ze({maxLength:60}),o=Ze({maxLength:100});return{country_code_alpha2:e.country_code_alpha2,region:t,postal_code:Qe(a,e.postal_code.value),locality:Qe(r,e.locality.value),street_address:Qe(o,e.street_address.value),vat_number:Qe(n,e.vat_number.value)}}function Qe(e,t){let a=!0,n=[];const r=t.trim();for(const t of e){const{isValid:e,errors:o}=t(r);if(!e){a=e,n=o;break}}return{value:t,isValid:a,errors:n}}var et=a(39391),tt=a.n(et),at=a(14972),nt=a(72733);const rt=(0,u.getLogger)("Payments.RenderPaymentPage");var ot,st;function it(e){
|
||||
const{tab:t,paypalClientId:a,googlePayMerchantId:i,result:l,activePaymentMethods:c,errorText:d,errorCode:u,errorTitle:m,hideTryAgainButtonCodes:p=[],onTryAgainHandler:h,onClose:y,successText:g,successTitle:C,children:b,onCheckboxValidity:f,buttonContainer:v,termsText:E,purchaseButtonText:T,hideTotalPrice:P,showCheckboxError:S,onCheckboxChange:A,checkboxChecked:x,loading:w,onErrorPurchaseHandler:M,setLoading:F,onNewCard:V,products:D,token:R,price:L,currency:O,billingCycle:z,defaultCountry:K,blockedCountries:Z}=e,G=(0,o.useIsMounted)(),[X,Y]=(0,n.useState)(function(e){return{...$e,country_code_alpha2:{...Xe,value:null!=e?e:"US"}}}(K)),[$,q]=(0,n.useState)(k),[j,Q]=(0,n.useState)(!1),ee=(0,n.useRef)(null),te=(0,n.useRef)(),ae=(0,n.useRef)(null);(0,n.useEffect)(()=>{(0,at.getDeviceData)(R).then(e=>{te.current=e}).catch(e=>{rt.logError(e.message)})},[R]);const ne=(0,n.useMemo)(()=>tt()(async t=>{if(e.onBillingAddressChange)try{Q(!0);const a=Je((0,I.excludeFieldsForTax)(je(t)));await e.onBillingAddressChange((0,I.convertAddressStateToModel)(t),a)}catch(e){if(!G.current)return;let a;a=(0,s.isFeatureEnabled)("vertex-tax")?[(0,r.t)("Could not calculate tax due to incorrect details")]:[(0,r.t)("No matching state found")],Y({...t,region:{value:t.region.value,errors:a,isValid:!1},postal_code:{value:t.postal_code.value,errors:a,isValid:!1}})}finally{Q(!1)}},300),[e.onBillingAddressChange]),oe=(0,n.useCallback)(async e=>{Y(e),ne(e)},[ne]),se=(0,n.useCallback)(async t=>{if(void 0!==e.onBillingAddressChange){Y(t);try{await e.onBillingAddressChange((0,I.convertAddressStateToModel)(t),!0)}catch(e){rt.logError("OneClick wrong address")}}},[e.onBillingAddressChange]),le=(0,n.useCallback)(t=>e.onPurchaseHandler(t,{device_data:te.current,name:(0,I.removeMultipleWhitespace)($.value),...(0,I.convertAddressStateToUserDetails)(X)}),[e.onPurchaseHandler,X,$.value]),ce=(0,n.useCallback)(t=>e.onPurchaseHandler(t,{device_data:te.current}),[e.onPurchaseHandler]),de=(0,n.useCallback)(()=>e.onCoinbasePurchaseHandler((0,I.convertoUserDetailsToCoinbaseUserData)({name:(0,I.removeMultipleWhitespace)($.value),...(0,I.convertAddressStateToUserDetails)(X)})),[e.onCoinbasePurchaseHandler,X,$]),ue=(0,n.useCallback)(()=>e.onEcommpayPurchaseHandler((0,I.convertoUserDetailsToEcommpayUserData)({name:(0,I.removeMultipleWhitespace)($.value),...(0,I.convertAddressStateToUserDetails)(X)})),[e.onEcommpayPurchaseHandler,X,$]),pe=(0,n.useCallback)(e=>q(N(e)),[]),he=(0,n.useCallback)(()=>{q(N($.value)),Y(je(X)),f(!x),!x&&ae.current&&ae.current.scrollIntoView({behavior:"smooth"})},[X,$,f,x]),ye=(0,n.useCallback)(()=>f(!x),[f,x]),Ce=function(){const e=N($.value);return Je(X)&&e.isValid&&x&&!j}(),ve=x&&!j;if(!l){const e={clientToken:R,products:D,paymentMethods:null!=c?c:[],onNewCard:V,onLoad:F,onError:M,loading:w,purchaseButtonText:T,termsText:E,buttonContainer:null!=v?v:ee,onCheckboxValidityChange:f};return n.createElement(n.Fragment,null,t===ot.OneClick&&n.createElement(H,{...e,onBillingAddressChange:se,onPurchase:ce,validateTermCheckbox:ye,isAllFieldsValid:ve
|
||||
}),t===ot.Ecommpay&&n.createElement(W,{...e,onPurchase:ue,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.CreditCard&&n.createElement(B,{...e,onPurchase:le,onCardholderNameChange:pe,cardholderName:$,validateAllFields:he,isAllFieldsValid:Ce,billingAddress:X}),t===ot.Paypal&&a&&n.createElement(J,{...e,paypalClientId:a,onPurchase:le,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.ApplePay&&n.createElement(re,{...e,price:L,onPurchase:le,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.GooglePay&&i&&n.createElement(ie,{...e,price:L,googlePayMerchantId:i,onPurchase:le,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.Coinbase&&n.createElement(U,{...e,onPurchase:de,validateAllFields:he,isAllFieldsValid:Ce}),t!==ot.OneClick&&t!==ot.CreditCard&&n.createElement("div",{className:nt.cardholderName},n.createElement(_,{...$,onChange:pe,label:(0,r.t)("Your name")})),t!==ot.OneClick&&n.createElement(qe,{onChange:oe,addressState:X,blockedCountries:Z}),!P&&n.createElement(be,{cost:L.totalCostWithTax,tax:L.tax,products:D,billingCycle:z,currency:O}),n.createElement("div",{className:nt.termsCheckboxContainer,ref:ae},b||n.createElement(fe.TermsCheckbox,{checked:x,onChange:A,labelText:E,showError:S}),!v&&n.createElement("div",{className:nt.purchaseBlock,ref:ee})))}if(l===st.Success)return n.createElement(me,{title:C,text:g,onClose:y});const Ee=[],Te="sanctioned_country"===u;return Te&&y?(Ee.push({message:(0,r.t)("Try another option"),handler:h}),Ee.push({message:(0,r.t)("Close",{context:"input"}),handler:y,buttonColor:"secondary"})):["payments_banned","anonymization_activated"].includes(u)&&y?Ee.push({message:(0,r.t)("Close",{context:"input"}),handler:y}):["trial_not_available","duplicate_payment_method"].includes(u)?Ee.push({message:(0,r.t)("See available plans"),handler:()=>location.href="/gopro/?source=payment_error&feature=duplicate_payment_method"}):Ee.push({message:(0,r.t)("Try again"),handler:h}),n.createElement(ge,{buttonClickList:Ee,showPaymentMethodSolutions:Te,text:d,hideTryAgainButton:p.includes(u),errorTitle:m})}!function(e){e.OneClick="One click",e.CreditCard="Credit card",e.ApplePay="ApplePay",e.GooglePay="GooglePay",e.Paypal="Paypal",e.Coinbase="Coinbase",e.Ecommpay="Ecommpay"}(ot||(ot={})),function(e){e.Success="Success",e.Error="Error"}(st||(st={}))},15298:(e,t,a)=>{"use strict";function n(){const e=document.querySelector("script[nonce]");if(null!==e)return e.getAttribute("nonce")||e.nonce}a.d(t,{getCspNonce:()=>n})},42707:(e,t,a)=>{"use strict";a.d(t,{useSafeMatchMedia:()=>r,useMatchMedia:()=>o});var n=a(59496);function r(e,t=!1){const[a,r]=(0,n.useState)(t);return(0,n.useEffect)(()=>{const t=window.matchMedia(e);function a(){r(t.matches)}return a(),t.addListener(a),()=>{t.removeListener(a)}},[e]),a}function o(e){const t=(0,n.useMemo)(()=>window.matchMedia(e).matches,[]);return r(e,t)}},61074:(e,t,a)=>{"use strict";a.d(t,{Spinner:()=>s});var n=a(59496),r=a(97754),o=a(33134);a(24780);function s(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+o.spinnerSizeMap[e.size||o.DEFAULT_SIZE])
|
||||
;return n.createElement("div",{className:t,style:e.style,role:"progressbar"})}},25424:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M8.5 15V3.5H10V15H8.5Z"/><path fill="currentColor" d="M15 10H3.5V8.5H15V10Z"/></svg>'}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18A9 9 0 1 0 9 0a9 9 0 0 0 0 18z" fill="#ED5565"/><path d="M13.4 9l-1.8.85.96 1.74-1.95-.38-.25 1.98L9 11.74l-1.36 1.45-.25-1.98-1.95.38.96-1.74L4.6 9l1.8-.85-.96-1.74 1.95.38.25-1.98L9 6.26l1.36-1.45.25 1.98 1.95-.38-.96 1.74 1.8.85z" fill="#FC0"/><path d="M9 11.74a2.74 2.74 0 1 0 0-5.48 2.74 2.74 0 0 0 0 5.48z" fill="#ED5565"/><path d="M7.63 9l-.2.01c0 .38.14.73.37 1 .12-.33.3-.63.53-.88a1.95 1.95 0 0 0-.7-.13zM8.47 10.47a1.56 1.56 0 0 0 1.06 0 1.96 1.96 0 0 0-.53-.9c-.25.24-.44.55-.53.9zM10.36 8.22a1.56 1.56 0 0 0-2.72 0c.5 0 .96.13 1.36.37.4-.24.86-.37 1.36-.37zM9.67 9.13c.23.25.4.55.53.88.23-.27.36-.62.37-1a1.97 1.97 0 0 0-.9.12z" fill="#FC0"/></svg>
|
||||
|
Before Width: | Height: | Size: 770 B |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.91.9A8.96 8.96 0 0 0 5.1.9L4.3 9l.79 8.1a8.96 8.96 0 0 0 7.82 0L13.7 9 12.9.9z" fill="#ED5565"/><path d="M9 5.87l.78 2.4h2.51l-2.03 1.47.77 2.39L9 10.65l-2.03 1.48.77-2.4-2.03-1.47h2.51L9 5.87z" fill="#FC0"/><path d="M5.09.9a9 9 0 0 0 0 16.2V.9z" fill="#496E2D"/><path d="M12.91.9v16.2a9 9 0 0 0 0-16.2z" fill="#FC0"/></svg>
|
||||
|
Before Width: | Height: | Size: 432 B |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M95.47 86.11a38.09 38.09 0 0 1-57.43-22.04c-1.31-4.9-6.74-8.57-11.8-8.73a25.12 25.12 0 0 1-20.36-11.5 25.19 25.19 0 0 1 7.55-34.81A25.19 25.19 0 0 1 50.5 20.9a2.58 2.58 0 0 0 3.72 1.24 38.09 38.09 0 0 1 52.67 11.33A38.09 38.09 0 0 1 95.47 86.1zm18.77 27.86c3.45-5.44.27-13.63-7.1-18.3-7.38-4.69-16.15-4.07-19.6 1.37-3.44 5.44-.27 13.63 7.1 18.31 7.38 4.68 16.15 4.06 19.6-1.38z" fill="#2A2E39"/><path d="M33.51 95.5a4.5 4.5 0 0 0 4.5 4.5h70.29a4.5 4.5 0 0 0 0-9H38a4.5 4.5 0 0 0-4.5 4.5zM61.86 115a4.5 4.5 0 0 1 0-9h46.44a4.5 4.5 0 0 1 0 9H61.86zm14.67-31a4.5 4.5 0 1 1 0-9h31.77a4.5 4.5 0 0 1 0 9H76.53zm15.62-19.5a4.5 4.5 0 0 0 4.5 4.5h11.65a4.5 4.5 0 0 0 0-9H96.65a4.5 4.5 0 0 0-4.5 4.5zm8.13-11.5a4.5 4.5 0 1 1 0-9h8.02a4.5 4.5 0 0 1 0 9h-8.02zm-2.6-20.5a4.5 4.5 0 0 0 4.5 4.5h6.12a4.5 4.5 0 0 0 0-9h-6.11a4.5 4.5 0 0 0-4.5 4.5zm7.67-11.5a4.5 4.5 0 0 1 0-9h2.95a4.5 4.5 0 0 1 0 9h-2.95z" fill="#1848CC"/><path d="M5.3 112.33l49.37-73.87a1 1 0 0 1 1.73.13l7.98 17.04a1 1 0 0 0 1.86-.13l12.24-39.66a1 1 0 0 1 1.85-.16l4 7.9a1 1 0 0 0 1.86-.19l4.23-15.67" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#ed5565" d="M7 0h11v18H7z"/><path fill="#57a863" d="M0 0h7v18H0z"/><circle cx="7" cy="9" r="4" fill="#fc0"/><path fill="#ed5565" d="M5 7v2.4c0 1.2.9 2.1 2 2.1s2-1 2-2.1V7H5z"/><path fill="#fff" d="M7 10.5c-.6 0-1-.5-1-1V8h2v1.4c0 .6-.5 1.1-1 1.1z"/></svg>
|
||||
|
Before Width: | Height: | Size: 350 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20"><g clip-path="url(#aalv2kb1x)"><path d="M0 0h14.24c1.12 0 1.8.9 1.55 2.03l-3.72 15.95A2.71 2.71 0 0 1 9.58 20H0V0z" fill="#DF2D32"/><path d="M13.58 0h9.17c1.12 0 .62.9.35 2.03L19.4 17.98c-.26 1.11-.18 2.02-1.3 2.02H8.92c-1.12 0-1.81-.9-1.55-2.02L11.1 2.03A2.71 2.71 0 0 1 13.58 0z" fill="#004889"/><path d="M22.39 0H32v20H17.73c-1.11 0-1.8-.9-1.54-2.02L19.9 2.03A2.7 2.7 0 0 1 22.39 0z" fill="#007F89"/><path d="M7.13 4.16c-.88 0-1.15 0-1.23-.02l-.63 2.91c-.13.56-.22.96-.54 1.22a.96.96 0 0 1-.64.22c-.4 0-.62-.2-.66-.57V7.8l.11-.75s.63-2.51.74-2.84l.01-.04c-1.22.01-1.43 0-1.45-.02l-.04.18-.64 2.84-.05.24-.11.78c0 .23.05.42.14.59.29.5 1.12.58 1.6.58.6 0 1.17-.13 1.55-.36.67-.4.85-1.01 1-1.56l.07-.28s.65-2.61.76-2.95l.01-.04zm2.2 2.1c-.16 0-.44.04-.7.17l-.27.16.08-.3-.04-.06c-.54.11-.67.13-1.17.2l-.04.03c-.06.48-.1.84-.32 1.79L6.6 9.3l.03.04c.51-.02.67-.02 1.11-.01l.04-.04c.05-.3.06-.36.19-.95.06-.28.18-.9.24-1.11.11-.05.22-.1.33-.1.25 0 .22.22.2.3 0 .15-.1.62-.19 1.03l-.06.27-.14.58.02.03a12 12 0 0 1 1.1-.01l.05-.04c.07-.46.1-.58.24-1.24l.07-.3c.13-.6.2-.9.1-1.14-.11-.28-.37-.34-.61-.34zm2.46.63l-.61.1-.6.1-.02.01-.02.02a10.26 10.26 0 0 1-.36 1.76c-.03.08-.07.17-.13.42l.01.02.02.02.56-.02h.6l.02-.01.02-.02.07-.4.16-.72.14-.62.15-.61V6.9l-.01-.02zm0-.84c-.24-.15-.67-.1-.96.1-.29.2-.32.47-.08.62.24.14.67.1.96-.1.29-.2.32-.48.08-.62zm1.48 3.34c.5 0 1-.14 1.38-.54.3-.33.43-.82.48-1.02.15-.66.03-.97-.12-1.16-.22-.3-.62-.39-1.03-.39-.25 0-.85.03-1.3.46-.34.3-.5.72-.59 1.12-.09.4-.2 1.14.48 1.42.2.09.5.11.7.11zm-.04-1.5c.12-.5.25-.93.6-.93.26 0 .28.32.16.82-.02.12-.12.53-.25.71-.1.13-.2.21-.32.21-.04 0-.25 0-.26-.32 0-.15.03-.31.07-.49zm3.13 1.44l.04-.04.19-.95c.06-.28.18-.9.24-1.11.11-.05.22-.1.33-.1.25 0 .22.22.21.3 0 .15-.1.62-.2 1.03l-.05.27-.14.58.02.03c.5-.02.65-.02 1.09-.01l.05-.04c.08-.46.1-.58.24-1.24l.07-.3c.13-.6.2-.9.1-1.14-.11-.28-.37-.34-.6-.34a1.7 1.7 0 0 0-.97.32l.07-.3-.04-.06c-.54.11-.66.13-1.17.2l-.03.03c-.06.48-.11.84-.33 1.79l-.25 1.05.02.04c.52-.02.67-.02 1.11-.01zm3.73.01l.23-1.07.17-.7s.05-.08.1-.1h.08c.7 0 1.5 0 2.12-.46.43-.32.72-.78.85-1.35.03-.14.05-.3.05-.47a.98.98 0 0 0-.16-.6c-.32-.44-.96-.45-1.69-.45h-.36c-.94.01-1.31 0-1.47-.01 0 .07-.03.19-.03.19l-.34 1.56-.84 3.46h1.3zm.63-2.76l.35-1.54.01-.08V4.9l.15.01.75.07c.3.1.41.4.33.78-.08.34-.3.63-.59.77-.24.12-.53.13-.82.13h-.2l.02-.08zm2.22 1.34c-.1.4-.2 1.14.47 1.4.21.09.4.12.6.1a1 1 0 0 0 .57-.26l-.05.19.03.04c.49-.02.64-.02 1.16-.02l.05-.04c.07-.45.15-.88.34-1.74l.3-1.23-.02-.05-1.2.2-.04.03-.02.12a.74.74 0 0 0-.38-.3c-.23-.1-.77.02-1.24.44-.33.3-.48.72-.57 1.12zm1.13.02c.12-.5.25-.91.6-.91.21 0 .33.2.3.54l-.06.28-.1.44-.13.26c-.1.12-.3.2-.42.2-.04 0-.25 0-.26-.31 0-.16.03-.32.07-.5zM30 6.31l-.04-.05c-.54.11-.63.13-1.12.2l-.04.03v.02c-.37.84-.36.66-.66 1.32v-.08l-.08-1.44-.05-.05c-.56.11-.57.13-1.09.2l-.04.03v.06c.06.33.05.26.11.78l.1.77c.05.42.08.63.14 1.28-.35.57-.43.79-.76 1.3l-.24.38c-.03.04-.05.06-.08.07a.36.36 0 0 1-.16.03h-.13l-.2.64.67.02c.4 0 .64-.19.78-.44l.42-.72h-.01l.04-.05c.29-.6 2.44-4.3 2.44-4.3zm-7.06 8.52h-.29l1.05-3.47h.35l.11-.36.01.4c0 .24.18.46.7.42h.58l.2-.67h-.22c-.12 0-.18-.03-.18-.1v-.4h-1.1c-.35 0-1.4.03-1.61.1-.26.06-.53.25-.53.25l.1-.36H21.1l-.22.72-1.06 3.52h-.2l-.21.67h2.03l-.07.22h1l.07-.22h.28l.22-.72zm-.84-2.77c-.16.05-.46.18-.46.18l.27-.88h.8l-.19.64s-.25.02-.42.06zm.02 1.27s-.25.03-.42.07c-.17.05-.48.2-.48.2l.28-.92h.82l-.2.65zm-.45 1.5h-.82l.24-.77h.81l-.23.78zm1.95-2.15h1.17l-.17.55h-1.18l-.18.6h1.04l-.79 1.1a.32.32 0 0 1-.16.13.47.47 0 0 1-.2.06h-.3l-.2.66h.76c.4 0 .62-.18.8-.42l.53-.73.12.74c.02.15.12.23.2.26.07.04.14.1.25.11l.26.01h.37l.23-.73h-.15c-.08 0-.23-.01-.25-.04-.03-.03-.03-.08-.04-.16l-.12-.75h-.48l.21-.25h1.19l.18-.6h-1.1l.17-.54h1.1l.2-.67h-3.26l-.2.67zM13.74 15l.27-.9h1.12l.2-.68h-1.12l.18-.56h1.1l.2-.66h-2.75l-.2.66h.62l-.16.56h-.63l-.2.68h.62l-.37 1.2c-.04.16.03.23.07.3.05.07.1.12.2.15.11.02.19.04.3.04h1.26l.22-.75-.56.07c-.1 0-.4-.01-.37-.11zm.13-4.35l-.29.51a.6.6 0 0 1-.16.22c-.05.03-.13.04-.26.04h-.15l-.2.65h.5c.24 0 .42-.08.5-.13.1-.05.12-.02.2-.09l.16-.14h1.54l.2-.69H14.8l.2-.37h-1.12zM16.14 15c-.03-.03 0-.1.03-.24l.42-1.4h1.98a.98.98 0 0 0 .36-.13c.13-.07.2-.15.26-.24s.17-.28.26-.58l.53-1.77-1.56.01s-.48.07-.69.15c-.2.09-.51.33-.51.33l.14-.48h-.96l-1.34 4.45-.1.38c0 .08.11.16.18.22.08.06.2.05.31.06l.53.02h.74l.22-.77-.66.06a.17.17 0 0 1-.14-.07zm.72-2.57h1.58l-.1.31c-.02 0-.05-.02-.21 0h-1.36l.1-.31zm.32-1.05h1.58l-.11.37s-.75 0-.87.02c-.52.09-.83.37-.83.37l.23-.76zm1.2 2.4a.17.17 0 0 1-.07.1c-.03.03-.08.03-.16.03h-.23l.02-.38H17l-.04 1.87c0 .13 0 .21.1.27.1.08.41.1.82.1h.58l.21-.7-.5.02-.17.01-.07-.04c-.03-.02-.06-.01-.06-.15v-.47l.54-.03c.29 0 .41-.09.52-.18.1-.08.13-.18.17-.32l.09-.42h-.74l-.09.3z" fill="#FEFEFE"/></g><defs><clipPath id="aalv2kb1x"><path d="M0 3a3 3 0 0 1 3-3h26a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3z"/></clipPath></defs></svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M32 77a4 4 0 0 1 4-4h42a4 4 0 0 1 4 4v31a4 4 0 0 1-4 4H38a6 6 0 0 1-6-6V77z" fill="#2962FF"/><path d="M39 70a4 4 0 0 1 4-4h42a4 4 0 0 1 4 4v31a4 4 0 0 1-4 4H43a4 4 0 0 1-4-4V70z" fill="#fff"/><path d="M49 98a1 1 0 1 1-2 0v-8a1 1 0 1 1 2 0v8zM54 95a1 1 0 0 0 1-1v-3a1 1 0 1 0-2 0v3a1 1 0 0 0 1 1zM61 94a1 1 0 1 1-2 0V79a1 1 0 1 1 2 0v15zM66 89a1 1 0 0 0 1-1v-4a1 1 0 1 0-2 0v4a1 1 0 0 0 1 1zM81 87a1 1 0 1 1-2 0v-8a1 1 0 1 1 2 0v8zM73 85a1 1 0 0 0 1-1v-7a1 1 0 1 0-2 0v7a1 1 0 0 0 1 1zM43 69a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2h-3z" fill="#1E222D"/><path d="M43 65a5 5 0 0 0-5 5v31a5 5 0 0 0 5 5h42a5 5 0 0 0 5-5V70a5 5 0 0 0-5-5H43zm-3 5a3 3 0 0 1 3-3h42a3 3 0 0 1 3 3v31a3 3 0 0 1-3 3H43a3 3 0 0 1-3-3V70z" fill="#1E222D"/><path d="M65 41a4 4 0 0 1 4-4h42a4 4 0 0 1 4 4v31a4 4 0 0 1-4 4H69a4 4 0 0 1-4-4V41zM5 20a4 4 0 0 1 4-4h42a4 4 0 0 1 4 4v31a4 4 0 0 1-4 4H9a4 4 0 0 1-4-4V20z" fill="#fff"/><path d="M68 41a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1z" fill="#1E222D"/><path fill-rule="evenodd" d="M100 50.5c0 .55.13 1.08.36 1.54l-5.07 4.45a3.48 3.48 0 0 0-4.08.36L86.99 54l-.02-.02.03-.48a3.5 3.5 0 1 0-6.69 1.45l-3.29 3.4a3.5 3.5 0 1 0 1.48 1.35l3.13-3.24a3.48 3.48 0 0 0 4.49-.64l4.01 2.72a3.5 3.5 0 1 0 6.52-.57l5.07-4.46A3.5 3.5 0 1 0 100 50.5zm3.5 1.52a1.51 1.51 0 1 0 0-3.03 1.51 1.51 0 0 0 0 3.03zm-20 3a1.53 1.53 0 1 0 0-3.05 1.53 1.53 0 0 0 0 3.06zm-6.47 6.48a1.53 1.53 0 1 1-3.06 0 1.53 1.53 0 0 1 3.06 0zm18-2a1.52 1.52 0 1 1-3.05 0 1.52 1.52 0 0 1 3.04 0z" fill="#1E222D"/><path d="M64 41a5 5 0 0 1 5-5h42a5 5 0 0 1 5 5v31a5 5 0 0 1-5 5H69a5 5 0 0 1-5-5V41zm5-3a3 3 0 0 0-3 3v31a3 3 0 0 0 3 3h42a3 3 0 0 0 3-3V41a3 3 0 0 0-3-3H69z" fill="#1E222D"/><path d="M9 19a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2H9zM43.72 22.51a1 1 0 0 1-.03 1.42l-9.02 8.63a5 5 0 0 1-6.62.25l-2.24-1.83a3 3 0 0 0-3.89.08l-5.26 4.66a1 1 0 0 1-1.32-1.5l5.25-4.66a5 5 0 0 1 6.49-.13l2.24 1.84a3 3 0 0 0 3.97-.16l9.02-8.63a1 1 0 0 1 1.41.03zM43 32a1 1 0 1 0-2 0v14a1 1 0 1 0 2 0V32zM30 39a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1zM37 38a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8z" fill="#1E222D"/><path d="M24 35a1 1 0 0 1 1 1v10a1 1 0 1 1-2 0V36a1 1 0 0 1 1-1zM19 40a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0v-6z" fill="#1E222D"/><path d="M9 15a5 5 0 0 0-5 5v31a5 5 0 0 0 5 5h42a5 5 0 0 0 5-5V20a5 5 0 0 0-5-5H9zm-3 5a3 3 0 0 1 3-3h42a3 3 0 0 1 3 3v31a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V20z" fill="#1E222D"/></svg>
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M38.33 84.99c.45-3.95-1.26-8.57-4.75-10.48a35.09 35.09 0 1 1 49.88-42.5c.26.73.91 1.24 1.67 1.32a25.56 25.56 0 1 1-5.99 50.76c-2.7-.32-5.59 2.22-5.9 4.93a17.57 17.57 0 1 1-34.91-4.03z" fill="#2A2E39"/><path d="M25.84 44.41c.54-11.43 8.7-21.65 20.5-23.85a25.2 25.2 0 0 1 26.48 12.28H51.41a14.75 14.75 0 0 0-14.65 12.8c-1.07 1.78-2.63 3.22-4.68 3.6-3.22.6-6.4-1.55-6.24-4.83zM51.23 62.2l-2.35.43a20 20 0 0 0-16 23.33l4.39 23.59a5.1 5.1 0 0 0 5.95 4.08l39.5-7.35a5.1 5.1 0 0 0 4.07-5.95l-9.76-52.49H66.19A14.73 14.73 0 0 1 51.23 62.2z" fill="#1E222D"/><path d="M46.33 20.56l.18.99-.18-.99zM25.84 44.41l1 .05-1-.05zm46.98-11.57v1h1.72l-.85-1.5-.87.5zm-21.41 0v-1h-1v1h1zm0 0v1h1v-1h-1zm-14.65 12.8l.86.5.11-.17.03-.21-1-.13zm-4.68 3.6l.19.98-.19-.98zM51.23 62.2v-1h-.09l-.1.02.19.98zm-2.35.43l-.18-.98.18.98zm-16 23.33l.98-.19-.98.19zm4.39 23.59l-.98.18.98-.18zm5.95 4.08l.18.98-.18-.98zm39.5-7.35l-.19-.99.18.99zm4.07-5.95l.99-.18-.99.18zm-9.76-52.49l.98-.18-.15-.82h-.83v1zm-10.84 0v-1h-.97l-.03.98 1 .02zM46.15 19.58C33.87 21.87 25.4 32.5 24.85 44.37l2 .1c.5-11.01 8.35-20.82 19.66-22.92l-.36-1.97zm27.54 12.77a26.2 26.2 0 0 0-27.54-12.77l.36 1.97a24.2 24.2 0 0 1 25.44 11.79l1.74-1zm-.87-.5H51.41v2h21.41v-2zm-22.41 1h2-2zm1-1A15.75 15.75 0 0 0 35.77 45.5l1.99.26A13.75 13.75 0 0 1 51.4 33.84v-2zM32.27 50.21c2.42-.45 4.2-2.13 5.35-4.08l-1.71-1.02c-.99 1.64-2.34 2.82-4 3.13l.36 1.97zm-7.43-5.85c-.19 4.08 3.74 6.54 7.43 5.85l-.37-1.97c-2.76.52-5.17-1.32-5.06-3.79l-2-.1zm26.2 16.85l-2.34.43.37 1.97 2.34-.44-.37-1.96zm-2.34.43a21 21 0 0 0-16.8 24.49l1.96-.37a19 19 0 0 1 15.2-22.15l-.36-1.97zM31.9 86.14l4.39 23.59 1.96-.37-4.39-23.59-1.96.37zm4.39 23.59a6.1 6.1 0 0 0 7.11 4.88l-.37-1.97a4.1 4.1 0 0 1-4.78-3.28l-1.96.37zm7.11 4.88l39.5-7.35-.37-1.97-39.5 7.35.37 1.97zm39.5-7.35a6.1 6.1 0 0 0 4.88-7.11l-1.97.36a4.1 4.1 0 0 1-3.28 4.78l.37 1.97zm4.88-7.11L78 47.65l-1.97.38 9.77 52.48 1.97-.36zm-21.59-51.3h10.84v-2H66.19v2zM51.42 63.2c8.6 0 15.59-6.83 15.77-15.34l-2-.04A13.73 13.73 0 0 1 51.42 61.2v2zm-.2 0h.2v-2h-.18l-.03 2z" fill="#B2B5BE"/><path d="M66.2 47.84A14.73 14.73 0 0 1 51.41 62.2a14.73 14.73 0 0 1-14.78-14.69A14.73 14.73 0 0 1 52.1 32.84h39.14c5.98 0 11.71 2.35 15.98 6.53l3.89 3.81a6.08 6.08 0 0 1 1.76 3.63 5.94 5.94 0 1 1-9.6 5.4l-1.81-1.45a13.4 13.4 0 0 0-8.36-2.92H66.2z" fill="#1E222D"/><path d="M66.2 47.84v-1h-.98l-.03.98 1 .02zm-14.11-15l-.05 1h.05v-1zm55.12 6.53l.7-.71-.7.71zm3.89 3.81l-.7.72.7-.72zm1.76 3.63l1-.11-1 .11zm-9.6 5.4l.62-.79-.62.79zm-1.81-1.45l.62-.78-.62.78zm-36.26-2.94A13.73 13.73 0 0 1 51.42 61.2v2c8.6 0 15.59-6.83 15.77-15.34l-2-.04zM51.42 61.2a13.73 13.73 0 0 1-13.78-13.69h-2c0 8.67 7.07 15.69 15.78 15.69v-2zM37.64 47.51c0-7.55 6.17-13.68 13.78-13.68v-2c-8.7 0-15.78 7.01-15.78 15.68h2zm13.78-13.68l.62.01.1-2-.72-.01v2zm.67.01h39.14v-2H52.1v2zm39.14 0c5.72 0 11.2 2.24 15.28 6.25l1.4-1.43a23.82 23.82 0 0 0-16.68-6.82v2zm15.28 6.25l3.88 3.8 1.4-1.42-3.88-3.81-1.4 1.43zm3.88 3.8c.82.8 1.35 1.9 1.48 3.04l1.99-.23a7.08 7.08 0 0 0-2.06-4.23l-1.4 1.43zm1.48 3.04a5 5 0 0 1-4.9 5.57v2a7 7 0 0 0 6.89-7.8l-2 .23zm-4.9 5.57c-1.12 0-2.21-.38-3.09-1.08L102.64 53a6.94 6.94 0 0 0 4.33 1.51v-2zm-3.09-1.08l-1.8-1.44-1.25 1.57 1.8 1.44 1.25-1.57zm-1.8-1.44a14.4 14.4 0 0 0-8.99-3.14v2c2.81 0 5.54.96 7.74 2.7l1.24-1.56zm-8.99-3.14H66.2v2h26.9v-2z" fill="#B2B5BE"/><path d="M51 43.44v9" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/><path d="M38.91 95.18a12 12 0 0 1 9.52-14.05l16.7-3.21a12 12 0 0 1 4.53 23.56l-16.7 3.22a12 12 0 0 1-14.05-9.52z" fill="#1848CC"/><path d="M57.86 97.64l-1.26-2.12-3.85.75-.35 2.42-2.21.43 2.28-12.25.88-.17 6.71 10.52-2.2.42zm-4.29-7.42l-.55 4.4 2.7-.51-2.15-3.9zm10.18 6.3l-2.5.47-2.15-11.23a122 122 0 0 1 2.98-.66 5.34 5.34 0 0 1 4.17.7 5.23 5.23 0 0 1 2.17 3.53c.78 4.04-.78 6.43-4.67 7.18zm-2.32-9.4l1.47 7.67c.33-.03.68-.08 1.05-.16 1.01-.19 1.73-.7 2.16-1.55.43-.84.52-1.92.26-3.23-.46-2.4-1.8-3.4-4.04-2.96-.22.04-.52.12-.9.23z" fill="#E0E3EB"/></svg>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M110.57 62.3a9.1 9.1 0 0 1 1.06-5.14 34.59 34.59 0 0 0-7.65-42.5A34.6 34.6 0 0 0 55.18 18c-1.45 1.66-4.17 1.67-5.75.14a22.87 22.87 0 0 0-33.17 1.38A22.86 22.86 0 1 0 44.49 54.6c2.01-1.1 4.75-.36 5.77 1.69.6 1.18.5 2.62-.28 3.7-12 16.4-12.77 36.58-1.17 46.71 12.5 10.92 34.64 6.04 49.45-10.9 9.06-10.37 13.28-22.85 12.32-33.48z" fill="#2A2E39"/><path d="M112 98.84v-67a4 4 0 0 0-4-4H12a4 4 0 0 0-4 4v67a4 4 0 0 0 4 4h96a4 4 0 0 0 4-4z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M14 24.84a4 4 0 0 1 4-4h32a10 10 0 0 1 10 10v72c-3.1-3.8-7.75-6-12.66-6H18a4 4 0 0 1-4-4v-68zM106 24.84a4 4 0 0 0-4-4H70a10 10 0 0 0-10 10v72c3.1-3.8 7.75-6 12.66-6H102a4 4 0 0 0 4-4v-68z" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><rect x="20" y="28.84" width="34" height="27" rx="2" fill="#1848CC"/><path d="M25 62.85h-3.01a1 1 0 0 0-1 1v3m4.01 21h-3.01a1 1 0 0 1-1-1v-3m28.01 4h3.01a1 1 0 0 0 1-1v-3m-4.01-21h3.01a1 1 0 0 1 1 1v3M71 62.85h-3.01a1 1 0 0 0-1 1v3m4.01 21h-3.01a1 1 0 0 1-1-1v-3m28.01 4h3.01a1 1 0 0 0 1-1v-3m-4.01-21h3.01a1 1 0 0 1 1 1v3M71 29.84h-3.01a1 1 0 0 0-1 1v3m4.01 21h-3.01a1 1 0 0 1-1-1v-3m28.01 4h3.01a1 1 0 0 0 1-1v-3m-4.01-21h3.01a1 1 0 0 1 1 1v3" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/><path d="M23.92 51.77l3.42-5.35 4.7 3.53 5.13-7.98 6.31 5.52 6.8-10.57" stroke="#D1D4DC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="29.91" cy="36.79" r="2.87" stroke="#D1D4DC" stroke-width="2"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#4758a9" d="M0 0h18v18H0z"/><path fill="#ffda44" d="M9 2l.3 1.1h1.2l-1 .7L10 5l-1-.7L8 5l.4-1.2-1-.7h1.3zM4 4l1.1.6.8-.9L5.8 5l1 .6-1.2.1-.1 1.2-.6-1-1.2.2.9-.9zM2 9l1.1-.4V7.4l.7 1L5 8l-.7 1 .7 1-1.1-.4-.7 1V9.2zm2 4.9l.6-1.1-.9-.9 1.2.2.5-1 .2 1.1 1.2.2-1 .6.1 1.2-.8-.9zm5 2l-.4-1.1H7.4l1-.7-.4-1.2 1 .7 1-.7-.4 1.2 1 .7H9.2zm4.8-2l-1-.6-.9.9.2-1.2-1-.6 1.1-.1.2-1.2.6 1L14 12l-.8.8zm2-5l-1 .4v1.2l-.8-1-1 .4.6-1-.7-1 1.1.4.8-1v1.3zm-2-4.9l-.5 1.1.9.8-1.2-.1-.6 1-.1-1.2-1.2-.1 1-.6-.2-1.2.9.9z"/></svg>
|
||||
|
Before Width: | Height: | Size: 601 B |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M74.94 13.1a4.86 4.86 0 0 0 6.38-.59C88.2 5.27 97.6 2.49 104.9 6.34c9.42 4.96 11.8 19.08 5.3 31.52-3.4 6.53-8.57 11.3-14.07 13.65a2.96 2.96 0 0 0-1.82 2.64c-.43 26-19.51 46.97-43.24 48.3a2 2 0 0 0-1.66 1.07c-6.47 12.4-21.1 17.52-32.67 11.43-11.56-6.09-15.7-21.09-9.22-33.5l.6-1.08c.77-1.32.87-2.94.21-4.32-3.36-7-5.2-14.97-5.06-23.4C3.73 25.51 24.47 3.86 49.6 4.28c9.43.15 18.15 3.4 25.33 8.82z" fill="#F0F3FA"/><rect x="17" y="20" width="82" height="82" rx="15" fill="#fff" stroke="#1E222D" stroke-width="2"/><path d="M84.09 45.14a1 1 0 0 0 .64 1.85 28.43 28.43 0 0 0 4.38-.9A23.91 23.91 0 0 1 85 49.83a1 1 0 0 0-.42.87c.02.54.04 1.07.04 1.61 0 16.55-12.6 35.58-35.58 35.58a35.3 35.3 0 0 1-15.65-3.61 26.82 26.82 0 0 0 15.56-5.68 1 1 0 0 0-.6-1.79 11.95 11.95 0 0 1-10.44-6.7.18.18 0 0 1 .11-.04h.74c1.26 0 2.49-.14 3.63-.45a1 1 0 0 0-.06-1.94 12.11 12.11 0 0 1-9.5-10.06l.07.01c1.5.53 3.14.8 4.72.84a1 1 0 0 0 .57-1.83 11.87 11.87 0 0 1-4.29-14.55 37.35 37.35 0 0 0 26.23 12.64 1 1 0 0 0 1.03-1.22c-.2-.84-.28-1.74-.28-2.7a11.85 11.85 0 0 1 20.5-8.11 1 1 0 0 0 .93.3c2.04-.41 4-1.04 5.86-1.88-1 1.65-2.4 3.03-4.07 4.03z" stroke="#1E222D" stroke-width="2" stroke-linejoin="round"/><circle cx="96.16" cy="22.62" r="11.52" fill="url(#b)"/><path d="M108.79 22.33A12.52 12.52 0 1 1 84.94 17" stroke="#F0F3FA" stroke-width="2"/></g><defs><linearGradient id="b" x1="96.16" y1="11.11" x2="96.16" y2="34.14" gradientUnits="userSpaceOnUse"><stop stop-color="#2962FF"/><stop offset="1" stop-color="#2962FF"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h120v120H0z"/></clipPath></defs></svg>
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="121" viewBox="0 0 120 121" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 .2h120v120H0V.2z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M70.36 48.94c-2.64 1.4-6.71-.8-6.71-3.78 0-23.73-13.22-42.97-29.52-42.97-16.3 0-29.51 19.24-29.51 42.97 0 9.4 2.07 18.08 5.58 25.16 1.32 2.65-.27 6.24-2.42 8.27a9.48 9.48 0 0 0-3.04 6.91c0 5.42 4.68 9.8 10.46 9.8 3.4 0 6.44-1.53 8.35-3.9 1.71-2.13 4.7-3.94 7.4-3.52 1.04.17 2.1.25 3.18.25 4.06 0 7.93-1.2 11.45-3.35 3.14-1.93 8.73-.2 10.19 3.18 4.95 11.45 16.92 19.53 30.9 19.53 18.4 0 33.33-14 33.33-31.27s-14.92-31.27-33.33-31.27a34.9 34.9 0 0 0-16.31 4z" fill="#F0F3FA"/><rect x="11" y="40.19" width="98" height="16" rx="1" stroke="#1E222D" stroke-width="2"/><rect x="16.2" y="56.19" width="88" height="57" rx="1" stroke="#1E222D" stroke-width="2"/><path d="M77.28 27.06a6.94 6.94 0 0 1-1.2 9.73c-.69.54-2.05 1.08-3.88 1.56-1.78.47-3.85.86-5.84 1.16a113.66 113.66 0 0 1-6 .76 115.23 115.23 0 0 1 2.19-5.63 58.33 58.33 0 0 1 2.54-5.4c.91-1.65 1.76-2.84 2.45-3.38a6.94 6.94 0 0 1 9.74 1.2zM42.72 27.06a6.94 6.94 0 0 0 1.2 9.73c.69.54 2.05 1.08 3.88 1.56 1.78.47 3.85.86 5.84 1.16a113.66 113.66 0 0 0 6 .76 115.23 115.23 0 0 0-2.19-5.63 58.33 58.33 0 0 0-2.54-5.4c-.91-1.65-1.76-2.84-2.45-3.38a6.94 6.94 0 0 0-9.74 1.2zM85.41 39.2v21.15" stroke="#1E222D" stroke-width="2"/><path d="M72.51 71.91a2 2 0 0 1 .62-1.44l10.9-10.48a2 2 0 0 1 2.77 0l10.9 10.48c.39.38.6.9.6 1.44v25.05a2 2 0 0 1-2 2H74.52a2 2 0 0 1-2-2V71.91z" fill="url(#aep2rzqsh)"/><path d="M60 40.2v72" stroke="#1E222D" stroke-width="2"/><path d="M107.69 17.7l-8.99 8.99M79.25 11.44L77.8 17.3M45.93 4.39l2.73 12.9M18.57 18.25l3.87 3.87" stroke="#1E222D" stroke-width="2" stroke-linecap="round"/><defs><linearGradient id="aep2rzqsh" x1="85.41" y1="58.66" x2="85.41" y2="98.96" gradientUnits="userSpaceOnUse"><stop stop-color="#2962FF"/><stop offset="1" stop-color="#2962FF"/></linearGradient></defs></svg>
|
||||
|
Before Width: | Height: | Size: 1.9 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#8d1b3d" d="M0 0h18v18H0z"/><path fill="#f5f7fa" d="M0 0v18h3.5v-.5l3-1-3-1 3-1-3-1 3-1-3-1 3-1-3-1 3-1-3-1 3-1-3-1 3-1-3-1 3-1-3-1 3-1V0H0z"/></svg>
|
||||
|
Before Width: | Height: | Size: 244 B |
|
Before Width: | Height: | Size: 124 KiB |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18A9 9 0 1 0 9 0a9 9 0 0 0 0 18z" fill="#F0F0F0"/><path d="M9 0C7.4 0 5.91.41 4.62 1.14v15.72A9 9 0 1 0 9 0z" fill="#57A863"/><path d="M4.64 1.12a9.02 9.02 0 0 0-1.43.99L10.11 9l-6.9 6.9a8.83 8.83 0 0 1 1.43.98L18 9 4.64 1.12z" fill="#F0F0F0"/><path d="M3.88 1.6c-.27.19-.53.39-.79.6L9 9l-5.9 6.8c.25.21.5.41.78.6L16.46 9 3.88 1.6z" fill="#FC0"/><path d="M3.21 2.1c-.2.18-.39.35-.57.54L8.22 9l-5.58 6.36c.18.19.37.36.57.53L10.11 9 3.2 2.1z" fill="#000"/><path d="M2.64 2.64a9 9 0 0 0 0 12.72L9 9 2.64 2.64z" fill="#ED5565"/></svg>
|
||||
|
Before Width: | Height: | Size: 637 B |
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M27.12 37.49a45.06 45.06 0 0 1 87.62 21.05 44.97 44.97 0 0 1-27.66 31.5 5.48 5.48 0 0 0-3.33 3.83 32.83 32.83 0 0 1-63.83-15.33 32.66 32.66 0 0 1 5.7-12.08 8.91 8.91 0 0 0 1.6-7.5 44.76 44.76 0 0 1-.1-21.47z" fill="#F0F3FA"/><path d="M2.13 43.36c-.1-.92.48-1.8 1.35-2.1 54.66-19.07 67.37.28 106.52-10.4 1.21-.32 2.46.5 2.6 1.74l5 47.65c.09.88-.42 1.72-1.23 2.05-32.8 13.07-57.45-4.28-106.63 10.3a2.04 2.04 0 0 1-2.62-1.71L2.13 43.36z" fill="#fff"/><path d="M57.81 36.55a1 1 0 0 1 1.66-.1l8.56 11.3a1 1 0 0 0 .58.36l13.81 3.14a1 1 0 0 1 .6 1.55l-8.09 11.63a1 1 0 0 0-.17.66l1.28 14.1a1 1 0 0 1-1.28 1.05l-13.56-4.1a1 1 0 0 0-.68.04L47.5 81.77a1 1 0 0 1-1.4-.9l-.3-14.16a1 1 0 0 0-.24-.64L36.23 55.4a1 1 0 0 1 .42-1.6l13.38-4.66a1 1 0 0 0 .53-.43l7.25-12.17z" fill="#2962FF"/><path d="M53.02 68.86a8.26 8.26 0 0 1-1.8-.3 6.03 6.03 0 0 1-1.49-.53l.67-1.91c.37.25.84.46 1.43.64.6.18 1.12.26 1.58.24.8-.03 1.43-.27 1.9-.72.47-.46.7-1.02.67-1.7-.01-.42-.1-.8-.25-1.12a1.96 1.96 0 0 0-.6-.77c-.25-.2-.8-.48-1.68-.85l-1.23-.52A4.87 4.87 0 0 1 50 59.69a4.44 4.44 0 0 1-.69-2.35c-.03-.95.24-1.78.8-2.5a4 4 0 0 1 2.37-1.42l-.06-1.64 1.42-.05.06 1.57c1.47 0 2.47.24 3 .7l-.53 1.8c-.28-.2-.7-.37-1.27-.53a5 5 0 0 0-1.57-.23c-.7.03-1.24.24-1.63.65-.38.41-.56.93-.54 1.55.01.38.1.73.25 1.04.15.3.37.57.64.78.28.2.8.48 1.6.83l.95.4a5.6 5.6 0 0 1 2.4 1.76c.52.7.8 1.61.83 2.74.04.93-.27 1.75-.9 2.48a4.71 4.71 0 0 1-2.7 1.44l.09 2.37-1.43.05-.08-2.27zM64.43 68.2l-.4-11.5-2.99 2.01-.06-1.91c.76-.42 1.56-.99 2.4-1.7.85-.71 1.5-1.38 1.96-2.02l.62-.02.52 15.08-2.05.07zM81.35 8.92c.22-.63 1.12-.63 1.34 0a12.61 12.61 0 0 0 7.28 7.54.7.7 0 0 1 0 1.3 12.61 12.61 0 0 0-7.28 7.54c-.22.62-1.12.62-1.34 0a12.61 12.61 0 0 0-7.29-7.54.7.7 0 0 1 0-1.3c3.4-1.32 6.07-4.1 7.29-7.54z" fill="#fff"/><path d="M80.4 8.59a1.71 1.71 0 0 1 3.23 0 11.61 11.61 0 0 0 6.7 6.94 1.7 1.7 0 0 1 0 3.16 11.61 11.61 0 0 0-6.7 6.94 1.71 1.71 0 0 1-3.22 0 11.61 11.61 0 0 0-6.7-6.94 1.7 1.7 0 0 1 0-3.16 11.61 11.61 0 0 0 6.7-6.94zm1.62 1.37a13.62 13.62 0 0 1-6.92 7.15 13.62 13.62 0 0 1 6.92 7.14 13.62 13.62 0 0 1 6.91-7.14c-3.12-1.41-5.6-4-6.91-7.15z" fill="#1E222D"/><path d="M29.26 62.5a77.08 77.08 0 0 0-16.3 3.92 1 1 0 0 1-.68-1.88 79.05 79.05 0 0 1 16.77-4.03 1 1 0 0 1 .21 2zM106.4 57.67c-3.9.76-10.96 1.6-16.7 1.3a1 1 0 0 0-.11 2c5.95.31 13.19-.55 17.2-1.34a1 1 0 0 0-.38-1.96z" fill="#1E222D"/><path d="M68.42 32.4c12.63 1.08 24.48 2.1 41.32-2.5 1.77-.48 3.65.7 3.85 2.6l5 47.65a2.98 2.98 0 0 1-1.85 3.08c-16 6.37-30.1 5.6-45.72 4.76l-1.88-.1c-16.38-.88-34.7-1.57-59.12 5.67A3.04 3.04 0 0 1 6.12 91L1.15 43.46c-.15-1.4.72-2.7 2.01-3.14 27.49-9.6 44.47-9.53 59.48-8.4 1.96.15 3.88.31 5.79.48zm-5.94 1.52c-14.8-1.12-31.5-1.2-58.67 8.28-.45.16-.73.61-.68 1.05L8.12 90.8c.06.6.7 1.04 1.33.85 24.76-7.34 43.36-6.63 59.8-5.75l1.73.1h.04c15.7.85 29.4 1.6 44.98-4.62.4-.16.65-.58.6-1.01l-5-47.66a1.05 1.05 0 0 0-1.33-.87c-17.2 4.7-29.4 3.65-42.04 2.56-1.9-.16-3.81-.33-5.75-.47z" fill="#1E222D"/><path d="M47.88 95.92a1 1 0 0 1 1 1v3.75a1 1 0 0 1-2 0v-3.75a1 1 0 0 1 1-1zM47.88 105.08a1 1 0 0 1 1 1v3.75a1 1 0 1 1-2 0v-3.75a1 1 0 0 1 1-1zM40.36 103.38a1 1 0 0 1 1-1h3.75a1 1 0 1 1 0 2h-3.75a1 1 0 0 1-1-1zM49.51 103.38a1 1 0 0 1 1-1h3.75a1 1 0 1 1 0 2h-3.75a1 1 0 0 1-1-1z" fill="#1E222D"/></svg>
|
||||
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -1 +0,0 @@
|
||||
.slow-warning-warhOVjI{flex-shrink:0;margin-bottom:36px}
|
||||
@@ -1 +0,0 @@
|
||||
.slow-warning-warhOVjI{flex-shrink:0;margin-bottom:36px}
|
||||
21
charting_library/bundles/2301.327e64f11055caec2fc9.js
Normal file
@@ -0,0 +1,21 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2301],{66783:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,r){if(n(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var s=0;s<o.length;s++)if(!t.call(r,o[s])||!n(e[o[s]],r[o[s]]))return!1;return!0}},55576:e=>{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},74246:e=>{e.exports={actions:"actions-FZxvEi7a",actionButton:"actionButton-FZxvEi7a"}},82132:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",itemRow:"itemRow-uhHv1IHJ",multiLine:"multiLine-uhHv1IHJ",cell:"cell-uhHv1IHJ",itemInfoCell:"itemInfoCell-uhHv1IHJ",description:"description-uhHv1IHJ",symbolDescription:"symbolDescription-uhHv1IHJ",flag:"flag-uhHv1IHJ",exchangeDescription:"exchangeDescription-uhHv1IHJ",marketType:"marketType-uhHv1IHJ",exchangeName:"exchangeName-uhHv1IHJ",actionHandleWrap:"actionHandleWrap-uhHv1IHJ",hover:"hover-uhHv1IHJ",selected:"selected-uhHv1IHJ",active:"active-uhHv1IHJ",highlighted:"highlighted-uhHv1IHJ",light:"light-uhHv1IHJ","highlight-animation-theme-light":"highlight-animation-theme-light-uhHv1IHJ",dark:"dark-uhHv1IHJ","highlight-animation-theme-dark":"highlight-animation-theme-dark-uhHv1IHJ",markedFlag:"markedFlag-uhHv1IHJ",offset:"offset-uhHv1IHJ",descriptionCell:"descriptionCell-uhHv1IHJ",addition:"addition-uhHv1IHJ",exchangeCell:"exchangeCell-uhHv1IHJ",fixedWidth:"fixedWidth-uhHv1IHJ",expandHandle:"expandHandle-uhHv1IHJ",expanded:"expanded-uhHv1IHJ",symbolTitle:"symbolTitle-uhHv1IHJ",invalid:"invalid-uhHv1IHJ",noDescription:"noDescription-uhHv1IHJ",highlightedText:"highlightedText-uhHv1IHJ",icon:"icon-uhHv1IHJ",narrow:"narrow-uhHv1IHJ",dataMode:"dataMode-uhHv1IHJ",actionsCell:"actionsCell-uhHv1IHJ",action:"action-uhHv1IHJ",targetAction:"targetAction-uhHv1IHJ",removeAction:"removeAction-uhHv1IHJ",addAction:"addAction-uhHv1IHJ",
|
||||
markedFlagWrap:"markedFlagWrap-uhHv1IHJ",markedFlagMobile:"markedFlagMobile-uhHv1IHJ",logo:"logo-uhHv1IHJ",isExpandable:"isExpandable-uhHv1IHJ"}},42608:e=>{e.exports={wrap:"wrap-nJ9riypy",libAllSelected:"libAllSelected-nJ9riypy",container:"container-nJ9riypy",iconWrap:"iconWrap-nJ9riypy",icon:"icon-nJ9riypy",title:"title-nJ9riypy",highlighted:"highlighted-nJ9riypy",description:"description-nJ9riypy",mobile:"mobile-nJ9riypy",allSelected:"allSelected-nJ9riypy",desktop:"desktop-nJ9riypy",allSelectedIcon:"allSelectedIcon-nJ9riypy",selected:"selected-nJ9riypy",titleWithoutDesc:"titleWithoutDesc-nJ9riypy",textBlock:"textBlock-nJ9riypy",bordered:"bordered-nJ9riypy"}},90819:e=>{e.exports={container:"container-ZOfHxh0z",contentList:"contentList-ZOfHxh0z",contentListDesktop:"contentListDesktop-ZOfHxh0z",searchSourceItemsContainer:"searchSourceItemsContainer-ZOfHxh0z",searchSourceItemsContainerDesktop:"searchSourceItemsContainerDesktop-ZOfHxh0z",groupTitleDesktop:"groupTitleDesktop-ZOfHxh0z",emptyText:"emptyText-ZOfHxh0z",noResultsDesktop:"noResultsDesktop-ZOfHxh0z"}},77338:e=>{e.exports={wrap:"wrap-LlwUhJDs",item:"item-LlwUhJDs",small:"small-LlwUhJDs",text:"text-LlwUhJDs",exchange:"exchange-LlwUhJDs"}},74915:e=>{e.exports={wrap:"wrap-SLQfcZ66",watchlist:"watchlist-SLQfcZ66",noFeed:"noFeed-SLQfcZ66",scrollContainer:"scrollContainer-SLQfcZ66",listContainer:"listContainer-SLQfcZ66",multiLineItemsContainer:"multiLineItemsContainer-SLQfcZ66"}},98749:e=>{e.exports={button:"button-v1WheJQo",desktop:"desktop-v1WheJQo"}},92540:e=>{e.exports={search:"search-RSKUFnp7",upperCase:"upperCase-RSKUFnp7",symbolType:"symbolType-RSKUFnp7",spinnerWrap:"spinnerWrap-RSKUFnp7",emptyText:"emptyText-RSKUFnp7",noResultsDesktop:"noResultsDesktop-RSKUFnp7",brokerCheckboxWrap:"brokerCheckboxWrap-RSKUFnp7"}},53474:e=>{e.exports={flagWrap:"flagWrap-7I0uFLqE",icon:"icon-7I0uFLqE",caret:"caret-7I0uFLqE",title:"title-7I0uFLqE"}},6215:e=>{e.exports={dialog:"dialog-JcokGZNe",tabletDialog:"tabletDialog-JcokGZNe",desktopDialog:"desktopDialog-JcokGZNe"}},70516:e=>{e.exports={childrenWrapper:"childrenWrapper-HNZPlz4e",container:"container-HNZPlz4e"}},99167:e=>{e.exports={bubbles:"bubbles-bgopH9MJ",multiLine:"multiLine-bgopH9MJ",bubble:"bubble-bgopH9MJ"}},74765:e=>{e.exports={bubble:"bubble-vcCjkHCG",animated:"animated-vcCjkHCG",content:"content-vcCjkHCG","appearance-default":"appearance-default-vcCjkHCG",active:"active-vcCjkHCG",red:"red-vcCjkHCG",blue:"blue-vcCjkHCG",green:"green-vcCjkHCG",orange:"orange-vcCjkHCG",purple:"purple-vcCjkHCG",cyan:"cyan-vcCjkHCG",pink:"pink-vcCjkHCG","appearance-text":"appearance-text-vcCjkHCG","fontSize-s":"fontSize-s-vcCjkHCG","fontSize-m":"fontSize-m-vcCjkHCG","size-m":"size-m-vcCjkHCG","size-l":"size-l-vcCjkHCG"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,n)=>{"use strict";function r(e){return a(e,s)}function o(e){return a(e,l)}function a(e,t){
|
||||
const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function l(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>r,filterAriaProps:()=>o,filterProps:()=>a,isDataAttribute:()=>s,isAriaAttribute:()=>l})},4825:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>i,ToolWidgetButton:()=>c});var r=n(59496),o=n(97754),a=n(9745),s=n(37669),l=n(55576);const i=l,c=r.forwardRef((e,t)=>{const{icon:n,isActive:i,isOpened:c,isDisabled:u,isGrouped:d,isHovered:h,onClick:p,text:m,textBeforeIcon:v,title:f,theme:g=l,className:y,forceInteractive:b,"data-name":S,...x}=e,C=o(y,g.button,f&&"apply-common-tooltip",{[g.isActive]:i,[g.isOpened]:c,[g.isInteractive]:(b||Boolean(p))&&!u,[g.isDisabled]:u,[g.isGrouped]:d,[g.hover]:h,[g.newStyles]:s.hasNewHeaderToolbarStyles}),k=n&&("string"==typeof n?r.createElement(a.Icon,{className:g.icon,icon:n}):r.cloneElement(n,{className:o(g.icon,n.props.className)}));return r.createElement("div",{...x,ref:t,"data-role":"button",className:C,onClick:u?void 0:p,title:f,"data-name":S},v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m),k,!v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m))})},37669:(e,t,n)=>{"use strict";n.d(t,{hasNewHeaderToolbarStyles:()=>r});n(67337);const r=!1},47670:(e,t,n)=>{"use strict";n.d(t,{marketType:()=>i});var r=n(28353);n(94419);const o=new Map,a={context:"market_type"},s={cfd:(0,r.t)("cfd",a),bitcoin:(0,r.t)("crypto",a),crypto:(0,r.t)("crypto",a),dr:(0,r.t)("dr",a),forex:(0,r.t)("forex",a),futures:(0,r.t)("futures",a),index:(0,r.t)("index",a),stock:(0,r.t)("stock",a),economic:(0,r.t)("economy",a)},l=new Set(["cfd","spreadbet","defi"]);function i(e,t=[]){const n=t.filter(e=>l.has(e)),i=`${e}_${n.sort().join("_")}`,c=o.get(i);if(void 0!==c)return c;const u=Boolean(t.length)?(0,r.t)(e,a)+" "+n.join(" "):s[e]||e;return o.set(i,u),u}},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,o){function a(o){if(e>o.timeStamp)return;const a=o.target;void 0!==n&&null!==t&&null!==a&&a.ownerDocument===r&&(t.contains(a)||n(o))}return o.click&&r.addEventListener("click",a,!1),o.mouseDown&&r.addEventListener("mousedown",a,!1),o.touchEnd&&r.addEventListener("touchend",a,!1),o.touchStart&&r.addEventListener("touchstart",a,!1),()=>{r.removeEventListener("click",a,!1),r.removeEventListener("mousedown",a,!1),r.removeEventListener("touchend",a,!1),r.removeEventListener("touchstart",a,!1)}}n.d(t,{addOutsideEventListener:()=>r})},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>E});var r=n(59496),o=n(88537);var a=n(97754),s=n.n(a),l=n(68335),i=n(35749),c=n(63016),u=n(1109),d=n(24437),h=n(90692),p=n(95711),m=n(52092),v=n(76422),f=n(9745);const g=r.createContext({setHideClose:()=>{}});var y=n(37257),b=n(91441);function S(e){
|
||||
const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:a,renderBefore:l,renderAfter:i,draggable:c,className:u,unsetAlign:d}=e,[h,p]=(0,r.useState)(!1);return r.createElement(g.Provider,{value:{setHideClose:p}},r.createElement("div",{className:s()(b.container,u,(n||d)&&b.unsetAlign)},l,r.createElement("div",{"data-dragg-area":c,className:b.title},r.createElement("div",{className:b.ellipsis},t),n&&r.createElement("div",{className:s()(b.ellipsis,b.subtitle)},n)),i,o&&!h&&r.createElement(f.Icon,{className:b.close,icon:y,onClick:a,"data-name":"close","data-role":"button"})))}var x=n(67179);const C={vertical:20},k={vertical:0};class E extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,i.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;v.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){
|
||||
const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:a,dataName:l,onClickOutside:i,additionalElementPos:m,additionalHeaderElement:v,backdrop:f,shouldForceFocus:g=!0,showSeparator:y,subtitle:b,draggable:E=!0,fullScreen:w=!1,showCloseIcon:I=!0,rounded:N=!0,isAnimationEnabled:H,growPoint:_,dialogTooltip:D,unsetHeaderAlign:T,onDragStart:M,dataDialogName:L}=this.props,A="after"!==m?v:void 0,F="after"===m?v:void 0,O="string"==typeof a?a:L||"";return r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||w)&&N,className:s()(x.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:i,onClickBackdrop:i,fullscreen:d||w,guard:m?k:C,boundByScreen:d||w,shouldForceFocus:g,backdrop:f,draggable:E,isAnimationEnabled:H,growPoint:_,name:this.props.dataName,dialogTooltip:D,onDragStart:M},r.createElement("div",{className:s()(x.wrapper,t),"data-name":l,"data-dialog-name":O},void 0!==a&&r.createElement(S,{draggable:E&&!(d||w),onClose:this._handleClose,renderAfter:F,renderBefore:A,subtitle:b,title:a,showCloseIcon:I,className:n,unsetAlign:T}),y&&r.createElement(u.Separator,{className:x.separator}),r.createElement(p.PopupContext.Consumer,null,e=>this._renderChildren(e,d||w))))))}}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>u});var r=n(59496),o=n(97754),a=n.n(o),s=n(28353),l=n(9745),i=n(5639),c=n(28712);function u(e){const{children:t,renderInput:n,onCancel:o,...u}=e;return r.createElement("div",{className:c.container},r.createElement("div",{className:a()(c.inputContainer,o&&c.withCancel)},n||r.createElement(d,{...u})),t,r.createElement(l.Icon,{className:c.icon,icon:i}),o&&r.createElement("div",{className:c.cancel,onClick:o},(0,s.t)("Cancel")))}function d(e){const{className:t,reference:n,value:o,onChange:s,onFocus:l,onBlur:i,onKeyDown:u,onSelect:d,placeholder:h,...p}=e;return r.createElement("input",{...p,ref:n,type:"text",className:a()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:o,onChange:s,onFocus:l,onBlur:i,onSelect:d,onKeyDown:u})}},5648:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogContentItem:()=>g});var r=n(59496),o=n(97754),a=n.n(o),s=n(88537),l=n(9745),i=(n(67337),n(24637)),c=n(19785),u=n(84524),d=n(24633),h=n(77975),p=n(45345),m=n(32563),v=n(88142),f=n(82132);function g(e){const{dangerousTitleHTML:t,title:n,dangerousDescriptionHTML:o,description:g,searchToken:y,exchangeName:b,marketType:S,onClick:x,isSelected:C,isEod:k=!1,isActive:E=!1,isOffset:w=!1,invalid:I=!1,isHighlighted:N=!1,hideExchange:H=!1,hideMarkedListFlag:_=!1,onExpandClick:D,isExpanded:T,hoverComponent:M,country:L,providerId:A,source:F,type:O,flag:R,itemRef:B,onMouseOut:P,onMouseOver:J,className:z,actions:V,reference:W,fullSymbolName:U,logoId:q,currencyLogoId:Z,baseCurrencyLogoId:G,shortName:j,hideLogo:K=!1}=e,{isSmallWidth:Q,isMobile:$}=(0,s.ensureNotNull)((0,
|
||||
r.useContext)(u.SymbolSearchItemsDialogContext)),Y=Boolean(M),X=!I&&!H&&($||!Y),ee=(0,h.useWatchedValueReadonly)({watchedValue:p.watchedTheme})===d.StdTheme.Dark?f.dark:f.light,te=M;return r.createElement("div",{className:a()(f.itemRow,Q&&f.multiLine,N&&f.highlighted,N&&ee,C&&f.selected,E&&f.active,I&&f.invalid,!$&&m.mobiletouch&&Y&&f.hover,z),onClick:function(e,t){if(!e||t.defaultPrevented)return;t.preventDefault(),e(t)}.bind(null,x),"data-role":e["data-role"]||"list-item","data-active":E,"data-name":"symbol-search-dialog-content-item",onMouseOut:P,onMouseOver:J,ref:W},r.createElement("div",{ref:B,className:a()(f.itemInfoCell,f.cell,w&&f.offset)},r.createElement("div",{className:a()(f.actionHandleWrap,f.fixedWidth)},r.createElement(r.Fragment,null,!1,D&&r.createElement("div",{onClick:function(e){if(!D||e.defaultPrevented)return;e.preventDefault(),D(e)}},r.createElement(l.Icon,{className:a()(f.expandHandle,T&&f.expanded,C&&f.selected),icon:v})),!1)),r.createElement("div",{className:a()(f.description,!1)},n&&r.createElement("div",{className:a()(f.symbolTitle,E&&f.active,I&&f.invalid,!Boolean(o)&&f.noDescription),"data-name":"list-item-title"},"string"==typeof n&&y?r.createElement(i.HighlightedText,{className:f.highlightedText,text:n,queryString:y,rules:(0,c.createRegExpList)(y)}):n,k&&r.createElement("span",{className:f.dataMode},"E")),!n&&t&&r.createElement("div",{className:a()(f.symbolTitle,E&&f.active,I&&f.invalid),"data-name":"list-item-title"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),k&&r.createElement("span",{className:f.dataMode},"E")),Q&&ne())),!Q&&r.createElement("div",{className:a()(f.cell,f.descriptionCell,Boolean(te)&&f.addition)},ne(),te?r.createElement(te,{...e,className:f.actions,onMouseOver:void 0,onMouseOut:void 0}):null),Q&&te?r.createElement(te,{...e,className:f.cell,onMouseOver:void 0,onMouseOut:void 0}):null,X&&r.createElement("div",{className:a()(f.exchangeCell,f.cell)},r.createElement("div",{className:a()(f.exchangeDescription)},r.createElement("div",{className:a()(f.marketType,E&&f.active)},S),"economic"===O&&F?r.createElement("div",{className:a()(f.exchangeName,E&&f.active,"apply-common-tooltip",f.narrow),title:F},F):r.createElement("div",{className:a()(f.exchangeName,E&&f.active)},b)),!1),r.createElement("div",{className:a()(f.cell,Boolean(V)&&f.actionsCell)},V));function ne(){if(I)return null;const e=a()(f.symbolDescription,E&&f.active,!m.mobiletouch&&"apply-overflow-tooltip apply-overflow-tooltip--allow-text");return g?r.createElement("div",{className:e},y?r.createElement(i.HighlightedText,{className:f.highlightedText,text:g,queryString:y,rules:(0,c.createRegExpList)(y)}):g):o?r.createElement("div",{className:e,dangerouslySetInnerHTML:{__html:o}}):null}}},58442:(e,t,n)=>{"use strict";n.d(t,{qualifyProName:()=>s,QualifiedSources:()=>r});var r,o=n(88537),a=n(67337);n(81319);function s(e){return e}!function(e){function t(e){return e.pro_name}function n(e){{const t=a.enabled("pay_attention_to_ticker_not_symbol")?e.ticker:e.full_name;return(0,o.ensureDefined)(t)}}
|
||||
e.fromQuotesSnapshot=function(e){return"error"===e.status?e.symbolname:e.values.pro_name},e.fromQuotesResponse=function(e){const{values:n,symbolname:r,status:o}=e;return"error"===o&&r?r:t(n)},e.fromQuotes=t,e.fromSymbolSearchResult=function(e,t){{const{ticker:n,full_name:r}=null!=t?t:e;return a.enabled("pay_attention_to_ticker_not_symbol")?(0,o.ensureDefined)(null!=n?n:r):(0,o.ensureDefined)(r)}},e.fromSymbolInfo=n,e.fromSymbolMessage=function(e,t){return"symbol_resolved"===t.method?n(t.params[1]):e}}(r||(r={}))},24389:(e,t,n)=>{"use strict";n.d(t,{QuoteSessionContext:()=>r});const r=n(59496).createContext(null)},20882:(e,t,n)=>{"use strict";function r(e){return""===e.value()}function o(e,t){return e.filter(e=>e.includes(t))}function a(e){const t=new Map;return e.forEach(e=>{t.has(e.group())?t.get(e.group()).push(e):t.set(e.group(),[e])}),t}function s(e,t){return t.map(t=>new e(t))}n.d(t,{isAllSearchSourcesSelected:()=>r,filterSearchSources:()=>o,splitSearchSourcesByGroup:()=>a,createSearchSources:()=>s})},1861:(e,t,n)=>{"use strict";n.d(t,{showSymbolSearchItemsDialog:()=>c});var r=n(59496),o=n(87995),a=n(50655),s=n(24389),l=n(51826),i=n(12045);function c(e){const{initialMode:t="symbolSearch",autofocus:n=!0,defaultValue:c,showSpreadActions:u,selectSearchOnInit:d,onSearchComplete:h,onSearchFeedReady:p,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,onClose:x,footer:C,symbolTypes:k,searchInput:E,emptyState:w,hideMarkedListFlag:I,dialogWidth:N="auto",manager:H}=e;if(l.dialogsOpenerManager.isOpened("SymbolSearch")||l.dialogsOpenerManager.isOpened("ChangeIntervalDialog"))return;const _=document.createElement("div"),D=r.createElement(a.SlotContext.Provider,{value:null!=H?H:null},r.createElement(s.QuoteSessionContext.Provider,{value:null},r.createElement(i.SymbolSearchItemsDialog,{onClose:T,initialMode:t,defaultValue:c,showSpreadActions:u,hideMarkedListFlag:I,onSearchFeedReady:p,selectSearchOnInit:d,onSearchComplete:h,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,footer:C,symbolTypes:k,searchInput:E,emptyState:w,autofocus:n,dialogWidth:N})));function T(){o.unmountComponentAtNode(_),l.dialogsOpenerManager.setAsClosed("SymbolSearch"),x&&x()}return o.render(D,_),l.dialogsOpenerManager.setAsOpened("SymbolSearch"),{close:T}}},70613:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogBodyContext:()=>r});const r=n(59496).createContext(null)},84524:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialogContext:()=>r});const r=n(59496).createContext(null)},12045:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialog:()=>Pe});var r=n(59496),o=n(97754),a=n.n(o),s=n(28353),l=n(7785),i=n(15983),c=n(84877),u=n(67337),d=n(24437),h=n(85457),p=n(9745),m=n(84524),v=n(69654),f=n(20882),g=n(70516);function y(e){const{children:t,className:n}=e;return r.createElement("div",{className:a()(g.container,n)},r.createElement("div",{className:g.childrenWrapper},t))}var b=n(88537),S=n(78036),x=n(24637),C=n(19785),k=n(29601),E=n(42608);function w(e){
|
||||
const{searchSource:t,onClick:n,queryString:o}=e,{selectedSearchSource:s,isAllSearchSourcesSelected:l,isMobile:i}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),c=(0,b.ensureNotNull)(s).value(),u=l(t),d=t.value()===c,h=(0,r.useMemo)(()=>(0,C.createRegExpList)(o),[o]),v=t.description(),f=v&&!u,g=a()(E.container,i?E.mobile:E.desktop,d&&E.selected,u&&E.allSelected,u&&E.libAllSelected,!u&&i&&E.bordered);return r.createElement("div",{className:a()(!i&&E.wrap,u&&E.libAllSelected),onClick:n},r.createElement("div",{className:g},r.createElement("div",{className:E.iconWrap},!!u&&r.createElement(p.Icon,{className:a()(E.icon,E.allSelectedIcon),icon:k})),r.createElement("div",{className:E.textBlock},r.createElement("div",{className:a()(E.title,!f&&!i&&E.titleWithoutDesc)},r.createElement(x.HighlightedText,{className:a()(d&&E.highlighted),queryString:o,text:t.name(),rules:h})),f&&r.createElement("div",{className:a()(E.description,"apply-overflow-tooltip")},r.createElement(x.HighlightedText,{className:E.highlighted,queryString:o,rules:h,text:v})))))}var I=n(77975),N=n(45345),H=n(26843),_=n(70613),D=n(70029),T=n(72802),M=n(90819);const L={emptyTextClassName:M.emptyText};function A(e){const{searchSources:t}=e,{setSelectedSearchSource:n,setMode:o,isMobile:l,emptyState:i,autofocus:c}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),u=(0,I.useWatchedValueReadonly)({watchedValue:N.watchedTheme})===H.StdTheme.Dark?D:T,[d,h]=(0,r.useState)(""),g=(0,r.useMemo)(()=>[{group:null,sources:(0,f.filterSearchSources)(t,d)}],[t,d]),b=(0,r.useRef)(null),x=(0,r.useRef)(null);(0,r.useLayoutEffect)(()=>{var e;c&&(null===(e=null==b?void 0:b.current)||void 0===e||e.focus())},[]);const C=i?r.createElement(i,null):r.createElement(y,{className:M.noResultsDesktop},r.createElement(p.Icon,{icon:u}),r.createElement("div",{className:M.emptyText},(0,s.t)("No exchanges match your criteria"))),k=!(g.length&&g.every(e=>0===e.sources.length));return r.createElement(_.SymbolSearchDialogBodyContext.Provider,{value:L},r.createElement(v.DialogSearch,{placeholder:(0,s.t)("Search"),onChange:function(e){h(e.target.value),x&&x.current&&(x.current.scrollTop=0)},reference:b}),k?r.createElement("div",{ref:x,className:a()(M.contentList,!l&&M.contentListDesktop),onTouchStart:function(){var e;null===(e=b.current)||void 0===e||e.blur()}},g.map(e=>{const{group:t,sources:n}=e;return 0===n.length?r.createElement(r.Fragment,{key:t}):r.createElement(r.Fragment,{key:t},!1,r.createElement("div",{className:a()(M.searchSourceItemsContainer,!l&&M.searchSourceItemsContainerDesktop)},n.map(e=>r.createElement(w,{key:e.value(),searchSource:e,queryString:d,onClick:E.bind(null,e)}))))})):C);function E(e){n(e),o("symbolSearch")}}var F=n(87995),O=n(8128);n(76861),n(85198);function R(e){return e.hasOwnProperty("exchange")}async function B(e){return new Promise(t=>{window.ChartApiInstance.searchSymbols(e.text||"",e.exchange||"",e.type||"","",!1,!0,"",!0,"",e=>{t(e)})})}
|
||||
var P=n(81319),J=n(78136),z=n(51768),V=n(68335),W=n(4825),U=n(20832),q=n(21740),Z=n(38927),G=n(43088),j=n(56584),K=n(19586),Q=n(74246);function $(e){var t;const{state:n,update:o}=e,{searchRef:a,forceUpdate:s,upperCaseEnabled:c}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),d=(0,l.tokenize)(null===(t=a.current)||void 0===t?void 0:t.value),h=(0,i.validate)(d);let p=[{icon:U,insert:"/",type:"binaryOp",name:"division"},{icon:q,insert:"-",type:"binaryOp",name:"subtraction"},{icon:Z,insert:"+",type:"binaryOp",name:"addition"},{icon:G,insert:"*",type:"binaryOp",name:"multiplication"}];return u.enabled("hide_exponentiation_spread_operator")||(p=p.concat([{icon:j,insert:"^",type:"binaryOp",name:"exponentiation"}])),u.enabled("hide_reciprocal_spread_operator")||(p=p.concat([{icon:K,type:"complete",name:"1/x",callback:()=>{!a.current||h.errors.length||h.warnings.length||(a.current.value=(0,i.stringifyTokens)((0,i.flip)(d)),s())}}])),r.createElement("div",{className:Q.actions},p.map(e=>r.createElement(W.ToolWidgetButton,{className:Q.actionButton,icon:e.icon,key:e.name,isDisabled:Y(e,h),onClick:()=>function(e){var t;if(!Y(e,h)){if(e.insert&&a.current){const t=a.current.value+e.insert;a.current.value=t,a.current.setSelectionRange(t.length,t.length);const[r,,l]=(0,i.getCurrentTokenParamsFromInput)(a.current,c);n.current&&(n.current.selectedIndexValue=-1,n.current.searchSpreadsValue=(0,i.isSpread)(l),n.current.searchTokenValue=r),s(),o()}e.callback&&e.callback(),null===(t=a.current)||void 0===t||t.focus(),(0,z.trackEvent)("GUI","SS",e.name)}}(e)})))}function Y(e,t){let n=!1;if(!t.errors.length)switch(e.type){case"binaryOp":n="var"===t.currentState;break;case"openBrace":n="var"!==t.currentState;break;case"closeBrace":n="var"===t.currentState&&t.braceBalance>0;break;case"complete":n=!t.errors.length&&!t.warnings.length}return!n}var X=n(90186),ee=n(74765);function te(e){const{title:t,isActive:n,isAnimated:r,activeColor:o,size:s="m",appearance:l="default",fontSize:i="m",className:c}=e;return a()(ee.bubble,n&&ee.active,o&&ee[o],t&&"apply-common-tooltip",s&&ee["size-"+s],i&&ee["fontSize-"+i],l&&ee["appearance-"+l],r&&ee.animated,c)}function ne(e){const{id:t,title:n,tabIndex:o,role:s,contentClassName:l,children:i,onClick:c,onMouseDown:u,reference:d,...h}=e;return r.createElement("span",{...(0,X.filterAriaProps)(h),...(0,X.filterDataProps)(h),id:t,title:n,tabIndex:o,role:s,className:te(e),onClick:c,onMouseDown:u,ref:d},r.createElement("span",{className:a()(ee.content,l)},i))}var re=n(99167);function oe(e){const{className:t,itemClassName:n,itemContentClassName:a,items:s,getItemTitle:l,getItemTooltip:i,getItemKey:c,checkItemIsActive:u,getItemColor:d,onBubbleClick:h,multiline:p,children:m,BubbleComponent:v=ne,reference:f,fontSize:g}=e;return r.createElement("div",{className:o(t,re.bubbles,p&&re.multiLine),ref:f},s.map((e,t)=>r.createElement(v,{key:c?c(e):t,id:c?c(e):t.toString(),className:o(re.bubble,n),contentClassName:a,onClick:function(){h(e)},onMouseDown:function(e){e.preventDefault()},isActive:!!u&&u(e),
|
||||
activeColor:d?d(e):void 0,fontSize:g,title:i?i(e):void 0},l(e))),m)}var ae=n(61074),se=n(83199),le=n(9837),ie=n.n(le),ce=n(10381),ue=n(53474);function de(e){const{mode:t,setMode:n,searchRef:o,cachedInputValue:l,selectedSearchSource:i,isAllSearchSourcesSelected:c,upperCaseEnabled:u}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),d=(0,b.ensureNotNull)(i),h="symbolSearch"===t,v=c(d);return h?r.createElement("div",{className:a()(ue.flagWrap,"apply-common-tooltip"),title:(0,s.t)("Select source"),onClick:function(){o.current&&(l.current=u?o.current.value.toUpperCase():o.current.value);n("exchange")}},!!v&&r.createElement(p.Icon,{className:ue.icon,icon:k}),r.createElement("div",{className:ue.title},d.name()),r.createElement(ce.ToolWidgetCaret,{className:ue.caret,dropped:!1})):null}var he=n(77338);function pe(e){const{isSmallWidth:t,selectedSearchSource:n,searchSources:o}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),l=n&&o.length>1&&!(0,P.exchangeSelectDisabled)();return r.createElement("div",{className:a()(he.wrap,t&&he.small)},r.createElement("div",{className:he.item},r.createElement("div",{className:he.text},t?(0,s.t)("Symbol & description"):(0,s.t)("Symbol"))),r.createElement("div",{className:he.item},!t&&r.createElement("div",{className:he.text},(0,s.t)("Description")),l&&r.createElement("div",{className:he.exchange},r.createElement(de,null))))}var me=n(62820),ve=n(74915);function fe(e){const{onTouchMove:t,listRef:n,className:o,listWrapRef:s,virtualListKey:l,items:i,getItemSize:c,hideFeed:u}=e,{mode:d,isSmallWidth:h,handleListWidth:p}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),[v,f]=(0,r.useState)(null),g=(0,r.useCallback)(e=>{const{index:t,style:n}=e;return r.createElement("div",{style:n},i[t])},[i]),y=(0,r.useCallback)(e=>(0,b.ensure)(i[e].key),[i]),x="watchlist"===d&&null!==v;return r.createElement(ie(),{onMeasure:function(e){f(e.height),p(e.width)}},r.createElement("div",{ref:s,className:a()(ve.wrap,x&&ve.watchlist,u&&ve.noFeed,o),onTouchMove:t},r.createElement("div",{className:a()(ve.scrollContainer,u&&ve.noFeed)},x?r.createElement(se.VariableSizeList,{key:l,ref:n,className:ve.listContainer,width:"100%",height:(0,b.ensureNotNull)(v),itemCount:i.length,itemSize:c,children:g,itemKey:y,overscanCount:20,direction:(0,me.isRtl)()?"rtl":"ltr"}):r.createElement("div",{className:a()(ve.listContainer,h&&ve.multiLineItemsContainer)},r.createElement(pe,null),...i))))}var ge=n(5648),ye=n(92540);const be=u.enabled("hide_image_invalid_symbol");function Se(e){const{token:t,state:n,otherSymbolsCount:o,onChangeSymbolTypeFilter:a,onResetFilters:s,onListTouchMove:l,brokerTitle:i,isBrokerChecked:c,onBrokerCheckboxChange:u,listRef:d,listWrapRef:h}=e,{mode:p,isMobile:v,selectedSymbolType:f,symbolTypes:g,feedItems:y,contentItem:b,emptyState:x=xe}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),C=i&&r.createElement(BrokerCheckbox,{brokerTitle:i,checked:c,onCheckboxChange:u}),k="symbolSearch"===p&&"good"===n,E=null!=b?b:ge.SymbolSearchDialogContentItem,w=(0,
|
||||
r.useMemo)(()=>y.map(e=>r.createElement(E,{...e,searchToken:t})),[y]);return r.createElement(r.Fragment,null,"symbolSearch"===p&&r.createElement(r.Fragment,null,g.length>0&&r.createElement(oe,{itemClassName:ye.symbolType,items:g,getItemTitle:e=>e.name,getItemKey:e=>e.value,checkItemIsActive:e=>e.value===f,onBubbleClick:a,multiline:!v},!v&&C),v&&g.length>0&&i&&r.createElement("div",{className:ye.brokerCheckboxWrap},C)),r.createElement(fe,{listRef:d,listWrapRef:h,onTouchMove:l,items:w,getItemSize:()=>ke,hideFeed:!k}),"loading"===n&&r.createElement("div",{className:ye.spinnerWrap},r.createElement(ae.Spinner,null)),"symbolSearch"===p&&r.createElement(r.Fragment,null,!1,"empty"===n&&r.createElement(x,null)))}function xe(e){const t=(0,I.useWatchedValueReadonly)({watchedValue:N.watchedTheme})===H.StdTheme.Dark?D:T;return r.createElement(y,{className:ye.noResultsDesktop},!be&&r.createElement(p.Icon,{icon:t}),r.createElement("div",{className:ye.emptyText},(0,s.t)("No symbols match your criteria")))}const Ce=(0,P.getDefaultSearchSource)(),ke=52;function Ee(e){const{mode:t,setMode:n,setSelectedIndex:o,isMobile:l,selectedSearchSource:c,setSelectedSearchSource:d,isAllSearchSourcesSelected:h,selectedSymbolType:p,setSelectedSymbolType:f,setRenderSymbolSearchList:g,searchRef:y,cachedInputValue:b,setSearchSpreads:x,showSpreadActions:C,selectedItem:k,onSearchFeedReady:E,forceUpdate:w,placeholder:I,initialScreen:N,footer:H,searchInput:D,upperCaseEnabled:T,externalInput:M,handleKeyDown:L,customSearchSymbols:A}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),W=(0,r.useRef)(t);W.current=t;const U=(0,r.useRef)(new AbortController),[q,Z]=(0,r.useState)(0),[G,j]=(0,r.useState)("noop"),K=(0,r.useRef)(0),[Q,Y]=(0,r.useState)(b.current),X=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)({selectedIndexValue:-1,searchTokenValue:"",searchSpreadsValue:!0}),ne=(0,r.useRef)(null),re=(0,r.useRef)(null),{broker:oe=null,brokerId:ae,brokerTitle:se,isBrokerChecked:le=!1,setIsBrokerChecked:ie=(()=>{}),unhideSymbolSearchGroups:ce=""}={brokerId:void 0,brokerTitle:void 0};(0,r.useEffect)(()=>()=>{U.current.abort(),Ie()},[]),(0,r.useEffect)(()=>{(null==y?void 0:y.current)&&Y(y.current.value)},[]),(0,r.useEffect)(()=>{const e=y.current;if(e)return e.addEventListener("input",ge),e.addEventListener("focus",Ee),e.addEventListener("select",fe),e.addEventListener("click",fe),e.addEventListener("keyup",we),M&&L&&e.addEventListener("keydown",L),()=>{e&&(e.removeEventListener("input",ge),e.removeEventListener("focus",Ee),e.removeEventListener("select",fe),e.removeEventListener("click",fe),e.removeEventListener("keyup",we),M&&L&&e.removeEventListener("keydown",L))}},[L]),(0,r.useEffect)(()=>{Boolean(N)&&""===Q.trim()||(xe(Q,p,c),X.current&&(X.current.scrollTop=0))},[Q,p,c,le,N]),(0,r.useEffect)(()=>{if(!k||!y.current)return;if(!u.enabled("show_spread_operators"))return y.current.value=k.symbol,void w();const e=R(k)?k.exchange:k.parent.exchange,t={name:k.symbol,exchange:e,prefix:k.prefix,fullName:k.full_name},[n,r]=(0,
|
||||
i.getNextSymbolInputValueAndPosition)(y.current,t,T);y.current.value=n,y.current.setSelectionRange(r,r),w()},[k]);const ue=(0,r.useCallback)(e=>E?E(e):e,[E]),de=null!=N?N:"div",he=Boolean(N)&&"symbolSearch"!==t,pe=null!=D?D:v.DialogSearch,me=(0,r.useMemo)(()=>({listRef:ee,resetRecommends:ke,updateRecommends:xe,searchToken:Q,emptyTextClassName:ye.emptyText,isBrokerChecked:le,symbolSearchState:G,currentMode:W}),[ee,Q,le,G,W]);return r.createElement(_.SymbolSearchDialogBodyContext.Provider,{value:me},!(M&&"symbolSearch"===t)&&r.createElement(pe,{reference:y,className:a()(ye.search,T&&ye.upperCase),placeholder:I||(0,s.t)("Search")},C&&r.createElement($,{state:te,update:be})),he?r.createElement(de,null):r.createElement(Se,{token:Q,state:G,otherSymbolsCount:q,onListTouchMove:function(){var e;null===(e=y.current)||void 0===e||e.blur()},onChangeSymbolTypeFilter:function(e){const{value:t}=e;f(t),o(-1)},onResetFilters:function(){var e;f((0,P.getAllSymbolTypesValue)()),Ce&&d(Ce);ie(!1),l||null===(e=y.current)||void 0===e||e.focus()},brokerTitle:se,isBrokerChecked:le,onBrokerCheckboxChange:function(e){ie("on"!==e)},listRef:ee,listWrapRef:X}),H);function ve(){if(!y.current)return;const[e,t,n]=(0,i.getCurrentTokenParamsFromInput)(y.current,T);K.current=t,te.current={selectedIndexValue:-1,searchSpreadsValue:(0,i.isSpread)(n),searchTokenValue:e},ne.current||(ne.current=setTimeout(be,0))}function fe(){if(!y.current)return;const[,e]=(0,i.getCurrentTokenParamsFromInput)(y.current,T);e!==K.current&&ve()}function ge(){u.enabled("show_spread_operators")?ve():y.current&&(te.current={selectedIndexValue:-1,searchSpreadsValue:!1,searchTokenValue:y.current.value},ne.current||(ne.current=setTimeout(be,0)))}function be(){const{selectedIndexValue:e,searchTokenValue:t,searchSpreadsValue:n}=te.current;ne.current=null,(0,F.unstable_batchedUpdates)(()=>{x(n),o(e),Y(T?t.toUpperCase():t)})}async function xe(e,t,n){try{"noop"===G?j("loading"):(Ie(),re.current=setTimeout(()=>{j("loading")},500)),Ne();const r=await async function(e,t,n,r){var o,a,s,l;const d=u.enabled("show_spread_operators")?(0,i.shortName)(t):null===(o=y.current)||void 0===o?void 0:o.value;let h;if(le&&oe){const t=await(0,O.respectAbort)(e,oe.accountMetainfo());h=t.prefix}const p=u.enabled("show_spread_operators")?null!==(s=null!==(a=(0,i.getExchange)(t))&&void 0!==a?a:h)&&void 0!==s?s:null==r?void 0:r.getRequestExchangeValue():null==c?void 0:c.getRequestExchangeValue(),m=(0,i.getExchange)(t)||null===(l=r||c)||void 0===l?void 0:l.getRequestCountryValue(),v={serverHighlight:!1,text:d,exchange:p,country:m,type:n,lang:window.language||"",brokerId:ae,onlyTradable:Boolean(ae)&&le,unhideSymbolSearchGroups:ce,signal:e},f=(0,J.getSearchRequestDelay)();void 0!==f&&await(0,O.delay)(e,f);return A?A(v):B(v)}(U.current.signal,e,t,n),o=ue(function(e,t=window.ChartApiInstance.symbolsGrouping()){var n;const r={},o=[];for(let a=0;a<e.length;++a){const s=e[a];if(s.prefix||Array.isArray(s.contracts))return e;const l=t[s.type];if(void 0===l){o.push(s);continue}const i=l.exec(s.symbol);if(i){const e=i[1]
|
||||
;let t;r.hasOwnProperty(e)?t=r[e]:(t=o.length,r[e]=t,o.push({type:s.type,symbol:e,exchange:s.exchange,description:s.description,full_name:s.exchange+":"+e,contracts:[]})),null===(n=o[t].contracts)||void 0===n||n.push(s)}else o.push(s)}return o}(r));if(!o.length)return Ie(),void j("empty");Ie(),g(o),j("good")}catch(e){(0,O.skipAbortError)(e)}}function ke(){Ne(),j("empty"),Y(""),x(!1),Ie()}function Ee(){"watchlist"===W.current&&(n("symbolSearch"),(0,z.trackEvent)("Watchlist","Mobile SS","Go to SS page"))}function we(e){switch((0,V.hashFromEvent)(e)){case 37:case 39:fe()}}function Ie(){re.current&&clearTimeout(re.current)}function Ne(){U.current.abort(),U.current=new AbortController}}var we=n(64360),Ie=n(98749);function Ne(e){const{theme:t=Ie}=e,{setMode:n,isMobile:o}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext);return r.createElement(p.Icon,{className:a()(e.className,t.button,!o&&t.desktop),icon:we,onClick:function(){n("symbolSearch")}})}var He=n(47670),_e=n(58442),De=n(56840);function Te(e){const[t,n]=(0,r.useState)(()=>{const{defaultSearchSource:t,searchSources:n}=e,r=De.getValue("symboledit.exchangefilter","");return n.find(e=>e.value()===r)||t});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.exchangefilter",t.value())},[])]}function Me(e){const[t,n]=(0,r.useState)(()=>{if(1===e.types.length)return e.types[0].value;const t=De.getValue("symboledit.filter",(0,P.getAllSymbolTypesValue)());return e.types.find(e=>e.value===t)?t:(0,P.getAllSymbolTypesValue)()});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.filter",t)},[])]}var Le=n(36947),Ae=n(82708),Fe=n(6215);const Oe=(0,P.getAvailableSearchSources)(),Re=(0,P.getDefaultSearchSource)(),Be=u.enabled("uppercase_instrument_names");function Pe(e){var t;const{onClose:n,initialMode:o,defaultValue:a="",showSpreadActions:h,hideMarkedListFlag:p,selectSearchOnInit:v=!0,onSearchComplete:g,onSearchFeedReady:y,dialogTitle:b=(0,s.t)("Symbol Search"),placeholder:S,fullscreen:x,initialScreen:C,wrapper:k,dialog:E,contentItem:w,footer:I,searchInput:N,emptyState:H,autofocus:_,dialogWidth:D,onKeyDown:T,searchSourcesScreen:M,customSearchSymbols:L,isDisableFiltering:F}=e,O=(0,r.useMemo)(()=>F?[]:e.symbolTypes?e.symbolTypes:(0,P.getAvailableSymbolTypes)(),[]),J=void 0!==e.input,z=F?[]:Oe,[W,U]=(0,r.useState)(o),q=(0,r.useRef)(a),[Z,G]=Te({searchSources:z,defaultSearchSource:Re}),[j,K]=Me({types:O}),[Q,$]=(0,r.useState)([]),[Y,X]=(0,r.useState)(!1),[ee,te]=(0,r.useState)(-1),ne=(0,r.useRef)(null!==(t=e.input)&&void 0!==t?t:null),[re,oe]=(0,r.useState)(!1),ae=(0,Le.useForceUpdate)(),[se,le]=(0,r.useState)(new Set),{broker:ie=null,brokerId:ce,unhideSymbolSearchGroups:ue="",displayBrokerSymbol:de=!1}={brokerId:void 0};(0,r.useLayoutEffect)(()=>{var e;!(null==ne?void 0:ne.current)||!J&&Boolean(null===(e=ne.current)||void 0===e?void 0:e.value)||(J||"compare"===W||(ne.current.value=q.current),!_||J&&"symbolSearch"!==W||ne.current.focus())},[W]),(0,r.useEffect)(()=>{(null==ne?void 0:ne.current)&&v&&_&&ne.current.select()},[]);const he=(0,
|
||||
r.useMemo)(()=>Q.reduce((e,t)=>{const n=Ve(t),r=se.has(n);return e.push(t),r&&t.contracts&&e.push(...t.contracts.map(e=>({...e,parent:t}))),e},[]),[Q,se]),pe=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;-1!==ee&&(null===(e=pe.current)||void 0===e||e.scrollIntoView({block:"nearest"}))},[ee,pe]);const me=(0,r.useMemo)(()=>he.map((e,t)=>{var n,r,o,a;if(R(e)){const o=Ve(e),a=e.contracts?se.has(o):void 0,s=t===ee;return{key:t,id:o,title:ze(e,de),description:e.description,isOffset:!1,onClick:xe.bind(null,e),providerId:e.provider_id,source:e.source,country:null===(n=e.country)||void 0===n?void 0:n.toLocaleLowerCase(),type:e.type,exchangeName:e.exchange,marketType:(0,He.marketType)(e.type,e.typespecs),isEod:null===(r=e.params)||void 0===r?void 0:r.includes("eod"),isExpanded:a,onExpandClick:e.contracts?Ce.bind(null,o):void 0,fullSymbolName:P.isOpenFirstContractEnabled&&e.contracts?_e.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):_e.QualifiedSources.fromSymbolSearchResult(e),itemRef:s?pe:void 0,isSelected:t===ee,hideMarkedListFlag:p,item:e,logoId:e.logoid,currencyLogoId:e["currency-logoid"],baseCurrencyLogoId:e["base-currency-logoid"],shortName:(0,Ae.safeShortName)(_e.QualifiedSources.fromSymbolSearchResult(e)),currencyCode:e.currency_code}}{const{parent:n}=e,r=Ve(n),s=t===ee;return{key:t,id:r+e.symbol,dangerousTitleHTML:ze(e,de),dangerousDescriptionHTML:`${n.description} (${e.description})`,isOffset:!0,isEod:null===(o=e.params)||void 0===o?void 0:o.includes("eod"),onClick:ke.bind(null,e.parent,e),providerId:n.provider_id,country:null===(a=n.country)||void 0===a?void 0:a.toLowerCase(),type:n.type,exchangeName:n.exchange,marketType:(0,He.marketType)(n.type,e.typespecs),fullSymbolName:_e.QualifiedSources.fromSymbolSearchResult(e.parent,e),itemRef:s?pe:void 0,isSelected:s,hideMarkedListFlag:p,item:e}}}),[Q,se,W,ee,T]),ve=null!=E?E:Ue,fe=ve!==Ue&&!J,ge=(e,t)=>({mode:W,setMode:U,selectedSearchSource:Z,setSelectedSearchSource:G,isAllSearchSourcesSelected:f.isAllSearchSourcesSelected,selectedSymbolType:j,setSelectedSymbolType:K,selectedIndex:ee,setSelectedIndex:te,onClose:n,setRenderSymbolSearchList:$,searchRef:ne,cachedInputValue:q,searchSpreads:Y,setSearchSpreads:X,handleListWidth:we,isSmallWidth:re,feedItems:me,isMobile:e,showSpreadActions:h,selectSearchOnInit:v,isTablet:t,selectedItem:he[ee],onSearchFeedReady:y,forceUpdate:ae,placeholder:S,initialScreen:C,toggleExpand:Ce,openedItems:se,onSubmit:Fe,onSearchComplete:g,footer:I,symbolTypes:O,contentItem:w,searchInput:N,emptyState:H,autofocus:_,upperCaseEnabled:Be,externalInput:J,handleKeyDown:fe?void 0:De,customSearchSymbols:L,searchSources:z}),ye=null!=M?M:A,be="exchange"===W?{title:(0,s.t)("Sources"),dataName:"exchanges-search",render:()=>r.createElement(ye,{searchSources:z}),additionalHeaderElement:r.createElement(Ne,null),additionalElementPos:"before"}:{title:b,dataName:"symbol-search-items-dialog",render:()=>r.createElement(Ee,null),additionalElementPos:"after"},Se=null!=k?k:"div";return r.createElement(Se,null,r.createElement(c.MatchMediaMap,{
|
||||
rules:d.DialogBreakpoints},({TabletSmall:e,TabletNormal:t})=>r.createElement(m.SymbolSearchItemsDialogContext.Provider,{value:ge(e,t)},r.createElement(ve,{...be,fullScreen:x,onClose:n,onClickOutside:n,onKeyDown:fe?void 0:De,isOpened:!0}))));function xe(e){if(e.contracts)return P.isOpenFirstContractEnabled&&e.contracts.length?void ke(e,e.contracts[0]):void Ce(Ve(e));ke(e)}function Ce(e){const t=new Set(se);t.has(e)?t.delete(e):t.add(e),le(t)}function ke(e,t){const r=t||e,{exchange:o}=e;if(u.enabled("show_spread_operators")){const e={name:r.symbol,exchange:o,prefix:r.prefix,fullName:r.full_name};if(Y)return Ie(e),void ae();if(ne.current&&ne.current.value.includes(","))return void Ie(e)}const a=[{resolved:!0,symbol:_e.QualifiedSources.fromSymbolSearchResult(e,t),result:r}];g(a),n()}function we(e){oe("fixed"===D||e<=640)}function Ie(e){if(!ne.current)return;const[t,n]=(0,i.getNextSymbolInputValueAndPosition)(ne.current,e,Be);ne.current.value=t,ne.current.setSelectionRange(n,n),ne.current.focus()}function De(e){switch((0,V.hashFromEvent)(e)){case 38:if(e.preventDefault(),0===ee)return;if(-1===ee)return void te(0);te(ee-1);break;case 40:if(e.preventDefault(),ee===me.length-1)return;te(ee+1);break;case 37:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||!se.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(T)||(e.preventDefault(),Ce(n)),o)return void(null==T||T(e,!0));break}case 39:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||se.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(T)||(e.preventDefault(),Ce(n)),o)return void(null==T||T(e,!0));break}case 13:e.preventDefault(),Fe(!0);break;case 27:e.preventDefault(),n()}null==T||T(e)}function Fe(e){if(!ne.current)return;const t=ne.current.value;if(u.enabled("show_spread_operators")&&Y&&t){if(t.includes(",")){const r=We(t);if(r.some(e=>!Pe(e)))return;return g(r.map(Je)),void(e&&n())}if(!Pe(t))return;return g([{symbol:Be?t.toUpperCase():t,resolved:!1}]),void(e&&n())}if(t.includes(","))return g(We(t).map(Je)),void(e&&n());if(-1!==ee){me[ee].onClick()}else{const r=Be?t.toUpperCase():t;if(r&&""!==r.trim()){const e=We(r);if(void 0!==ce&&-1===r.indexOf(":"))(function(e){let t=!1;return Promise.all(e.map(e=>-1!==e.indexOf(":")||t?Promise.resolve({symbol:e,resolved:!1}):(t=!0,async function(e){var t;null===(t=await(null==ie?void 0:ie.accountMetainfo()))||void 0===t||t.prefix;const n=await B({strictMatch:!0,serverHighlight:!1,text:e,lang:window.language||"",brokerId:ce,onlyTradable:!0,unhideSymbolSearchGroups:ue,exchange:void 0});if(0!==n.length){const e=n[0],{contracts:t}=e,r=t&&t.length>0?t[0]:void 0,o=e.prefix||e.exchange,a=r?r.symbol:e.symbol;if(o&&a)return{symbol:_e.QualifiedSources.fromSymbolSearchResult(e,r),resolved:!0,result:e}}return{symbol:e,resolved:!1}}(e))))})(e).then(e=>g(e));else{const t=e.map(Je);g(t)}}e&&n()}}function Pe(e){const t=(0,l.tokenize)(e),n=(0,i.validate)(t);if(n.errors.length||n.warnings.length)return!1;const r=me[ee];return!r||void 0===r.isExpanded||(r.onClick(),!1)}}
|
||||
function Je(e){return{symbol:Be?e.toUpperCase():e,resolved:!1}}function ze(e,t){const{broker_symbol:n,symbol:r}=e;return`${r}${t&&n?` (${n})`:""}`}function Ve(e){return e.symbol+e.exchange+e.description}function We(e){return e.split(",").map(e=>e.trim()).filter(e=>""!==e)}function Ue(e){const{isMobile:t,isTablet:n}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext);return r.createElement(h.AdaptivePopupDialog,{...e,className:a()(Fe.dialog,!t&&(n?Fe.tabletDialog:Fe.desktopDialog)),backdrop:!0,draggable:!1})}},15983:(e,t,n)=>{"use strict";n.d(t,{validate:()=>s,flip:()=>l,stringifyTokens:()=>i,isSpread:()=>u,shortName:()=>h,getExchange:()=>p,getNextSymbolInputValueAndPosition:()=>v,getCurrentTokenParamsFromInput:()=>f});var r=n(67337),o=n(7785),a=n(81319);function s(e){const t={braceBalance:0,currentState:"var",warnings:[],errors:[]};if(r.enabled("charting_library_base")&&!r.enabled("show_spread_operators"))return t;let n="init";const o=[];for(let r=0;r<e.length;r++){const a=e[r];if("whitespace"!==a.type){if("incompleteSymbol"===a.type||"incompleteNumber"===a.type){const n=r!==e.length-1,o={status:n?"error":"incomplete",reason:"incomplete_token",offset:a.offset,token:a};if(n?t.errors.push(o):t.warnings.push(o),n)continue}switch(a.type){case"symbol":case"number":if("var"===n){t.errors.push({status:"error",reason:"unexpected_token",offset:a.offset,token:a});continue}n="var";break;case"plus":case"minus":case"multiply":case"divide":case"power":if("var"!==n){t.errors.push({status:"error",reason:"unexpected_token",offset:a.offset,token:a});continue}n="operator";break;case"openBrace":if("var"===n){t.errors.push({status:"error",reason:"unexpected_token",offset:a.offset,token:a});continue}o.push(a),n="init";break;case"closeBrace":if("var"!==n){t.errors.push({status:"error",reason:"unexpected_token",offset:a.offset,token:a});continue}o.pop()||t.errors.push({status:"error",reason:"unbalanced_brace",offset:a.offset,token:a}),n="var";break;case"unparsed":t.errors.push({status:"error",reason:"unparsed_entity",offset:a.offset,token:a})}}}for(t.braceBalance=o.length,"var"!==n&&t.warnings.push({status:"incomplete",token:e[e.length-1]});o.length;){const e=o.pop();e&&t.warnings.push({status:"incomplete",reason:"unbalanced_brace",offset:e.offset,token:e})}return t.currentState=n,t}function l(e){const t=function(e){let t,n=0,r=0;for(let o=0;o<e.length;o++){const a=e[o];if("whitespace"!==a.type)switch(n){case 0:if("number"!==a.type||1!=+a.value)return[];n=1;break;case 1:if(1!==n||"divide"!==a.type)return[];n=2,t=o+1;break;case 2:if("openBrace"===a.type)n=3,r=1;else if(c(a.type))return[];break;case 3:"openBrace"===a.type?r++:"closeBrace"===a.type&&(r--,r<=0&&(n=2))}}return e.slice(t)}(e);return t.length?d(t):d((0,o.tokenize)("1/("+i(e)+")"))}function i(e){return e.reduce((e,t)=>"symbol"===t.type&&o.symbolTokenEscapeRe.test(t.value)?e+`'${t.value}'`:e+t.value,"")}function c(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function u(e){return e.length>1&&e.some(e=>c(e.type))}function d(e){e=function(e){
|
||||
const t=[];for(const n of e)"whitespace"!==n.type&&t.push(n);return t}(e);const t=[],n=[];let r;for(let o=0;o<e.length;o++){const a=e[o];switch(a.type){case"plus":case"minus":case"multiply":case"divide":case"power":n.length&&n[n.length-1].minPrecedence>a.precedence&&(n[n.length-1].minPrecedence=a.precedence);break;case"openBrace":r={minPrecedence:1/0,openBraceIndex:o},n.push(r);break;case"closeBrace":{if(r=n.pop(),!r)break;const a=e[r.openBraceIndex-1],s=e[o+1],l=a&&("plus"===a.type||"multiply"===a.type);(!c(null==s?void 0:s.type)||(null==s?void 0:s.precedence)<=r.minPrecedence)&&(!c(null==a?void 0:a.type)||(null==a?void 0:a.precedence)<(null==r?void 0:r.minPrecedence)||(null==a?void 0:a.precedence)===(null==r?void 0:r.minPrecedence)&&l)&&(t.unshift(r.openBraceIndex),t.push(o),n.length&&n[n.length-1].minPrecedence>r.minPrecedence&&(n[n.length-1].minPrecedence=r.minPrecedence))}}}for(let n=t.length;n--;)e.splice(t[n],1);return e}function h(e){return d((0,o.tokenize)(e)).reduce((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,n]=m(t);return n?e+n:e},"")}function p(e){const t=function(e){const t=(0,o.tokenize)(e),n=[];return t.forEach(e=>{if("symbol"!==e.type)return;const[t]=m(e);t&&n.push(t)}),n}(e);if(1===t.length)return t[0]}function m(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}function v(e,t,n){const r=e.value,[s,l]=f(e,n),i=(0,a.getSymbolFullName)(t),c=o.symbolTokenEscapeRe.test(i)?`'${i}'`:i;return[r.substring(0,l)+c+r.substring(l+s.length),l+c.length]}function f(e,t){const{value:n,selectionStart:r}=e,a=(0,o.tokenize)(t?n.toUpperCase():n),s=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],o="symbol"===r.type||"incompleteSymbol"===r.type||"number"===r.type;if(r.offset<=t&&t<=r.offset+r.value.length&&o)return r}return null}(a,r||0);return[(null==s?void 0:s.value)||"",s?s.offset:n.length,a]}},81319:(e,t,n)=>{"use strict";n.d(t,{exchangeSelectDisabled:()=>p,getAllSymbolTypesValue:()=>h,getAvailableExchanges:()=>c,getAvailableSearchSources:()=>i,getAvailableSymbolTypes:()=>d,getDefaultSearchSource:()=>l,getSymbolFullName:()=>s,isOpenFirstContractEnabled:()=>m});var r=n(28353),o=n(20882);class a{constructor(e){this._exchange=e}value(){return this._exchange.value}name(){return(0,o.isAllSearchSourcesSelected)(this)?(0,r.t)("All sources"):this._exchange.name}description(){return this._exchange.desc}country(){return this._exchange.country}providerId(){return this._exchange.providerId}group(){return this._exchange.group}includes(e){return function(e,t){const n=t.toLowerCase(),{name:r,desc:o,searchTerms:a}=e;return r.toLowerCase().includes(n)||o.toLowerCase().includes(n)||void 0!==a&&a.some(e=>e.toLowerCase().includes(n))}(this._exchange,e)}getRequestExchangeValue(){return this._exchange.value}getRequestCountryValue(){}}function s(e){if(e.fullName)return e.fullName;let t;return t=e.prefix||e.exchange?(e.prefix||e.exchange)+":"+e.name:e.name,t.replace(/<\/?[^>]+(>|$)/g,"")}function l(){const e=i();return e.find(o.isAllSearchSourcesSelected)||e[0]||null}
|
||||
function i(){return(0,o.createSearchSources)(a,u())}function c(){return u()}function u(){return window.ChartApiInstance.supportedExchangesList().map(e=>({...e,country:"",providerId:"",flag:""}))}function d(){return window.ChartApiInstance.supportedSymbolsTypes()}function h(){return""}function p(){return!1}const m=!1},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>r,dialogsOpenerManager:()=>o});class r{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const o=new r},82708:(e,t,n)=>{"use strict";n.d(t,{safeShortName:()=>o});var r=n(82029);function o(e){try{return(0,r.shortName)(e)}catch(t){return e}}},7785:(e,t,n)=>{"use strict";n.d(t,{symbolTokenEscapeRe:()=>a,tokenize:()=>i});var r=n(67337);const o=r.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,a=/[+\-/*]/,s={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:o,incompleteSymbol:/'[^']*/,separatorPrefix:"###",openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},l=new RegExp(Object.values(s).map(e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t}).filter(e=>""!==e).concat(".").join("|"),"g");function i(e){if(!e)return[];const t=[],n=Object.keys(s);let r;for(;r=l.exec(e);){let e=!1;for(let o=n.length;o--;)if(r[o+1]){n[o]&&t.push({value:r[o+1],type:n[o],precedence:0,offset:r.index}),e=!0;break}e||t.push({value:r[0],type:"unparsed",precedence:0,offset:r.index})}return t}},19785:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>o,createRegExpList:()=>a,getHighlightedChars:()=>s});var r=n(80643);function o(e){const{data:t,rules:n,queryString:o,isPreventedFromFiltering:a,primaryKey:s,secondaryKey:l=s,optionalPrimaryKey:i}=e;return t.map(e=>{const t=i&&e[i]?e[i]:e[s],a=e[l];let c,u=0;return n.forEach(e=>{var n,s,l,i;const{re:d,fullMatch:h}=e;return d.lastIndex=0,t&&t.toLowerCase()===o.toLowerCase()?(u=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,r.isString)(t)&&h.test(t)?(u=2,void(c=null===(s=t.match(h))||void 0===s?void 0:s.index)):(0,r.isString)(a)&&h.test(a)?(u=1,void(c=null===(l=a.match(h))||void 0===l?void 0:l.index)):void((0,r.isString)(a)&&d.test(a)&&(u=1,c=null===(i=a.match(d))||void 0===i?void 0:i.index))}),{matchPriority:u,matchIndex:c,item:e}}).filter(e=>a||e.matchPriority).sort((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0}).map(({item:e})=>e)}
|
||||
function a(e,t){const n=[],r=e.toLowerCase(),o=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+l(e):l(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${l(e)})`,"i"),re:new RegExp("^"+o,"i"),reserveRe:new RegExp(o,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function s(e,t,n){const r=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:o,reserveRe:a}=e;n.lastIndex=0,o.lastIndex=0;const s=n.exec(t),l=s||o.exec(t)||a&&a.exec(t);if(e.fuzzyHighlight=!s,l)if(e.fuzzyHighlight){let e=l.index;for(let t=1;t<l.length;t++){const n=l[t],o=l[t].length;if(t%2){const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");r[t?e+1:e]=!0}e+=o}}else for(let e=0;e<l[0].length;e++)r[l.index+e]=!0}),r):r}function l(e){return e.replace(/[!-/[-^{-}]/g,"\\$&")}},24637:(e,t,n)=>{"use strict";n.d(t,{HighlightedText:()=>l});var r=n(59496),o=n(97754),a=n(19785),s=n(81524);function l(e){const{queryString:t,rules:n,text:l,className:i}=e,c=(0,r.useMemo)(()=>(0,a.getHighlightedChars)(t,l,n),[t,n,l]);return r.createElement(r.Fragment,null,c.length?l.split("").map((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:o(s.highlighted,i)},e):r.createElement("span",null,e))):l)}},78036:(e,t,n)=>{"use strict";n.d(t,{useEnsuredContext:()=>a});var r=n(59496),o=n(88537);function a(e){return(0,o.ensureNotNull)((0,r.useContext)(e))}},36947:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>o});var r=n(59496);const o=()=>{const[,e]=(0,r.useReducer)((e,t)=>e+1,0);return e}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>o});var r=n(59496);const o=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,o="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[a,s]=(0,r.useState)(n?n.value():o);return(t?r.useLayoutEffect:r.useEffect)(()=>{if(n){s(n.value());const e=e=>s(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),a}},84877:(e,t,n)=>{"use strict";n.d(t,{MatchMediaMap:()=>s});var r=n(59496),o=n(66783),a=n.n(o);class s extends r.Component{constructor(e){super(e),this._handleMediaChange=()=>{const e=i(this.state.queries,(e,t)=>t.matches);let t=!1;for(const n in e)if(e.hasOwnProperty(n)&&this.state.matches[n]!==e[n]){t=!0;break}t&&this.setState({matches:e})};const{rules:t}=this.props;this.state=l(t)}shouldComponentUpdate(e,t){return!a()(e,this.props)||(!a()(t.rules,this.state.rules)||!a()(t.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(e,t){a()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(e,t){if(a()(e.rules,t.rules))return null;const{rules:n}=e;return l(n)}_migrate(e,t){null!==e&&i(e,(e,t)=>{t.removeListener(this._handleMediaChange)}),null!==t&&i(t,(e,t)=>{t.addListener(this._handleMediaChange)})}}function l(e){const t=i(e,(e,t)=>window.matchMedia(t));return{queries:t,matches:i(t,(e,t)=>t.matches),
|
||||
rules:{...e}}}function i(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(r,e[r]));return n}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var r=n(59496),o=n(97754),a=n(91626);function s(e){return r.createElement("div",{className:o(a.separator,e.className)})}},61074:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>s});var r=n(59496),o=n(97754),a=n(33134);n(24780);function s(e){const t=o(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+a.spinnerSizeMap[e.size||a.DEFAULT_SIZE]);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},10381:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetCaret:()=>i});var r=n(59496),o=n(97754),a=n(9745),s=n(40367),l=n(81268);function i(e){const{dropped:t,className:n}=e;return r.createElement(a.Icon,{className:o(n,s.icon,{[s.dropped]:t}),icon:l})}},81268:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 8" width="16" height="8"><path fill="currentColor" d="M0 1.475l7.396 6.04.596.485.593-.49L16 1.39 14.807 0 7.393 6.122 8.58 6.12 1.186.08z"/></svg>'},64360:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentcolor" stroke-width="1.2" d="M17 21l-7.5-7.5L17 6"/></svg>'},29601:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M2.5 14.5c1.68-1.26 3.7-2 6.5-2s4.91.74 6.5 2m-13-11c1.68 1.26 3.7 2 6.5 2s4.91-.74 6.5-2"/><circle stroke="currentColor" cx="9" cy="9" r="8.5"/><path stroke="currentColor" d="M13.5 9c0 2.42-.55 4.58-1.4 6.12-.87 1.56-1.98 2.38-3.1 2.38s-2.23-.82-3.1-2.38c-.85-1.54-1.4-3.7-1.4-6.12s.55-4.58 1.4-6.12C6.77 1.32 7.88.5 9 .5s2.23.82 3.1 2.38c.85 1.54 1.4 3.7 1.4 6.12z"/></svg>'},37257:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="currentColor"><path d="m.58 1.42.82-.82 15 15-.82.82z"/><path d="m.58 15.58 15-15 .82.82-15 15z"/></svg>'},70029:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#B2B5BE" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},72802:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#131722" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},5639:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},88142:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 5l3.5 3.5L8 12"/></svg>'},20832:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h9"/><circle fill="currentColor" cx="7" cy="3" r="1"/><circle fill="currentColor" cx="7" cy="10" r="1"/></svg>'},19586:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" stroke-linejoin="round" d="M3.5 10V2.5L1 5"/><path stroke-linecap="square" d="M1.5 10.5h4"/><path d="M8 12l3-11"/></g></svg>'},21740:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8"/></svg>'},43088:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 10l7-7M3 3l7 7"/></svg>'},38927:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8m-4-4v8"/></svg>'},56584:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 7l3.5-3.5L10 7"/></svg>'}}]);
|
||||
1
charting_library/bundles/2316.b0ed604f1b75887fab7d.css
Normal file
@@ -1,7 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2331],{12331:(e,t,a)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,n={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++a}),e.__id},clone:function e(t,a){var n,s;switch(a=a||{},r.util.type(t)){case"Object":if(s=r.util.objId(t),a[s])return a[s];for(var i in n={},a[s]=n,t)t.hasOwnProperty(i)&&(n[i]=e(t[i],a));return n;case"Array":return s=r.util.objId(t),a[s]?a[s]:(n=[],a[s]=n,t.forEach((function(t,r){n[r]=e(t,a)})),n);default:return t}},getLanguage:function(e){for(;e;){var a=t.exec(e.className);if(a)return a[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,a){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+a)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var a in t)if(t[a].src==e)return t[a]}return null}},isActive:function(e,t,a){for(var n="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(n))return!1;e=e.parentElement}return!!a}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var a=r.util.clone(r.languages[e]);for(var n in t)a[n]=t[n];return a},insertBefore:function(e,t,a,n){var s=(n=n||r.languages)[e],i={};for(var l in s)if(s.hasOwnProperty(l)){if(l==t)for(var o in a)a.hasOwnProperty(o)&&(i[o]=a[o]);a.hasOwnProperty(l)||(i[l]=s[l])}var u=n[e];return n[e]=i,r.languages.DFS(r.languages,(function(t,a){a===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,a,n,s){s=s||{};var i=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){a.call(t,l,t[l],n||l);var o=t[l],u=r.util.type(o);"Object"!==u||s[i(o)]?"Array"!==u||s[i(o)]||(s[i(o)]=!0,e(o,a,l,s)):(s[i(o)]=!0,e(o,a,null,s))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,a){var n={callback:a,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),r.hooks.run("before-all-elements-highlight",n);for(var s,i=0;s=n.elements[i++];)r.highlightElement(s,!0===t,n.callback)},highlightElement:function(t,a,n){var s=r.util.getLanguage(t),i=r.languages[s];r.util.setLanguage(t,s);var l=t.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&r.util.setLanguage(l,s);var o={element:t,language:s,grammar:i,code:t.textContent};function u(e){o.highlightedCode=e,
|
||||
r.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,r.hooks.run("after-highlight",o),r.hooks.run("complete",o),n&&n.call(o.element)}if(r.hooks.run("before-sanity-check",o),(l=o.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!o.code)return r.hooks.run("complete",o),void(n&&n.call(o.element));if(r.hooks.run("before-highlight",o),o.grammar)if(a&&e.Worker){var g=new Worker(r.filename);g.onmessage=function(e){u(e.data)},g.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))}else u(r.highlight(o.code,o.grammar,o.language));else u(r.util.encode(o.code))},highlight:function(e,t,a){var n={code:e,grammar:t,language:a};return r.hooks.run("before-tokenize",n),n.tokens=r.tokenize(n.code,n.grammar),r.hooks.run("after-tokenize",n),s.stringify(r.util.encode(n.tokens),n.language)},tokenize:function(e,t){var a=t.rest;if(a){for(var n in a)t[n]=a[n];delete t.rest}var g=new l;return o(g,g.head,e),function e(t,a,n,l,g,c){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(c&&c.cause==d+","+h)return;var f=p[h],m=f.inside,v=!!f.lookbehind,b=!!f.greedy,y=f.alias;if(b&&!f.pattern.global){var F=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,F+"g")}for(var k=f.pattern||f,x=l.next,w=g;x!==a.tail&&!(c&&w>=c.reach);w+=x.value.length,x=x.next){var A=x.value;if(a.length>t.length)return;if(!(A instanceof s)){var $,S=1;if(b){if(!($=i(k,w,t,v))||$.index>=t.length)break;var E=$.index,_=$.index+$[0].length,j=w;for(j+=x.value.length;E>=j;)x=x.next,j+=x.value.length;if(j-=x.value.length,w=j,x.value instanceof s)continue;for(var C=x;C!==a.tail&&(j<_||"string"==typeof C.value);C=C.next)S++,j+=C.value.length;S--,A=t.slice(w,j),$.index-=w}else if(!($=i(k,0,A,v)))continue;E=$.index;var L=$[0],z=A.slice(0,E),O=A.slice(E+L.length),P=w+A.length;c&&P>c.reach&&(c.reach=P);var T=x.prev;z&&(T=o(a,T,z),w+=z.length),u(a,T,S);var M=new s(d,m?r.tokenize(L,m):L,y,L);if(x=o(a,T,M),O&&o(a,x,O),S>1){var D={cause:d+","+h,reach:P};e(t,a,n,x.prev,w,D),c&&D.reach>c.reach&&(c.reach=D.reach)}}}}}}(e,g,t,g.head,0),function(e){var t=[],a=e.head.next;for(;a!==e.tail;)t.push(a.value),a=a.next;return t}(g)},hooks:{all:{},add:function(e,t){var a=r.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=r.hooks.all[e];if(a&&a.length)for(var n,s=0;n=a[s++];)n(t)}},Token:s};function s(e,t,a,n){this.type=e,this.content=t,this.alias=a,this.length=0|(n||"").length}function i(e,t,a,n){e.lastIndex=t;var r=e.exec(a);if(r&&n&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function o(e,t,a){var n=t.next,r={value:a,prev:t,next:n};return t.next=r,n.prev=r,e.length++,r}function u(e,t,a){for(var n=t.next,r=0;r<a&&n!==e.tail;r++)n=n.next;t.next=n,n.prev=t,e.length-=r}if(e.Prism=r,s.stringify=function e(t,a){if("string"==typeof t)return t
|
||||
;if(Array.isArray(t)){var n="";return t.forEach((function(t){n+=e(t,a)})),n}var s={type:t.type,content:e(t.content,a),tag:"span",classes:["token",t.type],attributes:{},language:a},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(s.classes,i):s.classes.push(i)),r.hooks.run("wrap",s);var l="";for(var o in s.attributes)l+=" "+o+'="'+(s.attributes[o]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+l+">"+s.content+"</"+s.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var a=JSON.parse(t.data),n=a.language,s=a.code,i=a.immediateClose;e.postMessage(r.highlight(s,r.languages[n],n)),i&&e.close()}),!1),r):r;var g=r.util.currentScript();function c(){r.manual||r.highlightAll()}if(g&&(r.filename=g.src,g.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var d=document.readyState;"loading"===d||"interactive"===d&&g&&g.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==a.g&&(a.g.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var a={};a["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var s={};s[e]={
|
||||
pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var a=e.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{
|
||||
pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],
|
||||
constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(void 0!==n&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])';n.hooks.add("before-highlightall",(function(e){e.selector+=", "+t})),n.hooks.add("before-sanity-check",(function(a){var r=a.element;if(r.matches(t)){a.code="",r.setAttribute("data-src-status","loading");var s=r.appendChild(document.createElement("CODE"));s.textContent="Loading…";var i=r.getAttribute("data-src"),l=a.language;if("none"===l){var o=(/\.(\w+)$/.exec(i)||[,"none"])[1];l=e[o]||o}n.util.setLanguage(s,l),n.util.setLanguage(r,l);var u=n.plugins.autoloader;u&&u.loadLanguages(l),function(e,t,a){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){var e,r;4==n.readyState&&(n.status<400&&n.responseText?t(n.responseText):n.status>=400?a((e=n.status,r=n.statusText,"✖ Error "+e+" while fetching file: "+r)):a("✖ Error: File does not exist or is empty"))},n.send(null)}(i,(function(e){r.setAttribute("data-src-status","loaded");var t=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var a=Number(t[1]),n=t[2],r=t[3];return n?r?[a,Number(r)]:[a,void 0]:[a,a]}}(r.getAttribute("data-range"));if(t){var a=e.split(/\r\n?|\n/g),i=t[0],l=null==t[1]?a.length:t[1];i<0&&(i+=a.length),i=Math.max(0,Math.min(i-1,a.length)),l<0&&(l+=a.length),l=Math.max(0,Math.min(l,a.length)),e=a.slice(i,l).join("\n"),r.hasAttribute("data-start")||r.setAttribute("data-start",String(i+1))}s.textContent=e,n.highlightElement(s)}),(function(e){
|
||||
r.setAttribute("data-src-status","failed"),s.textContent=e}))}})),n.plugins.fileHighlight={highlight:function(e){for(var a,r=(e||document).querySelectorAll(t),s=0;a=r[s++];)n.highlightElement(a)}};var a=!1;n.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}}]);
|
||||
@@ -1 +0,0 @@
|
||||
.trial-notification-f8oxI7Em{max-width:427px}
|
||||
@@ -1 +0,0 @@
|
||||
.trial-notification-f8oxI7Em{max-width:427px}
|
||||
@@ -1 +1 @@
|
||||
.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(180deg)}
|
||||
.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(180deg)}.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 2px 0 6px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-right:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651}
|
||||
@@ -1 +1 @@
|
||||
.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(-180deg)}
|
||||
.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(-180deg)}.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 6px 0 2px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-left:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651}
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 9A9 9 0 0 1 0 9c0-4.97 9-9 9-9s9 4.03 9 9z" fill="#A2001D"/><path d="M0 9a9 9 0 0 1 18 0" fill="#4758A9"/><path d="M12.13 11.35L9 10.95l-3.13.4v-4.7h6.26v4.7z" fill="#F0F0F0"/><path d="M9 10.96a1.57 1.57 0 1 0 0-3.13 1.57 1.57 0 0 0 0 3.13z" fill="#4758A9"/><path d="M9 10.17a.78.78 0 1 0 0-1.56.78.78 0 0 0 0 1.56z" fill="#A2001D"/><path d="M7.83 7.43h2.34L9 8.61 7.83 7.43z" fill="#57A863"/><path d="M9.4 8.22h-.8v2.35h.8V8.22z" fill="#FC0"/><path d="M10.25 10.33h-2.5l-1.88 1.02h6.26l-1.88-1.02z" fill="#57A863"/></svg>
|
||||
|
Before Width: | Height: | Size: 630 B |
@@ -1,35 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2454,9255,1e3],{59255:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var i=o[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function r(){n&&(n=!1,e()),o&&l()}function s(){a(r)}function l(){var e=Date.now();if(n){if(e-i<2)return;o=!0}else n=!0,o=!1,setTimeout(s,t);i=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),
|
||||
window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},p=y(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var o=u(e).getComputedStyle(e),i=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var i=o[n],r=e["padding-"+i];t[i]=h(r)}return t}(o),r=i.left+i.right,a=i.top+i.bottom,s=h(o.width),l=h(o.height);if("border-box"===o.boxSizing&&(Math.round(s+r)!==t&&(s-=m(o,"left","right")+r),Math.round(l+a)!==n&&(l-=m(o,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+r)-t,d=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(d)&&(l-=d)}return y(i.left,i.top,s,l)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return i?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):f(e):p}function y(e,t,n,o){return{x:e,y:t,width:n,height:o}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,o,i,r,a,s,l,c=(o=(n=t).x,i=n.y,r=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),d(l,{x:o,y:i,width:r,height:a,top:i,right:o+r,bottom:a+i,left:o}),l);d(this,{target:e,contentRect:c})},E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){
|
||||
if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new o,D=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new E(t,n,this);_.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));const S=void 0!==r.ResizeObserver?r.ResizeObserver:D},90896:e=>{e.exports={wrapper:"wrapper-oPZWoMdB",focused:"focused-oPZWoMdB",readonly:"readonly-oPZWoMdB",disabled:"disabled-oPZWoMdB","size-small":"size-small-oPZWoMdB","size-medium":"size-medium-oPZWoMdB","size-large":"size-large-oPZWoMdB","font-size-small":"font-size-small-oPZWoMdB","font-size-medium":"font-size-medium-oPZWoMdB","font-size-large":"font-size-large-oPZWoMdB","border-none":"border-none-oPZWoMdB",shadow:"shadow-oPZWoMdB","border-thin":"border-thin-oPZWoMdB","border-thick":"border-thick-oPZWoMdB","intent-default":"intent-default-oPZWoMdB","intent-success":"intent-success-oPZWoMdB","intent-warning":"intent-warning-oPZWoMdB","intent-danger":"intent-danger-oPZWoMdB","intent-primary":"intent-primary-oPZWoMdB","corner-top-left":"corner-top-left-oPZWoMdB","corner-top-right":"corner-top-right-oPZWoMdB","corner-bottom-right":"corner-bottom-right-oPZWoMdB","corner-bottom-left":"corner-bottom-left-oPZWoMdB",childrenContainer:"childrenContainer-oPZWoMdB"}},58858:e=>{e.exports={defaultSelect:"defaultSelect-6eXd0Ihx"}},78781:e=>{e.exports={itemWrap:"itemWrap-YXml6gvK",item:"item-YXml6gvK",icon:"icon-YXml6gvK",selected:"selected-YXml6gvK",label:"label-YXml6gvK"}},5717:e=>{e.exports={lineEndSelect:"lineEndSelect-RMwVB5BV",right:"right-RMwVB5BV"}},73084:e=>{e.exports={lineStyleSelect:"lineStyleSelect-2BDVWQbf",multipleStyles:"multipleStyles-2BDVWQbf"}
|
||||
},218:e=>{e.exports={lineWidthSelect:"lineWidthSelect-TYbMx0kd",bar:"bar-TYbMx0kd",isActive:"isActive-TYbMx0kd",item:"item-TYbMx0kd"}},56994:e=>{e.exports={container:"container-Wq7zjnRZ",active:"active-Wq7zjnRZ",disabled:"disabled-Wq7zjnRZ",icon:"icon-Wq7zjnRZ"}},21818:e=>{e.exports={wrap:"wrap-CLB8ZlH6",disabled:"disabled-CLB8ZlH6"}},52465:e=>{e.exports={dropdown:"dropdown-KoV1659s",dropdownMenu:"dropdownMenu-KoV1659s",firstColorPicker:"firstColorPicker-KoV1659s"}},31650:e=>{e.exports={row:"row-kB7roDMw",wrap:"wrap-kB7roDMw",breakpointNormal:"breakpointNormal-kB7roDMw",breakpointMedium:"breakpointMedium-kB7roDMw",breakpointSmall:"breakpointSmall-kB7roDMw"}},51285:e=>{e.exports={coordinates:"coordinates-V0LzFOLU",input:"input-V0LzFOLU"}},9688:e=>{e.exports={wrapper:"wrapper-IjSbS0mB",checkbox:"checkbox-IjSbS0mB",colorSelect:"colorSelect-IjSbS0mB"}},29148:e=>{e.exports={withoutPadding:"withoutPadding-VwIbEpbX"}},67474:e=>{e.exports={input:"input-SCyh9tQM",control:"control-SCyh9tQM",item:"item-SCyh9tQM",cell:"cell-SCyh9tQM",fragmentCell:"fragmentCell-SCyh9tQM",withTitle:"withTitle-SCyh9tQM",title:"title-SCyh9tQM"}},55368:e=>{e.exports={line:"line-er8glV8W",control:"control-er8glV8W",valueInput:"valueInput-er8glV8W",valueUnit:"valueUnit-er8glV8W",input:"input-er8glV8W"}},80346:e=>{e.exports={unit:"unit-yU23iRoD",input:"input-yU23iRoD",normal:"normal-yU23iRoD",big:"big-yU23iRoD",dropdown:"dropdown-yU23iRoD",dropdownMenu:"dropdownMenu-yU23iRoD"}},89477:e=>{e.exports={dropdown:"dropdown-TevhCNe0",normal:"normal-TevhCNe0",big:"big-TevhCNe0",dropdownMenu:"dropdownMenu-TevhCNe0"}},94245:e=>{e.exports={range:"range-DTExo36Q",valueInput:"valueInput-DTExo36Q",rangeSlider:"rangeSlider-DTExo36Q",rangeSlider_mixed:"rangeSlider_mixed-DTExo36Q",input:"input-DTExo36Q"}},45449:e=>{e.exports={colorPicker:"colorPicker-zLqwzQsC",fontStyleButton:"fontStyleButton-zLqwzQsC",dropdown:"dropdown-zLqwzQsC",dropdownMenu:"dropdownMenu-zLqwzQsC"}},35048:e=>{e.exports={twoColors:"twoColors-0m0hhV3v",colorPicker:"colorPicker-0m0hhV3v"}},33126:e=>{e.exports={dropdown:"dropdown-8h1M1df3",menu:"menu-8h1M1df3"}},17683:e=>{e.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},99339:e=>{e.exports={wrapper:"wrapper-3LlhL6R6",emoji:"emoji-3LlhL6R6"}},83341:e=>{e.exports={list:"list-mYbRQuGD"}},70358:e=>{e.exports={wrapper:"wrapper-KYBibz0a"}},39897:e=>{e.exports={wrapper:"wrapper-EVXZqxr4",emojiItem:"emojiItem-EVXZqxr4"}},40681:e=>{e.exports={
|
||||
wrapper:"wrapper-wFgLbqCx",isActive:"isActive-wFgLbqCx"}},88436:e=>{e.exports={wrapper:"wrapper-z9lPbT43"}},16859:e=>{e.exports={wrapper:"wrapper-s7880WH7"}},95076:e=>{e.exports={desktopSize:"desktopSize-iVjStStf",drawer:"drawer-iVjStStf",menuBox:"menuBox-iVjStStf"}},65830:e=>{e.exports={range:"range-w7rMmNtQ",disabled:"disabled-w7rMmNtQ",rangeSlider:"rangeSlider-w7rMmNtQ",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-w7rMmNtQ",rangeSliderMiddle:"rangeSliderMiddle-w7rMmNtQ",dragged:"dragged-w7rMmNtQ",pointer:"pointer-w7rMmNtQ",rangePointerWrap:"rangePointerWrap-w7rMmNtQ"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},40233:(e,t,n)=>{"use strict";n.d(t,{VerticalAttachEdge:()=>o,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>r,HorizontalDropDirection:()=>a,getPopupPositioner:()=>c});var o,i,r,a,s=n(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(n,c)=>{const d=(0,s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=l.verticalAttachEdge,verticalDropDirection:p=l.verticalDropDirection,horizontalAttachEdge:h=l.horizontalAttachEdge,horizontalDropDirection:m=l.horizontalDropDirection,horizontalMargin:f=l.horizontalMargin,verticalMargin:v=l.verticalMargin,matchButtonAndListboxWidths:g=l.matchButtonAndListboxWidths}=t,y=u===o.Top?-1*v:v,b=h===i.Right?d.right:d.left,w=u===o.Top?d.top:d.bottom,E={x:b-(m===a.FromRightToLeft?n:0)+f,y:w-(p===r.FromBottomToTop?c:0)+y};return g&&(E.overrideWidth=d.width),E}}},32449:(e,t,n)=>{"use strict";function o(e,t,n){const o=new Map,i=void 0!==t?t[0]:e=>e,r=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,a={value:()=>i(e.value()),setValue:t=>{e.setValue(r(t))},subscribe:(t,n)=>{const i=e=>{n(a)};o.set(n,i),e.subscribe(t,i)},unsubscribe:(t,n)=>{const i=o.get(n);i&&(e.unsubscribe(t,i),o.delete(n))},unsubscribeAll:t=>{e.unsubscribeAll(t),o.clear()},destroy:()=>{null==n||n()}};return a}function i(e){const t=o(e);return t.destroy=()=>{e.destroy()},t}function r(e,t,n,i,r,a){const s=o(t,i,a),l=void 0!==i?void 0!==i[1]?i[1]:i[0]:e=>e;return s.setValue=null!=r?r:o=>e.setProperty(t,l(o),n),s}n.d(t,{makeProxyDefinitionProperty:()=>o,makeProxyDefinitionPropertyDestroyable:()=>i,convertToDefinitionProperty:()=>r})},50366:(e,t,n)=>{"use strict";function o(e,t){return{propType:"checkable",properties:e,...t}}function i(e,t,n){return{propType:"checkableSet",properties:e,childrenDefinitions:n,...t}}function r(e,t){return{propType:"color",properties:e,noAlpha:!1,...t}}n.d(t,{
|
||||
convertFromReadonlyWVToDefinitionProperty:()=>O,convertFromWVToDefinitionProperty:()=>H,convertToDefinitionProperty:()=>W.convertToDefinitionProperty,createCheckablePropertyDefinition:()=>o,createCheckableSetPropertyDefinition:()=>i,createColorPropertyDefinition:()=>r,createCoordinatesPropertyDefinition:()=>P,createEmojiPropertyDefinition:()=>k,createLeveledLinePropertyDefinition:()=>m,createLinePropertyDefinition:()=>u,createNumberPropertyDefinition:()=>f,createOptionsPropertyDefinition:()=>v,createPropertyDefinitionsGeneralGroup:()=>R,createPropertyDefinitionsLeveledLinesGroup:()=>I,createRangePropertyDefinition:()=>T,createSessionPropertyDefinition:()=>z,createStudyInputsPropertyDefinition:()=>A,createSymbolPropertyDefinition:()=>V,createTextPropertyDefinition:()=>x,createTransparencyPropertyDefinition:()=>N,createTwoColorsPropertyDefinition:()=>M,createTwoOptionsPropertyDefinition:()=>g,destroyDefinitions:()=>J,getColorDefinitionProperty:()=>G,getLockPriceScaleDefinitionProperty:()=>Z,getPriceScaleSelectionStrategyDefinitionProperty:()=>j,getScaleRatioDefinitionProperty:()=>U,getSymbolDefinitionProperty:()=>K,isPropertyDefinitionsGroup:()=>$});var a=n(49612),s=n(43891);const l=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],c=[1,2,3,4],d=[a.LineEnd.Normal,a.LineEnd.Arrow];function u(e,t){const n={propType:"line",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=l),void 0!==n.properties.width&&(n.widthValues=c),void 0===n.properties.leftEnd&&void 0===n.properties.rightEnd||void 0!==n.endsValues||(n.endsValues=d),void 0!==n.properties.value&&void 0===n.valueType&&(n.valueType=1),n}const p=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],h=[1,2,3,4];function m(e,t){const n={propType:"leveledLine",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=p),void 0!==n.properties.width&&(n.widthValues=h),n}function f(e,t){return{propType:"number",properties:e,type:1,...t}}function v(e,t){return{propType:"options",properties:e,...t}}function g(e,t){return{propType:"twoOptions",properties:e,...t}}var y=n(28353);const b=[{id:"bottom",value:"bottom",title:(0,y.t)("Top")},{id:"middle",value:"middle",title:(0,y.t)("Middle")},{id:"top",value:"top",title:(0,y.t)("Bottom")}],w=[{id:"left",value:"left",title:(0,y.t)("Left")},{id:"center",value:"center",title:(0,y.t)("Center")},{id:"right",value:"right",title:(0,y.t)("Right")}],E=[{id:"horizontal",value:"horizontal",title:(0,y.t)("Horizontal")},{id:"vertical",value:"vertical",title:(0,y.t)("Vertical")}],_=[10,11,12,14,16,20,24,28,32,40].map(e=>({title:String(e),value:e})),D=[1,2,3,4],S=(0,y.t)("Text alignment"),C=(0,y.t)("Text orientation");function x(e,t){const n={propType:"text",properties:e,...t,isEditable:t.isEditable||!1};return void 0!==n.properties.size&&void 0===n.sizeItems&&(n.sizeItems=_),void 0!==n.properties.alignmentVertical&&void 0===n.alignmentVerticalItems&&(n.alignmentVerticalItems=b),void 0!==n.properties.alignmentHorizontal&&void 0===n.alignmentHorizontalItems&&(n.alignmentHorizontalItems=w),
|
||||
(n.alignmentVerticalItems||n.alignmentHorizontalItems)&&void 0===n.alignmentTitle&&(n.alignmentTitle=S),void 0!==n.properties.orientation&&(void 0===n.orientationItems&&(n.orientationItems=E),void 0===n.orientationTitle&&(n.orientationTitle=C)),void 0!==n.properties.borderWidth&&void 0===n.borderWidthItems&&(n.borderWidthItems=D),n}function M(e,t){return{propType:"twoColors",properties:e,noAlpha1:!1,noAlpha2:!1,...t}}function P(e,t){return{propType:"coordinates",properties:e,...t}}function T(e,t){return{propType:"range",properties:e,...t}}function N(e,t){return{propType:"transparency",properties:e,...t}}function V(e,t){return{propType:"symbol",properties:e,...t}}function z(e,t){return{propType:"session",properties:e,...t}}function k(e,t){return{propType:"emoji",properties:e,...t}}function A(e,t){return{propType:"studyInputs",properties:e,...t}}var B=n(52714),L=n.n(B);function R(e,t,n,o){return{id:t,title:n,visible:o,groupType:"general",definitions:new(L())(e)}}function I(e,t,n){return{id:t,title:n,groupType:"leveledLines",definitions:new(L())(e)}}var W=n(32449);function F(e,t){const n=new Map,o=void 0!==t?t[0]:e=>e,i=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,r={value:()=>o(e.value()),setValue:t=>{var n;null===(n=e.setValue)||void 0===n||n.call(e,i(t))},subscribe:(t,o)=>{const i=()=>{o(r)};let a=n.get(t);void 0===a?(a=new Map,a.set(o,i),n.set(t,a)):a.set(o,i),e.subscribe(i)},unsubscribe:(t,o)=>{const i=n.get(t);if(void 0!==i){const t=i.get(o);void 0!==t&&(e.unsubscribe(t),i.delete(o))}},unsubscribeAll:t=>{const o=n.get(t);void 0!==o&&(o.forEach((t,n)=>{e.unsubscribe(t)}),o.clear())}};return r}function H(e,t,n,o){const i=F(t,o),r=void 0!==o?void 0!==o[1]?o[1]:o[0]:e=>e;return i.setValue=o=>e.setWatchedValue(t,r(o),n),i}function O(e,t){return function(e,t,n){const o=new Map;return F({subscribe:(n,i)=>{const r=e=>n(t(e));o.set(n,r),e.subscribe(r,i)},unsubscribe:t=>{if(t){const n=o.get(t);n&&(e.unsubscribe(n),o.delete(t))}else o.clear(),e.unsubscribe()},value:()=>t(e.value())},n)}(e,e=>e,t)}function j(e,t){const n=(0,W.makeProxyDefinitionProperty)(t);return n.setValue=t=>e.setPriceScaleSelectionStrategy(t),n}function Z(e,t,n,o){const i=(0,W.makeProxyDefinitionProperty)(t);return i.setValue=t=>{const i={lockScale:t};e.setPriceScaleMode(i,n,o)},i}function U(e,t,n,o){const i=(0,W.makeProxyDefinitionProperty)(t,o);return i.setValue=o=>{e.setScaleRatioProperty(t,o,n)},i}var Y=n(24377),Q=n(68906),q=n(81465);function X(e,t){if((0,Q.isHexColor)(e)){const n=(0,Y.parseRgb)(e);return(0,Y.rgbaToString)((0,Y.rgba)(n,(100-t)/100))}return e}function G(e,t,n,o,i){let r;if(null!==n){const e=(0,q.combineProperty)(X,t,n);r=(0,W.makeProxyDefinitionPropertyDestroyable)(e)}else r=(0,W.makeProxyDefinitionProperty)(t,[()=>X(t.value(),0),e=>e]);return r.setValue=n=>{i&&e.beginUndoMacro(o),e.setProperty(t,n,o),i&&e.endUndoMacro()},r}function K(e,t,n,o,i,r){const a=[(s=n,l=t,e=>{const t=s(l);if(e===l.value()&&null!==t){const e=t.ticker||t.full_name;if(e)return e}return e}),e=>e];var s,l;const c=(0,W.convertToDefinitionProperty)(e,t,i,a)
|
||||
;r&&(c.setValue=r);const d=new Map;c.subscribe=(e,n)=>{const o=e=>{n(c)};d.set(n,o),t.subscribe(e,o)},c.unsubscribe=(e,n)=>{const o=d.get(n);o&&(t.unsubscribe(e,o),d.delete(n))};const u={};return o.subscribe(u,()=>{d.forEach((e,t)=>{t(c)})}),c.destroy=()=>{o.unsubscribeAll(u),d.clear()},c}function $(e){return e.hasOwnProperty("groupType")}function J(e){e.forEach(e=>{if(e.hasOwnProperty("propType")){Object.keys(e.properties).forEach(t=>{const n=e.properties[t];void 0!==n&&void 0!==n.destroy&&n.destroy()})}else J(e.definitions.value())})}},66045:(e,t,n)=>{"use strict";n.d(t,{FontSizeSelect:()=>c});var o=n(59496),i=n(97754),r=n.n(i),a=n(58368),s=n(90186),l=n(58858);function c(e){const{id:t,fontSize:n,fontSizes:i=[],className:c,disabled:d,fontSizeChange:u}=e;return o.createElement(a.Select,{id:t,disabled:d,className:r()(c,l.defaultSelect),menuClassName:l.defaultSelect,items:(p=i,p.map(e=>({value:e.value,content:e.title}))),value:n,onChange:u,...(0,s.filterDataProps)(e)});var p}},94697:(e,t,n)=>{"use strict";n.d(t,{IconDropdown:()=>c,DisplayItem:()=>d,DropItem:()=>u});var o=n(59496),i=n(97754),r=n.n(i),a=n(58368),s=n(9745),l=n(78781);function c(e){const{menuItemClassName:t,...n}=e;return o.createElement(a.Select,{...n,menuItemClassName:r()(t,l.itemWrap)})}function d(e){return o.createElement("div",{className:r()(l.item,l.selected,e.className)},o.createElement(s.Icon,{className:l.icon,icon:e.icon}))}function u(e){return o.createElement("div",{className:l.item},o.createElement(s.Icon,{className:r()(l.icon,e.iconClassName),icon:e.icon}),o.createElement("div",{className:l.label},e.label))}},53598:(e,t,n)=>{"use strict";n.d(t,{LineStyleSelect:()=>f});var o=n(28353),i=n(59496),r=n(97754),a=n.n(r),s=n(43891),l=n(94697),c=n(20618),d=n(19726),u=n(56326),p=n(50303),h=n(73084);const m=[{type:s.LINESTYLE_SOLID,icon:c,label:(0,o.t)("Line")},{type:s.LINESTYLE_DASHED,icon:d,label:(0,o.t)("Dashed line")},{type:s.LINESTYLE_DOTTED,icon:u,label:(0,o.t)("Dotted line")}];class f extends i.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:o,disabled:r,additionalItems:s,allowedLineStyles:c}=this.props;let d=function(e){let t=[...m];return void 0!==e&&(t=t.filter(t=>e.includes(t.type))),t.map(e=>({value:e.type,selectedContent:i.createElement(l.DisplayItem,{icon:e.icon}),content:i.createElement(l.DropItem,{icon:e.icon,label:e.label})}))}(c);return s&&(d=[{readonly:!0,content:s},...d]),i.createElement(l.IconDropdown,{id:e,disabled:r,className:a()(h.lineStyleSelect,n),hideArrowButton:!0,items:d,value:t,onChange:o,"data-name":"line-style-select",addPlaceholderToItems:!1,placeholder:i.createElement(l.DisplayItem,{icon:p,className:h.multipleStyles})})}}},50890:(e,t,n)=>{"use strict";n.d(t,{LineWidthSelect:()=>d});var o=n(59496),i=n(97754),r=n(58368),a=n(218);const s=[1,2,3,4];function l(e){const{id:t,value:n,items:l=s,disabled:c,onChange:d}=e;return o.createElement(r.Select,{id:t,disabled:c,hideArrowButton:!0,className:a.lineWidthSelect,items:(u=l,u.map(e=>({value:e,selectedContent:p(e,!0),content:p(e)}))),value:n,onChange:d,
|
||||
"data-name":"line-width-select"});var u;function p(e,t){const r={borderTopWidth:e};return o.createElement("div",{className:a.item},o.createElement("div",{className:i(a.bar,{[a.isActive]:e===n&&!t}),style:r}," "))}}var c=n(45560);function d(e){const{property:t}=e,[n,i]=(0,c.useDefinitionProperty)({property:t});return o.createElement(l,{...e,value:n,onChange:i})}},66849:(e,t,n)=>{"use strict";n.d(t,{ControlCustomWidthContext:()=>i,ControlCustomHeightContext:()=>r});var o=n(59496);const i=o.createContext({}),r=o.createContext({})},90545:(e,t,n)=>{"use strict";n.d(t,{Section:()=>tn});var o=n(59496),i=n(50366),r=n(48897),a=n(45560),s=n(31356);function l(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0});return u?o.createElement(s.CommonSection,{id:t,offset:c,checked:n,title:l,disabled:e.disabled||d}):null}var c=n(97754),d=n.n(c),u=n(22064),p=n(53598);function h(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(p.LineStyleSelect,{...e,lineStyle:n,lineStyleChange:i})}var m=n(50890),f=n(60521),v=n(88537);function g(e){return"mixed"===e}function y(e,t,n){const[i,r]=(0,o.useState)(e),a=(0,o.useRef)(i);return(0,o.useEffect)(()=>{r(e)},[e,n]),[i,function(e){a.current=e,r(e)},function(){t(a.current)},function(){a.current=e,r(e)}]}var b=n(68335),w=n(92399),E=n(64514),_=n(95505),D=n(49483);function S(e){const{property:t,...n}=e,[i,r]=(0,o.useState)(performance.now()),[s,l]=(0,a.useDefinitionProperty)({property:t,handler:()=>r(performance.now())}),c=y(s,l,i);return o.createElement(C,{...n,valueHash:i,sharedBuffer:c})}function C(e){const{sharedBuffer:t,min:n,max:i,step:r,...a}=e,[s,l,c,d]=t,u=(0,o.useRef)(null),p=(0,o.useRef)(null),h={flushed:!1};return o.createElement(M,{...a,ref:p,onValueChange:function(e,t){l(e),"step"!==t||h.flushed||(c(),h.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||h.flushed)return;switch((0,b.hashFromEvent)(e.nativeEvent)){case 27:d(),h.flushed=!0;break;case 13:e.preventDefault();const t=(0,v.ensureNotNull)(p.current).getClampedValue();null!==t&&(l(t),c(),h.flushed=!0)}},onBlur:function(e){const t=(0,v.ensureNotNull)(u.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){const e=(0,v.ensureNotNull)(p.current).getClampedValue();null===e||h.flushed||(l(e),c(),h.flushed=!0)}},value:s,roundByStep:!1,containerReference:function(e){u.current=e},inputMode:D.CheckMobile.iOS()?void 0:"numeric",min:n,max:i,step:r,stretch:!1})}const x={mode:"float",min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0};class M extends o.PureComponent{constructor(e){super(e),this._selection=null,this._restoreSelection=!1,this._input=null,this._handleSelectionChange=()=>{this._restoreSelection||document.activeElement!==(0,v.ensureNotNull)(this._input)||this._saveSelection((0,v.ensureNotNull)(this._input))},this._handleInputReference=e=>{this._input=e,
|
||||
this.props.inputReference&&this.props.inputReference(e)},this._onFocus=e=>{this._saveSelection((0,v.ensureNotNull)(this._input)),this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this._selection=null,this.setState({displayValue:N(this.props,this.props.value,V(this.props)),focused:!1}),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.currentTarget,n=t.value,o=function(e,t,n){switch(n){case"integer":return P.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),T.test(t)?t:e}}(this.state.displayValue,n,this.props.mode),i=k(o),r=this._checkValueBoundaries(i);var a,s;this.setState({displayValue:o}),o!==n&&(a=this.state.displayValue,s=(s=o).replace(/,/g,"."),(a=a.replace(/,/g,".")).includes(".")||!s.includes("."))?(this._restoreSelection=!0,this.forceUpdate()):this._saveSelection(t),r.value&&N(this.props,i)===o&&this.props.onValueChange(i,"input")},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1}=this.props,o=k(this.state.displayValue);let i;if(isNaN(o)){const{defaultValue:e}=this.props;if(void 0===e)return;i=e}else{const r=new f.Big(o),a=new f.Big(n),s=r.mod(a);let l=r.plus(e*n);!s.eq(0)&&t&&(l=l.plus((e>0?0:1)*n).minus(s)),i=l.toNumber()}this._checkValueBoundaries(i).value&&(this.setState({displayValue:N(this.props,i,V(this.props))}),this.props.onValueChange(i,"step"))},this.state={value:A(this.props.value),displayValue:N(this.props,this.props.value,V(this.props)),focused:!1,valueHash:this.props.valueHash}}componentDidMount(){document.addEventListener("selectionchange",this._handleSelectionChange)}componentWillUnmount(){document.removeEventListener("selectionchange",this._handleSelectionChange)}componentDidUpdate(){const e=(0,v.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){const{start:n,end:o,direction:i}=t;e.setSelectionRange(n,o,i)}this._restoreSelection=!1}render(){return o.createElement(w.NumberInputView,{type:"text",inputMode:this.props.inputMode,name:this.props.name,fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,disabled:this.props.disabled,stretch:this.props.stretch,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,autoSelectOnFocus:!0,"data-name":this.props["data-name"]})}getClampedValue(){const{min:e,max:t}=this.props,n=k(this.state.displayValue);return isNaN(n)?null:(0,E.clamp)(n,e,t)}static getDerivedStateFromProps(e,t){const{valueHash:n}=e,o=A(e.value);if(t.value!==o||t.valueHash!==n){return{value:o,valueHash:n,displayValue:N(e,o,t.focused&&t.valueHash===n?void 0:V(e))}}return null}_saveSelection(e){const{selectionStart:t,selectionEnd:n,selectionDirection:o}=e;null!==t&&null!==n&&null!==o&&(this._selection={start:t,end:n,direction:o})}_checkValueBoundaries(e){
|
||||
const{min:t,max:n}=this.props;return{value:function(e,t,n){const o=e>=t,i=e<=n;return{passMin:o,passMax:i,pass:o&&i,clamped:(0,E.clamp)(e,t,n)}}(e,t,n).pass}}}M.defaultProps=x;const P=/^-?[0-9]*$/,T=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/;function N(e,t,n){return g(t=A(t))?"—":(null!==t&&void 0!==n&&(n=Math.max(z(t),n)),function(e,t){if(null===e)return"";return new _.NumericFormatter(t).format(e)}(t,n))}function V(e){let t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=z(e.step)),Math.max(e.precision,t)||void 0}function z(e){const t=Math.trunc(e).toString();return(0,E.clamp)(_.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function k(e,t){return new _.NumericFormatter(t).parse(e)}function A(e){return"number"==typeof e&&Number.isFinite(e)||g(e)?e:null}var B=n(24377),L=n(58593),R=n(68906);function I(e){const{color:t,thickness:n,thicknessItems:i,noAlpha:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:t}),[c,d]=(0,a.useDefinitionProperty)(n?{property:n}:{defaultValue:void 0});return o.createElement(L.ColorSelect,{...e,color:function(){if(!s)return null;if("mixed"===s)return"mixed";return(0,B.rgbToHexString)((0,B.parseRgb)(s))}(),onColorChange:function(e){const t=s&&"mixed"!==s?(0,R.alphaToTransparency)((0,B.parseRgba)(s)[3]):0;l((0,R.generateColor)(String(e),t,!0))},thickness:c,thicknessItems:i,onThicknessChange:d,opacity:r?void 0:s&&"mixed"!==s?(0,B.parseRgba)(s)[3]:void 0,onOpacityChange:r?void 0:function(e){l((0,R.generateColor)(s,(0,R.alphaToTransparency)(e),!0))}})}var W=n(28353),F=n(49612),H=n(94697),O=n(90186),j=n(23848),Z=n(56775),U=n(5717);const Y=[{type:F.LineEnd.Normal,icon:j,label:(0,W.t)("Normal")},{type:F.LineEnd.Arrow,icon:Z,label:(0,W.t)("Arrow")}];class Q extends o.PureComponent{constructor(e){super(e),this._items=[],this._items=Y.map(t=>({value:t.type,selectedContent:o.createElement(H.DisplayItem,{icon:t.icon}),content:o.createElement(H.DropItem,{icon:t.icon,iconClassName:d()(e.isRight&&U.right),label:t.label})}))}render(){const{id:e,lineEnd:t,className:n,lineEndChange:i,isRight:r,disabled:a}=this.props;return o.createElement(H.IconDropdown,{id:e,disabled:a,className:d()(U.lineEndSelect,r&&U.right,n),items:this._items,value:t,onChange:i,hideArrowButton:!0,...(0,O.filterDataProps)(this.props)})}}function q(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(Q,{...e,lineEnd:n,lineEndChange:i})}var X=n(78260),G=n(31650);function K(e){const{children:t,className:n,breakPoint:i="Normal"}=e;return o.createElement(X.CellWrap,{className:c(G.wrap,n,G["breakpoint"+i])},o.Children.map(t,e=>o.isValidElement(e)?o.createElement("span",{key:null===e.key?void 0:e.key,className:G.row},e):e))}const $={1:"float",0:"integer"};var J=n(77975),ee=n(55368);function te(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r,leftEnd:l,rightEnd:d,value:p,extendLeft:f,extendRight:v},title:g,valueMin:y,valueMax:b,valueStep:w,valueUnit:E,extendLeftTitle:_,extendRightTitle:D},offset:C}=e,[x]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[M]=(0,
|
||||
a.useDefinitionProperty)({property:i,defaultValue:!1}),[P]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),T=(0,J.useWatchedValueReadonly)({watchedValue:y,defaultValue:void 0}),N=(0,J.useWatchedValueReadonly)({watchedValue:b,defaultValue:void 0}),V=(0,J.useWatchedValueReadonly)({watchedValue:w,defaultValue:void 0}),z=(0,J.useWatchedValueReadonly)({watchedValue:E,defaultValue:void 0}),k=e.disabled||!x;return P?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:C,checked:n,title:g,disabled:e.disabled||M},o.createElement(K,{className:ee.line,breakPoint:"Small"},o.createElement(o.Fragment,null,function(){const{definition:{properties:{color:n,width:i},widthValues:r}}=e;if(n)return o.createElement("span",{className:ee.control},o.createElement(I,{color:n,thickness:i,disabled:k,thicknessItems:r}));return i&&o.createElement("span",{className:ee.control},o.createElement(m.LineWidthSelect,{id:(0,u.createDomId)(t,"line-width-select"),items:r,property:i,disabled:k}))}(),function(){const{definition:{properties:{style:n}}}=e;return n&&o.createElement("span",{className:ee.control},o.createElement(h,{id:(0,u.createDomId)(t,"line-style-select"),property:n,disabled:k}))}()),(l||d||p)&&o.createElement(o.Fragment,null,o.createElement(o.Fragment,null,l&&o.createElement(q,{id:(0,u.createDomId)(t,"left-end-select"),"data-name":"left-end-select",className:ee.control,property:l,disabled:k}),d&&o.createElement(q,{id:(0,u.createDomId)(t,"right-end-select"),"data-name":"right-end-select",className:ee.control,property:d,disabled:k,isRight:!0})),function(){const{definition:{valueType:t}}=e;return p&&o.createElement("span",{className:c(ee.valueInput,ee.control)},o.createElement(S,{className:ee.input,property:p,min:T,max:N,step:V,disabled:k,mode:void 0!==t?$[t]:void 0,name:"line-value-input"}),o.createElement("span",{className:ee.valueUnit},z))}()))),f&&o.createElement(s.CommonSection,{id:t+"ExtendLeft",offset:C,checked:f,title:_,disabled:e.disabled||M}),v&&o.createElement(s.CommonSection,{id:t+"ExtendRight",offset:C,checked:v,title:D,disabled:e.disabled||M})):null}var ne=n(49642),oe=n(58368),ie=n(36947);function re(e){const{property:t,options:n,...i}=e,[r,s]=(0,a.useDefinitionProperty)({property:t}),l=(0,ie.useForceUpdate)();return(0,o.useEffect)(()=>{const e=()=>l();return Array.isArray(n)||n.subscribe(e),()=>{Array.isArray(n)||n.unsubscribe(e)}},[]),o.createElement(oe.Select,{...i,onChange:s,value:r,items:(Array.isArray(n)?n:n.value()).map(e=>e.readonly?{content:e.title,readonly:e.readonly}:{content:e.title,value:e.value,disabled:e.disabled,id:e.id})})}var ae=n(52465);const se=[{title:(0,W.t)("Solid"),value:ne.ColorType.Solid},{title:(0,W.t)("Gradient"),value:ne.ColorType.Gradient}];function le(e){const{id:t,disabled:n,noAlpha:i,properties:r}=e,{color:s,gradientColor1:l,gradientColor2:c,type:d}=r,[p]=(0,a.useDefinitionProperty)({property:d,defaultValue:ne.ColorType.Solid});return o.createElement(K,null,o.createElement(re,{id:(0,u.createDomId)(t,"background-type-options-dropdown"),
|
||||
"data-name":"background-type-options-dropdown",className:ae.dropdown,menuClassName:ae.dropdownMenu,disabled:n,property:d,options:se}),p===ne.ColorType.Solid?o.createElement(I,{color:s,disabled:n,noAlpha:i}):o.createElement(o.Fragment,null,o.createElement(I,{className:ae.firstColorPicker,color:l,disabled:n,noAlpha:i}),o.createElement(I,{color:c,disabled:n,noAlpha:i})))}function ce(e){const{definition:{id:t,properties:n,title:i,noAlpha:r},offset:l}=e,{color:c,checked:d,disabled:u,visible:p}=n,[h]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),[m]=(0,a.useDefinitionProperty)({property:u,defaultValue:!1}),[f]=(0,a.useDefinitionProperty)({property:p,defaultValue:!0}),v=e.disabled||!h;return f?o.createElement(s.CommonSection,{id:t,offset:l,checked:d,title:i,disabled:e.disabled||m},o.createElement(X.CellWrap,null,n.hasOwnProperty("type")?o.createElement(le,{id:t,properties:n,disabled:v,noAlpha:r}):o.createElement(I,{color:c,disabled:v,noAlpha:r}))):null}var de=n(54368),ue=n(45112),pe=n(21818);function he(e){const{value:t,disabled:n,onChange:i,className:r}=e;return o.createElement("div",{className:c(pe.wrap,r,{[pe.disabled]:n})},o.createElement(de.Opacity,{hideInput:!0,color:ue.colorsPalette["color-tv-blue-500"],opacity:1-t/100,onChange:function(e){n||i(100-100*e)}}))}function me(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t});return o.createElement(he,{...n,value:i,onChange:r})}function fe(e){const{definition:{id:t,properties:{transparency:n,checked:i,disabled:r,visible:l},title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(s.CommonSection,{id:t,offset:d,checked:i,title:c,disabled:e.disabled||p},o.createElement(X.CellWrap,null,o.createElement(me,{property:n,disabled:m}))):null}var ve=n(35048);function ge(e){const{definition:{id:t,properties:{color1:n,color2:i,checked:r,disabled:l,visible:c},title:d,noAlpha1:u,noAlpha2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[v]=(0,a.useDefinitionProperty)({property:c,defaultValue:!0}),g=e.disabled||!m||f;return v?o.createElement(s.CommonSection,{id:t,offset:h,checked:r,title:d,disabled:e.disabled||f},o.createElement(X.CellWrap,{className:ve.twoColors},y(n,u),y(i,p))):null;function y(e,t){return o.createElement("span",{className:ve.colorPicker},o.createElement(I,{color:e,disabled:g,noAlpha:t}))}}var ye=n(66849),be=n(80346);function we(e){const{definition:{id:t,properties:{checked:n,value:i,unitOptionsValue:r,disabled:l,visible:d},min:p,max:h,step:m,title:f,unit:g,unitOptions:y,type:b},offset:w}=e,[E]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[_]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[D]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),C=(0,J.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),x=(0,
|
||||
J.useWatchedValueReadonly)({watchedValue:h,defaultValue:void 0}),M=(0,J.useWatchedValueReadonly)({watchedValue:m,defaultValue:void 0}),P=(0,J.useWatchedValueReadonly)({watchedValue:g,defaultValue:void 0}),T=(0,o.useContext)(ye.ControlCustomWidthContext),N=e.disabled||!E;return D?o.createElement(s.CommonSection,{id:t,offset:w,checked:n,title:f,disabled:e.disabled||_},o.createElement(X.CellWrap,null,o.createElement(K,null,o.createElement(S,{className:c(be.input,T[t]&&be[T[t]]),property:i,min:C,max:x,step:M,disabled:N,mode:$[b],name:"number-input","data-name":t}),r&&o.createElement(re,{id:(0,u.createDomId)(t,"unit-options-dropdown"),"data-name":"unit-options-dropdown",className:be.dropdown,menuClassName:be.dropdownMenu,disabled:N,property:r,options:(0,v.ensureDefined)(y)})),o.createElement("span",{className:be.unit},P))):null}function Ee(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},childrenDefinitions:l,title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:d,checked:n,title:c,disabled:e.disabled||p}),l.map(e=>o.createElement(tn,{key:e.id,disabled:m,definition:e,offset:!0}))):null}var _e=n(66045);function De(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(_e.FontSizeSelect,{...e,fontSize:n,fontSizeChange:i,"data-name":"font-size-select"})}var Se=n(9745),Ce=n(56994);function xe(e){const{className:t,checked:n,icon:i,disabled:r,onClick:a}=e;return o.createElement("div",{className:d()(t,Ce.container,n&&!r&&Ce.active,r&&Ce.disabled),onClick:r?void 0:a,"data-role":"button",...(0,O.filterDataProps)(e)},o.createElement(Se.Icon,{className:Ce.icon,icon:i}))}function Me(e){const{icon:t,className:n,property:i,disabled:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:i});return o.createElement(xe,{className:n,icon:t,checked:s,onClick:function(){l(!s)},disabled:r,...(0,O.filterDataProps)(e)})}var Pe=n(67029),Te=n(35868),Ne=n(2568);function Ve(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t}),s=(0,o.useCallback)(e=>r(e.target.value),[r]);return o.createElement(Ne.Textarea,{...n,value:i,onChange:s})}var ze=n(86508),ke=n(27603),Ae=n(45449);const Be=e=>({content:e.title,title:e.title,value:e.value,id:e.id}),Le=e=>({content:e.title,title:e.title,value:e.value,id:e.id});function Re(e){const{definition:{id:t,properties:{color:n,size:i,checked:r,disabled:l,bold:c,italic:d,text:p,alignmentHorizontal:h,alignmentVertical:m,orientation:f,backgroundVisible:v,backgroundColor:g,borderVisible:y,borderColor:b,borderWidth:w,wrap:E},title:_,sizeItems:D,alignmentTitle:S,alignmentHorizontalItems:C,alignmentVerticalItems:x,orientationTitle:M,orientationItems:P,backgroundTitle:T,borderTitle:N,borderWidthItems:V,wrapTitle:z},offset:k}=e,A=(0,o.useContext)(ye.ControlCustomHeightContext),[B]=(0,
|
||||
a.useDefinitionProperty)({property:r,defaultValue:!0}),[L]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[R,W]=(0,a.useDefinitionProperty)({property:m,defaultValue:void 0}),[F,H]=(0,a.useDefinitionProperty)({property:f,defaultValue:"horizontal"}),[O,j]=(0,a.useDefinitionProperty)({property:h,defaultValue:void 0}),[Z]=(0,a.useDefinitionProperty)({property:v,defaultValue:!1}),[U]=(0,a.useDefinitionProperty)({property:y,defaultValue:!1}),Y=e.disabled||!B;return o.createElement(o.Fragment,null,function(){if(_)return o.createElement(s.CommonSection,{id:t,offset:k,checked:r,title:_,disabled:e.disabled||L},o.createElement(K,{breakPoint:"Small"},G(),$()));return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},G(),$()))}(),p&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},o.createElement(Ve,{className:Pe.InputClasses.FontSizeMedium,rows:(Q=A[t],"big"===Q?9:5),stretch:!0,property:p,disabled:Y,onFocus:function(e){e.target.select()},name:"text-input"}))),(h||m)&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(X.CellWrap,null,S)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(K,{breakPoint:"Small"},void 0!==R&&void 0!==x&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-vertical-select"),"data-name":"alignment-vertical-select",className:Ae.dropdown,menuClassName:Ae.dropdownMenu,disabled:Y,value:R,items:x.map(Be),onChange:W}),void 0!==O&&void 0!==C&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-horizontal-select"),"data-name":"alignment-horizontal-select",className:Ae.dropdown,menuClassName:Ae.dropdownMenu,disabled:Y,value:O,items:C.map(Be),onChange:j})))),void 0!==f&&void 0!==P&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(X.CellWrap,null,M)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(K,{breakPoint:"Small"},o.createElement(oe.Select,{id:(0,u.createDomId)(t,"orientation-select"),"data-name":"orientation-select",className:Ae.dropdown,menuClassName:Ae.dropdownMenu,disabled:Y,value:F,items:P.map(Le),onChange:H})))),J(T,v,g,!!v&&!Z),J(N,y,b,!!y&&!U,w,V),E&&o.createElement(s.CommonSection,{id:t+"Wrap",offset:k,checked:E,title:z,disabled:e.disabled||L}));var Q;function q(e,t,n){return e?o.createElement(Me,{className:Ae.fontStyleButton,icon:t,property:e,disabled:Y,"data-name":n}):null}function G(){return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:Ae.colorPicker},o.createElement(I,{color:n,disabled:Y})),i&&D&&o.createElement(De,{id:(0,u.createDomId)(t,"font-size-select"),property:i,fontSizes:D,
|
||||
disabled:Y}))}function $(){return o.createElement(o.Fragment,null,q(c,ze,"toggle-bold"),q(d,ke,"toggle-italic"))}function J(e,n,i,r,a,l){return i||n?o.createElement(s.CommonSection,{id:t+"ColorSelect",offset:k,checked:n,title:e,disabled:Y},i&&o.createElement(I,{color:i,thickness:a,thicknessItems:l,disabled:Y||r})):null}}var Ie=n(51285);function We(e){const{definition:{properties:{x:t,y:n,disabled:i},id:r,minX:a,maxX:s,stepX:l,minY:c,maxY:d,stepY:u,title:p,typeX:h,typeY:m},offset:f}=e,v=i&&i.value()||e.disabled,g=(0,J.useWatchedValueReadonly)({watchedValue:a,defaultValue:void 0}),y=(0,J.useWatchedValueReadonly)({watchedValue:s,defaultValue:void 0}),b=(0,J.useWatchedValueReadonly)({watchedValue:l,defaultValue:void 0}),w=(0,J.useWatchedValueReadonly)({watchedValue:c,defaultValue:void 0}),E=(0,J.useWatchedValueReadonly)({watchedValue:d,defaultValue:void 0}),_=(0,J.useWatchedValueReadonly)({watchedValue:u,defaultValue:void 0});return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{verticalAlign:"adaptive",placement:"first",offset:f,"data-section-name":r},o.createElement("span",{className:Ie.coordinates},p)),(t||n)&&o.createElement(Te.PropertyTable.Cell,{placement:"last",offset:f,"data-section-name":r},o.createElement(K,{breakPoint:"Medium"},n&&o.createElement(S,{className:Ie.input,property:n,min:w,max:E,step:_,disabled:v,name:"y-input",mode:void 0!==m?$[m]:"integer"}),t&&o.createElement(S,{className:Ie.input,property:t,min:g,max:y,step:b,disabled:v,name:"x-input",mode:void 0!==h?$[h]:"integer"}))))}var Fe=n(89477);function He(e){const{definition:{id:t,properties:{checked:n,option:i,disabled:r,visible:l},title:c,options:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[v]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),g=(0,o.useContext)(ye.ControlCustomWidthContext),y=e.disabled||!m;return v?o.createElement(s.CommonSection,{id:t,offset:h,checked:n,title:c,disabled:e.disabled||f},o.createElement(X.CellWrap,null,o.createElement(re,{id:(0,u.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:d()(Fe.dropdown,g[t]&&Fe[g[t]]),menuClassName:d()(Fe.dropdownMenu,g[t]&&Fe[g[t]]),disabled:y||f,property:i,options:p}))):null}var Oe=n(71953);var je=n(62820),Ze=n(65830);class Ue extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._rafPosition=null,this._rafDragStop=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null!==this._rafPosition||this.props.disabled||(this._rafPosition=requestAnimationFrame(()=>{const{from:t,to:n,min:o,max:i}=this.props,r=this._getNewPosition(e),a=1===this._detectPointerMode(e),s=a?(0,E.clamp)(r,o,n):t,l=a?n:(0,E.clamp)(r,t,i);s<=l&&this._handleChange(s,l),this._rafPosition=null}))},this._handleDragStop=()=>{null!==this._rafDragStop||this.props.disabled||(this._rafDragStop=requestAnimationFrame(()=>{this.setState({pointerDragMode:0}),this._rafDragStop=null,
|
||||
this.props.onCommit()}))},this._onSliderClick=e=>{D.CheckMobile.any()||(this._handlePosition(e.nativeEvent),this._dragSubscribe())},this._mouseUp=e=>{this._dragUnsubscribe(),this._handlePosition(e),this._handleDragStop()},this._mouseMove=e=>{this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this._handleDragStop()},this.state={pointerDragMode:0}}componentWillUnmount(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()}render(){const{className:e,disabled:t,from:n,to:i,min:r,max:a}=this.props,{pointerDragMode:s}=this.state,l=0!==s,d=a-r,u=0===d?r:(n-r)/d,p=0===d?a:(i-r)/d,h=(0,je.isRtl)()?"right":"left";return o.createElement("div",{className:c(e,Ze.range,t&&Ze.disabled)},o.createElement("div",{className:Ze.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:Ze.rangeSliderMiddleWrap},o.createElement("div",{className:c(Ze.rangeSliderMiddle,l&&Ze.dragged),style:{[h]:100*u+"%",width:100*(p-u)+"%"}})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*u+"%"},ref:this._refPointer})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*p+"%"}}))))}_dragSubscribe(){const e=(0,v.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,v.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,o=n-t,i=(0,v.ensureNotNull)(this._container),r=(0,v.ensureNotNull)(this._pointer),a=i.getBoundingClientRect(),s=r.offsetWidth;let l=e.clientX-s/2-a.left;return(0,je.isRtl)()&&(l=a.width-l-s),(0,E.clamp)(l/(a.width-s),0,1)*o+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:o}=this.state;if(0!==o)return o;const i=this._getNewPosition(e),r=Math.abs(t-i),a=Math.abs(n-i),s=r===a?i<t?1:2:r<a?1:2;return this.setState({pointerDragMode:s}),s}_handleChange(e,t){const{from:n,to:o,onChange:i}=this.props;e===n&&t===o||i(e,t)}}var Ye=n(90692),Qe=n(94245);function qe(e){const{definition:{id:t,properties:{checked:n,disabled:i,from:r,to:l},title:c,max:u,min:p},offset:h,disabled:m}=e,[f]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[v]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),b=(0,J.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),w=(0,J.useWatchedValueReadonly)({watchedValue:u,defaultValue:void 0}),[E,_]=(0,a.useDefinitionProperty)({property:r}),[D,S]=(0,
|
||||
a.useDefinitionProperty)({property:l}),x=g(E)||g(D),M=y(x?"mixed":E,(function(e){if(_(e),g(z)){const e=w||100;k(e),S(e)}})),[P,T,N]=M,V=y(x?"mixed":D,(function(e){if(S(e),g(P)){const e=b||0;T(e),_(e)}})),[z,k,A]=V,B=g(P)||g(z),L=m||g(f)||!f,R={flushed:!1};return o.createElement(s.CommonSection,{id:t,offset:h,checked:n,title:c,disabled:m||v},o.createElement(X.CellWrap,{className:Qe.range},function(){if(!b||!w)return null;return o.createElement(Ye.MatchMedia,{rule:"screen and (max-width: 460px)"},e=>o.createElement(K,{breakPoint:"Medium"},o.createElement(o.Fragment,null,o.createElement("span",{className:Qe.valueInput},o.createElement(C,{className:Qe.input,sharedBuffer:M,min:b,max:g(z)?w:z,step:1,disabled:L,name:"from-input",mode:"integer",defaultValue:b}),e?o.createElement("span",{className:Qe.rangeSlider},"—"):o.createElement(Ue,{className:d()(Qe.rangeSlider,B&&Qe.rangeSlider_mixed),from:B?b:P,to:B?w:z,min:b,max:w,onChange:I,onCommit:W,disabled:L}))),o.createElement(o.Fragment,null,o.createElement("span",{className:Qe.valueInput},o.createElement(C,{className:Qe.input,sharedBuffer:V,min:g(P)?b:P,max:w,step:1,disabled:L,name:"to-input",mode:"integer",defaultValue:w})))))}()));function I(e,t){T(Math.round(e)),k(Math.round(t))}function W(){R.flushed||(N(),A(),R.flushed=!0)}}var Xe=n(86067),Ge=n(53424),Ke=n(67474);function $e(e){const{definitions:t,name:n,offset:i}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:d()(Ke.cell,Ke.fragmentCell),offset:i,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":n,checkableTitle:!0},t.map(e=>o.createElement("div",{className:Ke.item,key:e.id,"data-section-name":e.id},o.createElement(et,{definition:e})))))}function Je(e){const{definition:t,offset:n}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:Ke.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},o.createElement(et,{definition:t})))}function et(e){const{definition:{id:t,properties:{disabled:n,checked:i,color:r,level:s,width:l,style:c},title:p,widthValues:m,styleValues:f}}=e,[v]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[g]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),y=g||!v;return o.createElement(o.Fragment,null,o.createElement(Ge.CheckableTitle,{name:"is-enabled-"+t,className:d()(p&&Ke.withTitle),title:p&&o.createElement("span",{className:Ke.title},p),property:i,disabled:g}),s&&o.createElement(S,{className:d()(Ke.input,Ke.control),property:s,disabled:y}),r&&o.createElement(I,{className:Ke.control,disabled:y,color:r,thickness:l,thicknessItems:m}),c&&o.createElement(h,{id:(0,u.createDomId)(t,"leveled-line-style-select"),className:Ke.control,property:c,disabled:y,allowedLineStyles:f}))}var tt=n(33126);function nt(e){const{definition:{id:t,properties:{option1:n,option2:i,checked:r,disabled:l},title:c,optionsItems1:d,optionsItems2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,
|
||||
defaultValue:!1}),v=e.disabled||!m;return o.createElement(s.CommonSection,{id:t,offset:h,checked:r,title:c,disabled:e.disabled||f},o.createElement(K,{className:tt.twoOptions},o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:tt.dropdown,menuClassName:tt.menu,property:n,disabled:v,options:d}),o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:tt.dropdown,menuClassName:tt.menu,property:i,disabled:v,options:p})))}var ot=n(22855),it=n(29148);function rt(e){const{source:t,inputs:n,model:i,inputsTabProperty:r}=e.definition;return o.createElement(ot.InputsTabContent,{className:it.withoutPadding,property:r,model:i,study:t,inputs:n})}var at=n(15294),st=n(56840),lt=n(59255);var ct=n(40681);function dt(e){const{tab:t,icon:n,isActive:i,onTabClick:r}=e;return o.createElement("div",{className:d()(ct.wrapper,i&&ct.isActive),onClick:function(){r(t)}},o.createElement(Se.Icon,{icon:n}))}var ut=n(88436);function pt(e){const{activeTab:t,emojis:n,onTabClick:i}=e;return o.createElement("div",{className:ut.wrapper},n.map(({title:e,icon:n})=>o.createElement(dt,{key:e,tab:e,icon:n,isActive:t===e,onTabClick:i})))}var ht=n(69397),mt=n(16859);function ft(e){const{title:t}=e;return o.createElement("div",{className:mt.wrapper},t)}var vt=n(72077),gt=n(99339);const yt=34;function bt(e){const{className:t,emoji:n,size:i=yt,onClick:r}=e,a=(0,vt.getTwemojiUrl)(n,"png");return o.createElement("div",{className:d()(gt.wrapper,t),style:{width:i,height:i},onClick:function(){r(n)}},o.createElement("img",{className:gt.emoji,src:a,decoding:"async",width:"24",height:"24",alt:"",draggable:!1,onContextMenu:function(e){e.preventDefault()}}))}var wt=n(39897);const Et=o.memo(e=>{const{emojis:t,itemSize:n,onEmojiClick:i}=e;return o.createElement("div",{className:wt.wrapper},t.map(e=>o.createElement(bt,{key:e,className:wt.emojiItem,emoji:e,size:n,onClick:i})))});var _t=n(78036),Dt=n(83341);const St=o.createContext(null);function Ct(e){const{listRef:t,emojiGroups:n,emojiSize:i,onSelect:r,onContentRendered:a}=e;(0,o.useEffect)(()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.resetAfterIndex(0,!0)},[n]);const s=(0,o.useCallback)(e=>"title"===n[e].type?30:38,[n]),l=(0,o.useCallback)(({visibleStartIndex:e})=>{const{relatedTitle:t}=n[e];a(t)},[n,a]);return o.createElement(St.Provider,{value:(0,o.useMemo)(()=>({size:i,onSelect:r}),[i,r])},o.createElement(ht.VariableSizeList,{className:Dt.list,ref:t,width:"100%",height:Math.min(330,window.innerHeight-60),itemData:n,itemCount:n.length,children:xt,onItemsRendered:l,itemSize:s}))}const xt=o.memo(e=>{const{style:t,index:n,data:i}=e,r=i[n],{size:a,onSelect:s}=(0,_t.useEnsuredContext)(St);return"title"===r.type?o.createElement("div",{style:t},o.createElement(ft,{title:r.relatedTitle})):o.createElement("div",{style:t},o.createElement(Et,{emojis:r.content,itemSize:a,onEmojiClick:s}))});var Mt=n(70358);function Pt(e){var t;const{className:n,emojis:i,onSelect:r}=e,a=(0,o.useRef)(null),[s,l]=(0,
|
||||
o.useState)(0),c=(0,o.useMemo)(()=>function(e,t){if(0===t)return[];const n=[];return e.forEach(({title:e,emojis:o})=>{n.push({type:"title",relatedTitle:e,content:[e]});let i=[];for(const r of o)i.length<t?i.push(r):(n.push({type:"emojiRow",relatedTitle:e,content:i}),i=[r]);i.length&&n.push({type:"emojiRow",relatedTitle:e,content:i})}),n}(i,s),[i,s]),u=function(e,t=[]){const n=(0,o.useRef)(null),i=(0,o.useRef)(null),r=(0,o.useRef)(e);r.current=e;const a=(0,o.useCallback)(e=>{n.current=e,null!==i.current&&(i.current.disconnect(),null!==e&&i.current.observe(e))},[n,i]);return(0,o.useEffect)(()=>(i.current=new lt.default((e,t)=>{r.current(e,t)}),n.current&&a(n.current),()=>{var e;null===(e=i.current)||void 0===e||e.disconnect()}),[n,...t]),a}((function(e){const[t]=e,{width:n}=t.contentRect,o=Math.floor((n-12)/38);l(o)})),[p,h]=(0,o.useState)((null===(t=c[0])||void 0===t?void 0:t.relatedTitle)||"");return o.createElement("div",{className:d()(Mt.wrapper,n)},o.createElement(pt,{emojis:i,activeTab:p,onTabClick:function(e){!function(e){var t;null===(t=a.current)||void 0===t||t.scrollToItem(e,"start"),requestAnimationFrame(()=>{var t;return null===(t=a.current)||void 0===t?void 0:t.scrollToItem(e,"start")})}(function(e){return c.findIndex(({relatedTitle:t,type:n})=>"title"===n&&t===e)}(e))}}),o.createElement("div",{ref:u},o.createElement(Ct,{listRef:a,emojiGroups:c,emojiSize:38,onSelect:r,onContentRendered:h})))}var Tt=n(80781),Nt=n(67978),Vt=n(36311),zt=n(31006),kt=n(75614),At=n(1033),Bt=n(42925),Lt=n(40526),Rt=n(72843);const It=[{title:(0,W.t)("recently used",{context:"emoji_group"}),emojis:[],icon:Tt},{title:(0,W.t)("smiles & people",{context:"emoji_group"}),
|
||||
emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","☺️","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👋","🤚","🖐","✋","🖖","👌","🤏","✌️","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝️","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍️","💅","🤳","💪","🦾","🦵","🦿","🦶","👂","🦻","👃","🧠","🦷","🦴","👀","👁","👅","👄","💋","🩸","👶","🧒","👦","👧","🧑","👱","👨","🧔","👨🦰","👨🦱","👨🦳","👨🦲","👩","👩🦰","🧑🦰","👩🦱","🧑🦱","👩🦳","🧑🦳","👩🦲","🧑🦲","👱♀️","👱♂️","🧓","👴","👵","🙍","🙍♂️","🙍♀️","🙎","🙎♂️","🙎♀️","🙅","🙅♂️","🙅♀️","🙆","🙆♂️","🙆♀️","💁","💁♂️","💁♀️","🙋","🙋♂️","🙋♀️","🧏","🧏♂️","🧏♀️","🙇","🙇♂️","🙇♀️","🤦","🤦♂️","🤦♀️","🤷","🤷♂️","🤷♀️","🧑⚕️","👨⚕️","👩⚕️","🧑🎓","👨🎓","👩🎓","🧑🏫","👨🏫","👩🏫","🧑⚖️","👨⚖️","👩⚖️","🧑🌾","👨🌾","👩🌾","🧑🍳","👨🍳","👩🍳","🧑🔧","👨🔧","👩🔧","🧑🏭","👨🏭","👩🏭","🧑💼","👨💼","👩💼","🧑🔬","👨🔬","👩🔬","🧑💻","👨💻","👩💻","🧑🎤","👨🎤","👩🎤","🧑🎨","👨🎨","👩🎨","🧑✈️","👨✈️","👩✈️","🧑🚀","👨🚀","👩🚀","🧑🚒","👨🚒","👩🚒","👮","👮♂️","👮♀️","🕵","🕵️♂️","🕵️♀️","💂","💂♂️","💂♀️","👷","👷♂️","👷♀️","🤴","👸","👳","👳♂️","👳♀️","👲","🧕","🤵","👰","🤰","🤱","👼","🎅","🤶","🦸","🦸♂️","🦸♀️","🦹","🦹♂️","🦹♀️","🧙","🧙♂️","🧙♀️","🧚","🧚♂️","🧚♀️","🧛","🧛♂️","🧛♀️","🧜","🧜♂️","🧜♀️","🧝","🧝♂️","🧝♀️","🧞","🧞♂️","🧞♀️","🧟","🧟♂️","🧟♀️","💆","💆♂️","💆♀️","💇","💇♂️","💇♀️","🚶","🚶♂️","🚶♀️","🧍","🧍♂️","🧍♀️","🧎","🧎♂️","🧎♀️","🧑🦯","👨🦯","👩🦯","🧑🦼","👨🦼","👩🦼","🧑🦽","👨🦽","👩🦽","🏃","🏃♂️","🏃♀️","💃","🕺","🕴","👯","👯♂️","👯♀️","🧖","🧖♂️","🧖♀️","🧑🤝🧑","👭","👫","👬","💏","👨❤️💋👨","👩❤️💋👩","💑","👨❤️👨","👩❤️👩","👪","👨👩👦","👨👩👧","👨👩👧👦","👨👩👦👦","👨👩👧👧","👨👨👦","👨👨👧","👨👨👧👦","👨👨👦👦","👨👨👧👧","👩👩👦","👩👩👧","👩👩👧👦","👩👩👦👦","👩👩👧👧","👨👦","👨👦👦","👨👧","👨👧👦","👨👧👧","👩👦","👩👦👦","👩👧","👩👧👦","👩👧👧","🗣","👤","👥","👣"],icon:Nt},{title:(0,W.t)("animals & nature",{context:"emoji_group"}),
|
||||
emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🦙","🐐","🦌","🐕","🐩","🦮","🐕🦺","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦝","🦨","🦡","🦦","🦥","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","☘️","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🐚","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐️","🌟","✨","⚡️","☄️","💥","🔥","🌪","🌈","☀️","🌤","⛅️","🌥","☁️","🌦","🌧","⛈","🌩","🌨","❄️","☃️","⛄️","🌬","💨","💧","💦","☔️","🌊","🌫"],icon:Vt},{title:(0,W.t)("food & drink",{context:"emoji_group"}),emojis:["🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧄","🧅","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🧈","🥞","🧇","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🧆","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🦪","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🥛","🍼","☕️","🍵","🧃","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🧉","🍾","🧊","🥄","🍴","🍽","🥣","🥡","🥢","🧂"],icon:zt},{title:(0,W.t)("activity",{context:"emoji_group"}),emojis:["⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🪀","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳️","🪁","🏹","🎣","🤿","🥊","🥋","🎽","🛹","🛷","⛸","🥌","🎿","⛷","🏂","🪂","🏋️","🏋️♂️","🏋️♀️","🤼","🤼♂️","🤼♀️","🤸♀️","🤸","🤸♂️","⛹️","⛹️♂️","⛹️♀️","🤺","🤾","🤾♂️","🤾♀️","🏌️","🏌️♂️","🏌️♀️","🏇","🧘","🧘♂️","🧘♀️","🏄","🏄♂️","🏄♀️","🏊","🏊♂️","🏊♀️","🤽","🤽♂️","🤽♀️","🚣","🚣♂️","🚣♀️","🧗","🧗♂️","🧗♀️","🚵","🚵♂️","🚵♀️","🚴","🚴♂️","🚴♀️","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🤹♂️","🤹♀️","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🪕","🎻","🎲","🎯","🎳","🎮","🎰","🧩"],icon:kt},{title:(0,W.t)("travel & places",{context:"emoji_group"}),emojis:["🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🦯","🦽","🦼","🛴","🚲","🛵","🏍","🛺","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","✈️","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵️","🚤","🛥","🛳","⛴","🚢","⚓️","⛽️","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲️","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺️","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪️","🕌","🕍","🛕","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁"],icon:At},{title:(0,W.t)("objects",{context:"emoji_group"}),
|
||||
emojis:["⌚️","📱","📲","💻","⌨️","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎️","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛️","⏳","📡","🔋","🔌","💡","🔦","🕯","🪔","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","⚖️","🧰","🔧","🔨","⚒","🛠","⛏","🔩","⚙️","🧱","⛓","🧲","🔫","💣","🧨","🪓","🔪","🗡","⚔️","🛡","🚬","⚰️","⚱️","🏺","🔮","📿","🧿","💈","⚗️","🔭","🔬","🕳","🩹","🩺","💊","💉","🧬","🦠","🧫","🧪","🌡","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🪒","🧽","🧴","🛎","🔑","🗝","🚪","🪑","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","✉️","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","✂️","🖊","🖋","✒️","🖌","🖍","📝","✏️","🔍","🔎","🔏","🔐","🔒","🔓","🧳","🌂","☂️","🧵","🧶","👓","🕶","🥽","🥼","🦺","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","🥻","🩱","🩲","🩳","👙","👚","👛","👜","👝","🎒","👞","👟","🥾","🥿","👠","👡","🩰","👢","👑","👒","🎩","🎓","🧢","⛑","💄","💍","💼"],icon:Bt},{title:(0,W.t)("symbols",{context:"emoji_group"}),emojis:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","☮️","✝️","☪️","🕉","☸️","✡️","🔯","🕎","☯️","☦️","🛐","⛎","♈️","♉️","♊️","♋️","♌️","♍️","♎️","♏️","♐️","♑️","♒️","♓️","🆔","⚛️","🉑","☢️","☣️","📴","📳","🈶","🈚️","🈸","🈺","🈷️","✴️","🆚","💮","🉐","㊙️","㊗️","🈴","🈵","🈹","🈲","🅰️","🅱️","🆎","🆑","🅾️","🆘","❌","⭕️","🛑","⛔️","📛","🚫","💯","💢","♨️","🚷","🚯","🚳","🚱","🔞","📵","🚭","❗️","❕","❓","❔","‼️","⁉️","🔅","🔆","〽️","⚠️","🚸","🔱","⚜️","🔰","♻️","✅","🈯️","💹","❇️","✳️","❎","🌐","💠","Ⓜ️","🌀","💤","🏧","🚾","♿️","🅿️","🈳","🈂️","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","ℹ️","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔢","#️⃣","*️⃣","⏏️","▶️","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀️","🔼","🔽","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","↪️","↩️","⤴️","⤵️","🔀","🔁","🔂","🔄","🔃","🎵","🎶","➕","➖","➗","✖️","♾","💲","💱","™️","©️","®️","〰️","➰","➿","🔚","🔙","🔛","🔝","🔜","✔️","☑️","🔘","🔴","🟠","🟡","🟢","🔵","🟣","⚫️","⚪️","🟤","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪️","▫️","◾️","◽️","◼️","◻️","🟥","🟧","🟨","🟩","🟦","🟪","⬛️","⬜️","🟫","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","👁🗨","💬","💭","🗯","♠️","♣️","♥️","♦️","🃏","🎴","🀄️","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧"],icon:Lt},{title:(0,W.t)("flags",{context:"emoji_group"}),
|
||||
emojis:["🏳️","🏴","🏁","🚩","🏳️🌈","🏴☠️","🇦🇫","🇦🇽","🇦🇱","🇩🇿","🇦🇸","🇦🇩","🇦🇴","🇦🇮","🇦🇶","🇦🇬","🇦🇷","🇦🇲","🇦🇼","🇦🇺","🇦🇹","🇦🇿","🇧🇸","🇧🇭","🇧🇩","🇧🇧","🇧🇾","🇧🇪","🇧🇿","🇧🇯","🇧🇲","🇧🇹","🇧🇴","🇧🇦","🇧🇼","🇧🇷","🇮🇴","🇻🇬","🇧🇳","🇧🇬","🇧🇫","🇧🇮","🇰🇭","🇨🇲","🇨🇦","🇮🇨","🇨🇻","🇧🇶","🇰🇾","🇨🇫","🇹🇩","🇨🇱","🇨🇳","🇨🇽","🇨🇨","🇨🇴","🇰🇲","🇨🇬","🇨🇩","🇨🇰","🇨🇷","🇨🇮","🇭🇷","🇨🇺","🇨🇼","🇨🇾","🇨🇿","🇩🇰","🇩🇯","🇩🇲","🇩🇴","🇪🇨","🇪🇬","🇸🇻","🇬🇶","🇪🇷","🇪🇪","🇪🇹","🇪🇺","🇫🇰","🇫🇴","🇫🇯","🇫🇮","🇫🇷","🇬🇫","🇵🇫","🇹🇫","🇬🇦","🇬🇲","🇬🇪","🇩🇪","🇬🇭","🇬🇮","🇬🇷","🇬🇱","🇬🇩","🇬🇵","🇬🇺","🇬🇹","🇬🇬","🇬🇳","🇬🇼","🇬🇾","🇭🇹","🇭🇳","🇭🇰","🇭🇺","🇮🇸","🇮🇳","🇮🇩","🇮🇷","🇮🇶","🇮🇪","🇮🇲","🇮🇱","🇮🇹","🇯🇲","🇯🇵","🎌","🇯🇪","🇯🇴","🇰🇿","🇰🇪","🇰🇮","🇽🇰","🇰🇼","🇰🇬","🇱🇦","🇱🇻","🇱🇧","🇱🇸","🇱🇷","🇱🇾","🇱🇮","🇱🇹","🇱🇺","🇲🇴","🇲🇰","🇲🇬","🇲🇼","🇲🇾","🇲🇻","🇲🇱","🇲🇹","🇲🇭","🇲🇶","🇲🇷","🇲🇺","🇾🇹","🇲🇽","🇫🇲","🇲🇩","🇲🇨","🇲🇳","🇲🇪","🇲🇸","🇲🇦","🇲🇿","🇲🇲","🇳🇦","🇳🇷","🇳🇵","🇳🇱","🇳🇨","🇳🇿","🇳🇮","🇳🇪","🇳🇬","🇳🇺","🇳🇫","🇰🇵","🇲🇵","🇳🇴","🇴🇲","🇵🇰","🇵🇼","🇵🇸","🇵🇦","🇵🇬","🇵🇾","🇵🇪","🇵🇭","🇵🇳","🇵🇱","🇵🇹","🇵🇷","🇶🇦","🇷🇪","🇷🇴","🇷🇺","🇷🇼","🇼🇸","🇸🇲","🇸🇦","🇸🇳","🇷🇸","🇸🇨","🇸🇱","🇸🇬","🇸🇽","🇸🇰","🇸🇮","🇬🇸","🇸🇧","🇸🇴","🇿🇦","🇰🇷","🇸🇸","🇪🇸","🇱🇰","🇧🇱","🇸🇭","🇰🇳","🇱🇨","🇵🇲","🇻🇨","🇸🇩","🇸🇷","🇸🇿","🇸🇪","🇨🇭","🇸🇾","🇹🇼","🇹🇯","🇹🇿","🇹🇭","🇹🇱","🇹🇬","🇹🇰","🇹🇴","🇹🇹","🇹🇳","🇹🇷","🇹🇲","🇹🇨","🇹🇻","🇻🇮","🇺🇬","🇺🇦","🇦🇪","🇬🇧","🏴","🏴","🏴","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇺","🇻🇦","🇻🇪","🇻🇳","🇼🇫","🇪🇭","🇾🇪","🇿🇲","🇿🇼"],icon:Rt}];var Wt=n(50628),Ft=n(37558),Ht=n(41590),Ot=n(27317),jt=n(40173);var Zt=n(40233),Ut=n(24437),Yt=n(90896);function Qt(e){const{children:t,highlight:n,disabled:i,reference:r}=e,a=n?"primary":"default";return o.createElement("div",{ref:r,className:d()(Yt.wrapper,Yt["intent-"+a],Yt["border-thin"],Yt["size-medium"],n&&Yt.highlight,n&&Yt.focused,i&&Yt.disabled),"data-role":"button"},o.createElement("div",{className:d()(Yt.childrenContainer,i&&Yt.disabled)},t),n&&o.createElement("span",{className:Yt.shadow}))}var qt=n(95076);const Xt=()=>null,Gt=(0,jt.mergeThemes)(Ot.DEFAULT_MENU_THEME,{menuBox:qt.menuBox});function Kt(e){const{value:t,disabled:n,onSelect:i}=e,r=(0,o.useRef)(null),{current:a}=(0,o.useRef)(st.getJSON("RecentlyUsedEmojis",[t])),[s,l]=(0,o.useState)(a),[c,d]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>d(!1),[]);var p;p=u,(0,o.useEffect)(()=>(document.addEventListener("scroll",p),()=>{document.removeEventListener("scroll",p)}),[p]);const h=(0,o.useCallback)(e=>{const t=Array.from(new Set([e,...s])).slice(0,18);st.setJSON("RecentlyUsedEmojis",t),l(t),i(e),u()},[s,i]),m=(f=s,(0,o.useMemo)(()=>(It[0].emojis=f,[...It]),[f]));var f;return o.createElement(o.Fragment,null,o.createElement(Qt,{reference:r,
|
||||
highlight:c,disabled:n},o.createElement(bt,{emoji:t,onClick:function(){n||d(!0)}})),o.createElement(Ye.MatchMedia,{rule:Ut.DialogBreakpoints.TabletSmall},e=>c&&o.createElement(Ft.DrawerManager,null,e?o.createElement(Ht.Drawer,{className:qt.drawer,position:"Bottom",onClose:u},o.createElement(Pt,{emojis:m,onSelect:h})):o.createElement(Wt.PopupMenu,{theme:Gt,isOpened:!0,position:(0,Zt.getPopupPositioner)(r.current,{horizontalDropDirection:Zt.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:Zt.HorizontalAttachEdge.Left}),onClickOutside:u,onClose:Xt},o.createElement(Pt,{className:qt.desktopSize,emojis:m,onSelect:h})))))}var $t=n(9688);function Jt(e){const{definition:{title:t,properties:n}}=e,{checked:i,emoji:r,backgroundColor:s}=n,[l,c]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[d,u]=(0,a.useDefinitionProperty)({property:r,defaultValue:"🙂"}),[p,h]=(0,a.useDefinitionProperty)({property:s,defaultValue:ue.colorsPalette["color-tv-blue-a600"]});return o.createElement("div",{className:$t.wrapper},o.createElement(at.Checkbox,{className:$t.checkbox,label:t,checked:l,onChange:function(){c(!l)}}),o.createElement(Kt,{value:d,disabled:!l,onSelect:u}),o.createElement(L.ColorSelect,{className:$t.colorSelect,disabled:!l,color:p,onColorChange:h}))}function en(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:r,title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,l&&o.createElement(s.CommonSection,{id:t,offset:c,title:l,disabled:e.disabled||d}),r.map(e=>o.createElement(tn,{key:e.id,disabled:p,definition:e,offset:Boolean(l)}))):null}function tn(e){const{definition:t,offset:n,disabled:a}=e;if(function(e){(0,o.useEffect)(()=>{if(void 0===e)return;const t={...e.properties};return Object.entries(t).forEach(([n,o])=>{void 0!==o&&o.subscribe(t,()=>Oe.logger.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${o.value()}"`))}),()=>{Object.entries(t).forEach(([,e])=>{void 0!==e&&e.unsubscribeAll(t)})}},[e])}((0,i.isPropertyDefinitionsGroup)(t)?void 0:t),(0,i.isPropertyDefinitionsGroup)(t))return o.createElement(nn,{definition:t,offset:n,disabled:a});switch(t.propType){case"line":return o.createElement(te,{...e,definition:t});case"checkable":return o.createElement(l,{...e,definition:t});case"color":return o.createElement(ce,{...e,definition:t});case"transparency":return o.createElement(fe,{...e,definition:t});case"twoColors":return o.createElement(ge,{...e,definition:t});case"number":return o.createElement(we,{...e,definition:t});case"symbol":return o.createElement(r.SymbolInputsButton,{...e,definition:t});case"text":return o.createElement(Re,{...e,definition:t});case"checkableSet":return o.createElement(Ee,{...e,definition:t});case"set":return o.createElement(en,{...e,definition:t});case"options":return o.createElement(He,{...e,definition:t});case"range":return o.createElement(qe,{...e,definition:t});case"coordinates":
|
||||
return o.createElement(We,{...e,definition:t});case"twoOptions":return o.createElement(nt,{...e,definition:t});case"leveledLine":return o.createElement(Je,{...e,definition:t});case"emoji":return o.createElement(Jt,{...e,definition:t});case"image":return null;case"studyInputs":return o.createElement(rt,{...e,definition:t});default:return null}}function nn(e){const{definition:t}=e,n=(0,J.useWatchedValueReadonly)({watchedValue:t.definitions});return(0,J.useWatchedValueReadonly)({watchedValue:t.visible,defaultValue:!0})?o.createElement(o.Fragment,null,t.title&&o.createElement(Xe.GroupTitleSection,{title:t.title,name:t.id}),n&&(r=n,r.reduce((e,t)=>{if((0,i.isPropertyDefinitionsGroup)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[])).map(n=>Array.isArray(n)?o.createElement($e,{key:n[0].id,name:t.id,definitions:n}):o.createElement(tn,{key:n.id,...e,definition:n})),"general"===t.groupType&&o.createElement(Te.PropertyTable.GroupSeparator,{size:1})):null;var r}},98526:(e,t,n)=>{"use strict";n.d(t,{Dialog:()=>c});var o=n(59496),i=n(97754),r=n(50655),a=n(88216),s=n(90186),l=n(17683);class c extends o.PureComponent{constructor(){super(...arguments),this._manager=new a.OverlapManager,this._handleSlot=e=>{this._manager.setContainer(e)}}render(){const{rounded:e=!0,shadowed:t=!0,fullscreen:n=!1,darker:a=!1,className:c,backdrop:d}=this.props,u=i(c,l.dialog,e&&l.rounded,t&&l.shadowed,n&&l.fullscreen,a&&l.darker),p=(0,s.filterDataProps)(this.props),h=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(r.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:l.backdrop}),o.createElement("div",{...p,className:u,style:h,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(r.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:e,left:t,width:n,right:o,top:i,zIndex:r,height:a}=this.props;return{bottom:e,left:t,right:o,top:i,zIndex:r,maxWidth:n,height:a}}}},95711:(e,t,n)=>{"use strict";n.d(t,{PopupContext:()=>o});const o=n(59496).createContext(null)},81e3:(e,t,n)=>{"use strict";n.d(t,{PopupDialog:()=>_});var o=n(59496),i=n(97754),r=n(88537),a=n(98526),s=n(86431),l=n(76594),c=n(64514);function d(e,t,n,o){return e+t>o&&(e=o-t),e<n&&(e=n),e}function u(e){return{x:(0,c.clamp)(e.x,20,document.documentElement.clientWidth-20),y:(0,c.clamp)(e.y,20,window.innerHeight-20)}}function p(e){return{x:e.clientX,y:e.clientY}}function h(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}class m{constructor(e,t,n={boundByScreen:!0}){this._drag=null,this._canBeTouchClick=!1,this._frame=null,this._onMouseDragStart=e=>{if(0!==e.button||this._isTargetNoDraggable(e))return;e.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),
|
||||
document.addEventListener("mouseup",this._onMouseDragEnd);const t=u(p(e));this._dragStart(t)},this._onTouchDragStart=e=>{if(this._isTargetNoDraggable(e))return;this._canBeTouchClick=!0,e.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const t=u(h(e));this._dragStart(t)},this._onMouseDragEnd=e=>{e.target instanceof Node&&this._header.contains(e.target)&&e.preventDefault(),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=e=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(e){if(e instanceof SVGElement){const t=document.createEvent("SVGEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}e instanceof HTMLElement&&e.click()}(e.target))},this._onMouseDragMove=e=>{const t=u(p(e));this._dragMove(t)},this._onTouchDragMove=e=>{this._canBeTouchClick=!1,e.preventDefault();const t=u(h(e));this._dragMove(t)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=e,this._header=t,this._options=n,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(e){this._options=e}_dragStart(e){const t=this._dialog.getBoundingClientRect();this._drag={startX:e.x,startY:e.y,finishX:e.x,finishY:e.y,dialogX:t.left,dialogY:t.top};const n=Math.round(t.left),o=Math.round(t.top);this._dialog.style.transform=`translate(${n}px, ${o}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(e){if(this._drag){if(this._drag.finishX=e.x,this._drag.finishY=e.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const t=e.x-this._drag.startX,n=e.y-this._drag.startY;this._moveDialog(this._drag.dialogX+t,this._drag.dialogY+n)}this._frame=null})}}_moveDialog(e,t){const n=this._dialog.getBoundingClientRect(),{boundByScreen:o}=this._options,i=d(e,n.width,o?0:-1/0,o?window.innerWidth:1/0),r=d(t,n.height,o?0:-1/0,o?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}_isTargetNoDraggable(e){return e.target instanceof Element&&null!==e.target.closest("[data-disable-drag]")}}const f={vertical:0};class v{constructor(e,t){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=e,
|
||||
this._guard=t.guard||f,this._calculateDialogPosition=t.calculateDialogPosition,this._initialHeight=e.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(e){this._guard=e.guard||f,this._calculateDialogPosition=e.calculateDialogPosition}setFullscreen(e){this._isFullscreen!==e&&(this._isFullscreen=e,this.recalculateBounds())}centerAndFit(){const{x:e,y:t}=this.getDialogsTopLeftCoordinates(),n=this._calcAvailableHeight(),o=this._calcDialogHeight();if(n===o)if(this._calculateDialogPosition){const{left:e,top:t}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(e)}px, ${Math.round(t)}px)`}else this._dialog.style.height=o+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${e}px, ${t}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:e,clientWidth:t}=document.documentElement,n=this._calcDialogHeight(),o=t/2-this._dialog.clientWidth/2,i=e/2-n/2;return{x:Math.round(o),y:Math.round(i)}}recalculateBounds(){const{clientHeight:e,clientWidth:t}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:n}=this._guard;if(this._calculateDialogPosition){const o=this._calculateDialogPosition(this._dialog,{clientWidth:t,clientHeight:e},{vertical:n}),{left:i,top:r}=o;this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const o=this._dialog.getBoundingClientRect(),i=e-2*n,r=d(o.left,o.width,0,t),a=d(o.top,o.height,n,e);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(r)}px, ${Math.round(a)}px)`,this._dialog.style.height=i<o.height?i+"px":this._initialHeight}}}destroy(){window.removeEventListener("resize",this._handleResize),null!==this._frame&&(cancelAnimationFrame(this._frame),this._frame=null)}_calcDialogHeight(){const e=this._calcAvailableHeight();return e<this._dialog.clientHeight?e:this._dialog.clientHeight}_calcAvailableHeight(){return document.documentElement.clientHeight-2*this._guard.vertical}}var g=n(65718),y=n(95711),b=n(43989),w=n(12114);w["tooltip-offset"];class E extends o.PureComponent{constructor(e){super(e),this._dialog=null,this._handleDialogRef=e=>{const{reference:t}=this.props;this._dialog=e,"function"==typeof t&&t(e)},this._handleFocus=e=>{this._moveToTop()},this._handleMouseDown=e=>{this._moveToTop()},this._handleTouchStart=e=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return o.createElement(y.PopupContext.Provider,{value:this},o.createElement(l.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},e=>o.createElement("div",{ref:e,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,
|
||||
"data-dialog-name":this.props["data-dialog-name"]},o.createElement(a.Dialog,{style:this._applyAnimationCSSVariables(),...this.props,reference:this._handleDialogRef,className:i(w.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:e,boundByScreen:t,onDragStart:n}=this.props,o=(0,r.ensureNotNull)(this._dialog);if(e){const e=o.querySelector("[data-dragg-area]");e&&e instanceof HTMLElement&&(this._drag=new m(o,e,{boundByScreen:Boolean(t),onDragStart:n}))}this.props.autofocus&&!o.contains(document.activeElement)&&o.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,b.setFixedBodyState)(!0);const{guard:i,calculateDialogPosition:a}=this.props;this._resize=new v(o,{guard:i,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&o.focus()}componentDidUpdate(){if(this._resize){const{guard:e,calculateDialogPosition:t}=this.props;this._resize.updateOptions({guard:e,calculateDialogPosition:t}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,b.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(e){if(this._resize&&this._dialog){const{x:t,y:n}=e,{x:o,y:i}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",t+"px"),this._dialog.style.setProperty("--animationTranslateStartY",n+"px"),this._dialog.style.setProperty("--animationTranslateEndX",o+"px"),this._dialog.style.setProperty("--animationTranslateEndY",i+"px"),this._dialog.classList.add(w.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}E.contextType=g.PortalContext,E.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const _=(0,s.makeOverlapable)(E)},95276:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosure:()=>c});var o=n(59496),i=n(66092),r=n(26597),a=n(72887),s=n(68721),l=n(66230);const c=o.forwardRef((e,t)=>{const{id:n,tabIndex:c,disabled:d,highlight:u,intent:p,children:h,onClick:m,onFocus:f,onBlur:v,listboxAria:g,...y}=e,b=(0,o.useRef)({"aria-labelledby":n}),{listboxId:w,isOpened:E,isFocused:_,buttonTabIndex:D,listboxTabIndex:S,highlight:C,intent:x,onOpen:M,close:P,toggle:T,buttonFocusBindings:N,onButtonClick:V,buttonRef:z,listboxRef:k,buttonAria:A}=(0,
|
||||
s.useControlDisclosure)({id:n,disabled:d,buttonTabIndex:c,intent:p,highlight:u,onFocus:f,onBlur:v,onClick:m}),B=(0,r.useKeyboardToggle)(T),L=(0,r.useKeyboardClose)(E,P),R=(0,r.useKeyboardActionHandler)([27],P,(0,o.useCallback)(()=>E,[E])),I=(0,r.useKeyboardEventHandler)(B,L),W=(0,r.useKeyboardEventHandler)(R);return o.createElement(a.ControlDisclosureView,{...y,...N,...A,id:n,role:"button",tabIndex:D,disabled:d,isOpened:E,isFocused:_,ref:(0,i.useMergedRefs)([z,t]),highlight:C,intent:x,onClose:P,onOpen:M,onClick:V,onKeyDown:I,listboxId:w,listboxTabIndex:S,listboxReference:k,listboxAria:null!=g?g:b.current,onListboxKeyDown:W},h,o.createElement("span",{className:l.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:P}))});c.displayName="ControlDisclosure"},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>i,DrawerContext:()=>r});var o=n(59496);class i extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(r.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const r=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>h});var o=n(59496),i=n(88537),r=n(97754),a=n(59142),s=n(43989),l=n(65718),c=n(37558),d=n(49483),u=n(29197),p=n(66998);function h(e){const{position:t="Bottom",onClose:n,children:h,className:m,theme:f=p}=e,v=(0,i.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[g,y]=(0,o.useState)(0),b=(0,o.useRef)(null),w=(0,o.useContext)(u.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,i.ensureNotNull)(b.current);return e.focus({preventScroll:!0}),w.subscribe(v,n),0===v.currentDrawer&&(0,s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),y(v.addDrawer()),()=>{w.unsubscribe(v,n);const t=v.removeDrawer();d.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),o.createElement(l.Portal,null,o.createElement("div",{className:r(p.wrap,p["position"+t])},g===v.currentDrawer&&o.createElement("div",{className:p.backdrop,onClick:n}),o.createElement("div",{className:r(p.drawer,f.drawer,p["position"+t],m),ref:b,tabIndex:-1,"data-name":e["data-name"]},h)))}},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>d});var o=n(28353),i=n(59496),r=n(97754),a=n(9745),s=n(73366),l=n(73432);const c={remove:(0,o.t)("Remove")};function d(e){const{className:t,isActive:n,onClick:o,onMouseDown:d,title:u,hidden:p,"data-name":h="remove-button",...m}=e;return i.createElement(a.Icon,{...m,"data-name":h,className:r(l.button,"apply-common-tooltip",n&&l.active,p&&l.hidden,t),icon:s,onClick:o,onMouseDown:d,title:u||c.remove})}},40173:(e,t,n)=>{"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const i of Object.keys(t)){const r=n[i]||i;r in e&&(o[i]=[e[r],t[i]].join(" "))}return o}function i(e,t,n={}){
|
||||
return Object.assign({},e,o(e,t,n))}n.d(t,{weakComposeClasses:()=>o,mergeThemes:()=>i})},31328:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z"/></svg>'},73366:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},19726:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z"/></svg>'},56326:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor"><circle cx="9" cy="14" r="1"/><circle cx="4" cy="14" r="1"/><circle cx="14" cy="14" r="1"/><circle cx="19" cy="14" r="1"/><circle cx="24" cy="14" r="1"/></svg>'},50303:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M5.5 7a.5.5 0 0 0 0 1h17a.5.5 0 0 0 0-1h-17Zm0 6a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm7 0a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm6.5.5c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5ZM7 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm5-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/></svg>'},20618:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4 13.5h20"/></svg>'},56775:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M4.5 13.5H24m-19.5 0L8 17m-3.5-3.5L8 10"/></svg>'},23848:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8.5 13.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 0H24"/></svg>'},86508:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M14 21h-3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3c2 0 4 1 4 3 0 1 0 2-1.5 3 1.5.5 2.5 2 2.5 4 0 2.75-2.638 4-5 4zM12 9l.004 3c.39.026.82 0 1.25 0C14.908 12 16 11.743 16 10.5c0-1.1-.996-1.5-2.5-1.5-.397 0-.927-.033-1.5 0zm0 5v5h1.5c1.5 0 3.5-.5 3.5-2.5S15 14 13.5 14c-.5 0-.895-.02-1.5 0z"/></svg>'},27603:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M12.143 20l1.714-12H12V7h5v1h-2.143l-1.714 12H15v1h-5v-1h2.143z"/></svg>'},75614:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M13.98 6.02L14.5 6c2.18 0 4.16.8 5.66 2.14l-5.66 5.65-2.31-2.3a8.43 8.43 0 0 0 1.55-3.64 14.01 14.01 0 0 0 .24-1.83zm-1.01.12a8.45 8.45 0 0 0-4.13 2l2.64 2.63a7.59 7.59 0 0 0 1.28-3.12c.12-.59.18-1.12.2-1.51zm-4.83 2.7a8.45 8.45 0 0 0-2 4.13c.39-.03.92-.1 1.51-.21a7.59 7.59 0 0 0 3.12-1.28L8.14 8.84zm-2.12 5.14a8.48 8.48 0 0 0 2.12 6.18l5.65-5.66-2.3-2.31a8.43 8.43 0 0 1-3.64 1.55 14.03 14.03 0 0 1-1.83.24zm2.82 6.88a8.46 8.46 0 0 0 5.13 2.12v-.07A8.95 8.95 0 0 1 16.3 17l-1.8-1.8-5.66 5.65zM14.97 23c2-.1 3.8-.9 5.19-2.13L17 17.72a7.94 7.94 0 0 0-2.04 5.27zm5.9-2.83a8.46 8.46 0 0 0 2.11-5.13h-.02a10.62 10.62 0 0 0-5.2 2l3.1 3.13zm2.12-6.13c-.1-2-.9-3.8-2.13-5.19l-5.65 5.66 1.83 1.83a11.6 11.6 0 0 1 5.95-2.3zM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5z"/></svg>'},36311:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M4.54 3.2l.78-.59 5.49 4.5 1.43 1.07a5.28 5.28 0 0 1 2.19-2.3 9.19 9.19 0 0 1 1.88-.85h.04l.01-.01.14.48.42-.28v.01l.01.02a3.14 3.14 0 0 1 .16.26l.37.72c.2.45.4 1.02.5 1.64a2.13 2.13 0 0 1 1.89.46l.18.16.03.02.18.16c.22.16.42.27.81.25a5.9 5.9 0 0 0 2.2-.86l.66-.36.09.75a5.98 5.98 0 0 1-1.7 5.1 6.87 6.87 0 0 1-1.7 1.23 19.97 19.97 0 0 1 .48 2.48c.25 1.73.42 4.08.06 6.5A1.46 1.46 0 0 1 19.68 25h-7.71a1.5 1.5 0 0 1-1.4-2.06l1-2.47c-.18.02-.37.03-.58.03a3 3 0 0 1-1.53-.4 6.84 6.84 0 0 1-1.6.64c-1.08.27-2.55.29-3.72-.89a4.06 4.06 0 0 1-.96-3 5.1 5.1 0 0 1 2-3.74 98.5 98.5 0 0 0 2.7-2.24L4.55 3.2zM16.5 5.5l-.14-.48.35-.1.2.3-.41.28zm-7.87 6.06a57.48 57.48 0 0 1-2.19 1.82l.49.26c.65.37 1.48.9 1.97 1.56a5.78 5.78 0 0 1 1.14 4.07l.06.03c.19.1.49.2.9.2.68 0 .95-.11 1.03-.16v-.03l.97.19h-.5.5v.03a.75.75 0 0 1-.01.1.74.74 0 0 1-.09.21l-1.39 3.47a.5.5 0 0 0 .47.69h7.71c.24 0 .43-.17.47-.38a22 22 0 0 0-.06-6.22 24.4 24.4 0 0 0-.56-2.71 11.35 11.35 0 0 0-.94-1.52 7.1 7.1 0 0 0-2.31-2.22l-.62-.31.49-.5A3.03 3.03 0 0 0 17 8.6a1.2 1.2 0 0 0 .01-.1c0-.65-.22-1.33-.46-1.86-.1-.21-.18-.4-.26-.54a8.07 8.07 0 0 0-1.34.64c-.9.54-1.74 1.32-1.95 2.36v.03l-.02.03L12.5 9l.47.16v.02a2.97 2.97 0 0 1-.1.26 5.9 5.9 0 0 1-.31.62c-.27.46-.7 1.07-1.34 1.39-.63.31-1.38.3-1.9.23a5.83 5.83 0 0 1-.7-.12zm3.26-2.39L10.2 7.9l-.02-.01L6.3 4.7l2.57 5.88h.01c.14.04.34.08.57.11.47.06.97.05 1.34-.14.36-.18.68-.57.91-.99.08-.14.15-.27.2-.39zm8.32 4.68a5.47 5.47 0 0 0 1.37-1.02 4.88 4.88 0 0 0 1.46-3.53c-.8.39-1.41.58-1.92.61-.7.05-1.14-.18-1.49-.45a5.6 5.6 0 0 1-.22-.19l-.03-.03-.17-.13a1.4 1.4 0 0 0-.33-.22c-.18-.07-.44-.12-.93 0l-.1.4c-.1.3-.28.69-.58 1.09.87.59 1.6 1.46 2.14 2.2a14.92 14.92 0 0 1 .8 1.27zM9.05 19.19v-.09a4.78 4.78 0 0 0-.96-3.3 5.56 5.56 0 0 0-1.65-1.29c-.3-.17-.6-.3-.8-.4l-.05-.03a4.05 4.05 0 0 0-1.4 2.82 3.1 3.1 0 0 0 .66 2.25c.83.82 1.86.84 2.78.62a5.71 5.71 0 0 0 1.42-.58zm4.26-5.87c-.3.24-.74.54-1.18.66-.37.1-.81.1-1.12.08a6.95 6.95 0 0 1-.54-.06h-.05l.08-.5.08-.5.03.01a5.02 5.02 0 0 0 1.26 0c.24-.06.54-.25.83-.47a6.1 6.1 0 0 0 .42-.37l.02-.02.36.35.35.36h-.01l-.03.04a6.09 6.09 0 0 1-.5.42zM6 17h1v-1H6v1z"/></svg>'},72843:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 24v-5.5m0 0s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1v-6m-14 6v-6m0 0v-6s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1v6m-14 0s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1"/></svg>'},31006:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M12.5 8h1.36l-.85-3.38.98-.24.9 3.62h7.64a1.34 1.34 0 0 1 .2.02c.13.02.31.07.5.16.18.09.38.24.53.46.15.24.24.52.24.86 0 .34-.09.62-.24.86a1.38 1.38 0 0 1-.79.56L22 24.54l-.03.46H6.5c-1 0-1.64-.68-1.99-1.23a4.4 4.4 0 0 1-.38-.78l-.01-.04c-.1-.03-.22-.07-.34-.13a1.36 1.36 0 0 1-.54-.46A1.51 1.51 0 0 1 3 21.5c0-.34.09-.62.24-.86.15-.22.35-.37.54-.46.1-.05.2-.09.28-.11a6.6 6.6 0 0 1 .96-2.34C5.92 16.35 7.56 15 10.5 15c.72 0 1.36.08 1.93.22l-.4-4.3a1.38 1.38 0 0 1-.8-.57A1.51 1.51 0 0 1 11 9.5c0-.34.09-.62.24-.86.15-.22.35-.37.54-.46a1.73 1.73 0 0 1 .7-.18h.02v.5V8zm.96 7.57a5.73 5.73 0 0 1 2.52 2.16 6.86 6.86 0 0 1 .95 2.34 1.38 1.38 0 0 1 .82.58c.16.23.25.51.25.85 0 .34-.09.62-.24.86-.15.22-.35.37-.54.46-.12.06-.24.1-.34.13l-.01.04a4.4 4.4 0 0 1-.54 1.01h4.7l.93-13h-8.91l.41 4.57zM14.5 9h8a.73.73 0 0 1 .28.07c.06.04.11.08.15.13.03.05.07.14.07.3 0 .16-.04.25-.07.3a.38.38 0 0 1-.15.13.73.73 0 0 1-.27.07H12.5a.73.73 0 0 1-.28-.07.38.38 0 0 1-.15-.13.52.52 0 0 1-.07-.3c0-.16.04-.25.07-.3.04-.05.09-.1.15-.13A.73.73 0 0 1 12.5 9h2.01zm1.4 11a5.8 5.8 0 0 0-.76-1.73C14.41 17.15 13.06 16 10.5 16c-2.56 0-3.91 1.15-4.64 2.27A5.86 5.86 0 0 0 5.1 20h10.78zM4.5 21a.72.72 0 0 0-.28.07.38.38 0 0 0-.15.13.52.52 0 0 0-.07.3c0 .16.04.25.07.3.04.05.09.1.15.13a.73.73 0 0 0 .27.07H16.5a.72.72 0 0 0 .28-.07.38.38 0 0 0 .15-.13.52.52 0 0 0 .07-.3.52.52 0 0 0-.07-.3.38.38 0 0 0-.15-.13.73.73 0 0 0-.27-.07H4.5zm.73 2l.13.23c.28.45.65.77 1.14.77h8c.5 0 .86-.32 1.14-.77.05-.07.1-.15.13-.23H5.23zM11 17v1h-1v-1h1zm-3 1h1v1H8v-1zm4 1v-1h1v1h-1z"/></svg>'},42925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M9.5 21H9h.5zm8 0H17h.5zm-6-10H11v1h.5v-1zm4 1h.5v-1h-.5v1zm2 7.5h.5-.5zm.29-1.59A7.97 7.97 0 0 0 21 11.5h-1a6.97 6.97 0 0 1-2.79 5.59l.58.82zM21 11.5A7.5 7.5 0 0 0 13.5 4v1a6.5 6.5 0 0 1 6.5 6.5h1zM13.5 4A7.5 7.5 0 0 0 6 11.5h1A6.5 6.5 0 0 1 13.5 5V4zM6 11.5a7.98 7.98 0 0 0 3.21 6.41l.57-.82A6.98 6.98 0 0 1 7 11.5H6zM9 21a1 1 0 0 0 1 1v-1H9zm8 1a1 1 0 0 0 1-1h-1v1zm-6-.5V23h1v-1.5h-1zm0 1.5a1 1 0 0 0 1 1v-1h-1zm1 1h3v-1h-3v1zm3 0a1 1 0 0 0 1-1h-1v1zm1-1v-1.5h-1V23h1zm-3-11.5v6h1v-6h-1zM9.5 20h8v-1h-8v1zM9 17.5v2h1v-2H9zm0 2V21h1v-1.5H9zm9 1.5v-1.5h-1V21h1zm0-1.5v-2h-1v2h1zM9.5 18h4v-1h-4v1zm4 0h4v-1h-4v1zm-2-6h2v-1h-2v1zm2 0h2v-1h-2v1zM10 22h1.5v-1H10v1zm1.5 0h4v-1h-4v1zm4 0H17v-1h-1.5v1z"/></svg>'},80781:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M6 14.5C6 9.78 9.78 6 14.5 6c4.72 0 8.5 3.78 8.5 8.5 0 4.72-3.78 8.5-8.5 8.5A8.46 8.46 0 0 1 6 14.5zM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5zM14 16V9h1v6h4v1h-5z"/></svg>'},67978:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M6 14.5C6 9.78 9.78 6 14.5 6c4.72 0 8.5 3.78 8.5 8.5 0 4.72-3.78 8.5-8.5 8.5A8.46 8.46 0 0 1 6 14.5zM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5zM12 12a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 1a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-6 4l-.43.26v.01l.03.03a3.55 3.55 0 0 0 .3.4 5.7 5.7 0 0 0 9.22 0 5.42 5.42 0 0 0 .28-.4l.02-.03v-.01L19 17l-.43-.26v.02a2.45 2.45 0 0 1-.24.32c-.17.21-.43.5-.78.79a4.71 4.71 0 0 1-6.88-.8 4.32 4.32 0 0 1-.23-.31l-.01-.02L10 17z"/></svg>'},40526:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5.6 15.43A6.19 6.19 0 0 1 14 6.36a6.19 6.19 0 0 1 8.4 9.08l-.03.02-7.3 7.31a1.5 1.5 0 0 1-2.13 0l-7.3-7.3-.03-.03m.71-.7v-.01a5.19 5.19 0 0 1 7.33-7.34v.01c.2.2.51.19.7 0a5.19 5.19 0 0 1 7.34 7.33l-.03.02-7.3 7.31a.5.5 0 0 1-.71 0l-7.3-7.3-.03-.02z"/></svg>'},1033:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M22.87 6.44c.09-.78-.53-1.4-1.3-1.31-1.43.15-3.43.48-5.42 1.2a11.8 11.8 0 0 0-5.23 3.44L9.86 11.9l6.24 6.24 2.13-1.06a11.8 11.8 0 0 0 3.44-5.23c.72-1.99 1.05-4 1.2-5.41zm-4.93 11.9l-1.72.86-.04.02h-.04l-2.2.67v.01a19.68 19.68 0 0 0-.13 3.33c.01.14.08.22.17.26.08.04.2.05.32-.03a18.83 18.83 0 0 0 2.79-2.26 8.18 8.18 0 0 0 .44-1.1c.16-.51.33-1.12.41-1.76zm-.44 3.16l.35.35-.01.02-.05.05a16.85 16.85 0 0 1-.83.76c-.54.47-1.3 1.08-2.1 1.61a1.3 1.3 0 0 1-2.05-.98 16.46 16.46 0 0 1 .09-3.08l-.16.05a1.5 1.5 0 0 1-1.53-.36l-3.13-3.13c-.4-.4-.54-1-.36-1.53l.05-.16-.36.04c-.7.06-1.62.11-2.54.06a1.3 1.3 0 0 1-1.13-.8c-.18-.42-.13-.94.17-1.35a87.55 87.55 0 0 1 2.15-2.8l.04-.04v-.02l.4.31-.22-.45.03-.01a5.93 5.93 0 0 1 .34-.16c.23-.1.55-.22.94-.35A9.77 9.77 0 0 1 10.26 9a12.9 12.9 0 0 1 5.55-3.61c2.09-.76 4.18-1.1 5.65-1.26 1.41-.15 2.56 1 2.4 2.41a24.04 24.04 0 0 1-1.25 5.65A12.9 12.9 0 0 1 19 17.74a9.77 9.77 0 0 1-.88 3.61 9.18 9.18 0 0 1-.16.34v.03h-.01l-.45-.22zm0 0l.45.22-.04.08-.06.05-.35-.35zm-11-11l-.4-.31.08-.09.1-.05.22.45zm3.16-.44a9.61 9.61 0 0 0-2.84.84l-.13.16a109.83 109.83 0 0 0-1.97 2.58.4.4 0 0 0-.06.38c.04.1.12.17.27.18a16.05 16.05 0 0 0 3.18-.15l.66-2.2.01-.03.02-.04.86-1.72zm5.4 8.45l-5.57-5.56-.51 1.7-.31.92a.5.5 0 0 0 .12.51l3.13 3.13a.5.5 0 0 0 .5.12l.92-.3h.02l1.7-.52zm-10.91.64l2-2 .7.7-2 2-.7-.7zm0 4l4-4 .7.7-4 4-.7-.7zm4 0l2-2 .7.7-2 2-.7-.7zM16 10.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zM17.5 8a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z"/></svg>'}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M38.33 84.99c.45-3.95-1.26-8.57-4.75-10.48a35.09 35.09 0 1 1 49.88-42.5c.26.73.91 1.24 1.67 1.32a25.56 25.56 0 1 1-5.99 50.76c-2.7-.32-5.59 2.22-5.9 4.93a17.57 17.57 0 1 1-34.91-4.03z" fill="#F0F3FA"/><path d="M25.84 44.41c.54-11.43 8.7-21.65 20.5-23.85a25.2 25.2 0 0 1 26.48 12.28H51.41a14.75 14.75 0 0 0-14.65 12.8c-1.07 1.78-2.63 3.22-4.68 3.6-3.22.6-6.4-1.55-6.24-4.83zM51.23 62.2l-2.35.43a20 20 0 0 0-16 23.33l4.39 23.59a5.1 5.1 0 0 0 5.95 4.08l39.5-7.35a5.1 5.1 0 0 0 4.07-5.95l-9.76-52.49H66.19A14.73 14.73 0 0 1 51.23 62.2z" fill="#fff"/><path d="M46.33 20.56l.18.99-.18-.99zM25.84 44.41l1 .05-1-.05zm46.98-11.57v1h1.72l-.85-1.5-.87.5zm-21.41 0v-1h-1v1h1zm0 0v1h1v-1h-1zm-14.65 12.8l.86.5.11-.17.03-.21-1-.13zm-4.68 3.6l.19.98-.19-.98zM51.23 62.2v-1h-.09l-.1.02.19.98zm-2.35.43l-.18-.98.18.98zm-16 23.33l.98-.19-.98.19zm4.39 23.59l-.98.18.98-.18zm5.95 4.08l.18.98-.18-.98zm39.5-7.35l-.19-.99.18.99zm4.07-5.95l.99-.18-.99.18zm-9.76-52.49l.98-.18-.15-.82h-.83v1zm-10.84 0v-1h-.97l-.03.98 1 .02zM46.15 19.58C33.87 21.87 25.4 32.5 24.85 44.37l2 .1c.5-11.01 8.35-20.82 19.66-22.92l-.36-1.97zm27.54 12.77a26.2 26.2 0 0 0-27.54-12.77l.36 1.97a24.2 24.2 0 0 1 25.44 11.79l1.74-1zm-.87-.5H51.41v2h21.41v-2zm-22.41 1h2-2zm1-1A15.75 15.75 0 0 0 35.77 45.5l1.99.26A13.75 13.75 0 0 1 51.4 33.84v-2zM32.27 50.21c2.42-.45 4.2-2.13 5.35-4.08l-1.71-1.02c-.99 1.64-2.34 2.82-4 3.13l.36 1.97zm-7.43-5.85c-.19 4.08 3.74 6.54 7.43 5.85l-.37-1.97c-2.76.52-5.17-1.32-5.06-3.79l-2-.1zm26.2 16.85l-2.34.43.37 1.97 2.34-.44-.37-1.96zm-2.34.43a21 21 0 0 0-16.8 24.49l1.96-.37a19 19 0 0 1 15.2-22.15l-.36-1.97zM31.9 86.14l4.39 23.59 1.96-.37-4.39-23.59-1.96.37zm4.39 23.59a6.1 6.1 0 0 0 7.11 4.88l-.37-1.97a4.1 4.1 0 0 1-4.78-3.28l-1.96.37zm7.11 4.88l39.5-7.35-.37-1.97-39.5 7.35.37 1.97zm39.5-7.35a6.1 6.1 0 0 0 4.88-7.11l-1.97.36a4.1 4.1 0 0 1-3.28 4.78l.37 1.97zm4.88-7.11L78 47.65l-1.97.38 9.77 52.48 1.97-.36zm-21.59-51.3h10.84v-2H66.19v2zM51.42 63.2c8.6 0 15.59-6.83 15.77-15.34l-2-.04A13.73 13.73 0 0 1 51.42 61.2v2zm-.2 0h.2v-2h-.18l-.03 2z" fill="#1E222D"/><path d="M66.2 47.84A14.73 14.73 0 0 1 51.41 62.2a14.73 14.73 0 0 1-14.78-14.69A14.73 14.73 0 0 1 52.1 32.84h39.14c5.98 0 11.71 2.35 15.98 6.53l3.89 3.81a6.08 6.08 0 0 1 1.76 3.63 5.94 5.94 0 1 1-9.6 5.4l-1.81-1.45a13.4 13.4 0 0 0-8.36-2.92H66.2z" fill="#fff"/><path d="M66.2 47.84v-1h-.98l-.03.98 1 .02zm-14.11-15l-.05 1h.05v-1zm55.12 6.53l.7-.71-.7.71zm3.89 3.81l-.7.72.7-.72zm1.76 3.63l1-.11-1 .11zm-9.6 5.4l.62-.79-.62.79zm-1.81-1.45l.62-.78-.62.78zm-36.26-2.94A13.73 13.73 0 0 1 51.42 61.2v2c8.6 0 15.59-6.83 15.77-15.34l-2-.04zM51.42 61.2a13.73 13.73 0 0 1-13.78-13.69h-2c0 8.67 7.07 15.69 15.78 15.69v-2zM37.64 47.51c0-7.55 6.17-13.68 13.78-13.68v-2c-8.7 0-15.78 7.01-15.78 15.68h2zm13.78-13.68l.62.01.1-2-.72-.01v2zm.67.01h39.14v-2H52.1v2zm39.14 0c5.72 0 11.2 2.24 15.28 6.25l1.4-1.43a23.82 23.82 0 0 0-16.68-6.82v2zm15.28 6.25l3.88 3.8 1.4-1.42-3.88-3.81-1.4 1.43zm3.88 3.8c.82.8 1.35 1.9 1.48 3.04l1.99-.23a7.08 7.08 0 0 0-2.06-4.23l-1.4 1.43zm1.48 3.04a5 5 0 0 1-4.9 5.57v2a7 7 0 0 0 6.89-7.8l-2 .23zm-4.9 5.57c-1.12 0-2.21-.38-3.09-1.08L102.64 53a6.94 6.94 0 0 0 4.33 1.51v-2zm-3.09-1.08l-1.8-1.44-1.25 1.57 1.8 1.44 1.25-1.57zm-1.8-1.44a14.4 14.4 0 0 0-8.99-3.14v2c2.81 0 5.54.96 7.74 2.7l1.24-1.56zm-8.99-3.14H66.2v2h26.9v-2z" fill="#1E222D"/><path d="M51 43.44v9" stroke="#1E222D" stroke-width="2" stroke-linecap="round"/><path d="M38.91 95.18a12 12 0 0 1 9.52-14.05l16.7-3.21a12 12 0 0 1 4.53 23.56l-16.7 3.22a12 12 0 0 1-14.05-9.52z" fill="#2962FF"/><path d="M57.86 97.64l-1.26-2.12-3.85.75-.35 2.42-2.21.43 2.28-12.25.88-.17 6.71 10.52-2.2.42zm-4.29-7.42l-.55 4.4 2.7-.51-2.15-3.9zm10.18 6.3l-2.5.47-2.15-11.23a122 122 0 0 1 2.98-.66 5.34 5.34 0 0 1 4.17.7 5.23 5.23 0 0 1 2.17 3.53c.78 4.04-.78 6.43-4.67 7.18zm-2.32-9.4l1.47 7.67c.33-.03.68-.08 1.05-.16 1.01-.19 1.73-.7 2.16-1.55.43-.84.52-1.92.26-3.23-.46-2.4-1.8-3.4-4.04-2.96-.22.04-.52.12-.9.23z" fill="#fff"/></svg>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1,4 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2502],{6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},91131:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-xe9kH1lJ",submitButton:"submitButton-xe9kH1lJ",buttons:"buttons-xe9kH1lJ"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},97737:(e,t,n)=>{"use strict";n.d(t,{AnchorButton:()=>d,Button:()=>c});var r=n(59496),o=n(71036);function s(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function a(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function i(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:a(t),size:i(n),variant:s(r),stretch:o,startIcon:l}}function c(e){return r.createElement(o.SquareButton,{...l(e)})}function u(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:a(t),size:i(n),variant:s(r),stretch:o,startIcon:l}}function d(e){return r.createElement(o.SquareAnchorButton,{...u(e)})}},71036:(e,t,n)=>{"use strict";n.d(t,{SquareAnchorButton:()=>f,SquareButton:()=>h});var r=n(59496),o=n(97754),s=n(95604),a=n(9745),i=n(6539),l=n.n(i);function c(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:a=!1,icon:i,startIcon:c,endIcon:u,iconOnly:d=!1,className:p,isGrouped:m,cellState:h,disablePositionAdjustment:v=!1}=e,f=function(e){let t="";return 0!==e&&(1&e&&(t=o(t,l()["no-corner-top-left"])),
|
||||
2&e&&(t=o(t,l()["no-corner-top-right"])),4&e&&(t=o(t,l()["no-corner-bottom-right"])),8&e&&(t=o(t,l()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(h));return o(p,l().button,l()["size-"+n],l()["color-"+t],l()["variant-"+r],a&&l().stretch,(i||c)&&l()["with-start-icon"],u&&l()["with-end-icon"],d&&l()["icon-only"],f,m&&l().grouped,m&&!v&&l()["adjust-position"],m&&h.isTop&&l()["first-row"],m&&h.isLeft&&l()["first-col"])}function u(e){const{size:t,startIcon:n,icon:o,iconOnly:s,children:i,endIcon:c}=e,u=null!=n?n:o;return r.createElement(r.Fragment,null,u&&"xsmall"!==t&&r.createElement(a.Icon,{icon:u,className:l()["start-icon-wrap"]}),i&&r.createElement("span",{className:l().content},i),c&&!s&&"xsmall"!==t&&r.createElement(a.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var d=n(86332),p=n(90186);function m(e){const{className:t,color:n,variant:r,size:o,stretch:s,animated:a,icon:i,iconOnly:l,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function h(e){const{reference:t,...n}=e,{isGrouped:o,cellState:s,disablePositionAdjustment:a}=(0,r.useContext)(d.ControlGroupContext),i=c({...n,isGrouped:o,cellState:s,disablePositionAdjustment:a});return r.createElement("button",{...m(n),className:i,ref:t},r.createElement(u,{...n}))}function v(e){const{className:t,color:n,variant:r,size:o,stretch:s,animated:a,icon:i,iconOnly:l,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function f(e){const{reference:t}=e,{isGrouped:n,cellState:o,disablePositionAdjustment:s}=(0,r.useContext)(d.ControlGroupContext),a=c({...e,isGrouped:n,cellState:o,disablePositionAdjustment:s});return r.createElement("a",{...v(e),className:a,ref:t},r.createElement(u,{...e}))}},50182:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>p});var r=n(59496),o=n(97754),s=n.n(o),a=n(97737),i=n(88537),l=n(28353),c=n(68335),u=n(85457),d=n(91131);class p extends r.PureComponent{constructor(){super(...arguments),this._dialogRef=r.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:r}=this.props;switch(e){case"submit":t();break;case"cancel":n()}r()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:r}=this.props;13===(0,c.hashFromEvent)(e)&&r&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:o,footerLeftRenderer:s,submitButtonText:a,submitButtonDisabled:i,defaultActionOnClose:l,submitOnEnterKey:c,...d}=this.props;return r.createElement(u.AdaptivePopupDialog,{...d,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,i.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{
|
||||
const{render:t,footerLeftRenderer:n,additionalButtons:o,submitButtonText:i,submitButtonDisabled:c,onSubmit:u,cancelButtonText:p,showCancelButton:m=!0,submitButtonClassName:h,cancelButtonClassName:v,buttonsWrapperClassName:f}=this.props;return r.createElement(r.Fragment,null,t(e),r.createElement("div",{className:d.footer},n&&n(e.isSmallWidth),r.createElement("div",{className:s()(d.buttons,f)},o,m&&r.createElement(a.Button,{className:v,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=p?p:(0,l.t)("Cancel")),r.createElement("span",{className:d.submitButton},r.createElement(a.Button,{className:h,disabled:c,name:"submit",onClick:u,"data-name":"submit-button"},null!=i?i:(0,l.t)("Ok"))))))}}}p.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>N});var r=n(59496),o=n(88537);var s=n(97754),a=n.n(s),i=n(68335),l=n(35749),c=n(81e3),u=n(1109),d=n(24437),p=n(90692),m=n(95711),h=n(52092),v=n(76422),f=n(9745);const C=r.createContext({setHideClose:()=>{}});var g=n(37257),w=n(91441);function b(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:s,renderBefore:i,renderAfter:l,draggable:c,className:u,unsetAlign:d}=e,[p,m]=(0,r.useState)(!1);return r.createElement(C.Provider,{value:{setHideClose:m}},r.createElement("div",{className:a()(w.container,u,(n||d)&&w.unsetAlign)},i,r.createElement("div",{"data-dragg-area":c,className:w.title},r.createElement("div",{className:w.ellipsis},t),n&&r.createElement("div",{className:a()(w.ellipsis,w.subtitle)},n)),l,o&&!p&&r.createElement(f.Icon,{className:w.close,icon:g,onClick:s,"data-name":"close","data-role":"button"})))}var E=n(67179);const _={vertical:20},k={vertical:0};class N extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,i.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,l.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t
|
||||
;v.subscribe(h.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(h.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:s,dataName:i,onClickOutside:l,additionalElementPos:h,additionalHeaderElement:v,backdrop:f,shouldForceFocus:C=!0,showSeparator:g,subtitle:w,draggable:N=!0,fullScreen:y=!1,showCloseIcon:O=!0,rounded:x=!0,isAnimationEnabled:A,growPoint:K,dialogTooltip:D,unsetHeaderAlign:j,onDragStart:S,dataDialogName:z}=this.props,B="after"!==h?v:void 0,Y="after"===h?v:void 0,P="string"==typeof s?s:z||"";return r.createElement(p.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},h=>r.createElement(p.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||y)&&x,className:a()(E.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:d||y,guard:h?k:_,boundByScreen:d||y,shouldForceFocus:C,backdrop:f,draggable:N,isAnimationEnabled:A,growPoint:K,name:this.props.dataName,dialogTooltip:D,onDragStart:S},r.createElement("div",{className:a()(E.wrapper,t),"data-name":i,"data-dialog-name":P},void 0!==s&&r.createElement(b,{draggable:N&&!(d||y),onClose:this._handleClose,renderAfter:Y,renderBefore:B,subtitle:w,title:s,showCloseIcon:O,className:n,unsetAlign:j}),g&&r.createElement(u.Separator,{className:E.separator}),r.createElement(m.PopupContext.Consumer,null,e=>this._renderChildren(e,d||y))))))}}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>a});var r=n(59496),o=n(97754),s=n(91626);function a(e){return r.createElement("div",{className:o(s.separator,e.className)})}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(58095);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(59496),o=n(65718);function s(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:r.createElement(o.Portal,null,s)}}}},37257:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="currentColor"><path d="m.58 1.42.82-.82 15 15-.82.82z"/><path d="m.58 15.58 15-15 .82.82-15 15z"/></svg>'}}]);
|
||||
@@ -1 +0,0 @@
|
||||
.orderInputs-xDWk5IzT{padding:0 37px}@media screen and (max-width:479px){.orderInputs-xDWk5IzT{padding:0 12px}}.container-xDWk5IzT{display:flex;flex-wrap:wrap}.inputContainer-xDWk5IzT{align-items:flex-start;display:flex;flex:1 45%;flex-direction:column;font-size:16px;justify-content:flex-start;margin-bottom:21px;margin-left:5px;margin-right:5px;position:relative}@media screen and (max-width:479px){.inputContainer-xDWk5IzT{flex-basis:100%}}.errors-xDWk5IzT{background-color:#2a2c39;border-radius:3px;bottom:100%;color:#fff;font-size:12px;margin-bottom:1px;max-width:100%;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;right:0;transform:scale(.85) translateY(3px);transition:opacity .35s cubic-bezier(.215,.61,.355,1),transform .35s cubic-bezier(.215,.61,.355,1)}.titleText-xDWk5IzT{color:#131722;font-size:24px;font-weight:700;margin:0 0 17px}html.theme-dark .titleText-xDWk5IzT{color:#d1d4dc}@media screen and (max-width:479px){.titleText-xDWk5IzT{padding:0 8px}}.orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#131722;box-shadow:inset 0 0 0 30px #fff}html.theme-dark .orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#d1d4dc;box-shadow:inset 0 0 0 30px #131722}.zip-bAIksqmB{direction:ltr}
|
||||
@@ -1 +0,0 @@
|
||||
.orderInputs-xDWk5IzT{padding:0 37px}@media screen and (max-width:479px){.orderInputs-xDWk5IzT{padding:0 12px}}.container-xDWk5IzT{display:flex;flex-wrap:wrap}.inputContainer-xDWk5IzT{align-items:flex-start;display:flex;flex:1 45%;flex-direction:column;font-size:16px;justify-content:flex-start;margin-bottom:21px;margin-left:5px;margin-right:5px;position:relative}@media screen and (max-width:479px){.inputContainer-xDWk5IzT{flex-basis:100%}}.errors-xDWk5IzT{background-color:#2a2c39;border-radius:3px;bottom:100%;color:#fff;font-size:12px;left:0;margin-bottom:1px;max-width:100%;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;transform:scale(.85) translateY(3px);transition:opacity .35s cubic-bezier(.215,.61,.355,1),transform .35s cubic-bezier(.215,.61,.355,1)}.titleText-xDWk5IzT{color:#131722;font-size:24px;font-weight:700;margin:0 0 17px}html.theme-dark .titleText-xDWk5IzT{color:#d1d4dc}@media screen and (max-width:479px){.titleText-xDWk5IzT{padding:0 8px}}.orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#131722;box-shadow:inset 0 0 0 30px #fff}html.theme-dark .orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#d1d4dc;box-shadow:inset 0 0 0 30px #131722}.zip-bAIksqmB{direction:ltr}
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M42.2 16.14C14.16 31.2.94 56.12 12.67 71.81c11.74 15.7 43.98 16.2 72.02 1.15 28.05-15.05 41.27-39.98 29.53-55.67C102.5 1.6 70.25 1.1 42.2 16.14zm-18.1 95.81c8.1-.43 13.66-5.4 12.45-11.12-1.22-5.7-8.76-10-16.85-9.57-8.1.43-13.66 5.4-12.44 11.12 1.21 5.7 8.76 10 16.84 9.57z" fill="#2A2E39"/><path d="M26 16.74v90a4 4 0 0 0 4 4h66a4 4 0 0 0 4-4v-73l-18-21H30a4 4 0 0 0-4 4z" fill="#1E222D"/><path d="M82 12.74H30a4 4 0 0 0-4 4v90a4 4 0 0 0 4 4h66a4 4 0 0 0 4-4v-73m-18-21l18 21m-18-21v17a4 4 0 0 0 4 4h14" stroke="#B2B5BE" stroke-width="2"/><path d="M82 67.24a2.5 2.5 0 0 1 5 0v21a2.5 2.5 0 0 1-5 0v-21zm-6.5 3.5a2.5 2.5 0 0 0-2.5 2.5v15a2.5 2.5 0 0 0 5 0v-15a2.5 2.5 0 0 0-2.5-2.5zM65 78.24a2.5 2.5 0 0 1 5 0v10a2.5 2.5 0 0 1-5 0v-10zm-6.5-.5a2.5 2.5 0 0 0-2.5 2.5v8a2.5 2.5 0 0 0 5 0v-8a2.5 2.5 0 0 0-2.5-2.5zm-18 3a2.5 2.5 0 0 0-2.5 2.5v5a2.5 2.5 0 0 0 5 0v-5a2.5 2.5 0 0 0-2.5-2.5zm9-8a2.5 2.5 0 0 0-2.5 2.5v13a2.5 2.5 0 0 0 5 0v-13a2.5 2.5 0 0 0-2.5-2.5z" fill="#1848CC"/><path d="M38.4 52.87c1.84-2.4 3.68-5.9 7.81-5.99 6 0 15.5 16.3 23.2 16.63 6.07 0 11.3-13.28 17-14.6" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/><path d="M38.92 59.86c1.85-2.4 3.93-5.84 8.07-5.93 5.18-.1 7 8.93 14.95 8.93 10.76 0 16.69-20.93 24.83-20.93" stroke="#B2B5BE" stroke-width="2" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1 +0,0 @@
|
||||
.tv-start-free-trial-bt-8jVavR5U{background:#fff;border-radius:6px;min-height:500px;padding:40px 0}html.theme-dark .tv-start-free-trial-bt-8jVavR5U{background:#131722}.tv-start-free-trial-bt__section-8jVavR5U{padding:0}.tv-start-free-trial-bt__title-8jVavR5U{border-bottom:none;color:#131722;font-size:36px;line-height:44px;margin-bottom:20px;padding:0 40px}html.theme-dark .tv-start-free-trial-bt__title-8jVavR5U{color:#d1d4dc}@media screen and (max-width:479px){.tv-start-free-trial-bt__title-8jVavR5U{padding:0 20px}}.tv-start-free-trial-bt__card-container-8jVavR5U{padding:0 40px}.tv-start-free-trial-bt__footer-container-8jVavR5U{margin-bottom:20px;padding:0}.paymentMethodSpinnerContainer-8jVavR5U{margin:0 -20px}
|
||||
@@ -1 +0,0 @@
|
||||
.tv-start-free-trial-bt-8jVavR5U{background:#fff;border-radius:6px;min-height:500px;padding:40px 0}html.theme-dark .tv-start-free-trial-bt-8jVavR5U{background:#131722}.tv-start-free-trial-bt__section-8jVavR5U{padding:0}.tv-start-free-trial-bt__title-8jVavR5U{border-bottom:none;color:#131722;font-size:36px;line-height:44px;margin-bottom:20px;padding:0 40px}html.theme-dark .tv-start-free-trial-bt__title-8jVavR5U{color:#d1d4dc}@media screen and (max-width:479px){.tv-start-free-trial-bt__title-8jVavR5U{padding:0 20px}}.tv-start-free-trial-bt__card-container-8jVavR5U{padding:0 40px}.tv-start-free-trial-bt__footer-container-8jVavR5U{margin-bottom:20px;padding:0}.paymentMethodSpinnerContainer-8jVavR5U{margin:0 -20px}
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M43.86 85.7C14.76 75.14-3.76 52.67 2.47 35.5c6.23-17.18 34.86-22.55 63.95-12 29.09 10.55 47.61 33.03 41.38 50.2a20.03 20.03 0 0 1-2.44 4.7c9.04 4.04 14.7 9.62 13.54 14.16-1.53 6.02-14.5 7.91-28.94 4.23a56.33 56.33 0 0 1-14.41-5.73c-9.7.35-20.67-1.36-31.7-5.36z" fill="#F0F3FA"/><path d="M47 12a4 4 0 0 1 4-4h56a4 4 0 0 1 4 4v10.8a4 4 0 0 0 1.06 2.71l3.83 4.13a2 2 0 0 1-1.47 3.36H51a4 4 0 0 1-4-4V12z" fill="#2962FF"/><path d="M67 48a3 3 0 0 0-3-3H38a3 3 0 0 0-3 3v10.8a5 5 0 0 1-1.33 3.39l-3.83 4.13a1 1 0 0 0 .74 1.68H64a3 3 0 0 0 3-3V48zM94 84a3 3 0 0 0-3-3H38a3 3 0 0 0-3 3v10.8a5 5 0 0 1-1.33 3.39l-3.83 4.13a1 1 0 0 0 .74 1.68H91a3 3 0 0 0 3-3V84z" fill="#fff" stroke="#1E222D" stroke-width="2"/><circle cx="14.81" cy="92.36" r="11.45" fill="#fff" stroke="#1E222D" stroke-width="2"/><circle cx="14.81" cy="56.9" r="11.45" fill="#fff" stroke="#1E222D" stroke-width="2"/><path d="M12.22 53.4a3 3 0 0 1 5.2 0l1.71 3a3 3 0 0 1-2.6 4.5H13.1a3 3 0 0 1-2.6-4.5l1.73-3zM13.17 88.44a1.75 1.75 0 0 1 3.29 0 3.75 3.75 0 0 0 2.22 2.22 1.75 1.75 0 0 1 0 3.29 3.75 3.75 0 0 0-2.22 2.22 1.75 1.75 0 0 1-3.29 0 3.75 3.75 0 0 0-2.22-2.22 1.75 1.75 0 0 1 0-3.29 3.75 3.75 0 0 0 2.22-2.22z" fill="#fff" stroke="#1E222D" stroke-width="2"/><circle cx="31.52" cy="115.5" r="1.5" fill="#1E222D"/><circle cx="40.52" cy="115.5" r="1.5" fill="#1E222D"/><circle cx="49.52" cy="115.5" r="1.5" fill="#1E222D"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#ed5565" d="M0 9h18v9H0V9"/><path fill="#f5f7fa" d="M18-1V9H0V-1h18z"/><path fill="#4758a9" d="M9 9l-11.9 9V0L9 9z"/></svg>
|
||||
|
Before Width: | Height: | Size: 218 B |
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#F0F3FA" d="M0 0h18v18H0z"/></svg>
|
||||
|
Before Width: | Height: | Size: 141 B |
@@ -1 +0,0 @@
|
||||
.dialog-Nh5Cqdeo{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;min-width:280px;text-align:right}html.theme-dark .dialog-Nh5Cqdeo{background-color:#1e222d}.dialog-Nh5Cqdeo.rounded-Nh5Cqdeo{border-radius:6px}.dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0003}html.theme-dark .dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0006}.dialog-Nh5Cqdeo.fullscreen-Nh5Cqdeo{bottom:0;height:100%;left:0;max-height:100%;max-width:100%;min-height:100%;position:fixed;right:0;top:0;width:100%}.dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#fff}html.theme-dark .dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#131722}.backdrop-Nh5Cqdeo{background-color:#9598a1;bottom:0;left:0;opacity:.5;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-Nh5Cqdeo{background-color:#0c0e15}
|
||||
@@ -1,28 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2917],{32917:n=>{n.exports=function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=149)}([function(n,t,e){var r=e(55),o=e(14),a=e(61),i=e(5);n.exports=function(n,t){return(i(n)?r:o)(n,a(t))}},function(n,t,e){var r=e(124);n.exports=function(n,t,e){var o=null==n?void 0:r(n,t);return void 0===o?e:o}},function(n,t,e){var r=e(93),o=e(7),a=e(94),i=e(5);n.exports=function(n,t){return(i(n)?r:a)(n,o(t,3))}},function(n,t,e){var r=e(147),o=e(148);n.exports=function(n,t,e){var a=t&&e||0;"string"==typeof n&&(t="binary"===n?new Array(16):null,n=null);var i=(n=n||{}).random||(n.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[a+c]=i[c];return t||o(i)}},function(n,t){n.exports=function(n){return void 0===n}},function(n,t){var e=Array.isArray;n.exports=e},function(n,t){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},function(n,t,e){var r=e(64),o=e(85),a=e(91),i=e(5),c=e(92);n.exports=function(n){return"function"==typeof n?n:null==n?a:"object"==typeof n?i(n)?o(n[0],n[1]):r(n):c(n)}},function(n,t){var e=Array.isArray;n.exports=e},function(n,t,e){var r=e(68);n.exports=function(n,t){for(var e=n.length;e--;)if(r(n[e][0],t))return e;return-1}},function(n,t,e){var r=e(109);n.exports=function(n,t){for(var e=n.length;e--;)if(r(n[e][0],t))return e;return-1}},function(n,t,e){var r=e(25),o=e(5),a=e(28);n.exports=function(n){return"string"==typeof n||!o(n)&&a(n)&&"[object String]"==r(n)}},function(n,t){var e=Object.prototype.hasOwnProperty;n.exports=function(n,t){return null!=n&&e.call(n,t)}},function(n,t,e){var r=e(125),o=e(126),a=e(43),i=e(8),c=e(143);n.exports=function(n,t,e){var u=i(n)?r:o;return e&&c(n,t,e)&&(t=void 0),u(n,a(t,3))}},function(n,t,e){var r=e(23),o=e(58)(r);n.exports=o},function(n,t,e){var r=e(24)(Object.keys,Object);n.exports=r},function(n,t,e){var r=e(59),o=e(60);n.exports=function(n){return null!=n&&o(n.length)&&!r(n)}},function(n,t,e){var r=e(106),o=e(37);n.exports=function n(t,e,a,i,c){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:r(t,e,a,i,n,c))}},function(n,t){n.exports=function(n,t){return function(e){return n(t(e))}}},function(n,t,e){
|
||||
var r=e(32);n.exports=function(n){return"number"==typeof n&&n==r(n)}},function(n,t,e){var r=e(17);n.exports=function(n,t){return r(n,t)}},function(n,t){n.exports=function(n){for(var t=-1,e=null==n?0:n.length,r=0,o=[];++t<e;){var a=n[t];a&&(o[r++]=a)}return o}},function(n,t,e){var r=e(144),o=e(43),a=e(145),i=e(8);n.exports=function(n,t){return(i(n)?r:a)(n,o(t,3))}},function(n,t,e){var r=e(56),o=e(15);n.exports=function(n,t){return n&&r(n,t,o)}},function(n,t){n.exports=function(n,t){return function(e){return n(t(e))}}},function(n,t){var e=Object.prototype.toString;n.exports=function(n){return e.call(n)}},function(n,t,e){var r=e(66),o=e(67),a=e(69),i=e(70),c=e(71);function u(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=c,n.exports=u},function(n,t,e){var r=e(72),o=e(28);n.exports=function n(t,e,a,i,c){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:r(t,e,a,i,n,c))}},function(n,t){n.exports=function(n){return null!=n&&"object"==typeof n}},function(n,t,e){var r=e(6);n.exports=function(n){return n==n&&!r(n)}},function(n,t){n.exports=function(n,t){return function(e){return null!=e&&(e[n]===t&&(void 0!==t||n in Object(e)))}}},function(n,t){n.exports=function(){return!1}},function(n,t,e){var r=e(95);n.exports=function(n){var t=r(n),e=t%1;return t==t?e?t-e:t:0}},function(n,t){var e={utf8:{stringToBytes:function(n){return e.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(e.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var t=[],e=0;e<n.length;e++)t.push(255&n.charCodeAt(e));return t},bytesToString:function(n){for(var t=[],e=0;e<n.length;e++)t.push(String.fromCharCode(n[e]));return t.join("")}}};n.exports=e},function(n,t){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);n.exports=function(){return e(r),r}}else{var o=new Array(16);n.exports=function(){for(var n,t=0;t<16;t++)0==(3&t)&&(n=4294967296*Math.random()),o[t]=n>>>((3&t)<<3)&255;return o}}},function(n,t){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);n.exports=function(n,t){var r=t||0,o=e;return[o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]]].join("")}},function(n,t,e){var r=e(107),o=e(108),a=e(110),i=e(111),c=e(112);function u(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=c,n.exports=u},function(n,t){n.exports=function(n){return null!=n&&"object"==typeof n}},function(n,t,e){var r=e(127),o=e(130)(r);n.exports=o},function(n,t,e){var r=e(18)(Object.keys,Object);n.exports=r
|
||||
},function(n,t,e){var r=e(131),o=e(132);n.exports=function(n){return null!=n&&o(n.length)&&!r(n)}},function(n,t){var e=Object.prototype.toString;n.exports=function(n){return e.call(n)}},function(n,t){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},function(n,t,e){var r=e(133),o=e(136),a=e(141),i=e(8),c=e(142);n.exports=function(n){return"function"==typeof n?n:null==n?a:"object"==typeof n?i(n)?o(n[0],n[1]):r(n):c(n)}},function(n,t,e){var r=e(42);n.exports=function(n){return n==n&&!r(n)}},function(n,t){n.exports=function(n,t){return function(e){return null!=e&&(e[n]===t&&(void 0!==t||n in Object(e)))}}},function(n,t,e){var r=e(62),o=e(63),a=e(7),i=e(5);n.exports=function(n,t){return(i(n)?r:o)(n,a(t,3))}},function(n,t,e){var r;(r=function(){"use strict";var n=function(n){var t=-n.getTimezoneOffset();return null!==t?t:0},t=function(n,t,e){var r=new Date;return void 0!==n&&r.setFullYear(n),r.setMonth(t),r.setDate(e),r},e=function(e){return n(t(e,0,2))},o=function(e){return n(t(e,5,2))};return{determine:function(){var n,t,a,i=(n=e(),t=o(),(a=n-t)<0?n+",1":a>0?t+",1,s":n+",0");return new r.TimeZone(r.olson.timezones[i])},date_is_dst:function(t){var r=t.getMonth()>7,a=r?o(t.getFullYear()):e(t.getFullYear()),i=a-n(t);return a<0||r?0!==i:i<0},dst_start_for:function(n){var t=new Date(2010,6,15,1,0,0,0);return{"America/Denver":new Date(2011,2,13,3,0,0,0),"America/Mazatlan":new Date(2011,3,3,3,0,0,0),"America/Chicago":new Date(2011,2,13,3,0,0,0),"America/Mexico_City":new Date(2011,3,3,3,0,0,0),"America/Asuncion":new Date(2012,9,7,3,0,0,0),"America/Santiago":new Date(2012,9,3,3,0,0,0),"America/Campo_Grande":new Date(2012,9,21,5,0,0,0),"America/Montevideo":new Date(2011,9,2,3,0,0,0),"America/Sao_Paulo":new Date(2011,9,16,5,0,0,0),"America/Los_Angeles":new Date(2011,2,13,8,0,0,0),"America/Santa_Isabel":new Date(2011,3,5,8,0,0,0),"America/Havana":new Date(2012,2,10,2,0,0,0),"America/New_York":new Date(2012,2,10,7,0,0,0),"Europe/Helsinki":new Date(2013,2,31,5,0,0,0),"Pacific/Auckland":new Date(2011,8,26,7,0,0,0),"America/Halifax":new Date(2011,2,13,6,0,0,0),"America/Goose_Bay":new Date(2011,2,13,2,1,0,0),"America/Miquelon":new Date(2011,2,13,5,0,0,0),"America/Godthab":new Date(2011,2,27,1,0,0,0),"Europe/Moscow":t,"Asia/Amman":new Date(2013,2,29,1,0,0,0),"Asia/Beirut":new Date(2013,2,31,2,0,0,0),"Asia/Damascus":new Date(2013,3,6,2,0,0,0),"Asia/Jerusalem":new Date(2013,2,29,5,0,0,0),"Asia/Yekaterinburg":t,"Asia/Omsk":t,"Asia/Krasnoyarsk":t,"Asia/Irkutsk":t,"Asia/Yakutsk":t,"Asia/Vladivostok":t,"Asia/Baku":new Date(2013,2,31,4,0,0),"Asia/Yerevan":new Date(2013,2,31,3,0,0),"Asia/Kamchatka":t,"Asia/Gaza":new Date(2010,2,27,4,0,0),"Africa/Cairo":new Date(2010,4,1,3,0,0),"Europe/Minsk":t,"Pacific/Apia":new Date(2010,10,1,1,0,0,0),"Pacific/Fiji":new Date(2010,11,1,0,0,0),"Australia/Perth":new Date(2008,10,1,1,0,0,0)}[n]}}}()).TimeZone=function(n){"use strict";var t={"America/Denver":["America/Denver","America/Mazatlan"],"America/Chicago":["America/Chicago","America/Mexico_City"],
|
||||
"America/Santiago":["America/Santiago","America/Asuncion","America/Campo_Grande"],"America/Montevideo":["America/Montevideo","America/Sao_Paulo"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Asia/Beirut","Europe/Helsinki","Asia/Damascus"],"Pacific/Auckland":["Pacific/Auckland","Pacific/Fiji"],"America/Los_Angeles":["America/Los_Angeles","America/Santa_Isabel"],"America/New_York":["America/Havana","America/New_York"],"America/Halifax":["America/Goose_Bay","America/Halifax"],"America/Godthab":["America/Miquelon","America/Godthab"],"Asia/Dubai":["Europe/Moscow"],"Asia/Dhaka":["Asia/Yekaterinburg"],"Asia/Jakarta":["Asia/Omsk"],"Asia/Shanghai":["Asia/Krasnoyarsk","Australia/Perth"],"Asia/Tokyo":["Asia/Irkutsk"],"Australia/Brisbane":["Asia/Yakutsk"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Tarawa":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk"],"Asia/Baku":["Asia/Yerevan","Asia/Baku"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]},e=n;return void 0!==t[e]&&function(){for(var n=t[e],o=n.length,a=0,i=n[0];a<o;a+=1)if(i=n[a],r.date_is_dst(r.dst_start_for(i)))return void(e=i)}(),{name:function(){return e}}},r.olson={},r.olson.timezones={"-720,0":"Pacific/Majuro","-660,0":"Pacific/Pago_Pago","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Santiago","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Tarawa","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"
|
||||
},t.jstz=r},function(n,t,e){var r,o,a,i;r=e(97),o=e(33).utf8,a=e(33).bin,(i=function(n,t){var e=r.wordsToBytes(function(n){n.constructor==String&&(n=o.stringToBytes(n));var t=r.bytesToWords(n),e=8*n.length,a=[],i=1732584193,c=-271733879,u=-1732584194,s=271733878,f=-1009589776;t[e>>5]|=128<<24-e%32,t[15+(e+64>>>9<<4)]=e;for(var l=0;l<t.length;l+=16){for(var p=i,d=c,m=u,v=s,g=f,h=0;h<80;h++){if(h<16)a[h]=t[l+h];else{var y=a[h-3]^a[h-8]^a[h-14]^a[h-16];a[h]=y<<1|y>>>31}var w=(i<<5|i>>>27)+f+(a[h]>>>0)+(h<20?1518500249+(c&u|~c&s):h<40?1859775393+(c^u^s):h<60?(c&u|c&s|u&s)-1894007588:(c^u^s)-899497514);f=s,s=u,u=c<<30|c>>>2,c=i,i=w}i+=p,c+=d,u+=m,s+=v,f+=g}return[i,c,u,s,f]}(n));return t&&t.asBytes?e:t&&t.asString?a.bytesToString(e):r.bytesToHex(e)})._blocksize=16,i._digestsize=20,n.exports=i},function(n,t,e){var r=e(98)(e(99));n.exports=r},function(n,t,e){var r=e(101),o=e(23),a=e(7);n.exports=function(n,t){var e={};return t=a(t,3),o(n,(function(n,o,a){r(e,o,t(n,o,a))})),e}},function(n,t,e){var r=e(104),o=e(105),a=o;a.v1=r,a.v4=o,n.exports=a},function(n,t,e){var r=e(41),o=e(146),a=e(37),i=Function.prototype,c=Object.prototype,u=i.toString,s=c.hasOwnProperty,f=u.call(Object);n.exports=function(n){if(!a(n)||"[object Object]"!=r(n))return!1;var t=o(n);if(null===t)return!0;var e=s.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&u.call(e)==f}},function(n){n.exports=JSON.parse('{"a":"2.17.3"}')},function(n,t,e){},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e<r&&!1!==t(n[e],e,n););return n}},function(n,t,e){var r=e(57)();n.exports=r},function(n,t){n.exports=function(n){return function(t,e,r){for(var o=-1,a=Object(t),i=r(t),c=i.length;c--;){var u=i[n?c:++o];if(!1===e(a[u],u,a))break}return t}}},function(n,t,e){var r=e(16);n.exports=function(n,t){return function(e,o){if(null==e)return e;if(!r(e))return n(e,o);for(var a=e.length,i=t?a:-1,c=Object(e);(t?i--:++i<a)&&!1!==o(c[i],i,c););return e}}},function(n,t,e){var r=e(25),o=e(6);n.exports=function(n){if(!o(n))return!1;var t=r(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(n,t){n.exports=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}},function(n,t){n.exports=function(n){return n}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,o=0,a=[];++e<r;){var i=n[e];t(i,e,n)&&(a[o++]=i)}return a}},function(n,t,e){var r=e(14);n.exports=function(n,t){var e=[];return r(n,(function(n,r,o){t(n,r,o)&&e.push(n)})),e}},function(n,t,e){var r=e(65),o=e(84),a=e(30);n.exports=function(n){var t=o(n);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(e){return e===n||r(e,n,t)}}},function(n,t,e){var r=e(26),o=e(27);n.exports=function(n,t,e,a){var i=e.length,c=i,u=!a;if(null==n)return!c;for(n=Object(n);i--;){var s=e[i];if(u&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<c;){var f=(s=e[i])[0],l=n[f],p=s[1];if(u&&s[2]){if(void 0===l&&!(f in n))return!1}else{var d=new r;if(a)var m=a(l,p,f,n,t,d)
|
||||
;if(!(void 0===m?o(p,l,3,a,d):m))return!1}}return!0}},function(n,t){n.exports=function(){this.__data__=[],this.size=0}},function(n,t,e){var r=e(9),o=Array.prototype.splice;n.exports=function(n){var t=this.__data__,e=r(t,n);return!(e<0)&&(e==t.length-1?t.pop():o.call(t,e,1),--this.size,!0)}},function(n,t){n.exports=function(n,t){return n===t||n!=n&&t!=t}},function(n,t,e){var r=e(9);n.exports=function(n){var t=this.__data__,e=r(t,n);return e<0?void 0:t[e][1]}},function(n,t,e){var r=e(9);n.exports=function(n){return r(this.__data__,n)>-1}},function(n,t,e){var r=e(9);n.exports=function(n,t){var e=this.__data__,o=r(e,n);return o<0?(++this.size,e.push([n,t])):e[o][1]=t,this}},function(n,t,e){var r=e(26),o=e(73),a=e(78),i=e(79),c=e(81),u=e(5),s=e(82),f=e(83),l="[object Object]",p=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,d,m,v){var g=u(n),h=u(t),y=g?"[object Array]":c(n),w=h?"[object Array]":c(t),b=(y="[object Arguments]"==y?l:y)==l,k=(w="[object Arguments]"==w?l:w)==l,A=y==w;if(A&&s(n)){if(!s(t))return!1;g=!0,b=!1}if(A&&!b)return v||(v=new r),g||f(n)?o(n,t,e,d,m,v):a(n,t,y,e,d,m,v);if(!(1&e)){var x=b&&p.call(n,"__wrapped__"),_=k&&p.call(t,"__wrapped__");if(x||_){var S=x?n.value():n,O=_?t.value():t;return v||(v=new r),m(S,O,e,d,v)}}return!!A&&(v||(v=new r),i(n,t,e,d,m,v))}},function(n,t,e){var r=e(74),o=e(75),a=e(76);n.exports=function(n,t,e,i,c,u){var s=1&e,f=n.length,l=t.length;if(f!=l&&!(s&&l>f))return!1;var p=u.get(n),d=u.get(t);if(p&&d)return p==t&&d==n;var m=-1,v=!0,g=2&e?new r:void 0;for(u.set(n,t),u.set(t,n);++m<f;){var h=n[m],y=t[m];if(i)var w=s?i(y,h,m,t,n,u):i(h,y,m,n,t,u);if(void 0!==w){if(w)continue;v=!1;break}if(g){if(!o(t,(function(n,t){if(!a(g,t)&&(h===n||c(h,n,e,i,u)))return g.push(t)}))){v=!1;break}}else if(h!==y&&!c(h,y,e,i,u)){v=!1;break}}return u.delete(n),u.delete(t),v}},function(n,t,e){var r=e(5);n.exports=function(){if(!arguments.length)return[];var n=arguments[0];return r(n)?n:[n]}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e<r;)if(t(n[e],e,n))return!0;return!1}},function(n,t,e){var r=e(77);n.exports=function(n,t){return!!(null==n?0:n.length)&&r(n,t,0)>-1}},function(n,t){n.exports=function(n,t,e){for(var r=e-1,o=n.length;++r<o;)if(n[r]===t)return r;return-1}},function(n,t){n.exports=function(n,t){return n===t||n!=n&&t!=t}},function(n,t,e){var r=e(80),o=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,a,i,c){var u=1&e,s=r(n),f=s.length;if(f!=r(t).length&&!u)return!1;for(var l=f;l--;){var p=s[l];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(n),m=c.get(t);if(d&&m)return d==t&&m==n;var v=!0;c.set(n,t),c.set(t,n);for(var g=u;++l<f;){var h=n[p=s[l]],y=t[p];if(a)var w=u?a(y,h,p,t,n,c):a(h,y,p,n,t,c);if(!(void 0===w?h===y||i(h,y,e,a,c):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var b=n.constructor,k=t.constructor;b==k||!("constructor"in n)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k||(v=!1)}return c.delete(n),c.delete(t),v}},function(n,t,e){var r=e(24)(Object.keys,Object);n.exports=r
|
||||
},function(n,t){var e=Object.prototype.toString;n.exports=function(n){return e.call(n)}},function(n,t){n.exports=function(){return!1}},function(n,t){n.exports=function(){return!1}},function(n,t,e){var r=e(29),o=e(15);n.exports=function(n){for(var t=o(n),e=t.length;e--;){var a=t[e],i=n[a];t[e]=[a,i,r(i)]}return t}},function(n,t,e){var r=e(27),o=e(86),a=e(88),i=e(89),c=e(29),u=e(30),s=e(90);n.exports=function(n,t){return i(n)&&c(t)?u(s(n),t):function(e){var i=o(e,n);return void 0===i&&i===t?a(e,n):r(t,i,3)}}},function(n,t,e){var r=e(87);n.exports=function(n,t,e){var o=null==n?void 0:r(n,t);return void 0===o?e:o}},function(n,t){n.exports=function(n,t){return null==n?void 0:n[t]}},function(n,t){n.exports=function(n,t){return null!=n&&t in Object(n)}},function(n,t){n.exports=function(n){return n}},function(n,t,e){var r=e(31);n.exports=function(n){if("string"==typeof n||r(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}},function(n,t){n.exports=function(n){return n}},function(n,t){n.exports=function(n){return function(t){return null==t?void 0:t[n]}}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,o=Array(r);++e<r;)o[e]=t(n[e],e,n);return o}},function(n,t,e){var r=e(14),o=e(16);n.exports=function(n,t){var e=-1,a=o(n)?Array(n.length):[];return r(n,(function(n,r,o){a[++e]=t(n,r,o)})),a}},function(n,t,e){var r=e(96);n.exports=function(n){return n?(n=r(n))===1/0||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}},function(n,t,e){var r=e(6),o=e(31),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(o(n))return NaN;if(r(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=r(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(a,"");var e=c.test(n);return e||u.test(n)?s(n.slice(2),e?2:8):i.test(n)?NaN:+n}},function(n,t){var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,t){return n<<t|n>>>32-t},rotr:function(n,t){return n<<32-t|n>>>t},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var t=0;t<n.length;t++)n[t]=r.endian(n[t]);return n},randomBytes:function(n){for(var t=[];n>0;n--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(n){for(var t=[],e=0,r=0;e<n.length;e++,r+=8)t[r>>>5]|=n[e]<<24-r%32;return t},wordsToBytes:function(n){for(var t=[],e=0;e<32*n.length;e+=8)t.push(n[e>>>5]>>>24-e%32&255);return t},bytesToHex:function(n){for(var t=[],e=0;e<n.length;e++)t.push((n[e]>>>4).toString(16)),t.push((15&n[e]).toString(16));return t.join("")},hexToBytes:function(n){for(var t=[],e=0;e<n.length;e+=2)t.push(parseInt(n.substr(e,2),16));return t},bytesToBase64:function(n){for(var t=[],r=0;r<n.length;r+=3)for(var o=n[r]<<16|n[r+1]<<8|n[r+2],a=0;a<4;a++)8*r+6*a<=8*n.length?t.push(e.charAt(o>>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"")
|
||||
;for(var t=[],r=0,o=0;r<n.length;o=++r%4)0!=o&&t.push((e.indexOf(n.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(n.charAt(r))>>>6-2*o);return t}},n.exports=r},function(n,t,e){var r=e(7),o=e(16),a=e(15);n.exports=function(n){return function(t,e,i){var c=Object(t);if(!o(t)){var u=r(e,3);t=a(t),e=function(n){return u(c[n],n,c)}}var s=n(t,e,i);return s>-1?c[u?t[s]:s]:void 0}}},function(n,t,e){var r=e(100),o=e(7),a=e(32),i=Math.max;n.exports=function(n,t,e){var c=null==n?0:n.length;if(!c)return-1;var u=null==e?0:a(e);return u<0&&(u=i(c+u,0)),r(n,o(t,3),u)}},function(n,t){n.exports=function(n,t,e,r){for(var o=n.length,a=e+(r?1:-1);r?a--:++a<o;)if(t(n[a],a,n))return a;return-1}},function(n,t,e){var r=e(102);n.exports=function(n,t,e){"__proto__"==t&&r?r(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}},function(n,t,e){var r=e(103),o=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch(n){}}();n.exports=o},function(n,t){n.exports=function(n,t){return null==n?void 0:n[t]}},function(n,t,e){var r,o,a=e(34),i=e(35),c=0,u=0;n.exports=function(n,t,e){var s=t&&e||0,f=t||[],l=(n=n||{}).node||r,p=void 0!==n.clockseq?n.clockseq:o;if(null==l||null==p){var d=a();null==l&&(l=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==p&&(p=o=16383&(d[6]<<8|d[7]))}var m=void 0!==n.msecs?n.msecs:(new Date).getTime(),v=void 0!==n.nsecs?n.nsecs:u+1,g=m-c+(v-u)/1e4;if(g<0&&void 0===n.clockseq&&(p=p+1&16383),(g<0||m>c)&&void 0===n.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m,u=v,o=p;var h=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;f[s++]=h>>>24&255,f[s++]=h>>>16&255,f[s++]=h>>>8&255,f[s++]=255&h;var y=m/4294967296*1e4&268435455;f[s++]=y>>>8&255,f[s++]=255&y,f[s++]=y>>>24&15|16,f[s++]=y>>>16&255,f[s++]=p>>>8|128,f[s++]=255&p;for(var w=0;w<6;++w)f[s+w]=l[w];return t||i(f)}},function(n,t,e){var r=e(34),o=e(35);n.exports=function(n,t,e){var a=t&&e||0;"string"==typeof n&&(t="binary"===n?new Array(16):null,n=null);var i=(n=n||{}).random||(n.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[a+c]=i[c];return t||o(i)}},function(n,t,e){var r=e(36),o=e(113),a=e(118),i=e(119),c=e(121),u=e(8),s=e(122),f=e(123),l="[object Object]",p=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,d,m,v){var g=u(n),h=u(t),y=g?"[object Array]":c(n),w=h?"[object Array]":c(t),b=(y="[object Arguments]"==y?l:y)==l,k=(w="[object Arguments]"==w?l:w)==l,A=y==w;if(A&&s(n)){if(!s(t))return!1;g=!0,b=!1}if(A&&!b)return v||(v=new r),g||f(n)?o(n,t,e,d,m,v):a(n,t,y,e,d,m,v);if(!(1&e)){var x=b&&p.call(n,"__wrapped__"),_=k&&p.call(t,"__wrapped__");if(x||_){var S=x?n.value():n,O=_?t.value():t;return v||(v=new r),m(S,O,e,d,v)}}return!!A&&(v||(v=new r),i(n,t,e,d,m,v))}},function(n,t){n.exports=function(){this.__data__=[],this.size=0}},function(n,t,e){var r=e(10),o=Array.prototype.splice;n.exports=function(n){var t=this.__data__,e=r(t,n);return!(e<0)&&(e==t.length-1?t.pop():o.call(t,e,1),--this.size,!0)}},function(n,t){n.exports=function(n,t){return n===t||n!=n&&t!=t}},function(n,t,e){
|
||||
var r=e(10);n.exports=function(n){var t=this.__data__,e=r(t,n);return e<0?void 0:t[e][1]}},function(n,t,e){var r=e(10);n.exports=function(n){return r(this.__data__,n)>-1}},function(n,t,e){var r=e(10);n.exports=function(n,t){var e=this.__data__,o=r(e,n);return o<0?(++this.size,e.push([n,t])):e[o][1]=t,this}},function(n,t,e){var r=e(114),o=e(115),a=e(116);n.exports=function(n,t,e,i,c,u){var s=1&e,f=n.length,l=t.length;if(f!=l&&!(s&&l>f))return!1;var p=u.get(n),d=u.get(t);if(p&&d)return p==t&&d==n;var m=-1,v=!0,g=2&e?new r:void 0;for(u.set(n,t),u.set(t,n);++m<f;){var h=n[m],y=t[m];if(i)var w=s?i(y,h,m,t,n,u):i(h,y,m,n,t,u);if(void 0!==w){if(w)continue;v=!1;break}if(g){if(!o(t,(function(n,t){if(!a(g,t)&&(h===n||c(h,n,e,i,u)))return g.push(t)}))){v=!1;break}}else if(h!==y&&!c(h,y,e,i,u)){v=!1;break}}return u.delete(n),u.delete(t),v}},function(n,t,e){var r=e(8);n.exports=function(){if(!arguments.length)return[];var n=arguments[0];return r(n)?n:[n]}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e<r;)if(t(n[e],e,n))return!0;return!1}},function(n,t,e){var r=e(117);n.exports=function(n,t){return!!(null==n?0:n.length)&&r(n,t,0)>-1}},function(n,t){n.exports=function(n,t,e){for(var r=e-1,o=n.length;++r<o;)if(n[r]===t)return r;return-1}},function(n,t){n.exports=function(n,t){return n===t||n!=n&&t!=t}},function(n,t,e){var r=e(120),o=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,a,i,c){var u=1&e,s=r(n),f=s.length;if(f!=r(t).length&&!u)return!1;for(var l=f;l--;){var p=s[l];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(n),m=c.get(t);if(d&&m)return d==t&&m==n;var v=!0;c.set(n,t),c.set(t,n);for(var g=u;++l<f;){var h=n[p=s[l]],y=t[p];if(a)var w=u?a(y,h,p,t,n,c):a(h,y,p,n,t,c);if(!(void 0===w?h===y||i(h,y,e,a,c):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var b=n.constructor,k=t.constructor;b==k||!("constructor"in n)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k||(v=!1)}return c.delete(n),c.delete(t),v}},function(n,t,e){var r=e(18)(Object.keys,Object);n.exports=r},function(n,t){var e=Object.prototype.toString;n.exports=function(n){return e.call(n)}},function(n,t){n.exports=function(){return!1}},function(n,t){n.exports=function(){return!1}},function(n,t){n.exports=function(n,t){return null==n?void 0:n[t]}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e<r;)if(!t(n[e],e,n))return!1;return!0}},function(n,t,e){var r=e(38);n.exports=function(n,t){var e=!0;return r(n,(function(n,r,o){return e=!!t(n,r,o)})),e}},function(n,t,e){var r=e(128),o=e(39);n.exports=function(n,t){return n&&r(n,t,o)}},function(n,t,e){var r=e(129)();n.exports=r},function(n,t){n.exports=function(n){return function(t,e,r){for(var o=-1,a=Object(t),i=r(t),c=i.length;c--;){var u=i[n?c:++o];if(!1===e(a[u],u,a))break}return t}}},function(n,t,e){var r=e(40);n.exports=function(n,t){return function(e,o){if(null==e)return e;if(!r(e))return n(e,o);for(var a=e.length,i=t?a:-1,c=Object(e);(t?i--:++i<a)&&!1!==o(c[i],i,c););return e}}},function(n,t,e){
|
||||
var r=e(41),o=e(42);n.exports=function(n){if(!o(n))return!1;var t=r(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(n,t){n.exports=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}},function(n,t,e){var r=e(134),o=e(135),a=e(45);n.exports=function(n){var t=o(n);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(e){return e===n||r(e,n,t)}}},function(n,t,e){var r=e(36),o=e(17);n.exports=function(n,t,e,a){var i=e.length,c=i,u=!a;if(null==n)return!c;for(n=Object(n);i--;){var s=e[i];if(u&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<c;){var f=(s=e[i])[0],l=n[f],p=s[1];if(u&&s[2]){if(void 0===l&&!(f in n))return!1}else{var d=new r;if(a)var m=a(l,p,f,n,t,d);if(!(void 0===m?o(p,l,3,a,d):m))return!1}}return!0}},function(n,t,e){var r=e(44),o=e(39);n.exports=function(n){for(var t=o(n),e=t.length;e--;){var a=t[e],i=n[a];t[e]=[a,i,r(i)]}return t}},function(n,t,e){var r=e(17),o=e(1),a=e(137),i=e(138),c=e(44),u=e(45),s=e(139);n.exports=function(n,t){return i(n)&&c(t)?u(s(n),t):function(e){var i=o(e,n);return void 0===i&&i===t?a(e,n):r(t,i,3)}}},function(n,t){n.exports=function(n,t){return null!=n&&t in Object(n)}},function(n,t){n.exports=function(n){return n}},function(n,t,e){var r=e(140);n.exports=function(n){if("string"==typeof n||r(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}},function(n,t){n.exports=function(){return!1}},function(n,t){n.exports=function(n){return n}},function(n,t){n.exports=function(n){return function(t){return null==t?void 0:t[n]}}},function(n,t){n.exports=function(){return!1}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,o=Array(r);++e<r;)o[e]=t(n[e],e,n);return o}},function(n,t,e){var r=e(38),o=e(40);n.exports=function(n,t){var e=-1,a=o(n)?Array(n.length):[];return r(n,(function(n,r,o){a[++e]=t(n,r,o)})),a}},function(n,t,e){var r=e(18)(Object.getPrototypeOf,Object);n.exports=r},function(n,t){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);n.exports=function(){return e(r),r}}else{var o=new Array(16);n.exports=function(){for(var n,t=0;t<16;t++)0==(3&t)&&(n=4294967296*Math.random()),o[t]=n>>>((3&t)<<3)&255;return o}}},function(n,t){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);n.exports=function(n,t){var r=t||0,o=e;return[o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]]].join("")}},function(n,t,e){"use strict";e.r(t),e.d(t,"Snowplow",(function(){return ot})),e.d(t,"snowplowTracker",(function(){return it}));e(54);var r=e(0),o=e.n(r),a=e(46),i=e.n(a),c=e(11),u=e.n(c),s=e(4),f=e.n(s),l=e(6),p=e.n(l),d=e(2),m=e.n(d),v=window,g=document,h=window.localStorage,y=window.sessionStorage;function w(n){if(!u()(n)){n=n.text||""
|
||||
;var t=g.getElementsByTagName("title");t&&!f()(t[0])&&(n=t[0].text)}return n}function b(n){var t=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(n);return t?t[1]:n}function k(n){var t=n.length;return"."===n.charAt(--t)&&(n=n.slice(0,t)),"*."===n.slice(0,2)&&(n=n.slice(1)),n}function A(n){var t="",e=_("referrer",v.location.href)||_("referer",v.location.href);if(e)return e;if(n)return n;try{t=v.top.document.referrer}catch(n){if(v.parent)try{t=v.parent.document.referrer}catch(n){t=""}}return""===t&&(t=g.referrer),t}function x(n,t,e,r){return n.addEventListener?(n.addEventListener(t,e,r),!0):n.attachEvent?n.attachEvent("on"+t,e):void(n["on"+t]=e)}function _(n,t){var e=new RegExp("^[^#]*[?&]"+n+"=([^&#]*)").exec(t);return e?decodeURIComponent(e[1].replace(/\+/g," ")):null}function S(n){var t=Array.prototype.slice.call(arguments,1);return i()(m()(n,(function(n){if("function"!=typeof n)return n;try{return n.apply(null,t)}catch(n){}})))}function O(n){"undefined"!=typeof console&&console.warn("Snowplow: "+n)}function C(n){return n.className.match(/\S+/g)||[]}function j(n,t){if(Array.isArray(n)||!p()(n))return function(){return!0};if(n.hasOwnProperty("filter"))return n.filter;var e=n.hasOwnProperty("whitelist"),r=n.whitelist||n.blacklist;Array.isArray(r)||(r=[r]);for(var o={},a=0;a<r.length;a++)o[r[a]]=!0;return t?function(n){return function(n,t){var e,r=C(n);for(e=0;e<r.length;e++)if(t[r[e]])return!0;return!1}(n,o)===e}:function(n){return n.name in o===e}}function T(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:63072e3;try{var r=Date.now()+1e3*e;return h.setItem("".concat(n,".expires"),r),h.setItem(n,t),!0}catch(n){return!1}}function P(n){try{return h.removeItem(n),h.removeItem(n+".expires"),!0}catch(n){return!1}}function I(n,t){for(var e=0;e<t.length;e++)if(t[e]===n)return!0;return!1}function D(n,t,e,r){L(n,"",-1,"/",t,e,r)}function E(n){for(var t=g.cookie.split("; "),e=[],r=0;r<t.length;r++)t[r].substring(0,n.length)===n&&e.push(t[r]);return e}function L(n,t,e,r,o,a,i){return arguments.length>1?g.cookie=n+"="+encodeURIComponent(t)+(e?"; Expires="+new Date(+new Date+1e3*e).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(a?"; SameSite="+a:"")+(i?"; Secure":""):decodeURIComponent((("; "+g.cookie).split("; "+n+"=")[1]||"").split(";")[0])}function N(n){var t=parseInt(n);return isNaN(t)?void 0:t}function M(n){var t=parseFloat(n);return isNaN(t)?void 0:t}function U(n){return!(!n||"function"!=typeof n)}function B(n,t,e,r,o){var a={};function i(n){var t=[];if(n&&0!==n.length)for(var e=0;e<n.length;e++)a.hasOwnProperty(n[e])?t.push(a[n[e]]):O('Warning: Tracker namespace "'+n[e]+'" not configured');else t=m()(a);return 0===t.length&&O("Warning: No tracker configured"),t}function c(n,t,e){var r;O(n+" is deprecated. Set the collector when a new tracker instance using newTracker."),u(r=f()(e)?"sp":e),a[r][n](t)}function u(r,i,c){c=c||{},a.hasOwnProperty(r)?O("Tracker namespace "+r+" already exists."):(a[r]=new n(o,r,t,e,c),a[r].setCollectorUrl(i))}function s(n){var t=n.split(":")
|
||||
;return[t[0],t.length>1?t[1].split(";"):[]]}function l(){var n,t,e,r,o,f,l,p;for(n=0;n<arguments.length;n+=1){if(r=arguments[n],U(o=Array.prototype.shift.call(r)))try{o.apply(a,r)}catch(n){O("Custom callback error - ".concat(n))}finally{continue}if(e=(f=s(o))[0],l=f[1],"newTracker"!==e)if("setCollectorCf"!==e&&"setCollectorUrl"!==e||l&&0!==l.length)for(p=i(l),t=0;t<p.length;t++)p[t][e].apply(p[t],r);else c(e,r[0],r[1]);else u(r[0],r[1],r[2])}}for(var p=0;p<r.length;p++)l(r[p]);return{push:l}}var z=e(19),F=e.n(z);function R(n){var t,e;if(e=n,new RegExp("^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$").test(e))try{return t=document.body.children[0].children[0].children[0].children[0].children[0].children[0].innerHTML,"You have reached the cached page for","You have reached the cached page for"===t.slice(0,"You have reached the cached page for".length)}catch(n){return!1}}function V(n,t,e){var r;return"translate.googleusercontent.com"===n?(""===e&&(e=t),r=t,n=b(t=_("u",new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(r)[1]))):("cc.bingj.com"===n||"webcache.googleusercontent.com"===n||R(n))&&(n=b(t=document.links[0].href)),[n,t,e]}var H=e(47),G=window,q=navigator,Y=screen,J=document;function W(){var n="modernizr";if(!function(){try{return!!G.localStorage}catch(n){return!0}}())return!1;try{return G.localStorage.setItem(n,n),G.localStorage.removeItem(n),!0}catch(n){return!1}}function K(){var n,t,e={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"},r={};if(q.mimeTypes&&q.mimeTypes.length)for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t=q.mimeTypes[e[n]],r[n]=t&&t.enabledPlugin?"1":"0");return q.constructor===window.Navigator&&"unknown"!=typeof q.javaEnabled&&!f()(q.javaEnabled)&&q.javaEnabled()&&(r.java="1"),U(G.GearsFactory)&&(r.gears="1"),r.res=Y.width+"x"+Y.height,r.cd=Y.colorDepth,r.cookie=q.cookieEnabled?"1":"0",r}var X=e(48),$=e.n(X);function Q(n,t,e){var r,o,a,i,c,u;function s(t,r){for(var o,i,c,u,s,l;null!==(o=t.parentNode)&&!f()(o)&&"A"!==(i=t.tagName.toUpperCase())&&"AREA"!==i;)t=o;if(!f()(t.href)){var p=t.hostname||b(t.href),d=p.toLowerCase(),m=t.href.replace(p,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i").test(m)||(c=t.id,u=C(t),s=t.target,l=a?t.innerHTML:null,m=unescape(m),n.trackLinkClick(m,c,u,s,l,e(S(r,t))))}}function l(n){return function(t){var e,r;e=(t=t||window.event).which||t.button,r=t.target||t.srcElement,"click"===t.type?r&&s(r,n):"mousedown"===t.type?1!==e&&2!==e||!r?c=u=null:(c=e,u=r):"mouseup"===t.type&&(e===c&&r===u&&s(r,n),c=u=null)}}return{configureLinkClickTracking:function(n,t,e,c){a=e,i=c,o=t,r=j(n,!0)},addClickListeners:function(){var n,e,a=document.links
|
||||
;for(n=0;n<a.length;n++)r(a[n])&&!a[n][t]&&(e=a[n],o?(x(e,"mouseup",l(i),!1),x(e,"mousedown",l(i),!1)):x(e,"click",l(i),!1),a[n][t]=!0)}}}var Z=e(49),nn=e.n(Z);function tn(n,t,e){var r=["textarea","input","select"],a=t+"form",i=function(){return!0},c=function(){return!0},u=function(n){return n};function s(n){return n[nn()(["name","id","type","nodeName"],(function(t){return n[t]&&"string"==typeof n[t]}))]}function f(t,r){return function(o){var a=o.target,i=a.nodeName&&"INPUT"===a.nodeName.toUpperCase()?a.type:null,c="checkbox"!==a.type||a.checked?u(a.value,a):null;("change_form"===t||"checkbox"!==i&&"radio"!==i)&&n.trackFormFocusOrChange(t,function(n){for(;n&&n.nodeName&&"HTML"!==n.nodeName.toUpperCase()&&"FORM"!==n.nodeName.toUpperCase();)n=n.parentNode;if(n&&n.nodeName&&"FORM"===n.nodeName.toUpperCase())return s(n)}(a),s(a),a.nodeName,i,C(a),c,e(S(r,a,i,c)))}}function l(t){return function(i){var c=i.target,f=function(n){var t=[];return o()(r,(function(e){var r=Array.prototype.filter.call(n.getElementsByTagName(e),(function(n){return n.hasOwnProperty(a)}));o()(r,(function(n){if("submit"!==n.type){var e={name:s(n),value:n.value,nodeName:n.nodeName};n.type&&"INPUT"===n.nodeName.toUpperCase()&&(e.type=n.type),"checkbox"!==n.type&&"radio"!==n.type||n.checked||(e.value=null),t.push(e)}}))})),t}(c);o()(f,(function(n){n.value=u(n.value,n)})),n.trackFormSubmission(s(c),C(c),f,e(S(t,c,f)))}}return{configureFormTracking:function(n){var t;n&&(i=j(n.forms,!0),c=j(n.fields,!1),t=n.fields,u=p()(t)&&t.hasOwnProperty("transform")?t.transform:function(n){return n})},addFormListeners:function(n){o()(document.getElementsByTagName("form"),(function(t){i(t)&&!t[a]&&(o()(r,(function(e){o()(t.getElementsByTagName(e),(function(t){c(t)&&!t[a]&&"password"!==t.type.toLowerCase()&&(x(t,"focus",f("focus_form",n),!1),x(t,"change",f("change_form",n),!1),t[a]=!0)}))})),x(t,"submit",l(n)),t[a]=!0)}))}}}var en=window;function rn(n){function t(t,e,r,o,a,i){var c=a&&a.stack?a.stack:null;n.trackSelfDescribingEvent({schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:t||"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:c,lineNumber:r,lineColumn:o,fileName:e}},i)}return{trackError:t,enableErrorTracking:function(n,e,r){x(en,"error",(function(o){(U(n)&&n(o)||null==n)&&function(n,e,r){var o;o=U(r)?e.concat(r(n)):e,t(n.message,n.filename,n.lineno,n.colno,n.error,o)}(o,r,e)}),!0)}}}var on=e(50),an=e.n(on);function cn(n){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function un(n,t,e,r,o,a,i,c,s,f,l,p){var d,v,g,h,w,b=window.localStorage,k=!1,A=null===(o=o.toLowerCase?o.toLowerCase():o)||!0===o||"beacon"===o||"true"===o,x=Boolean(A&&navigator&&navigator.sendBeacon)&&A,_="get"===o,S=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),C=!_&&S&&("post"===o||A),j=C?a:"/i"
|
||||
;if(i=W()&&r&&C&&i||1,d="snowplowOutQueue_".concat(n,"_").concat(t,"_").concat(C?"post2":"get"),h="spBeaconPreflight_".concat(n,"_").concat(t),r)try{g=JSON.parse(b.getItem(d))}catch(n){}function P(n){for(var t=0,e=0;e<n.length;e++){var r=n.charCodeAt(e);r<=127?t+=1:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,e++):t+=r<65535?3:4}return t}function I(){for(;g.length&&"string"!=typeof g[0]&&"object"!==cn(g[0]);)g.shift();if(g.length<1)k=!1;else{if(!u()(v))throw"No collector configured";k=!0;var n=g[0];if(S){var t,e,o;_?(t=N(n),e=D(t,!1),o=1):(e=D(t=v,!0),o=function(n){for(var t=0,e=0;t<n.length&&!((e+=n[t].bytes)>=c);)t+=1;return t}(g));var a=setTimeout((function(){e.abort(),k=!1}),l);function i(n){for(var t=0;t<n;t++)g.shift();r&&T(d,JSON.stringify(g.slice(0,f))),I()}if(e.onreadystatechange=function(){4===e.readyState&&e.status>=200&&e.status<400?(clearTimeout(a),x&&!w&&function(n,t){try{y.setItem(n,t)}catch(n){return!1}}(h,!0),i(o)):4===e.readyState&&e.status>=400&&(clearTimeout(a),k=!1)},_)e.send();else{var s=g.slice(0,o);if(s.length>0){var b;w=w||x&&function(n){try{return y.getItem(n)}catch(n){return}}(h);var A=m()(s,(function(n){return n.evt}));if(w){var O=new Blob([E(L(A))],{type:"application/json"});try{b=navigator.sendBeacon(t,O)}catch(n){b=!1}}!0===b&&i(o),x&&b||e.send(E(L(A)))}}}else if(p)k=!1;else{var C=new Image(1,1),j=!0;C.onload=function(){j&&(j=!1,g.shift(),r&&T(d,JSON.stringify(g.slice(0,f))),I())},C.onerror=function(){j&&(j=!1,k=!1)},C.src=N(n),setTimeout((function(){j&&k&&(j=!1,I())}),l)}}}function D(n,t){var e=new XMLHttpRequest;return t?(e.open("POST",n,!0),e.setRequestHeader("Content-Type","application/json; charset=UTF-8")):e.open("GET",n,!0),e.withCredentials=!0,p&&e.setRequestHeader("SP-Anonymous","*"),e}function E(n){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:n})}function L(n){for(var t=(new Date).getTime().toString(),e=0;e<n.length;e++)n[e].stm=t;return n}function N(n){return s?v+n.replace("?","?stm="+(new Date).getTime()+"&"):v+n}return Array.isArray(g)||(g=[]),e.outQueues.push(g),S&&i>1&&e.bufferFlushers.push((function(){k||I()})),{enqueueRequest:function(n,t){if(v=t+j,C){var e=function(n){var t=an()(n,(function(n){return n.toString()}));return{evt:t,bytes:P(JSON.stringify(t))}}(n);if(e.bytes>=c)return O("Event ("+e.bytes+"B) too big, max is "+c),void D(v,!0).send(E(L([e.evt])));g.push(e)}else g.push(function(n){var t="?",e={co:!0,cx:!0},r=!0;for(var o in n)n.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(r?r=!1:t+="&",t+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));for(var a in e)n.hasOwnProperty(a)&&e.hasOwnProperty(a)&&(t+="&"+a+"="+encodeURIComponent(n[a]));return t}(n));var o=!1;r&&(o=T(d,JSON.stringify(g.slice(0,f)))),k||o&&!(g.length>=i)||I()},executeQueue:function(){k||I()},setUseLocalStorage:function(n){r=n},setAnonymousTracking:function(n){p=n},setCollectorUrl:function(n){v=n+j}}}function sn(n){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){
|
||||
return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var fn=e(51),ln=e(20),pn=e.n(ln),dn=e(12),mn=e.n(dn),vn=e(1),gn=e.n(vn),hn=e(13),yn=e.n(hn),wn=e(21),bn=e.n(wn),kn=e(22),An=e.n(kn),xn=e(52),_n=e.n(xn);function Sn(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function On(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Cn(n){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function jn(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=Pn(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return i=n.done,n},e:function(n){c=!0,a=n},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function Tn(n){return function(n){if(Array.isArray(n))return In(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||Pn(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(n,t){if(n){if("string"==typeof n)return In(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?In(n,t):void 0}}function In(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Dn(n){if(!n)return n;switch(4-n.length%4){case 2:n+="==";break;case 3:n+="="}return function(n){var t,e,r,o,a,i,c,u,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=0,l=0,p=[];if(!n)return n;n+="";do{o=s.indexOf(n.charAt(f++)),a=s.indexOf(n.charAt(f++)),i=s.indexOf(n.charAt(f++)),c=s.indexOf(n.charAt(f++)),t=(u=o<<18|a<<12|i<<6|c)>>16&255,e=u>>8&255,r=255&u,p[l++]=64===i?String.fromCharCode(t):64===c?String.fromCharCode(t,e):String.fromCharCode(t,e,r)}while(f<n.length);return function(n){return decodeURIComponent(n.split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(p.join("").replace(/\0+$/,""))}(n.replace(/-/g,"+").replace(/_/g,"/"))}function En(n){return n?function(n){
|
||||
var t,e,r,o,a,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,s=[];if(!n)return n;n=unescape(encodeURIComponent(n));do{t=(a=n.charCodeAt(c++)<<16|n.charCodeAt(c++)<<8|n.charCodeAt(c++))>>18&63,e=a>>12&63,r=a>>6&63,o=63&a,s[u++]=i.charAt(t)+i.charAt(e)+i.charAt(r)+i.charAt(o)}while(c<n.length);var f=s.join(""),l=n.length%3;return(l?f.slice(0,l-3):f)+"===".slice(l||3)}(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"):n}function Ln(n){if(!Nn(n))return!1;for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))return!0;return!1}function Nn(n){var t=n;return null!=t&&(t.constructor==={}.constructor||t.constructor===[].constructor)}function Mn(n){var t={},e=function(n,e){null!=e&&""!==e&&(t[n]=e)};return{add:e,addDict:function(n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e(t,n[t])},addJson:function(t,r,o){if(o&&Ln(o)){var a=JSON.stringify(o);n?e(t,En(a)):e(r,a)}},build:function(){return t}}}function Un(){var n=[],t=[],e=function(e){var r,o=function(n){if("string"==typeof gn()(n,"ue_px.data.schema"))return gn()(n,"ue_px.data.schema");if("string"==typeof gn()(n,"ue_pr.data.schema"))return gn()(n,"ue_pr.data.schema");if("string"==typeof gn()(n,"schema"))return gn()(n,"schema");return""}(e),a=(r=e,gn()(r,"e","")),i=[],c=Qn(n,e,a,o);i.push.apply(i,Tn(c));var u=function(n,t,e,r){var o,a=$n(n),i=An()(a,(function(n){var o=function(n,t,e,r){if(Yn(n)){var o=n[0],a=!1;try{a=o({event:t,eventType:e,eventSchema:r})}catch(n){a=!1}if(!0===a)return Qn(n[1],t,e,r)}else if(Jn(n)&&function(n,t){var e=0,r=0,o=gn()(n,"accept");Array.isArray(o)?n.accept.some((function(n){return Kn(n,t)}))&&r++:"string"==typeof o&&Kn(o,t)&&r++;var a=gn()(n,"reject");Array.isArray(a)?n.reject.some((function(n){return Kn(n,t)}))&&e++:"string"==typeof a&&Kn(a,t)&&e++;if(r>0&&0===e)return!0;if(0===r&&e>0)return!1;return!1}(n[0],r))return Qn(n[1],t,e,r);return[]}(n,t,e,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,Tn(bn()(i)))}(t,e,a,o);return i.push.apply(i,Tn(u)),i};return{getGlobalPrimitives:function(){return n},getConditionalProviders:function(){return t},addGlobalContexts:function(e){var r,o=[],a=[],i=jn(e);try{for(i.s();!(r=i.n()).done;){var c=r.value;Wn(c)?o.push(c):qn(c)&&a.push(c)}}catch(n){i.e(n)}finally{i.f()}n=n.concat(a),t=t.concat(o)},clearGlobalContexts:function(){t=[],n=[]},removeGlobalContexts:function(e){var r,o=jn(e);try{var a=function(){var e=r.value;Wn(e)?t=t.filter((function(n){return!pn()(n,e)})):qn(e)&&(n=n.filter((function(n){return!pn()(n,e)})))};for(o.s();!(r=o.n()).done;)a()}catch(n){o.e(n)}finally{o.f()}},getApplicableContexts:function(n){var t,r=n.build();if(Ln(t=r)&&"e"in t&&"string"==typeof t.e){var o=function(n){var t=function(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(e),!0).forEach((function(t){On(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Sn(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}
|
||||
return n}({},n);try{return mn()(t,"ue_px")&&(t.ue_px=JSON.parse(Dn(gn()(t,["ue_px"])))),t}catch(n){return t}}(r);return e(o)}return[]}}}function Bn(n){var t=n.split(".");return!!(t&&t.length>1)&&function(n){if("*"===n[0]||"*"===n[1])return!1;if(n.slice(2).length>0){var t,e=!1,r=jn(n.slice(2));try{for(r.s();!(t=r.n()).done;){if("*"===t.value)e=!0;else if(e)return!1}}catch(n){r.e(n)}finally{r.f()}return!0}return 2==n.length}(t)}function zn(n){var t=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$").exec(n);if(null!==t&&Bn(t[1]))return t.slice(1,6)}function Fn(n){var t=zn(n);if(t){var e=t[0];return 5===t.length&&Bn(e)}return!1}function Rn(n){return function(n){return Array.isArray(n)&&n.every((function(n){return"string"==typeof n}))}(n)?n.every((function(n){return Fn(n)})):"string"==typeof n&&Fn(n)}function Vn(n){var t=n;return!!(Ln(t)&&"schema"in t&&"data"in t)&&("string"==typeof t.schema&&"object"===Cn(t.data))}function Hn(n){return"function"==typeof n&&n.length<=1}function Gn(n){return"function"==typeof n&&n.length<=1}function qn(n){return Hn(n)||Vn(n)}function Yn(n){return!(!Array.isArray(n)||2!==n.length)&&(Array.isArray(n[1])?Gn(n[0])&&yn()(n[1],qn):Gn(n[0])&&qn(n[1]))}function Jn(n){return!(!Array.isArray(n)||2!==n.length)&&(!!function(n){var t=n,e=0;if(_n()(n)){if(mn()(t,"accept")){if(!Rn(t.accept))return!1;e+=1}if(mn()(t,"reject")){if(!Rn(t.reject))return!1;e+=1}return e>0&&e<=2}return!1}(n[0])&&(Array.isArray(n[1])?yn()(n[1],qn):qn(n[1])))}function Wn(n){return Yn(n)||Jn(n)}function Kn(n,t){if(!Fn(n))return!1;var e=zn(n),r=function(n){var t=new RegExp("^iglu:([a-zA-Z0-9-_.]+)/([a-zA-Z0-9-_]+)/jsonschema/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$").exec(n);if(null!==t)return t.slice(1,6)}(t);if(e&&r){if(!function(n,t){var e=t.split("."),r=n.split(".");if(e&&r){if(e.length!==r.length)return!1;for(var o=0;o<r.length;o++)if(!Xn(e[o],r[o]))return!1;return!0}return!1}(e[0],r[0]))return!1;for(var o=1;o<5;o++)if(!Xn(e[o],r[o]))return!1;return!0}return!1}function Xn(n,t){return n&&t&&"*"===n||n===t}function $n(n){return Array.isArray(n)?n:Array.of(n)}function Qn(n,t,e,r){var o,a=$n(n),i=An()(a,(function(n){var o=function(n,t,e,r){if(Vn(n))return[n];if(Hn(n)){var o=function(n,t,e,r){var o=void 0;try{return Vn(o=n({event:t,eventType:e,eventSchema:r}))||Array.isArray(o)&&yn()(o,Vn)?o:void 0}catch(n){o=void 0}return o}(n,t,e,r);if(Vn(o))return[o];if(Array.isArray(o))return o}return}(n,t,e,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,Tn(bn()(i)))}function Zn(n,t){var e=Un(),r={};void 0===n&&(n=!0);var o=function(n,t){var e={};for(var r in t=t||{},n)(t[r]||null!==n[r]&&void 0!==n[r])&&(e[r]=n[r]);return e},a=function(n,o,a,i){n.addDict(r),n.add("eid",Object(fn.v4)());var c=function(n){return null==n?{type:"dtm",value:(new Date).getTime()}:"number"==typeof n?{type:"dtm",value:n}:"ttm"===n.type?{type:"ttm",value:n.value}:{type:"dtm",value:n.value||(new Date).getTime()}}(a)
|
||||
;n.add(c.type,c.value.toString());var u=function(n){if(n&&n.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n}}(function(n,t){var r=e.getApplicableContexts(n),o=[];return t&&t.length&&o.push.apply(o,Tn(t)),r&&r.length&&o.push.apply(o,Tn(r)),o}(n,o));void 0!==u&&n.addJson("cx","co",u),"function"==typeof t&&t(n);try{i&&i(n.build())}catch(n){console.warn("Snowplow: error running custom callback")}return n},i=function(t,e,r,o){var i=Mn(n),c={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:t};return i.add("e","ue"),i.addJson("ue_px","ue_pr",c),a(i,e,r,o)},c=function(n,t){r[n]=t};return{addPayloadPair:c,setBase64Encoding:function(t){n=t},addPayloadDict:function(n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])},resetPayloadPairs:function(n){r=Nn(n)?n:{}},setTrackerVersion:function(n){c("tv",n)},setTrackerNamespace:function(n){c("tna",n)},setAppId:function(n){c("aid",n)},setPlatform:function(n){c("p",n)},setUserId:function(n){c("uid",n)},setScreenResolution:function(n,t){c("res",n+"x"+t)},setViewport:function(n,t){c("vp",n+"x"+t)},setColorDepth:function(n){c("cd",n)},setTimezone:function(n){c("tz",n)},setLang:function(n){c("lang",n)},setIpAddress:function(n){c("ip",n)},setUseragent:function(n){c("ua",n)},trackUnstructEvent:i,trackSelfDescribingEvent:i,trackPageView:function(t,e,r,o,i,c){var u=Mn(n);return u.add("e","pv"),u.add("url",t),u.add("page",e),u.add("refr",r),a(u,o,i,c)},trackPagePing:function(t,e,r,o,i,c,u,s,f,l){var p=Mn(n);return p.add("e","pp"),p.add("url",t),p.add("page",e),p.add("refr",r),p.add("pp_mix",o.toString()),p.add("pp_max",i.toString()),p.add("pp_miy",c.toString()),p.add("pp_may",u.toString()),a(p,s,f,l)},trackStructEvent:function(t,e,r,o,i,c,u,s){var f=Mn(n);return f.add("e","se"),f.add("se_ca",t),f.add("se_ac",e),f.add("se_la",r),f.add("se_pr",o),f.add("se_va",null==i?void 0:i.toString()),a(f,c,u,s)},trackEcommerceTransaction:function(t,e,r,o,i,c,u,s,f,l,p,d){var m=Mn(n);return m.add("e","tr"),m.add("tr_id",t),m.add("tr_af",e),m.add("tr_tt",r),m.add("tr_tx",o),m.add("tr_sh",i),m.add("tr_ci",c),m.add("tr_st",u),m.add("tr_co",s),m.add("tr_cu",f),a(m,l,p,d)},trackEcommerceTransactionItem:function(t,e,r,o,i,c,u,s,f,l){var p=Mn(n);return p.add("e","ti"),p.add("ti_id",t),p.add("ti_sk",e),p.add("ti_nm",r),p.add("ti_ca",o),p.add("ti_pr",i),p.add("ti_qu",c),p.add("ti_cu",u),a(p,s,f,l)},trackScreenView:function(n,t,e,r,a){return i({schema:"iglu:com.snowplowanalytics.snowplow/screen_view/jsonschema/1-0-0",data:o({name:n,id:t})},e,r,a)},trackLinkClick:function(n,t,e,r,a,c,u,s){var f={schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:o({targetUrl:n,elementId:t,elementClasses:e,elementTarget:r,elementContent:a})};return i(f,c,u,s)},trackAdImpression:function(n,t,e,r,a,c,u,s,f,l,p){var d={schema:"iglu:com.snowplowanalytics.snowplow/ad_impression/jsonschema/1-0-0",data:o({impressionId:n,costModel:t,cost:e,targetUrl:r,bannerId:a,zoneId:c,advertiserId:u,campaignId:s})};return i(d,f,l,p)},
|
||||
trackAdClick:function(n,t,e,r,a,c,u,s,f,l,p,d){var m={schema:"iglu:com.snowplowanalytics.snowplow/ad_click/jsonschema/1-0-0",data:o({targetUrl:n,clickId:t,costModel:e,cost:r,bannerId:a,zoneId:c,impressionId:u,advertiserId:s,campaignId:f})};return i(m,l,p,d)},trackAdConversion:function(n,t,e,r,a,c,u,s,f,l,p,d){var m={schema:"iglu:com.snowplowanalytics.snowplow/ad_conversion/jsonschema/1-0-0",data:o({conversionId:n,costModel:t,cost:e,category:r,action:a,property:c,initialValue:u,advertiserId:s,campaignId:f})};return i(m,l,p,d)},trackSocialInteraction:function(n,t,e,r,a,c){var u={schema:"iglu:com.snowplowanalytics.snowplow/social_interaction/jsonschema/1-0-0",data:o({action:n,network:t,target:e})};return i(u,r,a,c)},trackAddToCart:function(n,t,e,r,a,c,u,s,f){return i({schema:"iglu:com.snowplowanalytics.snowplow/add_to_cart/jsonschema/1-0-0",data:o({sku:n,name:t,category:e,unitPrice:r,quantity:a,currency:c})},u,s,f)},trackRemoveFromCart:function(n,t,e,r,a,c,u,s,f){return i({schema:"iglu:com.snowplowanalytics.snowplow/remove_from_cart/jsonschema/1-0-0",data:o({sku:n,name:t,category:e,unitPrice:r,quantity:a,currency:c})},u,s,f)},trackFormFocusOrChange:function(n,t,e,r,a,c,u,s,f,l){var p="",d={formId:t,elementId:e,nodeName:r,elementClasses:c,value:u};return"change_form"===n?(p="iglu:com.snowplowanalytics.snowplow/change_form/jsonschema/1-0-0",d.type=a):"focus_form"===n&&(p="iglu:com.snowplowanalytics.snowplow/focus_form/jsonschema/1-0-0",d.elementType=a),i({schema:p,data:o(d,{value:!0})},s,f,l)},trackFormSubmission:function(n,t,e,r,a,c){return i({schema:"iglu:com.snowplowanalytics.snowplow/submit_form/jsonschema/1-0-0",data:o({formId:n,formClasses:t,elements:e})},r,a,c)},trackSiteSearch:function(n,t,e,r,a,c,u){return i({schema:"iglu:com.snowplowanalytics.snowplow/site_search/jsonschema/1-0-0",data:o({terms:n,filters:t,totalResults:e,pageResults:r})},a,c,u)},trackConsentWithdrawn:function(n,t,e,r,a,c,u,s){var f={schema:"iglu:com.snowplowanalytics.snowplow/consent_document/jsonschema/1-0-0",data:o({id:t,version:e,name:r,description:a})};return i({schema:"iglu:com.snowplowanalytics.snowplow/consent_withdrawn/jsonschema/1-0-0",data:o({all:n})},f.data&&c?c.concat([f]):c,u,s)},trackConsentGranted:function(n,t,e,r,a,c,u,s){var f={schema:"iglu:com.snowplowanalytics.snowplow/consent_document/jsonschema/1-0-0",data:o({id:n,version:t,name:e,description:r})};return i({schema:"iglu:com.snowplowanalytics.snowplow/consent_granted/jsonschema/1-0-0",data:o({expiry:a})},c?c.concat([f]):[f],u,s)},addGlobalContexts:function(n){e.addGlobalContexts(n)},clearGlobalContexts:function(){e.clearGlobalContexts()},removeGlobalContexts:function(n){e.removeGlobalContexts(n)}}}var nt=e(3),tt=e.n(nt);function et(n,t,e,r,a){(a=a||{}).hasOwnProperty("post")?a.eventMethod=!0===a.post?"post":"get":a.eventMethod=a.eventMethod||"post",a.hasOwnProperty("useStm")||(a.useStm=!0);var i,c,u,s,f,l,p,d,g,y,S,C,j,U,B,z,R,q=function(n){
|
||||
return n.hasOwnProperty("stateStorageStrategy")?n.stateStorageStrategy:zn||Bn?zn&&Bn?"cookieAndLocalStorage":zn?"cookie":"localStorage":"none"},Y=function(n){return!!n.hasOwnProperty("anonymousTracking")&&!0===n.anonymousTracking.withSessionTracking},W=function(n){return!!n.hasOwnProperty("anonymousTracking")&&!0===n.anonymousTracking.withServerAnonymisation},X=function(n){return!!n.anonymousTracking},Z=Object.freeze({consent:"consent",contract:"contract",legalObligation:"legal_obligation",vitalInterests:"vital_interests",publicTask:"public_task",legitimateInterests:"legitimate_interests"}),nn=Zn(!0,(function(n){!function(n){var t,e=function(n){return Un?null:n},r=function(n){return Nn?n:e(n)},o=Math.round((new Date).getTime()/1e3),a=wt("ses"),c=It(),s=c[0],f=c[1],l=c[2],d=c[3],m=c[4],v=c[5],g=c[6];t=!!p&&!!L(p);if(Tn||t)return void Tt();"0"===s?(z=g,a||"none"==Fn||(d++,v=m,z=tt()()),Yn=d):(new Date).getTime()-Gn>1e3*In&&(z=tt()(),Yn++);n.add("vp",function(){var n=G,t="inner";"innerWidth"in G||(t="client",n=J.documentElement||J.body);var e=n[t+"Width"],r=n[t+"Height"];return e>=0&&r>=0?e+"x"+r:null}()),n.add("ds",function(){var n=J.documentElement,t=J.body,e=t?Math.max(t.offsetHeight,t.scrollHeight):0,r=Math.max(n.clientWidth,n.offsetWidth,n.scrollWidth),o=Math.max(n.clientHeight,n.offsetHeight,n.scrollHeight,e);return isNaN(r)||isNaN(o)?"":r+"x"+o}()),n.add("vid",r(Yn)),n.add("sid",r(z)),n.add("duid",e(f)),n.add("uid",e(R)),dt(),n.add("refr",gt(i||gn)),n.add("url",gt(u||vn)),"none"!=Fn&&(Ct(f,l,Yn,o,v,z),Ot());Gn=(new Date).getTime()}(n),function(n,t){var e,o=new Date;e=!!p&&!!L(p);Tn||e||($n.enqueueRequest(n.build(),c),r.expireDateTime=o.getTime()+t)}(n,kn)})),en=!1,on={},an={},cn={},fn=document,ln=window,pn=navigator,dn=(screen,V(fn.domain,ln.location.href,A())),mn=k(dn[0]),vn=dn[1],gn=dn[2],hn=a.hasOwnProperty("platform")?a.platform:"web",yn=a.hasOwnProperty("postPath")?a.postPath:"/com.snowplowanalytics.snowplow/tp2",wn=a.hasOwnProperty("appId")?a.appId:"",bn=fn.title,kn=a.hasOwnProperty("pageUnloadTimer")?a.pageUnloadTimer:500,An=!a.hasOwnProperty("resetActivityTrackingOnPageView")||a.resetActivityTrackingOnPageView,xn=a.hasOwnProperty("cookieName")?a.cookieName:"_sp_",_n=a.hasOwnProperty("cookieDomain")?a.cookieDomain:null,Sn="/",On=a.hasOwnProperty("cookieSameSite")?a.cookieSameSite:"None",Cn=!a.hasOwnProperty("cookieSecure")||a.cookieSecure,jn=pn.doNotTrack||pn.msDoNotTrack||ln.doNotTrack,Tn=!!a.hasOwnProperty("respectDoNotTrack")&&(a.respectDoNotTrack&&("yes"===jn||"1"===jn)),Pn=a.hasOwnProperty("cookieLifetime")?a.cookieLifetime:63072e3,In=a.hasOwnProperty("sessionCookieTimeout")?a.sessionCookieTimeout:1800,Dn=fn.characterSet||fn.charset,En=!!a.hasOwnProperty("forceSecureTracker")&&!0===a.forceSecureTracker,Ln=!(En||!a.hasOwnProperty("forceUnsecureTracker"))&&!0===a.forceUnsecureTracker,Nn=Y(a),Mn=W(a),Un=X(a),Bn=!a.hasOwnProperty("useLocalStorage")||(O("argmap.useLocalStorage is deprecated. Use argmap.stateStorageStrategy instead."),
|
||||
a.useLocalStorage),zn=!a.hasOwnProperty("useCookies")||(O("argmap.useCookies is deprecated. Use argmap.stateStorageStrategy instead."),a.useCookies),Fn=q(a),Rn=pn.userLanguage||pn.language,Vn=K(),Hn=n+"_"+t,Gn=(new Date).getTime(),qn=$.a,Yn=1,Jn={transaction:{},items:[]},Wn=new Q(nn,Hn,Et),Kn=new tn(nn,Hn,Et),Xn=new rn(nn),$n=new un(n,t,r,"localStorage"==Fn||"cookieAndLocalStorage"==Fn,a.eventMethod,yn,a.bufferSize,a.maxPostBytes||4e4,a.useStm,a.maxLocalStorageQueueSize||1e3,a.connectionTimeout||5e3,Mn),Qn=!1,nt=a.contexts||{},et=[],rt=[],ot=!1,at=!1,it={enabled:!1,installed:!1,configurations:{}},ct=null;nt.clientHints&&pn.userAgentData&&(ct={isMobile:pn.userAgentData.mobile,brands:pn.userAgentData.brands},nt.clientHints.includeHighEntropy&&pn.userAgentData.getHighEntropyValues&&pn.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(n){ct.architecture=n.architecture,ct.model=n.model,ct.platform=n.platform,ct.uaFullVersion=n.uaFullVersion,ct.platformVersion=n.platformVersion})));var ut,st=a.skippedBrowserFeatures||[],ft={};for(var lt in a.hasOwnProperty("discoverRootDomain")&&a.discoverRootDomain&&(_n=function(n,t){for(var e="_sp_root_domain_test_"+(new Date).getTime(),r="_test_value_"+(new Date).getTime(),o=v.location.hostname.split("."),a=o.length-1;a>=0;){var i=o.slice(a,o.length).join(".");if(L(e,r,0,"/",i,n,t),L(e)===r){D(e,i,n,t);for(var c=E("_sp_root_domain_test_"),u=0;u<c.length;u++)D(c[u],i,n,t);return i}a-=1}return v.location.hostname}(On,Cn)),nt.gaCookies&&et.push((ut={},o()(["__utma","__utmb","__utmc","__utmv","__utmz","_ga"],(function(n){var t=L(n);t&&(ut[n]=t)})),{schema:"iglu:com.google.analytics/cookies/jsonschema/1-0-0",data:ut})),nt.geolocation&&Bt(),nn.setBase64Encoding(!a.hasOwnProperty("encodeBase64")||a.encodeBase64),nn.setTrackerVersion(e),nn.setTrackerNamespace(t),nn.setAppId(wn),nn.setPlatform(hn),nn.setTimezone(H.jstz.determine().name()),nn.addPayloadPair("lang",Rn),nn.addPayloadPair("cs",Dn),Vn)Object.prototype.hasOwnProperty.call(Vn,lt)&&("res"!==lt&&"cd"!==lt&&"cookie"!==lt||pt(lt)?pt(lt)||nn.addPayloadPair("f_"+lt,Vn[lt]):nn.addPayloadPair(lt,Vn[lt]));function pt(n){return st.map((function(n){return n.toLowerCase()})).indexOf(n.toLowerCase())>-1}function dt(){(dn=V(fn.domain,ln.location.href,A()))[1]!==vn&&(gn=A(vn)),mn=k(dn[0]),vn=dn[1]}function mt(){var n=(new Date).getTime();this.href&&(this.href=function(n,t,e){var r=t+"="+e,o=n.split("#"),a=o[0].split("?"),i=a.shift(),c=a.join("?");if(c){for(var u=!0,s=c.split("&"),f=0;f<s.length;f++)if(s[f].substr(0,t.length+1)===t+"="){u=!1,s[f]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=i+"?"+c,o.join("#")}(this.href,"_sp",B+"."+n))}function vt(n){for(var t=0;t<fn.links.length;t++){var e=fn.links[t];!e.spDecorationEnabled&&n(e)&&(x(e,"click",mt,!0),x(e,"mousedown",mt,!0),e.spDecorationEnabled=!0)}}function gt(n){var t;return f&&(t=new RegExp("#.*"),n=n.replace(t,"")),l&&(t=new RegExp("[{}]","g"),n=n.replace(t,"")),n}function ht(n){
|
||||
var t=new RegExp("^([a-z]+):").exec(n);return t?t[1]:null}function yt(n){return xn+n+"."+U}function wt(n){var t=yt(n);return"localStorage"==Fn?function(n){try{var t=h.getItem(n+".expires");return null===t||+t>Date.now()?h.getItem(n):(h.removeItem(n),void h.removeItem(n+".expires"))}catch(n){}}(t):"cookie"==Fn||"cookieAndLocalStorage"==Fn?L(t):void 0}function bt(){dt(),U=qn((_n||mn)+(Sn||"/")).slice(0,4)}function kt(){var n=new Date;g=n.getTime()}function At(){!function(){var n=xt(),t=n[0];t<y?y=t:t>S&&(S=t);var e=n[1];e<C?C=e:e>j&&(j=e)}(),kt()}function xt(){var n=fn.compatMode&&"BackCompat"!==fn.compatMode?fn.documentElement:fn.body;return[n.scrollLeft||ln.pageXOffset,n.scrollTop||ln.pageYOffset]}function _t(){var n=xt(),t=n[0];y=t,S=t;var e=n[1];C=e,j=e}function St(n){var t=Math.round(n);if(!isNaN(t))return t}function Ot(){jt(yt("ses"),"*",In)}function Ct(n,t,e,r,o,a){jt(yt("id"),n+"."+t+"."+e+"."+r+"."+o+"."+a,Pn)}function jt(n,t,e){Un&&!Nn||("localStorage"==Fn?T(n,t,e):"cookie"!=Fn&&"cookieAndLocalStorage"!=Fn||L(n,t,e,Sn,_n,On,Cn))}function Tt(){var n=yt("id"),t=yt("ses");P(n),P(t),D(n,_n,On,Cn),D(t,_n,On,Cn)}function Pt(){if(!Un||Nn){var n="none"!=Fn&&!!wt("ses"),t=It();t[1]?B=t[1]:Un?(B="",t[1]=B):(B=tt()(),t[1]=B),z=t[6],n||(t[3]++,z=tt()(),t[6]=z,t[5]=t[4]),"none"!=Fn&&(Ot(),t[4]=Math.round((new Date).getTime()/1e3),t.shift(),Ct.apply(null,t))}}function It(){if("none"==Fn)return[];var n,t=new Date,e=Math.round(t.getTime()/1e3),r=wt("id");return r?(n=r.split(".")).unshift("0"):n=["1",B,e,0,e,""],n[6]||(n[6]=tt()()),n}function Dt(n){return En?"https://"+n:Ln?"http://"+n:("https:"===fn.location.protocol?"https":"http")+"://"+n}function Et(n){var t,e,r=et.concat(n||[]);if(nt.webPage&&r.push({schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:Nt()}}),nt.performanceTiming){var a=function(){var n=["navigationStart","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","unloadEventStart","unloadEventEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd","msFirstPaint","chromeFirstPaint","requestEnd","proxyStart","proxyEnd"],t=ln.performance||ln.mozPerformance||ln.msPerformance||ln.webkitPerformance;if(t){var e={};for(var r in t.timing)I(r,n)&&null!==t.timing[r]&&(e[r]=t.timing[r]);return delete e.requestEnd,{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:e}}}();a&&r.push(a)}if(ln.optimizely){if(nt.optimizelySummary){var i=m()((t=Mt("state"),e=Mt("experiments"),m()(t&&e&&t.activeExperiments,(function(n){var r=e[n];return{activeExperimentId:n.toString(),variation:t.variationIdsMap[n][0].toString(),conditional:r&&r.conditional,manual:r&&r.manual,name:r&&r.name}}))),(function(n){return{schema:"iglu:com.optimizely.snowplow/optimizely_summary/jsonschema/1-0-0",data:n}}));o()(i,(function(n){r.push(n)}))}if(nt.optimizelyXSummary){i=function(){return m()((n=Ut("state"),
|
||||
t=n&&n.getActiveExperimentIds(),e=n&&n.getVariationMap(),r=Ut("visitor"),m()(t,(function(n){var t=e[n],o=t&&t.name&&t.name.toString()||null,a=t&&t.id,i=r&&r.visitorId&&r.visitorId.toString()||null;return{experimentId:N(n)||null,variationName:o,variation:N(a)||null,visitorId:i}}))),(function(n){return{schema:"iglu:com.optimizely.optimizelyx/summary/jsonschema/1-0-0",data:n}}));var n,t,e,r}();o()(i,(function(n){r.push(n)}))}if(nt.optimizelyExperiments)for(var c=function(){var n=Mt("experiments");if(n){var t=[];for(var e in n)if(n.hasOwnProperty(e)){var r={};r.id=e;var o=n[e];r.code=o.code,r.manual=o.manual,r.conditional=o.conditional,r.name=o.name,r.variationIds=o.variation_ids,t.push({schema:"iglu:com.optimizely/experiment/jsonschema/1-0-0",data:r})}return t}return[]}(),u=0;u<c.length;u++)r.push(c[u]);if(nt.optimizelyStates){var s=function(){var n=[],t=Mt("experiments");if(t)for(var e in t)t.hasOwnProperty(e)&&n.push(e);var r=Mt("state");if(r){for(var o=[],a=r.activeExperiments||[],i=0;i<n.length;i++){var c=n[i],u={};u.experimentId=c,u.isActive=I(n[i],a);var s=r.variationMap||{};u.variationIndex=s[c];var f=r.variationNamesMap||{};u.variationName=f[c];var l=r.variationIdsMap||{};l[c]&&1===l[c].length&&(u.variationId=l[c][0]),o.push({schema:"iglu:com.optimizely/state/jsonschema/1-0-0",data:u})}return o}return[]}();for(u=0;u<s.length;u++)r.push(s[u])}if(nt.optimizelyVariations){var f=function(){var n=Mt("variations");if(n){var t=[];for(var e in n)if(n.hasOwnProperty(e)){var r={};r.id=e;var o=n[e];r.name=o.name,r.code=o.code,t.push({schema:"iglu:com.optimizely/variation/jsonschema/1-0-0",data:r})}return t}return[]}();for(u=0;u<f.length;u++)r.push(f[u])}if(nt.optimizelyVisitor){var l=function(){var n=Mt("visitor");if(n){var t={};t.browser=n.browser,t.browserVersion=n.browserVersion,t.device=n.device,t.deviceType=n.deviceType,t.ip=n.ip;var e=n.platform||{};t.platformId=e.id,t.platformVersion=e.version;var r=n.location||{};return t.locationCity=r.city,t.locationRegion=r.region,t.locationCountry=r.country,t.mobile=n.mobile,t.mobileId=n.mobileId,t.referrer=n.referrer,t.os=n.os,{schema:"iglu:com.optimizely/visitor/jsonschema/1-0-0",data:t}}}();l&&r.push(l)}if(nt.optimizelyAudiences){var p=function(){var n=Mt("visitor","audiences");if(n){var t=[];for(var e in n)if(n.hasOwnProperty(e)){var r={id:e,isMember:n[e]};t.push({schema:"iglu:com.optimizely/visitor_audience/jsonschema/1-0-0",data:r})}return t}return[]}();for(u=0;u<p.length;u++)r.push(p[u])}if(nt.optimizelyDimensions){var d=function(){var n=Mt("visitor","dimensions");if(n){var t=[];for(var e in n)if(n.hasOwnProperty(e)){var r={id:e,value:n[e]};t.push({schema:"iglu:com.optimizely/visitor_dimension/jsonschema/1-0-0",data:r})}return t}return[]}();for(u=0;u<d.length;u++)r.push(d[u])}}if(nt.parrable){var v=function(){var n=window._hawk;if(n){var t={encryptedId:null,optout:null};t.encryptedId=n.browserid;var e=new RegExp("(?:^|;)\\s?"+"_parrable_hawk_optout".replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")+"=(.*?)(?:;|$)","i"),r=document.cookie.match(e)
|
||||
;return t.optout=r&&decodeURIComponent(r[1])?r&&decodeURIComponent(r[1]):"false",{schema:"iglu:com.parrable/encrypted_payload/jsonschema/1-0-0",data:t}}}();v&&r.push(v)}if(nt.gdprBasis&&ft.gdprBasis){var g=function(){if(ft.gdprBasis)return{schema:"iglu:com.snowplowanalytics.snowplow/gdpr/jsonschema/1-0-0",data:{basisForProcessing:ft.gdprBasis,documentId:ft.gdprDocId||null,documentVersion:ft.gdprDocVer||null,documentDescription:ft.gdprDocDesc||null}}}();g&&r.push(g)}return nt.clientHints&&ct&&r.push({schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:ct}),r}function Lt(){ot&&null!=r.pageViewId||(r.pageViewId=tt()())}function Nt(){return null==r.pageViewId&&(r.pageViewId=tt()()),r.pageViewId}function Mt(n,t){var e;return ln.optimizely&&ln.optimizely.data&&(e=ln.optimizely.data[n],void 0!==t&&void 0!==e&&(e=e[t])),e}function Ut(n,t){var e;return ln.optimizely&&"function"==typeof ln.optimizely.get&&(e=ln.optimizely.get(n),void 0!==t&&void 0!==e&&(e=e[t])),e}function Bt(){!Qn&&pn.geolocation&&pn.geolocation.getCurrentPosition&&(Qn=!0,pn.geolocation.getCurrentPosition((function(n){var t=n.coords,e={schema:"iglu:com.snowplowanalytics.snowplow/geolocation_context/jsonschema/1-1-0",data:{latitude:t.latitude,longitude:t.longitude,latitudeLongitudeAccuracy:t.accuracy,altitude:t.altitude,altitudeAccuracy:t.altitudeAccuracy,bearing:t.heading,speed:t.speed,timestamp:Math.round(n.timestamp)}};et.push(e)})))}function zt(n,t){return(n||[]).concat(t?t():[])}function Ft(n,t,e){var r=function(n,t){dt(),n({context:t,pageViewId:Nt(),minXOffset:y,minYOffset:C,maxXOffset:S,maxYOffset:j}),_t()},o=function(){var o=new Date;g+n.configHeartBeatTimer>o.getTime()&&r(n.callback,zt(t,e))};0!=n.configMinimumVisitLength?n.activityInterval=setTimeout((function(){var a=new Date;g+n.configMinimumVisitLength>a.getTime()&&r(n.callback,zt(t,e)),n.activityInterval=setInterval(o,n.configHeartBeatTimer)}),n.configMinimumVisitLength):n.activityInterval=setInterval(o,n.configHeartBeatTimer)}function Rt(n,t,e){return F()(n)&&F()(t)?{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,activityInterval:null,callback:e}:(O("Activity tracking not enabled, please provide integer values for minimumVisitLength and heartBeatDelay."),{})}function Vt(n){var t=n.context,e=n.minXOffset,r=n.minYOffset,o=n.maxXOffset,a=n.maxYOffset,c=fn.title;c!==bn&&(bn=c,s=null),nn.trackPagePing(gt(u||vn),w(s||bn),gt(i||gn),St(e),St(o),St(r),St(a),Et(t))}function Ht(n,t,e,r,o,a,i,c,u){nn.trackEcommerceTransactionItem(n,t,e,r,o,a,i,Et(c),u)}function Gt(n,t){return""!==n?n+t.charAt(0).toUpperCase()+t.slice(1):t}function qt(n){var t,e,r,o=["","webkit","ms","moz"];if(!d)for(e=0;e<o.length;e++){if(fn[Gt(r=o[e],"hidden")]){"prerender"===fn[Gt(r,"visibilityState")]&&(t=!0);break}if(!1===fn[Gt(r,"hidden")])break}t?x(fn,r+"visibilitychange",(function t(){fn.removeEventListener(r+"visibilitychange",t,!1),n()})):n()}function Yt(){cn=en?on:an}bt(),Pt(),a.crossDomainLinker&&vt(a.crossDomainLinker)
|
||||
;var Jt="User Fingerprinting is no longer supported. This function will be removed in a future release.",Wt=" is deprecated. Instead use the argmap argument on tracker initialisation: ";return on.getDomainSessionIndex=function(){return Yn},on.getPageViewId=function(){return Nt()},on.newSession=function(){var n=Math.round((new Date).getTime()/1e3),t=It(),e=t[0],r=t[1],o=t[2],a=t[3],i=t[4],c=t[5],u=t[6];"0"===e?(z=u,"none"!=Fn&&(a++,c=i,z=tt()()),Yn=a,Ot()):(z=tt()(),Yn++),"none"!=Fn&&(Ct(r,o,Yn,n,c,z),Ot()),Gn=(new Date).getTime()},on.getCookieName=function(n){return yt(n)},on.getUserId=function(){return R},on.getDomainUserId=function(){return It()[1]},on.getDomainUserInfo=function(){return It()},on.getUserFingerprint=function(){return O(Jt),0},on.setAppId=function(n){O("setAppId"+Wt+"appId"),nn.setAppId(n)},on.setReferrerUrl=function(n){i=n},on.setCustomUrl=function(n){dt(),u=function(n,t){var e;return ht(t)?t:"/"===t.slice(0,1)?ht(n)+"://"+b(n)+t:((e=(n=gt(n)).indexOf("?"))>=0&&(n=n.slice(0,e)),(e=n.lastIndexOf("/"))!==n.length-1&&(n=n.slice(0,e+1)),n+t)}(vn,n)},on.setDocumentTitle=function(n){bn=fn.title,s=n},on.discardHashTag=function(n){f=n},on.discardBrace=function(n){l=n},on.setCookieNamePrefix=function(n){O("setCookieNamePrefix"+Wt+"cookieName"),xn=n},on.setCookieDomain=function(n){O("setCookieDomain"+Wt+"cookieDomain"),_n=k(n),bt()},on.setCookiePath=function(n){Sn=n,bt()},on.setVisitorCookieTimeout=function(n){Pn=n},on.setSessionCookieTimeout=function(n){O("setSessionCookieTimeout"+Wt+"sessionCookieTimeout"),In=n},on.setUserFingerprintSeed=function(){O(Jt)},on.enableUserFingerprint=function(){O(Jt)},on.respectDoNotTrack=function(n){O("respectDoNotTrack"+Wt+"respectDoNotTrack");var t=pn.doNotTrack||pn.msDoNotTrack;Tn=n&&("yes"===t||"1"===t)},on.crossDomainLinker=function(n){vt(n)},on.enableLinkClickTracking=function(n,t,e,o){r.hasLoaded?(Wn.configureLinkClickTracking(n,t,e,o),Wn.addClickListeners()):r.registeredOnLoadHandlers.push((function(){Wn.configureLinkClickTracking(n,t,e,o),Wn.addClickListeners()}))},on.refreshLinkClickTracking=function(){r.hasLoaded?Wn.addClickListeners():r.registeredOnLoadHandlers.push((function(){Wn.addClickListeners()}))},on.enableActivityTracking=function(n,t){it.enabled=!0,it.configurations.pagePing=Rt(n,t,Vt)},on.enableActivityTrackingCallback=function(n,t,e){it.enabled=!0,it.configurations.callback=Rt(n,t,e)},on.updatePageActivity=function(){kt()},on.enableFormTracking=function(n,t){r.hasLoaded?(Kn.configureFormTracking(n),Kn.addFormListeners(t)):r.registeredOnLoadHandlers.push((function(){Kn.configureFormTracking(n),Kn.addFormListeners(t)}))},on.killFrame=function(){ln.location!==ln.top.location&&(ln.top.location=ln.location)},on.redirectFile=function(n){"file:"===ln.location.protocol&&(ln.location=n)},on.setOptOutCookie=function(n){p=n},on.setCountPreRendered=function(n){d=n},on.setUserId=function(n){R=n},on.identifyUser=function(n){on.setUserId(n)},on.setUserIdFromLocation=function(n){dt(),R=_(n,vn)},on.setUserIdFromReferrer=function(n){dt(),R=_(n,gn)},
|
||||
on.setUserIdFromCookie=function(n){R=L(n)},on.setCollectorCf=function(n){c=function(n){return Dt(n+".cloudfront.net")}(n),$n.setCollectorUrl(c)},on.setCollectorUrl=function(n){c=Dt(n),$n.setCollectorUrl(c)},on.setPlatform=function(n){O("setPlatform"+Wt+"platform"),nn.setPlatform(n)},on.encodeBase64=function(n){O("encodeBase64"+Wt+"encodeBase64"),nn.setBase64Encoding(n)},on.flushBuffer=function(){$n.executeQueue()},on.enableGeolocationContext=Bt,on.trackPageView=function(n,t,e,r,a){qt((function(){!function(n,t,e,r,a){dt(),at&&Lt(),at=!0,bn=fn.title;var c=w((s=n)||bn);nn.trackPageView(gt(u||vn),c,gt(i||gn),Et(zt(t,e)),r,a);var f=new Date,l=!1;if(it.enabled&&!it.installed){it.installed=!0,l=!0;var p={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var n=!1,t=Object.defineProperty({},"passive",{get:function(){n=!0}}),e=function(){};window.addEventListener("testPassiveEventSupport",e,t),window.removeEventListener("testPassiveEventSupport",e,t),p.hasSupport=n}}};p.update();var d="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(p,"hasSupport")?x(fn,d,kt,{passive:!0}):x(fn,d,kt),_t();var m=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return function(n){return x(fn,n,t)}};o()(["click","mouseup","mousedown","mousemove","keypress","keydown","keyup"],m(fn)),o()(["resize","focus","blur"],m(ln)),m(ln,At)("scroll")}if(it.enabled&&(An||l))for(var v in g=f.getTime(),it.configurations)if(it.configurations.hasOwnProperty(v)){var h=it.configurations[v];clearInterval(h.activityInterval),Ft(h,t,e)}}(n,t,e,r,a)}))},on.trackStructEvent=function(n,t,e,r,o,a,i,c){qt((function(){nn.trackStructEvent(n,t,e,r,o,Et(a),i,c)}))},on.trackSelfDescribingEvent=function(n,t,e,r){qt((function(){nn.trackSelfDescribingEvent(n,Et(t),e,r)}))},on.trackUnstructEvent=function(n,t,e){qt((function(){nn.trackSelfDescribingEvent(n,Et(t),e)}))},on.addTrans=function(n,t,e,r,o,a,i,c,u,s,f){Jn.transaction={orderId:n,affiliation:t,total:e,tax:r,shipping:o,city:a,state:i,country:c,currency:u,context:s,tstamp:f}},on.addItem=function(n,t,e,r,o,a,i,c,u){Jn.items.push({orderId:n,sku:t,name:e,category:r,price:o,quantity:a,currency:i,context:c,tstamp:u})},on.trackTrans=function(){qt((function(){var n,t,e,r,o,a,i,c,u,s,f;n=Jn.transaction.orderId,t=Jn.transaction.affiliation,e=Jn.transaction.total,r=Jn.transaction.tax,o=Jn.transaction.shipping,a=Jn.transaction.city,i=Jn.transaction.state,c=Jn.transaction.country,u=Jn.transaction.currency,s=Jn.transaction.context,f=Jn.transaction.tstamp,nn.trackEcommerceTransaction(n,t,e,r,o,a,i,c,u,Et(s),f);for(var l=0;l<Jn.items.length;l++){var p=Jn.items[l];Ht(p.orderId,p.sku,p.name,p.category,p.price,p.quantity,p.currency,p.context,p.tstamp)}Jn={transaction:{},items:[]}}))},on.trackLinkClick=function(n,t,e,r,o,a,i){qt((function(){nn.trackLinkClick(n,t,e,r,o,Et(a),i)}))},on.trackAdImpression=function(n,t,e,r,o,a,i,c,u,s){qt((function(){
|
||||
nn.trackAdImpression(n,t,e,r,o,a,i,c,Et(u),s)}))},on.trackAdClick=function(n,t,e,r,o,a,i,c,u,s,f){qt((function(){nn.trackAdClick(n,t,e,r,o,a,i,c,u,Et(s),f)}))},on.trackAdConversion=function(n,t,e,r,o,a,i,c,u,s,f){qt((function(){nn.trackAdConversion(n,t,e,r,o,a,i,c,u,Et(s),f)}))},on.trackSocialInteraction=function(n,t,e,r,o){qt((function(){nn.trackSocialInteraction(n,t,e,Et(r),o)}))},on.trackAddToCart=function(n,t,e,r,o,a,i,c){qt((function(){nn.trackAddToCart(n,t,e,r,o,a,Et(i),c)}))},on.trackRemoveFromCart=function(n,t,e,r,o,a,i,c){qt((function(){nn.trackRemoveFromCart(n,t,e,r,o,a,Et(i),c)}))},on.trackSiteSearch=function(n,t,e,r,o,a){qt((function(){nn.trackSiteSearch(n,t,e,r,Et(o),a)}))},on.trackTiming=function(n,t,e,r,o,a){qt((function(){nn.trackSelfDescribingEvent({schema:"iglu:com.snowplowanalytics.snowplow/timing/jsonschema/1-0-0",data:{category:n,variable:t,timing:e,label:r}},Et(o),a)}))},on.trackConsentWithdrawn=function(n,t,e,r,o,a,i){qt((function(){nn.trackConsentWithdrawn(n,t,e,r,o,Et(a),i)}))},on.trackConsentGranted=function(n,t,e,r,o,a,i){qt((function(){nn.trackConsentGranted(n,t,e,r,o,Et(a),i)}))},on.trackEnhancedEcommerceAction=function(n,t,e){var r=rt.concat(t||[]);rt.length=0,qt((function(){nn.trackSelfDescribingEvent({schema:"iglu:com.google.analytics.enhanced-ecommerce/action/jsonschema/1-0-0",data:{action:n}},Et(r),e)}))},on.addEnhancedEcommerceActionContext=function(n,t,e,r,o,a,i,c,u,s){rt.push({schema:"iglu:com.google.analytics.enhanced-ecommerce/actionFieldObject/jsonschema/1-0-0",data:{id:n,affiliation:t,revenue:M(e),tax:M(r),shipping:M(o),coupon:a,list:i,step:N(c),option:u,currency:s}})},on.addEnhancedEcommerceImpressionContext=function(n,t,e,r,o,a,i,c,u){rt.push({schema:"iglu:com.google.analytics.enhanced-ecommerce/impressionFieldObject/jsonschema/1-0-0",data:{id:n,name:t,list:e,brand:r,category:o,variant:a,position:N(i),price:M(c),currency:u}})},on.addEnhancedEcommerceProductContext=function(n,t,e,r,o,a,i,c,u,s,f){rt.push({schema:"iglu:com.google.analytics.enhanced-ecommerce/productFieldObject/jsonschema/1-0-0",data:{id:n,name:t,list:e,brand:r,category:o,variant:a,price:M(i),quantity:N(c),coupon:u,position:N(s),currency:f}})},on.addEnhancedEcommercePromoContext=function(n,t,e,r,o){rt.push({schema:"iglu:com.google.analytics.enhanced-ecommerce/promoFieldObject/jsonschema/1-0-0",data:{id:n,name:t,creative:e,position:r,currency:o}})},on.enableGdprContext=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=Z[n];o?(nt.gdprBasis=!0,ft={gdprBasis:o,gdprDocId:t,gdprDocVer:e,gdprDocDesc:r}):O("enableGdprContext failed. basisForProcessing must be set to one of: consent, legalObligation, vitalInterests publicTask, legitimateInterests")},on.addGlobalContexts=function(n){nn.addGlobalContexts(n)},on.removeGlobalContexts=function(n){nn.removeGlobalContexts(n)},on.clearGlobalContexts=function(){nn.clearGlobalContexts()},on.enableErrorTracking=function(n,t){
|
||||
Xn.enableErrorTracking(n,t,Et())},on.trackError=function(n,t,e,r,o,a){var i=Et(a);Xn.trackError(n,t,e,r,o,i)},on.preservePageViewId=function(){ot=!0},on.disableAnonymousTracking=function(n){n?(a.stateStorageStrategy=n,a.anonymousTracking=!1,Fn=q(a)):a.anonymousTracking=!1,Un=X(a),Nn=Y(a),Mn=W(a),$n.setUseLocalStorage("localStorage"==Fn||"cookieAndLocalStorage"==Fn),$n.setAnonymousTracking(Mn),Pt(),$n.executeQueue()},on.enableAnonymousTracking=function(n){a.anonymousTracking=n||!0,Un=X(a),Nn=Y(a),Mn=W(a),Nn||Lt(),$n.setAnonymousTracking(Mn)},on.clearUserData=Tt,on.setDebug=function(n){en=Boolean(n).valueOf(),Yt()},an=function(n){var t={};return"object"===sn(n)&&null!==n&&Object.getOwnPropertyNames(n).forEach((function(e,r,o){var a;"function"==typeof n[e]&&(t[e]=(a=n[e],function(){try{return a.apply(this,arguments)}catch(n){}}))})),t}(on),Yt(),cn}var rt=e(53);function ot(n,t){var e,r=document,a=window,i="js-"+rt.a,c={outQueues:[],bufferFlushers:[],expireDateTime:null,hasLoaded:!1,registeredOnLoadHandlers:[],pageViewId:null};function u(){var n;if(!c.hasLoaded)for(c.hasLoaded=!0,n=0;n<c.registeredOnLoadHandlers.length;n++)c.registeredOnLoadHandlers[n]();return!0}return a.Snowplow={getTrackerCf:function(n){var e=new et(t,"",i,c,{});return e.setCollectorCf(n),e},getTrackerUrl:function(n){var e=new et(t,"",i,c,{});return e.setCollectorUrl(n),e},getAsyncTracker:function(){return new et(t,"",i,c,{})}},x(a,"beforeunload",(function(){var n;if(o()(c.bufferFlushers,(function(n){n()})),c.expireDateTime)do{if(n=new Date,0===Array.prototype.filter.call(c.outQueues,(function(n){return n.length>0})).length)break}while(n.getTime()<c.expireDateTime)}),!1),r.addEventListener?x(r,"DOMContentLoaded",(function n(){r.removeEventListener("DOMContentLoaded",n,!1),u()})):r.attachEvent&&(r.attachEvent("onreadystatechange",(function n(){"complete"===r.readyState&&(r.detachEvent("onreadystatechange",n),u())})),r.documentElement.doScroll&&a===a.top&&function n(){if(!c.hasLoaded){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(n,0)}u()}}()),new RegExp("WebKit").test(navigator.userAgent)&&(e=setInterval((function(){(c.hasLoaded||/loaded|complete/.test(r.readyState))&&(clearInterval(e),u())}),10)),x(a,"load",u,!1),new B(et,i,c,n,t)}var at=new ot([],"snowplowTracker"),it=function(){at.push(arguments)}}])}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 9A9 9 0 0 1 0 9l9-9a9 9 0 0 1 9 9z" fill="#4758A9"/><path d="M8.98 9H9v-.02L8.98 9z" fill="#F0F0F0"/><path d="M9 4.7V0a9 9 0 0 0-9 9h4.7V6.36L7.34 9h1.64L9 8.98V7.34L6.36 4.7H9z" fill="#F0F0F0"/><path d="M12.91 6.65a1.57 1.57 0 1 0 0-3.13 1.57 1.57 0 0 0 0 3.13z" fill="#57A863"/><path d="M4.55 1.17a9.04 9.04 0 0 0-3.38 3.38V9h2.35V3.52H9V1.17H4.55z" fill="#ED5565"/><path d="M9 7.9L5.8 4.7H4.7L9 9V7.9zM15.65 4.7h-5.48v2.34h5.48V4.7z" fill="#ED5565"/><path d="M10.17 10.57v1.56H11a2.73 2.73 0 0 0 3.83 0H15.65v-1.56h-5.48z" fill="#FC0"/><path d="M10.17 6.65V9c0 2.1 2.74 2.74 2.74 2.74s2.74-.64 2.74-2.74V6.65h-5.48z" fill="#4A89DC"/><path d="M12.91 7.9c-.68 0-.68.63-1.37.63-.68 0-.68-.62-1.37-.62V9c.69 0 .69.62 1.37.62.69 0 .69-.63 1.37-.63.69 0 .69.63 1.37.63.69 0 .69-.63 1.37-.63V7.9c-.68 0-.68.63-1.37.63-.68 0-.68-.62-1.37-.62zM12.91 5.71c-.68 0-.68.63-1.37.63-.68 0-.68-.63-1.37-.63v1.1c.69 0 .69.62 1.37.62.69 0 .69-.62 1.37-.62.69 0 .69.62 1.37.62.69 0 .69-.62 1.37-.62V5.7c-.68 0-.68.63-1.37.63-.68 0-.68-.63-1.37-.63z" fill="#F3F3F3"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,8 +0,0 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2947],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},66230:e=>{e.exports={button:"button-h8C3IU2n","button-children":"button-children-h8C3IU2n",hiddenArrow:"hiddenArrow-h8C3IU2n",invisibleFocusHandler:"invisibleFocusHandler-h8C3IU2n"}},99171:e=>{e.exports={button:"button-1ARG85Og",disabled:"disabled-1ARG85Og",hidden:"hidden-1ARG85Og",icon:"icon-1ARG85Og",dropped:"dropped-1ARG85Og"}},79756:e=>{e.exports={placeholder:"placeholder-fKHYe1Lk"}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>v,InputClasses:()=>g});var o=n(59496),r=n(97754),l=n(88537),s=n(66092),i=n(90186),a=n(86332),c=n(95604);var u=n(21103),d=n.n(u);function f(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function p(e,t,n,o){const{removeRoundBorder:l,className:s,intent:i="default",borderStyle:a="thin",size:u,highlight:p,disabled:h,readonly:g,stretch:b,noReadonlyStyles:m,isFocused:v}=e,C=f(null!=l?l:(0,c.getGroupCellRemoveRoundBorders)(n))
|
||||
;return r(d().container,d()["intent-"+i],d()["border-"+a],u&&d()["size-"+u],C,p&&d()["with-highlight"],h&&d().disabled,g&&!m&&d().readonly,v&&d().focused,b&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function h(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return d().highlight;const l=f(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,l)}const g={FontSizeMedium:(0,l.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,l.ensureDefined)(d()["font-size-large"])},b={passive:!1};function m(e,t){const{id:n,role:r,onFocus:l,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:f,onMouseUp:g,onKeyDown:m,onClick:v,tabIndex:C,startSlot:x,middleSlot:S,endSlot:w,onWheel:y,onWheelNoPassive:R=null}=e,{isGrouped:E,cellState:k,disablePositionAdjustment:I=!1}=(0,o.useContext)(a.ControlGroupContext),M=function(e,t=null,n){const r=(0,o.useRef)(null),l=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{if(null===r.current||null===l.current)return;const[e,t,n]=l.current;null!==t&&r.current.addEventListener(e,t,n)},[]),i=(0,o.useCallback)(()=>{if(null===r.current||null===l.current)return;const[e,t,n]=l.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{i(),r.current=e,s()},[]);return(0,o.useEffect)(()=>(l.current=[e,t,n],s(),i),[e,t,n]),a}("wheel",R,b);return o.createElement("span",{id:n,role:r,className:p(e,E,k,I),tabIndex:C,ref:(0,s.useMergedRefs)([t,M]),onFocus:l,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:f,onMouseUp:g,onKeyDown:m,onClick:v,onWheel:y,...(0,i.filterDataProps)(e),...(0,i.filterAriaProps)(e)},x,S,w,o.createElement("span",{className:h(e,k)}))}m.displayName="ControlSkeleton";const v=o.forwardRef(m)},78274:(e,t,n)=>{"use strict";n.d(t,{BeforeSlot:()=>i,StartSlot:()=>a,MiddleSlot:()=>c,EndSlot:()=>u,AfterSlot:()=>d});var o=n(59496),r=n(97754),l=n(10306),s=n.n(l);function i(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["before-slot"],t)},n)}function a(e){const{className:t,interactive:n=!0,icon:l=!1,children:i}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,l&&s().icon,t)},i)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function u(e){const{className:t,interactive:n=!0,icon:l=!1,children:i}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,l&&s().icon,t)},i)}function d(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>v});var o=n(59496),r=n(97754),l=n(90186),s=n(47201),i=n(48907),a=n(66092),c=n(48027),u=n(29202),d=n(45812),f=n(67029),p=n(78274),h=n(66579),g=n.n(h);function b(e){return!(0,l.isAriaAttribute)(e)&&!(0,l.isDataAttribute)(e)}function m(e){
|
||||
const{id:t,title:n,role:s,tabIndex:i,placeholder:a,name:c,type:u,value:d,defaultValue:h,draggable:m,autoComplete:v,autoFocus:C,maxLength:x,min:S,max:w,step:y,pattern:R,inputMode:E,onSelect:k,onFocus:I,onBlur:M,onKeyDown:F,onKeyUp:A,onKeyPress:N,onChange:O,onDragStart:z,size:B="medium",className:D,inputClassName:j,disabled:_,readonly:H,containerTabIndex:K,startSlot:L,endSlot:T,reference:W,containerReference:V,onContainerFocus:G,...P}=e,U=(0,l.filterProps)(P,b),Q={...(0,l.filterAriaProps)(P),...(0,l.filterDataProps)(P),id:t,title:n,role:s,tabIndex:i,placeholder:a,name:c,type:u,value:d,defaultValue:h,draggable:m,autoComplete:v,autoFocus:C,maxLength:x,min:S,max:w,step:y,pattern:R,inputMode:E,onSelect:k,onFocus:I,onBlur:M,onKeyDown:F,onKeyUp:A,onKeyPress:N,onChange:O,onDragStart:z};return o.createElement(f.ControlSkeleton,{...U,disabled:_,readonly:H,tabIndex:K,className:r(g().container,D),size:B,ref:V,onFocus:G,startSlot:L,middleSlot:o.createElement(p.MiddleSlot,null,o.createElement("input",{...Q,className:r(g().input,j,L&&g()["with-start-slot"],T&&g()["with-end-slot"]),disabled:_,readOnly:H,ref:W})),endSlot:T})}function v(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:l,onBlur:f,reference:p,containerReference:h=null}=e,g=(0,o.useRef)(null),b=(0,o.useRef)(null),[v,C]=(0,u.useFocus)(),x=t?void 0:v?-1:r,S=t?void 0:v?r:-1,{isMouseDown:w,handleMouseDown:y,handleMouseUp:R}=(0,d.useIsMouseDown)(),E=(0,s.createSafeMulticastEventHandler)(C.onFocus,(function(e){n&&!w.current&&(0,i.selectAllContent)(e.currentTarget)}),l),k=(0,s.createSafeMulticastEventHandler)(C.onBlur,f),I=(0,o.useCallback)(e=>{g.current=e,p&&("function"==typeof p&&p(e),"object"==typeof p&&(p.current=e))},[g,p]);return o.createElement(m,{...e,isFocused:v,containerTabIndex:x,tabIndex:S,onContainerFocus:function(e){b.current===e.target&&null!==g.current&&g.current.focus()},onFocus:E,onBlur:k,reference:I,containerReference:(0,a.useMergedRefs)([b,h]),onMouseDown:y,onMouseUp:R})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>l});var o=n(47201),r=n(29202);function l(e){const{onFocus:t,onBlur:n,intent:l,highlight:s,disabled:i}=e,[a,c]=(0,r.useFocus)(void 0,i),u=(0,o.createSafeMulticastEventHandler)(i?void 0:c.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(i?void 0:c.onBlur,n);return{...e,intent:l||(a?"primary":"default"),highlight:null!=s?s:a,onFocus:u,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const l={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,l]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r})
|
||||
;var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},71131:(e,t,n)=>{"use strict";n.d(t,{useScrollIntoViewHelper:()=>d});var o=n(59496),r=n(88537),l=n(74991);const s={duration:200,additionalScroll:0},i={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function a(e,t){const n=i[e];return t[n.scrollSize]>t[n.clientSize]}function c(e,t,n,o,r,s){const a=function(e,t,n,o=0){const r=i[e];return{start:-1*o,middle:-1*(Math.floor(n[r.size]/2)-Math.floor(t[r.size]/2)),end:-1*(n[r.size]-t[r.size])+o}}(e,o,r,s.additionalScroll);let c=0;if(function(e,t,n){const o=i[e];return t[o.start]<n[o.start]-n[o.size]/2||t[o.end]>n[o.end]+n[o.size]/2}(e,o,r))c=a.middle;else{const t=function(e){const{start:t,middle:n,end:o}=e,r=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(o),{key:"end",value:Math.sign(o)}]]),l=Math.min(...r.keys());return r.get(l)}(function(e,t,n,o=0){const r=i[e],l=t[r.start]+Math.floor(t[r.size]/2),s=n[r.start]+Math.floor(n[r.size]/2);return{start:t[r.start]-n[r.start]-o,middle:l-s,end:t[r.end]-n[r.end]+o}}(e,o,r,s.additionalScroll));c=void 0!==t?a[t.key]:0}return function(e){const{additionalScroll:t=0,duration:n=l.dur,func:o=l.easingFunc.easeInOutCubic,onScrollEnd:r,target:s,wrap:i,direction:a="vertical"}=e;let{targetRect:c,wrapRect:u}=e;c=null!=c?c:s.getBoundingClientRect(),u=null!=u?u:i.getBoundingClientRect();const d=("vertical"===a?c.top-u.top:c.left-u.left)+t,f="vertical"===a?"scrollTop":"scrollLeft",p=i?i[f]:0;let h,g=0;return g=window.requestAnimationFrame((function e(t){let l;if(h?l=t-h:(l=0,h=t),l>=n)return i[f]=p+d,void(r&&r());const s=p+d*o(l/n);i[f]=Math.floor(s),g=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(g),r&&r()}}({...s,target:t,targetRect:o,wrap:n,wrapRect:r,additionalScroll:c,direction:e})}class u{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=s){if(null!==this._container&&null!==e&&!function(e,t){const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}(e,this._container)){const n=e.getBoundingClientRect(),o=this._container.getBoundingClientRect();this.stopScroll(),a("vertical",this._container)&&(this._stopVerticalScroll=c("vertical",e,this._container,n,o,this._modifyOptions("vertical",t))),a("horizontal",this._container)&&(this._stopHorizontalScroll=c("horizontal",e,this._container,n,o,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()}
|
||||
getContainer(){return this._container}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}function d(e){const t=(0,o.useRef)(null);return(0,o.useEffect)(()=>(t.current=new u(e),()=>(0,r.ensureNotNull)(t.current).destroy()),[]),t}},22064:(e,t,n)=>{"use strict";n.d(t,{createDomId:()=>a,joinDomIds:()=>c});const o=/\s/g;function r(e){return"string"==typeof e}function l(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function s(e){return e.trim().length>0}function i(e){return e.replace(o,"-")}function a(...e){const t=e.map(l).filter(r).filter(s).map(i);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(l).filter(r).filter(s).join(" ")}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},72887:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosureView:()=>m});var o=n(59496),r=n(97754),l=n.n(r),s=n(66092),i=n(67029),a=n(78274),c=n(50628),u=n(88537);function d(e,t){return(0,o.useCallback)(()=>function(e,t){const n=(0,u.ensureNotNull)(e).getBoundingClientRect(),o={x:n.left,y:n.top+n.height};return t&&(o.overrideWidth=n.width),o}(e.current,t),[e,t])}var f=n(86240);const p=parseInt(f["size-header-height"]);function h(e){const{button:t,popupChildren:n,buttonRef:r,listboxId:l,listboxClassName:s,listboxTabIndex:i,matchButtonAndListboxWidths:a,isOpened:u,scrollWrapReference:f,listboxReference:h,onClose:g,onOpen:b,onListboxFocus:m,onListboxBlur:v,onListboxKeyDown:C,listboxAria:x,repositionOnScroll:S=!0,closeOnHeaderOverlap:w=!1}=e,y=d(r,a),R=w?p:0;return o.createElement(o.Fragment,null,t,o.createElement(c.PopupMenu,{...x,id:l,className:s,tabIndex:i,isOpened:u,position:y,repositionOnScroll:S,onClose:g,onOpen:b,doNotCloseOn:r.current,reference:h,scrollWrapReference:f,onFocus:m,onBlur:v,onKeyDown:C,closeOnScrollOutsideOffset:R},n))}var g=n(93211),b=n(66230);const m=o.forwardRef((e,t)=>{const{listboxId:n,className:r,listboxClassName:c,listboxTabIndex:u,hideArrowButton:d,matchButtonAndListboxWidths:f,disabled:p,isOpened:m,scrollWrapReference:v,repositionOnScroll:C,closeOnHeaderOverlap:x,listboxReference:S,size:w="medium",onClose:y,onOpen:R,onListboxFocus:E,onListboxBlur:k,onListboxKeyDown:I,buttonChildren:M,children:F,caretClassName:A,listboxAria:N,...O}=e,z=(0,o.useRef)(null),B=!d&&o.createElement(a.EndSlot,null,o.createElement(g.Caret,{isDropped:m,disabled:p,className:A
|
||||
}));return o.createElement(h,{buttonRef:z,listboxId:n,listboxClassName:c,listboxTabIndex:u,isOpened:m,onClose:y,onOpen:R,listboxReference:S,scrollWrapReference:v,onListboxFocus:E,onListboxBlur:k,onListboxKeyDown:I,listboxAria:N,matchButtonAndListboxWidths:f,button:o.createElement(i.ControlSkeleton,{...O,"data-role":"listbox",disabled:p,className:l()(b.button,r),size:w,ref:(0,s.useMergedRefs)([z,t]),middleSlot:o.createElement(a.MiddleSlot,null,o.createElement("span",{className:l()(b["button-children"],d&&b.hiddenArrow)},M)),endSlot:B}),popupChildren:F,repositionOnScroll:C,closeOnHeaderOverlap:x})});m.displayName="ControlDisclosureView"},68721:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>c});var o=n(59496),r=n(88537),l=n(29202),s=n(47201),i=n(22064),a=n(35749);function c(e){const{intent:t,highlight:n,...c}=e,{isFocused:u,...d}=function(e){const{id:t,disabled:n,buttonTabIndex:c=0,onFocus:u,onBlur:d,onClick:f}=e,[p,h]=(0,o.useState)(!1),[g,b]=(0,l.useFocus)(),m=g||p,v=void 0!==t?(0,i.createDomId)(t,"listbox"):void 0,C=(0,o.useRef)(null),x=(0,o.useCallback)(e=>(0,r.ensureNotNull)(C.current).focus(e),[C]),S=(0,o.useRef)(null),w=(0,o.useCallback)(()=>(0,r.ensureNotNull)(S.current).focus(),[S]),y=(0,o.useCallback)(()=>h(!0),[h]),R=(0,o.useCallback)((e=!1)=>{h(!1);const{activeElement:t}=document;t&&(0,a.isTextEditingField)(t)||x({preventScroll:e})},[h,x]),E=(0,o.useCallback)(()=>{p?R():y()},[p,R,y]),k=n?[]:[u,b.onFocus],I=n?[]:[d,b.onBlur],M=n?[]:[f,E],F=(0,s.createSafeMulticastEventHandler)(...k),A=(0,s.createSafeMulticastEventHandler)(...I),N=(0,s.createSafeMulticastEventHandler)(...M);return{listboxId:v,isOpened:p,isFocused:m,buttonTabIndex:n?-1:c,listboxTabIndex:-1,open:y,close:R,toggle:E,onOpen:w,buttonFocusBindings:{onFocus:F,onBlur:A},onButtonClick:N,buttonRef:C,listboxRef:S,buttonAria:{"aria-controls":p?v:void 0,"aria-expanded":p,"aria-disabled":n}}}(c);return{...d,isFocused:u,highlight:null!=n?n:u,intent:null!=t?t:u?"primary":"default"}}},26597:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>s,useComposedKeyboardActionHandlers:()=>i,useKeyboardEventHandler:()=>a,useKeyboardToggle:()=>c,useKeyboardClose:()=>u,useKeyboardOpen:()=>d});var o=n(59496),r=n(68335);const l=()=>!0;function s(e,t,n=l){return(0,o.useCallback)(o=>{const r=e.map(e=>"function"==typeof e?e():e);return!(!n()||!r.includes(o))&&(t(),!0)},[...e,t,n])}function i(...e){return(0,o.useCallback)(t=>{for(const n of e)if(n(t))return!0;return!1},[...e])}function a(...e){const t=i(...e);return(0,o.useCallback)(e=>{t((0,r.hashFromEvent)(e))&&e.preventDefault()},[t])}function c(e){return s([13,32],e)}function u(e,t){return s([9,(0,o.useCallback)(()=>r.Modifiers.Shift+9,[]),27],t,(0,o.useCallback)(()=>e,[e]))}function d(e,t){return s([40,38],t,(0,o.useCallback)(()=>!e,[e]))}},93211:(e,t,n)=>{"use strict";n.d(t,{Caret:()=>u});var o=n(59496),r=n(97754),l=n.n(r),s=n(9745),i=n(89974),a=n(99171);function c(e){const{isDropped:t}=e;return o.createElement(s.Icon,{className:l()(a.icon,t&&a.dropped),icon:i})}function u(e){
|
||||
const{className:t,disabled:n,isDropped:r}=e;return o.createElement("span",{className:l()(a.button,n&&a.disabled,t)},o.createElement(c,{isDropped:r}))}},58368:(e,t,n)=>{"use strict";n.d(t,{Select:()=>S});var o=n(59496),r=n(22064),l=n(66092),s=n(88537),i=n(71131);var a=n(16396),c=n(4889),u=n(43370);var d=n(62820),f=n(26597);function p(e,t){return e>=0?e%t:(t-Math.abs(e)%t)%t}const h={next:[40,()=>(0,d.isRtl)()?37:39],previous:[38,()=>(0,d.isRtl)()?39:37],first:[33,36],last:[34,35]};var g=n(72887),b=n(68721),m=n(79756);function v(e){return!e.readonly}function C(e,t){var n;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,r.createDomId)(e,"item",null==t?void 0:t.value)}function x(e){var t,n;const{selectedItem:r,placeholder:l}=e;if(!r)return o.createElement("span",{className:m.placeholder},l);const s=null!==(n=null!==(t=r.selectedContent)&&void 0!==t?t:r.content)&&void 0!==n?n:r.value;return o.createElement("span",null,s)}const S=o.forwardRef((e,t)=>{const{id:n,menuClassName:d,menuItemClassName:m,tabIndex:S,disabled:w,highlight:y,intent:R,hideArrowButton:E,placeholder:k,addPlaceholderToItems:I=!0,value:M,"aria-labelledby":F,onFocus:A,onBlur:N,onClick:O,onChange:z,repositionOnScroll:B=!0,...D}=e;let{items:j}=e;if(k&&I){j=[{value:void 0,content:k,id:(0,r.createDomId)(n,"placeholder")},...j]}const{listboxId:_,isOpened:H,isFocused:K,buttonTabIndex:L,listboxTabIndex:T,highlight:W,intent:V,open:G,onOpen:P,close:U,toggle:Q,buttonFocusBindings:q,onButtonClick:J,buttonRef:Y,listboxRef:X,buttonAria:Z}=(0,b.useControlDisclosure)({id:n,disabled:w,buttonTabIndex:S,intent:R,highlight:y,onFocus:A,onBlur:N,onClick:O}),$=j.filter(v),ee=$.find(e=>e.value===M),[te,ne,oe]=function(e,t){const n=(0,o.useRef)(null),r=(0,o.useRef)(new WeakMap),l=(0,i.useScrollIntoViewHelper)(n.current),a=(0,o.useCallback)(()=>{null!==l.current&&null!==n.current&&l.current.getContainer()!==n.current&&l.current.setContainer(n.current)},[l,n]),c=(0,o.useCallback)(e=>{n.current=e},[n]),u=(0,o.useCallback)((e,t)=>{r.current.set(e,t)},[r]),d=(0,o.useCallback)((e,t)=>{if(!e)return;const n=r.current.get(e);n&&(a(),(0,s.ensureNotNull)(l.current).scrollTo(n,t))},[r,l]);return(0,o.useEffect)(()=>d(e,t),[d,e]),[c,u,d]}(ee),re=(0,r.joinDomIds)(F,n),le=re.length>0?re:void 0,se=(0,o.useMemo)(()=>({role:"listbox","aria-labelledby":F,"aria-activedescendant":C(n,ee)}),[F,ee]),ie=(0,o.useCallback)(e=>e.value===M,[M]),ae=(0,o.useCallback)(e=>z&&z(e.value),[z]),ce=function(e,t,n,r=!0,l={}){const s=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(o===e.length-1&&!r)return;const l=p(o+1,e.length);n&&n(e[l])},[e,t,n,r]),i=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(0===o&&!r)return;const l=p(o-1,e.length);n&&n(e[l])},[e,t,n,r]),a=(0,o.useCallback)(()=>{n&&n(e[0])},[n,e]),c=(0,o.useCallback)(()=>{n&&n(e[e.length-1])},[n,e]),{next:u=h.next,previous:d=h.previous,first:g=h.first,last:b=h.last}=l;return(0,f.useComposedKeyboardActionHandlers)((0,f.useKeyboardActionHandler)(u,s),(0,f.useKeyboardActionHandler)(d,i),(0,f.useKeyboardActionHandler)(g,a),(0,
|
||||
f.useKeyboardActionHandler)(b,c))}($,ie,ae,!1,{next:[40],previous:[38]}),ue=(0,f.useKeyboardToggle)(Q),de=(0,f.useKeyboardClose)(H,U),fe=(0,f.useKeyboardOpen)(H,G),pe=(0,f.useKeyboardEventHandler)(ue,de,fe),he=(0,f.useKeyboardEventHandler)(ce,ue,de),ge=function(e){const t=(0,o.useRef)(""),n=(0,o.useMemo)(()=>(0,c.default)(()=>{t.current=""},500),[]),r=(0,o.useMemo)(()=>(0,u.default)(e,200),[e]);return(0,o.useCallback)(e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,r(t.current,e),n())},[n,r])}((e,t)=>{const n=function(e,t){return e.find(e=>{var n;const o=t.toLowerCase();return!e.readonly&&(!e.readonly&&("string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||String(null!==(n=e.value)&&void 0!==n?n:"").toLowerCase().startsWith(o)))})}($,e);void 0!==n&&z&&(t.stopPropagation(),H||G(),z(n.value))});return o.createElement(g.ControlDisclosureView,{...D,...Z,...q,id:n,role:"button",tabIndex:L,"aria-owns":Z["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":le,disabled:w,hideArrowButton:E,isFocused:K,isOpened:H,highlight:W,intent:V,ref:(0,l.useMergedRefs)([Y,t]),onClick:J,onOpen:function(){oe(ee,{duration:0}),P()},onClose:U,onKeyDown:function(e){pe(e),e.defaultPrevented||ge(e)},listboxId:_,listboxTabIndex:T,listboxClassName:d,listboxAria:se,listboxReference:X,scrollWrapReference:te,onListboxKeyDown:function(e){he(e),e.defaultPrevented||ge(e)},buttonChildren:o.createElement(x,{selectedItem:ee,placeholder:k}),repositionOnScroll:B},j.map((e,t)=>{var r;if(e.readonly)return o.createElement(o.Fragment,{key:"readonly_item_"+t},e.content);const l=C(n,e);return o.createElement(a.PopupMenuItem,{key:l,id:l,className:m,role:"option","aria-selected":M===e.value,isActive:M===e.value,label:null!==(r=e.content)&&void 0!==r?r:e.value,onClick:be,onClickArg:e.value,isDisabled:e.disabled,reference:t=>ne(e,t)})}));function be(e){z&&z(e)}});S.displayName="Select"},89974:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 7" width="11" height="7" fill="none"><path stroke="currentColor" stroke-width="1.3" d="M.5 1.5l5 4 5-4"/></svg>'},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","media-mf-phone-landscape":"screen and (min-width: 568px)","media-mf-tablet-vertical":"screen and (min-width: 768px)","media-mf-tablet-landscape":"screen and (min-width: 1024px)","media-mf-laptop":"screen and (min-width: 1280px)"}')}}]);
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M74.94 13.1a4.86 4.86 0 0 0 6.38-.59C88.2 5.27 97.6 2.49 104.9 6.34c9.42 4.96 11.8 19.08 5.3 31.52-3.4 6.53-8.57 11.3-14.07 13.65a2.96 2.96 0 0 0-1.82 2.64c-.43 26-19.51 46.97-43.24 48.3a2 2 0 0 0-1.66 1.07c-6.47 12.4-21.1 17.52-32.67 11.43-11.56-6.09-15.7-21.09-9.22-33.5l.6-1.08c.77-1.32.87-2.94.21-4.32a52 52 0 0 1-5.06-23.4C3.73 25.51 24.47 3.86 49.6 4.28c9.43.15 18.15 3.4 25.33 8.82z" fill="#2A2E39"/><rect x="17" y="20" width="82" height="82" rx="15" fill="#1E222D" stroke="#B2B5BE" stroke-width="2"/><path d="M84.09 45.14a1 1 0 0 0 .64 1.85 28.43 28.43 0 0 0 4.38-.9A23.91 23.91 0 0 1 85 49.83a1 1 0 0 0-.42.87c.02.54.04 1.07.04 1.61 0 16.55-12.6 35.58-35.58 35.58a35.3 35.3 0 0 1-15.65-3.61 26.82 26.82 0 0 0 15.56-5.68 1 1 0 0 0-.6-1.79 11.95 11.95 0 0 1-10.44-6.7.18.18 0 0 1 .11-.04h.74c1.26 0 2.49-.14 3.63-.45a1 1 0 0 0-.06-1.94 12.11 12.11 0 0 1-9.5-10.06l.07.01c1.5.53 3.14.8 4.72.84a1 1 0 0 0 .57-1.83 11.87 11.87 0 0 1-4.29-14.55 37.35 37.35 0 0 0 26.23 12.64 1 1 0 0 0 1.03-1.22c-.2-.84-.28-1.74-.28-2.7a11.85 11.85 0 0 1 20.5-8.11 1 1 0 0 0 .93.3c2.04-.41 4-1.04 5.86-1.88a11.9 11.9 0 0 1-4.07 4.03z" stroke="#B2B5BE" stroke-width="2" stroke-linejoin="round"/><circle cx="96.16" cy="22.62" r="11.52" fill="#1848CC"/><path d="M108.79 22.33A12.52 12.52 0 1 1 84.94 17" stroke="#2A2E39" stroke-width="2"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h120v120H0z"/></clipPath></defs></svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |