@hiver/connector-agent 3.1.5-beta.2 → 3.1.5-beta.3

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.
package/index.es.js CHANGED
@@ -16302,7 +16302,7 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16302
16302
  const Qe = (ze = !1) => {
16303
16303
  r(H1, {
16304
16304
  connector_name: Z,
16305
- source: ze ? "main_button" : "link_icon",
16305
+ source: ze ? "main_button" : "create_icon",
16306
16306
  sm_ids: n
16307
16307
  });
16308
16308
  }, Ot = (ze = !1) => {
package/index.umd.js CHANGED
@@ -879,7 +879,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
879
879
  `,l4="data:image/svg+xml,%3csvg%20width='124'%20height='107'%20viewBox='0%200%20124%20107'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.6168%2054.7446C28.6931%2052.5589%2031.0146%2051.1102%2033.0842%2051.8174C35.9985%2052.8133%2040.0375%2053.9024%2044.0621%2054.043C48.0034%2054.1806%2051.968%2053.4097%2054.8762%2052.6339C57.0264%2052.0602%2059.2927%2053.6932%2059.215%2055.9172C59.1742%2057.0856%2058.4742%2058.1269%2057.3723%2058.5178C54.8051%2059.4284%2049.7633%2060.8927%2044.3075%2060.7022C38.7694%2060.5088%2033.1999%2058.6241%2030.4004%2057.5311C29.2637%2057.0873%2028.5742%2055.9641%2028.6168%2054.7446Z'%20fill='url(%23paint0_linear_8481_102191)'/%3e%3cpath%20d='M47.223%2043.6373C44.4928%2030.7926%2052.6922%2018.1666%2065.5368%2015.4364C78.3815%2012.7062%2091.0075%2020.9055%2093.7377%2033.7502L105.079%2087.1053L84.1844%2091.5466C70.0346%2094.5542%2056.1258%2085.5217%2053.1182%2071.3719L47.223%2043.6373Z'%20fill='url(%23paint1_linear_8481_102191)'/%3e%3cmask%20id='mask0_8481_102191'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='46'%20y='14'%20width='60'%20height='79'%3e%3cpath%20d='M47.223%2043.6373C44.4928%2030.7926%2052.6922%2018.1666%2065.5368%2015.4364C78.3815%2012.7062%2091.0075%2020.9055%2093.7377%2033.7502L105.079%2087.1053L84.1844%2091.5466C70.0346%2094.5542%2056.1258%2085.5217%2053.1182%2071.3719L47.223%2043.6373Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_8481_102191)'%3e%3cellipse%20cx='63.7775'%20cy='46.8684'%20rx='1.48152'%20ry='1.39438'%20transform='rotate(-12%2063.7775%2046.8684)'%20fill='%23435C71'/%3e%3crect%20x='47.4368'%20y='59.3203'%20width='53.657'%20height='13.2235'%20transform='rotate(-12%2047.4368%2059.3203)'%20fill='url(%23paint2_linear_8481_102191)'/%3e%3crect%20x='51.1907'%20y='76.9824'%20width='53.657'%20height='10.4263'%20transform='rotate(-12%2051.1907%2076.9824)'%20fill='url(%23paint3_linear_8481_102191)'/%3e%3c/g%3e%3cpath%20opacity='0.883952'%20d='M113.939%2051.0679C114.775%2055%20112.265%2058.865%20108.333%2059.7008L107.842%2059.8052C103.639%2060.6986%2099.5073%2058.0155%2098.6139%2053.8123L97.205%2047.1837L105.307%2045.4616C109.239%2044.6259%20113.104%2047.1359%20113.939%2051.0679Z'%20fill='url(%23paint4_linear_8481_102191)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M68.7215%2066.4138C67.1801%2064.8725%2067.6745%2062.2062%2069.587%2061.1603C72.4457%2059.5969%2076.2861%2057.1773%2079.3785%2054.0849C82.4099%2051.0535%2084.752%2047.3461%2086.2775%2044.5465C87.3388%2042.5989%2090.0598%2042.0819%2091.6282%2043.6503C92.4782%2044.5003%2092.758%2045.7623%2092.2604%2046.8566C91.0829%2049.4466%2088.5191%2054.344%2084.4346%2058.4285C80.2853%2062.5778%2074.8639%2065.591%2072.0553%2066.9952C70.9363%2067.5548%2069.6062%2067.2985%2068.7215%2066.4138Z'%20fill='url(%23paint5_linear_8481_102191)'/%3e%3crect%20x='48.7264'%20y='33.7744'%20width='11.2108'%20height='11.2108'%20rx='5.59457'%20transform='rotate(-12%2048.7264%2033.7744)'%20fill='url(%23paint6_linear_8481_102191)'/%3e%3crect%20x='50.0175'%20y='35.8193'%20width='4.0158'%20height='3.84848'%20rx='1.92424'%20transform='rotate(-12%2050.0175%2035.8193)'%20fill='%23435C71'/%3e%3crect%20x='59.2875'%20y='31.5723'%20width='11.2108'%20height='11.2108'%20rx='5.59457'%20transform='rotate(-12%2059.2875%2031.5723)'%20fill='%23FFFEFE'/%3e%3cpath%20opacity='0.883952'%20d='M111.25%2038.5376C110.415%2034.6055%20106.55%2032.0955%20102.618%2032.9313L102.127%2033.0356C97.9234%2033.9291%2095.2403%2038.0607%2096.1337%2042.2639L97.5426%2048.8925L105.644%2047.1705C109.576%2046.3347%20112.086%2042.4696%20111.25%2038.5376Z'%20fill='url(%23paint7_linear_8481_102191)'/%3e%3crect%20x='60.0181'%20y='33.8037'%20width='3.84848'%20height='3.84848'%20rx='1.90724'%20transform='rotate(-12%2060.0181%2033.8037)'%20fill='%23435C71'/%3e%3cpath%20d='M36.9246%2059.1604C36.4487%2060.717%2034.7371%2061.6271%2033.1805%2061.1512C32.3613%2060.9007%2031.7241%2060.3475%2031.3259%2059.5987L25.2059%2046.7983C24.9784%2046.3703%2025.1286%2045.8788%2025.5566%2045.6513L28.338%2044.1724C28.7659%2043.9449%2029.2574%2044.0951%2029.4849%2044.5231L36.6496%2056.8367C37.0728%2057.5036%2037.15%2058.423%2036.9246%2059.1604Z'%20fill='%23FFDF9F'/%3e%3crect%20x='27.9973'%20y='44.333'%20width='2.39869'%20height='3.59807'%20transform='rotate(152%2027.9973%2044.333)'%20fill='%23FF9090'/%3e%3cpath%20d='M26.6628%2044.3769L26.9472%2044.9118L28.0169%2044.343L26.3106%2041.1338L24.171%2042.2714L25.0243%2043.876C25.6661%2043.5347%2026.3215%2043.7351%2026.6628%2044.3769Z'%20fill='%23FFB19F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.26386%2027.248C9.3428%2020.4481%2016.5101%2016.6372%2023.31%2018.7161C30.11%2020.7951%2033.9209%2027.9624%2031.8419%2034.7623C29.763%2041.5622%2022.5956%2045.3731%2015.7958%2043.2942C8.99587%2041.2152%205.18493%2034.0479%207.26386%2027.248ZM9.72157%2027.9983C8.06843%2033.4055%2011.1399%2039.1821%2016.5471%2040.8352C21.9543%2042.4884%2027.7309%2039.4168%2029.384%2034.0096C31.0372%2028.6024%2027.9657%2022.8258%2022.5585%2021.1727C17.1513%2019.5196%2011.3747%2022.5911%209.72157%2027.9983Z'%20fill='%23FFE69F'/%3e%3ccircle%20opacity='0.414016'%20cx='19.5529'%20cy='31.0039'%20r='10.2804'%20transform='rotate(17%2019.5529%2031.0039)'%20fill='%23BBDEFC'/%3e%3cpath%20d='M14.3685%2030.6746C15.7299%2027.6867%2018.9391%2025.9803%2022.1776%2026.5225L22.2595%2026.5475C23.7024%2026.8095%2024.3854%2024.8682%2023.1497%2024.2218C22.3806%2023.8074%2021.5613%2023.557%2020.717%2023.3884C17.3715%2022.9031%2014.0553%2024.6664%2012.6939%2027.6543C12.2796%2028.4235%2012.0859%2029.3497%2012.0244%2030.1372C11.8444%2031.6051%2013.8607%2032.0424%2014.4503%2030.6997C14.3434%2030.7566%2014.3685%2030.6746%2014.3685%2030.6746Z'%20fill='%23F6FBFF'/%3e%3cpath%20d='M10.2904%2029.0679C11.9436%2023.6607%2017.7202%2020.5893%2023.1274%2022.2424C25.6671%2023.0189%2027.5785%2024.6783%2028.9301%2026.704C27.7539%2024.1048%2025.508%2022.0744%2022.5586%2021.1727C17.1514%2019.5196%2011.3748%2022.591%209.72165%2027.9982C8.81993%2030.9476%209.32924%2033.97%2010.7444%2036.3735C9.82081%2034.1203%209.51395%2031.6077%2010.2904%2029.0679Z'%20fill='%23ADCBE7'/%3e%3cpath%20opacity='0.406087'%20d='M36.4864%2056.8021L36.1373%2056.2691C36.3845%2056.8563%2036.428%2057.5516%2036.2372%2058.1754C35.9273%2059.189%2034.5593%2059.1971%2034.0713%2058.2806L28.3787%2047.5877C28.0534%2046.9767%2027.3508%2046.7619%2026.7395%2047.0866L25.7206%2047.6277L31.4395%2059.3516C31.7648%2059.9627%2032.27%2060.5434%2032.8706%2060.8123C33.7054%2061.1528%2034.6593%2061.1034%2035.3726%2060.7247C36.0858%2060.3459%2036.6602%2059.5837%2036.8444%2058.7021C37.0351%2058.0783%2036.8117%2057.4132%2036.4864%2056.8021Z'%20fill='white'/%3e%3cpath%20d='M29.8826%2048.4977C29.8006%2048.4726%2029.6368%2048.4225%2029.5799%2048.3155L28.1579%2045.6411C28.0442%2045.4272%2028.1193%2045.1814%2028.3332%2045.0677C28.5472%2044.9539%2028.7929%2045.0291%2028.9067%2045.243L30.3287%2047.9174C30.4424%2048.1313%2030.3673%2048.3771%2030.1534%2048.4908C30.1284%2048.5728%2029.9645%2048.5227%2029.8826%2048.4977Z'%20fill='%23FFF5EB'/%3e%3cellipse%20cx='29.2637'%20cy='54.631'%20rx='1.50593'%20ry='3.17918'%20transform='rotate(-23%2029.2637%2054.631)'%20fill='%23FFC478'/%3e%3cellipse%20cx='34.0592'%20cy='52.4078'%20rx='0.920288'%20ry='1.67325'%20transform='rotate(106%2034.0592%2052.4078)'%20fill='%23FFC478'/%3e%3cpath%20d='M89.1282%2019.2055L68.2257%2026.8725L45.9197%2028.3898L44.4929%2016.4082C44.3371%2013.798%2047.5283%2011.4502%2050.9859%2011.6309L65.1429%2012.369L67.3969%2012.4869C68.5309%2012.5463%2069.7066%2012.3289%2070.7522%2011.8627L78.6899%208.34726C81.725%206.99992%2085.3012%207.87475%2086.2125%2010.1876L89.1282%2019.2055Z'%20fill='url(%23paint8_linear_8481_102191)'/%3e%3cpath%20opacity='0.479771'%20d='M88.6262%2019.0953L68.3101%2026.5288L65.3314%2012.5149L67.5211%2012.6263C68.6228%2012.6824%2069.7652%2012.471%2070.7816%2012.0192L78.4972%208.61266C81.4474%207.30707%2084.9208%208.14856%2085.8036%2010.3829L88.6262%2019.0953Z'%20fill='%23ADCBE7'/%3e%3cpath%20d='M91.6332%2026.6212L46.9517%2036.1186L46.0387%2028.4438L89.2535%2019.2582L91.6332%2026.6212Z'%20fill='%23717DAD'/%3e%3cpath%20d='M102.961%2024.2033C103.125%2024.9722%20102.371%2025.7829%20101.278%2026.015L37.9675%2039.4722C36.8754%2039.7043%2035.8568%2039.2704%2035.6933%2038.5015C35.5301%2037.7336%2036.284%2036.922%2037.3761%2036.6898L100.687%2023.2327C101.779%2023.0005%20102.798%2023.4354%20102.961%2024.2033Z'%20fill='%239ED1FF'/%3e%3cpath%20d='M102.703%2024.1718C102.838%2024.805%20102.067%2025.5045%20100.983%2025.7349L69.5583%2032.4144L69.0712%2030.123L100.496%2023.4436C101.58%2023.2131%20102.569%2023.5394%20102.703%2024.1718Z'%20fill='%2378AFE1'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_8481_102191'%20x1='32.2665'%20y1='59.6553'%20x2='59.0518'%20y2='60.5906'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFDE0'/%3e%3cstop%20offset='1'%20stop-color='%23FFB362'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_8481_102191'%20x1='67.3434'%20y1='85.966'%20x2='103.216'%20y2='78.3411'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFABC'/%3e%3cstop%20offset='1'%20stop-color='%23FFA650'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_8481_102191'%20x1='51.4347'%20y1='74.8197'%20x2='91.1539'%20y2='74.8197'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A3C1FF'/%3e%3cstop%20offset='1'%20stop-color='%234243FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_8481_102191'%20x1='55.1887'%20y1='89.2031'%20x2='94.9078'%20y2='89.2031'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A3C1FF'/%3e%3cstop%20offset='1'%20stop-color='%234243FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_8481_102191'%20x1='94.5023'%20y1='53.1799'%20x2='106.762'%20y2='58.7056'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF9498'/%3e%3cstop%20offset='1'%20stop-color='%23FFD671'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_8481_102191'%20x1='74.9906'%20y1='66.9871'%20x2='94.9778'%20y2='46.9999'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFFDE0'/%3e%3cstop%20offset='1'%20stop-color='%23FFB362'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_8481_102191'%20x1='50.5805'%20y1='44.0581'%20x2='59.9372'%20y2='44.0581'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='%23E3EEF3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint7_linear_8481_102191'%20x1='88.4187'%20y1='43.3906'%20x2='99.3981'%20y2='25.1833'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF9498'/%3e%3cstop%20offset='1'%20stop-color='%23FFD671'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint8_linear_8481_102191'%20x1='56.4985'%20y1='29.5482'%20x2='100.532'%20y2='20.1885'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23ECF7FF'/%3e%3cstop%20offset='1'%20stop-color='%23C2E0FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",d4=()=>E.jsxs(x.Box,{justifyItems:"center",marginTop:"40px",children:[E.jsx("img",{src:l4,width:124,height:107}),E.jsx(x.Typography,{variant:"body2",color:x.theme.palette.gray.gray3,children:JE})]}),f4=({searchResults:e,selectedObject:t,onReset:n,fetchCards:r})=>{const o=kt(),[s,i]=S.useState(null),a=jr(zE,{count:e.length.toString(),countSuffix:e.length>1?"s":"",searchObject:t.objectName,connectorName:t.connectorName}),c=b=>{i({externalResourceId:b,formId:t.value.toString()})},u=()=>{i(null),o(vb())},l=()=>{n(),r(),u()};return e.length?s?E.jsx(u4,{meta:s,onBack:u,onLink:l}):E.jsxs(x.Stack,{gap:"14px",marginTop:"12px",children:[E.jsx(x.Typography,{variant:"body2",children:a}),E.jsx(x.Stack,{gap:"17px",children:e==null?void 0:e.map(({externalResourceId:b,name:y,description:C})=>E.jsxs(Yf,{onClick:()=>c(b),direction:"row",children:[E.jsxs(x.Stack,{flexGrow:1,children:[E.jsx(x.Typography,{variant:"body2",color:x.theme.palette.gray.gray1,children:y}),E.jsx(x.Typography,{variant:"caption",color:x.theme.palette.gray.gray3,children:C})]}),E.jsx(x.Box,{alignSelf:"center",className:"search-item__chevron",width:"20px",height:"20px",children:E.jsx("img",{src:o4})})]},b))})]}):E.jsx(d4,{})},va=x.styled(x.Skeleton)`
880
880
  display: block;
881
881
  margin: ${e=>e.margin?e.margin:0};
882
- `,p4=()=>E.jsxs(x.Stack,{marginTop:"12px",children:[E.jsx(va,{variant:"rounded",width:"50%",height:"16px",animation:"wave",margin:"0 0 18px 0"}),E.jsx(x.Stack,{gap:"17px",children:E.jsxs(Yf,{gap:"8px",disableHover:!0,children:[E.jsx(va,{variant:"rounded",width:"30%",height:"16px",animation:"wave"}),E.jsx(va,{variant:"rounded",width:"70%",height:"16px",animation:"wave"})]})})]}),h4=async({id:e,searchString:t,args:n})=>{try{if(e===void 0||t===void 0)return[];const r=await ot({url:$x.replace(":formId",e.toString()),method:gt.POST,data:{search_string:t,args:n}});let o=null;return r!=null&&r.data&&"data"in r.data&&(o=r.data.data),o}catch(r){Ne({message:_i,type:yt}),console.error(r)}},g4=()=>Zf({mutationFn:h4}),m4="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4649_80352'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='21'%3e%3crect%20y='0.320312'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4649_80352)'%3e%3cpath%20d='M9.16797%2014.4873H10.8346V11.154H14.168V9.4873H10.8346V6.15397H9.16797V9.4873H5.83464V11.154H9.16797V14.4873ZM10.0013%2018.654C8.84852%2018.654%207.76519%2018.4352%206.7513%2017.9977C5.73741%2017.5602%204.85547%2016.9665%204.10547%2016.2165C3.35547%2015.4665%202.76172%2014.5845%202.32422%2013.5706C1.88672%2012.5567%201.66797%2011.4734%201.66797%2010.3206C1.66797%209.16786%201.88672%208.08453%202.32422%207.07064C2.76172%206.05675%203.35547%205.1748%204.10547%204.4248C4.85547%203.6748%205.73741%203.08105%206.7513%202.64355C7.76519%202.20605%208.84852%201.9873%2010.0013%201.9873C11.1541%201.9873%2012.2374%202.20605%2013.2513%202.64355C14.2652%203.08105%2015.1471%203.6748%2015.8971%204.4248C16.6471%205.1748%2017.2409%206.05675%2017.6784%207.07064C18.1159%208.08453%2018.3346%209.16786%2018.3346%2010.3206C18.3346%2011.4734%2018.1159%2012.5567%2017.6784%2013.5706C17.2409%2014.5845%2016.6471%2015.4665%2015.8971%2016.2165C15.1471%2016.9665%2014.2652%2017.5602%2013.2513%2017.9977C12.2374%2018.4352%2011.1541%2018.654%2010.0013%2018.654ZM10.0013%2016.9873C11.8624%2016.9873%2013.4388%2016.3415%2014.7305%2015.0498C16.0221%2013.7581%2016.668%2012.1817%2016.668%2010.3206C16.668%208.45953%2016.0221%206.88314%2014.7305%205.59147C13.4388%204.2998%2011.8624%203.65397%2010.0013%203.65397C8.14019%203.65397%206.5638%204.2998%205.27214%205.59147C3.98047%206.88314%203.33464%208.45953%203.33464%2010.3206C3.33464%2012.1817%203.98047%2013.7581%205.27214%2015.0498C6.5638%2016.3415%208.14019%2016.9873%2010.0013%2016.9873Z'%20fill='%234D596C'/%3e%3c/g%3e%3c/svg%3e",b4="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3462%208.73757C14.0406%208.43198%2013.5451%208.43198%2013.2395%208.73757C12.9339%209.04316%2012.9339%209.53863%2013.2395%209.84422L14.3462%208.73757ZM15.2392%2010.7372L15.7925%2010.1839L15.2392%2010.7372ZM16.2377%2013.1478L15.4552%2013.1478L16.2377%2013.1478ZM15.2392%2015.5584L14.6859%2015.0051L15.2392%2015.5584ZM10.418%2015.5584L9.86469%2016.1118L10.418%2015.5584ZM9.52499%2013.5588C9.2194%2013.2532%208.72393%2013.2532%208.41834%2013.5588C8.11275%2013.8643%208.11275%2014.3598%208.41834%2014.6654L9.52499%2013.5588ZM5.52477%2011.7731C5.83036%2012.0787%206.32583%2012.0787%206.63142%2011.7731C6.93701%2011.4675%206.93701%2010.972%206.63142%2010.6665L5.52477%2011.7731ZM9.45292%204.95224L10.0062%204.39892L9.45292%204.95224ZM10.346%206.95192C10.6515%207.25752%2011.147%207.25752%2011.4526%206.95192C11.7582%206.64633%2011.7582%206.15087%2011.4526%205.84527L10.346%206.95192ZM13.2395%209.84422L14.6859%2011.2906L15.7925%2010.1839L14.3462%208.73757L13.2395%209.84422ZM14.6859%2011.2906C15.1785%2011.7832%2015.4552%2012.4512%2015.4552%2013.1478L17.0202%2013.1478C17.0202%2012.0362%2016.5786%2010.97%2015.7925%2010.1839L14.6859%2011.2906ZM15.4552%2013.1478C15.4552%2013.8445%2015.1785%2014.5125%2014.6859%2015.0051L15.7925%2016.1118C16.5786%2015.3257%2017.0202%2014.2595%2017.0202%2013.1478L15.4552%2013.1478ZM14.6859%2015.0051C13.6601%2016.0308%2011.9971%2016.0308%2010.9713%2015.0051L9.86469%2016.1118C11.5016%2017.7487%2014.1556%2017.7487%2015.7925%2016.1118L14.6859%2015.0051ZM10.9713%2015.0051L9.52499%2013.5588L8.41834%2014.6654L9.86469%2016.1118L10.9713%2015.0051ZM6.63142%2010.6665L5.18507%209.2201L4.07842%2010.3268L5.52477%2011.7731L6.63142%2010.6665ZM5.18507%209.2201C4.69249%208.72752%204.41576%208.05944%204.41576%207.36283H2.85072C2.85072%208.47452%203.29234%209.54067%204.07842%2010.3268L5.18507%209.2201ZM4.41576%207.36283C4.41576%206.66622%204.69249%205.99815%205.18507%205.50557L4.07842%204.39892C3.29234%205.185%202.85072%206.25115%202.85072%207.36283H4.41576ZM5.18507%205.50557C6.21081%204.47983%207.87386%204.47983%208.8996%205.50557L10.0062%204.39892C8.36932%202.76199%205.71534%202.76199%204.07842%204.39892L5.18507%205.50557ZM8.8996%205.50557L10.346%206.95192L11.4526%205.84527L10.0062%204.39892L8.8996%205.50557Z'%20fill='%234D596C'/%3e%3crect%20x='6.36328'%20y='7.91895'%20width='1.66667'%20height='8.33333'%20rx='0.833333'%20transform='rotate(-45%206.36328%207.91895)'%20fill='%234D596C'/%3e%3c/svg%3e",y4=e=>B.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},B.createElement("path",{d:"M12.3333 0.333008H1.66659C0.933252 0.333008 0.339919 0.933008 0.339919 1.66634L0.333252 13.6663L2.99992 10.9997H12.3333C13.0666 10.9997 13.6666 10.3997 13.6666 9.66634V1.66634C13.6666 0.933008 13.0666 0.333008 12.3333 0.333008ZM12.3333 9.66634H2.44659L2.05325 10.0597L1.66659 10.4463V1.66634H12.3333V9.66634ZM6.33325 6.99967H7.66659V8.33301H6.33325V6.99967ZM6.33325 2.99967H7.66659V5.66634H6.33325V2.99967Z",fill:"#6F7C90"})),v4=({isAdmin:e=!1})=>{const{email:t,currentSmIds:n,sendTrackingEvent:r,availableFeatures:o,conversationId:s}=S.useContext(et),i=kt(),{userGroupId:a,userId:c}=An()||{},u=S.useRef(!1),[l,b]=S.useState(!1),[y,C]=S.useState(!1),[g,p]=S.useState(!1),[d,f]=S.useState(),[h,m]=S.useState(!1),[I,v]=S.useState(null),[w,A]=S.useState(t),T=ge($b),O=ge(Kb),N=ge(ty),R=ge(ny),k=ge(ey),D=ge(Al),X=ge(gy),z=ge(Tl),H=ge(Sl),Y=ge(_l),G=_t(o,tg),ee=_t(o,Xc),se=_t(o,ag),ae=_t(o,ug),M=_t(o,lg),j=Sg(N),U=_g(c,a,n,j),{data:te}=Xf({senderEmail:t,conversationId:String(s),enabled:ae&&!!t}),{emailHeaders:ce}=te??{},{mutate:ve,reset:Ae,data:ne,isPending:pe,isIdle:He}=g4(),V=S.useCallback(()=>{Ae(),v(null)},[Ae,v]),De=S.useCallback(()=>{t&&n.length&&s&&i(Qo({inboxIds:n,conversationId:s}))},[i,t,n,s]),Ue=S.useCallback((je,tn)=>{je&&s&&tn&&i(Uo({id:je,channelType:"email",conversationId:s,externalResourceId:tn,contactEmail:t})).unwrap().catch(()=>{i(er(null))})},[i,s,t]);if(S.useEffect(()=>{A(t)},[t]),S.useEffect(()=>{var je;if(H){b(!0);const{externalResourceId:tn}=H,Tr=(je=H.forms.find(As=>As.type==="edit"))==null?void 0:je.id;Ue(Tr,tn)}else b(!1),i(Yb())},[H,Ue,i]),S.useEffect(()=>(De(),()=>{i(xl.clearConnectorList())}),[i,De]),S.useEffect(()=>(T&&T.length&&!u.current&&(r(Ng,{numOfCards:T.length,sm_ids:n}),u.current=!0),()=>{(!T||!n||u.current)&&(u.current=!1)}),[T,r,n]),S.useEffect(()=>{s&&n&&n.length&&i(Zo({inboxIds:n,conversationId:s,channelType:"email"}))},[i,n,s]),!t.length||k===J.LOADING)return E.jsx(bE,{});const Xe=(je=!1)=>{r(Gg,{connector_name:X,source:je?"main_button":"link_icon",sm_ids:n})},Et=(je=!1)=>{C(!0),Xe(je)},xr=()=>{p(!0),r(jg)},Ft=je=>{r(je,d),Y?m(!0):C(!1)},ut=je=>{if(H){const{connectorName:tn,title:Tr}=H;r(je,{connector_name:tn,card_title:Tr,sm_ids:n,ug_id:a})}Y?m(!0):i(er(null))},ze=()=>{C(!1),i(er(null)),f(void 0),m(!1)},wr=()=>{De(),i(xl.clearConnectorList())},en=()=>{r(r2,{sm_ids:n,ug_id:a,connector_names:j})},Ca=[{label:"Go back",variant:"text",action:ze},{label:"Stay",variant:"contained",action:()=>m(!1)}],so=D.length>0,Ar=z.length>0,ws=()=>so||Ar?E.jsx(GE,{haveCreateObjects:so,haveLinkObjects:Ar,onCreateClick:()=>Et(!0),onLinkClick:()=>p(!0)}):E.jsx(of,{isAdmin:e,hideHeading:!0});return E.jsxs(bu,{"data-testid":Array.isArray(T)?"connector-agent":"loading",id:"connector-agent-container",stopOverflow:y||g,children:[E.jsx(yf,{shown:h,setShown:m,title:Gb,description:jb,buttons:Ca}),E.jsx(M2,{children:O?E.jsxs(E.Fragment,{children:[E.jsxs(x.Stack,{direction:"row",justifyContent:"space-between",marginBottom:"8px",height:"36px",children:[E.jsxs(x.Stack,{direction:"row",alignItems:"center",children:[E.jsx(gu,{}),E.jsx(mu,{variant:"h2",children:fg})]}),E.jsx(x.Stack,{direction:"row",gap:"4px",children:ee&&(T!=null&&T.length)?E.jsxs(E.Fragment,{children:[so?E.jsx(x.Tooltip,{title:$c,placement:"bottom",children:E.jsx(x.IconButton,{onClick:()=>Et(!1),children:E.jsx("img",{src:m4,alt:"Add",height:"20px"})})}):null,Ar?E.jsx(x.Tooltip,{title:Kc,placement:"bottom",children:E.jsx(x.IconButton,{onClick:xr,children:E.jsx("img",{src:b4,alt:"Link Task",height:"20px"})})}):null]}):null})]}),se?E.jsx(r4,{selectedObject:I,setSelectedObject:v,fetchSearchResults:ve,onReset:V}):null,E.jsxs(Li,{children:[E.jsx(tr,{condition:se&&pe,children:E.jsx(p4,{})},"search"),E.jsx(tr,{condition:se&&!!I&&!He,children:E.jsx(f4,{searchResults:ne??[],selectedObject:I,onReset:V,fetchCards:De})},"results"),E.jsxs(tr,{fallback:!0,children:[ae&&(T!=null&&T.length)?E.jsx(AE,{emailHeaders:ce,selectedEmail:w,setSelectedEmail:A}):null,G?E.jsx(yE,{}):null,E.jsxs(Li,{children:[E.jsxs(tr,{condition:!!T&&T.length>0,children:[E.jsx(Ry,{cards:T,specificCardData:N,email:w??"",specificConnectorApiStatus:R,onCardUnlinking:De}),M?E.jsx(lm,{children:E.jsxs(x.Button,{size:"small",variant:"text",href:U,target:"_blank",onClick:en,children:[E.jsx(y4,{}),eg]})}):null]},"cards-list"),E.jsx(tr,{condition:!(T!=null&&T.length)&&ee,children:ws()},"create-banner")]})]},"cards")]})]}):E.jsx(of,{isAdmin:e})}),E.jsx(sa,{onClose:()=>ut(Kg),isOpen:l,setIsOpen:b,title:Cg,portalId:"connector-layover-portal",backButtonTooltip:"Back",children:E.jsx(vf,{isEdit:!0,onClose:()=>ut($g),onCreateSuccess:wr,metaData:d,setMetaData:f})}),E.jsx(sa,{onClose:()=>Ft(zg),portalId:"connector-layover-portal",isOpen:y,setIsOpen:C,children:E.jsx(vf,{onClose:()=>Ft(Xg),onCreateSuccess:wr,metaData:d,setMetaData:f})}),E.jsx(sa,{onClose:()=>p(!1),portalId:"connector-layover-portal",isOpen:g,setIsOpen:p,children:E.jsx(DE,{setOpenTaskLinking:p,onLinkingSuccess:De})}),!O&&E.jsx(m2,{})]})},C4=({children:e,sendTrackingEvent:t,contactEmail:n,baseUrls:r={},currentSmIds:o=[],metaData:s,availableFeatures:i,conversationId:a,connectorFunctions:c,isAdmin:u=!1})=>{const l=S.useMemo(()=>({email:n,baseUrls:r,currentSmIds:o,metaData:s,conversationId:a,sendTrackingEvent:t||(()=>{}),availableFeatures:i,isAdmin:u,connectorFunctions:c}),[n,r,t,o,s,i,a,u,c]);return E.jsx(et.Provider,{value:l,children:e})},I4=new Fx,E4=({children:e})=>E.jsx(Mx,{client:I4,children:e}),x4=Au({cardList:fy,write:Jb,common:Cb}),w4=h1({reducer:x4,devTools:!0}),A4=({children:e,extraParams:t,contactEmail:n,baseUrls:r,availableFeatures:o,connectorFunctions:s})=>E.jsx(D2,{store:w4,children:E.jsx(x.HiverProvider,{custom:!0,children:E.jsx(E4,{children:E.jsx(C4,{availableFeatures:o,sendTrackingEvent:t==null?void 0:t.sendTrackingEvent,contactEmail:n,currentSmIds:t==null?void 0:t.currentSmIds,metaData:t==null?void 0:t.metaData,conversationId:t==null?void 0:t.conversationId,baseUrls:r,connectorFunctions:s,isAdmin:t==null?void 0:t.isAdmin,children:E.jsx(S.Suspense,{fallback:E.jsx(E.Fragment,{}),children:e})})})})}),T4=x.styled(x.Box)`
882
+ `,p4=()=>E.jsxs(x.Stack,{marginTop:"12px",children:[E.jsx(va,{variant:"rounded",width:"50%",height:"16px",animation:"wave",margin:"0 0 18px 0"}),E.jsx(x.Stack,{gap:"17px",children:E.jsxs(Yf,{gap:"8px",disableHover:!0,children:[E.jsx(va,{variant:"rounded",width:"30%",height:"16px",animation:"wave"}),E.jsx(va,{variant:"rounded",width:"70%",height:"16px",animation:"wave"})]})})]}),h4=async({id:e,searchString:t,args:n})=>{try{if(e===void 0||t===void 0)return[];const r=await ot({url:$x.replace(":formId",e.toString()),method:gt.POST,data:{search_string:t,args:n}});let o=null;return r!=null&&r.data&&"data"in r.data&&(o=r.data.data),o}catch(r){Ne({message:_i,type:yt}),console.error(r)}},g4=()=>Zf({mutationFn:h4}),m4="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4649_80352'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='21'%3e%3crect%20y='0.320312'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4649_80352)'%3e%3cpath%20d='M9.16797%2014.4873H10.8346V11.154H14.168V9.4873H10.8346V6.15397H9.16797V9.4873H5.83464V11.154H9.16797V14.4873ZM10.0013%2018.654C8.84852%2018.654%207.76519%2018.4352%206.7513%2017.9977C5.73741%2017.5602%204.85547%2016.9665%204.10547%2016.2165C3.35547%2015.4665%202.76172%2014.5845%202.32422%2013.5706C1.88672%2012.5567%201.66797%2011.4734%201.66797%2010.3206C1.66797%209.16786%201.88672%208.08453%202.32422%207.07064C2.76172%206.05675%203.35547%205.1748%204.10547%204.4248C4.85547%203.6748%205.73741%203.08105%206.7513%202.64355C7.76519%202.20605%208.84852%201.9873%2010.0013%201.9873C11.1541%201.9873%2012.2374%202.20605%2013.2513%202.64355C14.2652%203.08105%2015.1471%203.6748%2015.8971%204.4248C16.6471%205.1748%2017.2409%206.05675%2017.6784%207.07064C18.1159%208.08453%2018.3346%209.16786%2018.3346%2010.3206C18.3346%2011.4734%2018.1159%2012.5567%2017.6784%2013.5706C17.2409%2014.5845%2016.6471%2015.4665%2015.8971%2016.2165C15.1471%2016.9665%2014.2652%2017.5602%2013.2513%2017.9977C12.2374%2018.4352%2011.1541%2018.654%2010.0013%2018.654ZM10.0013%2016.9873C11.8624%2016.9873%2013.4388%2016.3415%2014.7305%2015.0498C16.0221%2013.7581%2016.668%2012.1817%2016.668%2010.3206C16.668%208.45953%2016.0221%206.88314%2014.7305%205.59147C13.4388%204.2998%2011.8624%203.65397%2010.0013%203.65397C8.14019%203.65397%206.5638%204.2998%205.27214%205.59147C3.98047%206.88314%203.33464%208.45953%203.33464%2010.3206C3.33464%2012.1817%203.98047%2013.7581%205.27214%2015.0498C6.5638%2016.3415%208.14019%2016.9873%2010.0013%2016.9873Z'%20fill='%234D596C'/%3e%3c/g%3e%3c/svg%3e",b4="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3462%208.73757C14.0406%208.43198%2013.5451%208.43198%2013.2395%208.73757C12.9339%209.04316%2012.9339%209.53863%2013.2395%209.84422L14.3462%208.73757ZM15.2392%2010.7372L15.7925%2010.1839L15.2392%2010.7372ZM16.2377%2013.1478L15.4552%2013.1478L16.2377%2013.1478ZM15.2392%2015.5584L14.6859%2015.0051L15.2392%2015.5584ZM10.418%2015.5584L9.86469%2016.1118L10.418%2015.5584ZM9.52499%2013.5588C9.2194%2013.2532%208.72393%2013.2532%208.41834%2013.5588C8.11275%2013.8643%208.11275%2014.3598%208.41834%2014.6654L9.52499%2013.5588ZM5.52477%2011.7731C5.83036%2012.0787%206.32583%2012.0787%206.63142%2011.7731C6.93701%2011.4675%206.93701%2010.972%206.63142%2010.6665L5.52477%2011.7731ZM9.45292%204.95224L10.0062%204.39892L9.45292%204.95224ZM10.346%206.95192C10.6515%207.25752%2011.147%207.25752%2011.4526%206.95192C11.7582%206.64633%2011.7582%206.15087%2011.4526%205.84527L10.346%206.95192ZM13.2395%209.84422L14.6859%2011.2906L15.7925%2010.1839L14.3462%208.73757L13.2395%209.84422ZM14.6859%2011.2906C15.1785%2011.7832%2015.4552%2012.4512%2015.4552%2013.1478L17.0202%2013.1478C17.0202%2012.0362%2016.5786%2010.97%2015.7925%2010.1839L14.6859%2011.2906ZM15.4552%2013.1478C15.4552%2013.8445%2015.1785%2014.5125%2014.6859%2015.0051L15.7925%2016.1118C16.5786%2015.3257%2017.0202%2014.2595%2017.0202%2013.1478L15.4552%2013.1478ZM14.6859%2015.0051C13.6601%2016.0308%2011.9971%2016.0308%2010.9713%2015.0051L9.86469%2016.1118C11.5016%2017.7487%2014.1556%2017.7487%2015.7925%2016.1118L14.6859%2015.0051ZM10.9713%2015.0051L9.52499%2013.5588L8.41834%2014.6654L9.86469%2016.1118L10.9713%2015.0051ZM6.63142%2010.6665L5.18507%209.2201L4.07842%2010.3268L5.52477%2011.7731L6.63142%2010.6665ZM5.18507%209.2201C4.69249%208.72752%204.41576%208.05944%204.41576%207.36283H2.85072C2.85072%208.47452%203.29234%209.54067%204.07842%2010.3268L5.18507%209.2201ZM4.41576%207.36283C4.41576%206.66622%204.69249%205.99815%205.18507%205.50557L4.07842%204.39892C3.29234%205.185%202.85072%206.25115%202.85072%207.36283H4.41576ZM5.18507%205.50557C6.21081%204.47983%207.87386%204.47983%208.8996%205.50557L10.0062%204.39892C8.36932%202.76199%205.71534%202.76199%204.07842%204.39892L5.18507%205.50557ZM8.8996%205.50557L10.346%206.95192L11.4526%205.84527L10.0062%204.39892L8.8996%205.50557Z'%20fill='%234D596C'/%3e%3crect%20x='6.36328'%20y='7.91895'%20width='1.66667'%20height='8.33333'%20rx='0.833333'%20transform='rotate(-45%206.36328%207.91895)'%20fill='%234D596C'/%3e%3c/svg%3e",y4=e=>B.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},B.createElement("path",{d:"M12.3333 0.333008H1.66659C0.933252 0.333008 0.339919 0.933008 0.339919 1.66634L0.333252 13.6663L2.99992 10.9997H12.3333C13.0666 10.9997 13.6666 10.3997 13.6666 9.66634V1.66634C13.6666 0.933008 13.0666 0.333008 12.3333 0.333008ZM12.3333 9.66634H2.44659L2.05325 10.0597L1.66659 10.4463V1.66634H12.3333V9.66634ZM6.33325 6.99967H7.66659V8.33301H6.33325V6.99967ZM6.33325 2.99967H7.66659V5.66634H6.33325V2.99967Z",fill:"#6F7C90"})),v4=({isAdmin:e=!1})=>{const{email:t,currentSmIds:n,sendTrackingEvent:r,availableFeatures:o,conversationId:s}=S.useContext(et),i=kt(),{userGroupId:a,userId:c}=An()||{},u=S.useRef(!1),[l,b]=S.useState(!1),[y,C]=S.useState(!1),[g,p]=S.useState(!1),[d,f]=S.useState(),[h,m]=S.useState(!1),[I,v]=S.useState(null),[w,A]=S.useState(t),T=ge($b),O=ge(Kb),N=ge(ty),R=ge(ny),k=ge(ey),D=ge(Al),X=ge(gy),z=ge(Tl),H=ge(Sl),Y=ge(_l),G=_t(o,tg),ee=_t(o,Xc),se=_t(o,ag),ae=_t(o,ug),M=_t(o,lg),j=Sg(N),U=_g(c,a,n,j),{data:te}=Xf({senderEmail:t,conversationId:String(s),enabled:ae&&!!t}),{emailHeaders:ce}=te??{},{mutate:ve,reset:Ae,data:ne,isPending:pe,isIdle:He}=g4(),V=S.useCallback(()=>{Ae(),v(null)},[Ae,v]),De=S.useCallback(()=>{t&&n.length&&s&&i(Qo({inboxIds:n,conversationId:s}))},[i,t,n,s]),Ue=S.useCallback((je,tn)=>{je&&s&&tn&&i(Uo({id:je,channelType:"email",conversationId:s,externalResourceId:tn,contactEmail:t})).unwrap().catch(()=>{i(er(null))})},[i,s,t]);if(S.useEffect(()=>{A(t)},[t]),S.useEffect(()=>{var je;if(H){b(!0);const{externalResourceId:tn}=H,Tr=(je=H.forms.find(As=>As.type==="edit"))==null?void 0:je.id;Ue(Tr,tn)}else b(!1),i(Yb())},[H,Ue,i]),S.useEffect(()=>(De(),()=>{i(xl.clearConnectorList())}),[i,De]),S.useEffect(()=>(T&&T.length&&!u.current&&(r(Ng,{numOfCards:T.length,sm_ids:n}),u.current=!0),()=>{(!T||!n||u.current)&&(u.current=!1)}),[T,r,n]),S.useEffect(()=>{s&&n&&n.length&&i(Zo({inboxIds:n,conversationId:s,channelType:"email"}))},[i,n,s]),!t.length||k===J.LOADING)return E.jsx(bE,{});const Xe=(je=!1)=>{r(Gg,{connector_name:X,source:je?"main_button":"create_icon",sm_ids:n})},Et=(je=!1)=>{C(!0),Xe(je)},xr=()=>{p(!0),r(jg)},Ft=je=>{r(je,d),Y?m(!0):C(!1)},ut=je=>{if(H){const{connectorName:tn,title:Tr}=H;r(je,{connector_name:tn,card_title:Tr,sm_ids:n,ug_id:a})}Y?m(!0):i(er(null))},ze=()=>{C(!1),i(er(null)),f(void 0),m(!1)},wr=()=>{De(),i(xl.clearConnectorList())},en=()=>{r(r2,{sm_ids:n,ug_id:a,connector_names:j})},Ca=[{label:"Go back",variant:"text",action:ze},{label:"Stay",variant:"contained",action:()=>m(!1)}],so=D.length>0,Ar=z.length>0,ws=()=>so||Ar?E.jsx(GE,{haveCreateObjects:so,haveLinkObjects:Ar,onCreateClick:()=>Et(!0),onLinkClick:()=>p(!0)}):E.jsx(of,{isAdmin:e,hideHeading:!0});return E.jsxs(bu,{"data-testid":Array.isArray(T)?"connector-agent":"loading",id:"connector-agent-container",stopOverflow:y||g,children:[E.jsx(yf,{shown:h,setShown:m,title:Gb,description:jb,buttons:Ca}),E.jsx(M2,{children:O?E.jsxs(E.Fragment,{children:[E.jsxs(x.Stack,{direction:"row",justifyContent:"space-between",marginBottom:"8px",height:"36px",children:[E.jsxs(x.Stack,{direction:"row",alignItems:"center",children:[E.jsx(gu,{}),E.jsx(mu,{variant:"h2",children:fg})]}),E.jsx(x.Stack,{direction:"row",gap:"4px",children:ee&&(T!=null&&T.length)?E.jsxs(E.Fragment,{children:[so?E.jsx(x.Tooltip,{title:$c,placement:"bottom",children:E.jsx(x.IconButton,{onClick:()=>Et(!1),children:E.jsx("img",{src:m4,alt:"Add",height:"20px"})})}):null,Ar?E.jsx(x.Tooltip,{title:Kc,placement:"bottom",children:E.jsx(x.IconButton,{onClick:xr,children:E.jsx("img",{src:b4,alt:"Link Task",height:"20px"})})}):null]}):null})]}),se?E.jsx(r4,{selectedObject:I,setSelectedObject:v,fetchSearchResults:ve,onReset:V}):null,E.jsxs(Li,{children:[E.jsx(tr,{condition:se&&pe,children:E.jsx(p4,{})},"search"),E.jsx(tr,{condition:se&&!!I&&!He,children:E.jsx(f4,{searchResults:ne??[],selectedObject:I,onReset:V,fetchCards:De})},"results"),E.jsxs(tr,{fallback:!0,children:[ae&&(T!=null&&T.length)?E.jsx(AE,{emailHeaders:ce,selectedEmail:w,setSelectedEmail:A}):null,G?E.jsx(yE,{}):null,E.jsxs(Li,{children:[E.jsxs(tr,{condition:!!T&&T.length>0,children:[E.jsx(Ry,{cards:T,specificCardData:N,email:w??"",specificConnectorApiStatus:R,onCardUnlinking:De}),M?E.jsx(lm,{children:E.jsxs(x.Button,{size:"small",variant:"text",href:U,target:"_blank",onClick:en,children:[E.jsx(y4,{}),eg]})}):null]},"cards-list"),E.jsx(tr,{condition:!(T!=null&&T.length)&&ee,children:ws()},"create-banner")]})]},"cards")]})]}):E.jsx(of,{isAdmin:e})}),E.jsx(sa,{onClose:()=>ut(Kg),isOpen:l,setIsOpen:b,title:Cg,portalId:"connector-layover-portal",backButtonTooltip:"Back",children:E.jsx(vf,{isEdit:!0,onClose:()=>ut($g),onCreateSuccess:wr,metaData:d,setMetaData:f})}),E.jsx(sa,{onClose:()=>Ft(zg),portalId:"connector-layover-portal",isOpen:y,setIsOpen:C,children:E.jsx(vf,{onClose:()=>Ft(Xg),onCreateSuccess:wr,metaData:d,setMetaData:f})}),E.jsx(sa,{onClose:()=>p(!1),portalId:"connector-layover-portal",isOpen:g,setIsOpen:p,children:E.jsx(DE,{setOpenTaskLinking:p,onLinkingSuccess:De})}),!O&&E.jsx(m2,{})]})},C4=({children:e,sendTrackingEvent:t,contactEmail:n,baseUrls:r={},currentSmIds:o=[],metaData:s,availableFeatures:i,conversationId:a,connectorFunctions:c,isAdmin:u=!1})=>{const l=S.useMemo(()=>({email:n,baseUrls:r,currentSmIds:o,metaData:s,conversationId:a,sendTrackingEvent:t||(()=>{}),availableFeatures:i,isAdmin:u,connectorFunctions:c}),[n,r,t,o,s,i,a,u,c]);return E.jsx(et.Provider,{value:l,children:e})},I4=new Fx,E4=({children:e})=>E.jsx(Mx,{client:I4,children:e}),x4=Au({cardList:fy,write:Jb,common:Cb}),w4=h1({reducer:x4,devTools:!0}),A4=({children:e,extraParams:t,contactEmail:n,baseUrls:r,availableFeatures:o,connectorFunctions:s})=>E.jsx(D2,{store:w4,children:E.jsx(x.HiverProvider,{custom:!0,children:E.jsx(E4,{children:E.jsx(C4,{availableFeatures:o,sendTrackingEvent:t==null?void 0:t.sendTrackingEvent,contactEmail:n,currentSmIds:t==null?void 0:t.currentSmIds,metaData:t==null?void 0:t.metaData,conversationId:t==null?void 0:t.conversationId,baseUrls:r,connectorFunctions:s,isAdmin:t==null?void 0:t.isAdmin,children:E.jsx(S.Suspense,{fallback:E.jsx(E.Fragment,{}),children:e})})})})}),T4=x.styled(x.Box)`
883
883
  height: inherit;
884
884
  .MuiScopedCssBaseline-root {
885
885
  height: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "3.1.5-beta.2",
3
+ "version": "3.1.5-beta.3",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",