1(this["webpackJsonp@argo-digital/app"]=this["webpackJsonp@argo-digital/app"]||[]).push([[23],{1690:function(e,t,a){"use strict";var n=a(0),o=a.n(n),i=a(443);t.a=function(e){return function(t){return function(a){return o.a.createElement(i.DynamicModuleLoader,{modules:e},o.a.createElement(t,a))}}}},1814:function(e,t,a){"use strict";var n=a(8),o=a.n(n),i=o.a.shape({identifier:o.a.string,name:o.a.string,firstName:o.a.string,lastName:o.a.string,phoneNumber:o.a.string,email:o.a.string,contactType:o.a.number,location:o.a.string,facebookData:o.a.object,createdAt:o.a.string,updatedAt:o.a.string,status:o.a.number,annotation:o.a.string,whatsAppNumber:o.a.string,productName:o.a.string}),r=o.a.shape({cold:o.a.shape({id:o.a.string,leadsId:o.a.arrayOf(o.a.string)}),hot:o.a.shape({id:o.a.string,leadsId:o.a.arrayOf(o.a.string)}),quotation:o.a.shape({id:o.a.string,leadsId:o.a.arrayOf(o.a.string)}),proposal:o.a.shape({id:o.a.string,leadsId:o.a.arrayOf(o.a.string)})}),l=o.a.shape({list:o.a.arrayOf(i),columns:r,columnOrder:o.a.arrayOf(o.a.string).isRequired}),d=(o.a.shape({loadingLeads:o.a.bool,loadingNewLeads:o.a.bool,userLeads:l,newLeads:o.a.arrayOf(i),error:o.a.shape({error:o.a.string})}),o.a.arrayOf(o.a.shape({id:o.a.number,name:o.a.string,salesChannelName:o.a.string,corporateTypeName:o.a.string,menuPermissions:o.a.arrayOf(o.a.object),permissions:o.a.arrayOf(o.a.object)})));o.a.arrayOf(o.a.shape({id:o.a.number,parentId:o.a.number,name:o.a.string,claimValue:o.a.string,children:o.a.arrayOf(o.a.object),total:o.a.number})),o.a.shape({id:o.a.number,identifier:o.a.string,proposalNumber:o.a.string,name:o.a.string,email:o.a.string,identity:o.a.string,riskAnalysis:o.a.object,effectiveDate:o.a.string,validThrough:o.a.string,moderationProtocol:o.a.string,status:o.a.number,netValue:o.a.number,discount:o.a.number,message:o.a.string,paymentOptions:o.a.arrayOf(o.a.shape({type:o.a.string,totalAmount:o.a.number,installments:o.a.array}))})},1827:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,n.createElement("path",{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"}))}
1o.defaultProps={fill:"#585B5C",viewBox:"0 0 24 24",width:"20px",height:"20px"},e.exports=o,o.default=o},2160:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16",height:"16",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{d:"M15.404 7.40401H14.2067L14.7572 6.8535C14.9899 6.62079 14.9899 6.24358 14.7572 6.01068C14.5243 5.77779 14.1471 5.77779 13.9142 6.01068L12.5209 7.40401H10.3381C10.2807 7.17735 10.1914 6.9639 10.0748 6.76786L11.6181 5.22453H13.5885C13.9177 5.22453 14.1843 4.95771 14.1845 4.62854C14.1843 4.29937 13.9177 4.03255 13.5885 4.03255H12.8101L13.6568 3.18588C13.8895 2.95317 13.8895 2.57595 13.6568 2.34306C13.4239 2.11017 13.0466 2.11017 12.8138 2.34306L11.9673 3.18973V2.41128C11.9673 2.08211 11.7004 1.81547 11.3713 1.81529C11.0421 1.81547 10.7753 2.08211 10.7753 2.41128V4.38189L9.23195 5.92523C9.0361 5.8086 8.82265 5.71947 8.59581 5.66189V3.47892L9.98913 2.08559C10.2218 1.85288 10.2218 1.47567 9.98913 1.24277C9.75624 1.00988 9.37903 1.00988 9.14613 1.24277L8.59581 1.79328V0.595989C8.59581 0.266819 8.32899 0 7.99982 0C7.67065 0 7.40383 0.266819 7.40383 0.595989V1.79328L6.85332 1.24277C6.62061 1.00988 6.24339 1.00988 6.0105 1.24277C5.7776 1.47567 5.7776 1.85288 6.0105 2.08559L7.40383 3.47892V5.66189C7.17717 5.71929 6.96371 5.8086 6.76768 5.92523L5.22434 4.38189V2.41128C5.22434 2.08211 4.95752 1.81547 4.62836 1.81529C4.29919 1.81547 4.03237 2.08211 4.03237 2.41128V3.18973L3.1857 2.34306C2.95299 2.11017 2.57577 2.11017 2.34288 2.34306C2.10998 2.57595 2.10998 2.95317 2.34288 3.18588L3.18936 4.03255H2.41109C2.08193 4.03255 1.81511 4.29937 1.81511 4.62854C1.81511 4.95771 2.08193 5.22453 2.41109 5.22453H4.38134L5.92486 6.76805C5.80805 6.9639 5.71911 7.17717 5.66152 7.40401H3.47892L2.08559 6.01068C1.85288 5.77779 1.47567 5.77779 1.24277 6.01068C1.00988 6.24358 1.00988 6.62079 1.24277 6.8535L1.7931 7.40401H0.595989C0.266819 7.40401 0 7.67083 0 8C0 8.32917 0.266819 8.59599 0.595989 8.59599H1.7931L1.24277 9.1465C1.00988 9.37921 1.00988 9.75642 1.24277 9.98932C1.47567 10.2222 1.85288 10.2222 2.08559 9.98932L3.47892 8.59599H5.66189C5.71929 8.82265 5.80841 9.03592 5.92523 9.23195L4.38171 10.7755H2.41128C2.08211 10.7755 1.81529 11.0423 1.81529 11.3715C1.81529 11.7006 2.08211 11.9675 2.41128 11.9675H3.18955L2.34306 12.8141C2.11017 13.0468 2.11017 13.424 2.34306 13.6569C2.57595 13.8898 2.95317 13.8898 3.18588 13.6569L4.03255 12.8103V13.5887C4.03255 13.9179 4.29937 14.1845 4.62854 14.1847C4.95771 14.1845 5.22453 13.9179 5.22453 13.5887V11.6181L6.76786 10.0748C6.96371 10.1914 7.17717 10.2805 7.40401 10.3381V12.5211L6.01068 13.9144C5.77779 14.1471 5.77779 14.5243 6.01068 14.7572C6.24358 14.9901 6.62079 14.9901 6.8535 14.7572L7.40401 14.2067V15.404C7.40401 15.7332 7.67083 16 8 16C8.32917 16 8.59599 15.7332 8.59599 15.404V14.2067L9.14632 14.7572C9.37921 14.9901 9.75642 14.9901 9.98932 14.7572C10.222 14.5243 10.222 14.1471 9.98932 13.9144L8.59599 12.5211V10.3381C8.82265 10.2807 9.0361 10.1914 9.23214 10.0748L10.7755 11.6181V13.5885C10.7755 13.9177 11.0423 14.1843 11.3715 14.1845C11.7006 14.1843 11.9675 13.9177 11.9675 13.5885V12.8101L12.8139 13.6568C13.0468 13.8897 13.424 13.8897 13.6569 13.6568C13.8897 13.4239 13.8897 13.0466 13.6569 12.8139L12.8103 11.9673H13.5887C13.9179 11.9673 14.1845 11.7004 14.1847 11.3713C14.1845 11.0421 13.9179 10.7753 13.5887 10.7753H11.6181L10.0748 9.23195C10.1914 9.0361 10.2805 8.82265 10.3381 8.59581H12.5209L13.9142 9.98913C14.1471 10.222 14.5243 10.222 14.7572 9.98913C14.9899 9.75624 14.9899 9.37903 14.7572 9.14632L14.2067 8.59581H15.404C15.7332 8.59581 16 8.32899 16 7.99982C16 7.67065 15.7332 7.40401 15.404 7.40401Z",fill:"#DADEF2",key:1})])}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2161:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16",height:"16",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{d:"M10.9965 4.40062C10.0553 3.13418 9.08185 1.82466 8.51269 0.340069C8.43466 0.135903 8.22958 0 8 0C7.77042 0 7.56547 0.135903 7.48717 0.340069C6.91815 1.82453 5.94483 3.13405 5.00346 4.4005C3.5269 6.387 2 8.44089 2 11.1977C2 13.8621 3.85449 15.7461 6.72439 15.9977C6.93985 16.0161 7.14906 15.9121 7.25346 15.7312C7.35786 15.5506 7.33855 15.3284 7.20432 15.1662L7.07874 15.0153C6.59108 14.4309 6.00346 11.4246 6.00346 10.6667C6.00346 9.41345 7.12029 7.46071 8 6.24881C8.87997 7.46071 9.99654 9.41345 9.99654 10.6667C9.99654 11.4244 9.40918 14.4306 8.92179 15.0148L8.79581 15.1662C8.66158 15.3284 8.6424
115.5506 8.7468 15.7312C8.84295 15.898 9.02725 16 9.22514 16C9.24192 16 9.25897 15.9992 9.27575 15.9977C12.1455 15.7461 14 13.8621 14 11.1977C14 8.44115 12.4731 6.387 10.9965 4.40062Z",fill:"#D0021B",key:1})])}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2162:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,n.createElement("path",{d:"M15.7836 0.596875C15.743 0.40625 15.593 0.25625 15.4024 0.215625C14.3961 0 13.6086 0 12.8242 0C9.59924 0 7.66487 1.725 6.22112 4H2.96487C2.39612 4 1.87737 4.32188 1.62424 4.82812L0.0804911 7.91563C-0.169509 8.41562 0.192991 9 0.752366 9H3.72424C3.53987 9.4 3.35237 9.79688 3.16174 10.1781C3.06487 10.3719 3.10237 10.6031 3.25549 10.7563L5.24299 12.7437C5.39612 12.8969 5.62737 12.9344 5.82112 12.8375C6.20237 12.6469 6.59924 12.4625 6.99924 12.2781V15.25C6.99924 15.8062 7.58674 16.1688 8.08362 15.9219L11.168 14.3781C11.6774 14.125 11.9961 13.6031 11.9961 13.0375V9.775C14.2649 8.32812 15.9961 6.3875 15.9961 3.17812C15.9992 2.39062 15.9992 1.60313 15.7836 0.596875ZM12.4992 5C11.6711 5 10.9992 4.32812 10.9992 3.5C10.9992 2.67188 11.6711 2 12.4992 2C13.3274 2 13.9992 2.67188 13.9992 3.5C13.9992 4.32812 13.3274 5 12.4992 5Z",fill:"#263DC2"}))}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2174:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16",height:"16",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z",fill:"#263DC2",key:1}),n.createElement("path",{d:"M8 4V12",stroke:"white",strokeWidth:"2",strokeLinecap:"square",key:2}),n.createElement("path",{d:"M4 8H12",stroke:"white",strokeWidth:"2",strokeLinecap:"square",key:3})])}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2746:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M185.109 11.1116C185.109 12.1985 184.74 13.0316 184.002 13.611C183.264 14.1903 182.218 14.48 180.864 14.48H179.126V19.125H178.342V7.88159H181.095C183.771 7.88159 185.109 8.95824 185.109 11.1116ZM179.126 13.8032H180.672C181.938 13.8032 182.854 13.5943 183.418 13.1765C183.982 12.7586 184.264 12.0806 184.264 11.1423C184.264 10.2759 183.997 9.63373 183.464 9.21588C182.931 8.79803 182.105 8.58911 180.987 8.58911H179.126V13.8032ZM190.654 10.604C191.008 10.604 191.388 10.6399 191.793 10.7117L191.646 11.4423C191.298 11.3551 190.936 11.3115 190.562 11.3115C189.849 11.3115 189.265 11.614 188.809 12.219C188.352 12.824 188.124 13.5879 188.124 14.5107V19.125H187.363V10.7655H188.009L188.086 12.2728H188.14C188.483 11.6576 188.85 11.2256 189.239 10.977C189.629 10.7283 190.101 10.604 190.654 10.604ZM200.406 14.9337C200.406 16.2975 200.075 17.3626 199.414 18.1291C198.752 18.8956 197.84 19.2788 196.676 19.2788C195.943 19.2788 195.297 19.1019 194.738 18.7482C194.179 18.3944 193.751 17.8868 193.453 17.2255C193.156 16.5641 193.007 15.8002 193.007 14.9337C193.007 13.5699 193.338 12.5074 194 11.746C194.661 10.9847 195.568 10.604 196.722 10.604C197.87 10.604 198.771 10.9898 199.425 11.7614C200.079 12.533 200.406 13.5904 200.406 14.9337ZM193.807 14.9337C193.807 16.0822 194.06 16.9781 194.565 17.6215C195.07 18.265 195.784 18.5867 196.707 18.5867C197.629 18.5867 198.343 18.265 198.848 17.6215C199.353 16.9781 199.606 16.0822 199.606 14.9337C199.606 13.7801 199.351 12.8855 198.841 12.2498C198.331 11.614 197.614 11.2961 196.691 11.2961C195.768 11.2961 195.057 11.6127 194.557 12.2459C194.057 12.8791 193.807 13.775 193.807 14.9337Z",fill:"#525252",key:0}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.266 10.0885H107.061C108.049 10.0885 108.542 10.521 108.542 11.3859C108.574 11.7577 108.446 12.1252 108.191 12.3935C107.875 12.633 107.484 12.7469 107.092 12.7138H105.266V10.0885ZM105.266 18.8502V14.9272H107.51C108.726 14.9272 109.653 14.6168 110.292 13.9961C110.93 13.3753 111.249 12.4798 111.249 11.3095C111.249 10.1903 110.925 9.33814 110.277 8.75289C109.628 8.16763 108.676 7.875 107.42 7.875H102.5V18.8502H105.266ZM115.243 18.8503V16.1332C115.243 15.5748 115.258 15.1091 115.288 14.7363C115.299 14.4354 115.375 14.1407 115.512 13.8738C115.811 13.3757 116.35 13.1265 117.128 13.1263C117.343 13.1273 117.558 13.1425 117.771 13.1718V10.5466C117.22 10.534 116.675 10.671 116.193 10.9433C115.74 11.2426 115.38 11.6659 115.153 12.1643V10.7449H112.655V18.8503H115.243ZM122.723 12.4849C123.177 12.4675 123.608 12.6869 123.867 13.0669C124.174 13.5819 124.318 14.1809 124.278 14.7821C124.317 15.3857 124.174 15.9869 123.867 16.505C123.611 16.8888 123.178 17.1116 122.723 17.0948C122.269 17.1128 121.838 16.8894 121.586 16.505C121.284 15.9851 121.144 15.3847 121.182 14.7821C121.143 14.1819 121.283 13.5837 121.586 13.0669C121.841 12.6863 122.271 12.4663 122.723 12.4849ZM119.627 17.9724C120.001 18.3535 120.453 18.6454 120.951 18.8272C122.1 19.2243 123.346 19.2243 124.496 18.8272C124.995 18.6442 125.45 18.3525 125.827 17.9724C126.2 17.5857 126.484 17.119 126.657 16.6063C127.036 15.4261 127.036 14.1537 126.657 12.9735C126.484 12.4608 126.2 11.9941 125.827 11.6074C125.45 11.2273 124.995 10.9356 124.496 10.7526C123.927 10.5464 123.327 10.4455 122.723 10.4547C122.122 10.445 121.524 10.5459 120.958 10.7526C120.461 10.9368 120.01 11.2284 119.634 11.6074C119.262 11.9921 118.979 12.456 118.804 12.9658C118.425 14.1512 118.425 15.4284 118.803 16.614C118.977 17.1225 119.258 17.5861 119.627 17.9724ZM128.571 12.3475V15.4921C128.567 16.0323 128.592 16.5724 128.646 17.1098C128.677 17.4949 128.787 17.8692 128.968 18.2089C129.13 18.4919 129.38 18.7121 129.678 18.8348C130.076 18.982 130.497 19.0494 130.92 19.0331C131.442 19.0296 131.964 18.9735 132.475 18.8656V17.1712C132.419 17.1812 132.361 17.1864 132.303 17.1866H132.146C131.737 17.1866 131.473 17.0874 131.353 16.889C131.209 16.5665 131.147 16.212 131.174 15.8587V12.3475H132.505V10.7448H131.174V8.45496H128.573V10.7448H127.511V12.3475H128.571ZM136.304 12.691C136.568 12.4089 136.939 12.256 137.321 12.2711C137.723 12.2518 138.113 12.4107 138.391 12.7067C138.674 13.0497 138.82 13.488 138.802 13.9354H135.838C135.854 13.4792 136.017 13.0412 136.304 12.691ZM137.336 17.1863C136.388 17.1863 135.915 16.6012 135.915 15.4309H141.285C141.295 15.3524 141.3 15.2734 141.3 15.1943V14.9578C141.309 14.3152 141.213 13.6755 141.016 13.065C140.847 12.5417 140.572 12.0606 140.208 11.653C139.854 11.2679 139.419 10.9681 138.937 10.7754C138.398 10.5645 137.824 10.4609 137.246 10.4702C136.684 10.4615 136.125 10.5625 135.6 10.7677C135.124 10.9576 134.695 11.2521 134.343 11.6302C133.983 12.0257 133.708 12.4937 133.536 13.004C133.338 13.5934 133.242 14.2131 133.251 14.8358C133.242 15.4404 133.336 16.042 133.528 16.614C133.861 17.6162 134.615 18.4159 135.585 18.7967C136.114 19.0027 136.678 19.1038 137.245 19.0946C138.151 19.1297 139.045 18.8763 139.803 18.3695C140.49 17.8726 140.974 17.1368 141.164 16.3011H138.666C138.488 16.8913 138.044 17.1863 137.336 17.1863ZM146.206 17.0185C145.309 17.0185 144.86 16.2806 144.86 14.805C144.86 13.2583 145.317 12.485 146.232 12.485C146.848 12.485 147.231 12.8615 147.38 13.6145H149.99C149.958 13.1555 149.839 12.7072 149.639 12.2943C149.452 11.9116 149.191 11.5715 148.871 11.2945C148.535 11.0103 148.146 10.7975 147.728 10.6685C147.247 10.5204 146.746 10.4483 146.243 10.4548C145.669 10.4468 145.099 10.5504 144.564 10.76C144.077 10.9526 143.639 11.2524 143.279 11.6379C142.915 12.0377 142.638 12.5109 142.465 13.0268C142.268 13.6241 142.173 14.2513 142.182 14.8814C142.175 15.4683 142.268 16.0521 142.458 16.6063C142.628 17.1022 142.897 17.557 143.249 17.9419C143.596 18.3164 144.019 18.6106 144.488 18.8044C145.002 19.014 145.553 19.1178 146.108 19.1096C147.065 19.1552 148.007 18.8522 148.765 18.2549C149.463 17.6433 149.898 16.7769 149.974 15.8424H147.431C147.283 16.6267 146.874 17.0185 146.206 17.0185ZM151.531 12.3475V15.4921C151.526 16.0323 151.551 16.5724 151.605 17.1098C151.636 17.4949 151.746 17.8692 151.927 18.2089C152.089 18.4919 152.339 18.7121 152.637 18.8348C153.035 18.9821 153.457 19.0495 153.879 19.0331C154.402 19.0296 154.923 18.9735 155.435 18.8656V17.1712C155.378 17.1812 155.32
117.1864 155.262 17.1866H155.105C154.696 17.1866 154.432 17.0874 154.313 16.889C154.168 16.5665 154.107 16.212 154.133 15.8587V12.3475H155.465V10.7448H154.133V8.45496H151.532V10.7448H150.47V12.3475H151.531ZM160.415 12.4848C160.869 12.4674 161.301 12.6868 161.56 13.0669C161.867 13.5818 162.011 14.1809 161.971 14.7821C162.01 15.3857 161.866 15.9869 161.56 16.505C161.303 16.8889 160.871 17.1116 160.415 17.0947C159.961 17.1127 159.531 16.8894 159.279 16.505C158.977 15.9851 158.836 15.3847 158.875 14.7821C158.835 14.1819 158.976 13.5837 159.279 13.0669C159.534 12.6863 159.963 12.4664 160.415 12.4848ZM157.319 17.9724C157.693 18.3535 158.145 18.6454 158.643 18.8272C159.793 19.2243 161.039 19.2243 162.188 18.8272C162.688 18.6442 163.142 18.3525 163.519 17.9724C163.893 17.5857 164.176 17.119 164.349 16.6063C164.728 15.4261 164.728 14.1537 164.349 12.9735C164.176 12.4608 163.893 11.9941 163.519 11.6074C163.142 11.2273 162.688 10.9356 162.188 10.7526C161.619 10.5464 161.019 10.4455 160.416 10.4547C159.814 10.445 159.217 10.5459 158.651 10.7526C158.154 10.9368 157.702 11.2284 157.327 11.6074C156.955 11.992 156.671 12.456 156.497 12.9658C156.117 14.1512 156.117 15.4285 156.496 16.614C156.67 17.1224 156.951 17.586 157.319 17.9724ZM168.597 18.8503V16.1332C168.597 15.5748 168.612 15.1091 168.642 14.7363C168.653 14.4354 168.73 14.1408 168.867 13.8738C169.166 13.3757 169.704 13.1265 170.482 13.1263C170.697 13.1273 170.912 13.1425 171.125 13.1719V10.5466C170.574 10.534 170.029 10.6709 169.547 10.9433C169.095 11.2425 168.734 11.6658 168.508 12.1643V10.7449H166.01V18.8503H168.597Z",fill:"#263DC2",key:1}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.8485 20.1524L75.5774 11.193L80.0001 6.91919L89.2709 15.8776L84.8485 20.1524ZM75.1517 20.1524L70.729 15.8786L75.1508 11.6051L79.5752 15.8786L75.1517 20.1524ZM66.5 13.5373C66.5206 20.9883 72.5739 27.0137 80.0248 27C87.4758 26.9863 93.5068 20.9386 93.5 13.4876C93.4931 6.03662 87.451 2.84558e-05 80 0C72.534 0.0105692 66.49 6.07127 66.5 13.5373Z",fill:"#263DC2",key:2}),n.createElement("path",{d:"M1.37402 19V9.00586H2.53613V17.9473H6.94531V19H1.37402ZM11.
16416 19.1367C10.5342 19.1367 9.65918 18.7995 9.0166 18.125C8.37858 17.4505 8.05957 16.514 8.05957 15.3154C8.05957 14.1077 8.35579 13.1484 8.94824 12.4375C9.54525 11.7266 10.3451 11.3711 11.3477 11.3711C12.2865 11.3711 13.0293 11.681 13.5762 12.3008C14.123 12.916 14.3965 13.7295 14.3965 14.7412V15.459H9.23535C9.25814 16.3385 9.47917 17.0062 9.89844 17.4619C10.3223 17.9176 10.917 18.1455 11.6826 18.1455C12.4893 18.1455 13.2868 17.9769 14.0752 17.6396V18.6514C13.6742 18.8245 13.2936 18.9476 12.9336 19.0205C12.5781 19.098 12.1475 19.1367 11.6416 19.1367ZM11.334 12.3213C10.7324 12.3213 10.2516 12.5173 9.8916 12.9092C9.53613 13.3011 9.3265 13.8434 9.2627 14.5361H13.1797C13.1797 13.8206 13.0202 13.2738 12.7012 12.8955C12.3822 12.5127 11.9264 12.3213 11.334 12.3213ZM20.9453 19L20.7197 17.9336H20.665C20.2913 18.403 19.9176 18.722 19.5439 18.8906C19.1748 19.0547 18.7122 19.1367 18.1562 19.1367C17.4134 19.1367 16.8301 18.9453 16.4062 18.5625C15.987 18.1797 15.7773 17.6351 15.7773 16.9287C15.7773 15.4157 16.9873 14.6227 19.4072 14.5498L20.6787 14.5088V14.0439C20.6787 13.4561 20.5511 13.0231 20.2959 12.7451C20.0452 12.4626 19.6419 12.3213 19.0859 12.3213C18.4616 12.3213 17.7552 12.5127 16.9668 12.8955L16.6182 12.0273C16.9873 11.8268 17.3906 11.6696 17.8281 11.5557C18.2702 11.4417 18.7122 11.3848 19.1543 11.3848C20.0475 11.3848 20.7083 11.583 21.1367 11.9795C21.5697 12.376 21.7861 13.0117 21.7861 13.8867V19H20.9453ZM18.3818 18.2002C19.0882 18.2002 19.6419 18.0065 20.043 17.6191C20.4486 17.2318 20.6514 16.6895 20.6514 15.9922V15.3154L19.5166 15.3633C18.6143 15.3952 17.9626 15.5365 17.5615 15.7871C17.165 16.0332 16.9668 16.4183 16.9668 16.9424C16.9668 17.3525 17.0898 17.6647 17.3359 17.8789C17.5866 18.0931 17.9352 18.2002 18.3818 18.2002ZM29.2305 17.9951H29.1689C28.6449 18.7562 27.861 19.1367 26.8174 19.1367C25.8376 19.1367 25.0742 18.8018 24.5273 18.1318C23.985 17.4619 23.7139 16.5094 23.7139 15.2744C23.7139 14.0394 23.9873 13.0801 24.5342 12.3965C25.0811 11.7129 25.8421 11.3711 26.8174 11.3711C27.8337 11.3711 28.613 11.7402 29.1553 12.4785H29.2441L29.1963 11.9385L29.1689 11.4121V8.36328H30.3037V19H29.3809L29.2305 17.9951ZM26.9609 18.1865C27.7357 18.1865 28.2962 17.9769 28.6426 17.5576C28.9935 17.1338 29.1689 16.4525 29.1689 15.5137V15.2744C29.1689 14.2126 28.9912 13.4561 28.6357 13.0049C28.2848 12.5492 27.722 12.3213 26.9473 12.3213C26.2819 12.3213 25.7715 12.5811 25.416 13.1006C25.0651 13.6156 24.8896 14.3447 24.8896 15.2881C24.8896 16.2451 25.0651 16.9674 25.416 17.4551C25.7669 17.9427 26.2819 18.1865 26.9609 18.1865ZM37.5498 16.9561C37.5498 17.6533 37.29 18.1911 36.7705 18.5693C36.251 18.9476 35.5218 19.1367 34.583 19.1367C33.5895 19.1367 32.8148 18.9795 32.2588 18.665V17.6123C32.6188 17.7946 33.0039 17.9382 33.4141 18.043C33.8288 18.1478 34.2275 18.2002 34.6104 18.2002C35.2028 18.2002 35.6585 18.1068 35.9775 17.9199C36.2965 17.7285 36.4561 17.4391 36.4561 17.0518C36.4561 16.7601 36.3285 16.5117 36.0732 16.3066C35.8226 16.097 35.3304 15.8509 34.5967 15.5684C33.8994 15.3086 33.4027 15.083 33.1064 14.8916C32.8148 14.6956 32.596 14.4746 32.4502 14.2285C32.3089 13.9824 32.2383 13.6885 32.2383 13.3467C32.2383 12.736 32.4867 12.2552 32.9834 11.9043C33.4801 11.5488 34.1615 11.3711 35.0273 11.3711C35.834 11.3711 36.6224 11.5352 37.3926 11.8633L36.9893 12.7861C36.2373 12.4762 35.556 12.3213 34.9453 12.3213C34.4076 12.3213 34.002 12.4056 33.7285 12.5742C33.4551 12.7428 33.3184 12.9753 33.3184 13.2715C33.3184 13.472 33.3685 13.6429 33.4688 13.7842C33.5736 13.9255 33.7399 14.0599 33.9678 14.1875C34.1956 14.3151 34.6331 14.4997 35.2803 14.7412C36.1689 15.0648 36.7682 15.3906 37.0781 15.7188C37.3926 16.0469 37.5498 16.4593 37.5498 16.9561ZM46.5254 11.3848C47.5098 11.3848 48.2731 11.722 48.8154 12.3965C49.3623 13.0664 49.6357 14.0166 49.6357 15.2471C49.6357 16.4775 49.36 17.4346 48.8086 18.1182C48.2617 18.7972 47.5007 19.1367 46.5254 19.1367C46.0378 19.1367 45.5911 19.0479 45.1855 18.8701C44.7845 18.6878 44.4473 18.4098 44.1738 18.0361H44.0918L43.8525 19H43.0391V8.36328H44.1738V10.9473C44.1738 11.526 44.1556 12.0456 44.1191 12.5059H44.1738C44.7025 11.7585 45.4863 11.3848 46.5254 11.3848ZM46.3613 12.335C45.5866 12.335 45.0283 12.5583 44.6865 13.0049C44.3447 13.4469 44.1738 14.1943 44.1738 15.2471C44.1738 16.2998 44.3493 17.054 44.7002 17.5098C45.0511 17.9609 45.6139 18.1865 46.3887 18.1865C47.0859 18.1865 47.6055 17.9336 47.9473 17.4277C48.2891 16.9173 48.46 16.1859 48.46 15.2334C48.46 14.2581 48.2891 13.5312 47.9473 13.0527C47.6055 12.5742 47.0768 12.335 46.3613 12.335ZM50.4355 11.5078H51.6523L53.293 15.7803C53.653 16.7555 53.8763 17.4596 53.9629 17.8926H54.0176C54.0768 17.6602 54.1999 17.2637 54.3867 16.7031C54.5781 16.138 55.1979 14.4062 56.2461 11.5078H57.4629L54.2432 20.0391C53.9242 20.8822 53.5505 21.4792 53.1221 21.8301C52.6982 22.1855 52.1764 22.3633 51.5566 22.3633C51.2103 22.3633 50.8685 22.3245 50.5312 22.2471V21.3379C50.7819 21.3926 51.0622 21.4199 51.3721 21.4199C52.1514 21.4199 52.7074 20.9824 53.04 20.1074L53.457 19.041L50.4355 11.5078Z",fill:"#525252",key:3})])}o.defaultProps={width:"202",height:"27",viewBox:"0 0 202 27",fill:"none"},e.exports=o,o.default=o},2747:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"36",height:"36",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{d:"M18 20C21.866 20 25 16.866 25 13C25 9.13401 21.866 6 18 6C14.134 6 11 9.13401 11 13C11 16.866 14.134 20 18 20Z",stroke:"white",strokeWidth:"2",key:1}),n.createElement("path",{d:"M32 34C32 26.268 25.732 20 18 20C10.268 20 4 26.268 4 34",stroke:"white",strokeWidth:"2",key:2}),n.createElement("path",{d:"M30 2V10",stroke:"white",strokeWidth:"2",strokeLinecap:"square",key:3}),n.createElement("path",{d:"M26 6H34",stroke:"white",strokeWidth:"2",strokeLinecap:"square",key:4})])}o.defaultProps={width:"36",height:"36",viewBox:"0 0 36 36",fill:"none"},e.exports=o,o.default=o},2748:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16",height:"16",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15Z",stroke:"#DADEF2",strokeWidth:"2",key:1}),n.createElement("path",{d:"M8 4V8H10",stroke:"#DADEF2",strokeWidth:"2",strokeLinecap:"square",key:2})])}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2749:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16",height:"16",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{d:"M2.3125 15C2.00481 15 1.74126 14.7868 1.67305 14.4913L1.01688 11.6475C0.945471 11.3381 1.1059 11.0219 1.39782 10.8968L4.46025 9.58433C4.729 9.46916 5.04152 9.54567 5.22667 9.77197L6.5828 11.4295C8.72411 10.4248 10.4458 8.6794 11.4295 6.5828L9.77197 5.22667C9.54569 5.04151 9.46917 4.729 9.58433 4.46025L10.8968 1.39782C11.0219 1.1059 11.3381 0.945471 11.6476 1.01688L14.4914 1.67305C14.7891 1.7417 15.0001 2.00683 15.0001 2.31242C15.0001 9.32524 9.31496 15 2.3125 15Z",fill:"#525252",key:1})])}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2750:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16",height:"16",fill:"black",fillOpacity:"0",key:0}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.40491 5.20337C2.13611 5.71548 2.59363 6.03586 5.99268 8.23843C6.06982 8.28867 6.15979 8.35077 6.25891 8.41928C6.7511 8.75919 7.47192 9.25705 8 9.24997C8.52759 9.25729 9.24902 8.75912 9.74097 8.41934C9.84033 8.35077 9.93018 8.28867 10.0073 8.23846C13.406 6.03616 13.863 5.716 14.5946 5.20367C14.717 5.11795 14.8472 5.02682 15 4.92059V3.9375C15 3.41974 14.5299 3 13.95 3H2.0500
15C1.47009 3 1 3.41974 1 3.9375V4.92059C1.15271 5.02667 1.28259 5.11771 1.40491 5.20337ZM15 12.0625V6.50684C14.3893 6.92844 13.542 7.49255 10.8314 9.24899C10.7454 9.30508 10.6498 9.371 10.5458 9.44278C9.92639 9.87009 9.00696 10.5044 7.99988 10.5C6.99768 10.5045 6.08887 9.87906 5.45959 9.44598C5.35486 9.37393 5.25793 9.30719 5.16956 9.24957C2.45813 7.49261 1.61072 6.92847 1 6.50684V12.0625C1 12.5803 1.47009 13 2.05005 13H13.95C14.5299 13 15 12.5803 15 12.0625Z",fill:"#525252",key:1})])}o.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=o,o.default=o},2790:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,[n.createElement("rect",{width:"16.4117",height:"16",fill:"black",fillOpacity:"0",transform:"translate(0.588257)",key:0}),n.createElement("path",{d:"M9.48374 12.3917L8.99995 12.1243L8.51616 12.3917L5.37417 14.1285L5.98691 10.3721L6.06816 9.87403L5.71571 9.51279L3.07479 6.80605L6.67885 6.2554L7.20633 6.17481L7.43306 5.69177L8.99995 2.35351L10.5668 5.69177L10.7936 6.17481L11.3211 6.2554L14.9251 6.80605L12.2842 9.51279L11.9317 9.87403L12.013 10.3721L12.6257 14.1285L9.48374 12.3917Z",stroke:"#263DC2",strokeWidth:"2",key:1})])}o.defaultProps={width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e.exports=o,o.default=o},2791:function(e,t,a){var n=a(0);function o(e){return n.createElement("svg",e,n.createElement("g",{stroke:"#525252",strokeWidth:"2"},[n.createElement("path",{d:"m27 10h2c1.9998 0 3.9997 2.0658 4 4v15c0 1.9345-2.0006 3.9997-4 3.9997h-15c-1.9994 0-4-2.0655-4-3.9997v-15c0-1.9342 2.0006-4 4-4zm0 0v-2",key:0}),n.createElement("path",{d:"m27 7.99982c0-1.99943-2.0658-4-4-4h-15c-1.9342 0-3.99967 2.000
157-3.99967 4v14.99998c0 1.9994 2.06514 4 3.99967 4h2",key:1})]))}o.defaultProps={fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},e.exports=o,o.default=o},495:function(e,t,a){"use strict";a.r(t);var n=a(14),o=a(3),i=a(16),r=a(81),l=a(90),d=a(84),c=a(83),s=a(0),u=a.n(s),p=a(31),m=a(201),f=a(59),g=a(4),C=(a(1814),a(410)),h=a.n(C),y=a(30),b=a(293),v=a.n(b),E=a(32),w=a(2068),L=a(198),x=a.n(L),k=a(2746),O=a.n(k),I=a(86),j=function(e,t){var a=Object(n.a)(e);return t.forEach((function(e,t){a=function(e,t,a){return e.map((function(e){var n=Object(o.a)({},e);return n.identifier===t&&(n.position=a+1),n}))}(a,e,t)})),a},_=u.a.createContext({onSelectLead:function(){},searchCardName:"",onCheckTodo:function(){}}),N=_.Consumer,D=_.Provider,H=_,V=a(202),T=a(445),z=a(9),M=a(2747),B=a.n(M),S=u.a.createContext({lead:{},isKanban:!1,onGetNewLead:function(){}}),A=S.Consumer,F=S.Provider,P=S,q=g.default.div.withConfig({displayName:"LeadCardOverlay__LeadOverlay",componentId:"sc-1qn4nb-0"})(["background:linear-gradient(21.88deg,rgba(0,0,0,5e-5) 0%,rgba(0,0,0,0.5) 100%),#e9256a;border-radius:6px;box-shadow:0 8px 8px rgba(38,61,194,0.4);box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;height:100%;mix-blend-mode:normal;padding:0 1.675rem;position:absolute;opacity:0;top:0;transition:opacity 0.15s ease;left:0;width:100%;svg{width:40px;height:40px;}"]),Z=g.default.div.withConfig({displayName:"LeadCardOverlay__OverlayText",componentId:"sc-1qn4nb-1"})(["color:",";margin-left:1.345em;h5{color:",";text-transform:none;font-size:1em;font-weight:",";line-height:1.4;text-align:left;margin:0;padding:0;}p{font-size:1em;line-height:1.4;text-align:left;margin-top:5px;}"],(function(e){return e.theme.color.white}),(function(e){return e.theme.color.white}),(function(e){return e.theme.font.bold})),W=function(e){var t=e.lead,a=Object(z.a)(e,["lead"]);return(u.a.createElement(A,null,(function(e){var n=e.onGetNewLead;return(u.a.createElement(q,Object.assign({onClick:function(){return n(t)}},a),u.a.createElement(B.a,null),u.a.createElement(Z,null,u.a.createElement("h5",null,"Assumir esse Lead"),u.a.createElement("p",null,"Clique para colocar esse lead em seu funil de vendas."))))})))},R=a(2748),G=a.n(R),Q=a(2160),K=a.n(Q),U=a(2161),Y=a.n(U),J=a(2162),X=a.n(J),$=a(103),ee=function(){var e=Object(s.useContext)(P),t=e.isKanban,a=e.lead,n=a.campaignId||a.affinityGroupId||a.affinityGroupConditionId,o=u.a.createElement("span",null,a.campaignName&&"Campanha: ".concat(a.campaignName),a.affinityGroupName&&"Grupo de Afinidade: ".concat(a.affinityGroupName),a.affinityGroupConditionName&&"Grupo de Afinidade: ".concat(a.affinityGroupConditionName));return t?u.a.createElement(s.Fragment,null,n?u.a.createElement(E.gb,{content:o},u.a.createElement(X.a,null)):null,u.a.createElement(E.gb,{content:u.a.createElement("span",null,"\xdaltima atualiza\xe7\xe3o de status: ".concat(Object($.h)(a.statusChangedAt)))},u.a.createElement(G.a,null))):u.a.createElement(s.Fragment,null,n?u.a.createElement(E.gb,{content:o},u.a.createElement(X.a,null)):null,1===a.status?u.a.createElement(K.a,null):u.a.createElement(Y.a,null))},te=a(2749),ae=a.n(te),ne=a(1827),oe=a.n(ne),ie=a(2750),re=a.n(ie),le=a(147),de=g.default.div.withConfig({displayName:"SimulationInfo__ContactType",componentId:"sc-32skcc-0"})(["svg{margin-right:10px;}"]),ce=g.default.div.withConfig({displayName:"SimulationInfo__Location",componentId:"sc-32skcc-1"})([""]),se=Object(g.default)((function(e){return u.a.createElement(de,e)})).withConfig({displayName:"SimulationInfo__QuotationValue",componentId:"sc-32skcc-2"})(["h6{font-size:0.675rem;line-height:1rem;text-transform:uppercase;font-weight:",";}"],(function(e){return e.theme.font.regular})),ue=g.default.div.withConfig({displayName:"SimulationInfo__Value",componentId:"sc-32skcc-3"})(["font-size:0.8rem;color:",";font-weight:",";"],(function(e){return e.theme.color.argoNavy}),(function(e){return e.theme.font.semiBold})),pe=Object(g.default)(re.a).withConfig({displayName:"SimulationInfo__ContactIcon",componentId:"sc-32skcc-4"})(["path{fill:",";}"],(function(e){return e.favorite})),me=g.default.div.withConfig({displayName:"SimulationInfo__LeadDetails",componentId:"sc-32skcc-5"})(["display:flex;justify-content:space-between;margin-top:12px;"]),fe=function(e,t){return e===t?"#E9256A":"#525252"};var ge=function(){var e=Object(s.useContext)(P),t=e.isKanban,a=e.lead;return t?u.a.createElement(me,null,u.a.createElement(de,null,u.a.createElement(pe,{favorite:fe(a.contactType,1)}),a.phoneNumber&&u.a.createElement(pe,{as:ae.a,favorite:fe(a.contactType,2)}),a.whatsAppNumber&&u.a.createElement(pe,{as:oe.a,favorite:fe(a.contactType,3)})),u.a.createElement(ce,null,a.location)):u.a.createElement(me,null,u.a.createElement(se,null,u.a.createElement("h6",null,a.quickQuote&&"Valor da cota\xe7\xe3o"),u.a.createElement(ue,null,a.quickQuote?"".concat(Object(le.b)(a.quickQuote.totalAmount)):"")),u.a.createElement(ce,null,a.location))},Ce=g.default.div.withConfig({displayName:"LeadCard__LeadWrapper",componentId:"z5f1pg-0"})(["background-color:#fff;border-radius:6px;box-sizing:border-box;box-shadow:0 2px 5px 0 hsla(0,0%,0%,0.2);color:#525252;cursor:pointer;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:400;min-height:106px;margin-bottom:10px;padding:15px;position:relative;overflow:hidden;width:",";&:hover{.lead-overlay{opacity:0.94;}}"],(function(e){return e.width}
1)),he=g.default.div.withConfig({displayName:"LeadCard__LeadInfo",componentId:"z5f1pg-1"})(["display:flex;flex-flow:column nowrap;margin:0;padding:0;min-height:80%;"]),ye=g.default.div.withConfig({displayName:"LeadCard__Header",componentId:"z5f1pg-2"})(["color:#e9256a;font-size:14px;font-weight:700;display:flex;max-height:20px;justify-content:space-between;overflow:hidden;p{width:80%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}"]),be=g.default.div.withConfig({displayName:"LeadCard__Product",componentId:"z5f1pg-3"})([""]),ve=g.default.div.withConfig({displayName:"LeadCard__LeadTask",componentId:"z5f1pg-4"})(["border-top:1px solid #c7cadb;margin-top:0.8rem;padding-top:0.8rem;label{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.8rem;}"]),Ee=function(e){var t=e.lead,a=e.isKanban,n=Object(s.useContext)(H),o=n.onSelectLead,i=n.onCheckTodo;return u.a.createElement(F,{value:e},u.a.createElement(Ce,{width:a?"100%":"265px"},u.a.createElement(he,{onClick:function(){return o(t)}},u.a.createElement(ye,null,u.a.createElement("p",null,t.name),u.a.createElement(ee,null)),u.a.createElement(be,null,t.productName),u.a.createElement(ge,null)),a?t.nextTask&&u.a.createElement(ve,null,u.a.createElement(E.f,{key:t.nextTask.id,id:t.nextTask.id,name:t.nextTask.id,label:t.nextTask.description,onChange:i,checked:t.nextTask.done,noMargin:!0})):u.a.createElement(W,{className:"lead-overlay",lead:t})))};Ee.defaultProps={isKanban:!1};var we=Ee,Le=g.default.div.withConfig({displayName:"LeadDraggable__LeadKanbanWrapper",componentId:"sc-1i3wl21-0"})(["box-shadow:",";margin-bottom:0;padding:0;transform:",";width:100%;"],(function(e){return e.isDragging?"-8px 8px 2px 0 rgba(0, 0, 0, 0.06)":"none"}),(function(e){var t=e.isDragging,a=e.translateValue;return t?"".concat(a," rotate(-5deg) !important"):"rotate(0deg)"})),xe=function(e){var t=e.index,a=e.lead,n=a.identifier;return u.a.createElement(w.b,{draggableId:n,index:t},(function(e,t){return u.a.createElement(Le,Object.assign({},e.draggableProps,e.dragHandleProps,{ref:e.innerRef,isDragging:t.isDragging,translateValue:e.draggableProps.style.transform}),u.a.createElement(we,{lead:a,isKanban:!0}))}))},ke=g.default.div.withConfig({displayName:"LeadsColumn__Column",componentId:"sc-1ag0k0z-0"})(["margin:12px 15px;width:280px;display:flex;flex-direction:column;overflow:hidden;"]),Oe=g.default.h3.withConfig({displayName:"LeadsColumn__Title",componentId:"sc-1ag0k0z-1"})(["color:#003c69;font-family:'Open Sans',sans-serif;font-size:16px;font-weight:700;text-align:center;margin-bottom:12px;"]),Ie=g.default.div.withConfig({displayName:"LeadsColumn__LeadsWrapper",componentId:"sc-1ag0k0z-2"})(["background-color:",";border-radius:6px;flex-grow:1;height:570px;padding:8px;position:relative;transition:background-color 0.2s ease;.custom-scrollbar{height:100%;z-index:1;}"],(function(e){return e.isDraggingOver?"rgba(38, 61, 194, 0.1)":"rgba(218, 222, 242, 0.3)"})),je=g.default.div.withConfig({displayName:"LeadsColumn__BorderBottom",componentId:"sc-1ag0k0z-3"})(["width:100%;height:49px;position:absolute;bottom:0;left:0;background-image:linear-gradient(180deg,rgba(238,240,249,0) 0%,#eef0f9 100%);z-index:1;"]),_e=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){return Object(r.a)(this,a),t.apply(this,arguments)}return Object(l.a)(a,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.leads;return e.leads!==t}},{key:"render",value:function(){var e=this.props.leads;return(u.a.createElement(N,null,(function(t){var a=t.searchCardName;return(u.a.createElement(T.a,{className:"custom-scrollbar"},e.map((function(e,t){return e&&e.name.match(new RegExp(a,"i"))?u.a.createElement(xe,{key:e.identifier,lead:e,index:t}):null}))))})))}}]),a}(s.Component),Ne=function(e){var t=e.column,a=e.leads;return(u.a.createElement(s.Fragment,null,u.a.createElement(ke,null,u.a.createElement(Oe,null,u.a.createElement(V.b,{id:"leads.kanban.columns.".concat(t.id)})," (",a.length,")"),u.a.createElement(w.c,{droppableId:t.id},(function(e,t){return u.a.createElement(Ie,Object.assign({ref:e.innerRef},e.droppableProps,{isDraggingOver:t.isDraggingOver}),u.a.createElement(_e,{leads:a}),e.placeholder,u.a.createElement(je,null))})))))},De=g.default.div.withConfig({displayName:"DrawerTab__Wrapper",componentId:"sc-1xi27g9-0"})(["cursor:",";height:","px;position:absolute;overflow:hidden;top:50%;transform:translateY(-50%);width:","px;z-index:",";",";"],(function(e){return e.onClick?"pointer":"auto"}),226,96,(function(e){return e.zIndex}),(function(e){return"left"===e.position?"left: 0;":"right: 0;"})),He=g.default.div.withConfig({displayName:"DrawerTab__ToggleDrawer",componentId:"sc-1xi27g9-1"})(["position:relative;width:100%;height:100%;"]),Ve=g.default.div.withConfig({displayName:"DrawerTab__DrawerButton",componentId:"sc-1xi27g9-2"})(["background:",";border-radius:50%;box-shadow:0 0 8px rgba(0,0,0,0.18);height:100%;position:absolute;top:0;transform:translateX(",");width:","px;",";"],(function(e){var t=e.secondary,a=e.theme;return t?a.color.white:a.color.argoNavy}),(function(e){return"left"===e.position?"-55%":"55%"}),192,(function(e){return"left"===e.position?"left: 0;":"right: 0;"})),Te=g.default.span.withConfig({displayName:"DrawerTab__ButtonText",componentId:"sc-1xi27g9-3"})(["color:",";display:flex;flex-direction:column;align-items:",";font-size:12px;padding:0 10px;position:absolute;top:50%;transform:translateY(-50%);width:100%;text-align:",";strong{font-size:16px;display:block;}",";"],(function(e){var t=e.secondary,a=e.theme;return t?a.color.grey:a.color.white}),(function(e){return"left"===e.position?"flex-start":"flex-end"}),(function(e){return"left"===e.position?"left":"right"}),(function(e){return"left"===e.position?"left: 0":"right: 0"})),ze=function(e){var t=e.position,a=e.secondary,n=e.children,o=e.onClick,i=e.zIndex,r=Object(z.a)(e,["position","secondary","children","onClick","zIndex"]);return(u.a.createElement(De,Object.assign({onClick:o,position:t,zIndex:i},r),u.a.createElement(He,null,u.a.createElement(Ve,{position:t,secondary:a,"data-droppable":!0}),u.a.createElement(Te,{position:t,secondary:a},n))))};ze.defaultProps={onClick:null,position:"left",secondary:!1,children:null,zIndex:0};var Me=ze,Be=a(68),Se=a(409),Ae=a.n(Se),Fe=g.default.div.withConfig({displayName:"OverlayLeads__OverlayLeadsWrapper",componentId:"sc-1xwdc1m-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;width:100%;height:100%;position:absolute;
1left:0;bottom:0;"]),Pe=Object(g.default)(Be.animated.div).withConfig({displayName:"OverlayLeads__TextWrapper",componentId:"sc-1xwdc1m-1"})(["z-index:4;p{color:",";}> p{color:",";margin-top:20px;svg{vertical-align:middle;}}"],(function(e){return e.theme.color.grey}),(function(e){return e.theme.color.grey})),qe=function(e){return u.a.createElement(Fe,null,u.a.createElement(Be.Transition,{native:!0,from:{opacity:0},enter:{opacity:1},leave:{opacity:0}},(function(){return e.isOpen&&function(e){return u.a.createElement(Pe,{style:e},u.a.createElement(E.bb,{align:"center",spacing:"tight"},u.a.createElement(E.p,{color:"#E9256A"},"Seu Funil de Vendas est\xe1 vazio"),u.a.createElement("p",null,"Capture leads dispon\xedveis de nossa loja")),u.a.createElement("p",null,u.a.createElement(Ae.a,null)," Clique na aba"))}})),u.a.createElement(E.I,Object.assign({color:"#fff",opacity:.9,zIndex:2},e)))};qe.defaultProps={isOpen:!1};var Ze=qe,We=g.default.div.withConfig({displayName:"LeadsTable__Wrapper",componentId:"dxm3rg-0"})(["display:flex;margin-top:25px;height:70vh;max-width:85vw;overflow:hidden;"]),Re=Object(g.default)((function(e){return u.a.createElement(We,e)})).withConfig({displayName:"LeadsTable__Loader",componentId:"dxm3rg-1"})(["justify-content:center;align-items:center;width:85vw;margin-top:116px;flex-direction:column;svg{height:100%;width:1240px;}"]),Ge=Object(g.default)((function(e){return u.a.createElement(x.a,e)})).withConfig({displayName:"LeadsTable__CheckIcon",componentId:"dxm3rg-2"})(["margin-top:8px;"]),Qe=g.default.div.withConfig({displayName:"LeadsTable__ConvertedLeads",componentId:"dxm3rg-3"})(["height:226px;position:absolute;overflow:hidden;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:96px;z-index:3;right:0;transition:background-color 0.2s ease;div[data-droppable]{background-color:",";}"],(function(e){var t=e.isDraggingOver;return e.isDraggingCard?"rgba(218,222,242,0.3)":t?"rgba(38, 61, 194, 0.1)":"#fff"})),Ke=g.default.div.withConfig({displayName:"LeadsTable__LeadsByWrapper",componentId:"dxm3rg-4"})(["position:absolute;top:2%;right:2%;"]),Ue=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,l=new Array(n),d=0;d<n;d++)l[d]=arguments[d];return(e=t.call.apply(t,[this].concat(l))).onSelectLead=function(t){e.props.onSelectLead(t)},e.onCheck=function(t,a,n){var o={id:a,description:n,done:t};e.props.onCheckLeadCard(o)},e.state={onSelectLead:e.onSelectLead,onCheckTodo:e.onCheck,searchCardName:"",isDragging:""},e.onSearchCardName=function(t){e.setState({searchCardName:t.target.value})},e.onDragStart=function(){e.setState({isDragging:!0})},e.onDragEnd=function(t){var a;e.setState({isDragging:!1});var n=Object(o.a)({},e.props.leads),r=n.columns,l=n.columnOrder,d=t.destination,c=t.source,s=t.draggableId;if(d&&(d.droppableId!==c.droppableId||d.index!==c.index)){var u=r[c.droppableId],p=r[d.droppableId];if(u.id!==p.id){var m=Array.from(u.leadsId);m.splice(c.index,1);var f=Object(o.a)(Object(o.a)({},u),{},{leadsId:m}),g=Array.from(p.leadsId);g.splice(d.index,0,s);var C=Object(o.a)(Object(o.a)({},p),{},{leadsId:g}),h=n.list.reduce((function(e,t){var a=Object(o.a)({},t);return a.identifier===s&&a.status&&(a.status=l.indexOf(d.droppableId)+1||5),e.push(a),e}),[]);h=j(h,f.leadsId),h=j(h,C.leadsId);var y=Object(o.a)(Object(o.a)({},n),{},{list:h,columns:Object(o.a)(Object(o.a)({},r),{},(a={},Object(i.a)(a,f.id,f),Object(i.a)(a,C.id,C),a))});e.props.onChangePosition(y,n)}else{var b=Array.from(u.leadsId);b.splice(c.index,1),b.splice(d.index,0,s);var v=Object(o.a)(Object(o.a)({},u),{},{leadsId:b}),E=j(n.list,b),w=Object(o.a)(Object(o.a)({},n),{},{list:E,columns:Object(o.a)(Object(o.a)({},r),{},Object(i.a)({},v.id,v))});e.props.onChangePosition(w,n)}}},e.renderLoader=function(){return u.a.createElement(Re,null,u.a.createElement(I.a,{height:600,width:1240,speed:2,primaryColor:"#f3f3f3",secondaryColor:"#ecebeb"},u.a.createElement("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"280",height:"100%"}),u.a.createElement("rect",{x:"310",y:"0",rx:"0",ry:"0",width:"280",height:"100%"}),u.a.createElement("rect",{x:"620",y:"0",rx:"0",ry:"0",width:"280",height:"100%"}),u.a.createElement("rect",{x:"930",y:"00",rx:"0",ry:"0",width:"280",height:"100%"})))},e}return Object(l.a)(a,[{key:"render",value:function(){var e=this.props,t=e.leads,a=e.loading,n=this.state,o=n.searchCardName,i=n.isDragging;return a?this.renderLoader():u.a.createElement(D,{value:this.state},u.a.createElement(Ze,{isOpen:!t.list.length}),u.a.createElement(E.R,{value:o,onChange:this.onSearchCardName,placeholder:"Busque pelo nome do lead"}),u.a.createElement(Ke,null,u.a.createElement(O.a,null)),u.a.createElement(w.a,{onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},u.a.createElement(We,null,t.columnOrder.map((function(e){var a=t.columns[e],n=a.leadsId.map((function(e){return t.list.find((function(t){return t.identifier===e}))}));return u.a.createElement(Ne,{key:a.id,column:a,leads:n})})),u.a.createElement(w.c,{droppableId:"converted"},(function(e,a){return u.a.createElement(Qe,Object.assign({ref:e.innerRef,isDraggingOver:a.isDraggingOver,isDraggingCard:i},e.droppableProps),e.placeholder,u.a.createElement(Me,{secondary:!0,position:"right"},u.a.createElement("strong",null,t.columns.converted.leadsId.length),"Leads Convert
1idos",u.a.createElement(Ge,null)))})))))}}]),a}(u.a.Component),Ye=Object(g.default)(Be.animated.div).withConfig({displayName:"Drawer__DrawerWrapper",componentId:"sc-9nv2q5-0"})(["background:#fff;border:1px solid #dadef2;box-sizing:border-box;height:100%;max-height:calc(100vh - ",");margin:0;padding:2.35rem 2rem;position:absolute;overflow-x:hidden;overflow-y:auto;top:0;z-index:99;left:",";right:",";"],(function(e){return e.theme.configs.menuHeight}),(function(e){return"right"===e.position?"auto":0}),(function(e){return"right"===e.position?0:"auto"})),Je=Be.Keyframes.Spring({open:{to:{x:0},config:Be.config.default},close:{to:{x:100},config:Be.config.gentle}});function Xe(e){var t=e.children,a=e.isOpen,n=e.position;return(u.a.createElement(Je,{native:!0,state:a?"open":"close"},(function(e){var a=e.x;return(u.a.createElement(Ye,{position:n,style:{transform:a.interpolate((function(e){return"translate3d(".concat("right"===n?e:-e,"%,0,0)")}))}},t))})))}Xe.defaultProps={isOpen:!1,position:"left",children:null};var $e=Xe,et=a(200),tt=a.n(et),at=a(640),nt=a.n(at),ot=function(e){return u.a.createElement(I.a,Object.assign({he
1ight:142,width:550,speed:2,primaryColor:"#f3f3f3",secondaryColor:"#ecebeb"},e),u.a.createElement("rect",{x:"5",y:"8.2",rx:"0",ry:"0",width:"265",height:"123"}),u.a.createElement("rect",{x:"280",y:"6.2",rx:"0",ry:"0",width:"265",height:"123"}))},it=g.default.div.withConfig({displayName:"LeadsBag__LeadsBagWrapper",componentId:"sc-11xtmnh-0"})(["height:100%;width:550px;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;"]),rt=g.default.header.withConfig({displayName:"LeadsBag__Header",componentId:"sc-11xtmnh-1"})(["display:flex;justify-content:space-between;align-items:center;width:100%;flex-flow:row wrap;color:",";p{font-size:0.85rem;max-width:400px;line-height:1.4;}"],(function(e){return e.theme.color.grey})),lt=g.default.div.withConfig({displayName:"LeadsBag__ScrollList",componentId:"sc-11xtmnh-2"})(["height:80%;overflow:hidden;width:100%;margin-bottom:30px;> .custom-scrollbar{height:100%;z-index:1;}"]),dt=g.default.div.withConfig({displayName:"LeadsBag__LeadsWrapper",componentId:"sc-11xtmnh-3"})(["display:flex;flex-direction:column;margin-bottom:1rem;width:100%;"]),ct=g.default.header.withConfig({displayName:"LeadsBag__LeadsHeader",componentId:"sc-11xtmnh-4"})(["font-size:0.9rem;letter-spacing:0.5px;width:100%;display:flex;justify-content:space-between;align-items:center;flex-direction:row;line-height:1.4;&:before,&:after{content:'';border-top:",";width:210px;}"],(function(e){var t=e.theme;return"1px solid ".concat(t.color.silverSky)})),st=g.default.ul.withConfig({displayName:"LeadsBag__LeadsList",componentId:"sc-11xtmnh-5"})(["list-style:none;padding:15px 2px;margin:0;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;min-height:140px;> svg{height:140px;}"]),ut=g.default.li.withConfig({displayName:"LeadsBag__Lead",componentId:"sc-11xtmnh-6"})(["margin:0;padding:0;"]),pt=Object(g.default)((function(e){return u.a.createElement(tt.a,e)})).withConfig({displayName:"LeadsBag__CloseIcon",componentId:"sc-11xtmnh-7"})(["cursor:pointer;"]),mt=g.default.footer.withConfig({displayName:"LeadsBag__Footer",componentId:"sc-11xtmnh-8"})(["font-size:0.85rem;line-height:1.4;width:100%;"]),ft=Object(g.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),gt=g.default.div.withConfig({displayName:"LeadsBag__RefreshLabel",componentId:"sc-11xtmnh-9"})(["color:#e9256a;font-size:",";font-weight:700;max-height:20px;justify-content:space-between;overflow:hidden;padding-left:6px;p{width:80%;text-overflow:ellipsis;overflow-x:hidden;}"],(function(e){return e.theme.helpers.fontSize(14)})),Ct=g.default.div.withConfig({displayName:"LeadsBag__RefreshButtonWrapper",componentId:"sc-11xtmnh-10"})(["display:flex;align-items:center;margin-top:16px;margin-bottom:13px;cursor:",";pointer-events:",";opacity:",";"],(function(e){return e.loading?"not-allowed":"pointer"}),(function(e){return e.loading?"none":"auto"}),(function(e){return e.loading?.5:1})),ht=Object(g.default)(nt.a).withConfig({displayName:"LeadsBag__RefreshSpinning",componentId:"sc-11xtmnh-11"})(["animation:"," 2s linear infinite;"],ft),yt=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onGetNewLead=function(t){e.props.onGetNewLead(t)},e.renderLeads=function(t,a){return e.props.loading?u.a.createElement(ot,null):t.map((function(t){return t.status===a&&u.a.createElement(ut,{key:t.identifier},u.a.createElement(we,{lead:t,onGetNewLead:e.onGetNewLead}))}))},e}return Object(l.a)(a,[{key:"render",value:function(){var e=this.props,t=e.onClose,a=e.leads,n=e.refreshLeads,o=e.loading;return(u.a.createElement(it,null,u.a.createElement(rt,null,u.a.createElement("p",null,"Aqui est\xe3o oportunidades identificadas pelo sistema ",u.a.createElement("strong",null,"Protector Pro"),". Voc\xea precisa assumir um lead para visualizar os detalhes de contato."),u.a.createElement(pt,{onClick:t}),u.a.createElement(Ct,{onClick:function(){return n()},loading:o},o?u.a.createElement(ht,null):u.a.createElement(nt.a,null),u.a.createElement(gt,null,"Atualizar Leads"))),u.a.createElement(lt,null,u.a.createElement(T.a,{className:"custom-scrollbar"},u.a.createElement(dt,null,u.a.createElement(ct,null,"Leads Quentes"),u.a.createElement(st,null,this.renderLeads(a,2))),u.a.createElement(dt,null,u.a.createElement(ct,null,"Leads Frios"),u.a.createElement(st,null,this.renderLeads(a,1))))),u.a.createElement(mt,null,"Sem mais resultados, nossos leads s\xe3o capturados em tempo real ent\xe3o por isso aconselhamos os Corretores Protector a checar este painel com frequ\xeancia.")))}}]),a}(u.a.Component),bt=a(339),vt=a.n(bt),Et=a(2790),wt=a.n(Et),Lt=a(1778),xt=a.n(Lt),kt=a(2791),Ot=a.n(kt),It=a(623),jt=a.n(It),_t=g.default.div.withConfig({displayName:"Field__FieldWrapper",componentId:"sc-1ocgdgy-0"})(["box-sizing:content-box;padding:0.5rem 2rem;width:100%;margin:0 -2rem;transition:background-color 0.15s linear;display:flex;justify-content:space-between;align-items:center;flex-direction:row;font-size:0.8rem;fieldset{margin:0;}&:first-child{padding-top:0;}&:last-child{margin-bottom:0;}&:hover{background-color:",";.editable{opacity:1;pointer-events:auto;}}"],(function(e){var t=e.theme;return e.canEdit?t.color.silverSky:"transparent"})),Nt=g.default.div.withConfig({displayName:"Field__FieldDetail",componentId:"sc-1ocgdgy-1"}
1)([""]),Dt=g.default.label.withConfig({displayName:"Field__Label",componentId:"sc-1ocgdgy-2"})(["color:",";font-size:12px;text-transform:uppercase;margin-bottom:5px;svg{margin-left:6px;vertical-align:sub;}"],(function(e){return e.theme.color.argoNavy})),Ht=g.default.p.withConfig({displayName:"Field__Text",componentId:"sc-1ocgdgy-3"})(["color:",";font-weight:",";font-size:14px;margin:0;"],(function(e){var t=e.theme;return e.favorite?t.color.protectorBlue:t.color.grey}),(function(e){return e.theme.font.semiBold})),Vt=g.default.div.withConfig({displayName:"Field__Editable",componentId:"sc-1ocgdgy-4"})(["opacity:0;pointer-events:none;transition:opacity 0.15s linear;svg{cursor:pointer;&:first-child{margin-right:10px;}}"]),Tt=g.default.div.withConfig({displayName:"Field__Options",componentId:"sc-1ocgdgy-5"})(["svg{cursor:pointer;height:24px;width:24px;&:first-child{margin-right:15px;height:26px;width:26px;}}"]),zt=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={leadId:e.props.lead.identifier,value:e.props.value,isEditing:!1},e.onChangeField=function(t){e.setState({value:t.target.value})},e.onConfirm=function(){var t=e.props.field;e.setState({isEditing:!1}),e.props.onConfirm(t.info,e.state.value)},e.onKeyDown=function(t){13===t.keyCode?e.onConfirm():27===t.keyCode&&e.cancelEditing()},e.openEditing=function(){e.setState({isEditing:!0})},e.cancelEditing=function(){e.setState({isEditing:!1,value:e.props.lead[e.props.field.info]||""})},e}return Object(l.a)(a,[{key:"componentDidUpdate",value:function(e,t){return t.value!==this.state.value}},{key:"render",value:function(){var e=this.props,t=e.canEdit,a=e.field,n=e.lead,o=this.state,i=o.value,r=o.isEditing,l=o.leadId;return i||t?t?r?u.a.createElement(_t,null,u.a.createElement(E.cb,{name:a.info,onChange:this.onChangeField,onKeyDown:this.onKeyDown,value:i,width:"70%",type:a.type,id:l,autoFocus:!0}),u.a.createElement(Tt,null,u.a.createElement(x.a,{onClick:this.onConfirm}),u.a.createElement(vt.a,{onClick:this.cancelEditing}))):u.a.createElement(_t,{canEdit:t},u.a.createElement(Nt,null,u.a.createElement(Dt,null,a.label,a.id===n.contactType?u.a.createElement(wt.a,null):null),u.a.createElement(Ht,{favorite:a.id===n.contactType?1:0},i)),u.a.createElement(Vt,{className:"editable"},i&&u.a.createElement(xt.a,{text:a.quickQuote?n.quickQuote[a.info]:n[a.info],onCopy:this.props.copyToClipboard},u.a.createElement(Ot.a,{alt:"Copiar"})),u.a.createElement(jt.a,{onClick:this.openEditing}))):u.a.createElement(_t,{canEdit:t},u.a.createElement(Nt,null,u.a.createElement(Dt,null,a.label,a.id===n.contactType?u.a.createElement(wt.a,null):null),n[a.info]&&u.a.createElement(Ht,{favorite:a.id===n.contactType},n[a.info]),a.quickQuote&&n.quickQuote?u.a.createElement(Ht,{favorite:a.id===n.contactType},"currency"===a.type?Object(le.b)(+n.quickQuote[a.info]):n.quickQuote[a.info]):null)):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.lead.id!==t.leadId?{leadId:e.lead.id,value:e.value,isEditing:t.isEditing}:e.canEdit&&!t.isEditing&&e.value!==t.value?Object(o.a)(Object(o.a)({},t),{},{value:e.value}):null}}]),a}(u.a.Component);zt.defaultProps={canEdit:!1,value:""};var Mt=zt,Bt=a(2174),St=a.n(Bt),At=g.default.button.withConfig({displayName:"ButtonDetail",componentId:"sc-1lleanv-0"})(["background-color:#fff;font-weight:",";font-size:0.9rem;color:",";text-align:left;border:none;box-shadow:none;padding:0;margin:0;cursor:pointer;&:hover,&:focus,&:active{outline:none;border:none;box-shadow:none;}svg{vertical-align:sub;margin-right:5px;}"],(function(e){return e.theme.font.semiBold}),(function(e){var t=e.theme;return e.color||t.color.protectorBlue})),Ft=g.default.div.withConfig({displayName:"Annotations__Annotation",componentId:"y3g2rq-0"})(["font-size:1rem;width:100%;color:",";margin:0 0 25px;"],(function(e){return e.theme.color.grey})),Pt=g.default.div.withConfig({displayName:"Annotations__AnnotationLoader",componentId:"y3g2rq-1"})(["margin-bottom:1rem;width:100%;"]),qt=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];
1return(e=t.call.apply(t,[this].concat(o))).state={leadId:e.props.id,value:e.props.annotation,canEdit:!1},e.editAnnotation=function(){e.setState({canEdit:!0})},e.onKeyDown=function(t){13===t.keyCode?e.onConfirm():27===t.keyCode&&e.cancelEditing()},e.onConfirm=function(){e.state.value&&(e.setState({canEdit:!1}),e.props.onChange("annotation",e.state.value))},e.onChangeField=function(t){e.setState({value:t.target.value})},e.cancelEditing=function(){e.setState({canEdit:!1,value:e.props.annotation})},e.renderAnnotationEdit=function(){return u.a.createElement(_t,null,u.a.createElement(E.cb,{name:"annotation",onChange:e.onChangeField,onKeyDown:e.onKeyDown,value:e.state.value,width:"70%",type:"text",element:"textarea",placeholder:"Insira uma anota\xe7\xe3o.",autoFocus:!0}),u.a.createElement(Tt,null,u.a.createElement(x.a,{onClick:e.onConfirm}),u.a.createElement(vt.a,{onClick:e.cancelEditing})))},e.renderAnnotation=function(){var t=e.props.loading,a=e.state.value;return t?u.a.createElement(Pt,null,u.a.createElement(I.a,{height:40,width:400,speed:2,primaryColor:"#f3f3f3",secondaryColor:"#ecebeb"})):a?u.a.createElement(Ft,null,a):null},e}return Object(l.a)(a,[{key:"render",value:function(){return this.state.canEdit?this.renderAnnotationEdit():u.a.createElement(s.Fragment,null,this.renderAnnotation(),u.a.createElement(At,{onClick:this.editAnnotation},u.a.createElement(St.a,null),"Nova anota\xe7\xe3o"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.id!==t.leadId&&e.annotation!==t.value?{leadId:e.id,value:e.annotation,canEdit:t.canEdit}:null}}]),a}(u.a.Component);qt.defaultProps={id:"",annotation:""};var Zt=qt,Wt=g.default.ul.withConfig({displayName:"TaskLead__TaskList",componentId:"d5jyhs-0"})(["margin:0;padding:0;width:100%;"]),Rt=g.default.div.withConfig({displayName:"TaskLead__TaskLoader",componentId:"d5jyhs-1"})(["width:100%;margin-bottom:1rem;"]),Gt=g.default.li.withConfig({displayName:"TaskLead__Task",componentId:"d5jyhs-2"})(["display:flex;justify-content:space-between;list-style:none;margin:0 0 1rem;padding:0;overflow:hidden;label{font-size:0.8rem;margin:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"]),Qt=g.default.time.withConfig({displayName:"TaskLead__Date",componentId:"d5jyhs-3"})(["font-size:0.8rem;line-height:1;"]),Kt=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={canCreate:!1,value:""},e.createNewTodo=function(){e.setState({canCreate:!0})},e.onCheck=function(t,a,n){var o={id:a,description:n,done:t};e.props.onCheck(o)},e.onKeyDown=function(t){13===t.keyCode?e.onConfirm():27===t.keyCode&&e.cancelEditing()},e.onConfirm=function(){var t=e.state.value;t&&(e.props.onCreate(t),e.setState({canCreate:!1,value:""}))},e.onChangeField=function(t){e.setState({value:t.target.value})},e.cancelEditing=function(){e.setState({canCreate:!1})},e.renderTodos=function(){var t=e.props,a=t.todos;return t.loading?u.a.createElement(Rt,null,u.a.createElement(I.a,{height:40,width:400,speed:2,primaryColor:"#f3f3f3",secondaryColor:"#ecebeb"})):a&&a.length?u.a.createElement(Wt,null,a.map((function(t){return u.a.createElement(Gt,{key:t.id},u.a.createElement(E.f,{key:t.id,id:t.id,name:t.id,label:t.description,onChange:e.onCheck,checked:t.done,secondary:!0,noMargin:!0}),t.done&&u.a.createElement(Qt,null,Object($.h)(t.createdAt)))}))):null},e.renderEdit=function(){if(e.state.canCreate)return u.a.createElement(_t,null,u.a.createElement(E.cb,{name:"todo",onChange:e.onChangeField,onKeyDown:e.onKeyDown,value:e.state.value,width:"70%",type:"text",placeholder:"Digite qual deve ser sua pr\xf3xima a\xe7\xe3o.",autoFocus:!0}),u.a.createElement(Tt,null,u.a.createElement(x.a,{onClick:e.onConfirm}),u.a.createElement(vt.a,{onClick:e.cancelEditing})))},e}return Object(l.a)(a,[{key:"render",value:function(){var e=this.state.canCreate;return(u.a.createElement(s.Fragment,null,this.renderTodos(),e?this.renderEdit():u.a.createElement(At,{onClick:this.createNewTodo},u.a.createElement(St.a,null),"Nova tarefa")))}}]),a}(u.a.Component);Kt.defaultProps={todos:[],loading:!0};var Ut=Kt,Yt=[{id:1,info:"email",type:"email",label:"Email"},{id:2,info:"phoneNumber",type:"tel",label:"Telefone"},{id:3,info:"whatsAppNumber",type:"tel",label:"WhatsApp"}],Jt=[{id:4,info:"productName",type:"text",label:"Produto"},{id:5,info:"specialty",type:"text",label:"Categoria",quickQuote:!0},{id:6,info:"insuredAmount",type:"currency",label:"Valor da Cobertura",quickQuote:!0},{id:7,info:"totalAmount",type:"currency",label:"Valor da Simula\xe7\xe3o",quickQuote:!0},{id:8,info:"campaignName",type:"text",label:"Nome da campanha",quickQuote:!0},{id:9,info:"affinityGroupName",type:"text",label:"Grupo de Afinidade",quickQuote:!0},{id:10,info:"affinityGroupConditionName",type:"text",label:"Grupo de Afinidade",quickQuote:!0}],Xt=g.default.div.withConfig({displayName:"LeadDetails__LeadDetailsWrapper",componentId:"pda2b7-0"})(["width:400px;"]),$t=g.default.div.withConfig({displayName:"LeadDetails__DetailsBox",componentId:"pda2b7-1"})(["border-bottom:1px solid #c7cadb;color:",";display:flex;justify-content:center;align-items:flex-start;flex-direction:column;margin-bottom:25px;padding-bottom:25px;width:100%;&:last-of-type{border-bottom:none;}"],(function(e){return e.theme.color.grey})),ea=g.default.h3.withConfig({displayName:"LeadDetails__BoxHeading",componentId:"pda2b7-2"})(["font-size:16px;line-height:1.4;text-align:left;color:",";width:100%;margin-bottom:20px;"],(function(e){return e.theme.color.argoNavy})),ta=g.default.div.withConfig({displayName:"LeadDetails__LeadInfo",componentId:"pda2b7-3"})(["h2{color:",";font-weight:",";font-size:1.4rem;margin:0;padding:0;}h4{font-size:16px;color:",";font-weight:",";margin:0;}"],(function(e){return e.theme.color.protectorBlue}),(function(e){return e.theme.font.semiBold}),(function(e){return e.theme.color.grey}),(function(e){return e.theme.font.semiBold})),aa=Object(g.default)((function(e){return u.a.createElement($t,e)})).withConfig({displayName:"LeadDetails__Header",componentId:"pda2b7-4"})(["> ","{display:flex;justify-content:space-between;align-items:center;width:100%;:first-child{margin-bottom:30px;}}"],ta),na=Object(g.default)((function(e){return u.a.createElement(tt.a,e)})).withConfig({displayName:"LeadDetails__CloseIcon",componentId:"pda2b7-5"})(["cursor:pointer;"]),oa=g.default.div.withConfig({displayName:"LeadDetails__LeadType",componentId:"pda2b7-6"})(["font-weight:",";display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;svg{vertical-align:sub;margin-right:5px;}"],(function(e){return e.theme.font.semiBold})),ia=g.default.footer.withConfig({displayName:"LeadDetails__Footer",componentId:"pda2b7-7"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;p{font-size:12px;}"]),ra=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).renderLeadType=function(e){var t=e.campaignId||e.affinityGroupId||e.affinityGroupConditionId;return 1!==e.status?u.a.createElement(s.Fragment,null,u.a.createElement("div",null,u.a.createElement(Y.a,null)," Lead Quente"),t?u.a.createElement("div",null,u.a.createElement(X.a,null)," ",e.campaignId?"Lead de Campanha":"Lead de Grupo de Afinidade"):null):u.a.createElement(s.Fragment,null,u.a.createElement("div",null,u.a.createElement(K.a,null)," Lead Fria"),t?u.a.createElement("div",null,u.a.createElement(X.a,null)," ",e.campaignId?"Lead de Campanha":"Lead de Grupo de Afinidade"):null)},e.renderDetailFields=function(t,a){var n=e.props,o=n.lead,i=n.onEditField,r=n.copyToClipboard;return t.map((function(e){return"specialty"===e.info&&(Object.keys(o).length>0&&o.productName.toLowerCase().includes("bike")?e.label="Fabricante":e.label="Categoria"),u.a.createElement(Mt,{field:e,lead:o,canEdit:a,onConfirm:i,value:o[e.info],key:e.id,copyToClipboard:r})}))},e}return Object(l.a)(a,[{key:"render",value:function(){var e=this.props,t=e.lead,a=e.onClose,n=e.onEditField,o=e.loading,i=e.onCreateNewTodo,r=e.onUpdateTodo,l=e.buttonToQuotation;return(u.a.createElement(Xt,null,u.a.createElement(aa,null,u.a.createElement(ta,null,u.a.createElement("div",null,u.a.createElement("h2",null,t.name),u.a.createElement("h4",null,t.productName)),u.a.createElement(na,{onClick:a})),u.a.createElement(oa,null,this.renderLeadType(t))),u.a.createElement($t,null,u.a.createElement(ea,null,"Tarefas"),u.a.createElement(Ut,{loading:o,todos:t.tasks,onCreate:i,onCheck:r})),u.a.createElement($t,null,u.a.createElement(ea,null,"Anota\xe7\xf5es"),u.a.createElement(Zt,{loading:o,annotation:t.annotation,id:t.id,onChange:n})),u.a.createElement($t,null,u.a.createElement(ea,null,"Informa\xe7\xf5es de Contato"),this.renderDetailFields(Yt,!0)),u.a.createElement($t,null,u.a.createElement(ea,null,"Detalhes da Simula\xe7\xe3o"),this.renderDetailFields(Jt)),u.a.createElement(ia,null,l)))}}]),a}(u.a.Component),la=Object(g.default)((function(e){return u.a.createElement(E.d,e)})).withConfig({displayName:"ModalLead__ButtonWrappers",componentId:"iu9ugj-0"})(["margin-top:3rem;"]),da=g.default.div.withConfig({displayName:"ModalLead__ModalWrapper",componentId:"iu9ugj-1"})(["padding:6rem 3rem 3rem;position:relative;"]),ca=g.default.div.withConfig({displayName:"ModalLead__CardOverflow",componentId:"iu9ugj-2"})(["display:flex;justify-content:center;position:absolute;top:0;transform:translateY(-50%);width:calc(100% - 6rem);pointer-events:none;"]),sa=Object(g.default)(E.o).withConfig({displayName:"ModalLead___StyledDialog",componentId:"iu9ugj-3"})(["overflow:visible;"]),ua=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).dialog=u.a.createRef(),e.close=function(){e.dialog.current.close()},e.open=function(){e.dialog.current.open()},e.onClose=function(){e.props.onCancel(),e.dialog.current.close()},e}return Object(l.a)(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.promptHeading,n=t.promptExplanation,o=t.lead,i=t.onConfirm,r=t.onCancel,l=t.textConfirm;return u.a.createElement(sa,{ref:this.dialog},(function(t){var d=t.close;return(u.a.createElement(da,null,o&&u.a.createElement(ca,null,u.a.createElement(we,{lead:o})),u.a.createElement(E.bb,{align:"center"},u.a.createElement(E.D,null,a),u.a.createElement("p",null,n)),u.a.createElement(la,null,u.a.createElement(E.c,{onClick:i,width:"210px"},l),u.a.createElement(E.c,{onClick:r?e.onClose:function(){return d()},secondary:!0,width:"210px"},"Cancelar"))))}))}}]),a}(s.Component);ua.defaultProps={lead:null,textConfirm:"",onCancel:null};var pa=ua,ma=a(248),fa=a(15),ga=a(63),Ca=a(1690),ha=a(612),ya=g.default.section.withConfig({displayName:"Leads__KanbanWrapper",componentId:"tnscbr-0"})(["background-color:rgba(218,222,242,0.2);font-family:'Open Sans',sans-serif;height:calc(100vh - ",");width:100vw;overflow:hidden;display:flex;justify-content:flex-start;align-items:center;flex-direction:column;position:relative;"],(function(e){return e.theme.configs.menuHeight})),ba=Object(g.default)(h.a).withConfig({displayName:"Leads__OpenIcon",componentId:"tnscbr-1"})(["margin-top:8px;"]),va=g.default.div.withConfig({displayName:"Leads__LoaderGetLeadBag",componentId:"tnscbr-2"})(["background:transparent;position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:10;"]),Ea=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var l=arguments.length,d=new Array(l),c=0;c<l;c++)d[c]=arguments[c];return(e=t.call.apply(t,[this].concat(d))).modalLead=u.a.createRef(),e.modalLeadError=u.a.createRef(),e.state={leadDetailsIsOpen:!1,newLeadsIsOpen:!1,isModalOpen:!1,leadBag:null},e.toggleDrawer=function(t){e.setState((function(e){return Object(i.a)({},t,!e[t])}),(function(){e.state.leadDetailsIsOpen||e.props.clearLeadDetails()}))},e.redirectQuotation=function(e,t){return Object(fa.d)(e.operationId)?Object(p.h)("/integracoes/externo"):Object(p.h)(t,{state:{selectedLead:e.identifier}})}
1,e.closeAllDrawer=function(){e.setState({leadDetailsIsOpen:!1,newLeadsIsOpen:!1},(function(){return e.props.clearLeadDetails()}))},e.onChangePosition=function(t,a){e.props.updateUserLeadPosition(t,a)},e.onGetNewLead=function(t){e.setState({leadBag:t,newLeadsIsOpen:!1},(function(){e.modalLead.current.open()}))},e.onSelectLead=function(t){e.setState({leadDetailsIsOpen:!0}),e.props.getLeadDetails(t)},e.onEditLead=function(t,a){var n=v()(e.props.userLeads),i=Object(o.a)({},e.props.profile),r=Object(y.a)(e.props.leadDetails,(function(r){r[t]=a,r.brokerIdentity=i.identity,r.brokerName=i.name,delete r.statusChangedAt,"phoneNumber"!==t&&"whatsApp"!==t||1!==r.status||(r.status=2,n.columns.cold.leadsId=n.columns.cold.leadsId.filter((function(e){return e!==r.identifier})),n.columns.hot.leadsId.push(r.identifier),n.list=n.list.map((function(e){var t=Object(o.a)({},e);return t.identifier===r.identifier&&(t.status=2,t.position=n.columns.hot.leadsId.length),t})),e.props.updateUserLeadPosition(n,e.props.userLeads))}));e.props.updateLeadDetails(r,e.props.leadDetails)},e.onCreateNewTodo=function(t){var a={leadIdentifier:e.props.leadDetails.identifier,description:t,done:!1},n=Object(y.a)(e.props.leadDetails,(function(e){e.tasks?e.tasks.push(a):e.tasks=[a]}));e.props.updateSelectedLeadDetails(n),e.props.createTodo(a)},e.updateTodo=function(t){if(e.props.leadDetails.identifier){var a=Object(y.a)(e.props.leadDetails,(function(e){e.tasks=e.tasks.map((function(e){return+e.id===+t.id&&(e.done=t.done),e}))}));e.props.updateSelectedLeadDetails(a)}e.props.updateTodo(t)},e.getLeadToKanban=function(){var t=Object(o.a)({},e.state.leadBag),a=Object(o.a)({},e.props.profile);t.brokerIdentity=a.identity,t.brokerName=a.name,t.position=1;var i=Object(y.a)(e.props.userLeads,(function(e){e.list=[t].concat(Object(n.a)(e.list)),1===t.status?(e.columns.cold.leadsId=[t.identifier].concat(Object(n.a)(e.columns.cold.leadsId)),e.list=j(e.list,e.columns.cold.leadsId)):(e.columns.hot.leadsId=[t.identifier].concat(Object(n.a)(e.columns.hot.leadsId)),e.list=j(e.list,e.columns.hot.leadsId))}));e.props.getLeadFromBag(t,i,e.props.userLeads),e.setState({leadBag:null}),e.modalLead.current.close()},e.getAnotherLead=function(){e.modalLeadError.current.close(),e.props.clearLeadsErrors(),e.setState({newLeadsIsOpen:!0})},e.renderModalContent=function(){var t=e.props.gettingLeadFromBag,a=e.state.leadBag;return t?u.a.createElement(va,null,u.a.createElement(E.db,{fontSize:"10rem",color:"#E9256A"})):a?u.a.createElement(pa,{ref:e.modalLead,promptHeading:"Voc\xea est\xe1 assumindo um lead ".concat(1===+a.status?"frio":"quente","."),promptExplanation:"Este lead est\xe1 esperando um contato para fazer uma cota\xe7\xe3o. Assegure-se que voc\xea possa atender-lo logo.",textConfirm:"Assumir lead",onConfirm:e.getLeadToKanban,lead:a}):u.a.createElement(pa,{ref:e.modalLeadError,promptHeading:"Ops... Parece que algu\xe9m foi mais r\xe1pido.",promptExplanation:"Infelizmente, esse lead n\xe3o est\xe1 mais dispon\xedvel. Tente capturar outro..",textConfirm:"Ver outros leads",onConfirm:e.getAnotherLead,onCancel:e.props.clearLeadsErrors})},e}return Object(l.a)(a,[{key:"componentDidMount",value:function(){!this.props.userLeads.list.length&&this.props.profile.identity&&this.props.userLeadsRequest(),this.props.newLeadsRequest()}},{key:"componentDidUpdate",value:function(){this.props.error.getLeadFromBag&&this.modalLeadError.current.open()}},{key:"render",value:function(){var e=this,t=this.props,a=t.userLeads,n=t.newLeads,o=t.loadingLeadsBag,i=t.loadingUserLeads,r=t.gettingLeadFromBag,l=t.leadDetails,d=t.gettingLeadDetails,c=t.permissions,s=this.state,m=s.leadDetailsIsOpen,f=s.newLeadsIsOpen,g=Object(ma.a)(c,["Cota\xe7\xf5es"]).length;return u.a.createElement(ya,null,u.a.createElement(Me,{onClick:function(){return e.toggleDrawer("newLeadsIsOpen")},zIndex:3},u.a.createElement("strong",null,n.length?n.length:""),"Leads Dispon\xedveis",u.a.createElement(ba,null)),u.a.createElement($e,{isOpen:f},u.a.createElement(yt,{leads:n,onGetNewLead:this.onGetNewLead,onClose:function(){return e.toggleDrawer("newLeadsIsOpen")},loading:o,refreshLeads:this.props.newLeadsRequest})),u.a.createElement(Ue,{leads:a,onChangePosition:this.onChangePosition,onSelectLead:this.onSelectLead,loading:i,onCheckLeadCard:this.updateTodo}),u.a.createElement($e,{isOpen:m,position:"right"},u.a.createElement(ra,{loading:d,lead:l,onClose:function(){return e.toggleDrawer("leadDetailsIsOpen")},onEditField:this.onEditLead,onCreateNewTodo:this.onCreateNewTodo,onUp
1dateTodo:this.updateTodo,copyToClipboard:this.props.copyToClipboard,buttonToQuotation:u.a.createElement(E.c,{"data-testid":"link-to-quotation",element:g?u.a.createElement(p.a,{onClick:function(t){t.preventDefault(),e.redirectQuotation(l,"/protector/ferramentas/cotacoes/".concat(l.operationId))}}):"a",href:!g&&"https://protector.akadseguros.com.br/corretor/cotacoes/CotacaoCadastro.aspx",to:Object(fa.d)(l.operationId)?"/integracoes/externo":"/protector/ferramentas/cotacoes/adicionar/".concat(l.operationId),target:"_blank"},u.a.createElement("span",null,"Fazer uma cota\xe7\xe3o"))})),u.a.createElement(E.I,{zIndex:1,onClick:this.closeAllDrawer,isOpen:m||f||r}),this.renderModalContent())}}]),a}(s.Component),wa=Object(f.connect)((function(e){var t=e.leads,a=e.auth;return{profile:a.profile,permissions:a.permissions,userLeads:t.userLeads,newLeads:t.newLeads,loadingLeadsBag:t.loadingNewLeads,loadingUserLeads:t.loadingLeads,gettingLeadFromBag:t.gettingLeadFromBag,error:t.error,leadDetails:t.selectedLead,gettingLeadDetails:t.gettingLeadDetails}}),(function(e){return Object(m.bindActionCreators)({userLeadsRequest:ga.C,updateUserLeadPosition:ga.y,newLeadsRequest:ga.q,getLeadFromBag:ga.l,updateLeadDetails:ga.r,clearLeadsErrors:ga.c,getLeadDetails:ga.i,clearLeadDetails:ga.b,updateSelectedLeadDetails:ga.t,createTodo:ga.e,updateTodo:ga.u,copyToClipboard:ga.d},e)}))(Ea);t.default=Object(Ca.a)([ha.m])(wa)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.