@8wave/ai-elements 0.127.0-beta.2 → 0.127.0-beta.4
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/_chunks/{PkChatbotFilePreview-BpiLld3D.js → PkChatbotFilePreview-CWzGSq-b.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-BpiLld3D.js.map → PkChatbotFilePreview-CWzGSq-b.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js → PkEditorRadioButtons-CA1ul6tY.js} +3 -3
- package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js.map → PkEditorRadioButtons-CA1ul6tY.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-qTCDbut0.js → PkFilePreview-BaJet5cw.js} +5 -5
- package/dist/_chunks/{PkFilePreview-qTCDbut0.js.map → PkFilePreview-BaJet5cw.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js → PkFilePreviewDialog-Cq8DGCD1.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js.map → PkFilePreviewDialog-Cq8DGCD1.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-5nu3We9d.js → PkHeldImage-BWz13OCH.js} +2 -2
- package/dist/_chunks/{PkHeldImage-5nu3We9d.js.map → PkHeldImage-BWz13OCH.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js → PkImageEditorDialog-5Px7Y_8G.js} +5 -5
- package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js.map → PkImageEditorDialog-5Px7Y_8G.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-DZaX3wM4.js → PkLazyImg-DYjihkLA.js} +2 -2
- package/dist/_chunks/{PkLazyImg-DZaX3wM4.js.map → PkLazyImg-DYjihkLA.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js → PkSelectionActions-DDhbwE4U.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js.map → PkSelectionActions-DDhbwE4U.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js → PkToolChatFile-fTo6gdqx.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js.map → PkToolChatFile-fTo6gdqx.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js → PkToolRequestGeolocation-BeFZQQxz.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js.map → PkToolRequestGeolocation-BeFZQQxz.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js → PkToolRequestOAuthConnection-_01ct5du.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js.map → PkToolRequestOAuthConnection-_01ct5du.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js → PkToolShareDocument-Vpv1an0N.js} +3 -3
- package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js.map → PkToolShareDocument-Vpv1an0N.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js → PkToolShowArtifact-C28dOM5W.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js.map → PkToolShowArtifact-C28dOM5W.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js → PkToolShowCalendarEvent-Cee5xnJM.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js.map → PkToolShowCalendarEvent-Cee5xnJM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js → PkToolShowChart-kgCDHWEf.js} +3 -3
- package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js.map → PkToolShowChart-kgCDHWEf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js → PkToolShowComparison-cXfmgJ1H.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js.map → PkToolShowComparison-cXfmgJ1H.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js → PkToolShowContactForm-D06qrkHm.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js.map → PkToolShowContactForm-D06qrkHm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js → PkToolShowDiagram-B2NX-FOw.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js.map → PkToolShowDiagram-B2NX-FOw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js → PkToolShowEmail-D-JnkL9A.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js.map → PkToolShowEmail-D-JnkL9A.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js → PkToolShowForm-qj_f9Z5D.js} +16 -16
- package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js.map → PkToolShowForm-qj_f9Z5D.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js → PkToolShowImageGallery-Dm2UEfWl.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js.map → PkToolShowImageGallery-Dm2UEfWl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js → PkToolShowLocation-McS9sMWJ.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js.map → PkToolShowLocation-McS9sMWJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js → PkToolShowMessage-C3jjCRB3.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js.map → PkToolShowMessage-C3jjCRB3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js → PkToolShowProductList-DorHQJMd.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js.map → PkToolShowProductList-DorHQJMd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js → PkToolShowQrCode-CIwiAzOS.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js.map → PkToolShowQrCode-CIwiAzOS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-vSr080EU.js → PkToolShowSources-BMJeacz7.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-vSr080EU.js.map → PkToolShowSources-BMJeacz7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js → PkToolShowSuggestedReply-DBfeOl05.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js.map → PkToolShowSuggestedReply-DBfeOl05.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js → PkToolShowVideo-YwSq8c2P.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js.map → PkToolShowVideo-YwSq8c2P.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js → PkToolShowWeather-DFNz0ZAW.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js.map → PkToolShowWeather-DFNz0ZAW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js → PkToolShowWebPages-DtZC0KHO.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js.map → PkToolShowWebPages-DtZC0KHO.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js → VvButtonLocalized-DfLLySHy.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js.map → VvButtonLocalized-DfLLySHy.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js → VvCheckbox.es-CEwVNJz3.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js.map → VvCheckbox.es-CEwVNJz3.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js → VvCheckboxGroup.es-BC9At7ZZ.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js.map → VvCheckboxGroup.es-BC9At7ZZ.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-BJzmLeTh.js → VvCombobox.es-ZJ44baFa.js} +741 -705
- package/dist/_chunks/VvCombobox.es-ZJ44baFa.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-CHcdm2K-.js → VvInputText.es-D1K-kOt5.js} +356 -320
- package/dist/_chunks/VvInputText.es-D1K-kOt5.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-B3IskaN4.js → VvRadio.es-Bkn-qtRB.js} +2 -2
- package/dist/_chunks/{VvRadio.es-B3IskaN4.js.map → VvRadio.es-Bkn-qtRB.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js → VvRadioGroup.es-BtyqGx_o.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js.map → VvRadioGroup.es-BtyqGx_o.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-CAVvkyxB.js → VvSelect.es-CKHcpSZS.js} +2 -2
- package/dist/_chunks/{VvSelect.es-CAVvkyxB.js.map → VvSelect.es-CKHcpSZS.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-CgvZOWO4.js → VvTextarea.es-Ewp88vJ2.js} +397 -361
- package/dist/_chunks/VvTextarea.es-Ewp88vJ2.js.map +1 -0
- package/dist/_chunks/{index.es-B9l77u9z.js → index.es-DHeth3Ja.js} +660 -624
- package/dist/_chunks/index.es-DHeth3Ja.js.map +1 -0
- package/dist/_chunks/{index.es-vCE-6U81.js → index.es-EKiTmBsm.js} +10 -10
- package/dist/_chunks/{index.es-vCE-6U81.js.map → index.es-EKiTmBsm.js.map} +1 -1
- package/dist/ai-elements.es.js +434 -434
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotWakeupBar.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-8Fqlhwq5.js → PkChatbot-CuCgECW2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-8Fqlhwq5.js.map → PkChatbot-CuCgECW2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js → PkChatbotAuth-Bx14Ld4t.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js.map → PkChatbotAuth-Bx14Ld4t.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js → PkChatbotFeedbackForm-Dwsln0GO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js.map → PkChatbotFeedbackForm-Dwsln0GO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js → PkChatbotMessages-CDDoxZAf.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js.map → PkChatbotMessages-CDDoxZAf.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DTKfW1kr.js → PkChatbotViewChat-FtOpDmks.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-DTKfW1kr.js.map → PkChatbotViewChat-FtOpDmks.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotWakeupBar-Bx1zqFAX.js → PkChatbotWakeupBar-IoQJdUjI.js} +11 -11
- package/dist-vue/_chunks/PkChatbotWakeupBar-IoQJdUjI.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-sSb1Mmr2.js → PkFilePreview-B6PSJcvA.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-sSb1Mmr2.js.map → PkFilePreview-B6PSJcvA.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js → PkFilePreviewDialog-3HJbVudc.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js.map → PkFilePreviewDialog-3HJbVudc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js → PkToolShowContactForm-Cg2TiqP1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js.map → PkToolShowContactForm-Cg2TiqP1.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-Snvt_nNd.js → index.es-B9iCRzfa.js} +2 -2
- package/dist-vue/_chunks/{index.es-Snvt_nNd.js.map → index.es-B9iCRzfa.js.map} +1 -1
- package/dist-vue/index.js +9 -9
- package/dist-vue/style.css +1 -1
- package/package.json +2 -2
- package/dist/_chunks/VvCombobox.es-BJzmLeTh.js.map +0 -1
- package/dist/_chunks/VvInputText.es-CHcdm2K-.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-CgvZOWO4.js.map +0 -1
- package/dist/_chunks/index.es-B9l77u9z.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotWakeupBar-Bx1zqFAX.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PkChatbotWakeupBar-Bx1zqFAX.js","names":["_openBlock","_createElementBlock","_withDirectives","_createElementVNode","_unref","_Fragment","_renderList","_createVNode","_normalizeClass","_toDisplayString","_createBlock","_vShow","VvButtonLocalized","ChatTaskStatus","cronScheduleShape","ChatTaskEndReason","DAY_MS","useTaskSchedule","$t","useI18n","browserTimezone","weekdayNames","locale","weekdays","day","clockTime","hour","minute","time","timezoneName","timezone","part","otherTimezone","task","shapeNamesTimes","shape","namesTimes","hourlyWords","key","words","scheduleOf","schedule","localTime","date","daysUntil","today","weekdayOf","nextOf","due","days","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","PkChatbotWakeupBar_default","defineComponent","__emit","props","__props","emit","$d","listId","useId","isOpen","useLocalStorage","showsPending","computed","isRunning","lineOf","stopReasonOf","nextAfterScheduleOf","nextLabel","isBusy","action","folds","showsRows","attentionTask","needsAttention","summary","running","next","a","b","check","_component_VvIcon","VvIcon","_component_VvButton","_component_VvCheckbox","VvCheckbox","openBlock","createElementBlock","withDirectives","createElementVNode","unref","Fragment","renderList","createVNode","normalizeClass","toDisplayString","hasSwitch","createBlock","active","createCommentVNode","_cache","vShow"],"sources":["../../../../packages/components/src/chat/useTaskSchedule.ts","../../../../packages/components/src/chat/PkChatbotWakeupBar.vue"],"sourcesContent":["import { useI18n } from 'vue-i18n'\nimport {\n ChatTaskEndReason,\n ChatTaskStatus,\n cronScheduleShape,\n type ChatTaskSummary,\n type CronScheduleShape,\n} from 'models'\n\nconst DAY_MS = 24 * 60 * 60 * 1000\n\n/**\n * A scheduled task in words (spec agent-recurring-tasks, F2 and F3): its\n * schedule (\"Every Monday and Wednesday at 9:00\"), when it runs next, and why\n * it stopped. Never the cron (DESIGN.md). Shared by the chat's bar, the chat\n * sidebar, the edit window and the profile.\n */\nexport function useTaskSchedule() {\n const { t: $t, locale } = useI18n({ useScope: 'global' })\n\n const browserTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone\n\n /** \"Monday and Wednesday\", in the page's language. */\n const weekdayNames = (weekdays: number[]) =>\n new Intl.ListFormat(locale.value, {\n style: 'long',\n type: 'conjunction',\n }).format(\n weekdays.map((day) =>\n new Intl.DateTimeFormat(locale.value, {\n weekday: 'long',\n timeZone: 'UTC',\n }).format(new Date(Date.UTC(2023, 0, 1 + day))),\n ),\n )\n\n /** \"17:57\" or \"5:57 PM\": the time of the cron, in the page's language. */\n const clockTime = (time: string) => {\n const [hour, minute] = time.split(':').map(Number)\n return new Intl.DateTimeFormat(locale.value, {\n hour: 'numeric',\n minute: '2-digit',\n timeZone: 'UTC',\n }).format(new Date(Date.UTC(2000, 0, 1, hour, minute)))\n }\n\n /** \"Central European Time\": a timezone in words. */\n const timezoneName = (timezone: string) =>\n new Intl.DateTimeFormat(locale.value, {\n timeZone: timezone,\n timeZoneName: 'longGeneric',\n })\n .formatToParts(new Date())\n .find((part) => part.type === 'timeZoneName')?.value ?? timezone\n\n /** The task's own timezone, unless it is the browser's. */\n const otherTimezone = (task: Pick<ChatTaskSummary, 'timezone'>) =>\n task.timezone === browserTimezone ? undefined : task.timezone\n\n /**\n * Whether the schedule in words names times of day: then the task's\n * timezone goes beside it, otherwise beside the next run.\n */\n const shapeNamesTimes = (shape: CronScheduleShape) =>\n shape.kind === 'hourly'\n ? shape.from !== undefined\n : shape.kind !== 'once' && shape.kind !== 'custom'\n\n const namesTimes = (task: ChatTaskSummary) =>\n shapeNamesTimes(cronScheduleShape(task.cron, task.recurring))\n\n /** \"Every hour at minute 7\", \"Every 2 hours from 8:00 to 18:00\". */\n const hourlyWords = (\n shape: Extract<CronScheduleShape, { kind: 'hourly' }>,\n ) => {\n const key =\n shape.from !== undefined && shape.to !== undefined\n ? 'Between'\n : shape.minute === 0\n ? 'OnTheHour'\n : 'AtMinute'\n const words = $t(\n `profileSection.tasks.schedule.${shape.every === 1 ? 'hourly' : 'everyHours'}${key}`,\n {\n every: shape.every,\n minute: shape.minute,\n from: shape.from ? clockTime(shape.from) : '',\n to: shape.to ? clockTime(shape.to) : '',\n },\n )\n return shape.weekdaysOnly\n ? $t('profileSection.tasks.schedule.onWeekdays', {\n schedule: words,\n })\n : words\n }\n\n /** The schedule in words, with its timezone when it is not the browser's. */\n const scheduleOf = (task: ChatTaskSummary) => {\n const shape = cronScheduleShape(task.cron, task.recurring)\n const time = 'time' in shape ? clockTime(shape.time) : ''\n const schedule =\n shape.kind === 'hourly'\n ? hourlyWords(shape)\n : shape.kind === 'weekly'\n ? $t('profileSection.tasks.schedule.weekly', {\n days: weekdayNames(shape.weekdays),\n time,\n })\n : $t(`profileSection.tasks.schedule.${shape.kind}`, {\n time,\n day: 'day' in shape ? shape.day : '',\n })\n const timezone = otherTimezone(task)\n return timezone && shapeNamesTimes(shape)\n ? $t('profileSection.tasks.schedule.withTimezone', {\n schedule,\n timezone: timezoneName(timezone),\n })\n : schedule\n }\n\n /** The time of a moment in the browser's timezone: \"9:15\". */\n const localTime = (date: Date) =>\n new Intl.DateTimeFormat(locale.value, {\n hour: 'numeric',\n minute: '2-digit',\n }).format(date)\n\n /** Whole days from today to a moment: 0 today, 1 tomorrow. */\n const daysUntil = (date: Date) => {\n const today = new Date()\n today.setHours(0, 0, 0, 0)\n return Math.floor((date.getTime() - today.getTime()) / DAY_MS)\n }\n\n const weekdayOf = (date: Date) =>\n new Intl.DateTimeFormat(locale.value, { weekday: 'long' }).format(date)\n\n /**\n * When it runs next, in the browser's time and as a person says it:\n * \"Today at 18:00\", \"Tomorrow at 9:00\", \"Wednesday at 3:00\" within the\n * week, the date after that.\n */\n const nextOf = (task: ChatTaskSummary) => {\n if (!task.nextRunAt) {\n return undefined\n }\n const due = new Date(task.nextRunAt)\n const time = localTime(due)\n const days = daysUntil(due)\n if (days <= 0) {\n return $t('scheduledTask.next.today', { time })\n }\n if (days === 1) {\n return $t('scheduledTask.next.tomorrow', { time })\n }\n if (days < 7) {\n const day = weekdayOf(due)\n return $t('scheduledTask.next.weekday', {\n day:\n day.charAt(0).toLocaleUpperCase(locale.value) +\n day.slice(1),\n time,\n })\n }\n return new Intl.DateTimeFormat(locale.value, {\n dateStyle: 'short',\n timeStyle: 'short',\n }).format(due)\n }\n\n /**\n * The next run beside the schedule (the chat's bar): the day alone when\n * the schedule already says its time, \"next run tomorrow\", so a row of a\n * phone does not spend its width on 9:15 twice. The whole sentence when\n * the times differ: a one-off, a custom schedule, another timezone.\n */\n const nextAfterScheduleOf = (task: ChatTaskSummary) => {\n if (!task.nextRunAt || otherTimezone(task)) {\n return nextOf(task)\n }\n const shape = cronScheduleShape(task.cron, task.recurring)\n const due = new Date(task.nextRunAt)\n if (\n shape.kind === 'once' ||\n !('time' in shape) ||\n clockTime(shape.time) !== localTime(due)\n ) {\n return nextOf(task)\n }\n const days = daysUntil(due)\n if (days <= 0) {\n return $t('scheduledTask.next.short.today')\n }\n if (days === 1) {\n return $t('scheduledTask.next.short.tomorrow')\n }\n if (days < 7) {\n return $t('scheduledTask.next.short.weekday', {\n day: weekdayOf(due),\n })\n }\n return $t('scheduledTask.next.short.date', {\n date: new Intl.DateTimeFormat(locale.value, {\n dateStyle: 'short',\n }).format(due),\n })\n }\n\n /** Why a task stopped, the first thing its row says. */\n const stopReasonOf = (task: ChatTaskSummary) => {\n if (task.status === ChatTaskStatus.Paused) {\n return task.endedReason === ChatTaskEndReason.User\n ? $t('scheduledTask.paused')\n : $t('profileSection.tasks.paused')\n }\n if (task.status === ChatTaskStatus.Ended) {\n return $t(\n `profileSection.tasks.ended.${task.endedReason ?? 'failures'}`,\n )\n }\n return undefined\n }\n\n /** Paused by the platform after failed runs: the row asks for a look. */\n const needsAttention = (task: ChatTaskSummary) =>\n task.status === ChatTaskStatus.Paused &&\n task.endedReason !== ChatTaskEndReason.User\n\n /** The task has a switch: a recurring task in force. A one-off has none. */\n const hasSwitch = (task: ChatTaskSummary) =>\n task.recurring &&\n (task.status === ChatTaskStatus.Active ||\n task.status === ChatTaskStatus.Paused)\n\n return {\n clockTime,\n timezoneName,\n otherTimezone,\n namesTimes,\n scheduleOf,\n nextOf,\n nextAfterScheduleOf,\n stopReasonOf,\n needsAttention,\n hasSwitch,\n }\n}\n","<script setup lang=\"ts\">\n import { computed, useId } from 'vue'\n import { useI18n } from 'vue-i18n'\n import { useLocalStorage } from '@vueuse/core'\n import {\n ChatTaskStatus,\n type ChatTaskSummary,\n type PendingWakeup,\n } from 'models'\n import { useTaskSchedule } from './useTaskSchedule'\n\n /**\n * What the agent will run by itself in this chat, above the input, in one\n * framed box as an alert: every scheduled task (spec\n * agent-recurring-tasks, F3) on a row of its own as T3 shows its\n * automations, its name, its schedule and next run, then edit, run now\n * and its switch; and a check (spec agent-wakeup) with the way to stop\n * it. A paused task keeps its row, so the switch that paused it does not\n * vanish under the finger.\n *\n * Two rows or more fold under one line, the count and what comes next,\n * closed until the user opens it: the rows took the room of the answers,\n * in the widget above all. One row is as tall as that line, and shows.\n */\n const props = defineProps<{\n pending: PendingWakeup | null\n /** The chat's tasks in force, active and paused. */\n tasks: ChatTaskSummary[]\n stopping?: boolean\n /** The action on a task the page is waiting for. */\n busy?: { taskId: string; action: 'run' | 'toggle' }\n }>()\n\n const emit = defineEmits<{\n stop: []\n edit: [task: ChatTaskSummary]\n run: [task: ChatTaskSummary]\n toggle: [task: ChatTaskSummary, active: boolean]\n }>()\n\n const { t: $t, d: $d } = useI18n({ useScope: 'global' })\n const {\n scheduleOf,\n nextOf,\n nextAfterScheduleOf,\n stopReasonOf,\n needsAttention,\n hasSwitch,\n } = useTaskSchedule()\n\n const listId = useId()\n /** Open or folded, as the user left it last, in every chat. */\n const isOpen = useLocalStorage('pk-chatbot-wakeup-bar-open', false)\n\n /**\n * The pending wakeup's own row: a check, or a task run from an older\n * backend that lists no tasks. A listed task says it on its row.\n */\n const showsPending = computed(\n () =>\n props.pending !== null &&\n (props.pending.kind !== 'task' ||\n !props.tasks.some((task) => task.id === props.pending?.taskId)),\n )\n\n /** The chat waits for this task's run now: its row says it is running. */\n const isRunning = (task: ChatTaskSummary) =>\n props.pending?.kind === 'task' &&\n props.pending.taskId === task.id &&\n Date.parse(props.pending.dueAt) <= Date.now()\n\n const lineOf = (task: ChatTaskSummary) => {\n if (isRunning(task)) {\n return $t('scheduledTask.running')\n }\n return (\n stopReasonOf(task) ??\n [scheduleOf(task), nextAfterScheduleOf(task)]\n .filter(Boolean)\n .join(' · ')\n )\n }\n\n const nextLabel = computed(() => {\n if (!props.pending) {\n return ''\n }\n const due = new Date(props.pending.dueAt)\n if (props.pending.kind !== 'task') {\n return $t('label.wakeupNext', { time: $d(due, 'time') })\n }\n return due.toDateString() === new Date().toDateString()\n ? $t('label.taskNextToday', { time: $d(due, 'time') })\n : $t('label.taskNextOn', { date: $d(due, 'date-time') })\n })\n\n const isBusy = (task: ChatTaskSummary, action?: 'run' | 'toggle') =>\n props.busy?.taskId === task.id &&\n (!action || props.busy.action === action)\n\n /** Two rows or more: they fold under the summary line. */\n const folds = computed(\n () => props.tasks.length + (showsPending.value ? 1 : 0) > 1,\n )\n const showsRows = computed(() => !folds.value || isOpen.value)\n\n const attentionTask = computed(() => props.tasks.find(needsAttention))\n\n /**\n * The folded line, the one thing to know first: a run going on, a task\n * the platform paused, then the soonest of the next run and the check.\n */\n const summary = computed(() => {\n const running = props.tasks.find(isRunning)\n if (running) {\n return $t('scheduledTask.bar.running', { name: running.reason })\n }\n if (attentionTask.value) {\n return $t('scheduledTask.bar.task', {\n name: attentionTask.value.reason,\n state: stopReasonOf(attentionTask.value),\n })\n }\n const [next] = props.tasks\n .filter(\n (task) =>\n task.status === ChatTaskStatus.Active && task.nextRunAt,\n )\n .sort((a, b) => Date.parse(a.nextRunAt!) - Date.parse(b.nextRunAt!))\n const check = props.pending?.kind === 'task' ? undefined : props.pending\n if (\n check &&\n (!next || Date.parse(check.dueAt) < Date.parse(next.nextRunAt!))\n ) {\n return nextLabel.value\n }\n return next\n ? $t('scheduledTask.bar.next', {\n name: next.reason,\n when: nextOf(next),\n })\n : $t('scheduledTask.bar.allPaused')\n })\n</script>\n\n<template>\n <div class=\"pk-chatbot-wakeup-bar\" role=\"status\">\n <div\n v-show=\"showsRows\"\n :id=\"listId\"\n class=\"pk-chatbot-wakeup-bar__list\">\n <div\n v-for=\"task in tasks\"\n :key=\"task.id\"\n class=\"pk-chatbot-wakeup-bar__row\">\n <!-- As large as the icon of a title over a summary\n (PjSettingsRow); the warning of a task the platform\n paused, as in the profile -->\n <VvIcon\n :name=\"\n needsAttention(task)\n ? 'ri:error-warning-line'\n : 'ri:calendar-schedule-line'\n \"\n class=\"shrink-0 w-18 h-18\"\n :class=\"{\n 'text-warning-darken-3': needsAttention(task),\n }\" />\n <span class=\"pk-chatbot-wakeup-bar__text\">\n <strong\n class=\"pk-chatbot-wakeup-bar__name\"\n :title=\"task.reason\">\n {{ task.reason }}\n </strong>\n <span class=\"pk-chatbot-wakeup-bar__reason\">\n {{ lineOf(task) }}\n </span>\n </span>\n <span class=\"pk-chatbot-wakeup-bar__actions\">\n <VvButton\n modifiers=\"action-quiet\"\n icon=\"ri:pencil-line\"\n :title=\"$t('action.edit')\"\n :aria-label=\"`${$t('action.edit')}: ${task.reason}`\"\n @click=\"emit('edit', task)\" />\n <VvButton\n modifiers=\"action-quiet\"\n icon=\"ri:play-line\"\n :title=\"$t('scheduledTask.runNow')\"\n :aria-label=\"`${$t('scheduledTask.runNow')}: ${task.reason}`\"\n :loading=\"isBusy(task, 'run')\"\n :disabled=\"isBusy(task) || isRunning(task)\"\n @click=\"emit('run', task)\" />\n <VvCheckbox\n v-if=\"hasSwitch(task)\"\n :model-value=\"task.status === ChatTaskStatus.Active\"\n :name=\"`task-active-${task.id}`\"\n :value=\"true\"\n :unchecked-value=\"false\"\n switch\n modifiers=\"no-label small\"\n class=\"u-touch-target\"\n :title=\"$t('scheduledTask.active')\"\n :aria-label=\"`${$t('scheduledTask.active')}: ${task.reason}`\"\n :disabled=\"isBusy(task)\"\n @update:model-value=\"\n (active: unknown) =>\n emit('toggle', task, Boolean(active))\n \" />\n </span>\n </div>\n <div\n v-if=\"pending && showsPending\"\n class=\"pk-chatbot-wakeup-bar__row\">\n <VvIcon\n :name=\"\n pending.kind === 'task'\n ? 'ri:calendar-schedule-line'\n : 'ri:alarm-line'\n \"\n class=\"shrink-0 w-18 h-18\" />\n <span class=\"pk-chatbot-wakeup-bar__text\">\n <strong>{{ nextLabel }}</strong>\n <span class=\"pk-chatbot-wakeup-bar__reason\">\n {{ pending.reason }}\n </span>\n </span>\n <!-- A check is stopped, which no icon says as well as the word -->\n <VvButton\n v-if=\"pending.kind !== 'task'\"\n :label=\"$t('action.stop')\"\n modifiers=\"action-quiet\"\n :loading=\"stopping\"\n :disabled=\"stopping\"\n @click=\"emit('stop')\" />\n </div>\n </div>\n <button\n v-if=\"folds\"\n type=\"button\"\n class=\"pk-chatbot-wakeup-bar__head\"\n :aria-expanded=\"isOpen\"\n :aria-controls=\"listId\"\n @click=\"isOpen = !isOpen\">\n <VvIcon\n :name=\"\n attentionTask\n ? 'ri:error-warning-line'\n : 'ri:calendar-schedule-line'\n \"\n class=\"shrink-0 w-18 h-18\"\n :class=\"{ 'text-warning-darken-3': attentionTask }\" />\n <span class=\"pk-chatbot-wakeup-bar__text\">\n <strong class=\"pk-chatbot-wakeup-bar__name\">\n {{\n $t(\n 'scheduledTask.bar.count',\n { count: tasks.length },\n tasks.length,\n )\n }}\n </strong>\n <span class=\"pk-chatbot-wakeup-bar__reason\">\n {{ summary }}\n </span>\n </span>\n <!-- Below the rows, next to the input: the box grows upwards,\n so the line stays under the finger that opens it -->\n <VvIcon\n :name=\"isOpen ? 'ri:arrow-down-s-line' : 'ri:arrow-up-s-line'\"\n class=\"pk-chatbot-wakeup-bar__chevron\" />\n </button>\n </div>\n</template>\n\n<style lang=\"scss\">\n // Framed as an alert, in the input's column: a line with no edge of its\n // own read as hanging in the void between the answers and the field.\n // Open past three rows, the rows scroll rather than push the answers away.\n .pk-chatbot-wakeup-bar {\n --pk-chatbot-wakeup-bar-border: var(--color-surface-3);\n\n display: flex;\n flex-direction: column;\n margin: 0 var(--spacing-sm) var(--spacing-sm);\n overflow: hidden;\n border: 1px solid var(--pk-chatbot-wakeup-bar-border);\n border-radius: var(--rounded-lg);\n background-color: var(--color-surface-1);\n color: var(--color-word-3);\n font-size: var(--text-12);\n\n &__list {\n display: flex;\n flex-direction: column;\n max-height: var(--spacing-192);\n overflow-y: auto;\n }\n\n &__row,\n &__head {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: var(--spacing-sm);\n padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs)\n var(--spacing-md);\n }\n\n &__row + &__row,\n &__list + &__head {\n border-top: 1px solid var(--pk-chatbot-wakeup-bar-border);\n }\n\n &__head {\n width: 100%;\n margin: 0;\n border: none;\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n\n &:hover {\n background-color: var(--color-surface-2);\n }\n\n &:focus-visible {\n outline: var(--spacing-2) solid var(--input-focus-color);\n outline-offset: calc(-1 * var(--spacing-2));\n }\n }\n\n // In the column of the rows' last control, so the line lines up\n // with them when they are open\n &__chevron {\n flex-shrink: 0;\n width: var(--spacing-20);\n height: var(--spacing-20);\n margin-inline: var(--spacing-6);\n color: var(--color-word-2);\n }\n\n &__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n }\n\n &__name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--color-word-1);\n font-size: var(--text-14);\n font-weight: var(--font-semibold);\n }\n\n &__reason {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &__actions {\n display: flex;\n align-items: center;\n gap: var(--spacing-2);\n flex-shrink: 0;\n\n > .vv-checkbox {\n margin-inline-start: var(--spacing-4);\n }\n }\n }\n</style>\n"],"mappings":";;;;;;;AASA,IAAMgB,IAAS;AAQf,SAAgBC,IAAkB;CAC9B,IAAM,EAAE,GAAGC,GAAI,cAAWC,EAAQ,EAAE,UAAU,SAAS,CAAC,GAElDC,IAAkB,KAAK,eAAe,CAAC,CAAC,gBAAgB,CAAC,CAAC,UAG1DC,KAAgB,MAClB,IAAI,KAAK,WAAWC,EAAO,OAAO;EAC9B,OAAO;EACP,MAAM;CACV,CAAC,CAAC,CAAC,OACCC,EAAS,KAAK,MACV,IAAI,KAAK,eAAeD,EAAO,OAAO;EAClC,SAAS;EACT,UAAU;CACd,CAAC,CAAC,CAAC,OAAO,IAAI,KAAK,KAAK,IAAI,MAAM,GAAG,IAAIE,CAAG,CAAC,CAAC,CAClD,CACJ,GAGEC,KAAa,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