New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tradeshift/elements.dialog

Package Overview
Dependencies
Maintainers
7
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tradeshift/elements.dialog - npm Package Compare versions

Comparing version 0.18.0 to 0.18.1

2

lib/dialog.umd.js

@@ -1,1 +0,1 @@

!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@tradeshift/elements")):"function"==typeof define&&define.amd?define(["exports","@tradeshift/elements"],o):o(((t=t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{},t.ts.elements.dialog=t.ts.elements.dialog||{}),t.ts.elements)}(this,(function(t,o){"use strict";function e(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(){return(n=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function i(t,o){return o||(o=t.slice(0)),t.raw=o,t}var s={remove:'<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t<g id="Symbols" stroke="none" stroke-width="1">\n\t\t<g id="card/5.-File-card/standard" transform="translate(-262.000000, -22.000000)">\n\t\t\t<g id="5.-File-card">\n\t\t\t\t<g id="icon/UI-library/clear" transform="translate(258.000000, 18.000000)">\n\t\t\t\t\t<path fill="currentColor" d="M4,12 C4,7.581722 7.59071231,4 12,4 C16.418278,4 20,7.59071231 20,12 C20,16.418278 16.4092877,20 12,20 C7.581722,20 4,16.4092877 4,12 Z M12,13.1313708 L15.0343146,16.1656854 L16.1656854,15.0343146 L13.1313708,12 L16.1656854,8.96568542 L15.0343146,7.83431458 L12,10.8686292 L8.96568542,7.83431458 L7.83431458,8.96568542 L10.8686292,12 L7.83431458,15.0343146 L8.96568542,16.1656854 L12,13.1313708 Z" id="Icon"></path>\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</g>\n\t</g>\n</svg>\n',download:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/download" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M12.1590909,17.3636364 C11.9999992,17.3636364 11.8553726,17.2840917 11.7252066,17.125 L7.34297521,11.571281 C7.25619791,11.4555779 7.21280992,11.3615706 7.21280992,11.2892562 C7.21280992,11.1012387 7.35020524,11.0072314 7.625,11.0072314 L10.7272727,11.0072314 L10.7272727,4 L13.5909091,4 L13.5909091,11.0072314 L16.6931818,11.0072314 C16.9679766,11.0072314 17.1053719,11.1012387 17.1053719,11.2892562 C17.1053719,11.3615706 17.0619839,11.4555779 16.9752066,11.571281 L12.5929752,17.125 C12.4772721,17.2840917 12.3326455,17.3636364 12.1590909,17.3636364 Z M18.8409091,17.8409091 C18.971075,17.8409091 19.0831607,17.8879128 19.1771694,17.9819215 C19.2711782,18.0759302 19.3181818,18.1880159 19.3181818,18.3181818 L19.3181818,19.2727273 C19.3181818,19.4028932 19.2711782,19.5149789 19.1771694,19.6089876 C19.0831607,19.7029963 18.971075,19.75 18.8409091,19.75 L5.47727273,19.75 C5.34710679,19.75 5.23502113,19.7029963 5.1410124,19.6089876 C5.04700366,19.5149789 5,19.4028932 5,19.2727273 L5,18.3181818 C5,18.1880159 5.04700366,18.0759302 5.1410124,17.9819215 C5.23502113,17.8879128 5.34710679,17.8409091 5.47727273,17.8409091 L18.8409091,17.8409091 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',info:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/info" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M12,4 C7.6,4 4,7.58095238 4,12 C4,16.4190476 7.6,20 12,20 C16.4190476,20 20,16.4190476 20,12 C20,7.58095238 16.4190476,4 12,4 M13.0285714,6.47619048 C13.352381,6.47619048 13.6,6.60952381 13.7714286,6.8 C13.9428571,6.99047619 14.0190476,7.23809524 14.0190476,7.5047619 C14.0190476,8.19047619 13.4666667,8.81904762 12.7238095,8.81904762 C12.1142857,8.81904762 11.752381,8.38095238 11.752381,7.75238095 C11.752381,7.2 12.1904762,6.4952381 13.0285714,6.47619048 M13.3904762,11.4285714 L12.5142857,15.0095238 C12.4761905,15.1809524 12.4571429,15.3142857 12.4571429,15.3904762 L12.4571429,15.4857143 C12.552381,15.4666667 13.1809524,15.047619 13.5809524,14.6666667 L13.6761905,14.5904762 L14.0190476,15.3142857 L14.0571429,15.3904762 L14,15.447619 C12.8761905,16.6666667 11.5047619,17.4095238 10.9714286,17.4095238 C10.8,17.4095238 10.6095238,17.3714286 10.4761905,17.2190476 C10.3428571,17.0666667 10.2857143,16.8571429 10.2857143,16.5333333 C10.2857143,16.2857143 10.3238095,15.7714286 10.4,15.3904762 L11.2190476,11.9238095 C11.2571429,11.7333333 11.2761905,11.6 11.2761905,11.5238095 C11.1428571,11.5809524 10.5142857,12.0190476 10.2285714,12.2666667 L10.1142857,12.3428571 L9.80952381,11.4857143 L9.86666667,11.4285714 C10.9904762,10.3809524 12.3428571,9.54285714 12.9714286,9.54285714 C13.1428571,9.54285714 13.3142857,9.63809524 13.3904762,9.77142857 C13.4666667,9.92380952 13.5047619,10.1142857 13.5047619,10.3428571 C13.5047619,10.5904762 13.4666667,11.1047619 13.3904762,11.4285714" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',ada:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/ada" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M11.777314,5 L16.3099677,9.5326537 L11.777314,14.0653074 L7.24466028,9.5326537 L11.777314,5 Z M6.5326537,10.2446603 L11.0653074,14.777314 L6.5326537,19.3099677 L2,14.777314 L6.5326537,10.2446603 Z M17.0219743,10.2446603 L21.554628,14.777314 L17.0219743,19.3099677 L12.4893206,14.777314 L17.0219743,10.2446603 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',checkmark:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/checkmark">\n <polygon id="Icon" fill="currentColor" points="10 14.5857864 17.7928932 6.79289322 19.2071068 8.20710678 10 17.4142136 5.29289322 12.7071068 6.70710678 11.2928932"></polygon>\n </g>\n</svg>\n',search:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/search" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M15.0317379,13.6175243 L18.7071068,17.2928932 L17.2928932,18.7071068 L13.6175243,15.0317379 C12.7314831,15.642436 11.6574983,16 10.5,16 C7.46243388,16 5,13.5375661 5,10.5 C5,7.46243388 7.46243388,5 10.5,5 C13.5375661,5 16,7.46243388 16,10.5 C16,11.6574983 15.642436,12.7314831 15.0317379,13.6175243 Z M10.5,14 C12.4329966,14 14,12.4329966 14,10.5 C14,8.56700338 12.4329966,7 10.5,7 C8.56700338,7 7,8.56700338 7,10.5 C7,12.4329966 8.56700338,14 10.5,14 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',close:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/close" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M12,13.4142136 L7.70710678,17.7071068 L6.29289322,16.2928932 L10.5857864,12 L6.29289322,7.70710678 L7.70710678,6.29289322 L12,10.5857864 L16.2928932,6.29289322 L17.7071068,7.70710678 L13.4142136,12 L17.7071068,16.2928932 L16.2928932,17.7071068 L12,13.4142136 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',settings:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M21.223 13.066a.416.416 0 01-.13.304.416.416 0 01-.304.13h-1.562a.762.762 0 00-.488.184.953.953 0 00-.314.445 9.249 9.249 0 01-.434 1.02.832.832 0 00-.087.412c0 .26.072.463.217.607l1.106 1.085c.087.087.13.188.13.304 0 .13-.043.238-.13.325l-1.366 1.345c-.058.087-.16.13-.304.13a.416.416 0 01-.304-.13l-1.085-1.084c-.159-.16-.368-.24-.629-.24a.912.912 0 00-.412.088c-.318.173-.65.318-.998.434a.953.953 0 00-.445.314.762.762 0 00-.184.488v1.562a.416.416 0 01-.13.304.416.416 0 01-.304.13h-1.93a.416.416 0 01-.304-.13.416.416 0 01-.13-.304v-1.562a.762.762 0 00-.185-.488.953.953 0 00-.445-.314 4.747 4.747 0 01-.998-.434.912.912 0 00-.412-.087.823.823 0 00-.607.239l-1.107 1.084a.416.416 0 01-.607 0l-1.367-1.345a.55.55 0 01-.108-.325.52.52 0 01.108-.304l1.107-1.085a.823.823 0 00.238-.607.924.924 0 00-.108-.412 7.832 7.832 0 01-.412-1.02.953.953 0 00-.315-.445.79.79 0 00-.51-.184h-1.54a.416.416 0 01-.304-.13.416.416 0 01-.13-.304v-1.909c0-.116.043-.217.13-.304a.416.416 0 01.304-.13h1.54a.79.79 0 00.51-.184.953.953 0 00.315-.445c.13-.39.267-.73.412-1.02a.963.963 0 00.108-.434.796.796 0 00-.238-.585L4.974 6.948a.52.52 0 01-.108-.303.52.52 0 01.108-.304l1.367-1.345a.416.416 0 01.607 0L8.055 6.08c.159.159.354.238.585.238.145 0 .29-.036.434-.108a8.8 8.8 0 01.998-.412.953.953 0 00.445-.315.79.79 0 00.184-.51v-1.54c0-.116.044-.217.13-.304a.416.416 0 01.304-.13h1.931c.116 0 .217.043.304.13.087.087.13.188.13.304v1.54a.79.79 0 00.184.51.953.953 0 00.445.315c.304.1.636.238.998.412.145.072.29.108.434.108.246 0 .448-.08.607-.238l1.085-1.085a.416.416 0 01.304-.13c.144 0 .246.043.304.13l1.366 1.345a.416.416 0 010 .607l-1.106 1.107c-.145.144-.217.347-.217.607 0 .16.029.297.087.412.115.217.26.557.434 1.02a.953.953 0 00.314.445.762.762 0 00.488.184h1.562c.116 0 .217.044.304.13.087.087.13.188.13.304v1.91zM8.25 12.112c0 .506.098.994.293 1.464.195.47.474.886.835 1.247.752.752 1.663 1.128 2.734 1.128a3.82 3.82 0 002.712-1.128 3.82 3.82 0 00.835-1.247c.195-.47.292-.958.292-1.464A3.82 3.82 0 0014.823 9.4a3.82 3.82 0 00-1.247-.835 3.781 3.781 0 00-1.464-.293c-1.07 0-1.982.376-2.734 1.128a3.82 3.82 0 00-.835 1.247c-.195.47-.293.958-.293 1.465z" fill="#192226" fill-rule="evenodd"/></svg>\n',support:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M14.413 3.315A4.808 4.808 0 0116.153 3a4.83 4.83 0 011.857.367c.595.245 1.116.591 1.563 1.039A4.806 4.806 0 0121 7.846c0 .616-.105 1.196-.315 1.741.21.77.315 1.574.315 2.413 0 .84-.105 1.636-.315 2.392.21.56.315 1.146.315 1.762 0 .643-.122 1.259-.367 1.846a4.842 4.842 0 01-1.06 1.573 4.614 4.614 0 01-1.552 1.06 4.806 4.806 0 01-3.608.031A9.198 9.198 0 0112 21a9.198 9.198 0 01-2.413-.336 4.806 4.806 0 01-3.608-.031 4.614 4.614 0 01-1.552-1.06A4.842 4.842 0 013.367 18 4.753 4.753 0 013 16.154c0-.616.105-1.203.315-1.762A8.897 8.897 0 013 12c0-.84.105-1.643.315-2.413A4.808 4.808 0 013 7.847a4.806 4.806 0 011.427-3.441A4.738 4.738 0 015.99 3.367 4.83 4.83 0 017.846 3c.616 0 1.196.105 1.741.315A9.284 9.284 0 0112 3c.825 0 1.63.105 2.413.315zm-6.567.147c-.797 0-1.531.195-2.203.587A4.358 4.358 0 004.05 5.643a4.294 4.294 0 00-.587 2.203c0 .308.035.637.104.986a8.975 8.975 0 012.067-3.2 8.975 8.975 0 013.2-2.066 5.04 5.04 0 00-.987-.104zm7.322.104a8.975 8.975 0 013.2 2.067 8.975 8.975 0 012.066 3.2c.07-.35.104-.68.104-.987 0-.797-.195-1.531-.587-2.203a4.358 4.358 0 00-1.594-1.594 4.294 4.294 0 00-2.203-.587 5.04 5.04 0 00-.986.104zm-6.42.588a8.727 8.727 0 00-2.727 1.825 8.415 8.415 0 00-1.867 2.77l3.356 1.384a4.69 4.69 0 011.07-1.574 5.165 5.165 0 011.574-1.049L8.748 4.154zm5.12 3.356a4.69 4.69 0 011.573 1.07c.447.462.797.98 1.049 1.553l3.356-1.385a8.727 8.727 0 00-1.825-2.727 8.415 8.415 0 00-2.77-1.867L13.868 7.51zM12 7.615c-.797 0-1.531.196-2.203.588a4.358 4.358 0 00-1.594 1.594A4.294 4.294 0 007.615 12c0 .797.196 1.531.588 2.203a4.358 4.358 0 001.594 1.594 4.294 4.294 0 002.203.588c.797 0 1.531-.196 2.203-.588a4.358 4.358 0 001.594-1.594A4.294 4.294 0 0016.385 12c0-.797-.196-1.531-.588-2.203a4.358 4.358 0 00-1.594-1.594A4.294 4.294 0 0012 7.615zm-7.846 7.637a8.727 8.727 0 001.825 2.727 8.415 8.415 0 002.77 1.867l1.405-3.377a4.714 4.714 0 01-1.595-1.06 5.035 5.035 0 01-1.049-1.563l-3.356 1.406zm12.336-1.406a4.983 4.983 0 01-1.08 1.595c-.455.447-.976.79-1.564 1.028l1.406 3.377a8.727 8.727 0 002.727-1.825 8.415 8.415 0 001.867-2.77l-3.356-1.405zM3.462 16.154c0 .797.195 1.531.587 2.203a4.358 4.358 0 001.594 1.594 4.294 4.294 0 002.203.587c.35 0 .678-.041.986-.125a8.808 8.808 0 01-3.189-2.056 9.05 9.05 0 01-2.077-3.19 5.04 5.04 0 00-.104.987zm16.972-.986a9.05 9.05 0 01-2.077 3.189 8.808 8.808 0 01-3.19 2.056 4.294 4.294 0 003.189-.462 4.358 4.358 0 001.595-1.594 4.294 4.294 0 00.587-2.203 5.04 5.04 0 00-.104-.986z" fill="#192226" fill-rule="evenodd"/></svg>\n',"arrow-up":'<svg\n\twidth="20px"\n\theight="20px"\n\tviewBox="0 0 16 16"\n\tversion="1.1"\n\txmlns="http://www.w3.org/2000/svg"\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n>\n\t<path\n\t\tstroke="none"\n\t\tfill="currentColor"\n\t\td="M8.01904762,16 C6.55872286,16 5.21587914,15.6412734 3.99047619,14.9238095 C2.76507324,14.2063456 1.79365438,13.2349268 1.07619048,12.0095238 C0.358726571,10.7841209 0,9.44127714 0,7.98095238 C0,6.5333261 0.358726571,5.2000061 1.07619048,3.98095238 C1.79365438,2.76189867 2.76507324,1.79365438 3.99047619,1.07619048 C5.21587914,0.358726571 6.55872286,0 8.01904762,0 C9.4666739,0 10.7999939,0.358726571 12.0190476,1.07619048 C13.2381013,1.79365438 14.2063456,2.76189867 14.9238095,3.98095238 C15.6412734,5.2000061 16,6.5333261 16,7.98095238 C16,9.44127714 15.6412734,10.7841209 14.9238095,12.0095238 C14.2063456,13.2349268 13.2381013,14.2063456 12.0190476,14.9238095 C10.7999939,15.6412734 9.4666739,16 8.01904762,16 Z M8.91428571,13.1428571 L8.91428571,6.7047619 L11.7714286,9.61904762 L11.8857143,9.61904762 L13.1047619,8.36190476 C13.1301589,8.36190476 13.1428571,8.35238105 13.1428571,8.33333333 C13.1428571,8.31428562 13.1301589,8.3047619 13.1047619,8.3047619 L9.23809524,4.45714286 L8.91428571,4.11428571 L8.91428571,4.07619048 C8.91428571,4.063492 8.90793657,4.05714286 8.8952381,4.05714286 L8.83809524,4.05714286 L8.01904762,3.2 L7.92380952,3.2 L7.08571429,4.05714286 L6.7047619,4.45714286 L2.85714286,8.3047619 C2.84444438,8.3047619 2.83809524,8.31428562 2.83809524,8.33333333 C2.83809524,8.35238105 2.84444438,8.36190476 2.85714286,8.36190476 L4.07619048,9.61904762 L4.17142857,9.61904762 L7.08571429,6.66666667 L7.08571429,13.1428571 C7.08571429,13.1682541 7.09206343,13.1809524 7.1047619,13.1809524 L8.8952381,13.1809524 C8.90793657,13.1809524 8.91428571,13.1682541 8.91428571,13.1428571 Z"\n\t\tid="Icon"\n\t></path>\n</svg>\n',"arrow-down-short":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t<path d="M7.29289322,10.7071068 C6.66292836,10.0771419 7.10909515,9 8,9 L16,9 C16.8909049,9 17.3370716,10.0771419 16.7071068,10.7071068 L12.7071068,14.7071068 C12.3165825,15.0976311 11.6834175,15.0976311 11.2928932,14.7071068 L7.29289322,10.7071068 Z" fill="currentColor"></path>\n</svg>\n',"arrow-left-skip":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t<path d="M7,7 L9,7 L9,17 L7,17 L7,7 Z M15.2969027,7.28888371 C15.9268676,6.65891885 17.0040095,7.10508564 17.0040095,7.99599049 L17.0040095,15.9959905 C17.0040095,16.8868953 15.9268676,17.3330621 15.2969027,16.7030973 L11.2969027,12.7030973 C10.9063784,12.312573 10.9063784,11.679408 11.2969027,11.2888837 L15.2969027,7.28888371 Z" fill="currentColor"></path>\n</svg>\n',"arrow-left":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t<path d="M5.30084531,12.9360446 C4.89971823,12.6208269 4.89971823,12.1097101 5.30084531,11.7947093 L12.4692812,6.16222707 C12.8704083,5.84700943 13.1956055,6.00516047 13.1956055,6.51519253 L13.1956055,10.5180013 L19.969423,10.5180013 L19.969423,14.2127516 L13.1956055,14.2127516 L13.1956055,18.2127403 C13.1956055,18.7334027 12.8704083,18.8852625 12.4692812,18.5598486 L5.30084531,12.9360443 L5.30084531,12.9360446 Z" fill="currentColor"></path>\n</svg>\n',"close-clear":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/close-clear" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect id="placeholder" x="0" y="0" width="24" height="24"></rect>\n <path d="M11.9984707,10.5842571 L16.2898345,6.29289322 C16.6803588,5.90236893 17.3135238,5.90236893 17.7040481,6.29289322 C18.0945724,6.68341751 18.0945724,7.31658249 17.7040481,7.70710678 L13.4126842,11.9984707 L17.7040481,16.2898345 C18.0945724,16.6803588 18.0945724,17.3135238 17.7040481,17.7040481 C17.3135238,18.0945724 16.6803588,18.0945724 16.2898345,17.7040481 L11.9984707,13.4126842 L7.70710678,17.7040481 C7.31658249,18.0945724 6.68341751,18.0945724 6.29289322,17.7040481 C5.90236893,17.3135238 5.90236893,16.6803588 6.29289322,16.2898345 L10.5842571,11.9984707 L6.29289322,7.70710678 C5.90236893,7.31658249 5.90236893,6.68341751 6.29289322,6.29289322 C6.68341751,5.90236893 7.31658249,5.90236893 7.70710678,6.29289322 L11.9984707,10.5842571 Z" id="icon" fill="currentColor"></path>\n </g>\n</svg>\n',"menu-switch":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M20.355 4a.84.84 0 01.619.25.84.84 0 01.25.618v1.15a.85.85 0 01-.25.607.822.822 0 01-.619.26H3.868a.833.833 0 01-.608-.26.833.833 0 01-.26-.607v-1.15c0-.246.087-.452.26-.619A.85.85 0 013.868 4h16.487zm0 6.14a.84.84 0 01.619.249.84.84 0 01.25.618v1.15a.85.85 0 01-.25.607.822.822 0 01-.619.26H3.868a.833.833 0 01-.608-.26.833.833 0 01-.26-.607v-1.15c0-.246.087-.452.26-.618a.85.85 0 01.608-.25h16.487zm0 6.16a.84.84 0 01.619.25.84.84 0 01.25.618v1.15a.84.84 0 01-.25.618.84.84 0 01-.619.25H3.868a.85.85 0 01-.608-.25.822.822 0 01-.26-.618v-1.15c0-.245.087-.452.26-.618a.85.85 0 01.608-.25h16.487z" fill="currentColor" fill-rule="evenodd"/></svg>\n'};Object.keys(s).forEach((function(t){s[t]=o.html([s[t]])}));var a,l={ICON_WRAPPER:"icon-wrapper",CIRCULAR_BG:"circular-background"},c=(n({},o.helpers.classNamesToSelector(l)),o.constants.colors),d=o.constants.colorModifiers,p={DEFAULT:"default",INVERTED:"inverted",PRIMARY:"primary",DANGER:"danger",ERROR:"error",SUCCESS:"success",ACTIVE:"active",INFO:"info",FOCUS:"focus",WARNING:"warning",DISABLED:"disabled",DISABLED_CHECKED:"disabled-checked",SUGGESTED:"suggested",SLATE_LIGHTEST:"slate-lightest",ACTION:"action"},u=((a={})[p.DEFAULT]=c.SLATE,a[p.INVERTED]=c.WHITE,a[p.DANGER]=c.RED,a[p.ERROR]=c.RED,a[p.SUCCESS]=c.GREEN,a[p.PRIMARY]=c.BLUE,a[p.ACTIVE]=c.BLUE,a[p.INFO]=c.BLUE,a[p.FOCUS]=c.BLUE,a[p.WARNING]=c.ORANGE,a[p.DISABLED]=c.GRAY+d.LIGHTER,a[p.SUGGESTED]=c.PURPLE,a[p.DISABLED_CHECKED]=c.GRAY+d.LIGHT,a[p.SLATE_LIGHTEST]=c.SLATE+d.LIGHTEST,a[p.ACTION]=c.GRAY,a),h="medium";function g(){var t=i(['\t:host([type="','"]) {\n\t\t\t\t\t\t--ts-icon-color: var(--ts-color-',");\n\t\t\t\t}"]);return g=function(){return t},t}function f(){var t=i(['\n\t\t\t<span class="','">\n\t\t\t\t',"\n\t\t\t</span>\n\t\t"]);return f=function(){return t},t}var v=function(t){var e,n,i,a;function c(){var o=t.call(this)||this;return o.size=h,o}return n=t,(e=c).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,c.prototype.render=function(){return o.html(f(),l.ICON_WRAPPER,s[this.icon])},i=c,a=[{key:"styles",get:function(){var t=Object.keys(p).map((function(t){var e=p[t],r=u[e];return o.css(g(),o.unsafeCSS(e),o.unsafeCSS(r))}));return[o.TSElement.styles,o.unsafeCSS(':host{display:inline-block}:host svg{color:var(--ts-icon-color)}.fill-none{fill:none}:host([size=small]) .icon-wrapper{width:12px;width:var(--ts-fontsize-mini);height:12px;height:var(--ts-fontsize-mini)}:host([size=medium]) .icon-wrapper{width:16px;width:var(--ts-fontsize-medium);height:16px;height:var(--ts-fontsize-medium)}:host([size=large]) .icon-wrapper{width:24px;width:var(--ts-fontsize-xbig);height:24px;height:var(--ts-fontsize-xbig)}:host([rotate="90"]) .icon-wrapper{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host([rotate="180"]) .icon-wrapper{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host([rotate="270"]) .icon-wrapper{-webkit-transform:rotate(270deg);transform:rotate(270deg)}:host([flip=h]) .icon-wrapper,:host([flip=horizontal]) .icon-wrapper{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host([flip=v]) .icon-wrapper,:host([flip=vertical]) .icon-wrapper{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.icon-wrapper{position:relative;display:block;padding-top:100%;width:100%;height:0}svg{position:absolute;top:0;left:0;width:100%;height:100%}:host([type=default]) svg{color:#1f2a2e;color:var(--ts-color-slate)}:host([type=inverted]) svg{color:#fff;color:var(--ts-color-white)}:host([type=primary]) svg{color:#00aeff;color:var(--ts-color-blue)}:host([type=danger]) svg,:host([type=error]) svg{color:#bd0000;color:var(--ts-color-red)}:host([type=success]) svg{color:#50c610;color:var(--ts-color-green)}:host([type=active]) svg,:host([type=focus]) svg,:host([type=info]) svg{color:#00aeff;color:var(--ts-color-blue)}:host([type=warning]) svg{color:#1f2a2e;color:var(--ts-color-slate)}:host([type=disabled]) svg{color:#e6ecef;color:var(--ts-color-gray-lighter)}:host([type=disabled-checked]) svg{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=suggested]) svg{color:#90129b;color:var(--ts-color-purple)}:host([type=slate-lightest]) svg{color:#506b77;color:var(--ts-color-slate-lightest)}:host([type=action]) svg{color:#9ab2bc;color:var(--ts-color-gray)}:host([circular]){border-radius:50%;background-color:var(--ts-icon-color)}:host([circular]) svg{color:#fff;color:var(--ts-color-white)}')].concat(t)}},{key:"properties",get:function(){return{icon:{type:String,reflect:!0},size:{type:String,reflect:!0},type:{type:String,reflect:!0},circular:{type:Boolean,reflect:!0},rotate:{type:Number,reflect:!0},flip:{type:String,reflect:!0}}}}],null&&r(i.prototype,null),a&&r(i,a),c}(o.TSElement);function b(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,o,e){return o&&b(t.prototype,o),e&&b(t,e),t}function w(t,o){return o||(o=t.slice(0)),t.raw=o,t}o.customElementDefineHelper("ts-icon",v);var x={PRIMARY:"primary",SECONDARY:"secondary",TEXT:"text",ACCEPT:"accept",WARNING:"warning",DANGER:"danger"};function m(){var t=w(['\n\t\t\t\t\t\t\t<ts-icon icon="','" size="large" type="','"></ts-icon>\n\t\t\t\t\t ']);return m=function(){return t},t}function k(){var t=w(['\n\t\t\t<button ?disabled="','" dir="','" @click="','">\n\t\t\t\t',"\n\t\t\t\t<span><slot></slot></span>\n\t\t\t</button>\n\t\t"]);return k=function(){return t},t}var C=function(t){var e,r;function n(){var o=t.call(this)||this;return o.grouped=!1,o}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,y(n,[{key:"direction",get:function(){return this.dir||this.bodyDir}}],[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host{display:inline-block;line-height:20px;line-height:var(--ts-unit)}:host,:host>button{font-size:14px;font-size:var(--ts-font-size-default)}:host>button{position:relative;min-width:40px;min-width:var(--ts-unit-double);border:none;border-radius:40px;border-radius:var(--ts-unit-double);padding:0}:host span{display:block;padding:10px 20px;padding:var(--ts-unit-half) var(--ts-unit);font-weight:600;font-weight:var(--ts-fontweight-semibold);text-transform:uppercase;letter-spacing:.02em;line-height:20px;line-height:var(--ts-unit);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;white-space:nowrap}:host(:not([busy]))>button:hover{cursor:pointer;background:#e6ecef;background:var(--ts-color-gray-lighter)}:host(:not([type]))>button,:host([type=secondary])>button{box-shadow:inset 0 0 0 1px #cbd7dc;box-shadow:var(--ts-boxshadow-border-default)}:host(:not([type]))>button:focus,:host([type=secondary])>button:focus{box-shadow:inset 0 0 0 2px #00aeff;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-blue)}:host(.no-border)>button{box-shadow:none;background:transparent}:host(.no-border)>button:focus{box-shadow:none}:host([type=primary])>button{background:#00aeff;background:var(--ts-color-blue);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=primary])>button:hover{background:#0085cc;background:var(--ts-color-blue-dark)}:host(:not([busy])[type=primary])>button:focus{box-shadow:inset 0 0 0 2px #0065a3;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-blue-darker)}:host([type=accept])>button{background:#50c610;background:var(--ts-color-green);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=accept])>button:hover{background:#399d0b;background:var(--ts-color-green-dark)}:host(:not([busy])[type=accept])>button:focus{box-shadow:inset 0 0 0 2px #287f06;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-green-darker)}:host([type=warning])>button{background:#ff8c00;background:var(--ts-color-orange);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=warning])>button:hover{background:#f07c00;background:var(--ts-color-orange-dark)}:host(:not([busy])[type=warning])>button:focus{box-shadow:inset 0 0 0 2px #d15b00;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-orange-darker)}:host([type=danger])>button{background:#bd0000;background:var(--ts-color-red);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=danger])>button:hover{background:#900;background:var(--ts-color-red-dark)}:host(:not([busy])[type=danger])>button:focus{box-shadow:inset 0 0 0 2px #7a0000;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-red-darker)}:host([type=text])>button{background:transparent;border-radius:3px;border-radius:var(--ts-radius);display:flex;align-items:center}:host([type=text]) span{color:#00aeff;color:var(--ts-color-blue);padding:0 5px;padding:0 var(--ts-unit-quarter);font-weight:400;font-weight:var(--ts-fontweight);text-transform:none;letter-spacing:normal}:host(:not([busy])[type=text])>button:hover{background:transparent}:host(:not([busy])[type=text])>button:hover span{color:#0085cc;color:var(--ts-color-blue-dark)}:host(:not([busy])[type=text])>button:focus{background:#00aeff;background:var(--ts-color-blue)}:host(:not([busy])[type=text])>button:focus span{color:#fff;color:var(--ts-color-white)}:host([type=text][icon])>button{padding:10px;padding:var(--ts-unit-half)}:host([type=text][icon])>button span{color:var(--ts-color-blue-darkest)}:host(:not([busy])[type=text][icon])>button:hover{background:#eff3f5;background:var(--ts-color-gray-lightest)}:host(:not([busy])[type=text][icon])>button:hover span{color:var(--ts-color-blue-darkest)}:host(:not([busy])[type=text][icon])>button:focus{background:#eff3f5;background:var(--ts-color-gray-lightest);box-shadow:inset 0 0 0 2px #9ab2bc;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-gray)}:host(:not([busy])[type=text][icon])>button:focus span{color:var(--ts-color-blue-darkest)}:host(:not([type=text])[size=micro])>button{font-size:11px;font-size:var(--ts-fontsize-small);border-radius:20px;border-radius:var(--ts-unit);padding:0 10px;padding:0 var(--ts-unit-half)}:host(:not([type=text])[size=micro]) span{padding:0 2.5px;padding:0 var(--ts-unit-eighth);font-size:11px;font-size:var(--ts-fontsize-small)}:host([grouped]){display:block;margin-bottom:10px;margin-bottom:var(--ts-unit-half);text-align:center}:host([grouped])>button{width:100%;display:block}:host(:not([type=text])[icon])>button{width:40px;width:var(--ts-unit-double);height:40px;height:var(--ts-unit-double)}:host(:not([type=text])[icon]) ts-icon{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}:host(:not([type=text])[icon]) span{display:none}:host([disabled]){cursor:not-allowed}:host([disabled])>button{pointer-events:none;background-color:#e6ecef;background-color:var(--ts-disabled-background-color);box-shadow:none}:host([disabled]) span{color:#829fab;color:var(--ts-disabled-color)}:host([disabled][type=text])>button{background-color:transparent}:host([busy])>:first-child{pointer-events:none;cursor:default;box-shadow:none;background-size:40px 40px;background-size:var(--ts-unit-double) var(--ts-unit-double);background-image:linear-gradient(-45deg,#cbd7dc 25%,#eff3f5 0,#eff3f5 50%,#cbd7dc 0,#cbd7dc 75%,#eff3f5 0,#eff3f5);background-image:linear-gradient(-45deg,var(--ts-color-gray-light) 25%,var(--ts-color-gray-lightest) 0,var(--ts-color-gray-lightest) 50%,var(--ts-color-gray-light) 0,var(--ts-color-gray-light) 75%,var(--ts-color-gray-lightest) 0,var(--ts-color-gray-lightest));-webkit-animation:move 1s linear infinite;animation:move 1s linear infinite}:host([busy])>:first-child>*{visibility:hidden}@-webkit-keyframes move{0%{background-position:0 0}to{background-position:40px 40px;background-position:var(--ts-unit-double) var(--ts-unit-double)}}@keyframes move{0%{background-position:0 0}to{background-position:40px 40px;background-position:var(--ts-unit-double) var(--ts-unit-double)}}")]}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},size:{type:String,reflect:!0},busy:{type:Boolean,reflect:!0},icon:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},grouped:{type:Boolean,reflect:!0},dir:{type:String,reflect:!0}}}}]);var i=n.prototype;return i.clickHandler=function(t){this.disabled||this.busy||this.dispatchCustomEvent("button-click",t)},i.render=function(){return o.html(k(),this.disabled,this.direction,this.clickHandler,this.icon?o.html(m(),this.icon,this.iconType):"")},y(n,[{key:"iconType",get:function(){return this.icon&&this.type===x.TEXT?"action":[x.DANGER,x.WARNING,x.ACCEPT,x.PRIMARY].indexOf(this.type)>-1?"inverted":"default"}}]),n}(o.TSElement);function L(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(){var t,o,e=(t=['\n\t\t\t<div class="cover ','"></div>\n\t\t'],o||(o=t.slice(0)),t.raw=o,t);return S=function(){return e},e}o.customElementDefineHelper("ts-button",C);var E=function(t){var e,r,n,i;function s(){var o=t.call(this)||this;return o.visible=!1,o}return r=t,(e=s).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n=s,i=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(".cover{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;visibility:hidden;background-color:#0f151a;background-color:var(--ts-color-black);z-index:10000;z-index:var(--ts-zindex-max)}.ts-fadeIn{visibility:visible;opacity:.8;transition:visibility .1s linear .1s,opacity .2s;transition:visibility var(--ts-transition-now) linear var(--ts-transition-now),opacity var(--ts-transition-fast)}.ts-fadeOut{visibility:hidden;opacity:0;transition:visibility .1s linear .2s,opacity .2s;transition:visibility var(--ts-transition-now) linear var(--ts-transition-fast),opacity var(--ts-transition-fast)}:host(.ts-aside-cover)>div{pointer-events:auto;z-index:1999;z-index:var(--ts-zindex-aside-cover)}:host(.ts-dialog-cover)>div{pointer-events:auto;z-index:2999;z-index:var(--ts-zindex-dialog-cover)}:host(.ts-spin-cover)>div{pointer-events:auto;z-index:3999;z-index:var(--ts-zindex-spin-cover)}:host(.ts-modal-cover)>div{pointer-events:auto;z-index:1499;z-index:var(--ts-zindex-modal-cover)}")]}},{key:"properties",get:function(){return{visible:{type:Boolean,attribute:"data-visible",reflect:!0}}}}],null&&L(n.prototype,null),i&&L(n,i),s.prototype.render=function(){return o.html(S(),this.visible?"ts-fadeIn":"ts-fadeOut")},s}(o.TSElement);function z(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(){var t,o,e=(t=['\n\t\t\t<img .src="','" .alt="','"></img>\n\t\t'],o||(o=t.slice(0)),t.raw=o,t);return T=function(){return e},e}o.customElementDefineHelper("ts-cover",E);var A=function(t){var e,r,n,i;function s(){return t.apply(this,arguments)||this}return r=t,(e=s).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,s.prototype.render=function(){return o.html(T(),this.src,this.alt)},n=s,i=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host img{width:40px;width:var(--ts-unit-double);height:40px;height:var(--ts-unit-double);border-radius:3px;border-radius:var(--ts-radius)}:host([size=large]) img{width:60px;width:var(--ts-unit-triple);height:60px;height:var(--ts-unit-triple)}")]}},{key:"properties",get:function(){return{size:{type:String,reflect:!0},src:{type:String,reflect:!0},alt:{type:String,reflect:!0}}}}],null&&z(n.prototype,null),i&&z(n,i),s}(o.TSElement);function I(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,o,e){return o&&I(t.prototype,o),e&&I(t,e),t}function _(t,o){return o||(o=t.slice(0)),t.raw=o,t}function O(){var t=_(['\n\t\t\t<ts-icon\n\t\t\t\t@click="','"\n\t\t\t\tclass="menu-switch"\n\t\t\t\ticon="menu-switch"\n\t\t\t\tsize="large"\n\t\t\t\ttabindex="0"\n\t\t\t></ts-icon>\n\t\t']);return O=function(){return t},t}function R(){var t=_(["\n\t\t\t<header dir=",'>\n\t\t\t\t<div class="title-icon-container">\n\t\t\t\t\t'," "," ",'\n\t\t\t\t</div>\n\t\t\t\t<div class="slot-container">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</header>\n\t\t']);return R=function(){return t},t}function M(){var t=_(['\n\t\t\t<span class="title">',"</span>\n\t\t"]);return M=function(){return t},t}function U(){var t=_(['\n\t\t\t<ts-app-icon class="icon" src="','" alt="','"></ts-app-icon>\n\t\t']);return U=function(){return t},t}o.customElementDefineHelper("ts-app-icon",A);var D=function(t){var e,r;function n(){var o=t.call(this)||this;return o.color="white",o}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,B(n,null,[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host{border-bottom:1px solid #cbd7dc;border-bottom:var(--ts-border);height:60px;height:var(--ts-unit-triple)}:host,:host>header{display:flex;width:100%}:host>header{background-color:#fff;background-color:var(--ts-color-white);align-items:center;justify-content:space-between}:host .icon{height:40px;height:var(--ts-unit-double)}:host .icon,:host .title{margin-left:10px;margin-left:var(--ts-unit-half)}:host .title{font-size:18px;font-size:var(--ts-fontsize-big)}.title-icon-container{align-items:center;display:flex}.slot-container{margin:0 10px;margin:0 var(--ts-unit-half)}[dir=rtl] .icon,[dir=rtl] .title{margin-left:0;margin-right:10px;margin-right:var(--ts-unit-half)}:host([color=black])>header{background-color:#0f151a;background-color:var(--ts-color-black)}:host([color=black]) .title{color:#fff;color:var(--ts-color-white)}:host([color=red])>header{background-color:#bd0000;background-color:var(--ts-color-red)}:host([color=red]) .title{color:#fff;color:var(--ts-color-white)}:host([color=orange])>header{background-color:#ff8c00;background-color:var(--ts-color-orange)}:host([color=orange]) .title{color:#fff;color:var(--ts-color-white)}:host([color=yellow])>header{background-color:#fdbe12;background-color:var(--ts-color-yellow)}:host([color=yellow]) .title{color:#fff;color:var(--ts-color-white)}:host([color=green])>header{background-color:#50c610;background-color:var(--ts-color-green)}:host([color=green]) .title{color:#fff;color:var(--ts-color-white)}:host([color=blue])>header{background-color:#00aeff;background-color:var(--ts-color-blue)}:host([color=blue]) .title{color:#fff;color:var(--ts-color-white)}:host([color=purple])>header{background-color:#90129b;background-color:var(--ts-color-purple)}:host([color=purple]) .title{color:#fff;color:var(--ts-color-white)}:host([color=pink])>header{background-color:#a70262;background-color:var(--ts-color-pink)}:host([color=pink]) .title{color:#fff;color:var(--ts-color-white)}:host([color=gray])>header{background-color:#9ab2bc;background-color:var(--ts-color-gray)}:host([color=gray]) .title{color:#fff;color:var(--ts-color-white)}:host([color=slate])>header{background-color:#1f2a2e;background-color:var(--ts-color-slate)}:host([color=slate]) .title{color:#fff;color:var(--ts-color-white)}:host([color=white])>header{background-color:#fff;background-color:var(--ts-color-white)}:host([color=white]) .title{color:#0f151a;color:var(--ts-color-black)}.menu-switch{padding:10px;padding:var(--ts-unit-half);cursor:pointer;display:none}@media screen and (max-width:600px){.icon{display:none}.menu-switch{display:block}:host .title{margin-left:0;margin-right:0}}")]}},{key:"properties",get:function(){return{dir:{type:String,reflect:!0},icon:{type:String,reflect:!0},title:{type:String,reflect:!0},color:{type:String,reflect:!0}}}}]);var i=n.prototype;return i.getIcon=function(){return this.icon?o.html(U(),this.icon,this.title):""},i.openChromeMenu=function(){window.top.postMessage('app-broadcast:{"appIds": "Tradeshift.Chrome", "key": "ts-broadcast-chrome-menu-open"}',"*")},i.getTitle=function(){return this.title?o.html(M(),this.title):""},i.render=function(){return o.html(R(),this.direction,this.getMenuSwitch,this.getIcon(),this.getTitle())},B(n,[{key:"getMenuSwitch",get:function(){return o.html(O(),this.openChromeMenu)}},{key:"direction",get:function(){return this.dir?this.dir:this.bodyDir}}]),n}(o.TSElement);function N(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H(t,o){return o||(o=t.slice(0)),t.raw=o,t}o.customElementDefineHelper("ts-header",D);var j="close",P="closed",G="open",F="opened",Z="large";function Y(){var t=H(['\n\t\t\t<ts-header .title="','" dir="','">\n\t\t\t\t<ts-button class="no-border" icon="close-clear" size="large" @click="','"></ts-button>\n\t\t\t</ts-header>\n\t\t']);return Y=function(){return t},t}function W(){var t=H(['\n\t\t\t<div\n\t\t\t\tdir="','"\n\t\t\t\tclass="container '," ",'"\n\t\t\t\t@transitionend="','"\n\t\t\t>\n\t\t\t\t','\n\t\t\t\t<div class="note">\n\t\t\t\t\t<slot name="note"></slot>\n\t\t\t\t</div>\n\t\t\t\t<main>\n\t\t\t\t\t<slot name="main"></slot>\n\t\t\t\t</main>\n\t\t\t\t<footer>\n\t\t\t\t\t<slot name="footer"></slot>\n\t\t\t\t</footer>\n\t\t\t</div>\n\t\t\t<ts-cover class="ts-modal-cover" ?data-visible=',' @click="','"></ts-cover>\n\t\t']);return W=function(){return t},t}var q=function(t){var e,r;function n(){var e=t.call(this)||this;return e.size=Z,e.title="",e.noCloseOnEscKey=!1,e.closeBehavior=new o.CloseOnEscBehavior(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)),e.hideHeader=!1,e.noPadding=!1,e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,a,l=n.prototype;return l.open=function(){this.visible=!0},l.close=function(){this.visible=!1},l.handleTransition=function(t){"opacity"===t.propertyName&&this.dispatchCustomEvent(this.visible?F:P)},l.attributeChangedCallback=function(o,e,r){t.prototype.attributeChangedCallback.call(this,o,e,r),"data-visible"===o&&this.dispatchCustomEvent(r?G:j)},l.render=function(){return o.html(W(),this.direction,this.size,this.hidden,this.handleTransition,this.header,this.visible,this.close)},l.firstUpdated=function(){this.closeBehavior.start()},l.disconnectedCallback=function(){this.closeBehavior.stop(),t.prototype.disconnectedCallback.call(this)},i=n,a=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(".container{background-color:#fff;background-color:var(--ts-color-white);box-shadow:inset 0 0 0 1px #cbd7dc;box-shadow:var(--ts-boxshadow-border-default);top:20px;top:var(--ts-unit);bottom:20px;bottom:var(--ts-unit);right:20px;right:var(--ts-unit);left:20px;left:var(--ts-unit);display:flex;flex-direction:column;position:absolute;z-index:1500;z-index:var(--ts-zindex-modal)}ts-header{flex-grow:0;flex-shrink:0;padding:0 0 0 5px;padding:0 0 0 var(--ts-unit-quarter)}ts-header[dir=rtl]{padding:0 5px 0 0;padding:0 var(--ts-unit-quarter) 0 0}.note ::slotted(ts-note){flex-grow:0;padding-left:20px;padding-left:var(--ts-unit);padding-right:20px;padding-right:var(--ts-unit)}.close{height:40px;height:var(--ts-unit-double);width:40px;width:var(--ts-unit-double)}main{flex-grow:1;overflow:auto;padding:20px;padding:var(--ts-unit)}:host([no-padding]) main{padding:0}footer{flex-grow:0}.container.medium{top:12.5%;bottom:12.5%;right:25%;left:25%}.fade-in{opacity:1;visibility:visible;transition:visibility .1s linear .1s,opacity .2s;transition:visibility var(--ts-transition-now) linear var(--ts-transition-now),opacity var(--ts-transition-fast)}.fade-out{opacity:0;visibility:hidden;transition:visibility .2s linear .1s,opacity .2s;transition:visibility var(--ts-transition-fast) linear var(--ts-transition-now),opacity var(--ts-transition-fast)}@media (max-width:600px){.container,.container.medium{top:10px;top:var(--ts-unit-half);bottom:10px;bottom:var(--ts-unit-half);right:10px;right:var(--ts-unit-half);left:10px;left:var(--ts-unit-half)}.container main{padding:10px;padding:var(--ts-unit-half)}}")]}},{key:"properties",get:function(){return{dir:{type:String,reflect:!0,attribute:"data-dir"},size:{type:String,reflect:!0,attribute:"data-size"},title:{type:String,reflect:!0,attribute:"data-title"},visible:{type:Boolean,reflect:!0,attribute:"data-visible"},noCloseOnEscKey:{type:Boolean,attribute:"no-close-on-esc-key"},hideHeader:{type:Boolean,attribute:"hide-header"},noPadding:{type:Boolean,attribute:"no-padding"}}}}],(s=[{key:"direction",get:function(){return this.dir?this.dir:this.bodyDir}},{key:"hidden",get:function(){return this.visible?"fade-in":"fade-out"}},{key:"header",get:function(){return this.hideHeader?"":o.html(Y(),this.title,this.direction,this.close)}}])&&N(i.prototype,s),a&&N(i,a),n}(o.TSElement);function K(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t,o){return o||(o=t.slice(0)),t.raw=o,t}function X(){var t=V(['\n\t\t\t\t\t<div class="text-wrapper" title="','">\n\t\t\t\t\t\t<slot @slotchange="','">',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "]);return X=function(){return t},t}function J(){var t=V(['\n\t\t\t\t\t<div class="text-wrapper">\n\t\t\t\t\t\t<slot>',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "]);return J=function(){return t},t}o.customElementDefineHelper("ts-modal",q);var Q=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,a=n.prototype;return a.textChangeHandler=function(t){var o=t.currentTarget;this.tooltip=this.tooltip||this.text||o.assignedNodes()[0].data},a.render=function(){return this.noTooltip?o.html(J(),this.text):o.html(X(),this.tooltip||this.text,this.textChangeHandler,this.text)},i=n,s=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host{display:block;line-height:20px;line-height:var(--ts-unit);min-width:0;color:#0f151a;color:var(--ts-color-black)}.text-wrapper{font-size:14px;font-size:var(--ts-font-size-default)}:host([variant=title]) .text-wrapper{font-size:16px;font-size:var(--ts-fontsize-medium);font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([variant=subtitle]) .text-wrapper{font-size:12px;font-size:var(--ts-fontsize-mini);color:#506b77;color:var(--ts-color-slate-lightest)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{position:relative;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([type=inverted]) .text-wrapper{color:#fff;color:var(--ts-color-white)}:host([type=warning]) .text-wrapper{color:#ff8c00;color:var(--ts-color-orange)}:host([type=danger]) .text-wrapper,:host([type=error]) .text-wrapper{color:#bd0000;color:var(--ts-color-red)}:host([type=action]) .text-wrapper,:host([type=primary]) .text-wrapper{color:#00aeff;color:var(--ts-color-blue)}:host([type=success]) .text-wrapper{color:#50c610;color:var(--ts-color-green)}:host([type=disabled]) .text-wrapper{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=disabled-checked]) .text-wrapper{color:#9ab2bc;color:var(--ts-color-gray)}:host([type=slate-lightest]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest)}")]}},{key:"properties",get:function(){return{text:{type:String},tooltip:{type:String},variant:{type:String},type:{type:String},inline:{type:Boolean},noWrap:{type:Boolean,attribute:"no-wrap"},noTooltip:{type:Boolean,attribute:"no-tooltip"}}}}],null&&K(i.prototype,null),s&&K(i,s),n}(o.TSElement);o.customElementDefineHelper("ts-typography",Q);var $,tt,ot,et="confirm",rt="warning",nt="danger",it=(($={})[et]="question",$[rt]="alert",$[nt]="remove",$),st=((tt={})[et]="primary",tt[rt]="warning",tt[nt]="danger",tt),at=((ot={})[et]="primary",ot[rt]="warning",ot[nt]="danger",ot),lt={accept_button:"OK",cancel_button:"Cancel"};function ct(){var t,o,e=(t=["\n\t\t\t<ts-modal ?data-visible=",' data-size="small" hide-header no-close-on-esc-key>\n\t\t\t\t<div class="content" slot="main">\n\t\t\t\t\t<ts-icon icon="','" type="','" size="extra-large"></ts-icon>\n\t\t\t\t\t<slot name="content">\n\t\t\t\t\t\t<ts-typography>','</ts-typography>\n\t\t\t\t\t</slot>\n\t\t\t\t</div>\n\t\t\t\t<div class="footer" slot="footer">\n\t\t\t\t\t<ts-button-group>\n\t\t\t\t\t\t<ts-button\n\t\t\t\t\t\t\t?focused="','"\n\t\t\t\t\t\t\t@click="','"\n\t\t\t\t\t\t\ttype="','"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t','\n\t\t\t\t\t\t</ts-button>\n\t\t\t\t\t\t<slot name="extra-buttons" @slotchange="','"></slot>\n\t\t\t\t\t\t<ts-button\n\t\t\t\t\t\t\t?focused="','"\n\t\t\t\t\t\t\t@click="','"\n\t\t\t\t\t\t\ttype="','"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t',"\n\t\t\t\t\t\t</ts-button>\n\t\t\t\t\t</ts-button-group>\n\t\t\t\t</div>\n\t\t\t</ts-modal>\n\t\t"],o||(o=t.slice(0)),t.raw=o,t);return ct=function(){return e},e}var dt=function(t){var r,n;function i(){var o=t.call(this)||this;return o.type=et,o.focused="cancel",o._translations=Object.assign({},lt),o}n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var s,a,l,c=i.prototype;return c.attributeChangedCallback=function(o,e,r){var n=this;t.prototype.attributeChangedCallback.call(this,o,e,r),"data-visible"===o&&r&&window.setTimeout((function(){n.renderButtons=!0}),200)},c.onAccept=function(){this.dispatchCustomEvent("accept"),this.dismissModal()},c.onCancel=function(){this.dispatchCustomEvent("cancel"),this.dismissModal()},c.dismissModal=function(){this.visible=!1,this.renderButtons=!1},c.extraButtonsSlotChangeHandler=function(t){var e=t.currentTarget.assignedNodes();o.validateSlottedNodes(this.tagName,e,["TS-BUTTON","TS-BUTTON-GROUP"])},c.isFocused=function(t){return this.renderButtons&&this.focused===t},c.render=function(){return o.html(ct(),this.visible,this.getIcon,this.getIconType,this.text,this.isFocused("accept"),this.onAccept,this.getAcceptButtonType,this.translations.accept_button,this.extraButtonsSlotChangeHandler,this.isFocused("cancel"),this.onCancel,this.getCancelButtonType,this.translations.cancel_button)},s=i,l=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(".content{text-align:center;padding:0 20px 20px;padding:0 var(--ts-unit) var(--ts-unit)}.footer{padding:0 40px 20px;padding:0 var(--ts-unit-double) var(--ts-unit)}::slotted(ts-button){display:block;margin-bottom:10px;margin-bottom:var(--ts-unit-half);text-align:center}ts-button:focus{box-shadow:inset 0 0 0 2px #00aeff;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-blue)}")]}},{key:"properties",get:function(){return{visible:{type:Boolean,attribute:"data-visible",reflect:!0},text:{type:String,reflect:!0},icon:{type:String,reflect:!0},type:{type:String,reflect:!0},translations:{type:Object,reflect:!0},focused:{type:String,reflect:!0},primary:{type:String,reflect:!0},renderButtons:{type:Boolean,attribute:!1}}}}],(a=[{key:"translations",get:function(){return this._translations},set:function(t){var o=this._translations;this._translations=Object.assign(o,t),this.requestUpdate("translations",o)}},{key:"getIcon",get:function(){return this.icon?this.icon:it[this.type]}},{key:"getIconType",get:function(){return st[this.type]||"primary"}},{key:"getAcceptButtonType",get:function(){return"accept"===this.primary?at[this.type]:"secondary"}},{key:"getCancelButtonType",get:function(){return"cancel"===this.primary?at[this.type]:"secondary"}}])&&e(s.prototype,a),l&&e(s,l),i}(o.TSElement);o.customElementDefineHelper("ts-dialog",dt),t.TSDialog=dt,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@tradeshift/elements")):"function"==typeof define&&define.amd?define(["exports","@tradeshift/elements"],o):o(((t=t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{},t.ts.elements.dialog=t.ts.elements.dialog||{}),t.ts.elements)}(this,(function(t,o){"use strict";function e(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(){return(n=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function i(t,o){return o||(o=t.slice(0)),t.raw=o,t}var s={remove:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M4 12a8 8 0 1116.01.01A8 8 0 014 12zm8 1.13l3.03 3.04 1.14-1.14L13.13 12l3.04-3.03-1.14-1.14L12 10.87 8.97 7.83 7.83 8.97 10.87 12l-3.04 3.03 1.14 1.14L12 13.13z"/></svg>\n',download:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/download" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M12.1590909,17.3636364 C11.9999992,17.3636364 11.8553726,17.2840917 11.7252066,17.125 L7.34297521,11.571281 C7.25619791,11.4555779 7.21280992,11.3615706 7.21280992,11.2892562 C7.21280992,11.1012387 7.35020524,11.0072314 7.625,11.0072314 L10.7272727,11.0072314 L10.7272727,4 L13.5909091,4 L13.5909091,11.0072314 L16.6931818,11.0072314 C16.9679766,11.0072314 17.1053719,11.1012387 17.1053719,11.2892562 C17.1053719,11.3615706 17.0619839,11.4555779 16.9752066,11.571281 L12.5929752,17.125 C12.4772721,17.2840917 12.3326455,17.3636364 12.1590909,17.3636364 Z M18.8409091,17.8409091 C18.971075,17.8409091 19.0831607,17.8879128 19.1771694,17.9819215 C19.2711782,18.0759302 19.3181818,18.1880159 19.3181818,18.3181818 L19.3181818,19.2727273 C19.3181818,19.4028932 19.2711782,19.5149789 19.1771694,19.6089876 C19.0831607,19.7029963 18.971075,19.75 18.8409091,19.75 L5.47727273,19.75 C5.34710679,19.75 5.23502113,19.7029963 5.1410124,19.6089876 C5.04700366,19.5149789 5,19.4028932 5,19.2727273 L5,18.3181818 C5,18.1880159 5.04700366,18.0759302 5.1410124,17.9819215 C5.23502113,17.8879128 5.34710679,17.8409091 5.47727273,17.8409091 L18.8409091,17.8409091 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',info:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/info" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M12,4 C7.6,4 4,7.58095238 4,12 C4,16.4190476 7.6,20 12,20 C16.4190476,20 20,16.4190476 20,12 C20,7.58095238 16.4190476,4 12,4 M13.0285714,6.47619048 C13.352381,6.47619048 13.6,6.60952381 13.7714286,6.8 C13.9428571,6.99047619 14.0190476,7.23809524 14.0190476,7.5047619 C14.0190476,8.19047619 13.4666667,8.81904762 12.7238095,8.81904762 C12.1142857,8.81904762 11.752381,8.38095238 11.752381,7.75238095 C11.752381,7.2 12.1904762,6.4952381 13.0285714,6.47619048 M13.3904762,11.4285714 L12.5142857,15.0095238 C12.4761905,15.1809524 12.4571429,15.3142857 12.4571429,15.3904762 L12.4571429,15.4857143 C12.552381,15.4666667 13.1809524,15.047619 13.5809524,14.6666667 L13.6761905,14.5904762 L14.0190476,15.3142857 L14.0571429,15.3904762 L14,15.447619 C12.8761905,16.6666667 11.5047619,17.4095238 10.9714286,17.4095238 C10.8,17.4095238 10.6095238,17.3714286 10.4761905,17.2190476 C10.3428571,17.0666667 10.2857143,16.8571429 10.2857143,16.5333333 C10.2857143,16.2857143 10.3238095,15.7714286 10.4,15.3904762 L11.2190476,11.9238095 C11.2571429,11.7333333 11.2761905,11.6 11.2761905,11.5238095 C11.1428571,11.5809524 10.5142857,12.0190476 10.2285714,12.2666667 L10.1142857,12.3428571 L9.80952381,11.4857143 L9.86666667,11.4285714 C10.9904762,10.3809524 12.3428571,9.54285714 12.9714286,9.54285714 C13.1428571,9.54285714 13.3142857,9.63809524 13.3904762,9.77142857 C13.4666667,9.92380952 13.5047619,10.1142857 13.5047619,10.3428571 C13.5047619,10.5904762 13.4666667,11.1047619 13.3904762,11.4285714" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',ada:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/ada" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M11.777314,5 L16.3099677,9.5326537 L11.777314,14.0653074 L7.24466028,9.5326537 L11.777314,5 Z M6.5326537,10.2446603 L11.0653074,14.777314 L6.5326537,19.3099677 L2,14.777314 L6.5326537,10.2446603 Z M17.0219743,10.2446603 L21.554628,14.777314 L17.0219743,19.3099677 L12.4893206,14.777314 L17.0219743,10.2446603 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',checkmark:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/checkmark">\n <polygon id="Icon" fill="currentColor" points="10 14.5857864 17.7928932 6.79289322 19.2071068 8.20710678 10 17.4142136 5.29289322 12.7071068 6.70710678 11.2928932"></polygon>\n </g>\n</svg>\n',search:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/search" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M15.0317379,13.6175243 L18.7071068,17.2928932 L17.2928932,18.7071068 L13.6175243,15.0317379 C12.7314831,15.642436 11.6574983,16 10.5,16 C7.46243388,16 5,13.5375661 5,10.5 C5,7.46243388 7.46243388,5 10.5,5 C13.5375661,5 16,7.46243388 16,10.5 C16,11.6574983 15.642436,12.7314831 15.0317379,13.6175243 Z M10.5,14 C12.4329966,14 14,12.4329966 14,10.5 C14,8.56700338 12.4329966,7 10.5,7 C8.56700338,7 7,8.56700338 7,10.5 C7,12.4329966 8.56700338,14 10.5,14 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',close:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/UI-library/close" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M12,13.4142136 L7.70710678,17.7071068 L6.29289322,16.2928932 L10.5857864,12 L6.29289322,7.70710678 L7.70710678,6.29289322 L12,10.5857864 L16.2928932,6.29289322 L17.7071068,7.70710678 L13.4142136,12 L17.7071068,16.2928932 L16.2928932,17.7071068 L12,13.4142136 Z" id="Icon" fill="currentColor"></path>\n </g>\n</svg>\n',settings:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M21.223 13.066a.416.416 0 01-.13.304.416.416 0 01-.304.13h-1.562a.762.762 0 00-.488.184.953.953 0 00-.314.445 9.249 9.249 0 01-.434 1.02.832.832 0 00-.087.412c0 .26.072.463.217.607l1.106 1.085c.087.087.13.188.13.304 0 .13-.043.238-.13.325l-1.366 1.345c-.058.087-.16.13-.304.13a.416.416 0 01-.304-.13l-1.085-1.084c-.159-.16-.368-.24-.629-.24a.912.912 0 00-.412.088c-.318.173-.65.318-.998.434a.953.953 0 00-.445.314.762.762 0 00-.184.488v1.562a.416.416 0 01-.13.304.416.416 0 01-.304.13h-1.93a.416.416 0 01-.304-.13.416.416 0 01-.13-.304v-1.562a.762.762 0 00-.185-.488.953.953 0 00-.445-.314 4.747 4.747 0 01-.998-.434.912.912 0 00-.412-.087.823.823 0 00-.607.239l-1.107 1.084a.416.416 0 01-.607 0l-1.367-1.345a.55.55 0 01-.108-.325.52.52 0 01.108-.304l1.107-1.085a.823.823 0 00.238-.607.924.924 0 00-.108-.412 7.832 7.832 0 01-.412-1.02.953.953 0 00-.315-.445.79.79 0 00-.51-.184h-1.54a.416.416 0 01-.304-.13.416.416 0 01-.13-.304v-1.909c0-.116.043-.217.13-.304a.416.416 0 01.304-.13h1.54a.79.79 0 00.51-.184.953.953 0 00.315-.445c.13-.39.267-.73.412-1.02a.963.963 0 00.108-.434.796.796 0 00-.238-.585L4.974 6.948a.52.52 0 01-.108-.303.52.52 0 01.108-.304l1.367-1.345a.416.416 0 01.607 0L8.055 6.08c.159.159.354.238.585.238.145 0 .29-.036.434-.108a8.8 8.8 0 01.998-.412.953.953 0 00.445-.315.79.79 0 00.184-.51v-1.54c0-.116.044-.217.13-.304a.416.416 0 01.304-.13h1.931c.116 0 .217.043.304.13.087.087.13.188.13.304v1.54a.79.79 0 00.184.51.953.953 0 00.445.315c.304.1.636.238.998.412.145.072.29.108.434.108.246 0 .448-.08.607-.238l1.085-1.085a.416.416 0 01.304-.13c.144 0 .246.043.304.13l1.366 1.345a.416.416 0 010 .607l-1.106 1.107c-.145.144-.217.347-.217.607 0 .16.029.297.087.412.115.217.26.557.434 1.02a.953.953 0 00.314.445.762.762 0 00.488.184h1.562c.116 0 .217.044.304.13.087.087.13.188.13.304v1.91zM8.25 12.112c0 .506.098.994.293 1.464.195.47.474.886.835 1.247.752.752 1.663 1.128 2.734 1.128a3.82 3.82 0 002.712-1.128 3.82 3.82 0 00.835-1.247c.195-.47.292-.958.292-1.464A3.82 3.82 0 0014.823 9.4a3.82 3.82 0 00-1.247-.835 3.781 3.781 0 00-1.464-.293c-1.07 0-1.982.376-2.734 1.128a3.82 3.82 0 00-.835 1.247c-.195.47-.293.958-.293 1.465z" fill="#192226" fill-rule="evenodd"/></svg>\n',support:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M14.413 3.315A4.808 4.808 0 0116.153 3a4.83 4.83 0 011.857.367c.595.245 1.116.591 1.563 1.039A4.806 4.806 0 0121 7.846c0 .616-.105 1.196-.315 1.741.21.77.315 1.574.315 2.413 0 .84-.105 1.636-.315 2.392.21.56.315 1.146.315 1.762 0 .643-.122 1.259-.367 1.846a4.842 4.842 0 01-1.06 1.573 4.614 4.614 0 01-1.552 1.06 4.806 4.806 0 01-3.608.031A9.198 9.198 0 0112 21a9.198 9.198 0 01-2.413-.336 4.806 4.806 0 01-3.608-.031 4.614 4.614 0 01-1.552-1.06A4.842 4.842 0 013.367 18 4.753 4.753 0 013 16.154c0-.616.105-1.203.315-1.762A8.897 8.897 0 013 12c0-.84.105-1.643.315-2.413A4.808 4.808 0 013 7.847a4.806 4.806 0 011.427-3.441A4.738 4.738 0 015.99 3.367 4.83 4.83 0 017.846 3c.616 0 1.196.105 1.741.315A9.284 9.284 0 0112 3c.825 0 1.63.105 2.413.315zm-6.567.147c-.797 0-1.531.195-2.203.587A4.358 4.358 0 004.05 5.643a4.294 4.294 0 00-.587 2.203c0 .308.035.637.104.986a8.975 8.975 0 012.067-3.2 8.975 8.975 0 013.2-2.066 5.04 5.04 0 00-.987-.104zm7.322.104a8.975 8.975 0 013.2 2.067 8.975 8.975 0 012.066 3.2c.07-.35.104-.68.104-.987 0-.797-.195-1.531-.587-2.203a4.358 4.358 0 00-1.594-1.594 4.294 4.294 0 00-2.203-.587 5.04 5.04 0 00-.986.104zm-6.42.588a8.727 8.727 0 00-2.727 1.825 8.415 8.415 0 00-1.867 2.77l3.356 1.384a4.69 4.69 0 011.07-1.574 5.165 5.165 0 011.574-1.049L8.748 4.154zm5.12 3.356a4.69 4.69 0 011.573 1.07c.447.462.797.98 1.049 1.553l3.356-1.385a8.727 8.727 0 00-1.825-2.727 8.415 8.415 0 00-2.77-1.867L13.868 7.51zM12 7.615c-.797 0-1.531.196-2.203.588a4.358 4.358 0 00-1.594 1.594A4.294 4.294 0 007.615 12c0 .797.196 1.531.588 2.203a4.358 4.358 0 001.594 1.594 4.294 4.294 0 002.203.588c.797 0 1.531-.196 2.203-.588a4.358 4.358 0 001.594-1.594A4.294 4.294 0 0016.385 12c0-.797-.196-1.531-.588-2.203a4.358 4.358 0 00-1.594-1.594A4.294 4.294 0 0012 7.615zm-7.846 7.637a8.727 8.727 0 001.825 2.727 8.415 8.415 0 002.77 1.867l1.405-3.377a4.714 4.714 0 01-1.595-1.06 5.035 5.035 0 01-1.049-1.563l-3.356 1.406zm12.336-1.406a4.983 4.983 0 01-1.08 1.595c-.455.447-.976.79-1.564 1.028l1.406 3.377a8.727 8.727 0 002.727-1.825 8.415 8.415 0 001.867-2.77l-3.356-1.405zM3.462 16.154c0 .797.195 1.531.587 2.203a4.358 4.358 0 001.594 1.594 4.294 4.294 0 002.203.587c.35 0 .678-.041.986-.125a8.808 8.808 0 01-3.189-2.056 9.05 9.05 0 01-2.077-3.19 5.04 5.04 0 00-.104.987zm16.972-.986a9.05 9.05 0 01-2.077 3.189 8.808 8.808 0 01-3.19 2.056 4.294 4.294 0 003.189-.462 4.358 4.358 0 001.595-1.594 4.294 4.294 0 00.587-2.203 5.04 5.04 0 00-.104-.986z" fill="#192226" fill-rule="evenodd"/></svg>\n',alert:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M19.92 18.84l-7.2-14.43c-.28-.55-1.16-.55-1.44 0l-7.2 14.43A.8.8 0 004.8 20h14.4a.8.8 0 00.72-1.16zm-8.86-8.9h1.88v4.82h-1.88V9.95zm.94 7.78a.94.94 0 110-1.89.94.94 0 010 1.89z"/></svg>\n',question:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 20a8 8 0 110-16 8 8 0 010 16zm-1.25-6.13h2.03v-.3c0-.61.24-.9 1.14-1.42.95-.55 1.4-1.22 1.4-2.18 0-1.56-1.29-2.6-3.27-2.6-2.08 0-3.31 1.11-3.33 2.81h2.11c.02-.63.45-1.04 1.08-1.04.6 0 1.04.36 1.04.89 0 .57-.23.84-1.12 1.36-.9.52-1.23 1.11-1.1 2.22l.02.26zm1.05 3.18a1.2 1.2 0 001.23-1.17 1.2 1.2 0 00-1.23-1.16 1.2 1.2 0 00-1.23 1.16c0 .66.55 1.17 1.23 1.17z"/></svg>\n',"arrow-up":'<svg\n\twidth="20px"\n\theight="20px"\n\tviewBox="0 0 16 16"\n\tversion="1.1"\n\txmlns="http://www.w3.org/2000/svg"\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n>\n\t<path\n\t\tstroke="none"\n\t\tfill="currentColor"\n\t\td="M8.01904762,16 C6.55872286,16 5.21587914,15.6412734 3.99047619,14.9238095 C2.76507324,14.2063456 1.79365438,13.2349268 1.07619048,12.0095238 C0.358726571,10.7841209 0,9.44127714 0,7.98095238 C0,6.5333261 0.358726571,5.2000061 1.07619048,3.98095238 C1.79365438,2.76189867 2.76507324,1.79365438 3.99047619,1.07619048 C5.21587914,0.358726571 6.55872286,0 8.01904762,0 C9.4666739,0 10.7999939,0.358726571 12.0190476,1.07619048 C13.2381013,1.79365438 14.2063456,2.76189867 14.9238095,3.98095238 C15.6412734,5.2000061 16,6.5333261 16,7.98095238 C16,9.44127714 15.6412734,10.7841209 14.9238095,12.0095238 C14.2063456,13.2349268 13.2381013,14.2063456 12.0190476,14.9238095 C10.7999939,15.6412734 9.4666739,16 8.01904762,16 Z M8.91428571,13.1428571 L8.91428571,6.7047619 L11.7714286,9.61904762 L11.8857143,9.61904762 L13.1047619,8.36190476 C13.1301589,8.36190476 13.1428571,8.35238105 13.1428571,8.33333333 C13.1428571,8.31428562 13.1301589,8.3047619 13.1047619,8.3047619 L9.23809524,4.45714286 L8.91428571,4.11428571 L8.91428571,4.07619048 C8.91428571,4.063492 8.90793657,4.05714286 8.8952381,4.05714286 L8.83809524,4.05714286 L8.01904762,3.2 L7.92380952,3.2 L7.08571429,4.05714286 L6.7047619,4.45714286 L2.85714286,8.3047619 C2.84444438,8.3047619 2.83809524,8.31428562 2.83809524,8.33333333 C2.83809524,8.35238105 2.84444438,8.36190476 2.85714286,8.36190476 L4.07619048,9.61904762 L4.17142857,9.61904762 L7.08571429,6.66666667 L7.08571429,13.1428571 C7.08571429,13.1682541 7.09206343,13.1809524 7.1047619,13.1809524 L8.8952381,13.1809524 C8.90793657,13.1809524 8.91428571,13.1682541 8.91428571,13.1428571 Z"\n\t\tid="Icon"\n\t></path>\n</svg>\n',"arrow-down-short":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t<path d="M7.29289322,10.7071068 C6.66292836,10.0771419 7.10909515,9 8,9 L16,9 C16.8909049,9 17.3370716,10.0771419 16.7071068,10.7071068 L12.7071068,14.7071068 C12.3165825,15.0976311 11.6834175,15.0976311 11.2928932,14.7071068 L7.29289322,10.7071068 Z" fill="currentColor"></path>\n</svg>\n',"arrow-left-skip":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t<path d="M7,7 L9,7 L9,17 L7,17 L7,7 Z M15.2969027,7.28888371 C15.9268676,6.65891885 17.0040095,7.10508564 17.0040095,7.99599049 L17.0040095,15.9959905 C17.0040095,16.8868953 15.9268676,17.3330621 15.2969027,16.7030973 L11.2969027,12.7030973 C10.9063784,12.312573 10.9063784,11.679408 11.2969027,11.2888837 L15.2969027,7.28888371 Z" fill="currentColor"></path>\n</svg>\n',"arrow-left":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t<path d="M5.30084531,12.9360446 C4.89971823,12.6208269 4.89971823,12.1097101 5.30084531,11.7947093 L12.4692812,6.16222707 C12.8704083,5.84700943 13.1956055,6.00516047 13.1956055,6.51519253 L13.1956055,10.5180013 L19.969423,10.5180013 L19.969423,14.2127516 L13.1956055,14.2127516 L13.1956055,18.2127403 C13.1956055,18.7334027 12.8704083,18.8852625 12.4692812,18.5598486 L5.30084531,12.9360443 L5.30084531,12.9360446 Z" fill="currentColor"></path>\n</svg>\n',"close-clear":'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="icon/close-clear" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect id="placeholder" x="0" y="0" width="24" height="24"></rect>\n <path d="M11.9984707,10.5842571 L16.2898345,6.29289322 C16.6803588,5.90236893 17.3135238,5.90236893 17.7040481,6.29289322 C18.0945724,6.68341751 18.0945724,7.31658249 17.7040481,7.70710678 L13.4126842,11.9984707 L17.7040481,16.2898345 C18.0945724,16.6803588 18.0945724,17.3135238 17.7040481,17.7040481 C17.3135238,18.0945724 16.6803588,18.0945724 16.2898345,17.7040481 L11.9984707,13.4126842 L7.70710678,17.7040481 C7.31658249,18.0945724 6.68341751,18.0945724 6.29289322,17.7040481 C5.90236893,17.3135238 5.90236893,16.6803588 6.29289322,16.2898345 L10.5842571,11.9984707 L6.29289322,7.70710678 C5.90236893,7.31658249 5.90236893,6.68341751 6.29289322,6.29289322 C6.68341751,5.90236893 7.31658249,5.90236893 7.70710678,6.29289322 L11.9984707,10.5842571 Z" id="icon" fill="currentColor"></path>\n </g>\n</svg>\n',"menu-switch":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M20.355 4a.84.84 0 01.619.25.84.84 0 01.25.618v1.15a.85.85 0 01-.25.607.822.822 0 01-.619.26H3.868a.833.833 0 01-.608-.26.833.833 0 01-.26-.607v-1.15c0-.246.087-.452.26-.619A.85.85 0 013.868 4h16.487zm0 6.14a.84.84 0 01.619.249.84.84 0 01.25.618v1.15a.85.85 0 01-.25.607.822.822 0 01-.619.26H3.868a.833.833 0 01-.608-.26.833.833 0 01-.26-.607v-1.15c0-.246.087-.452.26-.618a.85.85 0 01.608-.25h16.487zm0 6.16a.84.84 0 01.619.25.84.84 0 01.25.618v1.15a.84.84 0 01-.25.618.84.84 0 01-.619.25H3.868a.85.85 0 01-.608-.25.822.822 0 01-.26-.618v-1.15c0-.245.087-.452.26-.618a.85.85 0 01.608-.25h16.487z" fill="currentColor" fill-rule="evenodd"/></svg>\n'};Object.keys(s).forEach((function(t){s[t]=o.html([s[t]])}));var a,l={ICON_WRAPPER:"icon-wrapper",CIRCULAR_BG:"circular-background"},c=(n({},o.helpers.classNamesToSelector(l)),o.constants.colors),d=o.constants.colorModifiers,p={DEFAULT:"default",INVERTED:"inverted",PRIMARY:"primary",DANGER:"danger",ERROR:"error",SUCCESS:"success",ACTIVE:"active",INFO:"info",FOCUS:"focus",WARNING:"warning",DISABLED:"disabled",DISABLED_CHECKED:"disabled-checked",SUGGESTED:"suggested",SLATE_LIGHTEST:"slate-lightest",ACTION:"action"},h=((a={})[p.DEFAULT]=c.SLATE,a[p.INVERTED]=c.WHITE,a[p.DANGER]=c.RED,a[p.ERROR]=c.RED,a[p.SUCCESS]=c.GREEN,a[p.PRIMARY]=c.BLUE,a[p.ACTIVE]=c.BLUE,a[p.INFO]=c.BLUE,a[p.FOCUS]=c.BLUE,a[p.WARNING]=c.ORANGE,a[p.DISABLED]=c.GRAY+d.LIGHTER,a[p.SUGGESTED]=c.PURPLE,a[p.DISABLED_CHECKED]=c.GRAY+d.LIGHT,a[p.SLATE_LIGHTEST]=c.SLATE+d.LIGHTEST,a[p.ACTION]=c.GRAY,a),u="medium";function f(){var t=i(['\t:host([type="','"]) {\n\t\t\t\t\t\t--ts-icon-color: var(--ts-color-',");\n\t\t\t\t}"]);return f=function(){return t},t}function g(){var t=i(['\n\t\t\t<span class="','">\n\t\t\t\t',"\n\t\t\t</span>\n\t\t"]);return g=function(){return t},t}var v=function(t){var e,n,i,a;function c(){var o=t.call(this)||this;return o.size=u,o}return n=t,(e=c).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,c.prototype.render=function(){return o.html(g(),l.ICON_WRAPPER,s[this.icon])},i=c,a=[{key:"styles",get:function(){var t=Object.keys(p).map((function(t){var e=p[t],r=h[e];return o.css(f(),o.unsafeCSS(e),o.unsafeCSS(r))}));return[o.TSElement.styles,o.unsafeCSS(':host{display:inline-block}:host svg{color:var(--ts-icon-color)}.fill-none{fill:none}:host([size=small]) .icon-wrapper{width:12px;width:var(--ts-fontsize-mini);height:12px;height:var(--ts-fontsize-mini)}:host([size=medium]) .icon-wrapper{width:16px;width:var(--ts-fontsize-medium);height:16px;height:var(--ts-fontsize-medium)}:host([size=large]) .icon-wrapper{width:24px;width:var(--ts-fontsize-xbig);height:24px;height:var(--ts-fontsize-xbig)}:host([size=extra-large]) .icon-wrapper{width:60px;width:var(--ts-unit-triple);height:60px;height:var(--ts-unit-triple)}:host([rotate="90"]) .icon-wrapper{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host([rotate="180"]) .icon-wrapper{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host([rotate="270"]) .icon-wrapper{-webkit-transform:rotate(270deg);transform:rotate(270deg)}:host([flip=h]) .icon-wrapper,:host([flip=horizontal]) .icon-wrapper{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host([flip=v]) .icon-wrapper,:host([flip=vertical]) .icon-wrapper{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.icon-wrapper{position:relative;display:block;padding-top:100%;width:100%;height:0}svg{position:absolute;top:0;left:0;width:100%;height:100%}:host([type=default]) svg{color:#1f2a2e;color:var(--ts-color-slate)}:host([type=inverted]) svg{color:#fff;color:var(--ts-color-white)}:host([type=primary]) svg{color:#00aeff;color:var(--ts-color-blue)}:host([type=danger]) svg,:host([type=error]) svg{color:#bd0000;color:var(--ts-color-red)}:host([type=success]) svg{color:#50c610;color:var(--ts-color-green)}:host([type=active]) svg,:host([type=focus]) svg,:host([type=info]) svg{color:#00aeff;color:var(--ts-color-blue)}:host([type=warning]) svg{color:#ff8c00;color:var(--ts-color-orange)}:host([type=disabled]) svg{color:#e6ecef;color:var(--ts-color-gray-lighter)}:host([type=disabled-checked]) svg{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=suggested]) svg{color:#90129b;color:var(--ts-color-purple)}:host([type=slate-lightest]) svg{color:#506b77;color:var(--ts-color-slate-lightest)}:host([type=action]) svg{color:#9ab2bc;color:var(--ts-color-gray)}:host([circular]){border-radius:50%;background-color:var(--ts-icon-color)}:host([circular]) svg{color:#fff;color:var(--ts-color-white)}')].concat(t)}},{key:"properties",get:function(){return{icon:{type:String,reflect:!0},size:{type:String,reflect:!0},type:{type:String,reflect:!0},circular:{type:Boolean,reflect:!0},rotate:{type:Number,reflect:!0},flip:{type:String,reflect:!0}}}}],null&&r(i.prototype,null),a&&r(i,a),c}(o.TSElement);function b(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,o){return o||(o=t.slice(0)),t.raw=o,t}o.customElementDefineHelper("ts-icon",v);var w={PRIMARY:"primary",SECONDARY:"secondary",TEXT:"text",ACCEPT:"accept",WARNING:"warning",DANGER:"danger"};function x(){var t=y(['\n\t\t\t\t\t\t\t<ts-icon icon="','" size="large" type="','"></ts-icon>\n\t\t\t\t\t ']);return x=function(){return t},t}function m(){var t=y(['\n\t\t\t<button id="button" ?disabled="','" dir="','" @click="','">\n\t\t\t\t',"\n\t\t\t\t<span><slot></slot></span>\n\t\t\t</button>\n\t\t"]);return m=function(){return t},t}var k=function(t){var e,r;function n(){var o=t.call(this)||this;return o.grouped=!1,o}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,a,l=n.prototype;return l.attributeChangedCallback=function(o,e,r){var n=this;t.prototype.attributeChangedCallback.call(this,o,e,r),"focused"===o&&this.focused&&window.customElements.whenDefined("ts-button").then((function(){return n.shadowRoot.getElementById("button").focus()}))},l.clickHandler=function(t){this.disabled||this.busy||this.dispatchCustomEvent("button-click",t)},l.render=function(){return o.html(m(),this.disabled,this.direction,this.clickHandler,this.icon?o.html(x(),this.icon,this.iconType):"")},i=n,a=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host{display:inline-block;line-height:20px;line-height:var(--ts-unit)}:host,:host>button{font-size:14px;font-size:var(--ts-font-size-default)}:host>button{position:relative;min-width:40px;min-width:var(--ts-unit-double);border:none;border-radius:40px;border-radius:var(--ts-unit-double);padding:0}:host span{display:block;padding:10px 20px;padding:var(--ts-unit-half) var(--ts-unit);font-weight:600;font-weight:var(--ts-fontweight-semibold);text-transform:uppercase;letter-spacing:.02em;line-height:20px;line-height:var(--ts-unit);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;white-space:nowrap}:host(:not([busy]))>button:hover{cursor:pointer;background:#e6ecef;background:var(--ts-color-gray-lighter)}:host(:not([type]))>button,:host([type=secondary])>button{box-shadow:inset 0 0 0 1px #cbd7dc;box-shadow:var(--ts-boxshadow-border-default)}:host(:not([type]))>button:focus,:host([type=secondary])>button:focus{box-shadow:inset 0 0 0 2px #00aeff;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-blue)}:host(.no-border)>button{box-shadow:none;background:transparent}:host(.no-border)>button:focus{box-shadow:none}:host([type=primary])>button{background:#00aeff;background:var(--ts-color-blue);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=primary])>button:hover{background:#0085cc;background:var(--ts-color-blue-dark)}:host(:not([busy])[type=primary])>button:focus{box-shadow:inset 0 0 0 2px #0065a3;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-blue-darker)}:host([type=accept])>button{background:#50c610;background:var(--ts-color-green);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=accept])>button:hover{background:#399d0b;background:var(--ts-color-green-dark)}:host(:not([busy])[type=accept])>button:focus{box-shadow:inset 0 0 0 2px #287f06;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-green-darker)}:host([type=warning])>button{background:#ff8c00;background:var(--ts-color-orange);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=warning])>button:hover{background:#f07c00;background:var(--ts-color-orange-dark)}:host(:not([busy])[type=warning])>button:focus{box-shadow:inset 0 0 0 2px #d15b00;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-orange-darker)}:host([type=danger])>button{background:#bd0000;background:var(--ts-color-red);color:#fff;color:var(--ts-color-white)}:host(:not([busy])[type=danger])>button:hover{background:#900;background:var(--ts-color-red-dark)}:host(:not([busy])[type=danger])>button:focus{box-shadow:inset 0 0 0 2px #7a0000;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-red-darker)}:host([type=text])>button{background:transparent;border-radius:3px;border-radius:var(--ts-radius);display:flex;align-items:center}:host([type=text]) span{color:#00aeff;color:var(--ts-color-blue);padding:0 5px;padding:0 var(--ts-unit-quarter);font-weight:400;font-weight:var(--ts-fontweight);text-transform:none;letter-spacing:normal}:host(:not([busy])[type=text])>button:hover{background:transparent}:host(:not([busy])[type=text])>button:hover span{color:#0085cc;color:var(--ts-color-blue-dark)}:host(:not([busy])[type=text])>button:focus{background:#00aeff;background:var(--ts-color-blue)}:host(:not([busy])[type=text])>button:focus span{color:#fff;color:var(--ts-color-white)}:host([type=text][icon])>button{padding:10px;padding:var(--ts-unit-half)}:host([type=text][icon])>button span{color:var(--ts-color-blue-darkest)}:host(:not([busy])[type=text][icon])>button:hover{background:#eff3f5;background:var(--ts-color-gray-lightest)}:host(:not([busy])[type=text][icon])>button:hover span{color:var(--ts-color-blue-darkest)}:host(:not([busy])[type=text][icon])>button:focus{background:#eff3f5;background:var(--ts-color-gray-lightest);box-shadow:inset 0 0 0 2px #9ab2bc;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-gray)}:host(:not([busy])[type=text][icon])>button:focus span{color:var(--ts-color-blue-darkest)}:host(:not([type=text])[size=micro])>button{font-size:11px;font-size:var(--ts-fontsize-small);border-radius:20px;border-radius:var(--ts-unit);padding:0 10px;padding:0 var(--ts-unit-half)}:host(:not([type=text])[size=micro]) span{padding:0 2.5px;padding:0 var(--ts-unit-eighth);font-size:11px;font-size:var(--ts-fontsize-small)}:host([grouped]){display:block;margin-bottom:10px;margin-bottom:var(--ts-unit-half);text-align:center}:host([grouped])>button{width:100%;display:block}:host(:not([type=text])[icon])>button{width:40px;width:var(--ts-unit-double);height:40px;height:var(--ts-unit-double)}:host(:not([type=text])[icon]) ts-icon{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}:host(:not([type=text])[icon]) span{display:none}:host([disabled]){cursor:not-allowed}:host([disabled])>button{pointer-events:none;background-color:#e6ecef;background-color:var(--ts-disabled-background-color);box-shadow:none}:host([disabled]) span{color:#829fab;color:var(--ts-disabled-color)}:host([disabled][type=text])>button{background-color:transparent}:host([busy])>:first-child{pointer-events:none;cursor:default;box-shadow:none;background-size:40px 40px;background-size:var(--ts-unit-double) var(--ts-unit-double);background-image:linear-gradient(-45deg,#cbd7dc 25%,#eff3f5 0,#eff3f5 50%,#cbd7dc 0,#cbd7dc 75%,#eff3f5 0,#eff3f5);background-image:linear-gradient(-45deg,var(--ts-color-gray-light) 25%,var(--ts-color-gray-lightest) 0,var(--ts-color-gray-lightest) 50%,var(--ts-color-gray-light) 0,var(--ts-color-gray-light) 75%,var(--ts-color-gray-lightest) 0,var(--ts-color-gray-lightest));-webkit-animation:move 1s linear infinite;animation:move 1s linear infinite}:host([busy])>:first-child>*{visibility:hidden}@-webkit-keyframes move{0%{background-position:0 0}to{background-position:40px 40px;background-position:var(--ts-unit-double) var(--ts-unit-double)}}@keyframes move{0%{background-position:0 0}to{background-position:40px 40px;background-position:var(--ts-unit-double) var(--ts-unit-double)}}")]}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},size:{type:String,reflect:!0},busy:{type:Boolean,reflect:!0},icon:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},grouped:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},dir:{type:String,reflect:!0}}}}],(s=[{key:"direction",get:function(){return this.dir||this.bodyDir}},{key:"iconType",get:function(){return this.icon&&this.type===w.TEXT?"action":[w.DANGER,w.WARNING,w.ACCEPT,w.PRIMARY].indexOf(this.type)>-1?"inverted":"default"}}])&&b(i.prototype,s),a&&b(i,a),n}(o.TSElement);function C(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(){var t,o,e=(t=['\n\t\t\t<div class="cover ','"></div>\n\t\t'],o||(o=t.slice(0)),t.raw=o,t);return L=function(){return e},e}o.customElementDefineHelper("ts-button",k);var S=function(t){var e,r,n,i;function s(){var o=t.call(this)||this;return o.visible=!1,o}return r=t,(e=s).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n=s,i=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(".cover{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;visibility:hidden;background-color:#0f151a;background-color:var(--ts-color-black);z-index:10000;z-index:var(--ts-zindex-max)}.ts-fadeIn{visibility:visible;opacity:.8;transition:visibility .1s linear .1s,opacity .2s;transition:visibility var(--ts-transition-now) linear var(--ts-transition-now),opacity var(--ts-transition-fast)}.ts-fadeOut{visibility:hidden;opacity:0;transition:visibility .1s linear .2s,opacity .2s;transition:visibility var(--ts-transition-now) linear var(--ts-transition-fast),opacity var(--ts-transition-fast)}:host(.ts-aside-cover)>div{pointer-events:auto;z-index:1999;z-index:var(--ts-zindex-aside-cover)}:host(.ts-dialog-cover)>div{pointer-events:auto;z-index:2999;z-index:var(--ts-zindex-dialog-cover)}:host(.ts-spin-cover)>div{pointer-events:auto;z-index:3999;z-index:var(--ts-zindex-spin-cover)}:host(.ts-modal-cover)>div{pointer-events:auto;z-index:1499;z-index:var(--ts-zindex-modal-cover)}")]}},{key:"properties",get:function(){return{visible:{type:Boolean,attribute:"data-visible",reflect:!0}}}}],null&&C(n.prototype,null),i&&C(n,i),s.prototype.render=function(){return o.html(L(),this.visible?"ts-fadeIn":"ts-fadeOut")},s}(o.TSElement);function z(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(){var t,o,e=(t=['\n\t\t\t<img .src="','" .alt="','"></img>\n\t\t'],o||(o=t.slice(0)),t.raw=o,t);return E=function(){return e},e}o.customElementDefineHelper("ts-cover",S);var T=function(t){var e,r,n,i;function s(){return t.apply(this,arguments)||this}return r=t,(e=s).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,s.prototype.render=function(){return o.html(E(),this.src,this.alt)},n=s,i=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host img{width:40px;width:var(--ts-unit-double);height:40px;height:var(--ts-unit-double);border-radius:3px;border-radius:var(--ts-radius)}:host([size=large]) img{width:60px;width:var(--ts-unit-triple);height:60px;height:var(--ts-unit-triple)}")]}},{key:"properties",get:function(){return{size:{type:String,reflect:!0},src:{type:String,reflect:!0},alt:{type:String,reflect:!0}}}}],null&&z(n.prototype,null),i&&z(n,i),s}(o.TSElement);function A(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,o,e){return o&&A(t.prototype,o),e&&A(t,e),t}function I(t,o){return o||(o=t.slice(0)),t.raw=o,t}function _(){var t=I(['\n\t\t\t<ts-icon\n\t\t\t\t@click="','"\n\t\t\t\tclass="menu-switch"\n\t\t\t\ticon="menu-switch"\n\t\t\t\tsize="large"\n\t\t\t\ttabindex="0"\n\t\t\t></ts-icon>\n\t\t']);return _=function(){return t},t}function O(){var t=I(["\n\t\t\t<header dir=",'>\n\t\t\t\t<div class="title-icon-container">\n\t\t\t\t\t'," "," ",'\n\t\t\t\t</div>\n\t\t\t\t<div class="slot-container">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</header>\n\t\t']);return O=function(){return t},t}function R(){var t=I(['\n\t\t\t<span class="title">',"</span>\n\t\t"]);return R=function(){return t},t}function M(){var t=I(['\n\t\t\t<ts-app-icon class="icon" src="','" alt="','"></ts-app-icon>\n\t\t']);return M=function(){return t},t}o.customElementDefineHelper("ts-app-icon",T);var D=function(t){var e,r;function n(){var o=t.call(this)||this;return o.color="white",o}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,B(n,null,[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host{border-bottom:1px solid #cbd7dc;border-bottom:var(--ts-border);height:60px;height:var(--ts-unit-triple)}:host,:host>header{display:flex;width:100%}:host>header{background-color:#fff;background-color:var(--ts-color-white);align-items:center;justify-content:space-between}:host .icon{height:40px;height:var(--ts-unit-double)}:host .icon,:host .title{margin-left:10px;margin-left:var(--ts-unit-half)}:host .title{font-size:18px;font-size:var(--ts-fontsize-big)}.title-icon-container{align-items:center;display:flex}.slot-container{margin:0 10px;margin:0 var(--ts-unit-half)}[dir=rtl] .icon,[dir=rtl] .title{margin-left:0;margin-right:10px;margin-right:var(--ts-unit-half)}:host([color=black])>header{background-color:#0f151a;background-color:var(--ts-color-black)}:host([color=black]) .title{color:#fff;color:var(--ts-color-white)}:host([color=red])>header{background-color:#bd0000;background-color:var(--ts-color-red)}:host([color=red]) .title{color:#fff;color:var(--ts-color-white)}:host([color=orange])>header{background-color:#ff8c00;background-color:var(--ts-color-orange)}:host([color=orange]) .title{color:#fff;color:var(--ts-color-white)}:host([color=yellow])>header{background-color:#fdbe12;background-color:var(--ts-color-yellow)}:host([color=yellow]) .title{color:#fff;color:var(--ts-color-white)}:host([color=green])>header{background-color:#50c610;background-color:var(--ts-color-green)}:host([color=green]) .title{color:#fff;color:var(--ts-color-white)}:host([color=blue])>header{background-color:#00aeff;background-color:var(--ts-color-blue)}:host([color=blue]) .title{color:#fff;color:var(--ts-color-white)}:host([color=purple])>header{background-color:#90129b;background-color:var(--ts-color-purple)}:host([color=purple]) .title{color:#fff;color:var(--ts-color-white)}:host([color=pink])>header{background-color:#a70262;background-color:var(--ts-color-pink)}:host([color=pink]) .title{color:#fff;color:var(--ts-color-white)}:host([color=gray])>header{background-color:#9ab2bc;background-color:var(--ts-color-gray)}:host([color=gray]) .title{color:#fff;color:var(--ts-color-white)}:host([color=slate])>header{background-color:#1f2a2e;background-color:var(--ts-color-slate)}:host([color=slate]) .title{color:#fff;color:var(--ts-color-white)}:host([color=white])>header{background-color:#fff;background-color:var(--ts-color-white)}:host([color=white]) .title{color:#0f151a;color:var(--ts-color-black)}.menu-switch{padding:10px;padding:var(--ts-unit-half);cursor:pointer;display:none}@media screen and (max-width:600px){.icon{display:none}.menu-switch{display:block}:host .title{margin-left:0;margin-right:0}}")]}},{key:"properties",get:function(){return{dir:{type:String,reflect:!0},icon:{type:String,reflect:!0},title:{type:String,reflect:!0},color:{type:String,reflect:!0}}}}]);var i=n.prototype;return i.getIcon=function(){return this.icon?o.html(M(),this.icon,this.title):""},i.openChromeMenu=function(){window.top.postMessage('app-broadcast:{"appIds": "Tradeshift.Chrome", "key": "ts-broadcast-chrome-menu-open"}',"*")},i.getTitle=function(){return this.title?o.html(R(),this.title):""},i.render=function(){return o.html(O(),this.direction,this.getMenuSwitch,this.getIcon(),this.getTitle())},B(n,[{key:"getMenuSwitch",get:function(){return o.html(_(),this.openChromeMenu)}},{key:"direction",get:function(){return this.dir?this.dir:this.bodyDir}}]),n}(o.TSElement);function U(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t,o){return o||(o=t.slice(0)),t.raw=o,t}o.customElementDefineHelper("ts-header",D);var H="close",j="closed",P="open",G="opened",F="large";function Z(){var t=N(['\n\t\t\t<ts-header .title="','" dir="','">\n\t\t\t\t<ts-button class="no-border" icon="close-clear" size="large" @click="','"></ts-button>\n\t\t\t</ts-header>\n\t\t']);return Z=function(){return t},t}function Y(){var t=N(['\n\t\t\t<div\n\t\t\t\tdir="','"\n\t\t\t\tclass="container '," ",'"\n\t\t\t\t@transitionend="','"\n\t\t\t>\n\t\t\t\t','\n\t\t\t\t<div class="note">\n\t\t\t\t\t<slot name="note"></slot>\n\t\t\t\t</div>\n\t\t\t\t<main>\n\t\t\t\t\t<slot name="main"></slot>\n\t\t\t\t</main>\n\t\t\t\t<footer>\n\t\t\t\t\t<slot name="footer"></slot>\n\t\t\t\t</footer>\n\t\t\t</div>\n\t\t\t<ts-cover class="ts-modal-cover" ?data-visible=',' @click="','"></ts-cover>\n\t\t']);return Y=function(){return t},t}var W=function(t){var e,r;function n(){var e=t.call(this)||this;return e.size=F,e.title="",e.noCloseOnEscKey=!1,e.closeBehavior=new o.CloseOnEscBehavior(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)),e.hideHeader=!1,e.noPadding=!1,e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,a,l=n.prototype;return l.open=function(){this.visible=!0},l.close=function(){this.visible=!1},l.handleTransition=function(t){"opacity"===t.propertyName&&this.dispatchCustomEvent(this.visible?G:j)},l.attributeChangedCallback=function(o,e,r){t.prototype.attributeChangedCallback.call(this,o,e,r),"data-visible"===o&&this.dispatchCustomEvent(r?P:H)},l.render=function(){return o.html(Y(),this.direction,this.size,this.hidden,this.handleTransition,this.header,this.visible,this.close)},l.firstUpdated=function(){this.closeBehavior.start()},l.disconnectedCallback=function(){this.closeBehavior.stop(),t.prototype.disconnectedCallback.call(this)},i=n,a=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(".container{background-color:#fff;background-color:var(--ts-color-white);box-shadow:inset 0 0 0 1px #cbd7dc;box-shadow:var(--ts-boxshadow-border-default);top:20px;top:var(--ts-unit);bottom:20px;bottom:var(--ts-unit);right:20px;right:var(--ts-unit);left:20px;left:var(--ts-unit);display:flex;flex-direction:column;position:absolute;z-index:1500;z-index:var(--ts-zindex-modal)}ts-header{flex-grow:0;flex-shrink:0;padding:0 0 0 5px;padding:0 0 0 var(--ts-unit-quarter)}ts-header[dir=rtl]{padding:0 5px 0 0;padding:0 var(--ts-unit-quarter) 0 0}.note ::slotted(ts-note){flex-grow:0;padding-left:20px;padding-left:var(--ts-unit);padding-right:20px;padding-right:var(--ts-unit)}.close{height:40px;height:var(--ts-unit-double);width:40px;width:var(--ts-unit-double)}main{flex-grow:1;overflow:auto;padding:20px;padding:var(--ts-unit)}:host([no-padding]) main{padding:0}footer{flex-grow:0}.container.medium{top:12.5%;bottom:12.5%;right:25%;left:25%}.container.small{width:380px;width:var(--ts-modal-width-small);top:50%;bottom:auto;right:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.fade-in{opacity:1;visibility:visible;transition:visibility .1s linear .1s,opacity .2s;transition:visibility var(--ts-transition-now) linear var(--ts-transition-now),opacity var(--ts-transition-fast)}.fade-out{opacity:0;visibility:hidden;transition:visibility .2s linear .1s,opacity .2s;transition:visibility var(--ts-transition-fast) linear var(--ts-transition-now),opacity var(--ts-transition-fast)}@media (max-width:600px){.container,.container.medium{top:10px;top:var(--ts-unit-half);bottom:10px;bottom:var(--ts-unit-half);right:10px;right:var(--ts-unit-half);left:10px;left:var(--ts-unit-half)}.container main{padding:10px;padding:var(--ts-unit-half)}}")]}},{key:"properties",get:function(){return{dir:{type:String,reflect:!0,attribute:"data-dir"},size:{type:String,reflect:!0,attribute:"data-size"},title:{type:String,reflect:!0,attribute:"data-title"},visible:{type:Boolean,reflect:!0,attribute:"data-visible"},noCloseOnEscKey:{type:Boolean,attribute:"no-close-on-esc-key"},hideHeader:{type:Boolean,attribute:"hide-header"},noPadding:{type:Boolean,attribute:"no-padding"}}}}],(s=[{key:"direction",get:function(){return this.dir?this.dir:this.bodyDir}},{key:"hidden",get:function(){return this.visible?"fade-in":"fade-out"}},{key:"header",get:function(){return this.hideHeader?"":o.html(Z(),this.title,this.direction,this.close)}}])&&U(i.prototype,s),a&&U(i,a),n}(o.TSElement);function q(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K(t,o){return o||(o=t.slice(0)),t.raw=o,t}function V(){var t=K(['\n\t\t\t\t\t<div class="text-wrapper" title="','">\n\t\t\t\t\t\t<slot @slotchange="','">',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "]);return V=function(){return t},t}function X(){var t=K(['\n\t\t\t\t\t<div class="text-wrapper">\n\t\t\t\t\t\t<slot>',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "]);return X=function(){return t},t}o.customElementDefineHelper("ts-modal",W);var J=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,a=n.prototype;return a.textChangeHandler=function(t){var o=t.currentTarget;this.tooltip=this.tooltip||this.text||o.assignedNodes()[0].data},a.render=function(){return this.noTooltip?o.html(X(),this.text):o.html(V(),this.tooltip||this.text,this.textChangeHandler,this.text)},i=n,s=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(":host{display:block;line-height:20px;line-height:var(--ts-unit);font-size:14px;font-size:var(--ts-font-size-default);min-width:0;color:#0f151a;color:var(--ts-color-black)}:host([variant=title]) .text-wrapper{font-size:16px;font-size:var(--ts-fontsize-medium);font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([variant=subtitle]) .text-wrapper{font-size:12px;font-size:var(--ts-fontsize-mini);color:#506b77;color:var(--ts-color-slate-lightest)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{position:relative;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([type=inverted]) .text-wrapper{color:#fff;color:var(--ts-color-white)}:host([type=warning]) .text-wrapper{color:#ff8c00;color:var(--ts-color-orange)}:host([type=danger]) .text-wrapper,:host([type=error]) .text-wrapper{color:#bd0000;color:var(--ts-color-red)}:host([type=action]) .text-wrapper,:host([type=primary]) .text-wrapper{color:#00aeff;color:var(--ts-color-blue)}:host([type=success]) .text-wrapper{color:#50c610;color:var(--ts-color-green)}:host([type=disabled]) .text-wrapper{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=disabled-checked]) .text-wrapper{color:#9ab2bc;color:var(--ts-color-gray)}:host([type=slate-lightest]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest)}")]}},{key:"properties",get:function(){return{text:{type:String},tooltip:{type:String},variant:{type:String},type:{type:String},inline:{type:Boolean},noWrap:{type:Boolean,attribute:"no-wrap"},noTooltip:{type:Boolean,attribute:"no-tooltip"}}}}],null&&q(i.prototype,null),s&&q(i,s),n}(o.TSElement);o.customElementDefineHelper("ts-typography",J);var Q,$,tt,ot="confirm",et="warning",rt="danger",nt=((Q={})[ot]="question",Q[et]="alert",Q[rt]="remove",Q),it=(($={})[ot]="primary",$[et]="warning",$[rt]="danger",$),st=((tt={})[ot]="primary",tt[et]="warning",tt[rt]="danger",tt),at={accept_button:"OK",cancel_button:"Cancel"};function lt(){var t,o,e=(t=["\n\t\t\t<ts-modal ?data-visible=",' data-size="small" hide-header no-close-on-esc-key>\n\t\t\t\t<div class="content" slot="main">\n\t\t\t\t\t<ts-icon icon="','" type="','" size="extra-large"></ts-icon>\n\t\t\t\t\t<slot name="content">\n\t\t\t\t\t\t<ts-typography>','</ts-typography>\n\t\t\t\t\t</slot>\n\t\t\t\t</div>\n\t\t\t\t<div class="footer" slot="footer">\n\t\t\t\t\t<ts-button-group>\n\t\t\t\t\t\t<ts-button\n\t\t\t\t\t\t\t?focused="','"\n\t\t\t\t\t\t\t@click="','"\n\t\t\t\t\t\t\ttype="','"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t','\n\t\t\t\t\t\t</ts-button>\n\t\t\t\t\t\t<slot name="extra-buttons" @slotchange="','"></slot>\n\t\t\t\t\t\t<ts-button\n\t\t\t\t\t\t\t?focused="','"\n\t\t\t\t\t\t\t@click="','"\n\t\t\t\t\t\t\ttype="','"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t',"\n\t\t\t\t\t\t</ts-button>\n\t\t\t\t\t</ts-button-group>\n\t\t\t\t</div>\n\t\t\t</ts-modal>\n\t\t"],o||(o=t.slice(0)),t.raw=o,t);return lt=function(){return e},e}var ct=function(t){var r,n;function i(){var o=t.call(this)||this;return o.type=ot,o.focused="cancel",o._translations=Object.assign({},at),o}n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var s,a,l,c=i.prototype;return c.attributeChangedCallback=function(o,e,r){var n=this;t.prototype.attributeChangedCallback.call(this,o,e,r),"data-visible"===o&&r&&window.setTimeout((function(){n.renderButtons=!0}),200)},c.onAccept=function(){this.dispatchCustomEvent("accept"),this.dismissModal()},c.onCancel=function(){this.dispatchCustomEvent("cancel"),this.dismissModal()},c.dismissModal=function(){this.visible=!1,this.renderButtons=!1},c.extraButtonsSlotChangeHandler=function(t){var e=t.currentTarget.assignedNodes();o.validateSlottedNodes(this.tagName,e,["TS-BUTTON","TS-BUTTON-GROUP"])},c.isFocused=function(t){return this.renderButtons&&this.focused===t},c.render=function(){return o.html(lt(),this.visible,this.getIcon,this.getIconType,this.text,this.isFocused("accept"),this.onAccept,this.getAcceptButtonType,this.translations.accept_button,this.extraButtonsSlotChangeHandler,this.isFocused("cancel"),this.onCancel,this.getCancelButtonType,this.translations.cancel_button)},s=i,l=[{key:"styles",get:function(){return[o.TSElement.styles,o.unsafeCSS(".content{text-align:center;padding:0 20px 20px;padding:0 var(--ts-unit) var(--ts-unit)}.footer{padding:0 40px 20px;padding:0 var(--ts-unit-double) var(--ts-unit)}::slotted(ts-button){display:block;margin-bottom:10px;margin-bottom:var(--ts-unit-half);text-align:center}ts-button:focus{box-shadow:inset 0 0 0 2px #00aeff;box-shadow:var(--ts-boxshadow-border-width-focused) var(--ts-color-blue)}")]}},{key:"properties",get:function(){return{visible:{type:Boolean,attribute:"data-visible",reflect:!0},text:{type:String,reflect:!0},icon:{type:String,reflect:!0},type:{type:String,reflect:!0},translations:{type:Object,reflect:!0},focused:{type:String,reflect:!0},primary:{type:String,reflect:!0},renderButtons:{type:Boolean,attribute:!1}}}}],(a=[{key:"translations",get:function(){return this._translations},set:function(t){var o=this._translations;this._translations=Object.assign(o,t),this.requestUpdate("translations",o)}},{key:"getIcon",get:function(){return this.icon?this.icon:nt[this.type]}},{key:"getIconType",get:function(){return it[this.type]||"primary"}},{key:"getAcceptButtonType",get:function(){return"accept"===this.primary?st[this.type]:"secondary"}},{key:"getCancelButtonType",get:function(){return"cancel"===this.primary?st[this.type]:"secondary"}}])&&e(s.prototype,a),l&&e(s,l),i}(o.TSElement);o.customElementDefineHelper("ts-dialog",ct),t.TSDialog=ct,Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "@tradeshift/elements.dialog",
"version": "0.18.0",
"version": "0.18.1",
"src": "src/dialog.js",

@@ -12,8 +12,13 @@ "main": "lib/dialog.umd.js",

"dependencies": {
"@tradeshift/elements": "^0.18.0",
"@tradeshift/elements.icon": "^0.18.0",
"@tradeshift/elements.modal": "^0.18.0",
"@tradeshift/elements.typography": "^0.18.0"
"@tradeshift/elements": "^0.18.1",
"@tradeshift/elements.icon": "^0.18.1",
"@tradeshift/elements.modal": "^0.18.1",
"@tradeshift/elements.typography": "^0.18.1"
},
"gitHead": "cbef3a40ec294c4ce6f23943d68b3875d43973cf"
"repository": {
"type": "git",
"url": "https://github.com/Tradeshift/elements.git",
"directory": "packages/components/dialog"
},
"gitHead": "7e01c1ecc90deaa3cf90e05f4bec7af20c937ae1"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc