'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var styled = require('styled-components'); var React = require('react'); var reactDom = require('react-dom'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled); var React__default = /*#__PURE__*/_interopDefaultLegacy(React); var warningIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20viewBox%3D%220%200%20512%20512%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%20%3Cg%3E%20%20%3Cg%3E%20%20%20%3Cpath%20d%3D%22M498.892%2C344.739l-79.386-137.504c-0.322-0.558-0.687-1.076-1.088-1.553L342.891%2C74.868%20%20%20%20c-8.492-16.974-21.672-30.973-38.135-40.503c-14.783-8.56-31.583-13.084-48.582-13.084c-34.582%2C0-66.817%2C18.566-84.129%2C48.463%20%20%20%20l-79.387%2C137.49c-0.321%2C0.557-0.59%2C1.137-0.805%2C1.733L17.689%2C337.439C6.115%2C353.886%2C0%2C373.221%2C0%2C393.394%20%20%20%20c0%2C53.665%2C43.659%2C97.325%2C97.322%2C97.325h317.531c0.761%2C0%2C1.505-0.079%2C2.222-0.229c16.263-0.359%2C32.278-4.855%2C46.445-13.059%20%20%20%20c22.444-12.995%2C38.482-33.958%2C45.164-59.026C515.361%2C393.336%2C511.884%2C367.17%2C498.892%2C344.739z%20M487.868%2C412.857%20%20%20%20c-5.198%2C19.509-17.679%2C35.822-35.142%2C45.934c-11.504%2C6.662-24.562%2C10.184-37.86%2C10.184c-0.711%2C0.004-1.419%2C0.069-2.111%2C0.206%20%20%20%20H97.322c-41.787%2C0-75.783-33.998-75.783-75.786c0-15.845%2C4.842-31.024%2C14.003-43.895c0.198-0.278%2C0.381-0.565%2C0.554-0.86%20%20%20%20l75.189-130.248l0.121-0.206c0.349-0.59%2C0.639-1.209%2C0.868-1.845L190.69%2C80.527c13.469-23.258%2C38.561-37.706%2C65.484-37.706%20%20%20%20c13.214%2C0%2C26.281%2C3.523%2C37.791%2C10.186c12.889%2C7.46%2C23.188%2C18.438%2C29.787%2C31.745c0.101%2C0.204%2C0.208%2C0.404%2C0.322%2C0.601%20%20%20%20l76.638%2C132.737c0.322%2C0.558%2C0.687%2C1.076%2C1.088%2C1.554l78.449%2C135.879C490.361%2C372.985%2C493.067%2C393.348%2C487.868%2C412.857z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M167.012%2C186.926c-5.141-2.99-11.734-1.247-14.723%2C3.896L83.633%2C308.887c-2.989%2C5.141-1.245%2C11.734%2C3.896%2C14.723%20%20%20%20c1.703%2C0.991%2C3.566%2C1.461%2C5.404%2C1.461c3.709%2C0%2C7.321-1.919%2C9.319-5.358l68.656-118.064%20%20%20%20C173.898%2C196.508%2C172.155%2C189.916%2C167.012%2C186.926z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M83.413%2C330.662c-5.146-2.984-11.735-1.232-14.719%2C3.915l-0.254%2C0.438c-2.983%2C5.146-1.231%2C11.736%2C3.915%2C14.719%20%20%20%20c1.702%2C0.985%2C3.559%2C1.454%2C5.393%2C1.454c3.714%2C0%2C7.329-1.924%2C9.326-5.369l0.253-0.438%20%20%20%20C90.311%2C340.235%2C88.559%2C333.645%2C83.413%2C330.662z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M407.796%2C426.312c-51.358-0.063-62.716-0.037-78.437%2C0l-2.665%2C0.005c-5.948%2C0.014-10.759%2C4.846-10.746%2C10.793%20%20%20%20c0.014%2C5.94%2C4.832%2C10.746%2C10.769%2C10.746c0.009%2C0%2C0.017%2C0%2C0.025%2C0l2.668-0.006c15.698-0.036%2C27.04-0.062%2C78.36%2C0%20%20%20%20c0.005%2C0%2C0.01%2C0%2C0.015%2C0c5.94%2C0%2C10.761-4.814%2C10.768-10.757C418.559%2C431.148%2C413.743%2C426.32%2C407.796%2C426.312z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M431.309%2C421.911l-0.236%2C0.137c-5.21%2C2.868-7.111%2C9.417-4.243%2C14.627c1.96%2C3.565%2C5.643%2C5.58%2C9.445%2C5.58%20%20%20%20c1.754%2C0%2C3.534-0.43%2C5.181-1.335c0.246-0.136%2C0.493-0.279%2C0.739-0.423c5.133-3.006%2C6.856-9.604%2C3.849-14.736%20%20%20%20C443.038%2C420.629%2C436.44%2C418.905%2C431.309%2C421.911z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M255.965%2C313.249c19.807%2C0%2C35.922-16.114%2C35.922-35.921V168.577c0-19.806-16.116-35.921-35.924-35.921%20%20%20%20c-19.807%2C0-35.921%2C16.114-35.921%2C35.921v108.75C220.042%2C297.135%2C236.157%2C313.249%2C255.965%2C313.249z%20M241.58%2C168.577h0.001%20%20%20%20c0-7.93%2C6.452-14.382%2C14.383-14.382c7.93%2C0%2C14.383%2C6.451%2C14.383%2C14.382v108.75c0%2C7.93-6.452%2C14.382-14.383%2C14.382h-0.002%20%20%20%20c-7.93%2C0-14.382-6.452-14.382-14.382V168.577z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M255.965%2C333.502c-19.807%2C0-35.921%2C16.115-35.921%2C35.923c0%2C19.807%2C16.114%2C35.921%2C35.921%2C35.921%20%20%20%20c19.809%2C0%2C35.923-16.114%2C35.923-35.921C291.888%2C349.616%2C275.772%2C333.502%2C255.965%2C333.502z%20M255.965%2C383.807%20%20%20%20c-7.93%2C0-14.382-6.452-14.382-14.382c0-7.931%2C6.451-14.384%2C14.382-14.384c7.931%2C0%2C14.384%2C6.453%2C14.384%2C14.384%20%20%20%20C270.349%2C377.355%2C263.896%2C383.807%2C255.965%2C383.807z%22%2F%3E%20%20%3C%2Fg%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E"; var successIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20viewBox%3D%220%200%20512%20512%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M437.019%2C74.98C388.667%2C26.628%2C324.381%2C0%2C256%2C0S123.333%2C26.628%2C74.982%2C74.98C26.628%2C123.333%2C0%2C187.62%2C0%2C256%20%20%20s26.628%2C132.667%2C74.982%2C181.02C123.333%2C485.372%2C187.619%2C512%2C256%2C512s132.667-26.628%2C181.019-74.98%20%20%20C485.372%2C388.667%2C512%2C324.38%2C512%2C256S485.372%2C123.333%2C437.019%2C74.98z%20M256%2C491.602c-129.911%2C0-235.602-105.69-235.602-235.602%20%20%20S126.089%2C20.398%2C256%2C20.398S491.602%2C126.089%2C491.602%2C256S385.911%2C491.602%2C256%2C491.602z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M401.592%2C146.105c-13.918-13.918-36.565-13.918-50.483%2C0L200.924%2C296.289l-49.213-49.211%20%20%20c-13.918-13.918-36.565-13.918-50.483%2C0c-13.918%2C13.918-13.918%2C36.565%2C0%2C50.484l74.455%2C74.454%20%20%20c6.743%2C6.742%2C15.707%2C10.454%2C25.241%2C10.454s18.498-3.713%2C25.242-10.455l175.426-175.426%20%20%20C415.509%2C182.67%2C415.509%2C160.022%2C401.592%2C146.105z%20M387.168%2C182.164L211.743%2C357.59c-2.89%2C2.889-6.732%2C4.482-10.818%2C4.482%20%20%20s-7.928-1.592-10.817-4.482l-74.454-74.454c-5.966-5.966-5.966-15.671-0.001-21.636c2.982-2.982%2C6.9-4.473%2C10.818-4.473%20%20%20c3.917%2C0%2C7.836%2C1.492%2C10.817%2C4.474l56.424%2C56.424c3.985%2C3.983%2C10.441%2C3.983%2C14.425%2C0l157.395-157.397%20%20%20c5.966-5.965%2C15.672-5.965%2C21.637%2C0C393.133%2C166.493%2C393.133%2C176.198%2C387.168%2C182.164z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M462.131%2C298.133c-5.464-1.392-11.011%2C1.907-12.4%2C7.366C427.176%2C394.055%2C347.512%2C455.904%2C256%2C455.904%20%20%20c-5.632%2C0-10.199%2C4.566-10.199%2C10.199c0%2C5.633%2C4.567%2C10.199%2C10.199%2C10.199c100.847%2C0%2C188.64-68.166%2C213.498-165.769%20%20%20C470.888%2C305.076%2C467.591%2C299.523%2C462.131%2C298.133z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M466.104%2C245.802c-5.632%2C0-10.199%2C4.566-10.199%2C10.199c0%2C2.916-0.063%2C5.855-0.188%2C8.739%20%20%20c-0.244%2C5.627%2C4.121%2C10.387%2C9.749%2C10.63c0.15%2C0.006%2C0.299%2C0.009%2C0.448%2C0.009c5.43%2C0%2C9.945-4.282%2C10.182-9.759%20%20%20c0.138-3.175%2C0.207-6.411%2C0.207-9.619C476.303%2C250.368%2C471.736%2C245.802%2C466.104%2C245.802z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E"; var infoIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20viewBox%3D%220%200%20512%20512%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M411.272%2C52.471c-44.929-34.326-98.621-52.47-155.273-52.47c-68.38%2C0-132.667%2C26.629-181.019%2C74.98%20%20%20C26.629%2C123.334%2C0%2C187.621%2C0%2C256.001c0%2C68.463%2C26.686%2C132.807%2C75.143%2C181.178c1.626%2C1.622%2C3.755%2C2.434%2C5.885%2C2.434%20%20%20c2.133%2C0%2C4.268-0.815%2C5.895-2.444c3.249-3.256%2C3.245-8.53-0.01-11.779c-45.305-45.224-70.254-105.38-70.254-169.388%20%20%20c0-63.931%2C24.896-124.035%2C70.102-169.241c45.206-45.205%2C105.31-70.101%2C169.24-70.101c52.964%2C0%2C103.16%2C16.961%2C145.158%2C49.049%20%20%20c3.657%2C2.793%2C8.883%2C2.093%2C11.676-1.561C415.626%2C60.49%2C414.927%2C55.264%2C411.272%2C52.471z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M437.234%2C75.199c-3.248-3.254-8.522-3.263-11.779-0.012c-3.257%2C3.248-3.263%2C8.522-0.014%2C11.778%20%20%20c45.076%2C45.185%2C69.901%2C105.216%2C69.901%2C169.035c0%2C63.931-24.896%2C124.035-70.102%2C169.24c-45.206%2C45.206-105.31%2C70.102-169.24%2C70.102%20%20%20c-52.784%2C0-102.841-16.856-144.76-48.744c-3.66-2.785-8.886-2.074-11.672%2C1.586c-2.785%2C3.661-2.074%2C8.886%2C1.586%2C11.672%20%20%20c44.842%2C34.113%2C98.387%2C52.144%2C154.846%2C52.144c68.38%2C0%2C132.667-26.629%2C181.019-74.98C485.371%2C388.666%2C512%2C324.379%2C512%2C255.999%20%20%20C512%2C187.738%2C485.447%2C123.528%2C437.234%2C75.199z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M262.474%2C352.114c-16.457%2C0-30.361%2C13.904-30.361%2C30.361v8.094c0%2C16.741%2C13.62%2C30.361%2C30.361%2C30.361%20%20%20c17.309%2C0%2C30.361-13.052%2C30.361-30.361v-8.094C292.833%2C365.451%2C279.498%2C352.114%2C262.474%2C352.114z%20M276.175%2C390.568%20%20%20c0%2C7.939-5.763%2C13.703-13.703%2C13.703c-7.556%2C0-13.703-6.147-13.703-13.703v-8.094c0-7.299%2C6.403-13.703%2C13.703-13.703%20%20%20c7.811%2C0%2C13.703%2C5.891%2C13.703%2C13.703V390.568z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M365.673%2C192.283c0-56.657-46.296-102.75-103.2-102.75c-36.409%2C0-70.353%2C19.506-88.577%2C50.893%20%20%20c-8.459%2C14.501-3.842%2C32.702%2C10.508%2C41.437c0.044%2C0.027%2C0.089%2C0.053%2C0.134%2C0.08c4.746%2C2.768%2C10.114%2C4.232%2C15.521%2C4.232%20%20%20c10.962-0.001%2C20.848-5.729%2C26.468-15.364c7.301-12.679%2C21.074-20.556%2C35.947-20.556c24.073%2C0%2C42.928%2C18.461%2C42.928%2C42.029%20%20%20c0%2C23.176-19.258%2C42.029-42.928%2C42.029c-16.174%2C0-30.361%2C14.187-30.361%2C30.361c0%2C0.328%2C0.014%2C0.642%2C0.04%2C0.944%20%20%20c-0.028%2C0.302-0.04%2C0.589-0.04%2C0.855v46.761c0%2C16.741%2C13.619%2C30.361%2C30.361%2C30.361c17.309%2C0%2C30.361-13.052%2C30.361-30.361v-22.852%20%20%20h-0.001C336.043%2C277.245%2C365.673%2C237.806%2C365.673%2C192.283z%20M282.588%2C275.901c-3.758%2C0.888-6.411%2C4.243-6.411%2C8.105v29.226%20%20%20c0%2C7.939-5.763%2C13.703-13.703%2C13.703c-7.556%2C0-13.703-6.147-13.703-13.703v-44.853c0.345-1.038%2C0.45-2.011%2C0.45-2.807%20%20%20c0-0.817-0.12-1.622-0.351-2.392c0.85-6.463%2C7.061-12.21%2C13.604-12.21c32.856%2C0%2C59.586-26.327%2C59.586-58.687%20%20%20c0-15.908-6.222-30.739-17.519-41.762c-11.184-10.914-26.124-16.924-42.068-16.924c-20.812%2C0-40.118%2C11.075-50.359%2C28.861%20%20%20c-2.578%2C4.419-7.085%2C7.057-12.057%2C7.058c-2.435%2C0-4.874-0.665-7.059-1.923c-6.577-4.048-8.604-12.105-4.705-18.788%20%20%20c15.262-26.285%2C43.686-42.614%2C74.18-42.614c47.719%2C0%2C86.542%2C38.621%2C86.542%2C86.092%20%20%20C349.015%2C232.264%2C321.699%2C266.649%2C282.588%2C275.901z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E"; var errorIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20viewBox%3D%220%200%20512%20512%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%20%3Cg%3E%20%20%3Cg%3E%20%20%20%3Cpath%20d%3D%22M319.973%2C0.001c-105.885%2C0-192.029%2C86.142-192.029%2C192.027c0%2C41.38%2C13.157%2C79.744%2C35.506%2C111.13l-16.888%2C16.89%20%20%20%20c-2.012-1.972-4.715-3.081-7.535-3.081c-2.856%2C0-5.596%2C1.135-7.615%2C3.155L12.486%2C439.047C4.434%2C447.096%2C0%2C457.834%2C0%2C469.28%20%20%20%20c0%2C11.445%2C4.434%2C22.182%2C12.486%2C30.233c8.051%2C8.052%2C18.787%2C12.487%2C30.234%2C12.487c11.445%2C0%2C22.183-4.435%2C30.232-12.487%20%20%20%20l118.927-118.926c2.021-2.019%2C3.156-4.759%2C3.156-7.615c0-2.821-1.11-5.525-3.083-7.538l16.885-16.887%20%20%20%20c31.389%2C22.352%2C69.755%2C35.511%2C111.137%2C35.511C425.857%2C384.056%2C512%2C297.913%2C512%2C192.027C512%2C86.143%2C425.856%2C0.001%2C319.973%2C0.001z%20%20%20%20%20M57.719%2C484.283c-3.981%2C3.982-9.309%2C6.176-15%2C6.176c-5.692%2C0-11.021-2.194-15.005-6.177c-8.271-8.272-8.271-21.733%2C0.002-30.004%20%20%20%20l111.309-111.311l30.005%2C30.005L57.719%2C484.283z%20M176.723%2C350.198l-14.926-14.924l15.201-15.202%20%20%20%20c4.7%2C5.243%2C9.682%2C10.225%2C14.925%2C14.925L176.723%2C350.198z%20M319.973%2C362.516c-94.008%2C0-170.489-76.481-170.489-170.489%20%20%20%20c0-94.006%2C76.481-170.487%2C170.489-170.487c94.006%2C0%2C170.487%2C76.48%2C170.487%2C170.487%20%20%20%20C490.46%2C286.034%2C413.98%2C362.516%2C319.973%2C362.516z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M214.344%2C86.398c-19.905%2C19.903-33.739%2C44.935-40.005%2C72.386c-1.325%2C5.799%2C2.304%2C11.572%2C8.102%2C12.897%20%20%20%20c0.806%2C0.184%2C1.611%2C0.273%2C2.406%2C0.273c4.912%2C0%2C9.351-3.384%2C10.49-8.375c5.362-23.494%2C17.202-44.914%2C34.237-61.948%20%20%20%20c4.206-4.205%2C4.207-11.024%2C0-15.231C225.369%2C82.194%2C218.55%2C82.193%2C214.344%2C86.398z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M457.501%2C212.372c-5.8-1.325-11.574%2C2.305-12.897%2C8.103c-13.357%2C58.52-64.609%2C99.39-124.634%2C99.39%20%20%20%20c-5.948%2C0-10.77%2C4.823-10.77%2C10.77c0%2C5.948%2C4.822%2C10.77%2C10.77%2C10.77c33.707%2C0%2C66.783-11.574%2C93.136-32.589%20%20%20%20c26.353-21.017%2C44.997-50.688%2C52.498-83.549C466.927%2C219.469%2C463.3%2C213.695%2C457.501%2C212.372z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M360.529%2C263.515l6.226%2C6.224c2.102%2C2.103%2C4.859%2C3.155%2C7.614%2C3.155c2.757%2C0%2C5.513-1.05%2C7.617-3.155%20%20%20%20c4.205-4.206%2C4.205-11.025%2C0-15.232l-6.228-6.228c2.882-3.961%2C5.279-8.165%2C7.214-12.527l8.524%2C2.283%20%20%20%20c0.934%2C0.25%2C1.871%2C0.37%2C2.794%2C0.37c4.756%2C0%2C9.108-3.174%2C10.396-7.986c1.539-5.745-1.871-11.65-7.616-13.19l-8.549-2.29%20%20%20%20c0.501-4.799%2C0.501-9.638%2C0-14.436l8.549-2.291c5.745-1.539%2C9.155-7.444%2C7.616-13.19c-1.539-5.745-7.446-9.159-13.19-7.615%20%20%20%20l-8.526%2C2.284c-1.933-4.362-4.332-8.565-7.214-12.527l6.229-6.23c4.205-4.206%2C4.205-11.024-0.002-15.231%20%20%20%20c-4.205-4.205-11.024-4.206-15.231%2C0.001l-6.225%2C6.226c-7.001-5.112-14.84-8.817-23.175-10.973l10.07-17.439%20%20%20%20c2.975-5.151%2C1.209-11.738-3.942-14.712c-5.149-2.974-11.737-1.209-14.712%2C3.942l-8.797%2C15.236l-8.801-15.242%20%20%20%20c-2.975-5.15-9.563-6.915-14.712-3.941c-5.151%2C2.975-6.917%2C9.561-3.942%2C14.712l10.072%2C17.442%20%20%20%20c-8.335%2C2.155-16.178%2C5.86-23.179%2C10.973l-6.226-6.226c-4.205-4.206-11.024-4.206-15.231-0.001%20%20%20%20c-4.206%2C4.206-4.207%2C11.024-0.001%2C15.231l6.228%2C6.23c-2.882%2C3.961-5.279%2C8.165-7.214%2C12.527l-8.524-2.284%20%20%20%20c-5.745-1.541-11.651%2C1.87-13.19%2C7.616c-1.539%2C5.746%2C1.871%2C11.651%2C7.615%2C13.19l8.549%2C2.291c-0.501%2C4.798-0.501%2C9.637%2C0%2C14.436%20%20%20%20l-8.549%2C2.29c-5.745%2C1.54-9.155%2C7.445-7.615%2C13.19c1.288%2C4.812%2C5.64%2C7.986%2C10.396%2C7.986c0.921%2C0%2C1.86-0.12%2C2.794-0.37%20%20%20%20l8.524-2.283c1.934%2C4.362%2C4.331%2C8.565%2C7.214%2C12.527l-6.228%2C6.228c-4.205%2C4.206-4.205%2C11.025%2C0%2C15.232%20%20%20%20c2.103%2C2.103%2C4.859%2C3.155%2C7.616%2C3.155c2.756%2C0%2C5.512-1.05%2C7.615-3.155l6.225-6.225c11.717%2C8.555%2C25.781%2C13.183%2C40.563%2C13.183%20%20%20%20C334.752%2C276.696%2C348.816%2C272.068%2C360.529%2C263.515z%20M330.738%2C161.524c8.554%2C1.977%2C16.409%2C6.297%2C22.771%2C12.659%20%20%20%20c18.492%2C18.491%2C18.493%2C48.581%2C0.004%2C67.076c-0.002%2C0.001-0.003%2C0.002-0.004%2C0.003s-0.002%2C0.002-0.003%2C0.003%20%20%20%20c-6.362%2C6.36-14.214%2C10.679-22.768%2C12.656V161.524z%20M309.199%2C253.92c-8.551-1.977-16.405-6.295-22.766-12.655%20%20%20%20c-0.001-0.001-0.003-0.002-0.003-0.003c-0.002-0.001-0.003-0.002-0.004-0.003c-18.49-18.495-18.488-48.585%2C0.003-67.076%20%20%20%20c6.362-6.362%2C14.216-10.681%2C22.77-12.658V253.92z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M181.43%2C180.24c-0.023%2C0-0.045%2C0-0.068%2C0c-5.916%2C0-10.731%2C4.779-10.769%2C10.703l-0.002%2C1.085%20%20%20%20c0%2C5.947%2C4.822%2C10.77%2C10.77%2C10.77s10.77-4.823%2C10.77-10.77l0.002-0.951C192.171%2C185.129%2C187.379%2C180.277%2C181.43%2C180.24z%22%2F%3E%20%20%20%3Cpath%20d%3D%22M458.581%2C181.257c-5.948%2C0-10.77%2C4.822-10.77%2C10.77l-0.002%2C0.934c-0.046%2C5.947%2C4.739%2C10.807%2C10.686%2C10.853%20%20%20%20c0.028%2C0%2C0.057%2C0%2C0.084%2C0c5.91%2C0%2C10.724-4.767%2C10.768-10.687l0.004-1.1C469.351%2C186.079%2C464.529%2C181.257%2C458.581%2C181.257z%22%2F%3E%20%20%3C%2Fg%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E"; var closeIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20viewBox%3D%220%200%20477.139%20477.139%22%20style%3D%22enable-background%3Anew%200%200%20477.139%20477.139%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M56.656%2C477.139c-14.515%2C0-29.03-5.525-40.081-16.575c-22.101-22.101-22.101-58.062%2C0-80.162l141.833-141.833%20%20%20L16.575%2C96.737c-22.1-22.101-22.1-58.061%2C0-80.162c22.102-22.101%2C58.062-22.099%2C80.162%2C0L238.57%2C158.408L380.402%2C16.575%20%20%20c22.1-22.099%2C58.061-22.1%2C80.162%2C0c22.101%2C22.101%2C22.101%2C58.062%2C0%2C80.162L318.731%2C238.569l141.833%2C141.833%20%20%20c22.1%2C22.101%2C22.1%2C58.061%2C0%2C80.162c-22.102%2C22.102-58.062%2C22.1-80.162%2C0L238.57%2C318.731L96.737%2C460.564%20%20%20C85.687%2C471.614%2C71.172%2C477.139%2C56.656%2C477.139z%20M56.656%2C19.99c-9.395%2C0-18.787%2C3.575-25.939%2C10.727%20%20%20c-14.302%2C14.303-14.302%2C37.575%2C0%2C51.877l148.903%2C148.904c3.905%2C3.905%2C3.905%2C10.237%2C0%2C14.143L30.718%2C394.545%20%20%20c-14.303%2C14.302-14.303%2C37.574%2C0%2C51.877c14.303%2C14.302%2C37.576%2C14.302%2C51.877%2C0l148.904-148.903c3.905-3.905%2C10.237-3.905%2C14.143%2C0%20%20%20l148.904%2C148.903c14.303%2C14.303%2C37.575%2C14.304%2C51.877%2C0c14.302-14.303%2C14.302-37.575%2C0-51.877L297.518%2C245.641%20%20%20c-3.905-3.905-3.905-10.237%2C0-14.143L446.422%2C82.594c14.303-14.302%2C14.303-37.574%2C0-51.877c-14.303-14.302-37.575-14.302-51.877%2C0%20%20%20L245.641%2C179.621c-3.905%2C3.905-10.237%2C3.905-14.143%2C0L82.595%2C30.717C75.444%2C23.567%2C66.049%2C19.99%2C56.656%2C19.99z%22%2F%3E%20%3C%2Fg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M266.07%2C204.569c-2.559%2C0-5.119-0.976-7.071-2.929c-3.905-3.905-3.905-10.237%2C0-14.143l87.5-87.5%20%20%20c3.905-3.905%2C10.237-3.905%2C14.143%2C0s3.905%2C10.237%2C0%2C14.143l-87.5%2C87.5C271.188%2C203.593%2C268.629%2C204.569%2C266.07%2C204.569z%22%2F%3E%20%3C%2Fg%3E%20%3Cg%3E%20%20%3Cpath%20d%3D%22M382.07%2C88.569c-2.559%2C0-5.119-0.977-7.071-2.929c-3.905-3.905-3.905-10.237%2C0-14.143l28.75-28.75%20%20%20c3.905-3.904%2C10.237-3.904%2C14.143%2C0c3.905%2C3.905%2C3.905%2C10.237%2C0%2C14.143l-28.75%2C28.75C387.188%2C87.593%2C384.629%2C88.569%2C382.07%2C88.569%20%20%20z%22%2F%3E%20%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E"; exports.ToastCategory = void 0; (function (ToastCategory) { ToastCategory[ToastCategory["Info"] = 0] = "Info"; ToastCategory[ToastCategory["Warning"] = 1] = "Warning"; ToastCategory[ToastCategory["Error"] = 2] = "Error"; ToastCategory[ToastCategory["Success"] = 3] = "Success"; })(exports.ToastCategory || (exports.ToastCategory = {})); var selectCategoryStyle = function (category, config) { switch (category) { case exports.ToastCategory.Info: return { logo: infoIcon, style: config.infoStyle }; case exports.ToastCategory.Warning: return { logo: warningIcon, style: config.warningStyle }; case exports.ToastCategory.Error: return { logo: errorIcon, style: config.errorStyle }; case exports.ToastCategory.Success: return { logo: successIcon, style: config.successStyle }; default: return { logo: successIcon, style: config.successStyle }; } }; /****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; function __spreadArray(to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); } function __makeTemplateObject(cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; } var bottomLeft = styled.css(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n left: 0;\n right: 100;\n top: 100;\n bottom: 0;\n"], ["\n left: 0;\n right: 100;\n top: 100;\n bottom: 0;\n"]))); var bottomRight = styled.css(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n left: 100;\n right: 0;\n top: 100;\n bottom: 0;\n"], ["\n left: 100;\n right: 0;\n top: 100;\n bottom: 0;\n"]))); var topLeft = styled.css(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n left: 0;\n right: 100;\n top: 0;\n bottom: 100;\n float: top;\n"], ["\n left: 0;\n right: 100;\n top: 0;\n bottom: 100;\n float: top;\n"]))); var topRight = styled.css(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n left: 100;\n right: 0;\n top: 0;\n bottom: 100;\n float: top;\n"], ["\n left: 100;\n right: 0;\n top: 0;\n bottom: 100;\n float: top;\n"]))); var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2; exports.ToastPosition = void 0; (function (ToastPosition) { ToastPosition[ToastPosition["TopLeft"] = 0] = "TopLeft"; ToastPosition[ToastPosition["TopRight"] = 1] = "TopRight"; ToastPosition[ToastPosition["BottomLeft"] = 2] = "BottomLeft"; ToastPosition[ToastPosition["BottomRight"] = 3] = "BottomRight"; })(exports.ToastPosition || (exports.ToastPosition = {})); exports.ToastAnimation = void 0; (function (ToastAnimation) { ToastAnimation[ToastAnimation["Appearance"] = 0] = "Appearance"; ToastAnimation[ToastAnimation["Movement"] = 1] = "Movement"; ToastAnimation[ToastAnimation["NoAnimation"] = 2] = "NoAnimation"; })(exports.ToastAnimation || (exports.ToastAnimation = {})); var rightMovementAdd = styled.css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n animation: toast-in-right-add 0.7s;\n @keyframes toast-in-right-add {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0);\n }\n }\n"], ["\n animation: toast-in-right-add 0.7s;\n @keyframes toast-in-right-add {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0);\n }\n }\n"]))); var rightMovementDelete = styled.css(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n animation: toast-in-right-delete 0.7s;\n @keyframes toast-in-right-delete {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(100%);\n }\n }\n"], ["\n animation: toast-in-right-delete 0.7s;\n @keyframes toast-in-right-delete {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(100%);\n }\n }\n"]))); var leftMovementAdd = styled.css(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n animation: toast-in-left-add 0.7s;\n @keyframes toast-in-left-add {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n }\n"], ["\n animation: toast-in-left-add 0.7s;\n @keyframes toast-in-left-add {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n }\n"]))); var leftMovementDelete = styled.css(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n animation: toast-in-left-delete 0.7s;\n @keyframes toast-in-left-delete {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-100%);\n }\n }\n"], ["\n animation: toast-in-left-delete 0.7s;\n @keyframes toast-in-left-delete {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-100%);\n }\n }\n"]))); var appearanceAdd = styled.css(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n animation: toast-appearance-add 0.7s;\n @keyframes toast-appearance-add {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n }\n"], ["\n animation: toast-appearance-add 0.7s;\n @keyframes toast-appearance-add {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n }\n"]))); var appearanceDelete = styled.css(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n animation: toast-appearance-delete 0.7s;\n @keyframes toast-appearance-delete {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n }\n"], ["\n animation: toast-appearance-delete 0.7s;\n @keyframes toast-appearance-delete {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n }\n"]))); var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1; var getToastAnimation = function (position, animation) { switch (animation) { case exports.ToastAnimation.Movement: { switch (position) { case exports.ToastPosition.BottomLeft: case exports.ToastPosition.TopLeft: return { onAdd: leftMovementAdd, onDelete: leftMovementDelete, }; default: return { onAdd: rightMovementAdd, onDelete: rightMovementDelete, }; } } case exports.ToastAnimation.Appearance: { return { onAdd: appearanceAdd, onDelete: appearanceDelete, }; } default: return null; } }; var Wrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n display: flex;\n align-items: center;\n flex-direction: column;\n position: fixed;\n z-index: 10;\n ", "\n"], ["\n margin: 0;\n padding: 0;\n display: flex;\n align-items: center;\n flex-direction: column;\n position: fixed;\n z-index: 10;\n ", "\n"])), function (props) { switch (props.position) { case exports.ToastPosition.BottomLeft: return bottomLeft; case exports.ToastPosition.TopLeft: return topLeft; case exports.ToastPosition.TopRight: return topRight; default: return bottomRight; } }); var ToastContainer$1 = styled__default["default"].div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n background-color: ", ";\n height: 100px;\n width: 300px;\n border-radius: 10px;\n margin: ", "px;\n transition: all 0.3s;\n box-shadow: 0 0 10px #999;\n opacity: 0.9;\n\n &:hover {\n box-shadow: 0 0 12px #fff;\n opacity: 1;\n }\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n background-color: ", ";\n height: 100px;\n width: 300px;\n border-radius: 10px;\n margin: ", "px;\n transition: all 0.3s;\n box-shadow: 0 0 10px #999;\n opacity: 0.9;\n\n &:hover {\n box-shadow: 0 0 12px #fff;\n opacity: 1;\n }\n\n ", "\n"])), function (props) { return props.color; }, function (props) { return props.margin; }, function (_a) { var position = _a.position, animation = _a.animation, isDelete = _a.isDelete; var animations = getToastAnimation(position, animation); if (animations) { var onAdd = animations.onAdd, onDelete = animations.onDelete; return isDelete ? onDelete : onAdd; } return null; }); var Icon = styled__default["default"].img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 20px;\n height: 30px;\n width: 30px;\n"], ["\n margin: 20px;\n height: 30px;\n width: 30px;\n"]))); var Text = styled__default["default"].span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n color: ", ";\n font-family: ", ", Courier, monospace;\n"], ["\n flex: 1;\n color: ", ";\n font-family: ", ", Courier, monospace;\n"])), function (props) { return props.color; }, function (props) { return props.font; }); var ButtonWrapper = styled__default["default"].div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 10%;\n align-self: flex-start;\n padding-top: 10px;\n"], ["\n width: 10%;\n align-self: flex-start;\n padding-top: 10px;\n"]))); var CloseButton = styled__default["default"].button(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border: none;\n outline: none;\n border: 2px solid transparent;\n border-radius: 2px;\n padding: 0;\n cursor: pointer;\n background: transparent;\n display: flex;\n transition: all 0.3s;\n\n &:hover {\n opacity: 0.5;\n }\n"], ["\n border: none;\n outline: none;\n border: 2px solid transparent;\n border-radius: 2px;\n padding: 0;\n cursor: pointer;\n background: transparent;\n display: flex;\n transition: all 0.3s;\n\n &:hover {\n opacity: 0.5;\n }\n"]))); var CloseImg = styled__default["default"].img(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 20px;\n width: 20px;\n"], ["\n height: 20px;\n width: 20px;\n"]))); var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7; var Toast = function (_a) { var toastList = _a.toastList, config = _a.config, deleteToast = _a.deleteToast; var position = config.position, margin = config.margin, animation = config.animation; return (React__default["default"].createElement(Wrapper, { position: position }, toastList.map(function (toast) { var _a = selectCategoryStyle(toast.category, config), logo = _a.logo, style = _a.style; var backgroundColor = style.backgroundColor, font = style.font, textColor = style.textColor; return (React__default["default"].createElement(ToastContainer$1, { color: backgroundColor, key: toast.id, margin: margin, position: position, isDelete: toast.isDelete, animation: animation }, React__default["default"].createElement(Icon, { src: logo }), React__default["default"].createElement(Text, { color: textColor, font: font }, toast.text), React__default["default"].createElement(ButtonWrapper, null, React__default["default"].createElement(CloseButton, { onClick: deleteToast(toast.id) }, React__default["default"].createElement(CloseImg, { src: closeIcon }))))); }))); }; exports.ToastDuration = void 0; (function (ToastDuration) { ToastDuration[ToastDuration["Quick"] = 0] = "Quick"; ToastDuration[ToastDuration["Medium"] = 1] = "Medium"; ToastDuration[ToastDuration["Slow"] = 2] = "Slow"; ToastDuration[ToastDuration["Infinity"] = 3] = "Infinity"; })(exports.ToastDuration || (exports.ToastDuration = {})); var infoToastStyle = { backgroundColor: "#8a2be2", font: "Segoe Ui", textColor: "black", }; var warningToastStyle = { backgroundColor: "#ECDB54", font: "Segoe Ui", textColor: "black", }; var errorToastStyle = { backgroundColor: "#E15D44", font: "Segoe Ui", textColor: "black", }; var successToastStyle = { backgroundColor: "#69db7c", font: "Segoe Ui", textColor: "black", }; var defaultToastConfig = { duration: exports.ToastDuration.Medium, position: exports.ToastPosition.BottomRight, animation: exports.ToastAnimation.Movement, margin: 10, infoStyle: infoToastStyle, warningStyle: warningToastStyle, errorStyle: errorToastStyle, successStyle: successToastStyle, }; var toastService = { config: defaultToastConfig, toasts: [], observersAdd: [], observersDelete: [], addToast: function (toast) { var _this = this; this.toasts.push(toast); this.observersAdd.forEach(function (subscriber) { return subscriber(_this.toasts); }); }, deleteToast: function (id) { var _this = this; this.toasts = this.toasts.filter(function (toast) { return toast.id !== id; }); this.observersDelete.forEach(function (subscriber) { return subscriber(_this.toasts, id); }); }, subscribeAdd: function (fn) { this.observersAdd.push(fn); }, unsubscribeAdd: function (fn) { this.observersAdd = this.observersAdd.filter(function (subscriber) { return subscriber !== fn; }); }, subscribeDelete: function (fn) { this.observersDelete.push(fn); }, unsubscribeDelete: function (fn) { this.observersDelete = this.observersDelete.filter(function (subscriber) { return subscriber !== fn; }); }, }; var ToastManager = (function () { var service; function createToastService(config) { var object = __assign(__assign({}, toastService), { config: __assign(__assign({}, defaultToastConfig), config) }); return object; } return { getToastService: function (config) { if (!service || config) { service = createToastService(config); } return service; }, }; })(); var usePortalRef = function () { var portalRef = React.useRef(); if (!portalRef.current) { portalRef.current = document.createElement("div"); } React.useEffect(function () { if (portalRef.current) { document.body.appendChild(portalRef.current); } return function () { if (portalRef.current) { document.body.removeChild(portalRef.current); } }; }, []); return { portal: portalRef.current }; }; var ErrorBoundary = /** @class */ (function (_super) { __extends(ErrorBoundary, _super); function ErrorBoundary() { var _this = _super !== null && _super.apply(this, arguments) || this; // eslint-disable-next-line react/state-in-constructor _this.state = { hasError: false, }; return _this; } ErrorBoundary.getDerivedStateFromError = function (_) { return { hasError: true }; }; ErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) { console.error("Uncaught error:", error, errorInfo); }; ErrorBoundary.prototype.render = function () { if (this.state.hasError) { return React__default["default"].createElement("h1", null, "Sorry.. there was an error"); } return this.props.children; }; return ErrorBoundary; }(React.Component)); var ToastContainer = function () { var portal = usePortalRef().portal; var service = React.useState(function () { return ToastManager.getToastService(); })[0]; var _a = React.useState(defaultToastConfig), config = _a[0], setConfig = _a[1]; var _b = React.useState([]), toasts = _b[0], setToasts = _b[1]; React.useEffect(function () { var onAdd = function (data) { setToasts(__spreadArray([], data, true)); }; var onDelete = function (data, id) { setToasts(function (prevToasts) { return prevToasts.map(function (toast) { return toast.id === id ? __assign(__assign({}, toast), { isDelete: true }) : toast; }); }); setTimeout(function () { return setToasts(function (prevToasts) { return prevToasts.filter(function (toast) { return !toast.isDelete; }); }); }, 500); }; setConfig(service.config); service.subscribeAdd(onAdd); service.subscribeDelete(onDelete); return function () { service.unsubscribeAdd(onAdd); service.unsubscribeDelete(onDelete); }; }, [service, toasts]); var deleteToast = React.useCallback(function (id) { return function () { service.deleteToast(id); }; }, [service]); return reactDom.createPortal(React__default["default"].createElement(ErrorBoundary, null, React__default["default"].createElement(Toast, { toastList: toasts, config: config, deleteToast: deleteToast })), portal); }; // Unique ID creation requires a high quality random # generator. In the browser we therefore // require the crypto API and do not support built-in fallback to lower quality random number // generators (like Math.random()). var getRandomValues; var rnds8 = new Uint8Array(16); function rng() { // lazy load so that environments that need to polyfill have a chance to do so if (!getRandomValues) { // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, // find the complete implementation of crypto (msCrypto) on IE11. getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); if (!getRandomValues) { throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); } } return getRandomValues(rnds8); } var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; function validate(uuid) { return typeof uuid === 'string' && REGEX.test(uuid); } /** * Convert array of 16 byte values to UUID string format of the form: * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX */ var byteToHex = []; for (var i = 0; i < 256; ++i) { byteToHex.push((i + 0x100).toString(16).substr(1)); } function stringify(arr) { var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; // Note: Be careful editing this code! It's been tuned for performance // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one // of the following: // - One or more input array values don't map to a hex octet (leading to // "undefined" in the uuid) // - Invalid input values for the RFC `version` or `variant` fields if (!validate(uuid)) { throw TypeError('Stringified UUID is invalid'); } return uuid; } function parse(uuid) { if (!validate(uuid)) { throw TypeError('Invalid UUID'); } var v; var arr = new Uint8Array(16); // Parse ########-....-....-....-............ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; arr[1] = v >>> 16 & 0xff; arr[2] = v >>> 8 & 0xff; arr[3] = v & 0xff; // Parse ........-####-....-....-............ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; arr[5] = v & 0xff; // Parse ........-....-####-....-............ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; arr[7] = v & 0xff; // Parse ........-....-....-####-............ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; arr[9] = v & 0xff; // Parse ........-....-....-....-############ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; arr[11] = v / 0x100000000 & 0xff; arr[12] = v >>> 24 & 0xff; arr[13] = v >>> 16 & 0xff; arr[14] = v >>> 8 & 0xff; arr[15] = v & 0xff; return arr; } function stringToBytes(str) { str = unescape(encodeURIComponent(str)); // UTF8 escape var bytes = []; for (var i = 0; i < str.length; ++i) { bytes.push(str.charCodeAt(i)); } return bytes; } var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; function v35 (name, version, hashfunc) { function generateUUID(value, namespace, buf, offset) { if (typeof value === 'string') { value = stringToBytes(value); } if (typeof namespace === 'string') { namespace = parse(namespace); } if (namespace.length !== 16) { throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); } // Compute hash of namespace and value, Per 4.3 // Future: Use spread syntax when supported on all platforms, e.g. `bytes = // hashfunc([...namespace, ... value])` var bytes = new Uint8Array(16 + value.length); bytes.set(namespace); bytes.set(value, namespace.length); bytes = hashfunc(bytes); bytes[6] = bytes[6] & 0x0f | version; bytes[8] = bytes[8] & 0x3f | 0x80; if (buf) { offset = offset || 0; for (var i = 0; i < 16; ++i) { buf[offset + i] = bytes[i]; } return buf; } return stringify(bytes); } // Function#name is not settable on some platforms (#270) try { generateUUID.name = name; // eslint-disable-next-line no-empty } catch (err) {} // For CommonJS default export support generateUUID.DNS = DNS; generateUUID.URL = URL; return generateUUID; } /* * Browser-compatible JavaScript MD5 * * Modification of JavaScript MD5 * https://github.com/blueimp/JavaScript-MD5 * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * https://opensource.org/licenses/MIT * * Based on * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for more info. */ function md5(bytes) { if (typeof bytes === 'string') { var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape bytes = new Uint8Array(msg.length); for (var i = 0; i < msg.length; ++i) { bytes[i] = msg.charCodeAt(i); } } return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); } /* * Convert an array of little-endian words to an array of bytes */ function md5ToHexEncodedArray(input) { var output = []; var length32 = input.length * 32; var hexTab = '0123456789abcdef'; for (var i = 0; i < length32; i += 8) { var x = input[i >> 5] >>> i % 32 & 0xff; var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); output.push(hex); } return output; } /** * Calculate output length with padding and bit length */ function getOutputLength(inputLength8) { return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; } /* * Calculate the MD5 of an array of little-endian words, and a bit length. */ function wordsToMd5(x, len) { /* append padding */ x[len >> 5] |= 0x80 << len % 32; x[getOutputLength(len) - 1] = len; var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for (var i = 0; i < x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; a = md5ff(a, b, c, d, x[i], 7, -680876936); d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); c = md5ff(c, d, a, b, x[i + 10], 17, -42063); b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); b = md5gg(b, c, d, a, x[i], 20, -373897302); a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); a = md5hh(a, b, c, d, x[i + 5], 4, -378558); d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); d = md5hh(d, a, b, c, x[i], 11, -358537222); c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); a = md5ii(a, b, c, d, x[i], 6, -198630844); d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); a = safeAdd(a, olda); b = safeAdd(b, oldb); c = safeAdd(c, oldc); d = safeAdd(d, oldd); } return [a, b, c, d]; } /* * Convert an array bytes to an array of little-endian words * Characters >255 have their high-byte silently ignored. */ function bytesToWords(input) { if (input.length === 0) { return []; } var length8 = input.length * 8; var output = new Uint32Array(getOutputLength(length8)); for (var i = 0; i < length8; i += 8) { output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; } return output; } /* * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. */ function safeAdd(x, y) { var lsw = (x & 0xffff) + (y & 0xffff); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return msw << 16 | lsw & 0xffff; } /* * Bitwise rotate a 32-bit number to the left. */ function bitRotateLeft(num, cnt) { return num << cnt | num >>> 32 - cnt; } /* * These functions implement the four basic operations the algorithm uses. */ function md5cmn(q, a, b, x, s, t) { return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); } function md5ff(a, b, c, d, x, s, t) { return md5cmn(b & c | ~b & d, a, b, x, s, t); } function md5gg(a, b, c, d, x, s, t) { return md5cmn(b & d | c & ~d, a, b, x, s, t); } function md5hh(a, b, c, d, x, s, t) { return md5cmn(b ^ c ^ d, a, b, x, s, t); } function md5ii(a, b, c, d, x, s, t) { return md5cmn(c ^ (b | ~d), a, b, x, s, t); } v35('v3', 0x30, md5); function v4(options, buf, offset) { options = options || {}; var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` rnds[6] = rnds[6] & 0x0f | 0x40; rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided if (buf) { offset = offset || 0; for (var i = 0; i < 16; ++i) { buf[offset + i] = rnds[i]; } return buf; } return stringify(rnds); } // Adapted from Chris Veness' SHA1 code at // http://www.movable-type.co.uk/scripts/sha1.html function f(s, x, y, z) { switch (s) { case 0: return x & y ^ ~x & z; case 1: return x ^ y ^ z; case 2: return x & y ^ x & z ^ y & z; case 3: return x ^ y ^ z; } } function ROTL(x, n) { return x << n | x >>> 32 - n; } function sha1(bytes) { var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; if (typeof bytes === 'string') { var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape bytes = []; for (var i = 0; i < msg.length; ++i) { bytes.push(msg.charCodeAt(i)); } } else if (!Array.isArray(bytes)) { // Convert Array-like to Array bytes = Array.prototype.slice.call(bytes); } bytes.push(0x80); var l = bytes.length / 4 + 2; var N = Math.ceil(l / 16); var M = new Array(N); for (var _i = 0; _i < N; ++_i) { var arr = new Uint32Array(16); for (var j = 0; j < 16; ++j) { arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3]; } M[_i] = arr; } M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); M[N - 1][14] = Math.floor(M[N - 1][14]); M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; for (var _i2 = 0; _i2 < N; ++_i2) { var W = new Uint32Array(80); for (var t = 0; t < 16; ++t) { W[t] = M[_i2][t]; } for (var _t = 16; _t < 80; ++_t) { W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); } var a = H[0]; var b = H[1]; var c = H[2]; var d = H[3]; var e = H[4]; for (var _t2 = 0; _t2 < 80; ++_t2) { var s = Math.floor(_t2 / 20); var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; e = d; d = c; c = ROTL(b, 30) >>> 0; b = a; a = T; } H[0] = H[0] + a >>> 0; H[1] = H[1] + b >>> 0; H[2] = H[2] + c >>> 0; H[3] = H[3] + d >>> 0; H[4] = H[4] + e >>> 0; } return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; } v35('v5', 0x50, sha1); var createToast = function (text, category) { return ({ text: text, category: category, isDelete: false, id: v4(), }); }; var getToastLifetime = function (duration) { switch (duration) { case exports.ToastDuration.Quick: return 3000; case exports.ToastDuration.Medium: return 5000; case exports.ToastDuration.Slow: return 10000; default: return null; } }; var useToastService = function (config) { var service = React.useRef(ToastManager.getToastService(config)); var setToastLifetime = function (id) { var duration = service.current.config.duration; var lifetime = getToastLifetime(duration); if (lifetime) { setTimeout(function () { service.current.deleteToast(id); }, lifetime); } }; var info = function (text) { var toast = createToast(text, exports.ToastCategory.Info); service.current.addToast(toast); setToastLifetime(toast.id); }; var warning = function (text) { var _a; var toast = createToast(text, exports.ToastCategory.Warning); (_a = service.current) === null || _a === void 0 ? void 0 : _a.addToast(toast); setToastLifetime(toast.id); }; var error = function (text) { var _a; var toast = createToast(text, exports.ToastCategory.Error); (_a = service.current) === null || _a === void 0 ? void 0 : _a.addToast(toast); setToastLifetime(toast.id); }; var success = function (text) { var _a; var toast = createToast(text, exports.ToastCategory.Success); (_a = service.current) === null || _a === void 0 ? void 0 : _a.addToast(toast); setToastLifetime(toast.id); }; return { info: info, warning: warning, error: error, success: success }; }; Object.defineProperty(exports, 'styled', { enumerable: true, get: function () { return styled__default["default"]; } }); exports.ErrorBoundary = ErrorBoundary; exports.Toast = Toast; exports.ToastContainer = ToastContainer; exports.ToastManager = ToastManager; exports.closeIcon = closeIcon; exports.createToast = createToast; exports.defaultToastConfig = defaultToastConfig; exports.errorIcon = errorIcon; exports.errorToastStyle = errorToastStyle; exports.getToastAnimation = getToastAnimation; exports.getToastLifetime = getToastLifetime; exports.infoIcon = infoIcon; exports.infoToastStyle = infoToastStyle; exports.selectCategoryStyle = selectCategoryStyle; exports.successIcon = successIcon; exports.successToastStyle = successToastStyle; exports.toastService = toastService; exports.useToastService = useToastService; exports.warningIcon = warningIcon; exports.warningToastStyle = warningToastStyle; //# sourceMappingURL=index.ts.map