@corva/ui 0.26.0-4 → 0.26.0-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{jsx as C}from"react/jsx-runtime";import{memo as V}from"react";import H from"prop-types";function e(V){var H=V.width,e=V.height;return C("svg",{width:H,height:e,viewBox:"0 0 137 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.907 23.6882H122.178C122.413 23.6882 122.648 23.5321 122.648 23.2199V11.5123C122.648 11.2781 122.805 11.044 123.118 11.044H128.287C128.914 11.044 129.462 11.5123 129.462 12.2147V14.6343C129.462 15.2587 128.914 15.8051 128.287 15.8051H125.154C124.998 15.8051 124.763 15.8831 124.684 16.1173L123.98 18.3807C123.901 18.6929 124.136 18.9271 124.45 18.9271H126.642L129.305 23.454C129.383 23.6101 129.54 23.6882 129.697 23.6882H132.359C132.673 23.6882 132.908 23.2979 132.751 23.0638L130.088 18.6149C131.576 17.9905 132.594 16.5856 132.673 14.9465V14.7904V12.2147V12.1367C132.673 9.87321 130.715 8 128.365 8H119.986C119.751 8 119.516 8.1561 119.516 8.4683V23.2979C119.516 23.5321 119.672 23.6882 119.907 23.6882ZM12.6931 8.07764H4.39158C4.15663 8.07764 4 8.23374 4 8.46789V15.2583V16.351V23.1414C4 23.3756 4.15663 23.5317 4.39158 23.5317H12.6931C15.0426 23.5317 16.9221 21.7365 17.0005 19.473V16.351V15.2583V12.1363V12.0582C17.0005 9.8728 15.1209 8.07764 12.6931 8.07764ZM13.8678 15.3363V16.351V19.473C13.8678 20.0974 13.3196 20.6438 12.6931 20.6438H7.52422C7.28927 20.6438 7.13264 20.4877 7.13264 20.2535V16.351V15.2583V11.5119C7.13264 11.2777 7.28927 11.1216 7.52422 11.1216H12.6931C13.3196 11.1216 13.8678 11.5899 13.8678 12.2924V15.3363ZM37.9109 20.0194L41.67 8.31179C41.7484 8.15569 41.905 7.99959 42.1399 8.31179H45.5075L40.4953 23.6878C40.417 23.9219 40.182 24 40.0254 24H35.718C35.4831 24 35.3264 23.8439 35.2481 23.6878L31.254 11.4338H22.4826C22.2477 11.4338 22.091 11.5899 22.091 11.8241V13.1509V14.0875C22.091 14.3217 22.2477 14.4778 22.4826 14.4778H28.1997C28.4346 14.4778 28.5913 14.6339 28.5913 14.868V17.0535C28.5913 17.2876 28.4346 17.4437 28.1997 17.4437H22.4826C22.2477 17.4437 22.091 17.5998 22.091 17.834V20.1755C22.091 20.4096 22.2477 20.5657 22.4826 20.5657H30.3925H31.1757C31.4106 20.5657 31.5673 20.7218 31.6456 20.8779L32.3504 23.1414C32.4287 23.4536 32.1938 23.6878 31.8805 23.6878H29.2178H19.1933C18.9584 23.6878 18.8018 23.4536 18.8018 23.2195V12.8387V8.46789C18.8018 8.23374 18.9584 8.07764 19.1933 8.07764H28.4346H30.2359H33.6035C33.8384 8.07764 33.9951 8.23374 34.0734 8.38984L34.6216 10.107L35.953 14.0095L37.9109 19.9413V20.0194ZM58.4292 8H54.1218C51.7724 8 49.8928 9.79516 49.8145 12.0586V12.1367V15.4148V15.8051V16.0392V16.3514V19.6295V19.7076C49.8145 21.9711 51.7724 23.7662 54.1218 23.7662H58.4292C60.7787 23.7662 62.6583 21.9711 62.7366 19.7076V19.4734C62.7366 19.3173 62.58 19.1612 62.4233 19.1612H59.9172C59.7606 19.1612 59.604 19.3173 59.604 19.4734C59.604 20.0978 59.0557 20.6442 58.4292 20.6442H54.2785C53.6519 20.6442 53.1037 20.1759 53.1037 19.4734V16.3514V15.9612V15.727V15.3368V12.1367C53.1037 11.5123 53.6519 10.9659 54.2785 10.9659H58.4292C59.0557 10.9659 59.604 11.5123 59.604 12.1367C59.604 12.2928 59.7606 12.4489 59.9172 12.4489H62.4233C62.58 12.4489 62.7366 12.2928 62.7366 12.1367V11.9806C62.6583 9.87321 60.7787 8 58.4292 8ZM74.0147 8.07764H75.9726C76.2076 8.07764 76.3642 8.23374 76.3642 8.54594V11.0436C76.3642 11.2777 76.2076 11.4338 75.9726 11.4338H68.141C67.906 11.4338 67.7494 11.5899 67.7494 11.8241V13.0729V14.0095C67.7494 14.2436 67.906 14.3997 68.141 14.3997H73.8581C74.093 14.3997 74.2496 14.5558 74.2496 14.79V16.9754C74.2496 17.2096 74.093 17.3657 73.8581 17.3657H68.141C67.906 17.3657 67.7494 17.5218 67.7494 17.7559V20.0974C67.7494 20.3316 67.906 20.4877 68.141 20.4877H75.9726C76.2076 20.4877 76.3642 20.6438 76.3642 20.8779V23.1414C76.3642 23.3756 76.2076 23.5317 75.9726 23.5317H64.7734C64.5385 23.5317 64.3818 23.3756 64.3818 23.1414V12.8387V8.46789C64.3818 8.23374 64.5385 8.07764 64.7734 8.07764H74.0147ZM106.046 23.6882H117.324C117.559 23.6882 117.793 23.5321 117.793 23.2199V21.0344C117.793 20.8003 117.637 20.5661 117.324 20.5661H109.335C109.1 20.5661 108.865 20.41 108.865 20.0978V17.7563C108.865 17.5222 109.022 17.288 109.335 17.288H115.052C115.287 17.288 115.522 17.1319 115.522 16.8197V14.6343C115.522 14.4001 115.366 14.166 115.052 14.166H109.335C109.1 14.166 108.865 14.0099 108.865 13.6977V12.7611V11.4342C108.865 11.2001 109.022 10.9659 109.335 10.9659H117.245C117.48 10.9659 117.715 10.8098 117.715 10.4976V8.4683C117.715 8.23415 117.559 8 117.245 8H115.287H106.046C105.811 8 105.576 8.1561 105.576 8.4683V12.8391V23.2199C105.576 23.5321 105.733 23.6882 106.046 23.6882ZM99.1539 23.6097H95.943C95.8646 23.6097 95.7863 23.5317 95.708 23.3756V11.5899C95.708 11.4338 95.5514 11.2777 95.3948 11.2777H91.244V23.4536C91.244 23.5317 91.1657 23.6097 91.0874 23.6097H88.1114L82.0027 14.868C81.9244 14.7119 81.7678 14.6339 81.6111 14.7119C81.4545 14.79 81.3762 14.868 81.3762 15.0241V23.3756C81.3762 23.4536 81.2979 23.5317 81.2196 23.5317H78.2435C78.1652 23.5317 78.0869 23.4536 78.0869 23.3756V8.23374C78.0869 8.15569 78.1652 8.07764 78.2435 8.07764H81.4545L87.3282 16.4291C87.4065 16.5852 87.5631 16.6632 87.7198 16.5852C87.8764 16.5071 87.9547 16.4291 87.9547 16.273V8.31179C87.9547 8.23374 88.033 8.15569 88.1114 8.15569H103.54C103.618 8.15569 103.696 8.23374 103.696 8.31179V11.1216C103.696 11.1997 103.618 11.2777 103.54 11.2777H99.6238C99.4672 11.2777 99.3106 11.4338 99.3106 11.5899V23.4536C99.3106 23.5317 99.2322 23.6097 99.1539 23.6097Z",fill:"white"})})}e.propTypes={width:H.number,height:H.number},e.defaultProps={width:137,height:32};var t=V(e);export default t;
1
+ import{jsxs as C,jsx as e}from"react/jsx-runtime";import{memo as l}from"react";var H=l((function(){return C("svg",{width:"126",height:"16",viewBox:"0 0 126 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.26083 0.113338H0.38581C0.296207 0.115508 0.210873 0.152064 0.147488 0.215434C0.0841031 0.278803 0.0475255 0.364128 0.045334 0.45373L0 15.6363C0.0014007 15.7283 0.0370538 15.8165 0.0999964 15.8837C0.162939 15.9508 0.248651 15.9921 0.340392 15.9994H8.26083C8.76932 16.0022 9.27334 15.9045 9.74395 15.7118C10.2145 15.5192 10.6424 15.2355 11.0031 14.877C11.3637 14.5185 11.6499 14.0923 11.8453 13.6228C12.0407 13.1533 12.1414 12.6499 12.1416 12.1414V3.97134C12.1414 3.46285 12.0407 2.95941 11.8453 2.48995C11.6499 2.02049 11.3637 1.59427 11.003 1.23577C10.6424 0.877264 10.2145 0.593552 9.74394 0.400929C9.27334 0.208307 8.76932 0.110572 8.26083 0.113338ZM9.10056 12.0506C9.10335 12.3124 9.00215 12.5645 8.81918 12.7518C8.6362 12.939 8.38642 13.0459 8.12466 13.0491H3.33605C3.24646 13.0469 3.16115 13.0104 3.09778 12.947C3.03441 12.8836 2.99785 12.7983 2.99566 12.7087V3.33593C2.99784 3.24634 3.03441 3.16103 3.09777 3.09766C3.16114 3.03429 3.24646 2.99773 3.33605 2.99554H8.1246C8.25303 2.99456 8.38036 3.01914 8.4992 3.06783C8.61804 3.11652 8.72601 3.18835 8.81683 3.27916C8.90765 3.36996 8.9795 3.47792 9.02821 3.59675C9.07692 3.71559 9.10151 3.84292 9.10056 3.97134V12.0506Z",fill:"white"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7859 0.113939H35.108C35.0287 0.110818 34.9504 0.133437 34.885 0.178419C34.8195 0.223402 34.7704 0.288337 34.7449 0.363536L31.1819 11.325C31.1605 11.3894 31.1194 11.4454 31.0644 11.4851C31.0094 11.5249 30.9433 11.5462 30.8755 11.5462C30.8076 11.5462 30.7415 11.5249 30.6865 11.4851C30.6315 11.4454 30.5904 11.3894 30.5691 11.325L27.006 0.386182C26.9817 0.308456 26.9335 0.240347 26.8684 0.191491C26.8032 0.142634 26.7243 0.115504 26.6429 0.113939H14.1382C14.0487 0.116122 13.9633 0.152686 13.9 0.216055C13.8366 0.279423 13.8 0.36474 13.7979 0.45433V15.6596C13.8 15.7492 13.8366 15.8345 13.9 15.8979C13.9633 15.9612 14.0487 15.9978 14.1382 16H25.6347C25.9307 16 26.1527 15.7787 26.0788 15.4836L25.4127 13.3444C25.374 13.2584 25.3118 13.185 25.2332 13.1328C25.1547 13.0805 25.0629 13.0516 24.9686 13.0494H21.3374L21.3375 13.0497H17.0885C17.0013 13.0526 16.9165 13.0207 16.8527 12.9612C16.7889 12.9016 16.7513 12.8192 16.7481 12.732V9.8498C16.7513 9.76258 16.7889 9.68015 16.8527 9.6206C16.9165 9.56104 17.0013 9.52922 17.0885 9.5321H22.9664C23.056 9.5299 23.1413 9.49333 23.2047 9.42997C23.2681 9.3666 23.3046 9.28129 23.3068 9.19171V6.96761C23.3117 6.92172 23.3062 6.87533 23.2908 6.83183C23.2754 6.78833 23.2505 6.74883 23.2179 6.7162C23.1852 6.68357 23.1457 6.65865 23.1022 6.64325C23.0587 6.62786 23.0123 6.62238 22.9664 6.62722H17.0885C17.0013 6.63009 16.9165 6.59825 16.8527 6.53868C16.7889 6.47912 16.7513 6.39668 16.7481 6.30945V3.33649C16.7503 3.2469 16.7869 3.16159 16.8503 3.09822C16.9136 3.03485 16.999 2.99829 17.0885 2.9961H24.2373C24.3188 2.99769 24.3976 3.02484 24.4628 3.0737C24.528 3.12256 24.5761 3.19067 24.6005 3.2684L28.6854 15.7277C28.6999 15.8023 28.7391 15.8699 28.7968 15.9193C28.8545 15.9687 28.9273 15.9972 29.0032 16H32.7478C32.8237 15.9972 32.8964 15.9687 32.9541 15.9193C33.0118 15.8698 33.051 15.8023 33.0655 15.7277C33.0655 15.7277 38.0583 0.499636 38.0583 0.45433C38.0706 0.413264 38.0728 0.369819 38.0646 0.327728C38.0565 0.285637 38.0382 0.246157 38.0114 0.212679C37.9846 0.179201 37.9501 0.152726 37.9108 0.135527C37.8716 0.118328 37.8287 0.11092 37.7859 0.113939Z",fill:"white"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.9825 11.3019H55.6223C55.5773 11.3011 55.5327 11.3093 55.491 11.3261C55.4493 11.3429 55.4115 11.368 55.3797 11.3997C55.3479 11.4315 55.3229 11.4694 55.3061 11.511C55.2893 11.5527 55.281 11.5974 55.2819 11.6423V12.0508C55.2847 12.3126 55.1835 12.5647 55.0005 12.752C54.8175 12.9392 54.5677 13.0461 54.306 13.0493H50.811C50.5469 13.047 50.2943 12.9411 50.1075 12.7543C49.9207 12.5676 49.8148 12.3149 49.8125 12.0508V3.83544C49.812 3.7082 49.837 3.58216 49.8862 3.46479C49.9353 3.34742 50.0075 3.24113 50.0986 3.15222C50.1896 3.06331 50.2975 2.99359 50.416 2.94722C50.5345 2.90084 50.6611 2.87875 50.7883 2.88225H54.1925C54.3209 2.88129 54.4483 2.90588 54.5671 2.95458C54.6859 3.00329 54.7939 3.07514 54.8847 3.16595C54.9755 3.25676 55.0473 3.36472 55.096 3.48355C55.1447 3.60238 55.1693 3.72971 55.1683 3.85813V4.38014C55.1675 4.42507 55.1757 4.46971 55.1925 4.51139C55.2094 4.55307 55.2344 4.59093 55.2662 4.6227C55.2979 4.65448 55.3358 4.67952 55.3775 4.69633C55.4192 4.71314 55.4638 4.72137 55.5087 4.72053H57.869C57.9139 4.72137 57.9585 4.71314 58.0002 4.69633C58.0419 4.67952 58.0798 4.65448 58.1115 4.6227C58.1433 4.59093 58.1684 4.55307 58.1852 4.51139C58.202 4.46971 58.2102 4.42507 58.2094 4.38014V3.85813C58.2092 3.34963 58.1085 2.84619 57.9131 2.37673C57.7177 1.90727 57.4315 1.48104 57.0709 1.12253C56.7103 0.764021 56.2824 0.480301 55.8118 0.287671C55.3412 0.095041 54.8372 -0.00270228 54.3287 5.6983e-05H50.5614C50.0529 -0.00270599 49.5489 0.0950344 49.0783 0.287662C48.6077 0.48029 48.1798 0.764009 47.8192 1.12252C47.4586 1.48103 47.1723 1.90726 46.977 2.37672C46.7816 2.84619 46.6809 3.34963 46.6807 3.85813V12.1416C46.6809 12.6501 46.7816 13.1536 46.9769 13.6231C47.1723 14.0925 47.4585 14.5188 47.8192 14.8773C48.1798 15.2358 48.6077 15.5195 49.0783 15.7121C49.5489 15.9048 50.0529 16.0025 50.5614 15.9997H54.4422C54.9506 16.0025 55.4547 15.9047 55.9253 15.7121C56.3959 15.5195 56.8238 15.2358 57.1844 14.8773C57.545 14.5187 57.8312 14.0925 58.0266 13.623C58.222 13.1536 58.3227 12.6501 58.3229 12.1416V11.6423C58.3237 11.5974 58.3155 11.5527 58.2987 11.511C58.2819 11.4694 58.2569 11.4315 58.2251 11.3997C58.1933 11.3679 58.1554 11.3429 58.1138 11.3261C58.0721 11.3093 58.0274 11.3011 57.9825 11.3019Z",fill:"white"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.7809 0.113281H60.4322C60.3426 0.115468 60.2573 0.152033 60.1939 0.215401C60.1305 0.278769 60.094 0.364084 60.0918 0.453673V15.659C60.094 15.7486 60.1306 15.8339 60.1939 15.8972C60.2573 15.9606 60.3426 15.9972 60.4322 15.9994H70.7809C70.8705 15.9972 70.9558 15.9606 71.0192 15.8972C71.0825 15.8339 71.1191 15.7486 71.1213 15.659V13.3895C71.1191 13.2999 71.0825 13.2146 71.0192 13.1512C70.9558 13.0878 70.8705 13.0513 70.7809 13.0491H63.3825C63.2953 13.052 63.2104 13.0202 63.1466 12.9606C63.0828 12.901 63.0452 12.8186 63.0421 12.7314V9.84918C63.0452 9.76195 63.0828 9.67953 63.1466 9.61997C63.2104 9.56042 63.2953 9.5286 63.3825 9.53149H69.2604C69.35 9.52929 69.4353 9.49272 69.4987 9.42935C69.562 9.36599 69.5986 9.28068 69.6008 9.19109V6.967C69.6056 6.92111 69.6002 6.87472 69.5848 6.83122C69.5694 6.78772 69.5444 6.74821 69.5118 6.71558C69.4792 6.68295 69.4397 6.65803 69.3962 6.64264C69.3527 6.62724 69.3063 6.62177 69.2604 6.62661H63.3825C63.2953 6.62947 63.2104 6.59763 63.1466 6.53806C63.0828 6.47849 63.0452 6.39606 63.0421 6.30882V3.33588C63.0443 3.24629 63.0809 3.16097 63.1442 3.0976C63.2076 3.03423 63.2929 2.99767 63.3825 2.99549H70.7809C70.8681 2.99835 70.9529 2.96651 71.0168 2.90694C71.0806 2.84737 71.1181 2.76493 71.1213 2.6777V0.453687C71.1191 0.364094 71.0825 0.278774 71.0192 0.215402C70.9558 0.152031 70.8705 0.115465 70.7809 0.113281Z",fill:"white"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.0292 0.113281H82.6953C82.6057 0.115468 82.5204 0.152033 82.457 0.215401C82.3936 0.278769 82.3571 0.364084 82.3549 0.453673V9.39529C82.3582 9.43892 82.3525 9.48278 82.338 9.52407C82.3235 9.56537 82.3006 9.60321 82.2707 9.6352C82.2409 9.6672 82.2047 9.69264 82.1645 9.70994C82.1243 9.72723 82.0809 9.736 82.0372 9.73568C81.9785 9.73658 81.9206 9.72246 81.869 9.69465C81.8174 9.66684 81.7737 9.62628 81.7422 9.57682L75.9097 0.294814C75.8787 0.243079 75.8357 0.199574 75.7844 0.167988C75.733 0.136402 75.6748 0.117665 75.6146 0.113366H73.1636C73.074 0.115549 72.9887 0.152113 72.9254 0.215482C72.862 0.27885 72.8254 0.364167 72.8232 0.453757V15.659C72.8254 15.7486 72.862 15.8339 72.9254 15.8972C72.9887 15.9606 73.074 15.9972 73.1636 15.9994H75.6146C75.7018 15.9962 75.7843 15.9586 75.8438 15.8948C75.9034 15.831 75.9352 15.7462 75.9324 15.659V7.14855C75.9291 7.10491 75.9348 7.06106 75.9493 7.01976C75.9638 6.97847 75.9867 6.94062 76.0165 6.90863C76.0464 6.87664 76.0826 6.85119 76.1228 6.83389C76.163 6.8166 76.2063 6.80783 76.2501 6.80815C76.3087 6.80725 76.3666 6.82138 76.4183 6.84919C76.4699 6.87699 76.5136 6.91756 76.5451 6.96701L81.901 15.7724C81.9418 15.8441 82.0014 15.9031 82.0735 15.9432C82.1455 15.9832 82.2272 16.0027 82.3095 15.9994H85.1463C85.2335 15.9963 85.316 15.9587 85.3755 15.8949C85.4351 15.8311 85.4669 15.7463 85.464 15.659V3.06351H90.1316C90.2188 3.06064 90.3036 3.09248 90.3674 3.15205C90.4312 3.21162 90.4688 3.29405 90.4719 3.38128V15.659C90.469 15.7462 90.5009 15.8311 90.5605 15.8949C90.6201 15.9587 90.7025 15.9963 90.7898 15.9994H93.3316C93.4188 15.9962 93.5012 15.9586 93.5607 15.8948C93.6203 15.831 93.6521 15.7462 93.6492 15.659V3.38128C93.6576 3.29191 93.6999 3.20914 93.7675 3.15002C93.835 3.09091 93.9227 3.05995 94.0124 3.06351H98.0292C98.1188 3.06134 98.2042 3.02479 98.2676 2.96142C98.3309 2.89805 98.3675 2.81272 98.3697 2.72312V0.453687C98.3675 0.364074 98.331 0.278738 98.2676 0.215363C98.2042 0.151989 98.1188 0.115437 98.0292 0.113281Z",fill:"white"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.284 0.113281H99.9351C99.8455 0.115465 99.7602 0.152029 99.6968 0.215397C99.6335 0.278766 99.5969 0.364083 99.5947 0.453673V15.659C99.5969 15.7486 99.6335 15.8339 99.6969 15.8972C99.7602 15.9606 99.8455 15.9972 99.9351 15.9994H110.284C110.373 15.9972 110.459 15.9606 110.522 15.8972C110.586 15.8339 110.622 15.7486 110.624 15.659V13.3895C110.622 13.2999 110.586 13.2146 110.522 13.1512C110.459 13.0878 110.373 13.0513 110.284 13.0491H102.885C102.798 13.052 102.713 13.0202 102.65 12.9606C102.586 12.901 102.548 12.8186 102.545 12.7314V9.84918C102.548 9.76195 102.586 9.67952 102.65 9.61997C102.713 9.56042 102.798 9.5286 102.885 9.53149H108.763C108.853 9.52929 108.938 9.49272 109.002 9.42935C109.065 9.36599 109.102 9.28068 109.104 9.19109V6.967C109.109 6.92111 109.103 6.87472 109.088 6.83122C109.072 6.78772 109.047 6.74821 109.015 6.71558C108.982 6.68295 108.943 6.65803 108.899 6.64263C108.856 6.62724 108.809 6.62176 108.763 6.62661H102.885C102.798 6.62947 102.713 6.59763 102.65 6.53806C102.586 6.47849 102.548 6.39606 102.545 6.30882V3.33588C102.547 3.24629 102.584 3.16097 102.647 3.0976C102.711 3.03423 102.796 2.99767 102.885 2.99549H110.284C110.371 2.99835 110.456 2.96651 110.52 2.90694C110.584 2.84737 110.621 2.76493 110.624 2.6777V0.453687C110.622 0.364094 110.586 0.278774 110.522 0.215402C110.459 0.152031 110.373 0.115465 110.284 0.113281Z",fill:"white"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M125.375 15.6817L122.743 11.2109C124.195 10.7343 125.012 9.3726 125.012 7.64787V3.97134C125.012 3.46285 124.911 2.95941 124.716 2.48995C124.521 2.02049 124.234 1.59427 123.874 1.23577C123.513 0.877267 123.085 0.593555 122.615 0.400933C122.144 0.20831 121.64 0.110574 121.132 0.113338H112.825C112.736 0.115508 112.65 0.152064 112.587 0.215433C112.524 0.278803 112.487 0.364128 112.485 0.45373L112.439 15.6363C112.441 15.7284 112.477 15.8166 112.539 15.8837C112.602 15.9509 112.688 15.9921 112.78 15.9994H115.276C115.366 15.9973 115.451 15.9607 115.515 15.8973C115.578 15.834 115.615 15.7486 115.617 15.6591V3.58552C115.619 3.49592 115.655 3.41061 115.719 3.34725C115.782 3.28388 115.868 3.24732 115.957 3.24513H120.859C120.988 3.24418 121.115 3.26877 121.234 3.31748C121.353 3.36619 121.461 3.43804 121.551 3.52885C121.642 3.61966 121.714 3.72763 121.763 3.84645C121.811 3.96528 121.836 4.09261 121.835 4.22102V7.48901C121.838 7.75075 121.737 8.00291 121.554 8.19013C121.371 8.37735 121.121 8.48431 120.859 8.48754H118.022C117.931 8.48327 117.841 8.50711 117.764 8.55583C117.687 8.60454 117.626 8.67579 117.591 8.75991L116.888 10.757C116.859 10.8274 116.849 10.9036 116.857 10.979C116.865 11.0543 116.892 11.1265 116.934 11.1893C116.977 11.252 117.034 11.3033 117.101 11.3387C117.168 11.3742 117.243 11.3926 117.319 11.3924H119.339C119.399 11.3949 119.458 11.4129 119.51 11.4447C119.562 11.4765 119.604 11.521 119.634 11.574L119.861 11.9371L122.13 15.7044C122.171 15.7904 122.236 15.8634 122.316 15.9154C122.396 15.9675 122.489 15.9965 122.584 15.9994H125.126C125.166 16.0049 125.207 15.9998 125.245 15.9844C125.283 15.9691 125.316 15.9442 125.342 15.9121C125.367 15.88 125.383 15.8418 125.389 15.8014C125.395 15.761 125.39 15.7198 125.375 15.6817Z",fill:"white"})]})}));export default H;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{makeStyles as t,useTheme as i,AppBar as n,Toolbar as a,FormControlLabel as l,Checkbox as c,Tooltip as s,IconButton as m,Typography as p,Menu as h,MenuItem as u}from"@material-ui/core";import{useState as d}from"react";import f from"prop-types";import g from"../../../../../components/SwitchControl/index.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as b}from"../../../../hocs/constants.js";import{isPDFReportView as C}from"../../../../hocs/utils.js";import{useAuth as v}from"../../../../context/auth.js";import w from"@material-ui/icons/AccountCircle";import x from"../../../../assets/DevCenterLogo.js";import{isPDFReportsFeatureActive as k}from"../../../../flags/index.js";var T=t((function(e){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4},headerControl:{marginRight:32},formControlLabel:{fontSize:14}}}));function j(t){var f=t.toggleTheme,j=T(),L=v(),N=L.user,B=L.logout,y=i(),z=d(null),R=e(z,2),S=R[0],D=R[1],P=Boolean(S),A=function(){return D(null)},I=N.first_name,O=N.last_name,F="".concat(I[0]).concat(O[0]).toUpperCase();return r("div",{children:[o(n,{position:"static",className:j.appBar,children:r(a,{children:[o(x,{}),o("div",{className:j.grow}),k()&&o(l,{control:o(c,{checked:C,size:"small",onChange:function(e){localStorage.setItem(b,e.target.checked),window.location.reload()}}),label:"PDF report view",classes:{label:j.formControlLabel},className:j.headerControl}),k()&&o(s,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:o("div",{children:o(g,{className:j.headerControl,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:f,checked:y.isLightTheme,size:"small",title:""})})}),o("div",{children:o(m,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return D(e.currentTarget)},color:"inherit",className:j.iconButtonRoot,children:r("div",{className:j.flex,children:[o(p,{children:F}),o(w,{className:j.userProfileIcon})]})})})]})}),o(h,{anchorEl:S,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:P,onClose:A,children:o(u,{onClick:function(){B(),A()},children:"Sign Out"})})]})}j.propTypes={toggleTheme:f.func.isRequired};export default j;
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{makeStyles as o,useTheme as a,AppBar as i,Toolbar as n,FormControlLabel as l,Checkbox as c,Tooltip as s,IconButton as p,Typography as m,Menu as d,MenuItem as u}from"@material-ui/core";import{useState as h}from"react";import f from"prop-types";import g from"../../../../../components/SwitchControl/index.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as b}from"../../../../hocs/constants.js";import{isPDFReportView as C}from"../../../../hocs/utils.js";import{useAuth as v}from"../../../../context/auth.js";import w from"@material-ui/icons/AccountCircle";import B from"../../../../assets/DevCenterLogo.js";import{isPDFReportsFeatureActive as x}from"../../../../flags/index.js";var k=o((function(e){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4},headerControl:{marginRight:32},formControlLabel:{fontSize:14}}}));function A(o){var f=o.toggleTheme,A=k(),T=v(),j=T.user,L=T.logout,N=a(),_=h(null),R=e(_,2),S=R[0],y=R[1],z=Boolean(S),D=function(){return y(null)},I=j.first_name,O=j.last_name,P="".concat(I[0]).concat(O[0]).toUpperCase();return r("div",{children:[t(i,{position:"static",className:A.appBar,children:r(n,{children:[t(B,{}),t("div",{className:A.grow}),x()&&t(l,{control:t(c,{"data-testid":"".concat("AppBar","_pdfReport"),checked:C,size:"small",onChange:function(e){localStorage.setItem(b,e.target.checked),window.location.reload()}}),label:"PDF report view",classes:{label:A.formControlLabel},className:A.headerControl}),x()&&t(s,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:t("div",{children:t(g,{"data-testid":"".concat("AppBar","_themeSwitch"),className:A.headerControl,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:f,checked:N.isLightTheme,size:"small",title:""})})}),t("div",{children:t(p,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return y(e.currentTarget)},color:"inherit",className:A.iconButtonRoot,children:r("div",{className:A.flex,children:[t(m,{"data-testid":"".concat("AppBar","_userInitials"),children:P}),t(w,{className:A.userProfileIcon})]})})})]})}),t(d,{"data-testid":"".concat("AppBar","_userDropdown"),anchorEl:S,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:z,onClose:D,children:t(u,{"data-testid":"".concat("AppBar","_signOutMenuItem"),onClick:function(){L(),D()},children:"Sign Out"})})]})}A.propTypes={toggleTheme:f.func.isRequired};export default A;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import{get as r}from"lodash";import{updateUserUnits as t}from"../../../utils/convert.js";import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import o from"@babel/runtime/helpers/asyncToGenerator";import{useState as s,useEffect as i}from"react";import{setAuthToken as a,removeAuthToken as u,getAuthToken as c}from"../../../clients/clientStorage/index.js";import{post as p}from"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{getCurrentUser as l}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import{LOGIN_ROUTE_REG_EXP as m}from"../../constants/index.js";function f(f){var h=s(null),v=e(h,2),d=v[0],b=v[1],y=s(!0),x=e(y,2),g=x[0],j=x[1],w=s(null),k=e(w,2),_=k[0],A=k[1];function T(){return U.apply(this,arguments)}function U(){return(U=o(n.mark((function e(){var o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,j(!0),e.next=4,l();case 4:o=e.sent,b(o),t({userUnits:o.unit_system,companyUnits:r(o,"company.unit_system")}),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),u(),f.push("/login"),console.error(e.t0);case 14:j(!1);case 15:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}var C,G=(C=o(n.mark((function r(t,e){var o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,A(null),j(!0),r.next=5,p("/v1/user_token",{auth:t});case 5:o=r.sent,a(o.jwt),r.next=14;break;case 9:return r.prev=9,r.t0=r.catch(0),console.error(r.t0),j(!1),r.abrupt("return",A("Wrong user name or password"));case 14:T().then(e);case 15:case"end":return r.stop()}}),r,null,[[0,9]])}))),function(r,t){return C.apply(this,arguments)});return i((function(){var r;try{r=c()}catch(r){u()}var t=m.test(f.location.pathname);return!r&&t?j(!1):r?void T():(f.push("/login"),j(!1))}),[]),{user:d,loading:g,error:_,login:G,logout:function(){u(),f.push("/login")}}}export default f;
1
+ import"@babel/runtime/helpers/defineProperty";import{get as r}from"lodash";import{updateUserUnits as t}from"../../../utils/convert.js";import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import o from"@babel/runtime/helpers/asyncToGenerator";import{useState as s,useRef as i,useEffect as a}from"react";import{setAuthToken as u,removeAuthToken as c,getAuthToken as p}from"../../../clients/clientStorage/index.js";import{post as l}from"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{getCurrentUser as m}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import{LOGIN_ROUTE_REG_EXP as f}from"../../constants/index.js";import h from"../../../clients/auth0/index.js";function v(v){var d=s(null),b=e(d,2),x=b[0],y=b[1],j=s(!0),g=e(j,2),w=g[0],k=g[1],_=s(null),A=e(_,2),T=A[0],U=A[1],C=i();function G(){return P.apply(this,arguments)}function P(){return(P=o(n.mark((function e(){var o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,k(!0),e.next=4,m();case 4:o=e.sent,y(o),t({userUnits:o.unit_system,companyUnits:r(o,"company.unit_system")}),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),c(),v.push("/login"),console.error(e.t0);case 14:k(!1);case 15:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}C.current||(C.current=new h);var S,W=(S=o(n.mark((function r(t,e){var o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,U(null),k(!0),r.next=5,l("/v1/user_token",{auth:t});case 5:o=r.sent,u(o.jwt),r.next=14;break;case 9:return r.prev=9,r.t0=r.catch(0),console.error(r.t0),k(!1),r.abrupt("return",U("Wrong user name or password"));case 14:G().then(e);case 15:case"end":return r.stop()}}),r,null,[[0,9]])}))),function(r,t){return S.apply(this,arguments)});return a((function(){var r;try{r=p()}catch(r){c()}var t=f.test(v.location.pathname);return!r&&t?k(!1):r?void G():(v.push("/login"),k(!1))}),[]),{user:x,loading:w,error:T,login:W,logout:function(){c(),v.push("/login")},auth0:C.current}}export default v;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{pick as r}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{GRID_BREAKPOINTS as o,GRID_COLUMN_SIZES as i,GRID_ROW_HEIGHT as a,NON_DRAGGABLE_ELEMENT_SELECTOR as n}from"../../../constants/apps.js";import{isAppMaximized as l}from"../../../utils/devcenter.js";import{isPhoneDetected as s,isNativeDetected as c,isMobileDetected as p}from"../../../utils/mobileDetect.js";import{getAppSize as m}from"../../../utils/apps.js";import"../../../utils/index.js";import{jsxs as d,jsx as b}from"react/jsx-runtime";import{makeStyles as u,Tooltip as f,FormControlLabel as g,Switch as h}from"@material-ui/core";import{useState as y}from"react";import j from"@babel/runtime/helpers/objectWithoutProperties";import O from"classnames";import{getLocalAppData as v,getAppCoordinates as k,updateLocalAppData as w}from"../utils.js";import{WidthProvider as x,Responsive as D}from"react-grid-layout";import"./withGridLayoutHOC.global.css.js";import L from"./withGridLayoutHOC.css.js";function P(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function C(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var S=x(D),z=u({gridLockFormControl:{margin:"4px 0 0 2px"},gridLockLabel:{fontSize:14},gridLockLabelDisabled:{color:"#bdbdbd"}});export default function(e){return x((function(u){var x,D=u.width,P=j(u,["width"]),H=P.manifest.application.key,W=y(null!==(x=v(H).isDraggable)&&void 0!==x&&x),E=t(W,2),G=E[0],M=E[1],N=z(),R=c||p,F=l(P.devCenterRouter.location.query),T=y(k(P.manifest)),q=t(T,2),A=q[0],B=q[1],I=m({coordinates:A,dashboardWidth:D,isMaximized:F}),J=I.pixelHeight,K=I.pixelWidth,Q=function(e){var o=t(e,1)[0],i=r(o,["x","y","w","h"]);B(i),w(H,{coordinates:i})};return d("div",{children:[b(S,{breakpoints:s?o.phone:o.general,cols:i,rowHeight:a,measureBeforeMount:!0,onResizeStop:Q,onDragStop:Q,isDraggable:!R&&G,isResizable:!R&&G,draggableCancel:n,useCSSTransforms:!1,children:b("div",{"data-grid":A,children:b("div",{className:F?L.appMaximized:"",children:b(e,C(C({},P),{},{coordinates:C(C({},A),{},{pixelHeight:J,pixelWidth:K}),layoutEnvironment:{type:"general"}}))})},"with-grid-layout-hoc")}),b(f,{title:G?"":"Disable grid lock to move and resize your app",placement:"right",children:b(g,{className:N.gridLockFormControl,control:b(h,{onChange:function(e){var r=e.target.checked;M(!r),w(H,{isDraggable:!r})},checked:!G,color:"primary"}),label:b("span",{className:O(N.gridLockLabel,G&&N.gridLockLabelDisabled),children:"Grid locked"})})})]})}))}
1
+ import e from"@babel/runtime/helpers/defineProperty";import{pick as r}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{GRID_BREAKPOINTS as o,GRID_COLUMN_SIZES as i,GRID_ROW_HEIGHT as a,NON_DRAGGABLE_ELEMENT_SELECTOR as n}from"../../../constants/apps.js";import{isAppMaximized as c}from"../../../utils/devcenter.js";import{isPhoneDetected as l,isNativeDetected as s,isMobileDetected as p}from"../../../utils/mobileDetect.js";import{getAppSize as d}from"../../../utils/apps.js";import"../../../utils/index.js";import{jsxs as m,jsx as b}from"react/jsx-runtime";import{makeStyles as u,Tooltip as f,FormControlLabel as g,Switch as h}from"@material-ui/core";import{useState as y}from"react";import j from"@babel/runtime/helpers/objectWithoutProperties";import O from"classnames";import{getLocalAppData as v,getAppCoordinates as k,updateLocalAppData as w}from"../utils.js";import{WidthProvider as D,Responsive as L}from"react-grid-layout";import"./withGridLayoutHOC.global.css.js";import x from"./withGridLayoutHOC.css.js";function P(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function C(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var S=D(L),z=u({gridLockFormControl:{margin:"4px 0 0 2px"},gridLockLabel:{fontSize:14},gridLockLabelDisabled:{color:"#bdbdbd"}});export default function(e){return D((function(u){var D,L=u.width,P=j(u,["width"]),H=P.manifest.application.key,W=y(null!==(D=v(H).isDraggable)&&void 0!==D&&D),E=t(W,2),G=E[0],M=E[1],N=z(),R=s||p,F=c(P.devCenterRouter.location.query),T=y(k(P.manifest)),q=t(T,2),A=q[0],B=q[1],_=d({coordinates:A,dashboardWidth:L,isMaximized:F}),I=_.pixelHeight,J=_.pixelWidth,K=function(e){var o=t(e,1)[0],i=r(o,["x","y","w","h"]);B(i),w(H,{coordinates:i})};return m("div",{children:[b(S,{breakpoints:l?o.phone:o.general,cols:i,rowHeight:a,measureBeforeMount:!0,onResizeStop:K,onDragStop:K,isDraggable:!R&&G,isResizable:!R&&G,draggableCancel:n,useCSSTransforms:!1,children:b("div",{"data-grid":A,children:b("div",{className:F?x.appMaximized:"",children:b(e,C(C({},P),{},{coordinates:C(C({},A),{},{pixelHeight:I,pixelWidth:J}),layoutEnvironment:{type:"general"}}))})},"with-grid-layout-hoc")}),b(f,{title:G?"":"Disable grid lock to move and resize your app",placement:"right",children:b(g,{className:N.gridLockFormControl,control:b(h,{"data-testid":"".concat("DashboardPo","_gridLocked"),onChange:function(e){var r=e.target.checked;M(!r),w(H,{isDraggable:!r})},checked:!G,color:"primary"}),label:b("span",{className:O(N.gridLockLabel,G&&N.gridLockLabelDisabled),children:"Grid locked"})})})]})}))}
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import r from"@babel/runtime/helpers/asyncToGenerator";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{styled as i,Grid as m,Button as s}from"@material-ui/core";import{memo as a,useState as p}from"react";import c from"prop-types";import"../../../../components/Login/components/Login.js";import l from"../../../../components/Login/components/PasswordField.js";import d from"../../../../components/Login/components/Chip.js";import u from"../../../../components/Login/components/StepFooter.js";import f from"../../../../components/Login/components/StepContent.js";import g from"../../../../components/Login/components/StepHeader.js";import h from"../../../../components/Login/components/Step.js";import v from"../../../../components/Login/components/OrDivider.js";import j from"../../../../components/Login/components/HiddenEmailField.js";import"../../../../components/Login/components/EmailField.js";import{useAuth as L}from"../../../context/auth.js";import{NEED_HELP_EXTERNAL_LINK as b}from"../../../constants/index.js";import y from"./SSOButton.js";var w=i(m)((function(o){var n=o.theme;return{marginTop:2*n.spacing(1),marginBottom:2*n.spacing(1),"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0}}})),S=i(s)((function(o){var n=o.theme;return{width:71,padding:n.spacing(),whiteSpace:"nowrap",backgroundColor:n.status.loginButton,"&:hover":{backgroundColor:"".concat(n.status.loginButtonHovered)}}}));function k(i){var s,a=i.email,c=i.schemas,k=i.onBack,B=i.onFinishLogin,C=L(),x=p(""),F=o(x,2),q=F[0],R=F[1],T=p(!1),H=o(T,2),I=H[0],E=H[1],O=I?C.error:null,A=(s=r(n.mark((function o(r){return n.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r.preventDefault(),E(!0),o.next=4,C.login({email:a,password:q},B);case 4:case"end":return o.stop()}}),o)}))),function(o){return s.apply(this,arguments)}),D=c.find((function(o){return"password"===o.provider})),P=c.filter((function(o){return"password"!==o.provider}));return e(h,{children:[t(g,{children:"Sign In"}),t(f,{children:e(m,{container:!0,direction:"column",children:[t(d,{"data-not-migrated-MuiChip":!0,label:a,onClick:k}),P.map((function(o){return t(w,{item:!0,children:t(y,{title:o.title,provider:o.provider,connection:o.connection,redirectURI:"qwerty"})},o.title)})),D&&P.length>0&&t(m,{item:!0,children:t(v,{})}),D&&t(w,{item:!0,children:e("form",{id:"sign-in-form",onSubmit:A,children:[t(j,{email:a}),t(l,{value:q,onChange:function(o){R(o.target.value),E(!1)},disabled:C.loading,error:O})]})})]})}),t(u,{needHelpExternalLink:b,children:D&&t(S,{"data-testid":"".concat("AuthorizationPo","_signInButton"),form:"sign-in-form",type:"submit",variant:"contained",color:"primary",disabled:!q||C.loading||!!O,onClick:A,children:"Sign In"})})]})}k.propTypes={email:c.string.isRequired,schemas:c.arrayOf(c.shape({})).isRequired,onBack:c.func.isRequired,onFinishLogin:c.func.isRequired};var B=a(k);export default B;
1
+ import o from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import r from"@babel/runtime/helpers/asyncToGenerator";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{styled as i,Grid as m,Button as a}from"@material-ui/core";import{memo as s,useState as p}from"react";import c from"prop-types";import"../../../../components/Login/components/Login.js";import l from"../../../../components/Login/components/PasswordField.js";import d from"../../../../components/Login/components/Chip.js";import u from"../../../../components/Login/components/StepFooter.js";import f from"../../../../components/Login/components/StepContent.js";import g from"../../../../components/Login/components/StepHeader.js";import h from"../../../../components/Login/components/Step.js";import v from"../../../../components/Login/components/OrDivider.js";import j from"../../../../components/Login/components/HiddenEmailField.js";import"../../../../components/Login/components/EmailField.js";import{useAuth as L}from"../../../context/auth.js";import{NEED_HELP_EXTERNAL_LINK as b}from"../../../constants/index.js";import y from"./SSOButton.js";var w=i(m)((function(o){var n=o.theme;return{marginTop:2*n.spacing(1),marginBottom:2*n.spacing(1),"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0}}})),S=i(a)((function(o){var n=o.theme;return{width:71,padding:n.spacing(),whiteSpace:"nowrap",backgroundColor:n.status.loginButton,"&:hover":{backgroundColor:"".concat(n.status.loginButtonHovered)}}}));function k(i){var a,s=i.email,c=i.schemas,k=i.onBack,B=i.onFinishLogin,C=L(),x=p(""),F=o(x,2),q=F[0],R=F[1],T=p(!1),H=o(T,2),I=H[0],E=H[1],O=I?C.error:null,A=(a=r(n.mark((function o(r){return n.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r.preventDefault(),E(!0),o.next=4,C.login({email:s,password:q},B);case 4:case"end":return o.stop()}}),o)}))),function(o){return a.apply(this,arguments)}),D=c.find((function(o){return"password"===o.provider})),P=c.filter((function(o){return"password"!==o.provider}));return t(h,{children:[e(g,{children:"Sign In"}),e(f,{children:t(m,{container:!0,direction:"column",children:[e(d,{"data-not-migrated-MuiChip":!0,label:s,onClick:k}),P.map((function(o){return e(w,{item:!0,children:e(y,{title:o.title,provider:o.provider,connection:o.connection,redirectURI:"qwerty",auth0:C.auth0})},o.title)})),D&&P.length>0&&e(m,{item:!0,children:e(v,{})}),D&&e(w,{item:!0,children:t("form",{id:"sign-in-form",onSubmit:A,children:[e(j,{email:s}),e(l,{value:q,onChange:function(o){R(o.target.value),E(!1)},disabled:C.loading,error:O})]})})]})}),e(u,{needHelpExternalLink:b,children:D&&e(S,{"data-testid":"".concat("AuthorizationPo","_signInButton"),form:"sign-in-form",type:"submit",variant:"contained",color:"primary",disabled:!q||C.loading||!!O,onClick:A,children:"Sign In"})})]})}k.propTypes={email:c.string.isRequired,schemas:c.arrayOf(c.shape({})).isRequired,onBack:c.func.isRequired,onFinishLogin:c.func.isRequired};var B=s(k);export default B;
@@ -1 +1 @@
1
- import{jsxs as C,jsx as H}from"react/jsx-runtime";import{memo as V}from"react";var t=V((function(){return C("svg",{width:"300",height:"68",viewBox:"0 0 300 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[H("path",{d:"M20.111 0.185547H0.905902C0.362361 0.185547 0 0.554112 0 1.10696V17.1396V19.7195V35.7521C0 36.305 0.362361 36.6735 0.905902 36.6735H20.111C25.5464 36.6735 29.8948 32.435 30.076 27.0908V19.7195V17.1396V9.76825V9.58397C30.076 4.42405 25.7276 0.185547 20.111 0.185547ZM22.8287 17.3238V19.7195V27.0908C22.8287 28.5651 21.5605 29.8551 20.111 29.8551H8.15312C7.60958 29.8551 7.24722 29.4865 7.24722 28.9337V19.7195V17.1396V8.29399C7.24722 7.74114 7.60958 7.37257 8.15312 7.37257H20.111C21.5605 7.37257 22.8287 8.47827 22.8287 10.1368V17.3238Z",fill:"white"}),H("path",{d:"M186.254 59.8913C186.435 59.8913 188.246 59.1542 188.246 56.39C188.246 54.3629 187.341 52.52 184.261 52.52H179.369V67.6312H184.261C187.522 67.6312 188.79 65.9727 188.79 63.577C188.79 60.2599 186.435 59.8913 186.254 59.8913ZM180.093 53.0729H184.079C186.797 53.0729 187.522 54.3629 187.522 56.39C187.522 58.2328 186.616 59.7071 184.079 59.7071H180.093V53.0729ZM184.261 66.8941H180.093V60.2599H184.079C186.616 60.2599 187.884 61.3656 187.884 63.577C187.884 65.6041 187.159 66.8941 184.261 66.8941Z",fill:"white"}),H("path",{d:"M201.293 52.5204L196.22 60.4445L191.328 52.5204C191.328 52.5204 191.328 52.5204 190.965 52.5204C190.603 52.5204 190.422 52.5204 190.422 52.5204L195.857 61.1817V67.4473C195.857 67.4473 196.038 67.4473 196.22 67.4473C196.401 67.4473 196.582 67.4473 196.582 67.4473V61.1817L202.199 52.5204C202.199 52.5204 202.017 52.5204 201.655 52.5204C201.474 52.3361 201.293 52.5204 201.293 52.5204Z",fill:"white"}),H("path",{d:"M217.597 54.9157H223.939C223.939 54.9157 224.12 54.9157 224.301 54.7314L225.388 53.0729C225.388 53.0729 225.388 52.8886 225.388 52.7043C225.388 52.7043 225.207 52.52 225.026 52.52H217.597C213.249 52.52 210.35 55.4685 210.35 59.8913C210.35 64.1298 213.43 67.4469 217.597 67.4469H225.026C225.207 67.4469 225.207 67.4469 225.388 67.2626C225.388 67.0784 225.388 67.0784 225.388 66.8941L224.301 65.4198C224.301 65.4198 224.12 65.2355 223.939 65.2355H218.684C214.88 65.2355 212.705 63.3927 212.705 60.0756C212.705 57.6799 214.336 54.9157 217.597 54.9157Z",fill:"white"}),H("path",{d:"M235.717 52.52C230.1 52.52 227.201 55.1 227.201 60.2599C227.201 65.4198 229.919 67.9998 235.717 67.9998C241.333 67.9998 244.232 65.4198 244.232 60.2599C244.232 54.9157 241.333 52.52 235.717 52.52ZM235.717 65.4198C231.368 65.4198 229.557 63.9455 229.557 60.0756C229.557 56.2057 231.187 54.7314 235.717 54.7314C240.065 54.7314 241.877 56.2057 241.877 60.0756C241.877 63.9455 240.246 65.4198 235.717 65.4198Z",fill:"white"}),H("path",{d:"M262.53 57.6805C262.53 55.6534 261.624 54.1791 259.993 53.442C258.906 52.8892 257.457 52.8892 256.732 52.8892H246.043C245.861 52.8892 245.861 52.8892 245.68 53.0734C245.68 53.2577 245.68 53.2577 245.68 53.442L246.767 55.1006C246.767 55.1006 246.948 55.2848 247.13 55.2848H255.826C258.725 55.2848 259.993 56.2062 259.993 58.0491C259.993 59.7076 258.363 60.8133 255.826 60.8133H247.311C247.13 60.8133 246.948 60.9976 246.948 61.1819V67.4475C246.948 67.6318 247.13 67.8161 247.311 67.8161H248.941C249.123 67.8161 249.304 67.6318 249.304 67.4475V63.0247H257.095L259.812 67.6318H259.993H262.168C262.349 67.6318 262.349 67.6318 262.53 67.4475C262.53 67.2632 262.53 67.0789 262.53 67.0789L259.631 62.1033C260.899 61.5504 262.53 60.0762 262.53 57.6805Z",fill:"white"}),H("path",{d:"M282.46 52.8879C282.46 52.8879 282.279 52.7036 282.098 52.7036H280.105C279.924 52.7036 279.924 52.7036 279.743 52.8879L273.039 64.4977L266.517 52.8879C266.517 52.8879 266.335 52.7036 266.154 52.7036H264.161C263.98 52.7036 263.98 52.7036 263.799 52.8879C263.799 52.8879 263.799 53.0722 263.799 53.2565L271.59 66.8934C271.771 67.262 272.314 67.8148 273.039 67.8148C273.583 67.8148 274.126 67.4462 274.488 66.8934L282.279 53.2565C282.642 53.0722 282.642 52.8879 282.46 52.8879Z",fill:"white"}),H("path",{d:"M299.13 66.8933L291.339 53.2564C290.977 53.0721 290.614 52.335 289.708 52.335C288.803 52.335 288.44 52.8878 288.259 53.2564L280.468 66.8933C280.468 66.8933 280.468 67.0776 280.468 67.2619C280.468 67.2619 280.649 67.4461 280.831 67.4461H282.824C283.005 67.4461 283.005 67.4461 283.186 67.2619L289.89 55.652L295.325 65.2348H288.984C288.984 65.2348 288.803 65.2347 288.621 65.419L287.534 67.0776C287.534 67.0776 287.534 67.2619 287.534 67.4461C287.534 67.4461 287.715 67.6304 287.897 67.6304H298.586C298.767 67.6304 298.767 67.6304 298.949 67.4461C299.13 67.0776 299.13 66.8933 299.13 66.8933Z",fill:"white"}),H("path",{d:"M268.148 37.0408H273.402C273.945 37.0408 274.489 36.6723 274.489 35.9351V8.29272C274.489 7.73987 274.851 7.18702 275.576 7.18702H287.534C288.983 7.18702 290.252 8.29272 290.252 9.95126V15.664C290.252 17.1383 288.983 18.4283 287.534 18.4283H280.287C279.924 18.4283 279.381 18.6126 279.2 19.1654L277.569 24.5096C277.388 25.2467 277.931 25.7996 278.656 25.7996H283.729L289.889 36.488C290.07 36.8565 290.433 37.0408 290.795 37.0408H296.955C297.68 37.0408 298.224 36.1194 297.861 35.5666L291.701 25.0624C295.143 23.5882 297.499 20.2711 297.68 16.4012V16.0326V9.95126V9.76698C297.68 4.42278 293.151 0 287.715 0H268.329C267.785 0 267.242 0.368565 267.242 1.1057V36.1194C267.242 36.6723 267.604 37.0408 268.148 37.0408Z",fill:"white"}),H("path",{d:"M87.1488 0.738394L78.4522 28.3808V28.1965L73.9227 14.191L70.8426 4.9769L69.5743 0.922678C69.3931 0.554112 69.0308 0.185547 68.4872 0.185547H60.6965H56.5293H35.15C34.6065 0.185547 34.2441 0.554112 34.2441 1.10696V11.4268V35.9364C34.2441 36.4892 34.6065 37.0421 35.15 37.0421H58.3411H64.5013C65.226 37.0421 65.7695 36.4892 65.5883 35.7521L63.9577 30.4079C63.7766 30.0393 63.4142 29.6708 62.8706 29.6708H61.0588H42.7596C42.2161 29.6708 41.8537 29.3022 41.8537 28.7494V23.2209C41.8537 22.668 42.2161 22.2995 42.7596 22.2995H55.9858C56.5293 22.2995 56.8917 21.9309 56.8917 21.3781V16.2181C56.8917 15.6653 56.5293 15.2967 55.9858 15.2967H42.7596C42.2161 15.2967 41.8537 14.9282 41.8537 14.3753V12.1639V9.03112C41.8537 8.47827 42.2161 8.1097 42.7596 8.1097H63.0518L72.292 37.0421C72.4732 37.4107 72.8356 37.7792 73.3791 37.7792H83.344C83.7064 37.7792 84.2499 37.5949 84.4311 37.0421L96.0267 0.738394H88.2359C87.6924 0.00126363 87.33 0.369829 87.1488 0.738394Z",fill:"white"}),H("path",{d:"M125.921 0H115.956C110.521 0 106.172 4.2385 105.991 9.5827V9.76698V17.5069V18.4283V18.9811V19.7183V27.4581V27.6424C105.991 32.9866 110.521 37.2251 115.956 37.2251H125.921C131.356 37.2251 135.705 32.9866 135.886 27.6424V27.0896C135.886 26.721 135.524 26.3524 135.161 26.3524H129.363C129.001 26.3524 128.639 26.721 128.639 27.0896C128.639 28.5638 127.371 29.8538 125.921 29.8538H116.318C114.869 29.8538 113.601 28.7481 113.601 27.0896V19.7183V18.7968V18.244V17.3226V9.76698C113.601 8.29272 114.869 7.00274 116.318 7.00274H125.921C127.371 7.00274 128.639 8.29272 128.639 9.76698C128.639 10.1356 129.001 10.5041 129.363 10.5041H135.161C135.524 10.5041 135.886 10.1356 135.886 9.76698V9.39842C135.705 4.42278 131.356 0 125.921 0Z",fill:"white"}),H("path",{d:"M166.505 0.185547H161.975H140.596C140.052 0.185547 139.69 0.554112 139.69 1.10696V11.4268V35.7521C139.69 36.305 140.052 36.6735 140.596 36.6735H166.505C167.048 36.6735 167.411 36.305 167.411 35.7521V30.4079C167.411 29.8551 167.048 29.4865 166.505 29.4865H148.387C147.843 29.4865 147.481 29.1179 147.481 28.5651V23.0366C147.481 22.4838 147.843 22.1152 148.387 22.1152H161.613C162.156 22.1152 162.519 21.7466 162.519 21.1938V16.0339C162.519 15.481 162.156 15.1124 161.613 15.1124H148.387C147.843 15.1124 147.481 14.7439 147.481 14.191V11.9796V9.03112C147.481 8.47827 147.843 8.1097 148.387 8.1097H166.505C167.048 8.1097 167.411 7.74114 167.411 7.18829V1.29124C167.411 0.554112 167.048 0.185547 166.505 0.185547Z",fill:"white"}),H("path",{d:"M236.079 37.0408H262.169C262.712 37.0408 263.256 36.6723 263.256 35.9351V30.7752C263.256 30.2224 262.893 29.6695 262.169 29.6695H243.688C243.145 29.6695 242.601 29.3009 242.601 28.5638V23.0353C242.601 22.4825 242.964 21.9296 243.688 21.9296H256.915C257.458 21.9296 258.002 21.5611 258.002 20.8239V15.664C258.002 15.1112 257.639 14.5583 256.915 14.5583H243.688C243.145 14.5583 242.601 14.1898 242.601 13.4526V11.2412V8.10844C242.601 7.55559 242.964 7.00274 243.688 7.00274H261.988C262.531 7.00274 263.075 6.63418 263.075 5.89705V1.1057C263.075 0.552848 262.712 0 261.988 0H257.458H236.079C235.535 0 234.992 0.368565 234.992 1.1057V11.4255V35.9351C234.992 36.6723 235.354 37.0408 236.079 37.0408Z",fill:"white"}),H("path",{d:"M212.706 36.8578H220.134C220.315 36.8578 220.496 36.6735 220.496 36.4893V8.47827C220.496 8.1097 220.859 7.74114 221.221 7.74114H230.28C230.461 7.74114 230.642 7.55686 230.642 7.37257V0.738395C230.642 0.554112 230.461 0.369829 230.28 0.369829H194.588C194.406 0.369829 194.225 0.554112 194.225 0.738395V19.5352C194.225 19.9038 194.044 20.0881 193.682 20.2724C193.319 20.4566 192.957 20.2724 192.776 19.9038L179.187 0.185547H171.759C171.578 0.185547 171.396 0.369829 171.396 0.554112V36.305C171.396 36.4893 171.578 36.6735 171.759 36.6735H178.644C178.825 36.6735 179.006 36.4893 179.006 36.305V16.5867C179.006 16.2181 179.187 16.0339 179.55 15.8496C179.912 15.6653 180.274 15.8496 180.456 16.2181L194.588 36.8578H201.472C201.654 36.8578 201.835 36.6735 201.835 36.4893V7.74114H211.437C211.8 7.74114 212.162 8.1097 212.162 8.47827V36.305C212.343 36.6735 212.524 36.8578 212.706 36.8578Z",fill:"white"})]})}));export default t;
1
+ import{jsxs as C,jsx as H}from"react/jsx-runtime";import{memo as V}from"react";var t=V((function(){return C("svg",{width:"282",height:"53",viewBox:"0 0 282 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[H("path",{d:"M70.3217 32.8756C69.9641 32.3906 69.3682 32.027 68.7722 32.027H59.3563H58.7604H56.3766C55.8998 32.027 55.4231 32.027 55.0655 31.9057C53.2777 31.6633 51.7282 30.9359 50.4171 29.8449C50.4171 29.8449 50.4171 29.8449 50.298 29.7236C50.1788 29.6024 49.9404 29.3599 49.8212 29.2387C48.7485 28.0264 48.0334 26.4505 48.0334 24.8745C48.0334 24.8745 48.0334 23.6622 48.0334 22.0863C48.0334 21.6013 48.0334 21.1164 48.0334 20.6315C48.0334 20.1466 48.0334 19.6617 48.0334 19.1768C48.0334 17.6008 48.0334 16.3885 48.0334 16.3885C48.0334 14.8126 48.6293 13.2366 49.8212 12.0243C49.9404 11.9031 50.1788 11.6606 50.298 11.5394C50.298 11.5394 50.298 11.5394 50.4171 11.4182C51.7282 10.3271 53.2777 9.59976 55.0655 9.3573C55.5423 9.23607 55.8998 9.23607 56.3766 9.23607H58.7604H59.3563H68.7722C69.3682 9.23607 69.9641 8.99362 70.3217 8.38748L73.6589 3.65958C74.1357 3.05344 74.1357 2.20484 73.7781 1.47747C73.4206 1.11379 72.7054 0.628876 71.9903 0.628876H59.2371H56.2574C55.7806 0.628876 55.3039 0.628876 54.9463 0.628876C54.8271 0.628876 54.7079 0.628876 54.5887 0.628876C54.2312 0.628876 53.8736 0.750104 53.5161 0.750104C53.3969 0.750104 53.2777 0.750104 53.1585 0.750104C52.205 0.871332 51.3707 1.11379 50.5363 1.47747H50.4171C50.298 1.47747 50.298 1.5987 50.1788 1.5987C49.8212 1.71993 49.4636 1.84116 49.1061 2.08361C48.8677 2.20484 48.6293 2.32607 48.3909 2.4473C48.1526 2.56853 47.9142 2.68975 47.6758 2.81098C46.4839 3.41712 45.4112 4.26572 44.4577 5.11432C44.2193 5.35677 43.981 5.59923 43.7426 5.84169C41.0012 8.62993 39.571 12.0243 39.4518 15.7824C39.4518 15.9036 39.4518 16.0249 39.4518 16.1461C39.4518 16.1461 39.4518 17.4796 39.4518 19.1768C39.4518 19.6617 39.4518 20.1466 39.4518 20.6315C39.4518 21.1164 39.4518 21.6013 39.4518 22.0863C39.4518 23.7835 39.4518 25.117 39.4518 25.117C39.4518 25.2382 39.4518 25.3594 39.4518 25.4806C39.571 29.2387 41.0012 32.6331 43.7426 35.4214C43.981 35.6638 44.2193 35.9063 44.4577 36.1487C45.4112 36.9973 46.4839 37.8459 47.6758 38.4521C47.9142 38.5733 48.1526 38.6945 48.3909 38.8157C48.6293 38.937 48.8677 39.0582 49.1061 39.1794C49.4636 39.3007 49.8212 39.4219 50.1788 39.6643C50.298 39.6643 50.298 39.7856 50.4171 39.7856H50.5363C51.3707 40.028 52.3242 40.2705 53.1585 40.5129C53.2777 40.5129 53.3969 40.5129 53.5161 40.5129C53.8736 40.5129 54.2312 40.6342 54.5887 40.6342C54.7079 40.6342 54.8271 40.6342 54.9463 40.6342C55.4231 40.6342 55.8998 40.6342 56.2574 40.6342H59.2371H71.8711C72.5862 40.6342 73.3014 40.1493 73.6589 39.5431C74.0165 38.8157 74.0165 37.9671 73.5398 37.361L70.3217 32.8756Z",fill:"white"}),H("path",{d:"M18.951 0.628418H5.2443C3.81404 0.628418 2.50296 1.11333 1.54945 2.08316C0.595944 3.05298 0 4.38649 0 5.72V38.0879C0 38.8153 0.238377 39.4214 0.715132 40.0276C0.95351 40.1488 1.19189 40.27 1.19189 40.3912C1.54945 40.6337 2.02621 40.7549 2.50296 40.7549H4.40998C4.64836 40.7549 4.76755 40.7549 5.00593 40.7549H18.7126C28.0093 40.7549 35.5182 33.6025 35.5182 24.9953V24.0254V16.5093C35.7566 7.65965 28.2477 0.628418 18.951 0.628418ZM27.175 24.9953C27.175 26.8137 26.3407 28.6321 24.9104 29.9656C24.6721 30.2081 24.3145 30.4505 23.9569 30.693C22.5267 31.6628 20.6196 32.1477 18.8318 32.1477H11.0846H9.65429H8.70078V9.35684H18.951C21.2156 9.35684 23.2418 10.0842 24.7913 11.5389C26.3407 12.8725 27.0558 14.6909 27.0558 16.5093V24.9953H27.175Z",fill:"white"}),H("path",{d:"M98.4492 8.3887H85.8152C85.4576 8.3887 85.2192 8.63116 85.2192 8.99484V19.5417V21.2389V31.7857C85.2192 32.1494 85.4576 32.3919 85.8152 32.3919H98.4492C102.025 32.3919 104.885 29.6036 105.005 26.088V21.2389V19.5417V14.6926V14.5713C105.005 11.1769 102.144 8.3887 98.4492 8.3887ZM100.237 19.6629V21.2389V26.088C100.237 27.0578 99.4027 27.9064 98.4492 27.9064H90.5827C90.2252 27.9064 89.9868 27.664 89.9868 27.3003V21.2389V19.5417V13.7227C89.9868 13.3591 90.2252 13.1166 90.5827 13.1166H98.4492C99.4027 13.1166 100.237 13.844 100.237 14.935V19.6629Z",fill:"white"}),H("path",{d:"M207.745 47.6662C207.864 47.6662 209.056 47.1813 209.056 45.3629C209.056 44.0293 208.46 42.8171 206.434 42.8171H203.216V52.7578H206.434C208.579 52.7578 209.414 51.6667 209.414 50.0908C209.414 47.9086 207.864 47.6662 207.745 47.6662ZM203.693 43.1807H206.315C208.103 43.1807 208.579 44.0293 208.579 45.3629C208.579 46.5751 207.983 47.545 206.315 47.545H203.693V43.1807ZM206.434 52.2729H203.693V47.9086H206.315C207.983 47.9086 208.818 48.636 208.818 50.0908C208.818 51.4243 208.341 52.2729 206.434 52.2729Z",fill:"white"}),H("path",{d:"M217.639 42.8172L214.301 48.03L211.083 42.8172C211.083 42.8172 211.083 42.8172 210.845 42.8172C210.606 42.8172 210.487 42.8172 210.487 42.8172L214.063 48.5149V52.6367C214.063 52.6367 214.182 52.6367 214.301 52.6367C214.421 52.6367 214.54 52.6367 214.54 52.6367V48.5149L218.235 42.8172C218.235 42.8172 218.115 42.8172 217.877 42.8172C217.758 42.696 217.639 42.8172 217.639 42.8172Z",fill:"white"}),H("path",{d:"M228.365 44.393H232.537C232.537 44.393 232.656 44.393 232.775 44.2718L233.49 43.1807C233.49 43.1807 233.49 43.0595 233.49 42.9383C233.49 42.9383 233.371 42.8171 233.252 42.8171H228.365C225.504 42.8171 223.597 44.7567 223.597 47.6662C223.597 50.4544 225.624 52.6365 228.365 52.6365H233.252C233.371 52.6365 233.371 52.6365 233.49 52.5153C233.49 52.3941 233.49 52.3941 233.49 52.2729L232.775 51.303C232.775 51.303 232.656 51.1818 232.537 51.1818H229.08C226.577 51.1818 225.147 49.9695 225.147 47.7874C225.147 46.2115 226.22 44.393 228.365 44.393Z",fill:"white"}),H("path",{d:"M240.284 42.8171C236.589 42.8171 234.682 44.5143 234.682 47.9086C234.682 51.303 236.47 53.0002 240.284 53.0002C243.979 53.0002 245.886 51.303 245.886 47.9086C245.886 44.393 243.979 42.8171 240.284 42.8171ZM240.284 51.303C237.424 51.303 236.232 50.3332 236.232 47.7874C236.232 45.2416 237.305 44.2718 240.284 44.2718C243.145 44.2718 244.337 45.2416 244.337 47.7874C244.337 50.3332 243.264 51.303 240.284 51.303Z",fill:"white"}),H("path",{d:"M257.924 46.2116C257.924 44.8781 257.328 43.9083 256.255 43.4234C255.54 43.0597 254.586 43.0597 254.11 43.0597H247.077C246.958 43.0597 246.958 43.0597 246.839 43.1809C246.839 43.3021 246.839 43.3021 246.839 43.4234L247.554 44.5144C247.554 44.5144 247.673 44.6356 247.793 44.6356H253.514C255.421 44.6356 256.255 45.2418 256.255 46.4541C256.255 47.5451 255.182 48.2725 253.514 48.2725H247.912C247.793 48.2725 247.673 48.3937 247.673 48.5149V52.6367C247.673 52.7579 247.793 52.8792 247.912 52.8792H248.984C249.104 52.8792 249.223 52.7579 249.223 52.6367V49.7272H254.348L256.136 52.7579H256.255H257.685C257.804 52.7579 257.804 52.7579 257.924 52.6367C257.924 52.5155 257.924 52.3942 257.924 52.3942L256.017 49.1211C256.851 48.7574 257.924 47.7876 257.924 46.2116Z",fill:"white"}),H("path",{d:"M271.035 43.0589C271.035 43.0589 270.916 42.9377 270.796 42.9377H269.485C269.366 42.9377 269.366 42.9377 269.247 43.0589L264.837 50.6963L260.546 43.0589C260.546 43.0589 260.427 42.9377 260.308 42.9377H258.997C258.877 42.9377 258.877 42.9377 258.758 43.0589C258.758 43.0589 258.758 43.1802 258.758 43.3014L263.883 52.2723C264.003 52.5147 264.36 52.8784 264.837 52.8784C265.194 52.8784 265.552 52.636 265.79 52.2723L270.916 43.3014C271.154 43.1802 271.154 43.0589 271.035 43.0589Z",fill:"white"}),H("path",{d:"M282.001 52.2721L276.875 43.3012C276.637 43.18 276.399 42.6951 275.803 42.6951C275.207 42.6951 274.968 43.0588 274.849 43.3012L269.724 52.2721C269.724 52.2721 269.724 52.3934 269.724 52.5146C269.724 52.5146 269.843 52.6358 269.962 52.6358H271.274C271.393 52.6358 271.393 52.6358 271.512 52.5146L275.922 44.8772L279.498 51.1811H275.326C275.326 51.1811 275.207 51.1811 275.088 51.3023L274.372 52.3934C274.372 52.3934 274.372 52.5146 274.372 52.6358C274.372 52.6358 274.492 52.757 274.611 52.757H281.643C281.762 52.757 281.762 52.757 281.881 52.6358C282.001 52.3934 282.001 52.2721 282.001 52.2721Z",fill:"white"}),H("path",{d:"M261.619 32.6341H265.075C265.433 32.6341 265.79 32.3916 265.79 31.9067V13.7225C265.79 13.3588 266.029 12.9951 266.506 12.9951H274.372C275.326 12.9951 276.16 13.7225 276.16 14.8136V18.5716C276.16 19.5415 275.326 20.3901 274.372 20.3901H269.605C269.366 20.3901 269.009 20.5113 268.889 20.875L267.817 24.3906C267.698 24.8755 268.055 25.2392 268.532 25.2392H271.869L275.922 32.2704C276.041 32.5129 276.279 32.6341 276.517 32.6341H280.57C281.047 32.6341 281.404 32.028 281.166 31.6643L277.113 24.7543C279.378 23.7844 280.927 21.6023 281.047 19.0566V18.8141V14.8136V14.6923C281.047 11.1767 278.067 8.26725 274.491 8.26725H261.738C261.381 8.26725 261.023 8.50971 261.023 8.99462V32.028C261.023 32.3916 261.261 32.6341 261.619 32.6341Z",fill:"white"}),H("path",{d:"M142.55 8.75289L136.829 26.9371V26.8159L133.849 17.6025L131.823 11.5411L130.989 8.87412C130.869 8.63166 130.631 8.38921 130.273 8.38921H125.148H122.407H108.343C107.985 8.38921 107.747 8.63166 107.747 8.99535V15.7841V31.9075C107.747 32.2711 107.985 32.6348 108.343 32.6348H123.599H127.651C128.128 32.6348 128.486 32.2711 128.366 31.7862L127.294 28.2706C127.174 28.0282 126.936 27.7857 126.579 27.7857H125.387H113.349C112.991 27.7857 112.753 27.5432 112.753 27.1796V23.5427C112.753 23.179 112.991 22.9366 113.349 22.9366H122.049C122.407 22.9366 122.645 22.6941 122.645 22.3304V18.9361C122.645 18.5724 122.407 18.3299 122.049 18.3299H113.349C112.991 18.3299 112.753 18.0875 112.753 17.7238V16.269V14.2082C112.753 13.8445 112.991 13.602 113.349 13.602H126.698L132.776 32.6348C132.896 32.8773 133.134 33.1197 133.491 33.1197H140.047C140.285 33.1197 140.643 32.9985 140.762 32.6348L148.39 8.75289H143.265C142.907 8.26798 142.669 8.51043 142.55 8.75289Z",fill:"white"}),H("path",{d:"M168.056 8.26725H161.5C157.925 8.26725 155.064 11.0555 154.945 14.5711V14.6923V19.7839V20.3901V20.7537V21.2387V26.3302V26.4515C154.945 29.9671 157.925 32.7553 161.5 32.7553H168.056C171.631 32.7553 174.492 29.9671 174.611 26.4515V26.0878C174.611 25.8453 174.373 25.6029 174.134 25.6029H170.32C170.082 25.6029 169.843 25.8453 169.843 26.0878C169.843 27.0576 169.009 27.9062 168.056 27.9062H161.739C160.785 27.9062 159.951 27.1788 159.951 26.0878V21.2387V20.6325V20.2688V19.6627V14.6923C159.951 13.7225 160.785 12.8739 161.739 12.8739H168.056C169.009 12.8739 169.843 13.7225 169.843 14.6923C169.843 14.9348 170.082 15.1773 170.32 15.1773H174.134C174.373 15.1773 174.611 14.9348 174.611 14.6923V14.4499C174.492 11.1767 171.631 8.26725 168.056 8.26725Z",fill:"white"}),H("path",{d:"M194.754 8.38921H191.774H177.71C177.352 8.38921 177.114 8.63166 177.114 8.99535V15.7841V31.7862C177.114 32.1499 177.352 32.3924 177.71 32.3924H194.754C195.111 32.3924 195.35 32.1499 195.35 31.7862V28.2706C195.35 27.9069 195.111 27.6645 194.754 27.6645H182.835C182.477 27.6645 182.239 27.422 182.239 27.0583V23.4215C182.239 23.0578 182.477 22.8154 182.835 22.8154H191.536C191.893 22.8154 192.132 22.5729 192.132 22.2092V18.8148C192.132 18.4511 191.893 18.2087 191.536 18.2087H182.835C182.477 18.2087 182.239 17.9662 182.239 17.6025V16.1478V14.2082C182.239 13.8445 182.477 13.602 182.835 13.602H194.754C195.111 13.602 195.35 13.3596 195.35 12.9959V9.11657C195.35 8.63166 195.111 8.38921 194.754 8.38921Z",fill:"white"}),H("path",{d:"M240.523 32.6341H257.686C258.043 32.6341 258.401 32.3916 258.401 31.9067V28.5123C258.401 28.1487 258.162 27.785 257.686 27.785H245.528C245.171 27.785 244.813 27.5425 244.813 27.0576V23.4208C244.813 23.0571 245.052 22.6934 245.528 22.6934H254.229C254.587 22.6934 254.944 22.4509 254.944 21.966V18.5716C254.944 18.208 254.706 17.8443 254.229 17.8443H245.528C245.171 17.8443 244.813 17.6018 244.813 17.1169V15.6622V13.6013C244.813 13.2376 245.052 12.8739 245.528 12.8739H257.566C257.924 12.8739 258.282 12.6315 258.282 12.1465V8.99462C258.282 8.63093 258.043 8.26725 257.566 8.26725H254.587H240.523C240.165 8.26725 239.807 8.50971 239.807 8.99462V15.7834V31.9067C239.807 32.3916 240.046 32.6341 240.523 32.6341Z",fill:"white"}),H("path",{d:"M225.146 32.5136H230.033C230.152 32.5136 230.272 32.3924 230.272 32.2712V13.8445C230.272 13.602 230.51 13.3596 230.748 13.3596H236.708C236.827 13.3596 236.946 13.2383 236.946 13.1171V8.75289C236.946 8.63166 236.827 8.51043 236.708 8.51043H213.228C213.108 8.51043 212.989 8.63166 212.989 8.75289V21.1182C212.989 21.3606 212.87 21.4818 212.632 21.6031C212.393 21.7243 212.155 21.6031 212.036 21.3606L203.097 8.38921H198.21C198.091 8.38921 197.971 8.51043 197.971 8.63166V32.1499C197.971 32.2712 198.091 32.3924 198.21 32.3924H202.739C202.858 32.3924 202.977 32.2712 202.977 32.1499V19.1785C202.977 18.9361 203.097 18.8148 203.335 18.6936C203.573 18.5724 203.812 18.6936 203.931 18.9361L213.228 32.5136H217.757C217.876 32.5136 217.995 32.3924 217.995 32.2712V13.3596H224.312C224.551 13.3596 224.789 13.602 224.789 13.8445V32.1499C224.908 32.3924 225.027 32.5136 225.146 32.5136Z",fill:"white"})]})}));export default t;
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/slicedToArray";import{jsx as e,jsxs as t}from"react/jsx-runtime";import{withStyles as i,ButtonBase as o,Grid as s,Avatar as n,Typography as a,CircularProgress as l}from"@material-ui/core";import{useState as c}from"react";import d from"prop-types";import g from"../../../../clients/auth0/index.js";var m={google:"/static/media/55de612562c712e3a9d6ea86000e18c7.svg",microsoft:"/static/media/319d9b9a39d511547cf55d1336a8eca4.svg"};function p(i){var d=i.connection,p=i.title,u=i.provider,f=i.classes,h=c(!1),b=r(h,2),v=b[0],R=b[1],y=m[u];return e(o,{className:f.button,onClick:function(r){r.preventDefault(),v||(R(!0),g.loginWithConnection(d))},children:t(s,{container:!0,justify:"space-between",alignItems:"center",children:[e(s,{item:!0,children:t(s,{container:!0,justify:"flex-start",alignItems:"center",children:[e(s,{item:!0,children:y?e("img",{className:f.logo,src:y,alt:p}):e(n,{className:f.avatar,children:p&&p[0].toUpperCase()})}),e(s,{item:!0,children:e(a,{variant:"body2",children:p})})]})}),e(s,{item:!0,children:v&&e(l,{classes:{root:f.progressRoot,colorPrimary:f.progressColor},color:"primary",size:30})})]})})}p.propTypes={title:d.string.isRequired,provider:d.string.isRequired,connection:d.string.isRequired,classes:d.shape({button:d.string.isRequired,logo:d.string.isRequired,avatar:d.string.isRequired,progressRoot:d.string.isRequired,progressColor:d.string.isRequired}).isRequired};var u=i((function(r){return{button:{width:"100%",height:56,fontSize:16,fontWeight:400,color:"#fff",display:"inline-flex",padding:0,alignItems:"center",justifyContent:"flex-start",whiteSpace:"nowrap",borderRadius:4,borderWidth:1,borderStyle:"solid",borderColor:"#616161",textDecoration:"none","&:hover":{borderColor:r.status.loginButton}},logo:{height:30,width:30,margin:12},avatar:{height:30,width:30,margin:12,color:"#ffffff",backgroundColor:r.status.loginButton},progressRoot:{margin:"12px 24px"},progressColor:{color:r.status.loginButton}}}))(p);export default u;
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{jsx as r,jsxs as t}from"react/jsx-runtime";import{withStyles as o,ButtonBase as i,Grid as n,Avatar as a,Typography as l,CircularProgress as s}from"@material-ui/core";import{useState as c}from"react";var d={google:"/static/media/55de612562c712e3a9d6ea86000e18c7.svg",microsoft:"/static/media/319d9b9a39d511547cf55d1336a8eca4.svg"};var m=o((function(e){return{button:{width:"100%",height:56,fontSize:16,fontWeight:400,color:"#fff",display:"inline-flex",padding:0,alignItems:"center",justifyContent:"flex-start",whiteSpace:"nowrap",borderRadius:4,borderWidth:1,borderStyle:"solid",borderColor:"#616161",textDecoration:"none","&:hover":{borderColor:e.status.loginButton}},logo:{height:30,width:30,margin:12},avatar:{height:30,width:30,margin:12,color:"#ffffff",backgroundColor:e.status.loginButton},progressRoot:{margin:"12px 24px"},progressColor:{color:e.status.loginButton}}}))((function(o){var m=o.connection,f=o.title,g=o.provider,h=o.auth0,u=o.classes,p=c(!1),b=e(p,2),v=b[0],y=b[1],C=d[g];return r(i,{className:u.button,onClick:function(e){e.preventDefault(),v||(y(!0),h.loginWithConnection(m))},children:t(n,{container:!0,justify:"space-between",alignItems:"center",children:[r(n,{item:!0,children:t(n,{container:!0,justify:"flex-start",alignItems:"center",children:[r(n,{item:!0,children:C?r("img",{className:u.logo,src:C,alt:f}):r(a,{className:u.avatar,children:f&&f[0].toUpperCase()})}),r(n,{item:!0,children:r(l,{variant:"body2",children:f})})]})}),r(n,{item:!0,children:v&&r(s,{classes:{root:u.progressRoot,colorPrimary:u.progressColor},color:"primary",size:30})})]})})}));export default m;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import{showErrorNotification as o}from"../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import{useEffect as e}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import n from"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{useAuth as s}from"../../context/auth.js";import r from"../../../clients/auth0/index.js";function i(i){var p=i.router,m=s().login;return e((function(){r.handleAuthentication((function(o){return m({token:o.accessToken},(function(){return p.push("/")}))}),(function(){o("Sorry, but we couldn’t log you in. Please contact Corva support if you need assistance"),p.push("/login")}))}),[]),t(n,{fullscreen:!1})}export default i;
1
+ import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import{showErrorNotification as o}from"../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import{useEffect as e}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import n from"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{useAuth as s}from"../../context/auth.js";function r(r){var i=r.router,p=s(),m=p.login,c=p.auth0;return e((function(){c.handleAuthentication((function(o){return m({token:o.accessToken},(function(){return i.push("/")}))}),(function(){o("Sorry, but we couldn’t log you in. Please contact Corva support if you need assistance"),i.push("/login")}))}),[]),t(n,{fullscreen:!1})}export default r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require('../../../ext-cjs/@babel/runtime/helpers/defineProperty.js');function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function a(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?r(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var i={qa:"qa",staging:"staging",production:"production"},o={REACT_APP_AUTH0_REDIRECT_URI:"http://app.local.corva.ai:8080/login/oauth-callback",REACT_APP_AUTH0_DOMAIN:"corva.auth0.com",REACT_APP_AUTH0_CLIENT_ID:"L1B0xGD5AuXwuTDFdFA9czDTM7Vvw464"},c=(e(t={},i.qa,a(a({},o),{},{REACT_APP_API_URL:"https://api.qa.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.qa.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.qa.corva.ai/v1"})),e(t,i.staging,a(a({},o),{},{REACT_APP_API_URL:"https://api.staging.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.staging.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.staging.corva.ai/v1"})),e(t,i.production,a(a({},o),{},{REACT_APP_API_URL:"https://api.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.corva.ai/v1"})),t);exports.CORVA_API_ENVS=i,exports.CORVA_API_ENV_VARIABLES=c,exports.CORVA_GLOBAL_DEPENDENCIES={"@corva/ui":"","@material-ui/core":"4.11.2","@material-ui/icons":"4.9.1","@material-ui/lab":"4.0.0-alpha.57","@material-ui/pickers":"3.2.10",classnames:"2.2.6","corva-convert-units":"1.10.17",highcharts:"8.1.2","highcharts-react-official":"2.2.2",html2canvas:"1.0.0-alpha.12",jsona:"1.5.1",lodash:"^4.17.4","mapbox.js":"3.2.1",moment:"2.23.0","moment-timezone":"0.5.23",react:"17.0.1","react-dom":"17.0.1","react-sortable-hoc":"0.6.8","react-sizeme":"2.5.2","react-redux":"5.1.1","react-virtualized":"9.21.2",redux:"3.7.2","redux-thunk":"2.3.0",reselect:"2.5.4","prop-types":"^15.6.1",uuid:"3.4.0"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require('../../../ext-cjs/@babel/runtime/helpers/defineProperty.js');function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function a(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?r(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var i={qa:"qa",staging:"staging",production:"production"},o={REACT_APP_AUTH0_REDIRECT_URI:"/login/oauth-callback",REACT_APP_AUTH0_DOMAIN:"corva.auth0.com",REACT_APP_AUTH0_CLIENT_ID:"L1B0xGD5AuXwuTDFdFA9czDTM7Vvw464"},c=(e(t={},i.qa,a(a({},o),{},{REACT_APP_API_URL:"https://api.qa.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.qa.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.qa.corva.ai/v1"})),e(t,i.staging,a(a({},o),{},{REACT_APP_API_URL:"https://api.staging.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.staging.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.staging.corva.ai/v1"})),e(t,i.production,a(a({},o),{},{REACT_APP_API_URL:"https://api.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.corva.ai/v1"})),t);exports.CORVA_API_ENVS=i,exports.CORVA_API_ENV_VARIABLES=c,exports.CORVA_GLOBAL_DEPENDENCIES={"@corva/ui":"","@material-ui/core":"4.11.2","@material-ui/icons":"4.9.1","@material-ui/lab":"4.0.0-alpha.57","@material-ui/pickers":"3.2.10",classnames:"2.2.6","corva-convert-units":"1.10.17",highcharts:"8.1.2","highcharts-react-official":"2.2.2",html2canvas:"1.0.0-alpha.12",jsona:"1.5.1",lodash:"^4.17.4","mapbox.js":"3.2.1",moment:"2.23.0","moment-timezone":"0.5.23",react:"17.0.1","react-dom":"17.0.1","react-sortable-hoc":"0.6.8","react-sizeme":"2.5.2","react-redux":"5.1.1","react-virtualized":"9.21.2",redux:"3.7.2","redux-thunk":"2.3.0",reselect:"2.5.4","prop-types":"^15.6.1",uuid:"3.4.0"};
@@ -1 +1 @@
1
- "use strict";var e=require('../../../ext-cjs/@babel/runtime/helpers/defineProperty.js'),r=require("./constants.js"),n=require("./webpack.config.common.js"),o=require("./plugins/checkCorvaUIVersion.js");function t(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,o)}return n}function i(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(n){e(r,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var c=require("webpack-merge").merge,s=require("path"),p=require("webpack"),l=require("clean-webpack-plugin").CleanWebpackPlugin,a=require("copy-webpack-plugin"),u=require("html-webpack-plugin"),d=require("chalk");require("dotenv").config({path:s.resolve(n.APP_DIRECTORY,"./.env")});module.exports=function(e,t){var v,O=process.env.HOST||"app.local.corva.ai",m=process.env.PORT||8080;return c(n.default(e,t),{mode:"development",devtool:"inline-source-map",devServer:{contentBase:"./dist",public:"".concat(O,":").concat(m),port:m},entry:s.resolve(__dirname,"DevServerEntryPoint.js"),plugins:[new l,new a({patterns:[{from:s.resolve(__dirname,"public")},{from:s.resolve(process.cwd(),"node_modules","@corva/ui/assets"),to:"static/media",noErrorOnMissing:!0}]}),new u({filename:"index.html",inject:!0,template:s.resolve(__dirname,"public","index.html")}),new p.EnvironmentPlugin(i(i({},process.env),{},{DEV_CENTER_APP_PATH:process.cwd(),REACT_APP_ENVIRONMENT:process.env.REACT_APP_ENVIRONMENT||"development"},(v=process.env.CORVA_API_ENV||r.CORVA_API_ENVS.production,v in r.CORVA_API_ENVS?r.CORVA_API_ENV_VARIABLES[v]:(console.log(d.red("CORVA_API_ENV should be one of [".concat(Object.keys(r.CORVA_API_ENVS).join(", "),"]"))),process.exit(1))))),o],module:{rules:[{test:/\.(png|jpe?g|gif)$/i,use:[{loader:"file-loader"}]},{test:/\.svg$/,use:[{loader:"svg-url-loader",options:{limit:1e4}}]}]}})};
1
+ "use strict";var e=require('../../../ext-cjs/@babel/runtime/helpers/defineProperty.js'),r=require("./constants.js"),o=require("./webpack.config.common.js"),n=require("./plugins/checkCorvaUIVersion.js");function t(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,n)}return o}function s(r){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?t(Object(n),!0).forEach((function(o){e(r,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var i=require("webpack-merge").merge,c=require("path"),l=require("webpack"),p=require("clean-webpack-plugin").CleanWebpackPlugin,u=require("copy-webpack-plugin"),a=require("html-webpack-plugin"),d=require("chalk");require("dotenv").config({path:c.resolve(o.APP_DIRECTORY,"./.env")});module.exports=function(e,t){var v,O=process.env.HOST||t.host||"localhost",m=process.env.PORT||t.port||8080;return i(o.default(e,t),{mode:"development",devtool:"inline-source-map",devServer:{contentBase:"./dist",public:"".concat(O,":").concat(m),port:m},entry:c.resolve(__dirname,"DevServerEntryPoint.js"),plugins:[new p,new u({patterns:[{from:c.resolve(__dirname,"public")},{from:c.resolve(process.cwd(),"node_modules","@corva/ui/assets"),to:"static/media",noErrorOnMissing:!0}]}),new a({filename:"index.html",inject:!0,template:c.resolve(__dirname,"public","index.html")}),new l.EnvironmentPlugin(s(s({},process.env),{},{DEV_CENTER_APP_PATH:process.cwd(),REACT_APP_ENVIRONMENT:process.env.REACT_APP_ENVIRONMENT||"development"},(v=process.env.CORVA_API_ENV||r.CORVA_API_ENVS.production,v in r.CORVA_API_ENVS?r.CORVA_API_ENV_VARIABLES[v]:(console.log(d.red("CORVA_API_ENV should be one of [".concat(Object.keys(r.CORVA_API_ENVS).join(", "),"]"))),process.exit(1))))),n],module:{rules:[{test:/\.(png|jpe?g|gif)$/i,use:[{loader:"file-loader"}]},{test:/\.svg$/,use:[{loader:"svg-url-loader",options:{limit:1e4}}]}]}})};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/classCallCheck";import t from"auth0-js";var o=process.env.REACT_APP_AUTH0_DOMAIN?new function o(){var r=this;n(this,o),e(this,"handleAuthentication",(function(e,n){return r.webAuth.parseHash((function(t,o){o&&o.accessToken?e(o):t&&n(t)}))})),e(this,"loginWithConnection",(function(e){return r.webAuth.authorize({connection:e})})),this.webAuth=new t.WebAuth({domain:process.env.REACT_APP_AUTH0_DOMAIN,clientID:process.env.REACT_APP_AUTH0_CLIENT_ID,redirectUri:process.env.REACT_APP_AUTH0_REDIRECT_URI,audience:process.env.REACT_APP_AUTH0_AUDIENCE,responseType:"token",scope:"openid profile email"})}:{};export default o;
1
+ import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/classCallCheck";import t from"auth0-js";var o=function o(){var i=this;n(this,o),e(this,"handleAuthentication",(function(e,n){return i.webAuth.parseHash((function(t,o){o&&o.accessToken?e(o):t&&n(t)}))})),e(this,"loginWithConnection",(function(e){return i.webAuth.authorize({connection:e})})),this.webAuth=new t.WebAuth({domain:process.env.REACT_APP_AUTH0_DOMAIN,clientID:process.env.REACT_APP_AUTH0_CLIENT_ID,redirectUri:"".concat(window.location.origin,"/login/oauth-callback"),audience:process.env.REACT_APP_AUTH0_AUDIENCE,responseType:"token",scope:"openid profile email"})};export default o;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{get as t,capitalize as a}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as l,jsx as r}from"react/jsx-runtime";import{Button as i}from"@material-ui/core";import{useState as o}from"react";import n from"prop-types";import p from"./AssetEditors.css.js";import u from"./SingleAssetEditor.js";import c from"./AssetEditorAutocomplete.js";var d="DC_AppSettingsAssetEditor",m=function(n){var m=n.appKey,y=n.appType,f=n.defaultValue,A=n.isNullable,b=n.label,h=n.onSettingsChange,g=n.settings,T=t(y,["primaryAsset","assetType","type"]),C=t(y,["primaryAsset","assetType","id"]),v=t(y,["primaryAsset","autocompleteSelect"]),N=t(y,["secondaryAsset","assetType","type"]),V=t(y,["secondaryAsset","assetType","id"]),K=t(y,["secondaryAsset","autocompleteSelect"]),S=t(g,C),_=o(S||f),j=s(_,2),E=j[0],q=j[1],R=o(t(g,V)),k=s(R,2),x=k[0],B=k[1],D=o(!(!N||x)),I=s(D,2),P=I[0],U=I[1],W=o(!(!N||!x)),w=s(W,2),z=w[0],F=w[1],G=function(t){B(t),h(e({},V,t))},H=function(t){q(t),B(null),F(!1),U(!!N);var a=e({},C,t);V&&(a[V]=null),h(a)};return l("div",{className:p.main,children:[r("div",{className:p.title,children:"Active Asset"}),l("div",{className:p.editor,children:[v?r(c,{onChange:H,defaultValue:f,currentValue:E,isNullable:A,label:b,assetType:T,appKey:m}):r(u,{"data-testid":"".concat(d,"_primaryAutoComplete"),onChange:H,defaultValue:f,currentValue:E,isNullable:A,label:b,assetType:T,appKey:m}),P&&r(i,{"data-testid":"".concat(d,"_changeWellButton"),color:"primary",onClick:function(){F(!0),U(!1)},disabled:!S,children:"Change ".concat(a(N))}),!P&&z&&r(i,{"data-testid":"".concat(d,"_useDefaultButton"),color:"secondary",onClick:function(){B(null),F(!1),U(!!N),h(e({},V,null))},children:"Use active asset"})]}),z&&r("div",{className:p.editor,children:K?r(c,{onChange:G,defaultValue:f,currentValue:x,isNullable:A,label:"Active ".concat(a(N)),assetType:N,parentAssetId:E,parentAssetType:T,appKey:m}):r(u,{"data-testid":"".concat(d,"_secondaryAutoComplete"),onChange:G,defaultValue:f,currentValue:x,isNullable:A,label:"Active ".concat(a(N)),assetType:N,parentAssetId:E,parentAssetType:T,appKey:m})})]})};m.defaultProps={label:"Choose An Asset",isNullable:!1,defaultValue:void 0,appKey:null},m.propTypes={settings:n.shape({}).isRequired,appType:n.shape({}).isRequired,defaultValue:n.any,onSettingsChange:n.func.isRequired,label:n.string,isNullable:n.bool,appKey:n.string};export default m;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{get as t,capitalize as a}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as l,jsx as r}from"react/jsx-runtime";import{Button as o}from"@material-ui/core";import{useState as i}from"react";import n from"prop-types";import p from"./AssetEditors.css.js";import c from"./SingleAssetEditor.js";import u from"./AssetEditorAutocomplete.js";var d="DC_AppSettingsAssetEditor",m=function(n){var m=n.appKey,y=n.appType,A=n.defaultValue,f=n.isNullable,b=n.label,h=n.onSettingsChange,g=n.settings,T=t(y,["primaryAsset","assetType","type"]),C=t(y,["primaryAsset","assetType","id"]),v=t(y,["primaryAsset","autocompleteSelect"]),N=t(y,["secondaryAsset","assetType","type"]),V=t(y,["secondaryAsset","assetType","id"]),K=t(y,["secondaryAsset","autocompleteSelect"]),_=t(g,C),E=i(_||A),S=s(E,2),j=S[0],q=S[1],R=i(t(g,V)),k=s(R,2),x=k[0],B=k[1],D=i(!(!N||x)),I=s(D,2),P=I[0],U=I[1],W=i(!(!N||!x)),w=s(W,2),z=w[0],F=w[1],G=function(t){B(t),h(e({},V,t))},H=function(t){q(t),B(null),F(!1),U(!!N);var a=e({},C,t);V&&(a[V]=null),h(a)};return l("div",{className:p.main,children:[r("div",{className:p.title,children:"Active Asset"}),l("div",{className:p.editor,children:[v?r(u,{"data-testid":"".concat(d,"_primaryAssetEditorAutocomplete"),onChange:H,defaultValue:A,currentValue:j,isNullable:f,label:b,assetType:T,appKey:m}):r(c,{"data-testid":"".concat(d,"_primaryAutoComplete"),onChange:H,defaultValue:A,currentValue:j,isNullable:f,label:b,assetType:T,appKey:m}),P&&r(o,{"data-testid":"".concat(d,"_changeWellButton"),color:"primary",onClick:function(){F(!0),U(!1)},disabled:!_,children:"Change ".concat(a(N))}),!P&&z&&r(o,{"data-testid":"".concat(d,"_useDefaultButton"),color:"secondary",onClick:function(){B(null),F(!1),U(!!N),h(e({},V,null))},children:"Use active asset"})]}),z&&r("div",{className:p.editor,children:K?r(u,{"data-testid":"".concat(d,"_secondaryAssetEditorAutocomplete"),onChange:G,defaultValue:A,currentValue:x,isNullable:f,label:"Active ".concat(a(N)),assetType:N,parentAssetId:j,parentAssetType:T,appKey:m}):r(c,{"data-testid":"".concat(d,"_secondaryAutoComplete"),onChange:G,defaultValue:A,currentValue:x,isNullable:f,label:"Active ".concat(a(N)),assetType:N,parentAssetId:j,parentAssetType:T,appKey:m})})]})};m.defaultProps={label:"Choose An Asset",isNullable:!1,defaultValue:void 0,appKey:null},m.propTypes={settings:n.shape({}).isRequired,appType:n.shape({}).isRequired,defaultValue:n.any,onSettingsChange:n.func.isRequired,label:n.string,isNullable:n.bool,appKey:n.string};export default m;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{Tooltip as i}from"@material-ui/core";import{memo as t}from"react";import"@babel/runtime/helpers/objectWithoutProperties";import s from"prop-types";import a from"classnames";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as o}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import n from"./styles.css.js";var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,i=e.split(" ");if(r>420||e.length<6||i.length<=1)return e;var t=e[0],s=i[i.length-1];return"".concat(t," ").concat(s)},l=function(t){var s=t.primaryAssetName,l=t.secondaryAssetName,d=t.isPrimaryNameVisible,p=t.coordinatesPixelWidth,c=t.primaryAssetLink,u=t.isMaximized;return e("div",{className:a(n.assetNameLabelContainer,u&&n.appMaximized),children:[l&&r(i,{title:l,children:r("div",{className:a(n.item,n.secondaryAsset),children:m(l,p)})}),d&&r(o,{href:c||"/feed",children:r("div",{className:n.item,children:m(s,p)})})]})};l.propTypes={isPrimaryNameVisible:s.bool.isRequired,primaryAssetName:s.string.isRequired,secondaryAssetName:s.string,primaryAssetLink:s.any.isRequired,coordinatesPixelWidth:s.number,isMaximized:s.bool},l.defaultProps={secondaryAssetName:"",coordinatesPixelWidth:void 0,isMaximized:!1};var d=t(l);export default d;
1
+ import"@babel/runtime/helpers/defineProperty";import{formatAssetName as e}from"../../utils/formatting.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{Tooltip as t}from"@material-ui/core";import{memo as s}from"react";import"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import o from"classnames";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as m}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import n from"./styles.css.js";var d=function(s){var a=s.primaryAssetName,d=s.secondaryAssetName,l=s.isPrimaryNameVisible,p=s.coordinatesPixelWidth,c=s.primaryAssetLink,u=s.isMaximized;return r("div",{className:o(n.assetNameLabelContainer,u&&n.appMaximized),children:[d&&i(t,{title:d,children:i("div",{"data-testid":"".concat("AssetNameLabel","_secondaryAsset"),className:o(n.item,n.secondaryAsset),children:e(d,p)})}),l&&i(m,{"data-testid":"".concat("AssetNameLabel","_primaryAsset"),href:c||"/feed",children:i("div",{className:n.item,children:e(a,p)})})]})};d.propTypes={isPrimaryNameVisible:a.bool.isRequired,primaryAssetName:a.string.isRequired,secondaryAssetName:a.string,primaryAssetLink:a.any.isRequired,coordinatesPixelWidth:a.number,isMaximized:a.bool},d.defaultProps={secondaryAssetName:"",coordinatesPixelWidth:void 0,isMaximized:!1};var l=s(d);export default l;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as o}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENT_TO_ASSET_TYPE as n,SEGMENTS as s}from"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as p,jsx as a,Fragment as m}from"react/jsx-runtime";import{withStyles as l,Dialog as d,Tabs as c,DialogTitle as u,Divider as j,DialogContent as g,Tab as A,DialogActions as f}from"@material-ui/core";import{useState as b}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as S,shape as C,string as y,bool as x}from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import P from"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import h from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import v from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import E from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import T from"./AppDetails.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import D from"../../../../AssetEditor/index.js";import L from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import k from"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function O(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?I(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):I(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var B="DC_appSettings",R=l({paper:{minWidth:"50rem",height:"40rem"}})(d),w=l({root:{marginBottom:10}})(c),F="SETTINGS",M="APP DETAILS",W="VIEW APP PAGE";function V(l){var d=l.AppSettingsComponent,c=l.app,S=l.appData,C=l.appName,y=l.currentUser,x=l.isMultiRig,I=l.isProductSubscriptionFeatureActive,V=l.layoutEnvironment,N=l.onAppRemove,q=l.onSettingsChange,H=l.segment,_=l.toggleAppSettingsDialog,U=b(F),G=i(U,2),z=G[0],K=G[1],Y=b((function(){var t;return O(O({},e(c.settings)),{},{package:c.settings.package||(null==c||null===(t=c.package)||void 0===t?void 0:t.version)})})),J=i(Y,2),Q=J[0],X=J[1],Z=b(!0),$=i(Z,2),tt=$[0],et=$[1],rt=c.id===o,it=function(e,r){return X((function(i){return O(O({},i),{},t({},e,r))}))},ot=function(t){return X((function(e){return O(O({},e),t)}))},nt=V&&"asset"===V.type,st=!(x||nt&&H===s.COMPLETION);return p(R,{open:!0,onBackdropClick:_,children:[p(u,{children:[C," settings"]}),a(j,{}),p(g,{children:[p(w,{value:z,onChange:function(t,e){return K(e)},indicatorColor:"primary",textColor:"primary",children:[a(A,{"data-testid":"".concat(B,"_settingsTab"),label:F,value:F}),a(A,{"data-testid":"".concat(B,"_appDetailsTab"),label:M,value:M}),a(A,{"data-testid":"".concat(B,"_viewAppPageTab"),label:W,value:W})]}),p(h,{ErrorView:v,app:c,children:[a(P,{open:!tt&&!Q.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return et(!0)}}),z===F&&p(m,{children:[st&&a(D,{appKey:I&&!rt?c.app_key:null,settings:Q,onSettingsChange:ot,appType:n[H],isNullable:!1,label:"Active Asset"}),d&&a(d,{app:c,appData:S,settings:Q,onSettingChange:it,onSettingsChange:ot,layoutEnvironment:V,currentUser:y}),!rt&&a(L,{appId:c.app.id,value:Q.package,onChange:function(t){return it("package",t)},currentUser:y})]}),z===M&&a(T,{appDescription:r(c,"app.description"),appSummary:r(c,"app.summary")})]})]}),p(f,{children:[N&&a(E,{appName:C,onAppRemove:N}),a(k,{"data-testid":"".concat(B,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),a(k,{"data-testid":"".concat(B,"_save"),variation:"primary",onClick:function(){Q.package||rt?(q(Q),_()):et(!1)},children:"Save"})]})]})}V.propTypes={AppSettingsComponent:S,app:C({}).isRequired,appData:C({}).isRequired,appName:y.isRequired,currentUser:C({}).isRequired,isMultiRig:x.isRequired,isProductSubscriptionFeatureActive:x,layoutEnvironment:C({}).isRequired,onAppRemove:S,onSettingsChange:S.isRequired,segment:y.isRequired,toggleAppSettingsDialog:S.isRequired},V.defaultProps={AppSettingsComponent:null,isProductSubscriptionFeatureActive:!1,onAppRemove:void 0};export default V;
1
+ import t from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as o}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENT_TO_ASSET_TYPE as n,SEGMENTS as s}from"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as p,jsx as a,Fragment as m}from"react/jsx-runtime";import{withStyles as l,Dialog as c,Tabs as d,DialogTitle as u,Divider as j,DialogContent as g,Tab as f,DialogActions as A}from"@material-ui/core";import{useState as C}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as S,shape as b,string as x,bool as y}from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{useDevCenterRouter as v}from"../../../DevCenterRouterContext/effects/useDevCenterRouter.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import h from"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import P from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import E from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import D from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import T from"./AppDetails.js";import k from"./AppSettingsDialog.module.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import L from"../../../../AssetEditor/index.js";import I from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import O from"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function R(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?B(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var w="DC_appSettings",F=l({paper:{minWidth:"50rem",height:"40rem"}})(c),M=l({root:{marginBottom:10}})(d),W="SETTINGS",V="APP DETAILS";function N(l){var c=l.AppSettingsComponent,d=l.app,S=l.appData,b=l.appName,x=l.currentUser,y=l.isMultiRig,B=l.isProductSubscriptionFeatureActive,N=l.layoutEnvironment,q=l.onAppRemove,H=l.onSettingsChange,U=l.segment,_=l.toggleAppSettingsDialog,G=C(W),z=i(G,2),K=z[0],Y=z[1],J=C((function(){var t;return R(R({},e(d.settings)),{},{package:d.settings.package||(null==d||null===(t=d.package)||void 0===t?void 0:t.version)})})),Q=i(J,2),X=Q[0],Z=Q[1],$=C(!0),tt=i($,2),et=tt[0],rt=tt[1],it=v(),ot=d.id===o,nt=function(e,r){return Z((function(i){return R(R({},i),{},t({},e,r))}))},st=function(t){return Z((function(e){return R(R({},e),t)}))},pt=N&&"asset"===N.type,at=!(y||pt&&U===s.COMPLETION);return p(F,{open:!0,onBackdropClick:_,children:[p(u,{children:[b," settings"]}),a(j,{}),p(g,{children:[p(M,{value:K,onChange:function(t,e){return Y(e)},indicatorColor:"primary",textColor:"primary",children:[a(f,{"data-testid":"".concat(w,"_settingsTab"),label:W,value:W}),a(f,{"data-testid":"".concat(w,"_appDetailsTab"),label:V,value:V}),a(O,{className:k.viewAppButton,onClick:function(){var t,e;return it.push((e=null==d||null===(t=d.app)||void 0===t?void 0:t.id,"/apps/".concat(e)))},children:"VIEW APP PAGE"})]}),p(P,{ErrorView:E,app:d,children:[a(h,{open:!et&&!X.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return rt(!0)}}),K===W&&p(m,{children:[at&&a(L,{appKey:B&&!ot?d.app_key:null,settings:X,onSettingsChange:st,appType:n[U],isNullable:!1,label:"Active Asset"}),c&&a(c,{app:d,appData:S,settings:X,onSettingChange:nt,onSettingsChange:st,layoutEnvironment:N,currentUser:x}),!ot&&a(I,{appId:d.app.id,value:X.package,onChange:function(t){return nt("package",t)},currentUser:x})]}),K===V&&a(T,{appDescription:r(d,"app.description"),appSummary:r(d,"app.summary")})]})]}),p(A,{children:[q&&a(D,{appName:b,onAppRemove:q}),a(O,{"data-testid":"".concat(w,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),a(O,{"data-testid":"".concat(w,"_save"),variation:"primary",onClick:function(){X.package||ot?(H(X),_()):rt(!1)},children:"Save"})]})]})}N.propTypes={AppSettingsComponent:S,app:b({}).isRequired,appData:b({}).isRequired,appName:x.isRequired,currentUser:b({}).isRequired,isMultiRig:y.isRequired,isProductSubscriptionFeatureActive:y,layoutEnvironment:b({}).isRequired,onAppRemove:S,onSettingsChange:S.isRequired,segment:x.isRequired,toggleAppSettingsDialog:S.isRequired},N.defaultProps={AppSettingsComponent:null,isProductSubscriptionFeatureActive:!1,onAppRemove:void 0};export default N;
@@ -0,0 +1 @@
1
+ import e from'../../../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppSettingsDialog-module_viewAppButton__2C1vx{align-self:center}");export default{viewAppButton:"AppSettingsDialog-module_viewAppButton__2C1vx"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.26.0-4",
3
+ "version": "0.26.0-8",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1 +1 @@
1
- var r=function(r){return Number.isFinite(r)||"string"==typeof r?r:"-"};export{r as orDash};
1
+ var t=function(t){return Number.isFinite(t)||"string"==typeof t?t:"-"},n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:420,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6,r=t.split(" ");if(n>e||t.length<i||r.length<=1)return t;var o=t[0],g=r[r.length-1];return"".concat(o," ").concat(g)};export{n as formatAssetName,t as orDash};