@worktango/ai-assistant 0.0.102 → 0.0.104-beta.0
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/dist/{Absenteeism-rVl2rdr7.mjs → Absenteeism-mVBQRu3r.mjs} +1 -1
- package/dist/{ActivityFeed-CPxb8Sl3.mjs → ActivityFeed-BvngxLNZ.mjs} +1 -1
- package/dist/{AddUser-BHk3nlcy.mjs → AddUser-DhMLmV60.mjs} +1 -1
- package/dist/{Admin-C0RCeKl_.mjs → Admin-DoqdBtyN.mjs} +1 -1
- package/dist/{Admin-Bitlcn63.mjs → Admin-Ds73xRYS.mjs} +1 -1
- package/dist/{AiGeneral-BUQ7LF8v.mjs → AiGeneral-D37TYkpQ.mjs} +1 -1
- package/dist/{AiScoring-BhE_Vme3.mjs → AiScoring-kxMCkJvV.mjs} +1 -1
- package/dist/{AiText-DmgZYDrd.mjs → AiText-BnAXDJyX.mjs} +1 -1
- package/dist/{Anniversary-_FsxUZfD.mjs → Anniversary-Jg8jYpsO.mjs} +1 -1
- package/dist/{Appreciation-f24hxEO0.mjs → Appreciation-CCz4f4bQ.mjs} +1 -1
- package/dist/{ArrowDown-BEcHNVs0.mjs → ArrowDown-CAUHt4Sf.mjs} +1 -1
- package/dist/{ArrowLeft-OmnUYz11.mjs → ArrowLeft-BYk347P8.mjs} +1 -1
- package/dist/{ArrowRight-KP4GDAaF.mjs → ArrowRight-Dz1BK-Nf.mjs} +1 -1
- package/dist/{ArrowUp-BXjwUVfz.mjs → ArrowUp-BdbC5rzh.mjs} +1 -1
- package/dist/{Attachment-Wgqhkquc.mjs → Attachment-Dev6iLal.mjs} +1 -1
- package/dist/{BeQuickDontHurry-pfxW2mOU.mjs → BeQuickDontHurry-74rpNPB5.mjs} +1 -1
- package/dist/{Birthday-D-WF9LQ6.mjs → Birthday-a4hTzS9Q.mjs} +1 -1
- package/dist/{BrandPromise-Bb3pbZI0.mjs → BrandPromise-lOvNn4SQ.mjs} +1 -1
- package/dist/{BrandVision-BKysONbz.mjs → BrandVision-IQ1ZZ6dv.mjs} +1 -1
- package/dist/{Calendar-5YfVRDOS.mjs → Calendar-B6K-3odP.mjs} +1 -1
- package/dist/{CaretDn-D9f-yNOM.mjs → CaretDn-CPnlTZmh.mjs} +1 -1
- package/dist/{CaretDown-DV4YFgEL.mjs → CaretDown-Ct57d8Iw.mjs} +1 -1
- package/dist/{CaretLeft-CYLonOPf.mjs → CaretLeft-9Zk9kQU9.mjs} +1 -1
- package/dist/{CaretRight-BATTgQcY.mjs → CaretRight-DsJtAbGH.mjs} +1 -1
- package/dist/{CaretUp-skfzEzE-.mjs → CaretUp-Dt9B1fT7.mjs} +1 -1
- package/dist/{ChallengeAccepted-ByfUavIv.mjs → ChallengeAccepted-LooMm5_u.mjs} +1 -1
- package/dist/{CheckIn-BBatLw3v.mjs → CheckIn-CwBC1oPw.mjs} +1 -1
- package/dist/{CheckIns-CMIpqA9i.mjs → CheckIns-DxcxwbNF.mjs} +1 -1
- package/dist/{CheckSeal-HyGcF3kH.mjs → CheckSeal-D_LVwuU9.mjs} +1 -1
- package/dist/{Checkmark-SXDOVBhC.mjs → Checkmark-DWDFanW9.mjs} +1 -1
- package/dist/{Clock-bNdy8XNS.mjs → Clock-BtgOopgB.mjs} +1 -1
- package/dist/{Close-D6loZLJT.mjs → Close-C0PKBqel.mjs} +1 -1
- package/dist/{CloudDownload-DzdcX3Rh.mjs → CloudDownload-BtToz1Li.mjs} +1 -1
- package/dist/{Comment-B1KchbjX.mjs → Comment-CxrgyL9e.mjs} +1 -1
- package/dist/{Comments-C85AQx4_.mjs → Comments-npgcdTpL.mjs} +1 -1
- package/dist/{Connections-C2Cl0X9O.mjs → Connections-3R0Na7CF.mjs} +1 -1
- package/dist/{Copy-B2XqxJf8.mjs → Copy-iTdkV28L.mjs} +1 -1
- package/dist/{CustomQuestion-BeOvr_Fd.mjs → CustomQuestion-Bq0YaMnx.mjs} +1 -1
- package/dist/{CustomerSuccess-DyKXTbfD.mjs → CustomerSuccess-CyIUZ1Cq.mjs} +1 -1
- package/dist/{DatePicker-9Axr_T8V.mjs → DatePicker-YIEmqD7V.mjs} +1 -1
- package/dist/{Dot-Dz2tsKry.mjs → Dot-CDvjzd5-.mjs} +1 -1
- package/dist/{Download-DY5qufnP.mjs → Download-DBJiw6FZ.mjs} +1 -1
- package/dist/{Drag-Exte_z2j.mjs → Drag-1beb8KLN.mjs} +1 -1
- package/dist/{Earn-B_HvHLE8.mjs → Earn-cJKyHvqk.mjs} +1 -1
- package/dist/{Email-DCnDvbJh.mjs → Email-CGpLmZoW.mjs} +1 -1
- package/dist/{EmojiDisplay-iWC67k8G.mjs → EmojiDisplay-BwNxvIMU.mjs} +2 -2
- package/dist/{EmojiPicker-Bc68yJ6L.mjs → EmojiPicker-BzW1aARK.mjs} +2 -2
- package/dist/{EnpsSurvey-D5M1wdXx.mjs → EnpsSurvey-SgCd1ZYi.mjs} +1 -1
- package/dist/{Expired-2UPQju2v.mjs → Expired-Cnb3JWq_.mjs} +1 -1
- package/dist/{Eye-zNgYppsa.mjs → Eye-BR0s23sJ.mjs} +1 -1
- package/dist/{Feedback-CseDYuf9.mjs → Feedback-DUAdnqo7.mjs} +1 -1
- package/dist/{Feedback-CHAoSZ-e.mjs → Feedback-rZy2bfw2.mjs} +1 -1
- package/dist/{Filter-CTQqsKR1.mjs → Filter-QxgnsQoB.mjs} +1 -1
- package/dist/{Flag-CTqv71s1.mjs → Flag-B3x08JeA.mjs} +1 -1
- package/dist/{Giphy-GRfkufj-.mjs → Giphy-C2YBOGKv.mjs} +1 -1
- package/dist/{GoalCount-CwJK7r2G.mjs → GoalCount-ChbQ4igz.mjs} +1 -1
- package/dist/{GoalPercent-0Io8hssj.mjs → GoalPercent-ByFgKRO4.mjs} +1 -1
- package/dist/{GoalTask-D5DQcDed.mjs → GoalTask-2_Wo1cjp.mjs} +1 -1
- package/dist/{GoalTask-CMmL0o3T.mjs → GoalTask-DIWZvuxa.mjs} +1 -1
- package/dist/{Goals-DIFhspIO.mjs → Goals-CVTm-UEO.mjs} +1 -1
- package/dist/{Goals-CcfF7RME.mjs → Goals-ikoB8yTG.mjs} +1 -1
- package/dist/{Growth-D-22uIzc.mjs → Growth-RbF4SydY.mjs} +1 -1
- package/dist/{Hamburger-mhbN7uE9.mjs → Hamburger-DcQwzRwc.mjs} +1 -1
- package/dist/{Help-qw3f3-nG.mjs → Help-DwQb0652.mjs} +1 -1
- package/dist/{HighFive--lXyfgeJ.mjs → HighFive-B9tmeMCR.mjs} +1 -1
- package/dist/{HighFive-0M-xfwMl.mjs → HighFive-CjQgDpKp.mjs} +1 -1
- package/dist/{Home-T2dXy95Z.mjs → Home-C2SHarSS.mjs} +1 -1
- package/dist/{Home-CDQnE172.mjs → Home-vUL7KRyO.mjs} +1 -1
- package/dist/{HorizontalLine-BzRZTIuL.mjs → HorizontalLine-BvvXTvlv.mjs} +1 -1
- package/dist/{Hourglass-BjoxlQar.mjs → Hourglass-bQcxxiGk.mjs} +1 -1
- package/dist/{Image-BFdLcsms.mjs → Image--S25x7G6.mjs} +1 -1
- package/dist/{ImageFile-B_ic6FuQ.mjs → ImageFile-CIrKJrr9.mjs} +1 -1
- package/dist/{InGoodCompany-BWBc6IyR.mjs → InGoodCompany-B5TpDXcV.mjs} +1 -1
- package/dist/{Incentives-B5_4I_G2.mjs → Incentives-CFCFdtM4.mjs} +1 -1
- package/dist/{Info-Dya_nKuD.mjs → Info-0arlCK7F.mjs} +1 -1
- package/dist/{Insights-LFi4OsO6.mjs → Insights-C3gsYo1B.mjs} +1 -1
- package/dist/{Insights-BCV9grI0.mjs → Insights-CiKO-Vop.mjs} +1 -1
- package/dist/{Integrations-CWtB9XRS.mjs → Integrations-CIxT_taO.mjs} +1 -1
- package/dist/{KazooLogo-CBmSj1YI.mjs → KazooLogo-DnLAgnk5.mjs} +1 -1
- package/dist/{KnowYourAudience-ocj4e3J3.mjs → KnowYourAudience-DxR1pK8n.mjs} +1 -1
- package/dist/{Launch-CVVFODFi.mjs → Launch-CKcUHly5.mjs} +1 -1
- package/dist/{Link-dFaUWikq.mjs → Link-Ddj3rLtT.mjs} +1 -1
- package/dist/{LinkArrow-BSjYhnt4.mjs → LinkArrow-CQ2ubbBc.mjs} +1 -1
- package/dist/{Loading-DniqlIxJ.mjs → Loading-CRVmpqnI.mjs} +1 -1
- package/dist/{Lock-k9M7pi-o.mjs → Lock-FANNS2po.mjs} +1 -1
- package/dist/{Management-CHPxM9jz.mjs → Management-DMg8N76w.mjs} +1 -1
- package/dist/{MeatballMenu-DcoHaLh-.mjs → MeatballMenu-BXS0zQrq.mjs} +1 -1
- package/dist/{Messages-BUucHlkw.mjs → Messages-Bs4cXPZc.mjs} +1 -1
- package/dist/{Microphone-CHy3rB6I.mjs → Microphone-D1sVUAJp.mjs} +1 -1
- package/dist/{Mobile-BXfKT6xg.mjs → Mobile-BbGfwgbl.mjs} +1 -1
- package/dist/{Nomination-DkDEBoAw.mjs → Nomination-DZVKI7CH.mjs} +1 -1
- package/dist/{NominationsAndAwards-DrSPquBi.mjs → NominationsAndAwards-DilTmruR.mjs} +1 -1
- package/dist/{Notification-92QSAubc.mjs → Notification-3-qKjmZj.mjs} +1 -1
- package/dist/{Okrs-DXxGDE1T.mjs → Okrs-DXCoTU4U.mjs} +1 -1
- package/dist/{Pause-Bqc0NvOO.mjs → Pause-DTYwZous.mjs} +1 -1
- package/dist/{PeerToPeer-DdbyESo8.mjs → PeerToPeer-BdVTn2N2.mjs} +1 -1
- package/dist/{Pencil-BPnHVuCr.mjs → Pencil-B2zu-htF.mjs} +1 -1
- package/dist/{People-BFIER8ka.mjs → People-DbaFGC_Q.mjs} +1 -1
- package/dist/{PerformanceManagement-CxnfghHG.mjs → PerformanceManagement-Bj5gA2-y.mjs} +1 -1
- package/dist/{Pin-CEBVmqiu.mjs → Pin-82tUXqmt.mjs} +1 -1
- package/dist/{PinnedIconAward-BX-1nKBP.mjs → PinnedIconAward-u4aEJLNK.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-31AdmqJ6.mjs → PinnedIconBrightIdea-CrenDBAc.mjs} +1 -1
- package/dist/{PinnedIconBullseye-BKF99wUd.mjs → PinnedIconBullseye-C7p4CcSY.mjs} +1 -1
- package/dist/{PinnedIconChampagne-Dud-BeO_.mjs → PinnedIconChampagne-DdF6Cerf.mjs} +1 -1
- package/dist/{PinnedIconCheer-BA4kFkti.mjs → PinnedIconCheer-Bt7k2IOb.mjs} +1 -1
- package/dist/{PinnedIconCrown-BLc0s0Fc.mjs → PinnedIconCrown-NnZocAt3.mjs} +1 -1
- package/dist/{PinnedIconDiamond-CF9_NERO.mjs → PinnedIconDiamond-wgPM20vp.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-DEWzFQpQ.mjs → PinnedIconHoleInOne-BkK4DxRn.mjs} +1 -1
- package/dist/{PinnedIconMedal-Dc-NCBmM.mjs → PinnedIconMedal-vHVzGRdO.mjs} +1 -1
- package/dist/{PinnedIconMetrics-BpxhPSox.mjs → PinnedIconMetrics-X3hRbZQz.mjs} +1 -1
- package/dist/{PinnedIconPin-BcOt1fDj.mjs → PinnedIconPin-Xm_awzdU.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-DWh2a5SC.mjs → PinnedIconRockAndRoll-23mD8lti.mjs} +1 -1
- package/dist/{PinnedIconRocket-D3uFhD7g.mjs → PinnedIconRocket-DEG_uzpj.mjs} +1 -1
- package/dist/{PinnedIconStrength-DN7TqgYD.mjs → PinnedIconStrength-D4Tr8H8w.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-Cmzfyhv1.mjs → PinnedIconTeddyBear-ClTqYym4.mjs} +1 -1
- package/dist/{PlatformLogo-BdE_NUmm.mjs → PlatformLogo-B1S5yfLl.mjs} +1 -1
- package/dist/{Plus-Jn91XDAC.mjs → Plus-Cu3QOTwe.mjs} +1 -1
- package/dist/{Popper-SjDumyFi.mjs → Popper-BXjgA4bw.mjs} +1 -1
- package/dist/{PrivateEye-DMb7Vch7.mjs → PrivateEye-oUVeYuNw.mjs} +1 -1
- package/dist/{PrivatePushPin-DOrwnn93.mjs → PrivatePushPin-BaNymcmN.mjs} +1 -1
- package/dist/{Processing-BHVf3xZG.mjs → Processing-hQcTZIMn.mjs} +1 -1
- package/dist/{Productivity-CK4oxf5_.mjs → Productivity-OnpDDE7-.mjs} +1 -1
- package/dist/{ProgressCircle-BiKA8vsY.mjs → ProgressCircle-CEZoqVKf.mjs} +1 -1
- package/dist/{PulseSurvey-BUxF8Tgf.mjs → PulseSurvey-CFHLpzbX.mjs} +1 -1
- package/dist/{PushPin-CUmEf2Kx.mjs → PushPin-BBhZsmoF.mjs} +1 -1
- package/dist/{QuotesLeft-C-A4aZT7.mjs → QuotesLeft-BDZ_3Aob.mjs} +1 -1
- package/dist/{QuotesRight-B1ZJq6RN.mjs → QuotesRight-BOJtlAPA.mjs} +1 -1
- package/dist/{Recognition-C9S1LWzN.mjs → Recognition-9dSA5Hrm.mjs} +1 -1
- package/dist/{Recognition-DpKIPEKZ.mjs → Recognition-CtJCeKOY.mjs} +1 -1
- package/dist/{Retention-D5eWNUaD.mjs → Retention-CLDpoNkI.mjs} +1 -1
- package/dist/{Rewards-C6z_EHwc.mjs → Rewards-CrkT9Ez1.mjs} +1 -1
- package/dist/{Rewards-DpU4XrDw.mjs → Rewards-Xpeawne2.mjs} +1 -1
- package/dist/{RewardsCatalog-Dvf6V7vF.mjs → RewardsCatalog-Bw-QjLFA.mjs} +1 -1
- package/dist/{Roadmap-CzeEws-6.mjs → Roadmap-CkKQOS5v.mjs} +1 -1
- package/dist/{Search-BHFc_EyL.mjs → Search-BxJaOlth.mjs} +1 -1
- package/dist/{Security-DFXKkntt.mjs → Security-CMm2MxnC.mjs} +1 -1
- package/dist/{SendRecognition-ClmmS-cO.mjs → SendRecognition-BcqwaZgp.mjs} +1 -1
- package/dist/{ShareLink-BnIfHUsH.mjs → ShareLink-IZtsh-uY.mjs} +1 -1
- package/dist/{SidebarCollapse-DA6JERLf.mjs → SidebarCollapse-DwJjYhRQ.mjs} +1 -1
- package/dist/{Skill-BfIGLLsa.mjs → Skill-DQNUZYpS.mjs} +1 -1
- package/dist/{Skills-BjTEBmvq.mjs → Skills-B9Opo2oE.mjs} +1 -1
- package/dist/{Smiley-C7PlZfb9.mjs → Smiley-I4Ij9s6d.mjs} +1 -1
- package/dist/{Stop-0Ilvt5s6.mjs → Stop-BWjT5YEF.mjs} +1 -1
- package/dist/{Survey-C6KSucez.mjs → Survey-B1w2cjxW.mjs} +1 -1
- package/dist/{Surveys-CY9IjlRL.mjs → Surveys-DxGA8x3P.mjs} +1 -1
- package/dist/{SyncUps-CFAFQdZP.mjs → SyncUps-CwALJ7rQ.mjs} +1 -1
- package/dist/{Syncs-Do8SZHXD.mjs → Syncs-BaFCg3Tp.mjs} +1 -1
- package/dist/{TalentReview-DClMO0AZ.mjs → TalentReview-BKkwOOeG.mjs} +1 -1
- package/dist/{TalentReview-DwKO0yOP.mjs → TalentReview-BRBsosGG.mjs} +1 -1
- package/dist/{TalentReviewInsights-D-4NFsqU.mjs → TalentReviewInsights-4EPUFDaH.mjs} +1 -1
- package/dist/{TaskCompleted-Cr-QiYMR.mjs → TaskCompleted-BMS3Aaqk.mjs} +1 -1
- package/dist/{Team-CXlw4zC2.mjs → Team-BIbnhzpI.mjs} +1 -1
- package/dist/{Teams-3U9hA_0U.mjs → Teams-CLOHQAjj.mjs} +1 -1
- package/dist/{TextBold-Bb2qPjg1.mjs → TextBold-LmMUjzX5.mjs} +1 -1
- package/dist/{TextBulletList-C25-vprd.mjs → TextBulletList-D4Zr7CsI.mjs} +1 -1
- package/dist/{TextInput-BWO23vUr.mjs → TextInput-CxSmkKWn.mjs} +1 -1
- package/dist/{TextItalic-CqWOybgW.mjs → TextItalic-DbaBG60l.mjs} +1 -1
- package/dist/{TextNumberList-DEqAVCcA.mjs → TextNumberList-CVOURSkz.mjs} +1 -1
- package/dist/{TextUnderline-DgFGMXI1.mjs → TextUnderline-CnN_VLwT.mjs} +1 -1
- package/dist/{Toggle-C0qudbmI.mjs → Toggle-DtOmVzRR.mjs} +1 -1
- package/dist/{Translate-DMp-8jNM.mjs → Translate-DeHWEHFQ.mjs} +1 -1
- package/dist/{Trash-BfWg_NHF.mjs → Trash-DFpIdFSy.mjs} +1 -1
- package/dist/{TrendDown-DlygaGMD.mjs → TrendDown-DXa8KRAh.mjs} +1 -1
- package/dist/{TrendUp-BCYwZrNW.mjs → TrendUp-DnfgbIG5.mjs} +1 -1
- package/dist/{Undo-CggM-N_l.mjs → Undo-CTgc08M0.mjs} +1 -1
- package/dist/{Unplugged-DOh3y66Y.mjs → Unplugged-OpkoWDuF.mjs} +1 -1
- package/dist/{UpDownCaret-BYmV53Gr.mjs → UpDownCaret-B1ZNVC07.mjs} +1 -1
- package/dist/{VerticalLine-3AJWBAg4.mjs → VerticalLine-rOMAaO5z.mjs} +1 -1
- package/dist/{Warning-BXZ_4RMj.mjs → Warning-rVedSFxt.mjs} +1 -1
- package/dist/{WarningNoOutline-iF32M3OM.mjs → WarningNoOutline-lZIVY_1e.mjs} +1 -1
- package/dist/{YesAnd-BE3EI_aZ.mjs → YesAnd-C2S6ZRee.mjs} +1 -1
- package/dist/{emoji-CCG-hXFp.mjs → emoji-Xki59egZ.mjs} +1 -1
- package/dist/{react-apexcharts.min-BE2E5o41.mjs → react-apexcharts.min-CTOphLMa.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +2 -2
- package/dist/{reactComponent-CigEpFeg.mjs → reactComponent-BKsSqwz7.mjs} +197 -195
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as i } from "./reactComponent-
|
|
1
|
+
import { j as i } from "./reactComponent-BKsSqwz7.mjs";
|
|
2
2
|
function t({ className: r = "primary-foreground" }) {
|
|
3
3
|
return /* @__PURE__ */ i.jsxs("svg", { width: "196", height: "196", viewBox: "0 0 196 196", className: r, children: [
|
|
4
4
|
/* @__PURE__ */ i.jsx("circle", { cx: "98", cy: "98", r: "98", fill: "currentColor" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as C } from "./reactComponent-
|
|
1
|
+
import { j as C } from "./reactComponent-BKsSqwz7.mjs";
|
|
2
2
|
function L({ illustrationColor: t }) {
|
|
3
3
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ C.jsx("title", { children: "Yes and illustration" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as A, g as yt, r as _t, h as Et, i as Ct, k as he } from "./reactComponent-
|
|
1
|
+
import { _ as A, g as yt, r as _t, h as Et, i as Ct, k as he } from "./reactComponent-BKsSqwz7.mjs";
|
|
2
2
|
import s from "react";
|
|
3
3
|
function te(i) {
|
|
4
4
|
"@babel/helpers - typeof";
|
package/dist/react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, n as o, p as a, m as n, q as i, u as g, v as p, t as A, s as m } from "./reactComponent-
|
|
1
|
+
import { A as e, n as o, p as a, m as n, q as i, u as g, v as p, t as A, s as m } from "./reactComponent-BKsSqwz7.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AiAssistant,
|
|
4
4
|
o as AiAssistantSettingsComponent,
|
package/dist/react.umd.js
CHANGED
|
@@ -342,8 +342,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
registerProcessor('vad-capture-processor', VADCaptureProcessor);
|
|
345
|
-
`,i=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(i);try{await((r=this.audioContext)==null?void 0:r.audioWorklet.addModule(a))}finally{URL.revokeObjectURL(a)}}async calibrateNoiseFloor(){const i=Date.now(),a=[],r=()=>{const n=this.getAudioEnergy();if(a.push(n),Date.now()-i<1e3)requestAnimationFrame(r);else{a.sort((u,f)=>u-f);const o=Math.floor(a.length*.9),s=a.slice(0,o),l=s.reduce((u,f)=>u+f)/s.length;this.noiseFloor=l+20,this.noiseFloor=Math.max(Math.min(this.noiseFloor,-20),-35)}};return new Promise(n=>{r(),setTimeout(n,1e3)})}getFrequencySpectrum(){var _;if(!this.analyser)return{energy:-100,highFreqRatio:0,variability:0};const e=this.analyser.frequencyBinCount,i=new Uint8Array(e);this.analyser.getByteFrequencyData(i);let a=0,r=0,n=0;const s=Ze((_=this.audioContext)==null?void 0:_.sampleRate,0)/2/e;for(let F=0;F<e;F++){const c=F*s,m=i[F]/255,A=m*m;a+=A,c<2e3?r+=A:c<4e3&&(n+=A)}const l=Math.sqrt(a/e),u=20*Math.log10(Math.max(l,1e-5)),f=r+n,d=a>0?f/a:0;this.recentEnergyHistory.push(u),this.recentEnergyHistory.length>10&&this.recentEnergyHistory.shift();let h=0;if(this.recentEnergyHistory.length>5){const F=this.recentEnergyHistory.slice(-5),c=F.reduce((A,p)=>A+p)/F.length,m=F.reduce((A,p)=>A+Math.pow(p-c,2),0)/F.length;h=Math.sqrt(m)}return{energy:u,highFreqRatio:d,variability:h}}getAudioEnergy(){if(!this.analyser)return-100;const e=this.analyser.frequencyBinCount,i=new Uint8Array(e);this.analyser.getByteFrequencyData(i);let a=0;for(let o=0;o<e;o++){const s=i[o]/255;a+=s*s}const r=Math.sqrt(a/e);return 20*Math.log10(Math.max(r,1e-5))}flushChunk(e){if(this.stopped)return;const i=this.speechBuffer.slice(this.lastFlushIndex);if(i.length===0)return;const a=i.reduce((r,n)=>r+n.length,0);if(a>this.config.frameSamples*2){const r=new Float32Array(a);let n=0;for(const o of i)r.set(o,n),n+=o.length;this.lastFlushIndex=this.speechBuffer.length,this.processingQueue=this.processingQueue.then(async()=>{var o,s;try{await((s=(o=this.config).onSpeechEnd)==null?void 0:s.call(o,r,e))}catch(l){console.error("Error in onSpeechEnd callback:",l)}})}if(e){const r=Math.floor(this.config.sampleRate*.1/this.config.frameSamples);this.speechBuffer=this.speechBuffer.slice(-r),this.lastFlushIndex=0,this.currentBufferSize=this.speechBuffer.reduce((n,o)=>n+o.length*4,0)}else{const r=this.speechBuffer.slice(this.lastFlushIndex);this.currentBufferSize=r.reduce((n,o)=>n+o.length*4,0)}}startVADLoop(){const e=()=>{var d,h;if(this.stopped)return;const{energy:i,highFreqRatio:a,variability:r}=this.getFrequencySpectrum(),n=Math.max(this.config.threshold,this.noiseFloor),o=i>n,s=a>.25,l=r>1,u=i>n+10;let f=!1;if(o?u?(f=!0,this.speechFrameCount=3):s||l?(this.speechFrameCount++,f=this.speechFrameCount>=2):(this.speechFrameCount=Math.max(0,this.speechFrameCount-1),f=!1):(this.speechFrameCount=0,f=!1),f){if(!this.isSpeaking){if(this.isSpeaking=!0,this.preSpeechBuffer.length>0){this.speechBuffer=[...this.preSpeechBuffer,...this.speechBuffer];const _=this.preSpeechBuffer.reduce((F,c)=>F+c.length*4,0);this.currentBufferSize=_}else this.currentBufferSize=0;this.lastFlushIndex=0,(h=(d=this.config).onSpeechStart)==null||h.call(d)}this.silenceStart=null}else this.isSpeaking&&(this.silenceStart?Date.now()-this.silenceStart>this.config.minSilenceDuration&&(this.isSpeaking=!1,this.flushChunk(!0),this.silenceStart=null):this.silenceStart=Date.now());this.animationFrameId=requestAnimationFrame(e)};e()}stop(){this.stopped=!0,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.workletNode&&(this.workletNode.disconnect(),this.workletNode=null),this.analyser&&(this.analyser.disconnect(),this.analyser=null),this.source&&(this.source.disconnect(),this.source=null),this.stream&&(this.stream.getTracks().forEach(e=>e.stop()),this.stream=null),this.audioContext&&(this.audioContext.close(),this.audioContext=null),this.isSpeaking=!1,this.speechBuffer=[],this.preSpeechBuffer=[],this.silenceStart=null,this.lastFlushIndex=0,this.currentBufferSize=0}setSensitivity(e){this.config.threshold=e}async recalibrate(){await this.calibrateNoiseFloor()}getCurrentAudioLevel(){return this.getAudioEnergy()}}const X8="ai-assistant-voice-input-enabled",Y8="ai-assistant-voice-output-enabled",yW=500;function wW({getTranscription:t,isVoiceInputEnabled:e,setIsVoiceInputEnabled:i,isVoiceOutputEnabled:a,setIsVoiceOutputEnabled:r,setPrompt:n,selectedConversationId:o,setVoiceInputProcessing:s,setVoiceInputTranscribing:l,isCoachModeEnabled:u,propRefs:f}){M.useEffect(()=>{const m=localStorage.getItem(X8),A=localStorage.getItem(Y8);m!==null&&i(m==="true"),A!==null&&r(A==="true")},[]);const d=()=>{const m=!e;i(m),localStorage.setItem(X8,String(m))},h=()=>{const m=!a;r(m),localStorage.setItem(Y8,String(m))},_=M.useRef(n);_.current=n,M.useEffect(()=>{let m=null;const A=setTimeout(()=>{e&&(m=m||new bW({minSilenceDuration:yW,onSpeechStart:()=>{s(!0)},onSpeechEnd:async p=>{var C;const w=await AW(p),b=await pW(w);if(s(!1),b.length<40*1024)return;l(!0);const y=await t(b).catch(v=>(console.error("Error getting transcription:",v),null)).finally(()=>{l(!1)}),k=(C=y==null?void 0:y[0])==null?void 0:C.transcript;k&&(u?f.current.handleSendUserMessage({conversationId:o,messageText:k}):_.current(o,v=>`${Ze(v,"")} ${k}`.trim()))}}),m.init().then(Ei).catch(p=>{console.error("Error initializing VoiceActivityDetection:",p)}))},50);return()=>{clearTimeout(A),m&&m.stop()}},[e,o,u]);const[F,c]=M.useState(!1);return g.jsx(mo,{isOpen:F,onSetOpen:c,parent:g.jsx($i,{onClick:Wr(c,!F),variant:e&&a?"primary":e||a?"system":"transparent",size:"small",style:{width:"100%",textTransform:"uppercase",fontSize:"11px"},children:"voice"}),popoverComponent:g.jsx("div",{children:g.jsxs(ot,{direction:"column",gap:"16px",children:[g.jsx(Fh,{level:"3",children:"Voice controls"}),g.jsxs(ot,{direction:"row",gap:"8px",alignItems:"center",justifyContent:"space-between",children:[g.jsx("label",{htmlFor:"ai-assistant-voice-input-toggle",children:"Voice Input"}),g.jsx(X5,{checked:e,onChange:d,label:"Voice input","data-testid":"ai-assistant-voice-input-toggle",id:"ai-assistant-voice-input-toggle"})]}),g.jsxs(ot,{direction:"row",gap:"8px",alignItems:"center",justifyContent:"space-between",children:[g.jsx("label",{htmlFor:"ai-assistant-voice-output-toggle",children:"Voice Output"}),g.jsx(X5,{checked:a,onChange:h,label:"Voice output","data-testid":"ai-assistant-voice-output-toggle",id:"ai-assistant-voice-output-toggle"})]})]})}),position:"bottom-start"})}const kW={half:"160px",full:"240px"},xW={half:"50%",full:"
|
|
346
|
-
`)):mt&&(ce.preventDefault(),We({messageText:tt}))},{filteredConversations:ae}=M.useMemo(()=>{const ce=Object.values(Q).sort((nt,gt)=>gt.updatedAt.getTime()-nt.updatedAt.getTime()),Ie=Ae.trim().toLowerCase(),kt=Ie?ce.filter(nt=>{var gt;return((gt=nt.messages)==null?void 0:gt.some(te=>te.messageText.toLowerCase().includes(Ie)))||nt.title.toLowerCase().includes(Ie)}):ce,mt={};for(const nt of kt)mt[nt.id]=nt;return{filteredConversations:mt}},[Ae,Q]),[he,De]=M.useState(Z8),[Ee,Ye]=M.useState(!1),qe=M.useMemo(()=>{var Ie;const ce=ht?Q[ht]:void 0;return ce?((Ie=ce==null?void 0:ce.messages)==null?void 0:Ie.slice(-1*he))||[]:[]},[Q,he,ht]),ut=!!((ie=me==null?void 0:me.messages)!=null&&ie.length&&((ke=me==null?void 0:me.messages)==null?void 0:ke.length)>he);M.useEffect(()=>{if(Ee){const ce=[];return ce.push(setTimeout(()=>{De(Ie=>Ie+Z8),ce.push(setTimeout(()=>{Ye(!1)},50))},100)),()=>ce.forEach(clearTimeout)}},[Ee,he]);const He=qe.length===0&&!(me!=null&&me.isLoading)&&!ht&&!Oe&&!Ki&&s,it=p&&ee,Ct=p?!!tt:!0;return g.jsxs(ot,{direction:"column",gap:"24px",className:ra["ai-assistant-popup-container"],style:{
|
|
345
|
+
`,i=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(i);try{await((r=this.audioContext)==null?void 0:r.audioWorklet.addModule(a))}finally{URL.revokeObjectURL(a)}}async calibrateNoiseFloor(){const i=Date.now(),a=[],r=()=>{const n=this.getAudioEnergy();if(a.push(n),Date.now()-i<1e3)requestAnimationFrame(r);else{a.sort((u,f)=>u-f);const o=Math.floor(a.length*.9),s=a.slice(0,o),l=s.reduce((u,f)=>u+f)/s.length;this.noiseFloor=l+20,this.noiseFloor=Math.max(Math.min(this.noiseFloor,-20),-35)}};return new Promise(n=>{r(),setTimeout(n,1e3)})}getFrequencySpectrum(){var _;if(!this.analyser)return{energy:-100,highFreqRatio:0,variability:0};const e=this.analyser.frequencyBinCount,i=new Uint8Array(e);this.analyser.getByteFrequencyData(i);let a=0,r=0,n=0;const s=Ze((_=this.audioContext)==null?void 0:_.sampleRate,0)/2/e;for(let F=0;F<e;F++){const c=F*s,m=i[F]/255,A=m*m;a+=A,c<2e3?r+=A:c<4e3&&(n+=A)}const l=Math.sqrt(a/e),u=20*Math.log10(Math.max(l,1e-5)),f=r+n,d=a>0?f/a:0;this.recentEnergyHistory.push(u),this.recentEnergyHistory.length>10&&this.recentEnergyHistory.shift();let h=0;if(this.recentEnergyHistory.length>5){const F=this.recentEnergyHistory.slice(-5),c=F.reduce((A,p)=>A+p)/F.length,m=F.reduce((A,p)=>A+Math.pow(p-c,2),0)/F.length;h=Math.sqrt(m)}return{energy:u,highFreqRatio:d,variability:h}}getAudioEnergy(){if(!this.analyser)return-100;const e=this.analyser.frequencyBinCount,i=new Uint8Array(e);this.analyser.getByteFrequencyData(i);let a=0;for(let o=0;o<e;o++){const s=i[o]/255;a+=s*s}const r=Math.sqrt(a/e);return 20*Math.log10(Math.max(r,1e-5))}flushChunk(e){if(this.stopped)return;const i=this.speechBuffer.slice(this.lastFlushIndex);if(i.length===0)return;const a=i.reduce((r,n)=>r+n.length,0);if(a>this.config.frameSamples*2){const r=new Float32Array(a);let n=0;for(const o of i)r.set(o,n),n+=o.length;this.lastFlushIndex=this.speechBuffer.length,this.processingQueue=this.processingQueue.then(async()=>{var o,s;try{await((s=(o=this.config).onSpeechEnd)==null?void 0:s.call(o,r,e))}catch(l){console.error("Error in onSpeechEnd callback:",l)}})}if(e){const r=Math.floor(this.config.sampleRate*.1/this.config.frameSamples);this.speechBuffer=this.speechBuffer.slice(-r),this.lastFlushIndex=0,this.currentBufferSize=this.speechBuffer.reduce((n,o)=>n+o.length*4,0)}else{const r=this.speechBuffer.slice(this.lastFlushIndex);this.currentBufferSize=r.reduce((n,o)=>n+o.length*4,0)}}startVADLoop(){const e=()=>{var d,h;if(this.stopped)return;const{energy:i,highFreqRatio:a,variability:r}=this.getFrequencySpectrum(),n=Math.max(this.config.threshold,this.noiseFloor),o=i>n,s=a>.25,l=r>1,u=i>n+10;let f=!1;if(o?u?(f=!0,this.speechFrameCount=3):s||l?(this.speechFrameCount++,f=this.speechFrameCount>=2):(this.speechFrameCount=Math.max(0,this.speechFrameCount-1),f=!1):(this.speechFrameCount=0,f=!1),f){if(!this.isSpeaking){if(this.isSpeaking=!0,this.preSpeechBuffer.length>0){this.speechBuffer=[...this.preSpeechBuffer,...this.speechBuffer];const _=this.preSpeechBuffer.reduce((F,c)=>F+c.length*4,0);this.currentBufferSize=_}else this.currentBufferSize=0;this.lastFlushIndex=0,(h=(d=this.config).onSpeechStart)==null||h.call(d)}this.silenceStart=null}else this.isSpeaking&&(this.silenceStart?Date.now()-this.silenceStart>this.config.minSilenceDuration&&(this.isSpeaking=!1,this.flushChunk(!0),this.silenceStart=null):this.silenceStart=Date.now());this.animationFrameId=requestAnimationFrame(e)};e()}stop(){this.stopped=!0,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.workletNode&&(this.workletNode.disconnect(),this.workletNode=null),this.analyser&&(this.analyser.disconnect(),this.analyser=null),this.source&&(this.source.disconnect(),this.source=null),this.stream&&(this.stream.getTracks().forEach(e=>e.stop()),this.stream=null),this.audioContext&&(this.audioContext.close(),this.audioContext=null),this.isSpeaking=!1,this.speechBuffer=[],this.preSpeechBuffer=[],this.silenceStart=null,this.lastFlushIndex=0,this.currentBufferSize=0}setSensitivity(e){this.config.threshold=e}async recalibrate(){await this.calibrateNoiseFloor()}getCurrentAudioLevel(){return this.getAudioEnergy()}}const X8="ai-assistant-voice-input-enabled",Y8="ai-assistant-voice-output-enabled",yW=500;function wW({getTranscription:t,isVoiceInputEnabled:e,setIsVoiceInputEnabled:i,isVoiceOutputEnabled:a,setIsVoiceOutputEnabled:r,setPrompt:n,selectedConversationId:o,setVoiceInputProcessing:s,setVoiceInputTranscribing:l,isCoachModeEnabled:u,propRefs:f}){M.useEffect(()=>{const m=localStorage.getItem(X8),A=localStorage.getItem(Y8);m!==null&&i(m==="true"),A!==null&&r(A==="true")},[]);const d=()=>{const m=!e;i(m),localStorage.setItem(X8,String(m))},h=()=>{const m=!a;r(m),localStorage.setItem(Y8,String(m))},_=M.useRef(n);_.current=n,M.useEffect(()=>{let m=null;const A=setTimeout(()=>{e&&(m=m||new bW({minSilenceDuration:yW,onSpeechStart:()=>{s(!0)},onSpeechEnd:async p=>{var C;const w=await AW(p),b=await pW(w);if(s(!1),b.length<40*1024)return;l(!0);const y=await t(b).catch(v=>(console.error("Error getting transcription:",v),null)).finally(()=>{l(!1)}),k=(C=y==null?void 0:y[0])==null?void 0:C.transcript;k&&(u?f.current.handleSendUserMessage({conversationId:o,messageText:k}):_.current(o,v=>`${Ze(v,"")} ${k}`.trim()))}}),m.init().then(Ei).catch(p=>{console.error("Error initializing VoiceActivityDetection:",p)}))},50);return()=>{clearTimeout(A),m&&m.stop()}},[e,o,u]);const[F,c]=M.useState(!1);return g.jsx(mo,{isOpen:F,onSetOpen:c,parent:g.jsx($i,{onClick:Wr(c,!F),variant:e&&a?"primary":e||a?"system":"transparent",size:"small",style:{width:"100%",textTransform:"uppercase",fontSize:"11px"},children:"voice"}),popoverComponent:g.jsx("div",{children:g.jsxs(ot,{direction:"column",gap:"16px",children:[g.jsx(Fh,{level:"3",children:"Voice controls"}),g.jsxs(ot,{direction:"row",gap:"8px",alignItems:"center",justifyContent:"space-between",children:[g.jsx("label",{htmlFor:"ai-assistant-voice-input-toggle",children:"Voice Input"}),g.jsx(X5,{checked:e,onChange:d,label:"Voice input","data-testid":"ai-assistant-voice-input-toggle",id:"ai-assistant-voice-input-toggle"})]}),g.jsxs(ot,{direction:"row",gap:"8px",alignItems:"center",justifyContent:"space-between",children:[g.jsx("label",{htmlFor:"ai-assistant-voice-output-toggle",children:"Voice Output"}),g.jsx(X5,{checked:a,onChange:h,label:"Voice output","data-testid":"ai-assistant-voice-output-toggle",id:"ai-assistant-voice-output-toggle"})]})]})}),position:"bottom-start"})}const kW={half:"160px",full:"240px"},xW={half:"50%",full:"0%"},Z8=25,Kg=["half","full"];function CW(t){const e=Kg.indexOf(t);return es(Kg[e+1],Kg[0])}const J8="ai-assistant_chatSize",vW=t=>!!(t&&Kg.some(e=>t===e)),DW=t=>{localStorage.setItem(J8,t)},EW=()=>{const t=localStorage.getItem(J8);return vW(t)?t:null};function BW({tools:t,enableDebug:e,onClose:i,hasCloseButton:a=!0,hasToggleChatSizeButton:r=!0,hasChatHistory:n=!0,startingWidth:o,chatWindowZeroState:s,systemInstruction:l,controls:u,initialPrompt:f="",chatHistoryShownByDefault:d=!0,windowTitle:h="WorkTango AI Assistant",minimumCharacterCount:_=1,onSendMessage:F,initialConversationId:c,getFollowUpSuggestions:m,getChatTitle:A=jW,enableVoiceFeatures:p=!1,model:w="medium"}){var ie,ke;const{error:b}=g2(),y=EW(),[k,C]=M.useState(!1),[v,E]=M.useState(y||o||"half"),[D,S]=M.useState(()=>!!es(localStorage.getItem("showChatHistory")==="true",d,!0)),[P,U]=M.useState("messages"),I=M.useRef(null),q=M.useRef(null),T=M.useRef(null),N=M.useRef(void 0);N.current=F;const H=M.useRef(null);M.useEffect(()=>()=>{H.current&&clearTimeout(H.current)},[]);const $=M.useCallback(()=>{const ce=q.current;ce&&(H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{ce.scrollTop=ce.scrollHeight+ce.clientHeight,H.current=null},10))},[q]),x=M.useCallback(()=>{E(ce=>{const Ie=CW(ce);return DW(Ie),Ie})},[]),L=ce=>Ie=>{console.error(Ie),b(ce)},{messages:Q,isVoiceInputEnabled:B,setIsVoiceInputEnabled:G,isVoiceOutputEnabled:ee,setIsVoiceOutputEnabled:V,voiceOutputVoice:X,setVoiceOutputVoice:J,getSpeech:re,getTranscription:O,debugInfo:ne,connectionError:W,isSearching:de,searchQuery:Ae,setIsSearching:be,setSearchQuery:Te,createNewConversation:ye,setSelectedConversationId:je,isLoadingConversation:Oe,selectedConversation:me,handleSendUserMessage:We,followUpSuggestions:rt,prompt:tt,setPrompt:st,selectedConversationId:ht,setVoiceInputProcessing:Di,voiceInputProcessing:Nt,setVoiceInputTranscribing:Be,voiceInputTranscribing:lt,voiceOutputPlaying:$t,setVoiceOutputPlaying:Ti,isCoachModeEnabled:Ki,setIsCoachModeEnabled:Fa,propRefs:ir}=jN({model:w,systemInstruction:l,getFollowUpSuggestions:m,onAfterLlmCall:$,onError:ce=>L("Unexpected error")(ce),tools:t,onSelectedConversationLoaded:$,onChunkAdded:$,initialConversationId:c,getChatTitle:A,initialPrompt:f}),xt=Zo(i,Xt(C,!1)),ge=M.useCallback(Xt(x),[]),ve=Zo(Xt(C,!k),Xt(U,"messages")),Ve=Zo(ye,Xt(st,"",""),Xt(je,void 0)),ct=Xt(S,SW),si=Xt(be,!0),Ht=Zo(Xt(be,!1),Xt(Te,"")),Xi=Fc(Te);u&&(u.current={setPrompt:(ce,Ie)=>{Ie?We({messageText:ce}):st(ht,ce)}}),M.useEffect(()=>{localStorage.setItem("showChatHistory",D.toString())},[D]);const da=!!W||(me==null?void 0:me.isLoading),K=tt.trim().length>=_&&!(me!=null&&me.isLoading),z=ce=>{const Ie=es(ce.ctrlKey,ce.shiftKey,ce.altKey,ce.metaKey),kt=Ie&&ce.key==="Enter",mt=!Ie&&ce.key==="Enter"&&K&&!(me!=null&&me.isLoading);kt?(ce.preventDefault(),st(ht,nt=>nt+`
|
|
346
|
+
`)):mt&&(ce.preventDefault(),We({messageText:tt}))},{filteredConversations:ae}=M.useMemo(()=>{const ce=Object.values(Q).sort((nt,gt)=>gt.updatedAt.getTime()-nt.updatedAt.getTime()),Ie=Ae.trim().toLowerCase(),kt=Ie?ce.filter(nt=>{var gt;return((gt=nt.messages)==null?void 0:gt.some(te=>te.messageText.toLowerCase().includes(Ie)))||nt.title.toLowerCase().includes(Ie)}):ce,mt={};for(const nt of kt)mt[nt.id]=nt;return{filteredConversations:mt}},[Ae,Q]),[he,De]=M.useState(Z8),[Ee,Ye]=M.useState(!1),qe=M.useMemo(()=>{var Ie;const ce=ht?Q[ht]:void 0;return ce?((Ie=ce==null?void 0:ce.messages)==null?void 0:Ie.slice(-1*he))||[]:[]},[Q,he,ht]),ut=!!((ie=me==null?void 0:me.messages)!=null&&ie.length&&((ke=me==null?void 0:me.messages)==null?void 0:ke.length)>he);M.useEffect(()=>{if(Ee){const ce=[];return ce.push(setTimeout(()=>{De(Ie=>Ie+Z8),ce.push(setTimeout(()=>{Ye(!1)},50))},100)),()=>ce.forEach(clearTimeout)}},[Ee,he]);const He=qe.length===0&&!(me!=null&&me.isLoading)&&!ht&&!Oe&&!Ki&&s,it=p&&ee,Ct=p?!!tt:!0;return g.jsxs(ot,{direction:"column",gap:"24px",className:ra["ai-assistant-popup-container"],style:{position:"fixed",inset:`0 0 0 ${xW[v]}`,maxWidth:"100%"},children:[g.jsx("span",{"data-testid":"ai-assistant-size-data","data-chat-size":v,style:{display:"none"}}),g.jsx("style",{type:"text/css",children:`
|
|
347
347
|
.streaming-text-resizing-container {
|
|
348
348
|
overflow-y: hidden;
|
|
349
349
|
transition: height 0.1s ease-in-out;
|