@bryntum/scheduler-thin-trial 7.2.3 → 7.3.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/README.md +0 -1
- package/entry.js +2 -1
- package/fluent2-dark.css +16 -0
- package/high-contrast-dark.css +45 -0
- package/high-contrast-light.css +29 -0
- package/lib/column/DurationColumn.js +1 -1
- package/lib/column/EventColorColumn.js +1 -1
- package/lib/column/ResourceCollapseColumn.js +1 -1
- package/lib/column/ResourceInfoColumn.js +1 -1
- package/lib/column/ScaleColumn.js +1 -1
- package/lib/column/TimeAxisColumn.js +1 -1
- package/lib/column/VerticalTimeAxisColumn.js +1 -1
- package/lib/crud/AbstractCrudManager.js +1 -1
- package/lib/crud/AbstractCrudManagerMixin.js +1 -1
- package/lib/crud/mixin/CrudManagerView.js +1 -1
- package/lib/crud/mixin/LazyLoadCrudManager.js +1 -1
- package/lib/customElements/SchedulerTag.js +1 -1
- package/lib/customElements/TimelineBaseTag.js +1 -1
- package/lib/data/AssignmentStore.js +1 -1
- package/lib/data/CrudManager.js +1 -1
- package/lib/data/DependencyStore.js +1 -1
- package/lib/data/EventStore.js +1 -1
- package/lib/data/ResourceStore.js +1 -1
- package/lib/data/ResourceTickStore.js +1 -1
- package/lib/data/ResourceTimeRangeStore.js +1 -1
- package/lib/data/TimeAxis.js +1 -1
- package/lib/data/TimeRangeStore.js +1 -1
- package/lib/data/mixin/AssignmentStoreMixin.js +1 -1
- package/lib/data/mixin/DependencyStoreMixin.js +1 -1
- package/lib/data/mixin/EventStoreMixin.js +1 -1
- package/lib/data/mixin/GetEventsMixin.js +1 -1
- package/lib/data/mixin/LazyLoadView.js +1 -1
- package/lib/data/mixin/ProjectConsumer.js +1 -1
- package/lib/data/mixin/ProjectCrudManager.js +1 -1
- package/lib/data/mixin/ResourceStoreMixin.js +1 -1
- package/lib/data/plugin/DateStoreLazyLoadPlugin.js +1 -1
- package/lib/feature/AI.js +1 -1
- package/lib/feature/AbstractTimeRanges.js +1 -1
- package/lib/feature/ColumnLines.css +6 -1
- package/lib/feature/ColumnLines.js +1 -1
- package/lib/feature/Dependencies.css +12 -2
- package/lib/feature/Dependencies.js +1 -1
- package/lib/feature/DependencyEdit.js +1 -1
- package/lib/feature/DependencyMenu.js +1 -1
- package/lib/feature/EventCopyPaste.js +1 -1
- package/lib/feature/EventDrag.css +14 -2
- package/lib/feature/EventDrag.js +1 -1
- package/lib/feature/EventDragCreate.js +1 -1
- package/lib/feature/EventDragSelect.css +6 -1
- package/lib/feature/EventDragSelect.js +1 -1
- package/lib/feature/EventEdit.js +1 -1
- package/lib/feature/EventFilter.js +1 -1
- package/lib/feature/EventMenu.js +1 -1
- package/lib/feature/EventNonWorkingTime.css +6 -1
- package/lib/feature/EventNonWorkingTime.js +1 -1
- package/lib/feature/EventResize.css +6 -1
- package/lib/feature/EventResize.js +1 -1
- package/lib/feature/EventTooltip.js +1 -1
- package/lib/feature/GroupSummary.js +1 -1
- package/lib/feature/HeaderZoom.js +1 -1
- package/lib/feature/Labels.css +6 -1
- package/lib/feature/Labels.js +1 -1
- package/lib/feature/LockRows.js +1 -1
- package/lib/feature/NonWorkingTime.js +1 -1
- package/lib/feature/Pan.js +1 -1
- package/lib/feature/ResourceColumnReorder.css +12 -2
- package/lib/feature/ResourceColumnReorder.js +1 -1
- package/lib/feature/ResourceMenu.js +1 -1
- package/lib/feature/ResourceTimeRanges.js +1 -1
- package/lib/feature/RowReorder.js +1 -1
- package/lib/feature/RowResize.js +1 -1
- package/lib/feature/ScheduleContext.css +7 -2
- package/lib/feature/ScheduleContext.js +1 -1
- package/lib/feature/ScheduleMenu.js +1 -1
- package/lib/feature/ScheduleTooltip.js +1 -1
- package/lib/feature/ScrollButtons.js +1 -1
- package/lib/feature/SimpleEventEdit.css +8 -1
- package/lib/feature/SimpleEventEdit.js +1 -1
- package/lib/feature/Split.js +1 -1
- package/lib/feature/StickyEvents.js +1 -1
- package/lib/feature/Summary.js +1 -1
- package/lib/feature/TimeAxisHeaderMenu.js +1 -1
- package/lib/feature/TimeRanges.css +52 -0
- package/lib/feature/TimeRanges.js +1 -1
- package/lib/feature/TimeSelection.css +6 -1
- package/lib/feature/TimeSelection.js +1 -1
- package/lib/feature/TimelineSummary.js +1 -1
- package/lib/feature/TreeSummary.js +1 -1
- package/lib/feature/ai/agents/DefaultSchedulerAgent.js +6 -6
- package/lib/feature/ai/agents/trainingData.js +1 -1
- package/lib/feature/base/DragBase.js +1 -1
- package/lib/feature/base/DragCreateBase.js +1 -1
- package/lib/feature/base/EditBase.js +1 -1
- package/lib/feature/base/ResourceTimeRangesBase.js +1 -1
- package/lib/feature/base/TimeSpanMenuBase.js +1 -1
- package/lib/feature/base/TooltipBase.js +1 -1
- package/lib/feature/export/PdfExport.js +1 -1
- package/lib/feature/export/Print.js +1 -1
- package/lib/feature/export/exporter/MultiPageExporter.js +1 -1
- package/lib/feature/export/exporter/MultiPageVerticalExporter.js +1 -1
- package/lib/feature/export/exporter/SinglePageExporter.js +1 -1
- package/lib/feature/export/verticalexporter/VerticalExporter.js +1 -1
- package/lib/feature/mixin/DependencyCreation.css +7 -2
- package/lib/feature/mixin/HeaderDragSelect.css +8 -1
- package/lib/feature/mixin/NonWorkingTimeMixin.js +1 -1
- package/lib/feature/mixin/RecurringEventEdit.js +1 -1
- package/lib/localization/En.js +1 -1
- package/lib/model/AISettingsModel.js +1 -0
- package/lib/model/AssignmentModel.js +1 -1
- package/lib/model/DependencyBaseModel.js +1 -1
- package/lib/model/DependencyModel.js +1 -1
- package/lib/model/EventModel.js +1 -1
- package/lib/model/RecurrenceModel.js +1 -1
- package/lib/model/ResourceModel.js +1 -1
- package/lib/model/ResourceTimeRangeModel.js +1 -1
- package/lib/model/TimeRangeModel.js +1 -1
- package/lib/model/TimeSpan.js +1 -1
- package/lib/model/mixin/AssignmentModelMixin.js +1 -1
- package/lib/model/mixin/EventModelMixin.js +1 -1
- package/lib/model/mixin/ProjectModelCommon.js +1 -1
- package/lib/model/mixin/RecurringTimeSpan.js +1 -1
- package/lib/model/mixin/ResourceModelMixin.js +1 -1
- package/lib/preset/PresetManager.js +1 -1
- package/lib/preset/PresetStore.js +1 -1
- package/lib/preset/ViewPreset.js +1 -1
- package/lib/util/TimelineContext.js +1 -1
- package/lib/view/EventEditor.js +1 -1
- package/lib/view/ResourceHeader.css +5 -0
- package/lib/view/ResourceHeader.js +1 -1
- package/lib/view/Scheduler.js +1 -1
- package/lib/view/SchedulerBase.js +1 -1
- package/lib/view/TimeAxisBase.js +1 -1
- package/lib/view/TimeAxisSubGrid.js +1 -1
- package/lib/view/TimelineBase.css +22 -9
- package/lib/view/TimelineBase.js +1 -1
- package/lib/view/TimelineHistogram.css +97 -1
- package/lib/view/TimelineHistogram.js +1 -1
- package/lib/view/TimelineHistogramBase.js +1 -1
- package/lib/view/TimelineHistogramRendering.js +1 -1
- package/lib/view/export/SchedulerExportDialog.js +1 -1
- package/lib/view/mixin/Describable.js +1 -1
- package/lib/view/mixin/EventNavigation.js +1 -1
- package/lib/view/mixin/EventSelection.js +1 -1
- package/lib/view/mixin/RecurringEvents.js +1 -1
- package/lib/view/mixin/SchedulerDom.js +1 -1
- package/lib/view/mixin/SchedulerDomEvents.js +1 -1
- package/lib/view/mixin/SchedulerEventRendering.css +26 -6
- package/lib/view/mixin/SchedulerEventRendering.js +1 -1
- package/lib/view/mixin/SchedulerRegions.js +1 -1
- package/lib/view/mixin/SchedulerResourceRendering.js +1 -1
- package/lib/view/mixin/SchedulerScroll.js +1 -1
- package/lib/view/mixin/SchedulerState.js +1 -1
- package/lib/view/mixin/SchedulerStores.js +1 -1
- package/lib/view/mixin/TimelineDateMapper.js +1 -1
- package/lib/view/mixin/TimelineDomEvents.js +1 -1
- package/lib/view/mixin/TimelineEventRendering.js +1 -1
- package/lib/view/mixin/TimelineHistogramGrouping.js +1 -1
- package/lib/view/mixin/TimelineHistogramScaleColumn.js +1 -1
- package/lib/view/mixin/TimelineScroll.js +1 -1
- package/lib/view/mixin/TimelineSmoothZoom.js +1 -0
- package/lib/view/mixin/TimelineState.js +1 -1
- package/lib/view/mixin/TimelineViewPresets.js +1 -1
- package/lib/view/mixin/TimelineZoomable.js +1 -1
- package/lib/view/mixin/TransactionalFeatureMixin.js +1 -1
- package/lib/view/model/TimeAxisViewModel.js +1 -1
- package/lib/view/orientation/HorizontalRendering.js +1 -1
- package/lib/view/orientation/VerticalRendering.js +1 -1
- package/lib/view/recurrence/RecurrenceConfirmationPopup.js +1 -1
- package/lib/view/recurrence/RecurrenceEditor.js +1 -1
- package/lib/view/recurrence/RecurrenceLegendButton.js +1 -1
- package/lib/view/recurrence/field/RecurrenceCombo.js +1 -1
- package/lib/view/recurrence/field/RecurrenceDaysButtonGroup.js +1 -1
- package/lib/view/recurrence/field/RecurrenceDaysCombo.js +1 -1
- package/lib/view/recurrence/field/RecurrenceFrequencyCombo.js +1 -1
- package/lib/view/recurrence/field/RecurrenceMonthDaysButtonGroup.js +1 -1
- package/lib/view/recurrence/field/RecurrenceMonthsButtonGroup.js +1 -1
- package/lib/view/recurrence/field/RecurrencePositionsCombo.js +1 -1
- package/lib/view/recurrence/field/RecurrenceStopConditionCombo.js +1 -1
- package/lib/widget/DayButtons.js +1 -1
- package/lib/widget/EventColorField.js +1 -1
- package/lib/widget/EventColorPicker.js +1 -1
- package/lib/widget/ProjectCombo.js +1 -1
- package/lib/widget/ResourceCombo.js +1 -1
- package/lib/widget/ResourceFilter.js +1 -1
- package/lib/widget/SchedulerDatePicker.css +21 -46
- package/lib/widget/SchedulerDatePicker.js +1 -1
- package/lib/widget/TimeZoomSlider.js +1 -0
- package/lib/widget/UndoRedo.js +1 -1
- package/lib/widget/ViewPresetCombo.js +1 -1
- package/locales/scheduler.locale.Ar.js +1 -1
- package/locales/scheduler.locale.Bg.js +1 -1
- package/locales/scheduler.locale.Ca.js +1 -1
- package/locales/scheduler.locale.Cs.js +1 -1
- package/locales/scheduler.locale.Da.js +1 -1
- package/locales/scheduler.locale.De.js +1 -1
- package/locales/scheduler.locale.El.js +1 -1
- package/locales/scheduler.locale.En.js +1 -1
- package/locales/scheduler.locale.EnGb.js +1 -1
- package/locales/scheduler.locale.Es.js +1 -1
- package/locales/scheduler.locale.Et.js +1 -1
- package/locales/scheduler.locale.Eu.js +1 -1
- package/locales/scheduler.locale.Fi.js +1 -1
- package/locales/scheduler.locale.FrFr.js +1 -1
- package/locales/scheduler.locale.Gl.js +1 -1
- package/locales/scheduler.locale.He.js +1 -1
- package/locales/scheduler.locale.Hi.js +1 -1
- package/locales/scheduler.locale.Hr.js +1 -1
- package/locales/scheduler.locale.Hu.js +1 -1
- package/locales/scheduler.locale.Id.js +1 -1
- package/locales/scheduler.locale.It.js +1 -1
- package/locales/scheduler.locale.Ja.js +1 -1
- package/locales/scheduler.locale.Kk.js +1 -1
- package/locales/scheduler.locale.Ko.js +1 -1
- package/locales/scheduler.locale.Lt.js +1 -1
- package/locales/scheduler.locale.Lv.js +1 -1
- package/locales/scheduler.locale.Ms.js +1 -1
- package/locales/scheduler.locale.Nl.js +1 -1
- package/locales/scheduler.locale.No.js +1 -1
- package/locales/scheduler.locale.Pl.js +1 -1
- package/locales/scheduler.locale.Pt.js +1 -1
- package/locales/scheduler.locale.PtBr.js +1 -1
- package/locales/scheduler.locale.Ro.js +1 -1
- package/locales/scheduler.locale.Ru.js +1 -1
- package/locales/scheduler.locale.Sk.js +1 -1
- package/locales/scheduler.locale.Sl.js +1 -1
- package/locales/scheduler.locale.Sr.js +1 -1
- package/locales/scheduler.locale.SrRs.js +1 -1
- package/locales/scheduler.locale.SvSE.js +1 -1
- package/locales/scheduler.locale.Th.js +1 -1
- package/locales/scheduler.locale.Tr.js +1 -1
- package/locales/scheduler.locale.Uk.js +1 -1
- package/locales/scheduler.locale.Vi.js +1 -1
- package/locales/scheduler.locale.ZhCn.js +1 -1
- package/locales/scheduler.locale.ZhTw.js +1 -1
- package/material3-dark.css +16 -0
- package/package.json +1 -1
- package/scheduler.css +172 -47
- package/scheduler.css.map +2 -2
- package/scheduler.d.ts +10578 -12881
- package/stockholm-dark.css +16 -0
- package/svalbard-dark.css +16 -0
- package/visby-dark.css +16 -0
- package/lib/data/AISettingsModel.js +0 -1
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Time selection body opacity
|
|
4
4
|
*/
|
|
5
5
|
--b-time-selection-opacity : 0.2;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Time selection z-index (above events)
|
|
9
|
+
*/
|
|
10
|
+
--b-time-selection-z-index : 10;
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
/* .b-bryntum { */
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
.b-vertical-time-axis-column {
|
|
69
74
|
.b-selected-time-span {
|
|
70
75
|
transition : none;
|
|
71
|
-
z-index :
|
|
76
|
+
z-index : var(--b-time-selection-z-index); /* Float above events*/
|
|
72
77
|
}
|
|
73
78
|
}
|
|
74
79
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function j(a,b){return _scb(a-
|
|
1
|
+
(function(a,b){function j(a,b){return _scb(a- -0x1f,b);}const c=a();while(!![]){try{const d=-parseInt(j(0x110,0x114))/0x1+-parseInt(j(0xec,0x105))/0x2+-parseInt(j(0xea,0x10c))/0x3*(-parseInt(j(0x104,0xf3))/0x4)+-parseInt(j(0x114,0x107))/0x5+-parseInt(j(0xdd,0xe1))/0x6*(parseInt(j(0x112,0xf8))/0x7)+-parseInt(j(0x10d,0xff))/0x8*(-parseInt(j(0xd7,0xf1))/0x9)+parseInt(j(0xf8,0xf2))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_sca,0x96c60));import _scc from'./AbstractTimeRanges.js';function _scb(a,b){const c=_sca();_scb=function(d,e){d=d-0xf3;let f=c[d];return f;};return _scb(a,b);}import _scd from'./mixin/HeaderDragSelect.js';function _sca(){const C=['elementHeight','offsetWidth','bottomHeader','timeSelectionChange','b-selected-time-span','18309980QKJvvr','timeRanges','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22b-selection-end\x22>','elementWidth','onDrop','offsetHeight','TimeSelection','$name','newWidth','TimelineBase','timeSelection','onDragStart','4cogvGv','selectedTimeSpan','disabled','getDateFromVirtualCoord','shouldRenderRange','onTimeAxisHeaderMouseDown','target','<span\x20class=\x22b-selection-start\x22>','round','8SMGldG','ion','trigger','1184653zyESIk','b-dragging-timerange','168GUOTJx','hoverTooltip','1650295BBvSJW','changeSelectedTimeSpan','unit','onTimeAxisHeaderClick','getDistanceForDuration','updateFromCoords','onResizeStart','mixin','time-selection','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<i\x20class=\x27b-icon\x20b-icon-close\x27\x20data-ref=\x22closeButton\x22\x20data-btip=\x22L{Popup.close}\x22></i>','element','timeSelectionElementClick','onTimeSpanDragSelected','onDragReset','9495144ogUkTs','client','.b-selected-time-span','minWidth','onTimeRangeClick','format','131856MSYTPx','refresh','enableDragSelect','onUIReady','closest','startDate','configurable','syncSplits','isHorizontal','call','loadStylesheet','registerFeature','@bryntum/scheduler-thin/lib/feature/TimeSelection.css','245217SruNbh','timeAxisViewModel','616098DDWxlj','newY','updateSelectedTimeSpan','features','newX','endDate','stateProperties'];_sca=function(){return C;};return _sca();}import _sce from'@bryntum/grid-thin/lib/feature/GridFeatureManager.js';import _scf from'@bryntum/core-thin/lib/helper/DateHelper.js';import _scg from'@bryntum/core-thin/lib/helper/DomHelper.js';_scg[_sck(-0x1b3,-0x1be)]('@bryntum/scheduler-thin/lib/feature/TimeRanges.css');_scg['loadStylesheet'](_sck(-0x1c4,-0x1bc));export default class TimeSelection extends _scc[_sck(-0x1af,-0x18a)](_scd){static [_sck(-0x191,-0x1a6)]=_sck(-0x1bf,-0x1a7);static [_sck(-0x1aa,-0x1b3)]=[_sck(-0x17b,-0x1a0)];static [_sck(-0x1c2,-0x1c2)]={'enableResizing':!![],'showTooltip':![],'dragTipTemplate':null,'cls':_sck(-0x1ac,-0x1ae),'dragHelperConfig':{'skipUpdatingElement':!![]},'resizeHelperConfig':{'skipUpdatingElement':!![]},'enableDragSelect':![],'headerRenderer'({timeRange:timeRange}){const {dateFormat:dateFormat}=this[l(-0x76,-0x64)][l(-0x74,-0x51)][l(-0x64,-0x47)];function l(a,b){return _sck(a,b-0x169);}return l(-0x37,-0x31)+_scf[l(-0x77,-0x60)](timeRange['startDate'],dateFormat)+l(-0x62,-0x42)+_scf['format'](timeRange[l(-0x48,-0x4b)],dateFormat)+l(0x0,-0x1f);},'selectedTimeSpan':{'$config':null,'value':null,'default':null}};[_sck(-0x1d8,-0x1c5)](){const a=this;super['onUIReady']();if(a[m(0x44e,0x44c)]){a[m(0x44e,0x44f)]['getHtml']=()=>a['tooltipTemplate']({...a['selectedTimeSpan']});}function m(a,b){return _sck(b,a-0x5e0);}a['client'][m(0x449,0x45d)]({'timeAxisHeaderMouseDown':m(0x444,0x448),'timeAxisHeaderClick':'onTimeAxisHeaderClick','thisObj':a});}[_sck(-0x18f,-0x19c)]({startDate:a,endDate:b}){function n(a,b){return _sck(b,a-0x66a);}if(!this[n(0x4cb,0x4c6)]&&this[n(0x4a4,0x48d)]){this['selectedTimeSpan']=null;}}[_sck(-0x1ad,-0x18e)]({startDate:a,endDate:b}){function o(a,b){return _sck(a,b-0x411);}if(!this[o(0x295,0x272)]){this['selectedTimeSpan']={'startDate':a,'endDate':b};}}[_sck(-0x1e9,-0x1ca)](a){super[p(0x1dc,0x1c9)](a);function p(a,b){return _sck(a,b-0x393);}const b=this;if(!b[p(0x205,0x1f4)]&&a[p(0x1f3,0x1f8)][p(0x1b8,0x1cf)](p(0x1d2,0x1c7))){if(a[p(0x1f8,0x1f8)]['matches']('[data-ref=\x22closeButton\x22]')){b[p(0x1e4,0x1f3)]=null;}else{b[p(0x1e8,0x1c6)][p(0x212,0x1fd)](p(0x1e4,0x1c2),{...b['selectedTimeSpan'],'domEvent':a});}}}['updateFromCoords'](a,b,c,d){const {client:e}=this,f=e[q(-0x2d8,-0x2c7)]?c:d,g=e[q(-0x2b1,-0x2c7)]?a:b,h=e[q(-0x28a,-0x2a5)]({'coord':g,'roundingMethod':q(-0x283,-0x2a0)})||e[q(-0x2e8,-0x2ca)],i=e[q(-0x27f,-0x2a5)]({'coord':g+f,'roundingMethod':'round'})||e[q(-0x2be,-0x2bb)];function q(a,b){return _sck(a,b- -0x107);}this[q(-0x290,-0x2a7)]={'startDate':h,'endDate':i};}['onResizeStart']({source:a}){const {timeAxisViewModel:b,timeResolution:c}=this['client'],d=_scf['asMilliseconds'](c['increment'],c[r(0x472,0x48e)]);this['resize'][r(0x436,0x447)]=b[r(0x474,0x478)](d);function r(a,b){return _sck(b,a-0x601);}super[r(0x476,0x45e)](...arguments);}['onResizeDrag']({context:a}){function s(a,b){return _sck(a,b-0x40);}this[s(-0x129,-0x14c)](a[s(-0x18a,-0x175)],a[s(-0x18a,-0x178)],a[s(-0x174,-0x165)]??a[s(-0x16b,-0x16a)],a['newHeight']??a[s(-0x17e,-0x172)]);}[_sck(-0x1c4,-0x1a2)](a){super[t(0x186,0x175)](a);const {context:b}=a;b[t(0x15f,0x16d)]=b[t(0x177,0x190)][t(0x17a,0x166)];function t(a,b){return _sck(a,b-0x317);}b[t(0x157,0x165)]=b['element'][t(0x193,0x16f)];}['onDrag']({context:a}){function u(a,b){return _sck(b,a-0x67e);}this[u(0x4f2,0x502)](a[u(0x4c9,0x4cc)],a['newY'],a[u(0x4d4,0x4e2)],a[u(0x4cc,0x4ed)]);}[_sck(-0x1c1,-0x1a9)](){function v(a,b){return _sck(a,b-0x219);}this[v(0x27,0x4c)]['removeCls'](v(0x9c,0x85));}[_sck(-0x1d8,-0x1cf)](){function w(a,b){return _sck(a,b-0x662);}this[w(0x488,0x49b)]();}get[_sck(-0x1af,-0x1ac)](){function x(a,b){return _sck(b,a-0x400);}return this['selectedTimeSpan']?[this[x(0x260,0x266)]]:[];}[_sck(-0x1a8,-0x19d)](){return!![];}[_sck(-0x190,-0x190)](a){if(a){a['id']=y(0x1b,0x21);}function y(a,b){return _sck(b,a-0x1a4);}return a;}[_sck(-0x1d1,-0x1b7)](a){if(!this['isConfiguring']){var b,c;this[z(-0xae,-0xae)]();(b=(c=this[z(-0xa1,-0xb4)])[z(-0xae,-0xa8)])===null||b===void 0x0||b[z(-0xc3,-0xa6)](c,d=>{function A(a,b){return z(b,a-0x52);}d[A(-0x4b,-0x50)][A(-0x38,-0x38)][A(-0x35,-0x44)]=a;});}function z(a,b){return _sck(a,b-0x119);}this[z(-0xa6,-0xb4)][z(-0x6f,-0x7d)](z(-0xb3,-0x96),{...a??{}});}[_sck(-0x1bb,-0x1d0)]({startDate:a,endDate:b}){function B(a,b){return _sck(a,b-0x273);}this[B(0xb6,0xd3)]={'startDate':a,'endDate':b};}}function _sck(a,b){return _scb(b- -0x2c4,a);}_sce[_sck(-0x1e2,-0x1bd)](TimeSelection,![],[_sck(-0x1c9,-0x1a4)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function g(a,b){return _scb(b-
|
|
1
|
+
(function(a,b){function g(a,b){return _scb(b-0x13d,a);}const c=a();while(!![]){try{const d=-parseInt(g(0x208,0x201))/0x1*(-parseInt(g(0x1e5,0x1fd))/0x2)+parseInt(g(0x211,0x217))/0x3*(-parseInt(g(0x205,0x211))/0x4)+parseInt(g(0x228,0x212))/0x5*(-parseInt(g(0x20e,0x1fc))/0x6)+parseInt(g(0x1f3,0x200))/0x7*(-parseInt(g(0x1e0,0x1ea))/0x8)+parseInt(g(0x215,0x214))/0x9*(parseInt(g(0x201,0x21a))/0xa)+-parseInt(g(0x1df,0x1eb))/0xb*(parseInt(g(0x1db,0x1f0))/0xc)+-parseInt(g(0x219,0x1fe))/0xd*(-parseInt(g(0x1d5,0x1e8))/0xe);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_sca,0x40595));import _scc from'@bryntum/grid-thin/lib/feature/Summary.js';import _scd from'@bryntum/core-thin/lib/widget/Tooltip.js';function _sca(){const r=['construct','columnConfig','configurable','4125898BewmXT','@bryntum/scheduler-thin/lib/feature/TimelineSummary.css','88mCVqDl','737qfOQRV','pluginConfig','toggle','querySelector','height','87924pyuTgq','refresh','_tip','length','element','ion','some','renderRows','render','innerHTML','-summary-tip','join','2470914dzpVxP','12aLvZGO','52iviDXL','updateProject','255367ffkTeR','55378LgxsSE','<div\x20class=\x22b-time-axis-tick\x22\x20style=\x22','doDestroy','project','isHorizontal','_tipHtml','summaryBarElement','b-time-axis-summary-tip','doDisable','updateTimelineSummaries','.b-sch-summary-bar','timeAxisSubGrid','destroy','map','width','.b-grid-footer','280788uQUIWR','5LkPBda','$name','112428HUtZYf','summaryProject','classList','12ftvMOl','summaries','loadStylesheet','270iPLgJm','isTimelineBase','label'];_sca=function(){return r;};return _sca();}import _sce from'@bryntum/core-thin/lib/helper/DomHelper.js';_sce[_sch(0x5d,0x5b)](_sch(0x17,0x2b));function _sch(a,b){return _scb(b- -0x81,a);}function _scb(a,b){const c=_sca();_scb=function(d,e){d=d-0xa8;let f=c[d];return f;};return _scb(a,b);}export default class TimelineSummary extends _scc{static [_sch(0x71,0x55)]='TimelineSummary';static [_sch(0x3e,0x29)]={'showTooltip':!![]};static get[_sch(0x22,0x2e)](){function i(a,b){return _sch(b,a-0x45b);}return{'after':[i(0x494,0x483),i(0x49c,0x487)]};}[_sch(0x32,0x27)](a,b){function j(a,b){return _sch(a,b-0x11);}const c=this;super[j(0x44,0x38)](a,b);if(!c[j(0x76,0x6b)]){c[j(0x85,0x6b)]=[{'renderer':c['renderer']}];}if(a[j(0x66,0x6e)]){c['updateProject'](a[j(0x67,0x57)]);a[j(0x38,0x48)]({'timeAxisViewModelUpdate':c[j(0x30,0x4a)],'thisObj':c});}}['updateProject'](a){function k(a,b){return _sch(b,a-0x2b9);}this['detachListeners'](k(0x310,0x31c));a[k(0x2f0,0x2e8)]({'name':k(0x310,0x310),'dataReady':'updateTimelineSummaries','thisObj':this});}['renderRows'](){if(this['client'][l(0x43e,0x423)]){var a;(a=this['client'][l(0x424,0x42a)]['footer'][l(0x426,0x412)][l(0x41d,0x40c)](l(0x448,0x42e)))===null||a===void 0x0||a[l(0x420,0x434)]['add']('b-sch-summary-bar');}function l(a,b){return _sch(a,b-0x3dc);}super[l(0x41f,0x415)]();if(!this['disabled']){this['render']();}}get['summaryBarElement'](){function m(a,b){return _sch(b,a-0x220);}return this['client'][m(0x256,0x26a)][m(0x250,0x26a)](m(0x26d,0x27c));}[_sch(0x50,0x3a)](){function n(a,b){return _sch(a,b-0x399);}const a=this,{client:b}=a,c=b[n(0x3fb,0x3e0)]?n(0x3f4,0x3ea):n(0x3b2,0x3ca),d=b['timeAxisViewModel'][n(0x3b2,0x3c1)],e=a[n(0x3c9,0x3e2)];if(e){if(!a[n(0x3dc,0x3cd)]&&a['showTooltip']&&a[n(0x408,0x3f3)][n(0x3b9,0x3d1)](f=>f[n(0x404,0x3f7)])){a[n(0x3c3,0x3cd)]=new _scd({'id':b['id']+n(0x3d6,0x3d5),'cls':n(0x3d7,0x3e3),'hoverDelay':0x0,'hideDelay':0x64,'forElement':e,'anchorToTarget':!![],'trackMouse':![],'forSelector':'.b-time-axis-tick','getHtml':({activeTarget:f})=>f[n(0x3e3,0x3e1)]});}e[n(0x3cb,0x3d4)]=d[d[n(0x3cc,0x3ce)]-0x1][n(0x3cf,0x3e9)](f=>n(0x3de,0x3dd)+c+':\x20'+f[n(0x403,0x3ea)]+'px\x22></div>')[n(0x3db,0x3d6)]('');a[n(0x3d9,0x3e5)]();}}[_sch(0x34,0x33)](){function o(a,b){return _sch(a,b- -0x25a);}super[o(-0x217,-0x227)]();this[o(-0x215,-0x20e)]();}[_sch(0x4a,0x4b)](a){var b;const {isConfiguring:c}=this['client'];super[p(-0x305,-0x30e)](a);(b=this['summaryColumn'])===null||b===void 0x0||b[p(-0x321,-0x336)](!a);function p(a,b){return _sch(b,a- -0x350);}if(!c&&!a){this[p(-0x316,-0x2fb)]();}}[_sch(0x37,0x45)](){var a;(a=this[q(0x2cd,0x2b9)])===null||a===void 0x0||a[q(0x2e8,0x2e1)]();function q(a,b){return _sch(b,a-0x299);}super[q(0x2de,0x2e7)]();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function p(a,b){return _scb(b-0x154,a);}const c=a();while(!![]){try{const d=parseInt(p(0x2bf,0x2bf))/0x1*(-parseInt(p(0x2b0,0x2c8))/0x2)+parseInt(p(0x2d0,0x2d1))/0x3+-parseInt(p(0x2e3,0x2da))/0x4*(parseInt(p(0x296,0x2b5))/0x5)+parseInt(p(0x2dd,0x2cf))/0x6*(parseInt(p(0x2d3,0x2f1))/0x7)+parseInt(p(0x2c1,0x2d8))/0x8+-parseInt(p(0x2aa,0x2c6))/0x9*(parseInt(p(0x2f2,0x2ea))/0xa)+parseInt(p(0x2ec,0x2e5))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_sca,0x1a852));import _scc from'@bryntum/core-thin/lib/helper/DomHelper.js';import _scd from'@bryntum/grid-thin/lib/feature/GridFeatureManager.js';import _sce from'./TickCells.js';_scc[_scq(0x273,0x288)](_scq(0x27c,0x28c));function _scb(a,b){const c=_sca();_scb=function(d,e){d=d-0x160;let f=c[d];return f;};return _scb(a,b);}function _sca(){const F=['remove','resourceId','52008hGffEf','endDate','513507zlVMaF','resourceStore','eventStore','registerFeature','getEventsToRender','isConfiguring','getTickFromDate','934752XOysqR','onInternalPaint','2476LmrZAq','floor','bubble','client','commitAsync','forEach','Gantt','push','onEventDataGenerated','attachToResourceStore','$name','497717gBePgT','b-sch-tick-summary-cell','resumeRefresh','store','doDisable','990HKmurJ','Scheduler','startDate','getDateFromTick','add','disabled','ceil','161sUJVQB','ion','1195QqvioE','matchScheduleCell','resolveResourceRecord','size','renderRows','attachToEventStore','SchedulerPro','pluginConfig','updateDisabled','loadStylesheet','16791xTFZgU','The\x20TreeSummary\x20feature\x20requires\x20defining\x20a\x20`renderer`\x20function','internalOnVisibleDateRangeChange','@bryntum/scheduler-thin/lib/feature/TreeSummary.css','renderer','suspendRefresh','storage','11358HDJZbU','updateResourceTickCell','18QsXBLv','noFeatureElementsInAxis','resourceTicksData','b-tree-summary-cell','removeAll'];_sca=function(){return F;};return _sca();}export default class TreeSummary extends _sce{static [_scq(0x29e,0x2ae)]='TreeSummary';static ['configurable']={'rangeCls':_scq(0x2bb,0x2b0),'cls':_scq(0x291,0x295),'showEditor':![],'renderer':![],'enableMouseEvents':!![]};static get[_scq(0x298,0x286)](){function r(a,b){return _scq(b,a- -0x42a);}return{'before':[r(-0x187,-0x177),r(-0x19f,-0x1b9)],'after':[r(-0x18b,-0x188),r(-0x17e,-0x18e),r(-0x197,-0x18a)],'override':[r(-0x1aa,-0x1ac),r(-0x1a9,-0x1a3)]};}['changeRenderer'](a){function s(a,b){return _scq(a,b-0xc9);}if(!a){throw new Error(s(0x363,0x353));}return a;}['onInternalPaint']({firstPaint:a}){super[t(0x35f,0x36d)](...arguments);function t(a,b){return _scq(b,a-0xbc);}if(a){this[t(0x363,0x36f)][t(0x33a,0x34d)]({'treeGroup':()=>this[t(0x34d,0x33c)]()});}}[_scq(0x295,0x284)](a){function u(a,b){return _scq(b,a- -0x13e);}a['ion']({'name':u(0x15f,0x178),'change':'onEventStoreChange','buffer':0x1,'thisObj':this});}[_scq(0x2ba,0x2ad)](a){function v(a,b){return _scq(b,a- -0x164);}a[v(0x11a,0x121)]({'name':v(0x138,0x141),'change':'onResourceStoreChange','buffer':0x1,'thisObj':this});}['doDisable'](a){function w(a,b){return _scq(b,a- -0x31e);}super[w(-0x6b,-0x8a)](a);if(!this['isConfiguring']){this['client'][w(-0x9b,-0x9b)]();}}['internalOnVisibleDateRangeChange'](){function x(a,b){return _scq(b,a-0x146);}if(!this['disabled']){this[x(0x3d7,0x3e5)]();}}async['onEventStoreChange'](){function y(a,b){return _scq(a,b-0x171);}await this[y(0x435,0x418)]['project'][y(0x41b,0x419)]();if(!this[y(0x425,0x42a)]){this[y(0x414,0x402)]();}}async['onResourceStoreChange']({action:a,records:b}){await this[z(-0x44,-0x49)]['project'][z(-0x47,-0x48)]();function z(a,b){return _scq(a,b- -0x2f0);}if(!this[z(-0x50,-0x37)]){if(a==='remove'||a===undefined){this[z(-0x7d,-0x5f)]();}else{const c=new Set();b[z(-0x33,-0x47)](d=>{function A(a,b){return z(b,a-0x138);}d[A(0xee,0xe2)](e=>{c[B(0x4b1,0x49a)](e);function B(a,b){return A(a-0x3b1,b);}return!d['isParent'];});});this[z(-0x40,-0x5f)](c,![]);}}}[_scq(0x292,0x287)](a){function C(a,b){return _scq(a,b- -0x175);}if(!this[C(0x140,0x12b)]){if(a){this['resourceTickStore'][C(0x102,0x121)]();}else{this[C(0x101,0x11c)]();}}}[_scq(0x2a5,0x291)](a=null,b=!![]){function D(a,b){return _scq(b,a- -0x1b1);}const c=this,{client:d,resourceTickStore:e}=c,{timeAxis:f,visibleDateRange:g}=d;if(!c[D(0x108,0x127)]){const h=Math[D(0xf4,0xe7)](f['getTickFromDate'](g[D(0x105,0xf1)])),i=Math[D(0x109,0xfa)](f[D(0xf0,0x102)](g[D(0xe9,0x106)])),j=[];(a&&a[D(0xd1,0xda)]!==0x0?a:d[D(0x101,0x111)][D(0xde,0xce)]['allValues'])[D(0xf8,0xff)](k=>{function E(a,b){return D(b-0xc0,a);}if(!(k!==null&&k!==void 0x0&&k['isParent'])){return;}for(let l=h;l<i;l++){const m=f[E(0x1cf,0x1c6)](l),n=f['getDateFromTick'](l+0x1),o=c[E(0x189,0x19c)]({'startDate':m,'endDate':n,'resourceRecord':k,'eventStore':d[E(0x19b,0x1ac)],'resourceStore':d[E(0x1a5,0x1ab)],'timeline':d});if(o||o===0x0){j[E(0x1a3,0x1ba)]({'id':l+'-'+k['id'],'startDate':m,'endDate':n,'value':o,'resourceId':k['id']});}}});if(b){c[D(0xe3,0xe0)]=j;}else{const {allValues:k}=e['storage'],l=[];for(const m of a){for(const n of k){if(n[D(0xe7,0xfb)]===m['id']){l[D(0xfa,0x113)](n);}}}d[D(0xdd,0xc7)]();e[D(0xe6,0xe3)](l);e[D(0x107,0xf2)](j);d[D(0x100,0xe6)](![]);d['refresh']();}}}}function _scq(a,b){return _scb(b-0x11e,a);}_scd[_scq(0x2b8,0x29e)](TreeSummary,![],[_scq(0x2ab,0x2b5),_scq(0x281,0x285),_scq(0x2a0,0x2aa)]);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function z(a,b){return _scb(b-0x33a,a);}const c=a();while(!![]){try{const d=parseInt(z(0x4a6,0x4c4))/0x1*(parseInt(z(0x533,0x4f3))/0x2)+parseInt(z(0x4ff,0x526))/0x3*(-parseInt(z(0x5fc,0x596))/0x4)+-parseInt(z(0x54d,0x58f))/0x5+parseInt(z(0x51c,0x56c))/0x6+parseInt(z(0x506,0x539))/0x7*(-parseInt(z(0x55d,0x541))/0x8)+-parseInt(z(0x571,0x527))/0x9+parseInt(z(0x55c,0x572))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_sca,0x1fd7f));function _scb(a,b){const c=_sca();_scb=function(d,e){d=d-0x180;let f=c[d];return f;};return _scb(a,b);}import _scc from'@bryntum/grid-thin/lib/feature/ai/agents/DefaultGridAgent.js';import _scd from'@bryntum/core-thin/lib/helper/DateHelper.js';function _scA(a,b){return _scb(b- -0x3c5,a);}import _sce from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import _scf from'@bryntum/core-thin/lib/helper/StringHelper.js';function _sca(){const ag=['b-icon-unlink','boolean','error','systemMessageModels','fromEvent','eventStore','\x20found\x20(only\x201\x20allowed)','The\x20','This\x20is\x20used\x20for\x20changing\x20the\x20time\x20span\x20of\x20the\x20timeline.\x20This\x20uses\x20the\x20timeline\x20date\x20range,\x20not\x20the\x20visible\x20date\x20range','toEvent','successfully\x20selected\x20','isDateRangeAvailable','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20instead\x20of\x20the\x20id.','conditionIds','unassign','classDisplayName','\x20(only\x20for\x20conditions)','\x20at\x20a\x20time.','more\x20than\x20one\x20','Assign','6KWAjot','782838EhzikO','processRecordsRequest','allowOverlap','s,\x20respond\x20with\x20the\x20names\x20of\x20the\x20','\x20at\x20a\x20given\x20date.\x20Only\x20perform\x20this\x20task\x20when\x20asked\x20to\x20copy/duplicate,\x20NEVER\x20when\x20reassigning\x20to\x20other\x20','.\x20Dont\x20mix\x20with\x20other\x20tool\x20calls.\x20If\x20reassigning,\x20always\x20call\x20assign\x20first,\x20and\x20then\x20unassign.','s\x20to\x20link','length','The\x20new\x20date\x20range\x20overlaps\x20another\x20','records','requireConfirmationOnUpdates','\x20this\x20','\x20record\x20that\x20the\x20dependency\x20ends\x20at','load','enabled','createDeleteRecordsTool','`true`\x20to\x20show\x20the\x20current\x20time\x20indicator','copyEvents','507017RXuQyk','Only\x20use\x20this\x20when\x20asked\x20to\x20unhighlight\x20all\x20','parentId','availableRanges','reassign','successfully\x20highlighted\x20','modelName','The\x20time\x20range\x20context\x20to\x20set','8dHzPmE','isSchedulerBase','activeRange','\x20to\x20','\x20uses\x20multi\x20assignment,\x20an\x20','Dependency','args','copyTimeValues','showCurrentTimeLine','\x20found','\x20are\x20to\x20be\x20selected','dependencies','link','forceHighlight','crudManager',')\x20to\x20the\x20','s\x20(conditionId:\x20','systemMessageIntro','\x20to.\x20If\x20no\x20time\x20is\x20provided,\x20the\x20time\x20part\x20will\x20be\x20copied\x20from\x20the\x20source\x20','L{ConfirmationDialog.confirmUnlink}','\x20with\x20it`s\x20id,\x20and\x20paste\x20the\x20copy\x20onto\x20another\x20(or\x20the\x20same)\x20','\x20of\x20a\x20parent\x20','features','project','If\x20true,\x20removes\x20currently\x20assigned\x20','find','$contextFilteredCount','modelClass','\x22.\x20Consider\x20using\x20the\x20changeTimeRangeContext\x20tool\x20to\x20expand\x20the\x20scope,\x20if\x20that\x20is\x20what\x20the\x20user\x20intended','detectConditionErrors','.\x20If\x20user\x20requests\x20any\x20action\x20from\x20you\x20that\x20would\x20result\x20in\x20an\x20overlap,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20please\x20prompt\x20the\x20user\x20what\x20to\x20do.','singleAssignment','isScheduler','no\x20parent\x20','pasteEvents','_configuredTools','startDate','createUpdateRecordsTool','getNextAvailableDateRange','eventCopyPaste','parseDuration','Represents\x20a\x20single\x20dependency\x20(or\x20link)\x20between\x20two\x20','Something\x20that\x20is\x20planned\x20at\x20a\x20specific\x20date\x20with\x20a\x20duration.\x20Similar\x20words:\x20event,task,appointment,meeting\x20etc.','89130ntaYBt','txt','includes','eventStore.filters','events','Changes\x20the\x20data\x20scope\x20for\x20operations.\x20\x22timeline\x22\x20limits\x20operations\x20to\x20events\x20within\x20the\x20timeline\x20date\x20range.\x20\x22in-view\x22\x20limits\x20to\x20events\x20visible\x20on\x20screen.\x20\x22all\x22\x20includes\x20all\x20events\x20in\x20the\x20dataset.\x20Use\x20this\x20when\x20the\x20user\x20wants\x20to\x20work\x20with\x20data\x20outside\x20the\x20current\x20scope.','3196430PpSXLd','tools','the\x20user\x20declined\x20the\x20unassignment','.\x20Make\x20sure\x20to\x20only\x20call\x20once\x20even\x20if\x20multiple\x20','to\x20unassign\x20from\x20the\x20','to\x20highlight','resourceStore','$$name','L{ConfirmationDialog.confirm','createAddRecordTool','s\x20assigned\x20to\x20this\x20','This\x20is\x20a\x20feature\x20used\x20to\x20show\x20an\x20indicator\x20line\x20at\x20the\x20current\x20date\x20/\x20time.','s\x20at\x20the\x20same\x20time.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20When\x20asked\x20about\x20the\x20','s\x20to\x20','Conditions','This\x20is\x20used\x20for\x20scrolling\x20a\x20specific\x20date\x20into\x20view','to\x20perform\x20the\x20assignments\x20on','to\x20link\x20to','rowStore','filter','parse','push','add','\x20to','formatDate','\x20from\x20an\x20','This\x20will\x20return\x20a\x20startDate\x20and\x20a\x20resourceId\x20which\x20will\x20represent\x20the\x20next\x20available\x20slot\x20which\x20will\x20be\x20calculated\x20using\x20the\x20provided\x20parameters','no\x20dependency\x20found','s\x20to\x20unlink','534100aCrkNL','highlight','conditions','to\x20paste\x20to','successfully\x20assigned\x20','to\x20assign\x20the\x20','context','269140DLIJXW','Set\x20to\x20true\x20to\x20make\x20sure\x20all\x20matching\x20','\x20-\x20','\x20out\x20of\x20','\x20MUST\x20NOT\x20have\x20any\x20','Time\x20range\x20context\x20changed\x20to\x20\x22','\x20found\x20to\x20assign\x20to','s\x20or\x20changing\x20dates.','\x22\x20is\x20not\x20available','assignmentModelName','createFilterTool','Event','too\x20many\x20','forEach','\x20uses\x20single\x20assignment,\x20an\x20','duration\x20required','to\x20copy','success','assign','string','Use\x20this\x20to\x20assign\x20','b-icon-right','232UlSdwe','client','replaceKeywords','usesSingleAssignment','event','The\x20end\x20of\x20the\x20time\x20span','L{ConfirmationDialog.confirmCopy}','\x20found\x20to\x20assign\x20to\x20the\x20specified\x20','timeRanges','Reassign','date\x20to\x20paste\x20to\x20is\x20required','to\x20perform\x20the\x20unassignment\x20on','Use\x20this\x20to\x20link\x20one\x20','toLowerCase','select','clearFilters','models','some','\x20to\x20find\x20available\x20time\x20slots','meta','successfully\x20unassigned\x20','Use\x20this\x20to\x20highlight/show\x20','s\x20and\x20show\x20all\x20again','update','\x20links\x20to\x20a\x20','unfilter','\x20links\x20to\x20an\x20','setTimeSpan','isResourceAvailable','\x20record','date','\x20or\x20','\x20matching\x20','start','\x20are\x20available','assignmentStore','to\x20add\x20this\x20as\x20a\x20child\x20','systemMessageAssignment','\x20(conditionId:\x20','uncapitalize','condition','ResourceModel','rowModelName','resource','When\x20targeting\x20a\x20set\x20of\x20','value','requireConfirmationOnAdds','1696ZnUwbX','duration','\x20can\x20only\x20be\x20assigned\x20to\x20a\x20single\x20','canReload','The\x20date\x20to\x20paste\x20the\x20','.\x20If\x20user\x20specified\x20exact\x20time,\x20please\x20let\x20the\x20user\x20know\x20that\x20it\x20is\x20not\x20available.\x20Otherwise,\x20use\x20get','loadUrl','L{ConfirmationDialog.confirmUnassign}','isSameDate','success\x20-\x20','remove','resources','durationUnit','eventModelName','Resource','s\x20instead\x20of\x20their\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ids.','Id\x20of\x20the\x20','successfully\x20changed\x20the\x20time\x20span\x20from\x20','dependencyStore','no\x20','merge','resources\x20not\x20available\x20(overlap\x20not\x20allowed)','scrollToDate','(s)\x20were\x20found\x20but\x20excluded\x20because\x20the\x20time\x20range\x20context\x20is\x20set\x20to\x20\x22','matchAll','time\x20range\x20context\x20\x22','Use\x20this\x20to\x20copy\x20an\x20','isTree','confirm','\x20record\x20that\x20the\x20','replace'];_sca=function(){return ag;};return _sca();}import _scg from'@bryntum/core-thin/lib/feature/ai/AIHelper.js';const {getConditionBlock,createConditionTool,createGetRecordsTool,createBasicTool}=_scg;export default class DefaultSchedulerAgent extends _scc{get[_scA(-0x167,-0x1ad)](){const {productName:a}=this;function B(a,b){return _scA(b,a-0x168);}return this[B(-0x2a,-0x48)]`You are an assistant for a scheduling / project management application called ${a}.
|
|
2
2
|
By the use of your tools, you can help the user modifying the data in the ${a}.
|
|
3
3
|
And also to control the ${a} ui.
|
|
4
4
|
|
|
5
5
|
When working with dates, and no exact date is provided, dates should be considered to be in the current timeline range. If ambiguity, use the one currently scrolled in view.
|
|
6
|
-
`;}get[_scA(-
|
|
7
|
-
${c[
|
|
6
|
+
`;}get[_scA(-0x1fc,-0x216)](){function C(a,b){return _scA(b,a-0x3ab);}const {eventModelName:a,rowModelName:b,productName:c}=this;if(this[C(0x1c3,0x1df)][C(0x173,0x16d)]){return C(0x1c5,0x165)+c+C(0x168,0x1ac)+a+C(0x1a1,0x194)+b+C(0x1cf,0x19b);}return C(0x1c5,0x1d9)+c+C(0x1f1,0x19f)+a+'\x20can\x20be\x20assigned\x20to\x20multiple\x20'+b+C(0x22a,0x294)+a+'\x20or\x20'+b+'\x20of\x20an\x20assignment,\x20respond\x20with\x20the\x20name\x20of\x20the\x20'+a+C(0x18f,0x1ab)+b+C(0x1ca,0x196);}get[_scA(-0x217,-0x1ea)](){var a;const b=this,{client:c,eventModelName:d,rowModelName:e}=b,f=b[D(-0x189,-0x1b9)](super[D(-0x13a,-0x16a)]);function D(a,b){return _scA(a,b-0x80);}return f+'\x0a'+this[D(-0x11d,-0x112)]`
|
|
7
|
+
${c['allowOverlap']?'':'A\x20'+e+D(-0xa3,-0xe5)+d+'s\x20that\x20overlaps.\x20Always\x20consider\x20this\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20adding,\x20editing\x20or\x20copying\x20'+d+D(-0x13a,-0x120)}
|
|
8
8
|
|
|
9
|
-
${b[
|
|
9
|
+
${b['modelClassDescriptions']??''}
|
|
10
10
|
|
|
11
11
|
A milestone is an ${d} that has a duration of 0.
|
|
12
12
|
|
|
13
|
-
${b[D(
|
|
13
|
+
${b[D(-0x127,-0x196)]}
|
|
14
14
|
|
|
15
15
|
It is ok to try to match conditions for ${d}s and ${e}s on the name field only, if that is the only thing that is provided. But be sure you add the condition to the correct data entity or relation.
|
|
16
16
|
And it is always better to match on a conditionId, if you can.
|
|
17
17
|
|
|
18
|
-
${(a=c[D(0x421,0x41f)][D(0x455,0x485)])!==null&&a!==void 0x0&&a[D(0x3e5,0x386)]?'When\x20asked\x20about\x20dependencies\x20(links)\x20between\x20'+d+D(0x401,0x394)+d+D(0x41b,0x455):''}`;}[_scA(0xb,-0xf)](a){function E(a,b){return _scA(a,b- -0x153);}return super['replaceKeywords'](a)[E(-0x20f,-0x1c7)](/\$\$Event/g,this[E(-0x15b,-0x18a)])[E(-0x201,-0x1c7)](/\$\$event/g,this[E(-0x132,-0x18a)][E(-0x145,-0x170)]());}get[_scA(0x48,-0xb)](){const a=super[F(0x174,0x1d5)];if(a===F(0xf6,0xf4)){return F(0xe2,0x98);}function F(a,b){return _scA(b,a-0x17f);}return a;}get[_scA(0x30,-0x37)](){function G(a,b){return _scA(b,a- -0x33);}const a=this[G(-0x33,0x12)][G(-0xce,-0xf4)][G(-0x4b,-0x9f)][G(-0xe5,-0xdb)];if(a===G(-0x5c,-0x31)){return G(-0xbb,-0x9f);}return a;}get[_scA(-0x6b,-0xc0)](){const a=this['client'][H(0x3b6,0x401)][H(0x421,0x465)][H(0x3b2,0x3cb)];function H(a,b){return _scA(a,b-0x47d);}if(a===H(0x463,0x421)){return H(0x3e0,0x40d);}return a;}get[_scA(-0x36,-0x22)](){function I(a,b){return _scA(a,b-0x7f);}var a;const {rowModelName:b,eventModelName:c,assignmentModelName:d,client:e}=this,{eventStore:f,assignmentStore:g}=e,{usesSingleAssignment:h}=f,i=h?'':'s';return _sce['merge']({},super[I(0x22,0x5d)],{[b]:{'relations':{'events':{'relatedModelName':c,'description':I(-0x27,0x3d)+c+I(0x11,-0x18)+b+'\x20(only\x20for\x20conditions)','isArray':!![]}},'ignoreFields':h?null:[I(-0x6e,-0x3b)]},[c]:{'store':f,'relations':{[I(0x4e,0x2e)+i]:{'relatedModelName':b,'description':I(0x7f,0x3d)+(b+i)+I(0x4e,0x12)+c+I(0x52,-0xd),'isArray':!h}},'fields':[{'name':I(0x37,0x2a),'description':I(-0x6c,-0x35)+c+I(-0x6e,-0x26)+c+'s'}],'description':I(-0x7a,-0x11)}},h?{}:{[d]:{'store':g,'relations':{'resource':{'relatedModelName':b,'description':I(-0x22,0x3d)+b+I(-0x7f,-0x2a)+d+'\x20links\x20to\x20an\x20'+c+I(0x75,0x60)},'event':{'relatedModelName':c,'description':I(0x8d,0x3d)+c+I(-0x6b,-0x2a)+d+'\x20links\x20to\x20a\x20'+b+'\x20record'}}}},(a=e[I(-0x26,0x21)][I(0x9,0x55)])!==null&&a!==void 0x0&&a[I(-0x74,-0x1b)]?{'Dependency':{'store':e[I(0x22,0x1c)],'fields':[{'name':'fromEvent','description':I(0x59,0x8d)+c+'\x20record\x20that\x20the\x20dependency\x20starts\x20from'},{'name':'toEvent','description':I(0xf5,0x8d)+c+I(-0x18,0x5)}],'description':'Represents\x20a\x20single\x20dependency\x20(or\x20link)\x20between\x20two\x20'+c+'s'}}:{});}[_scA(0x1f,-0xc)](a,b){function J(a,b){return _scA(a,b-0x13f);}return!(super['shouldIncludeTrainingDataEntry'](a,b)===![]||a[J(0x164,0x136)](J(0xb6,0x90))&&!this['client'][J(0x93,0xa4)]['usesSingleAssignment']);}get['tools'](){var a,b;const c=this,{client:d,eventModelName:e,rowModelName:f,productName:g}=c,{readOnly:h}=d,i=c[K(0x37a,0x381)][e][K(0x303,0x362)],{usesSingleAssignment:j}=i,k=d[K(0x3b5,0x3fa)],l=_scf['uncapitalize'](e)+K(0x363,0x38b),m=_scf[K(0x35e,0x35a)](f)+'Conditions',n=_sce[K(0x383,0x338)](super[K(0x37b,0x37b)],{[K(0x2fb,0x2e3)+e+'s']:_scg[K(0x32b,0x35c)]({'modelName':e,'beforeRecordUpdate':({record:o,toSet:p,errors:q})=>{function L(a,b){return K(a- -0x17a,b);}let {startDate:r,endDate:s}=p;if(r||s){r??=_scd[L(0x235,0x21e)](s,-o[L(0x1ec,0x18f)],o['durationUnit']);s??=_scd['add'](r,o[L(0x1ec,0x226)],o['durationUnit']);if(d[L(0x1ad,0x146)]===![]){if(!i[L(0x1de,0x1a4)](r,s,null,o[L(0x1d1,0x1af)],![])){const t=L(0x18c,0x1b4)+e+'.\x20If\x20user\x20specified\x20exact\x20time,\x20please\x20let\x20the\x20user\x20know\x20that\x20it\x20is\x20not\x20available.\x20Otherwise,\x20use\x20get'+e+L(0x1c7,0x18f);if(!q[L(0x219,0x23e)](t)){q[L(0x1bd,0x1ef)](t);}return![];}}}}}),[K(0x3af,0x36e)+e]:_scg[K(0x35b,0x34e)]({'modelName':e,'properties':{'assignConditions':getConditionBlock({'modelName':f,'doWhat':'to\x20assign\x20this\x20'+e+K(0x382,0x3aa)}),...i[K(0x2ef,0x33d)]?{'parentConditions':getConditionBlock({'modelName':e,'doWhat':K(0x35f,0x349)+e+K(0x33b,0x31f)+e+K(0x36d,0x361)})}:{}},'required':k?[K(0x31b,0x2fe)]:[],'prepareArguments'(o){const {dataObject:p}=o,{assignConditions:q,parentConditions:r}=o[M(-0x1ef,-0x25a)],s=q&&c[M(-0x154,-0x1a2)]({'modelName':f},q);if(!(s!==null&&s!==void 0x0&&s[M(-0x172,-0x15d)])&&k){return'fail\x20-\x20no\x20'+f+M(-0x177,-0x13e);}if(r){const x=c[M(-0x154,-0x14a)]({'modelName':e},r);if(!x[M(-0x172,-0x19d)]){return M(-0x153,-0x168)+e+M(-0x13b,-0x13b);}p[M(-0x18f,-0x1d6)]=x[0x0]['id'];}let {startDate:t,endDate:u,duration:v}=p;function M(a,b){return K(a- -0x4e8,b);}let w=s;if(d[M(-0x1c1,-0x222)]===![]&&t&&s){if(typeof t===M(-0x14a,-0x170)){t=_scd[M(-0x17a,-0x142)](t);}if(!u&&typeof v===M(-0x14a,-0x11b)){v=parseInt(v);}u??=_scd[M(-0x139,-0x119)](t,v,p[M(-0x142,-0x114)]);w=s['filter'](y=>d['isDateRangeAvailable'](t,u,null,y));if(!w[M(-0x172,-0x12c)]){return'failed\x20-\x20resources\x20not\x20available\x20(overlap\x20not\x20allowed)';}}Object[M(-0x171,-0x171)](o,{'resources':s,'availableResources':w});},'afterAdd'({resources:o,availableResources:p,added:q}){p===null||p===void 0x0||p[N(0x527,0x504)](r=>q['assign'](r));function N(a,b){return K(b-0x210,a);}if(o&&p['length']<o[N(0x5b5,0x586)]){return'success\x20-\x20'+e+N(0x5f9,0x591)+p['length']+N(0x5d1,0x5c2)+o[N(0x5c0,0x586)]+N(0x602,0x5af);}}}),[K(0x33f,0x317)+e+'s']:_scg[K(0x3b4,0x3ef)]({'modelName':e}),['get'+e+'s']:createGetRecordsTool({'modelName':e,'defaultSortField':K(0x352,0x37f)}),[K(0x35c,0x3c0)+e+'s']:_scg['createFilterTool']({'modelName':e,'productName':g,'storeProperty':'eventStore'}),[K(0x2e4,0x2e0)+e+'s']:createBasicTool({'description':'Use\x20this\x20to\x20remove\x20filters\x20for\x20'+e+'s\x20and\x20show\x20all\x20again','state':{'path':K(0x3b7,0x409),'empty':[]},'fn'(){function O(a,b){return K(a-0x279,b);}i['clearFilters']();return O(0x587,0x5c8);}}),[K(0x386,0x3d7)+e+'s']:createConditionTool({'description':'Use\x20this\x20to\x20select\x20a\x20number\x20of\x20'+e+K(0x2df,0x2bd)+e+'\x20are\x20to\x20be\x20selected','conditions':[{'modelName':e,'doWhat':K(0x39d,0x3aa)}],'fn'({records:o}){function P(a,b){return K(a-0x2ae,b);}d['selectEvents'](o);return P(0x623,0x5d1)+o['length']+'\x20'+e+P(0x635,0x659)+o[0x0]['meta'][P(0x5c7,0x60d)]['at'](-0x1)+')';}}),'changeTimeSpan':createBasicTool({'description':K(0x34a,0x351),'properties':{'startDate':{'type':K(0x39e,0x3c3),'description':K(0x31c,0x2be)},'endDate':{'type':K(0x39e,0x3e3),'description':K(0x343,0x355)}},'required':[K(0x352,0x345),K(0x385,0x33e)],'state':{'path':[K(0x352,0x367),K(0x385,0x320)]},'fn'({args:{startDate:o,endDate:p}}){o=new Date(o);function Q(a,b){return K(a- -0x412,b);}p=new Date(p);d[Q(-0x126,-0x18a)](o,p);return'successfully\x20changed\x20the\x20time\x20span\x20to\x20'+c['formatDate'](o)+Q(-0x67,-0xb2)+c['formatDate'](p);}}),'showCurrentTimeLine':createBasicTool({'description':K(0x364,0x30f),'properties':{'value':{'type':K(0x335,0x38d),'description':K(0x2e5,0x312)}},'required':[K(0x3a0,0x33b)],'available':((a=d[K(0x33e,0x373)][K(0x33d,0x352)])===null||a===void 0x0?void 0x0:a[K(0x302,0x300)])??![],'fn'({args:{value:o}}){d['features'][R(0x27,0x15)][R(-0x35,-0x5f)]=o;function R(a,b){return K(a- -0x316,b);}return'success';}}),[K(0x3a4,0x3d9)+e+'s']:createConditionTool({'description':K(0x32e,0x319)+e+'s\x20determined\x20by\x20the\x20conditions\x20passed','conditions':[{'modelName':e,'doWhat':K(0x351,0x3b9)}],'fn'({promptContext:o,records:p}){(o[S(0x4e6,0x528)][e]??=[])['push'](...p);o[S(0x50d,0x50c)]=!![];function S(a,b){return K(b-0x184,a);}return'successfully\x20highlighted\x20'+p['length']+'\x20'+e+S(0x56d,0x50b)+p[0x0][S(0x4cf,0x4be)]['conditionIds']['at'](-0x1)+')';}}),'unhighlightAll':createBasicTool({'description':K(0x3b3,0x3e6)+e+'s','fn'({promptContext:o}){o[T(-0x147,-0x107)][e]=[];function T(a,b){return K(b- -0x4ab,a);}return T(-0x1b8,-0x19d);}}),'scrollToDate':createBasicTool({'description':'This\x20is\x20used\x20for\x20scrolling\x20a\x20specific\x20date\x20into\x20view','properties':{'date':{'type':'string','description':K(0x369,0x364)}},'required':[K(0x308,0x2d8)],'fn'({args:{date:o}}){o=new Date(o);d[U(0x6d,0x9f)](o,{'block':U(0x10d,0xc7),'animate':!![]});function U(a,b){return K(b- -0x25f,a);}return'success';}}),[K(0x30d,0x2e0)+e]:createConditionTool({'description':K(0x31a,0x30f)+e+K(0x334,0x370)+f+'\x20at\x20a\x20given\x20date.\x20Only\x20perform\x20this\x20task\x20when\x20asked\x20to\x20copy/duplicate,\x20NEVER\x20when\x20reassigning\x20to\x20other\x20'+f+K(0x3ae,0x356),'conditions':[{'modelName':e,'doWhat':K(0x3b6,0x40b)},{'modelName':f,'doWhat':'to\x20paste\x20to','required':!j}],'properties':{'date':{'type':K(0x39e,0x3a4),'description':K(0x342,0x352)+e+K(0x3b0,0x3f4)+e}},'required':[K(0x308,0x325)],'available':!h,'prepareArguments'(o){var p;let {args:{date:q,[m]:r},records:{[l]:s,[m]:t}}=o;if(!q){return'failed\x20-\x20date\x20to\x20paste\x20to\x20is\x20required';}const u=q[V(0x54c,0x559)]<0xb;o[V(0x512,0x4eb)]=q=new Date(q);const v=({startDate:x})=>u?_scd[V(0x4cc,0x508)](x,q):x-q===0x0;s=s[V(0x581,0x53f)](x=>!v(x)||t[V(0x4bb,0x4e7)](y=>!x['resources']['includes'](y)));if(s[V(0x51a,0x559)]!==0x1){return s['length']?V(0x512,0x4ed)+e+V(0x538,0x56e):V(0x4bd,0x514)+e+V(0x5d0,0x590);}function V(a,b){return K(b-0x1e3,a);}const [w]=s;if(v(w)){t=t[V(0x523,0x53f)](x=>!x[V(0x57c,0x55f)]['includes'](w));}if(j&&!(r!==null&&r!==void 0x0&&(p=r[V(0x4ee,0x4ce)])!==null&&p!==void 0x0&&p[V(0x58d,0x559)])){t=w[V(0x4d5,0x530)];}if(t[V(0x5bd,0x559)]!==0x1){return t[V(0x56b,0x559)]?'failed\x20-\x20to\x20many\x20'+f+V(0x5ac,0x56e):V(0x500,0x514)+f+'\x20found';}u&&_scd[V(0x4d6,0x533)](q,w['startDate']);o[V(0x532,0x4f2)]=w;o[V(0x522,0x52e)]=t[0x0];},async 'confirm'({date:o,event:p,resource:q,promptContext:r}){if(this[W(0x243,0x26f)]!==!![]){return!![];}function W(a,b){return K(a- -0xc6,b);}return this[W(0x21a,0x229)]({'items':[d['L'](W(0x2e2,0x2af)),{'text':p[W(0x2e3,0x350)]},{'icon':W(0x2ae,0x29f)},{'text':q[W(0x2e3,0x2a4)]},{'icon':'b-icon-clock'},{'text':d[W(0x2df,0x2fd)](o)}],'isAdd':!![],'highlight':{[e]:[p],[f]:[q],'date':o},'promptContext':r});},async 'fn'({date:o,event:p,resource:q}){function X(a,b){return K(a- -0x49f,b);}await d[X(-0x161,-0x174)][X(-0x169,-0x176)]['copyEvents']([p]);await d[X(-0x161,-0x18d)]['eventCopyPaste'][X(-0x18e,-0x1b2)](o,q);return X(-0x13d,-0x12d)+e+X(-0x182,-0x18c)+p[X(-0x165,-0x10a)][X(-0x186,-0x17a)]['at'](-0x1)+X(-0x11f,-0xe1)+f+X(-0x182,-0x1b1)+q[X(-0x165,-0x14d)][X(-0x186,-0x15a)]['at'](-0x1)+')';}}),[K(0x377,0x391)+e+'s']:createConditionTool({'description':'Use\x20this\x20to\x20assign\x20'+f+K(0x2fa,0x294)+e+K(0x2e3,0x2b9),'conditions':[{'modelName':e,'pluralize':!![],'doWhat':'to\x20perform\x20the\x20assignments\x20on','includeReadOnly':![]},{'modelName':f,'pluralize':!![],'doWhat':'to\x20assign\x20the\x20'+e+K(0x382,0x3c6)}],'properties':j?null:{'reassign':{'type':K(0x335,0x306),'description':'If\x20true,\x20removes\x20currently\x20assigned\x20'+f+'s\x20before\x20assigning'}},'required':j?[]:['reassign'],'available':!h,'prepareArguments'(o){const {records:{[l]:p,[m]:q}}=o;o[Y(0x28f,0x2de)]=p[Y(0x299,0x2be)](r=>q[Y(0x26e,0x266)](s=>!r[Y(0x2ca,0x2af)][Y(0x32c,0x2f5)](s)));function Y(a,b){return K(b- -0x9e,a);}if(!o[Y(0x312,0x2de)][Y(0x2b5,0x2d8)]){return Y(0x266,0x293)+e+Y(0x316,0x2d2)+f+'s';}o[Y(0x2fb,0x2af)]=q[Y(0x2a4,0x2be)](s=>!s['events'][Y(0x2a2,0x2f5)](p[0x0]));if(!o['events'][Y(0x282,0x2d8)]){return Y(0x2bc,0x293)+e+'\x20found\x20to\x20assign\x20to\x20the\x20specified\x20'+f+'s';}o['reassign']=!j&&o['args'][Y(0x321,0x2f1)];},async 'confirm'({reassign:o,events:p,resources:q,promptContext:r}){if(this[Z(0x2e0,0x2b0)]!==!![]){return!![];}function Z(a,b){return K(b- -0xe8,a);}const s={[e]:p,[f]:q};return this[Z(0x1e9,0x1f8)]({'items':[d['L'](Z(0x28d,0x260)+(o?Z(0x237,0x20d):'Assign')+'}'),{'count':p['length'],'modelName':e},{'icon':Z(0x2f5,0x28c)},{'count':q[Z(0x2d2,0x28e)],'modelName':f}],'promptContext':r,'highlight':s});},async 'fn'({reassign:o,promptContext:p,events:q,resources:r}){const s=[];function a0(a,b){return K(a- -0x3db,b);}for(const t of q){for(const u of r){o&&t['resources'][a0(-0xe7,-0xbd)](v=>v!==u&&t['unassign'](v));if(!t[a0(-0x8e,-0xac)]['includes'](u)){t[a0(-0x64,-0x87)](u);s['push'](u);}}}(p[a0(-0x37,-0x85)][e]??=[])[a0(-0xa4,-0x57)](...q);(p[a0(-0x37,-0x1b)][f]??=[])[a0(-0xa4,-0x44)](...s);return a0(-0x85,-0xd5)+q[a0(-0x65,-0x45)]+'\x20'+e+a0(-0x54,-0x3d)+q[0x0][a0(-0xa1,-0x45)][a0(-0xc2,-0xc0)]['at'](-0x1)+a0(-0xb8,-0xfa)+s[a0(-0x65,-0xc3)]+'\x20'+f+a0(-0x54,-0x9a)+s[0x0][a0(-0xa1,-0x55)]['conditionIds']['at'](-0x1)+')';}}),[K(0x39a,0x386)+e+'s']:createConditionTool({'description':K(0x316,0x376)+f+K(0x344,0x39a)+e+K(0x37e,0x328),'conditions':[{'modelName':e,'pluralize':!![],'doWhat':K(0x2f2,0x311),'includeReadOnly':![]},{'modelName':f,'pluralize':!![],'doWhat':K(0x345,0x323)+e}],'available':!h&&!j,async 'fn'({promptContext:o,records:p}){function a1(a,b){return K(b-0x263,a);}const q=p[l],r=p[m],s={[e]:q,[f]:r},t=[],u=[];if(this['requireConfirmationOnUpdates']&&await this['confirm']({'items':[d['L'](a1(0x57e,0x553)),{'count':r[a1(0x640,0x5d9)],'modelName':f},{'icon':a1(0x5de,0x5d2)},{'count':q[a1(0x5d7,0x5d9)],'modelName':e}],'promptContext':o,'highlight':s})===![]){return a1(0x5b5,0x54a);}for(const v of q){let w=![];for(const x of r){if(v[a1(0x551,0x5b0)]['includes'](x)){v['unassign'](x);t[a1(0x5e6,0x59a)](x);w=!![];}}w&&u[a1(0x5b6,0x59a)](v);}(o[a1(0x634,0x607)][e]??=[])[a1(0x5c4,0x59a)](...q);return'successfully\x20unassigned\x20'+t[a1(0x5da,0x5d9)]+'\x20'+f+a1(0x5da,0x5ea)+t[0x0][a1(0x569,0x59d)][a1(0x530,0x57c)]['at'](-0x1)+a1(0x60b,0x5af)+u[a1(0x606,0x5d9)]+'\x20'+e+a1(0x5cd,0x5ea)+u[0x0][a1(0x57e,0x59d)][a1(0x5b9,0x57c)]['at'](-0x1)+')';}}),'getNextAvailableSlot':createConditionTool({'description':K(0x392,0x385),'conditions':[{'modelName':f,'doWhat':'to\x20find\x20available\x20slots\x20for'}],'properties':{[K(0x360,0x375)+f+'s']:{'type':K(0x335,0x354),'description':K(0x2f6,0x2ca)+f+'\x20are\x20available'},'startDate':{'type':K(0x39e,0x330),'description':'The start date from where to begin finding available slots. If excluded, the start of the current timerange will be used'},'duration':{'type':K(0x39e,0x38b),'description':'How\x20long\x20the\x20time\x20slot\x20needs\x20to\x20be,\x20expressed\x20with\x20an\x20amount\x20and\x20a\x20unit.\x20Examples:\x20\x221day\x22,\x20\x222hours\x22,\x20\x2290min\x22'}},'required':[K(0x366,0x3a7),'matchAll'+f+'s'],'fn'({args:{startDate:o,duration:p,...q},records:r}){var s;if(!p){return a2(-0x8b,-0x2d);}p=_scd[a2(-0x22,-0x10)](p);o=(s=o)!==null&&s!==void 0x0&&s['length']?new Date(o):d[a2(0x2e,0x1e)]??d[a2(-0x5b,-0x2c)];const t=q[a2(0xb,0x2c)+f+'s'],u=d[a2(-0x8,-0x33)][a2(-0x49,-0x38)]({'startDate':o,'duration':p,'resources':r,'matchAllResources':t});function a2(a,b){return K(b- -0x334,a);}return JSON['stringify']({'resourceId':u[a2(0x26,0x17)]['id'],'startDate':c[a2(0x2c,0x6f)](u['startDate'])});}})});if((b=d[K(0x33e,0x2db)][K(0x372,0x3d6)])!==null&&b!==void 0x0&&b[K(0x302,0x34f)]){const o='from'+e,p='to'+e;Object[K(0x377,0x3d1)](n,{'getDependencies':createGetRecordsTool({'modelName':K(0x3ac,0x3cd)}),[K(0x38a,0x341)+e]:createConditionTool({'description':K(0x38c,0x34c)+e+K(0x32a,0x2e4)+e+K(0x300,0x365),'conditions':[{'name':o,'modelName':e,'doWhat':'to link from'},{'name':p,'modelName':e,'doWhat':K(0x3a1,0x34f)}],'available':!h,'prepareArguments'(q){const r=q['records'][o],s=q[a3(0x1d3,0x1c1)][p];function a3(a,b){return K(a- -0x138,b);}if(r['length']>0x1||s[a3(0x23e,0x261)]>0x1){return a3(0x1b9,0x16e)+(r['length']>0x1?o:p)+a3(0x275,0x26c);}Object[a3(0x23f,0x1f6)](q,{'fromEvent':r[0x0],'toEvent':s[0x0]});},async 'confirm'({fromEvent:q,toEvent:r,promptContext:s}){function a4(a,b){return K(b- -0x1fa,a);}if(this[a4(0x1d2,0x19e)]!==!![]){return!![];}const t={[e]:[q,r]};return this[a4(0x9c,0xe6)]({'items':[d['L'](a4(0x186,0x139)),{'text':q[a4(0x207,0x1af)]},{'icon':a4(0x1dd,0x17a)},{'text':r['classDisplayName']}],'promptContext':s,'highlight':t});},'fn'({fromEvent:q,toEvent:r,promptContext:s}){d['dependencyStore']['add']({'fromEvent':q,'toEvent':r});(s['highlight'][e]??=[])['push'](q,r);return'success';}}),[K(0x368,0x350)+e]:createConditionTool({'description':K(0x361,0x366)+e+K(0x2dd,0x2d6)+e+K(0x32d,0x2d0),'conditions':[{'name':o,'modelName':e,'doWhat':'to unlink from'},{'name':p,'modelName':e,'doWhat':K(0x39b,0x338)}],'available':!h,'prepareArguments'(q){function a5(a,b){return K(b-0x34,a);}const r=q[a5(0x2dc,0x33f)][o],s=q['records'][p];if(r[a5(0x36d,0x3aa)]>0x1||s[a5(0x372,0x3aa)]>0x1){return'failed\x20-\x20more\x20than\x20one\x20'+(r['length']>0x1?o:p)+a5(0x383,0x3e1);}const [t]=r,[u]=s,v=d[a5(0x39f,0x36d)]['find'](w=>w[a5(0x31e,0x32c)]===t&&w[a5(0x37b,0x3e5)]===u||w[a5(0x2f4,0x32c)]===u&&w[a5(0x3ea,0x3e5)]===t);if(!v){return a5(0x32d,0x37d);}Object['assign'](q,{'fromEvent':r[0x0],'toEvent':s[0x0],'dependency':v});},async 'confirm'({fromEvent:q,toEvent:r,promptContext:s}){if(this[a6(0x2f7,0x360)]!==!![]){return!![];}const t={[e]:[q,r]};function a6(a,b){return K(b- -0x38,a);}return this[a6(0x2e7,0x2a8)]({'items':[d['L'](a6(0x346,0x35f)),{'text':q['classDisplayName']},{'icon':a6(0x2df,0x33c)},{'text':r[a6(0x360,0x371)]}],'promptContext':s,'highlight':t});},'fn'({dependency:q,promptContext:r,fromEvent:s,toEvent:t}){q['remove']();function a7(a,b){return K(a- -0x287,b);}(r[a7(0x11d,0x169)][e]??=[])[a7(0xb0,0x56)](s,t);return a7(0x87,0x35);}})});}function K(a,b){return _scA(b,a-0x39c);}if(c[K(0x317,0x343)]&&(d[K(0x34e,0x31a)]||d[K(0x378,0x390)])){_sce[K(0x383,0x381)](n,c[K(0x317,0x34d)]);}return n;}[_scA(0x1b,-0x4d)](){var a;function a8(a,b){return _scA(a,b-0xfd);}return Boolean((a=this[a8(0x12f,0xfd)][a8(0x3d,0x5e)])===null||a===void 0x0?void 0x0:a[a8(0xe4,0xb8)]);}[_scA(-0x4d,-0x13)](){function a9(a,b){return _scA(b,a-0x58c);}this['client'][a9(0x4ed,0x4de)][a9(0x4de,0x4fd)]();}}
|
|
18
|
+
${(a=c[D(-0x11e,-0x128)][D(-0x114,-0x133)])!==null&&a!==void 0x0&&a['enabled']?'When\x20asked\x20about\x20dependencies\x20(links)\x20between\x20'+d+D(-0x1a8,-0x155)+d+D(-0x1c9,-0x17d):''}`;}[_scA(-0x287,-0x239)](a){function E(a,b){return _scA(a,b-0x3ca);}return super[E(0x183,0x191)](a)[E(0x180,0x1dc)](/\$\$Event/g,this['eventModelName'])[E(0x20a,0x1dc)](/\$\$event/g,this[E(0x1ea,0x1cb)][E(0x164,0x19c)]());}get['rowModelName'](){function F(a,b){return _scA(b,a-0x442);}const a=super[F(0x231,0x1f2)];if(a===F(0x230,0x215)){return F(0x244,0x21a);}return a;}get[_scA(-0x129,-0x17b)](){function G(a,b){return _scA(b,a-0x1cd);}return this[G(-0x6d,-0xa0)]['project'][G(0x46,0x97)];}get[_scA(-0x1c7,-0x1ff)](){function H(a,b){return _scA(a,b-0x16b);}const a=this[H(-0x5a,-0x7d)][H(-0x94,-0x38)][H(-0x64,-0x1b)];if(a==='EventModel'){return H(0x63,0xd);}return a;}get[_scA(-0x19e,-0x1e8)](){function I(a,b){return _scA(a,b-0x6ed);}return this[I(0x483,0x4b3)][I(0x4e9,0x546)][I(0x49d,0x505)];}get[_scA(-0x1a5,-0x160)](){const a=this[J(0x20b,0x249)]['modelClass'][J(0x29d,0x252)];if(a==='AssignmentModel'){return'Assignment';}function J(a,b){return _scA(b,a-0x423);}return a;}get['assignmentStore'](){function K(a,b){return _scA(a,b-0x40);}return this[K(-0x18e,-0x1fa)][K(-0x10e,-0x167)]['assignmentStore'];}get[_scA(-0x26d,-0x22b)](){var a;const {rowModelName:b,eventModelName:c,assignmentModelName:d,client:e,eventStore:f,assignmentStore:g}=this,{usesSingleAssignment:h}=f,i=h?'':'s';function L(a,b){return _scA(a,b-0x49);}return _sce[L(-0x21b,-0x1af)]({},super[L(-0x1cb,-0x1e2)],{[b]:{'relations':{'events':{'relatedModelName':c,'description':'The\x20'+c+L(-0x11f,-0x13a)+b+L(-0x12f,-0x194),'isArray':!![]}},'ignoreFields':h?null:['resourceId']},[c]:{'store':f,'relations':{[L(-0x187,-0x1c7)+i]:{'relatedModelName':b,'description':L(-0x18f,-0x19d)+(b+i)+L(-0x168,-0x184)+c+'\x20is\x20assigned\x20to','isArray':!h}},'fields':[{'name':'conditionId','description':L(-0x1ae,-0x1c6)+c+'s\x20previously\x20targeted\x20by\x20a\x20condition,\x20you\x20need\x20to\x20always\x20use\x20the\x20conditionId\x20to\x20be\x20sure\x20you\x20target\x20the\x20same\x20set\x20of\x20'+c+'s'}],'description':L(-0x142,-0x14b)}},h?{}:{[d]:{'store':g,'relations':{'resource':{'relatedModelName':b,'description':L(-0x15c,-0x19d)+b+L(-0x1f9,-0x1a6)+d+L(-0x190,-0x1d8)+c+L(-0x20c,-0x1d5)},'event':{'relatedModelName':c,'description':L(-0x14d,-0x19d)+c+L(-0x175,-0x1a6)+d+L(-0x215,-0x1da)+b+L(-0x1fb,-0x1d5)}}}},(a=e[L(-0x1d0,-0x15f)][L(-0x192,-0x16a)])!==null&&a!==void 0x0&&a[L(-0x18b,-0x181)]?{'Dependency':{'store':e[L(-0x184,-0x1b1)],'fields':[{'name':'fromEvent','description':L(-0x21b,-0x1b3)+c+'\x20record\x20that\x20the\x20dependency\x20starts\x20from'},{'name':L(-0x184,-0x19b),'description':L(-0x1ed,-0x1b3)+c+L(-0x1a5,-0x183)}],'description':L(-0xe8,-0x14c)+c+'s'}}:{});}['shouldIncludeTrainingDataEntry'](a,b){function M(a,b){return _scA(b,a-0x3d5);}return!(super['shouldIncludeTrainingDataEntry'](a,b)===![]||a['includes'](M(0x236,0x23a))&&!this[M(0x1ed,0x23f)][M(0x19d,0x1a5)]);}get[_scA(-0x137,-0x18c)](){var a,b;const c=this,{client:d,eventModelName:e,rowModelName:f,productName:g}=c,{readOnly:h}=d,i=c['models'][e]['store'],{usesSingleAssignment:j}=i,k=d[N(0x1f8,0x1cf)],l=_scf[N(0x1a1,0x200)](e)+N(0x236,0x22f),m=_scf['uncapitalize'](f)+N(0x236,0x230),n=_sce['merge'](super[N(0x229,0x28a)],{[N(0x191,0x131)+e+'s']:_scg[N(0x21c,0x277)]({'modelName':e,'beforeRecordUpdate':({record:o,toSet:p,errors:q})=>{let {startDate:r,endDate:s}=p;function O(a,b){return N(b- -0x97,a);}if(r||s){r??=_scd[O(0x189,0x1a7)](s,-o['duration'],o[O(0x175,0x11e)]);s??=_scd[O(0x161,0x1a7)](r,o[O(0x147,0x113)],o[O(0x176,0x11e)]);if(d[O(0xfa,0x148)]===![]){if(!i[O(0xb7,0xff)](r,s,null,o[O(0x11d,0x10e)],![])){const t=O(0x1ae,0x14e)+e+O(0x151,0x117)+e+O(0x10c,0xf5);if(!q[O(0x1c4,0x18d)](t)){q['push'](t);}return![];}}}}}),[N(0x23e,0x23f)+e]:_scg[N(0x231,0x28b)]({'modelName':e,'properties':{'assignConditions':getConditionBlock({'modelName':f,'doWhat':'to\x20assign\x20this\x20'+e+N(0x23f,0x25b)}),...i[N(0x1c4,0x18d)]?{'parentConditions':getConditionBlock({'modelName':e,'doWhat':N(0x19e,0x188)+e+N(0x20c,0x1d9)+e+'\x20(only\x20when\x20asked\x20to)'})}:{}},'required':k?['assignConditions']:[],'prepareArguments'(o){const {dataObject:p}=o,{assignConditions:q,parentConditions:r}=o['args'],s=q&&c[P(0x1be,0x15b)]({'modelName':f},q);if(!(s!==null&&s!==void 0x0&&s[P(0x1c4,0x1ff)])&&k){return _scg[P(0x1aa,0x14b)]('no\x20'+f+P(0x232,0x1e4));}if(r){const x=c['processRecordsRequest']({'modelName':e},r);if(!x[P(0x1c4,0x172)]){return _scg[P(0x1aa,0x20b)](P(0x1f8,0x1cc)+e+P(0x1e0,0x18d));}p[P(0x1d1,0x17f)]=x[0x0]['id'];}let {startDate:t,endDate:u,duration:v}=p;let w=s;if(d[P(0x1bf,0x1c8)]===![]&&t&&s){if(typeof t==='string'){t=_scd[P(0x21c,0x272)](t);}if(!u&&typeof v===P(0x157,0xf9)){v=parseInt(v);}u??=_scd[P(0x21e,0x27c)](t,v,p[P(0x195,0x144)]);w=s[P(0x21b,0x1d7)](y=>d[P(0x1b3,0x189)](t,u,null,y));if(!w[P(0x1c4,0x20e)]){return _scg[P(0x1aa,0x20a)](P(0x19e,0x1cb));}}function P(a,b){return N(a- -0x20,b);}Object[P(0x156,0x198)](o,{'resources':s,'availableResources':w});},'afterAdd'({resources:o,availableResources:p,added:q}){p===null||p===void 0x0||p[Q(0x4b6,0x44e)](r=>q[Q(0x4bb,0x455)](r));function Q(a,b){return N(a-0x345,b);}if(o&&p[Q(0x529,0x4fa)]<o[Q(0x529,0x4dd)]){return Q(0x4f7,0x4c2)+e+'\x20created\x20but\x20only\x20'+p['length']+Q(0x594,0x5f4)+o[Q(0x529,0x542)]+'\x20resources\x20assigned\x20due\x20to\x20overlap\x20not\x20allowed';}}}),['delete'+e+'s']:_scg[N(0x1ec,0x1ae)]({'modelName':e}),['get'+e+'s']:createGetRecordsTool({'modelName':e,'defaultSortField':N(0x21b,0x211)}),[N(0x23b,0x296)+e+'s']:_scg[N(0x256,0x237)]({'modelName':e,'productName':g,'storeProperty':N(0x1cd,0x16a)}),[N(0x193,0x148)+e+'s']:createBasicTool({'description':'Use\x20this\x20to\x20remove\x20filters\x20for\x20'+e+N(0x190,0x14a),'state':{'path':N(0x225,0x1c1),'empty':[]},'fn'(){i[R(-0x65,-0x6b)]();function R(a,b){return N(a- -0x1ee,b);}return R(-0x79,-0x24);}}),[N(0x188,0x16a)+e+'s']:createConditionTool({'description':'Use\x20this\x20to\x20select\x20a\x20number\x20of\x20'+e+N(0x22b,0x1ec)+e+N(0x201,0x1a0),'conditions':[{'modelName':e,'doWhat':'to\x20select'}],'fn'({records:o}){function S(a,b){return N(a- -0x175,b);}d['selectEvents'](o);return S(0x5d,0x1a)+o[S(0x6f,0xbc)]+'\x20'+e+S(0x92,0xbf)+o[0x0][S(0x18,0x61)][S(0x60,0x1c)]['at'](-0x1)+')';}}),'changeTimeSpan':createBasicTool({'description':N(0x1d0,0x178),'properties':{'startDate':{'type':N(0x177,0x179),'description':'The\x20start\x20of\x20the\x20time\x20span'},'endDate':{'type':N(0x177,0x1c7),'description':N(0x17f,0x146)}},'required':['startDate','endDate'],'state':{'path':['startDate','endDate']},'fn'({args:{startDate:o,endDate:p}}){const q=c[T(0x29d,0x27c)](d['startDate']),r=c[T(0x29d,0x278)](d['endDate']);o=new Date(o);p=new Date(p);function T(a,b){return N(a-0x5d,b);}d[T(0x1f2,0x1ff)](o,p);return T(0x217,0x277)+q+T(0x2ab,0x250)+r+T(0x257,0x276)+c[T(0x29d,0x26e)](o)+T(0x2ab,0x2bd)+c[T(0x29d,0x2f1)](p);}}),'showCurrentTimeLine':createBasicTool({'description':N(0x233,0x1e0),'properties':{'value':{'type':N(0x1c9,0x1ba),'description':N(0x1ed,0x19e)}},'required':[N(0x1a7,0x1ea)],'available':((a=d['features'][N(0x182,0x119)])===null||a===void 0x0?void 0x0:a['enabled'])??![],'fn'({args:{value:o}}){function U(a,b){return N(b-0x17f,a);}d[U(0x3d3,0x38c)][U(0x291,0x301)][U(0x314,0x37e)]=o;return'success';}}),['highlight'+e+'s']:createConditionTool({'description':N(0x18f,0x151)+e+'s\x20determined\x20by\x20the\x20conditions\x20passed','conditions':[{'modelName':e,'doWhat':N(0x22d,0x270)}],'fn'({promptContext:o,records:p}){(o[V(0x49b,0x48a)][e]??=[])[V(0x482,0x481)](...p);o[V(0x44c,0x448)]=!![];function V(a,b){return N(b-0x244,a);}return V(0x472,0x438)+p[V(0x44a,0x428)]+'\x20'+e+V(0x493,0x44b)+p[0x0][V(0x378,0x3d1)]['conditionIds']['at'](-0x1)+')';}}),'unhighlightAll':createBasicTool({'description':N(0x1f0,0x25e)+e+'s','fn'({promptContext:o}){function W(a,b){return N(a- -0x18,b);}o[W(0x22e,0x1e8)][e]=[];return W(0x15d,0x164);}}),'scrollToDate':createBasicTool({'description':N(0x237,0x221),'properties':{'date':{'type':N(0x177,0x18c),'description':'The\x20date\x20to\x20scroll\x20'}},'required':['date'],'fn'({args:{date:o}}){o=new Date(o);d[X(0x23d,0x28c)](o,{'block':X(0x219,0x1e0),'animate':!![]});function X(a,b){return N(a-0x7e,b);}return X(0x1f3,0x229);}}),'changeTimeRangeContext':createBasicTool({'description':N(0x227,0x202),'properties':{'context':{'type':'string','enum':d[N(0x20d,0x260)]['ai'][N(0x1f2,0x209)],'description':N(0x1f6,0x1ac)}},'required':[N(0x24b,0x20d)],'fn'({args:{context:o}}){if(!d['features']['ai'][Y(-0xab,-0x6d)][Y(-0x79,-0x43)](o)){return _scg[Y(-0xd3,-0x121)](Y(-0xdb,-0x12e)+o+Y(-0x49,-0xa9));}function Y(a,b){return N(a- -0x29d,b);}d[Y(-0x90,-0x56)]['ai']['activeRange']=o;return Y(-0x4c,-0x90)+o+'\x22';}}),['copy'+e]:createConditionTool({'description':N(0x1c3,0x17a)+e+N(0x20b,0x1c2)+f+N(0x1e1,0x226)+f+N(0x253,0x25e),'conditions':[{'modelName':e,'doWhat':N(0x174,0x1da)},{'modelName':f,'doWhat':N(0x248,0x1d7),'required':!j}],'properties':{'date':{'type':N(0x177,0x1a1),'description':N(0x1ad,0x15c)+e+N(0x209,0x25f)+e}},'required':[N(0x198,0x18c)],'available':!h,'prepareArguments'(o){function Z(a,b){return N(b-0x16f,a);}var p;let {args:{date:q,[m]:r},records:{[l]:s,[m]:t}}=o;if(!q){return _scg[Z(0x314,0x339)](Z(0x29f,0x2f3));}const u=q[Z(0x33f,0x353)]<0xb;o[Z(0x325,0x307)]=q=new Date(q);const v=({startDate:x})=>u?_scd[Z(0x371,0x320)](x,q):x-q===0x0;s=s[Z(0x363,0x3aa)](x=>!v(x)||t[Z(0x2a5,0x2fa)](y=>!x[Z(0x315,0x323)][Z(0x3d1,0x393)](y)));if(s[Z(0x32f,0x353)]!==0x1){return s[Z(0x362,0x353)]?_scg[Z(0x378,0x339)](Z(0x33f,0x2df)+e+Z(0x351,0x33d)):_scg[Z(0x35e,0x339)](Z(0x375,0x32b)+e+Z(0x3df,0x36f));}const [w]=s;if(v(w)){t=t['filter'](x=>!x['events'][Z(0x374,0x393)](w));}if(j&&!(r!==null&&r!==void 0x0&&(p=r[Z(0x3ca,0x3b6)])!==null&&p!==void 0x0&&p['length'])){t=w[Z(0x349,0x323)];}if(t[Z(0x329,0x353)]!==0x1){return t[Z(0x34a,0x353)]?_scg[Z(0x3ab,0x339)](Z(0x2b2,0x2df)+f+'\x20found\x20(only\x201\x20allowed)'):_scg[Z(0x2e8,0x339)](Z(0x2e9,0x32b)+f+Z(0x3aa,0x36f));}u&&_scd[Z(0x358,0x36d)](q,w['startDate']);o[Z(0x2d9,0x2ed)]=w;o[Z(0x36f,0x314)]=t[0x0];},async 'confirm'({date:o,event:p,resource:q,promptContext:r}){function a0(a,b){return N(b-0x1e7,a);}if(this[a0(0x372,0x38f)]!==!![]){return!![];}return this[a0(0x376,0x3ac)]({'items':[d['L'](a0(0x354,0x367)),{'text':p[a0(0x37b,0x3be)]},{'icon':'b-icon-right'},{'text':q[a0(0x3a0,0x3be)]},{'icon':'b-icon-clock'},{'text':d['getFormattedDate'](o)}],'isAdd':!![],'highlight':{[e]:[p],[f]:[q],'date':o},'promptContext':r});},async 'fn'({date:o,event:p,resource:q}){await d[a1(0x43a,0x3d8)][a1(0x44b,0x497)][a1(0x41b,0x3d2)]([p]);await d[a1(0x43a,0x43c)][a1(0x44b,0x469)][a1(0x446,0x493)](o,q);function a1(a,b){return N(a-0x22d,b);}return'successfully\x20copied\x20the\x20'+e+a1(0x3cd,0x381)+p[a1(0x3ba,0x3e0)][a1(0x402,0x3bf)]['at'](-0x1)+a1(0x433,0x3c0)+f+a1(0x3cd,0x3c3)+q[a1(0x3ba,0x3f6)][a1(0x402,0x3e8)]['at'](-0x1)+')';}}),[N(0x176,0x1c2)+e+'s']:createConditionTool({'description':N(0x178,0x153)+f+N(0x235,0x25c)+e+'s.\x20Do\x20not\x20mix\x20with\x20other\x20tool\x20calls','conditions':[{'modelName':e,'pluralize':!![],'doWhat':N(0x238,0x20e),'includeReadOnly':![]},{'modelName':f,'pluralize':!![],'doWhat':N(0x24a,0x215)+e+'\x20to'}],'properties':j?null:{'reassign':{'type':N(0x1c9,0x158),'description':N(0x20f,0x1bd)+f+'s\x20before\x20assigning'}},'required':j?[]:[N(0x1f3,0x214)],'available':!h,'prepareArguments'(o){const {records:{[l]:p,[m]:q}}=o;o[a2(-0x69,-0x70)]=p[a2(-0x54,-0x87)](r=>q[a2(-0x104,-0x95)](s=>!r[a2(-0xdb,-0xe6)][a2(-0x6b,-0x6d)](s)));if(!o[a2(-0x69,-0xd6)][a2(-0xab,-0xea)]){return _scg['error'](a2(-0xd3,-0x91)+e+a2(-0x10e,-0x167)+f+'s');}o[a2(-0xdb,-0x147)]=q[a2(-0x54,-0x20)](s=>!s[a2(-0x69,-0x84)]['includes'](p[0x0]));function a2(a,b){return N(a- -0x28f,b);}if(!o['resources'][a2(-0xab,-0x105)]){return _scg[a2(-0xc5,-0x6b)](a2(-0xd3,-0xa1)+f+'\x20available');}o[a2(-0x9c,-0xd3)]=!j&&o[a2(-0x92,-0x2c)][a2(-0x9c,-0x38)];},async 'confirm'({reassign:o,events:p,resources:q,promptContext:r}){if(this[a3(0x169,0x152)]!==!![]){return!![];}function a3(a,b){return N(b- -0x95,a);}const s={[e]:p,[f]:q};return this[a3(0x107,0x130)]({'items':[d['L'](a3(0x1f1,0x19b)+(o?a3(0x10b,0xee):a3(0xda,0x146))+'}'),{'count':p[a3(0x187,0x14f)],'modelName':e},{'icon':a3(0xea,0xe4)},{'count':q[a3(0x132,0x14f)],'modelName':f}],'promptContext':r,'highlight':s});},async 'fn'({reassign:o,promptContext:p,events:q,resources:r}){const s=[];for(const t of q){for(const u of r){o&&t['resources'][a4(0x17c,0x1c0)](v=>v!==u&&t[a4(0x1e1,0x1ae)](v));if(!t['resources'][a4(0x22f,0x24e)](u)){t[a4(0x181,0x1c3)](u);s[a4(0x248,0x20d)](u);}}}(p[a4(0x251,0x283)][e]??=[])['push'](...q);(p['highlight'][f]??=[])[a4(0x248,0x2a6)](...s);function a4(a,b){return N(a-0xb,b);}return a4(0x254,0x218)+q[a4(0x1ef,0x186)]+'\x20'+e+a4(0x212,0x1ca)+q[0x0][a4(0x198,0x145)][a4(0x1e0,0x1e2)]['at'](-0x1)+')\x20to\x20'+s[a4(0x1ef,0x1f1)]+'\x20'+f+'s\x20(conditionId:\x20'+s[0x0][a4(0x198,0x199)]['conditionIds']['at'](-0x1)+')';}}),[N(0x1d6,0x19b)+e+'s']:createConditionTool({'description':'Use\x20this\x20to\x20unassign\x20a\x20'+f+N(0x241,0x28c)+e+N(0x1e2,0x22c),'conditions':[{'modelName':e,'pluralize':!![],'doWhat':N(0x185,0x116),'includeReadOnly':![]},{'modelName':f,'pluralize':!![],'doWhat':N(0x22c,0x1fd)+e}],'available':!h&&!j,async 'fn'({promptContext:o,records:p}){const q=p[l],r=p[m],s={[e]:q,[f]:r},t=[],u=[];function a5(a,b){return N(b- -0x23a,a);}if(this['requireConfirmationOnUpdates']&&await this['confirm']({'items':[d['L'](a5(-0xdb,-0x8a)),{'count':r['length'],'modelName':f},{'icon':a5(-0xad,-0x72)},{'count':q[a5(-0x43,-0x56)],'modelName':e}],'promptContext':o,'highlight':s})===![]){return _scg[a5(-0x74,-0x70)](a5(-0x79,-0x10));}for(const v of q){let w=![];for(const x of r){if(v[a5(-0xb1,-0x86)][a5(-0x73,-0x16)](x)){v[a5(-0x87,-0x64)](x);t[a5(0x58,0x3)](x);w=!![];}}w&&u[a5(-0x20,0x3)](v);}(o['highlight'][e]??=[])[a5(-0x1,0x3)](...q);return a5(-0xb2,-0xac)+t[a5(-0x23,-0x56)]+'\x20'+f+a5(-0x80,-0x33)+t[0x0]['meta'][a5(-0x15,-0x65)]['at'](-0x1)+')\x20from\x20'+u[a5(-0x5e,-0x56)]+'\x20'+e+a5(-0xa5,-0x33)+u[0x0][a5(-0x3c,-0xad)][a5(-0xc8,-0x65)]['at'](-0x1)+')';}}),'getNextAvailableSlot':createConditionTool({'description':N(0x242,0x28d),'conditions':[{'modelName':f,'doWhat':'to\x20find\x20available\x20slots\x20for'}],'properties':{['matchAll'+f+'s']:{'type':N(0x1c9,0x177),'description':N(0x24d,0x2a5)+f+N(0x19c,0x14f)},'startDate':{'type':N(0x177,0x139),'description':'The start date from where to begin finding available slots. If excluded, the start of the current timerange will be used'},'duration':{'type':'string','description':'How\x20long\x20the\x20time\x20slot\x20needs\x20to\x20be,\x20expressed\x20with\x20an\x20amount\x20and\x20a\x20unit.\x20Examples:\x20\x221day\x22,\x20\x222hours\x22,\x20\x2290min\x22'}},'required':[N(0x1aa,0x1a6),N(0x1c1,0x161)+f+'s'],'fn'({args:{startDate:o,duration:p,...q},records:r}){var s;if(!p){return _scg[a6(0x2a2,0x312)](a6(0x2b7,0x2bb));}function a6(a,b){return N(b-0x148,a);}p=_scd[a6(0x36e,0x367)](p);o=(s=o)!==null&&s!==void 0x0&&s[a6(0x345,0x32c)]?new Date(o):d['startDate']??d[a6(0x30c,0x2e0)];const t=q[a6(0x2aa,0x309)+f+'s'],u=i[a6(0x3b3,0x365)]({'startDate':o,'duration':p,'resources':r,'matchAllResources':t});return _scg['result']({'resourceId':u['resource']['id'],'startDate':c[a6(0x333,0x388)](u['startDate'])});}})});if((b=d[N(0x20d,0x1eb)][N(0x202,0x1bd)])!==null&&b!==void 0x0&&b['enabled']){const o='from'+e,p='to'+e;Object[N(0x176,0x11a)](n,{'getDependencies':createGetRecordsTool({'modelName':N(0x1fc,0x18d)}),[N(0x203,0x1e6)+e]:createConditionTool({'description':N(0x186,0x1c7)+e+'\x20to\x20another\x20by\x20creating\x20a\x20dependency.\x20Pass\x20conditions\x20for\x20which\x20'+e+N(0x1e3,0x19c),'conditions':[{'name':o,'modelName':e,'doWhat':'to link from'},{'name':p,'modelName':e,'doWhat':N(0x239,0x2a7)}],'available':!h,'prepareArguments'(q){const r=q['records'][o],s=q[a7(-0xdc,-0xb9)][p];function a7(a,b){return N(b- -0x29f,a);}if(r[a7(-0x4a,-0xbb)]>0x1||s['length']>0x1){return _scg[a7(-0x126,-0xd5)]('more\x20than\x20one\x20'+(r[a7(-0x10c,-0xbb)]>0x1?o:p)+a7(-0xf9,-0x9f));}Object[a7(-0xda,-0x129)](q,{'fromEvent':r[0x0],'toEvent':s[0x0]});},async 'confirm'({fromEvent:q,toEvent:r,promptContext:s}){function a8(a,b){return N(b- -0x180,a);}if(this['requireConfirmationOnUpdates']!==!![]){return!![];}const t={[e]:[q,r]};return this[a8(0x9a,0x45)]({'items':[d['L']('L{ConfirmationDialog.confirmLink}'),{'text':q[a8(0x9e,0x57)]},{'icon':'b-icon-right'},{'text':r['classDisplayName']}],'promptContext':s,'highlight':t});},'fn'({fromEvent:q,toEvent:r,promptContext:s}){function a9(a,b){return N(b-0x281,a);}d[a9(0x427,0x43c)]['add']({'fromEvent':q,'toEvent':r});(s[a9(0x463,0x4c7)][e]??=[])['push'](q,r);return a9(0x3a8,0x3f6);}}),['unlink'+e]:createConditionTool({'description':'Use\x20this\x20to\x20remove\x20a\x20dependency\x20linking\x20two\x20'+e+'s.\x20Pass\x20conditions\x20for\x20which\x20'+e+N(0x244,0x22b),'conditions':[{'name':o,'modelName':e,'doWhat':'to unlink from'},{'name':p,'modelName':e,'doWhat':'to\x20unlink\x20to'}],'available':!h,'prepareArguments'(q){const r=q[aa(0x2eb,0x2e7)][o],s=q[aa(0x2c0,0x2e7)][p];function aa(a,b){return N(b-0x101,a);}if(r[aa(0x31e,0x2e5)]>0x1||s['length']>0x1){return _scg[aa(0x2fc,0x2cb)](aa(0x2f4,0x2db)+(r['length']>0x1?o:p)+'\x20found');}const [t]=r,[u]=s,v=d[aa(0x27c,0x2bc)][aa(0x2a9,0x311)](w=>w[aa(0x33e,0x2cd)]===t&&w[aa(0x2f7,0x2d2)]===u||w[aa(0x338,0x2cd)]===u&&w[aa(0x2f4,0x2d2)]===t);if(!v){return _scg[aa(0x30b,0x2cb)](aa(0x331,0x344));}Object[aa(0x279,0x277)](q,{'fromEvent':r[0x0],'toEvent':s[0x0],'dependency':v});},async 'confirm'({fromEvent:q,toEvent:r,promptContext:s}){if(this[ab(-0x2d,-0x68)]!==!![]){return!![];}const t={[e]:[q,r]};function ab(a,b){return N(b- -0x24f,a);}return this[ab(-0xc3,-0x8a)]({'items':[d['L'](ab(-0xb8,-0x45)),{'text':q[ab(-0x38,-0x78)]},{'icon':ab(-0xc4,-0xd6)},{'text':r[ab(-0xcf,-0x78)]}],'promptContext':s,'highlight':t});},'fn'({dependency:q,promptContext:r,fromEvent:s,toEvent:t}){function ac(a,b){return N(b-0x123,a);}q[ac(0x28c,0x2d6)]();(r[ac(0x342,0x369)][e]??=[])[ac(0x323,0x360)](s,t);return ac(0x2c1,0x298);}})});}function N(a,b){return _scA(b,a-0x3b5);}if(c[N(0x21a,0x1da)]&&(d[N(0x217,0x1ec)]||d['isSchedulerPro'])){_sce[N(0x1bd,0x1e8)](n,c[N(0x21a,0x1e3)]);}return n;}[_scA(-0x1e9,-0x1a1)](a){function ad(a,b){return _scA(b,a-0x23);}const b=super[ad(-0x17e,-0x19f)](a);if(!a[ad(-0x1ac,-0x146)][ad(-0x1ae,-0x21b)]&&!b&&this['$contextFilteredCount']){return this[ad(-0x181,-0x1f4)]+ad(-0x1f8,-0x1a7)+a[ad(-0x1f0,-0x20b)][ad(-0x19d,-0x165)]+ad(-0x1d2,-0x20c)+this[ad(-0x217,-0x1d5)][ad(-0x185,-0x1b3)]['ai'][ad(-0x199,-0x170)]+ad(-0x17f,-0x1e6);}return b;}[_scA(-0x243,-0x209)](){function ae(a,b){return _scA(a,b-0x6a4);}var a;return Boolean((a=this[ae(0x43d,0x46a)]['crudManager'])===null||a===void 0x0?void 0x0:a[ae(0x4fc,0x49e)]);}['reload'](){function af(a,b){return _scA(b,a-0x7a6);}this[af(0x56c,0x525)][af(0x5f6,0x5ce)][af(0x5db,0x5c3)]();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _scg(a,b){return _scb(a-0x346,b);}function _sca(){var h=['{\x22$$Events\x22:[{\x22id\x22:236,\x22name\x22:\x22Performance\x20review\x22,\x22startDate\x22:\x222025-04-03T08:00:00\x22,\x22endDate\x22:\x222025-04-03T09:00:00\x22,\x22resourceId\x22:3},{\x22id\x22:224,\x22name\x22:\x22Team\x20check-in\x22,\x22startDate\x22:\x222025-04-03T09:00:00\x22,\x22endDate\x22:\x222025-04-03T09:30:00\x22,\x22resourceId\x22:\x223\x22},{\x22id\x22:132,\x22name\x22:\x22Training\x20session\x22,\x22startDate\x22:\x222025-04-03T10:00:00\x22,\x22endDate\x22:\x222025-04-03T11:00:00\x22,\x22resourceId\x22:1},{\x22id\x22:113,\x22name\x22:\x22Lunch\x20with\x20friends\x22,\x22startDate\x22:\x222025-04-03T12:00:00\x22,\x22endDate\x22:\x222025-04-03T13:30:00\x22,\x22resourceId\x22:1},{\x22id\x22:202,\x22name\x22:\x22Client\x20call\x22,\x22startDate\x22:\x222025-04-03T16:00:00\x22,\x22endDate\x22:\x222025-04-03T17:00:00\x22,\x22resourceId\x22:\x223\x22}],\x22conditionId\x22:3,\x22count\x22:5}','Example$$EventName1','Move\x20Example$$RowName1\x20$$events\x20to\x20Example$$RowName2\x20and\x20increase\x20the\x20duration\x20by\x20one','230','system','get$$Events','2\x20days','ExampleName1','any','assign$$Events','2024-11-11T00:00:00','72285edHRSX','234KSJVEB','We\x20also\x20need\x20ExampleName2s\x20events\x20','And\x20set\x20Example$$EventName2s\x20startDate\x20to\x20Example$$EventName1s','set','update$$Events','resourceId','assistant','2025-04-03','2025-03-14T08:00','changeTimeSpan','Assign\x20ExampleName1s\x20$$events\x20to\x20ExampleName2','2491006cRWCUo','name','ExampleName2','{\x22$$Events\x22:[{\x22id\x22:230,\x22name\x22:\x22Team\x20meeting\x22,\x22startDate\x22:\x222025-03-31T08:00:00\x22,\x22endDate\x22:\x222025-03-31T09:00:00\x22},{\x22id\x22:231,\x22name\x22:\x22Project\x20planning\x22,\x22startDate\x22:\x222025-03-31T10:00:00\x22,\x22endDate\x22:\x222025-03-31T11:00:00\x22},{\x22id\x22:232,\x22name\x22:\x22Client\x20call\x22,\x22startDate\x22:\x222025-03-31T13:30:00\x22,\x22endDate\x22:\x222025-03-31T14:30:00\x22}],\x22conditionId\x22:1,\x22count\x22:3}','Assign\x20Example$$EventName1\x20to\x20Example$$EventName2s\x20$$row','singleAssignment','You\x20need\x20to\x20find\x20out\x20what\x20date\x20the\x20Friday\x20the\x20user\x20refers\x20to\x20is,\x20do\x20this\x20by\x20checking\x20the\x20timeline\x20date\x20range,\x20and\x20if\x20that\x20contains\x20multiple\x20matches,\x20use\x20current\x20visible\x20date\x20range','Shift\x20the\x20schedule\x20one\x20week\x20in\x20the\x20future','Make\x20ExampleName\x20$$event\x201\x20hour\x20long','This\x20case\x20requires\x20you\x20to\x20use\x20ids.\x20We\x20begin\x20by\x20reading\x20ExampleName1s\x20events','The\x20reschedule\x20keyword\x20indicates\x20we\x20cannot\x20simply\x20change\x20the\x20date\x20and\x20since\x20you\x20need\x20to\x20make\x20sure\x20that\x20there\x20are\x20no\x20conflicts,\x20you\x20first\x20need\x20to\x20read\x20events\x20for\x20both\x20of\x20the\x20days','231','233','Change\x20ExampleName1s\x20$$events\x20resourceId\x20to\x20ExampleName2s','2024-11-15T23:59:59','2024-12-01','Assign\x20Example$$EventName2\x20to\x20Example$$EventName1s\x20$$row','The\x20$$events\x20to\x20reschedule.\x20This\x20is\x20example\x20data\x20only','durationUnit','1103614EWSvEb','This\x20is\x20example\x20data\x20only','7463700XEjhhL','{\x22Events\x22:[{\x22id\x22:1},...],\x22conditionId\x22:1,\x22count\x22:30}','The\x20$$event\x20with\x20id\x20231\x20is\x201\x20hour\x20long,\x20and\x20the\x20first\x20available\x20hour\x20on\x20Thursday\x20is\x20now\x2013:30','all','There\x20are\x2030\x20$$events\x20this\x20month','2025-03-31','Reschedule\x20example$$RowName1\x27s\x20$$events\x20on\x20Monday\x20to\x20Thursday\x20and\x20see\x20to\x20it\x20that\x20none\x20are\x20colliding\x20with\x20other\x20$$events','ExampleName','45iyPsdc','Move\x20Wednesday`s\x20$$events\x20to\x20Friday','updateEvents','2308408ujCBVs','ExampleName1\x20and\x20ExampleName2\x20is\x20both\x20$$rows\x20and\x20the\x20user\x20wants\x20their\x20$$event\x20to\x20be\x20reassigned\x20to\x20the\x20other','The\x20user\x20wants\x20to\x20switch\x20the\x20$$row\x20and\x20date\x20for\x20these\x20$$events','ExampleName1\x20and\x20ExampleName2\x20needs\x20to\x20switch\x20$$events','tool','user','2025-03-12','This\x20is\x20the\x20current\x20state\x20of\x20the\x20$$productName.\x0aTimeline\x20date\x20range:\x202025-03-10T00:00:00\x20to\x202025-03-14T23:59:59\x0a\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20Current\x20time\x20is:\x202025-03-14T13:31:02\x0a\x20Current\x20visible\x20date\x20range:\x202025-03-10T00:00:00\x20to\x202025-03-14T23:59:59','resource.name','endDate','POSTPONED\x20','duration','2025-03-15T15:00','conditionId','2802660rXqzsB','3214038PzNHgr','This\x20is\x20the\x20current\x20state\x20of\x20the\x20Schedule.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x0a\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20Current\x20time\x20is:\x202025-04-24T15:11:19\x0a\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-04T00:00:00\x20to\x202024-11-08T14:24:00','2025-04-03T11:00','startDate','setDatePart'];_sca=function(){return h;};return _sca();}function _scb(a,b){var c=_sca();_scb=function(d,e){d=d-0x172;var f=c[d];return f;};return _scb(a,b);}(function(a,b){var c=a();function f(a,b){return _scb(b-0x18,a);}while(!![]){try{var d=-parseInt(f(0x19a,0x1ab))/0x1+-parseInt(f(0x1ad,0x1c6))/0x2+parseInt(f(0x1b1,0x1c7))/0x3+parseInt(f(0x198,0x1ad))/0x4+-parseInt(f(0x1b2,0x18c))/0x5*(parseInt(f(0x1b3,0x18d))/0x6)+-parseInt(f(0x1a5,0x198))/0x7+-parseInt(f(0x1a4,0x1b8))/0x8*(-parseInt(f(0x1cb,0x1b5))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_sca,0xe9409));export default[[_scg(0x4cb,0x4ed),{'role':'user','content':_scg(0x4e9,0x4c4),'description':_scg(0x4e7,0x4e9)},{'role':_scg(0x4c1,0x4df),'toolCalls':[{'id':'1','name':'get$$Events','parameters':{'$$eventConditions':{'conditions':[{'field':'resource.name','operator':'*','value':_scg(0x501,0x4eb)}],'type':_scg(0x4de,0x4fc)},'fields':['id',_scg(0x4c0,0x4bf)]},'description':_scg(0x4cf,0x4f4)},{'id':'2','name':_scg(0x4ff,0x51b),'parameters':{'$$eventConditions':{'conditions':[{'field':_scg(0x4ee,0x4e9),'operator':'*','value':_scg(0x4c8,0x4d5)}],'type':'all'},'fields':['id',_scg(0x4c0,0x4c1)]},'description':_scg(0x4bc,0x4d0)}]},{'role':'tool','id':'1','content':[{'id':'1','resourceId':'10'}],'name':'get$$Events'},{'role':'tool','id':'2','content':[{'id':'3','resourceId':'11'},{'id':'7','resourceId':'11'}],'name':_scg(0x4ff,0x516)},{'role':_scg(0x4c1,0x4da),'toolCalls':[{'name':'assign$$Events','parameters':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'1'}],'type':_scg(0x4de,0x4f8)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'11'}],'type':'all'}},'description':_scg(0x4d3,0x4eb)},{'name':_scg(0x4b8,0x4b8),'parameters':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'3'},{'field':'id','operator':'=','value':'7'}],'type':_scg(0x502,0x526)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'10'}],'type':_scg(0x4de,0x4dc)}},'description':_scg(0x4c5,0x4ae)}]},{'role':_scg(0x4ea,0x4df),'id':'3','content':'success','name':_scg(0x4b8,0x49e)},{'role':'tool','id':'4','content':'success','name':'assign$$Events'}],['singleAssignment',{'role':_scg(0x4eb,0x4d2),'content':'Switch\x20the\x20$$event\x20Example$$EventName1\x20with\x20Example$$EventName2','description':_scg(0x4e8,0x4fd)},{'role':'assistant','toolCalls':[{'id':'1','name':_scg(0x4ff,0x4e0),'parameters':{'$$eventConditions':{'conditions':[{'field':'name','operator':'*','value':'Example$$EventName1'},{'field':'name','operator':'*','value':'Example$$EventName2'}],'type':'any'},'fields':['id',_scg(0x4c7,0x4e6),_scg(0x4c0,0x4df),_scg(0x4f8,0x50f)]},'description':'This\x20case\x20requires\x20you\x20to\x20read\x20$$event\x20data'}]},{'role':'tool','id':'1','content':[{'id':'1','name':_scg(0x4fb,0x4ff),'resourceId':'10','startDate':_scg(0x4c3,0x4e3)},{'id':'9','name':'Example$$EventName2','resourceId':'11','startDate':_scg(0x4f2,0x4d5)}],'name':_scg(0x4ff,0x4f7)},{'role':_scg(0x4c1,0x4c9),'toolCalls':[{'name':_scg(0x4b8,0x4b5),'parameters':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'1'}],'type':_scg(0x4de,0x4fe)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'11'}],'type':_scg(0x4de,0x502)}},'description':_scg(0x4ca,0x4cf)},{'name':_scg(0x4b8,0x4a1),'parameters':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'9'}],'type':'all'},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'10'}],'type':_scg(0x4de,0x4ba)}},'description':_scg(0x4d6,0x4f5)},{'name':_scg(0x4bf,0x4bf),'parameters':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'1'}],'type':_scg(0x4de,0x4f6)},'changes':[{'field':_scg(0x4f8,0x4e9),'setOperator':'set','value':_scg(0x4f2,0x4f7)}]},'description':'Also\x20set\x20Example$$EventName1s\x20startDate\x20to\x20Example$$EventName2s'},{'name':_scg(0x4bf,0x4dd),'parameters':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'9'}],'type':'all'},'changes':[{'field':_scg(0x4f8,0x4ef),'setOperator':_scg(0x4be,0x4c0),'value':'2025-03-14T08:00'}]},'description':_scg(0x4bd,0x499)}]}],[{'role':_scg(0x4eb,0x4f0),'content':_scg(0x4e4,0x4f7)},{'role':_scg(0x4fe,0x519),'content':_scg(0x4ed,0x4d1)},{'role':'assistant','toolCalls':[{'name':_scg(0x4bf,0x4d0),'parameters':{'$$eventConditions':{'conditions':[{'field':_scg(0x4f8,0x500),'operator':'=','value':_scg(0x4ec,0x4e8)}],'type':_scg(0x4de,0x503)},'changes':[{'field':_scg(0x4f8,0x50d),'setOperator':'+','value':_scg(0x500,0x4e8)}]},'description':'Use the information from the state system message to find out what Wednesday the user refers to'}]}],[{'role':'user','content':'Move\x20ExampleNames\x20$$events\x20to\x20friday\x20and\x20add\x20a\x20POSTPONED\x20word\x20to\x20their\x20names'},{'role':_scg(0x4fe,0x50c),'content':'This\x20is\x20the\x20current\x20state\x20of\x20the\x20$$productName.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20time\x20is:\x202025-03-18T14:48:01\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-07T04:39:31\x20to\x202024-11-08T23:59:59'},{'role':'assistant','toolCalls':[{'name':'update$$Events','parameters':{'$$eventConditions':{'conditions':[{'field':_scg(0x4ee,0x4c8),'operator':'*','value':_scg(0x4e2,0x4ee)}],'type':'all'},'changes':[{'field':_scg(0x4f8,0x510),'setOperator':_scg(0x4f9,0x4da),'value':'2024-11-08'},{'field':_scg(0x4c7,0x4e4),'setOperator':'prepend','value':_scg(0x4f0,0x4f8)}]},'description':_scg(0x4cc,0x4c4)}]}],[{'role':'user','content':_scg(0x4ce,0x4ed)},{'role':_scg(0x4c1,0x4b6),'toolCalls':[{'name':_scg(0x4bf,0x4b3),'parameters':{'changes':[{'field':_scg(0x4f1,0x4fa),'setOperator':_scg(0x4be,0x49a),'value':'1'},{'field':_scg(0x4d8,0x4b7),'setOperator':_scg(0x4be,0x4e2),'value':'hour'}],'$$eventConditions':{'conditions':[{'field':'name','operator':'*','value':_scg(0x4e2,0x4ec)}],'type':'all'}}}]}],[{'role':_scg(0x4eb,0x504),'content':_scg(0x4cd,0x4d0)},{'role':'system','content':'This\x20is\x20the\x20current\x20state\x20of\x20the\x20Schedule.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x0a\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20Current\x20time\x20is:\x202025-03-28T09:23:35\x0a\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-07T04:39:31\x20to\x202024-11-08T23:59:59'},{'role':_scg(0x4c1,0x4bd),'toolCalls':[{'name':_scg(0x4c4,0x4e9),'parameters':{'startDate':_scg(0x4b9,0x4a4),'endDate':_scg(0x4d4,0x4f3)}}],'description':'Use the system state message to find out the current week and from there calculate the next week'}],['singleAssignment',{'role':_scg(0x4eb,0x4f7),'content':_scg(0x4fc,0x50f)},{'role':'assistant','toolCalls':[{'id':0x1,'name':'assign$$Events','parameters':{'$$eventConditions':{'type':'all','conditions':[{'field':_scg(0x4ee,0x510),'operator':'*','value':'Michael'}]},'$$rowConditions':{'type':_scg(0x4de,0x4c6),'conditions':[{'field':_scg(0x4c7,0x4cc),'operator':'*','value':'Linda'}]}}}]},{'content':'successfully\x20assigned\x202\x20$$Events\x20(conditionId:\x201)\x20to\x201\x20$$Rows\x20(conditionId:\x202)','role':_scg(0x4ea,0x4f9),'id':0x1,'name':'assign$$Events'},{'id':0x2,'name':_scg(0x4bf,0x4e2),'parameters':{'$$eventConditions':{'type':_scg(0x4de,0x4f8),'conditions':[{'field':_scg(0x4f3,0x4d4),'operator':'=','value':'1'}],'description':'Use\x20the\x20conditionId\x20returned\x20by\x20the\x20previous\x20tool\x20call\x20to\x20target\x20the\x20$$events\x20to\x20update.\x20Do\x20not\x20use\x20resource.name\x20in\x20this\x20case'},'changes':[{'field':_scg(0x4f1,0x4fd),'value':'1','setOperator':'+'}]}}],[{'role':'user','content':'how\x20many\x20$$events\x20this\x20month?'},{'role':_scg(0x4fe,0x503),'content':_scg(0x4f6,0x4dc)},{'role':_scg(0x4c1,0x4ce),'toolCalls':[{'id':0x1,'name':_scg(0x4ff,0x4e1),'parameters':{'fields':['id'],'$$eventConditions':{'type':_scg(0x4de,0x4fe),'conditions':[{'field':'endDate','operator':'>','value':'2024-11-01'},{'field':_scg(0x4f8,0x503),'operator':'<','value':_scg(0x4d5,0x4e3)}],'description':'The startDate and endDate is deferred from the state system message. With "this month" the user means the month currently in view.'}}}]},{'content':_scg(0x4dc,0x4d7),'role':_scg(0x4ea,0x4cc),'id':0x1,'name':'get$$Events','description':_scg(0x4da,0x4dd)},{'role':_scg(0x4c1,0x4aa),'content':_scg(0x4df,0x502)}],[{'role':_scg(0x4eb,0x4ca),'content':_scg(0x4e1,0x4d0),'description':_scg(0x4d0,0x4e6)},{'role':_scg(0x4fe,0x4fe),'content':'This\x20is\x20the\x20current\x20state\x20of\x20the\x20Schedule.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20time\x20is:\x202025-04-24T15:11:19\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-04T00:00:00\x20to\x202024-11-08T14:24:00'},{'role':_scg(0x4c1,0x4c4),'toolCalls':[{'id':0x1,'name':_scg(0x4ff,0x4e5),'parameters':{'fields':['id','startDate','endDate',_scg(0x4c7,0x4dc)],'$$eventConditions':{'type':_scg(0x4de,0x4de),'conditions':[{'field':_scg(0x4f8,0x512),'operator':'=','value':_scg(0x4e0,0x4d8)}],'description':'The startDate condition is deferred from the state system message'}}},{'id':0x2,'name':'get$$Events','parameters':{'fields':['id','startDate',_scg(0x4ef,0x4f1),_scg(0x4c7,0x4ce)],'$$eventConditions':{'type':_scg(0x4de,0x4c4),'conditions':[{'field':_scg(0x4f8,0x500),'operator':'=','value':_scg(0x4c2,0x4c1)}],'description':'The startDate condition is deferred from the state system message'}}}]},{'content':_scg(0x4c9,0x4be),'role':_scg(0x4ea,0x4d1),'id':0x1,'name':_scg(0x4ff,0x520),'description':_scg(0x4d7,0x4e1)},{'content':_scg(0x4fa,0x519),'role':'tool','id':0x2,'name':_scg(0x4ff,0x4ef),'description':'The\x20current\x20$$events\x20on\x20Thursday.\x20This\x20is\x20example\x20data\x20only'},{'role':'assistant','toolCalls':[{'id':0x3,'name':_scg(0x4e5,0x4c0),'parameters':{'$$eventConditions':{'type':_scg(0x4de,0x4c1),'conditions':[{'field':'id','operator':'=','value':_scg(0x4fd,0x4e2)}]},'changes':[{'field':'startDate','setOperator':_scg(0x4be,0x499),'value':_scg(0x4f7,0x505)}]},'description':'The\x20$$event\x20with\x20id\x20230\x20is\x201\x20hour\x20long,\x20and\x20the\x20first\x20available\x20hour\x20on\x20Thursday\x20is\x2011:00'},{'id':0x4,'name':'updateEvents','parameters':{'$$eventConditions':{'type':_scg(0x4de,0x4ee),'conditions':[{'field':'id','operator':'=','value':_scg(0x4d1,0x4c5)}]},'changes':[{'field':_scg(0x4f8,0x4eb),'setOperator':_scg(0x4be,0x499),'value':_scg(0x4f7,0x4e7)}]},'description':_scg(0x4dd,0x4e2)},{'id':0x5,'name':_scg(0x4e5,0x500),'parameters':{'$$eventConditions':{'type':_scg(0x4de,0x4b9),'conditions':[{'field':'id','operator':'=','value':_scg(0x4d2,0x4b4)}]},'changes':[{'field':_scg(0x4f8,0x4e2),'setOperator':_scg(0x4be,0x4d1),'value':_scg(0x4f7,0x4d7)}]},'description':'The\x20$$event\x20with\x20id\x20232\x20is\x201\x20hour\x20long,\x20and\x20the\x20first\x20available\x20hour\x20on\x20Thursday\x20is\x20now\x2014:30'}]}]];
|
|
1
|
+
function _sca(){var h=['startDate','Make\x20ExampleName\x20$$event\x201\x20hour\x20long','successfully\x20assigned\x202\x20$$Events\x20(conditionId:\x205)\x20to\x201\x20$$Rows\x20(conditionId:\x206)','2025-04-03T08:00:00','Use\x20the\x20conditionId\x20returned\x20by\x20the\x20previous\x20tool\x20call\x20to\x20target\x20the\x20$$events\x20to\x20update.\x20Do\x20not\x20use\x20resource.name\x20in\x20this\x20case','Example$$EventName1','Michael','2025-04-03T11:00','This\x20case\x20requires\x20you\x20to\x20use\x20ids.\x20We\x20begin\x20by\x20reading\x20ExampleName1s\x20events','Performance\x20review','Project\x20planning','Lunch\x20with\x20friends','Move\x20ExampleNames\x20$$events\x20to\x20friday\x20and\x20add\x20a\x20POSTPONED\x20word\x20to\x20their\x20names','This\x20is\x20example\x20data\x20only','2024-11-11T00:00:00','hour','8RFQEEY','352297JGtOEm','230','The\x20user\x20wants\x20to\x20switch\x20the\x20$$row\x20and\x20date\x20for\x20these\x20$$events','2025-03-15T15:00','2024-11-08','Move\x20Example$$RowName1\x20$$events\x20to\x20Example$$RowName2\x20and\x20increase\x20the\x20duration\x20by\x20one','ExampleName','tool','name','This\x20is\x20the\x20current\x20state\x20of\x20the\x20Schedule.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x0a\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20Current\x20time\x20is:\x202025-03-28T09:23:35\x0a\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-07T04:39:31\x20to\x202024-11-08T23:59:59','Assign\x20Example$$EventName2\x20to\x20Example$$EventName1s\x20$$row','any','513801iMRtEp','233','This\x20is\x20the\x20current\x20state\x20of\x20the\x20$$productName.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20time\x20is:\x202025-03-18T14:48:01\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-07T04:39:31\x20to\x202024-11-08T23:59:59','Client\x20call','2025-04-03T12:00:00','1596387hGKirs','Assign\x20Example$$EventName1\x20to\x20Example$$EventName2s\x20$$row','The\x20reschedule\x20keyword\x20indicates\x20we\x20cannot\x20simply\x20change\x20the\x20date\x20and\x20since\x20you\x20need\x20to\x20make\x20sure\x20that\x20there\x20are\x20no\x20conflicts,\x20you\x20first\x20need\x20to\x20read\x20events\x20for\x20both\x20of\x20the\x20days','POSTPONED\x20','2154336DUSgyh','Shift\x20the\x20schedule\x20one\x20week\x20in\x20the\x20future','2025-03-12','101EeNnYw','all','2025-04-03T17:00:00','Linda','resourceId','2025-03-31T09:00:00','prepend','changeTimeSpan','how\x20many\x20$$events\x20this\x20month?','conditionId','2\x20days','The\x20$$event\x20with\x20id\x20232\x20is\x201\x20hour\x20long,\x20and\x20the\x20first\x20available\x20hour\x20on\x20Thursday\x20is\x20now\x2014:30','endDate','63BdfkFx','durationUnit','assistant','2025-03-31T14:30:00','set','2025-03-14T08:00','Reschedule\x20example$$RowName1\x27s\x20$$events\x20on\x20Monday\x20to\x20Thursday\x20and\x20see\x20to\x20it\x20that\x20none\x20are\x20colliding\x20with\x20other\x20$$events','The\x20$$events\x20to\x20reschedule.\x20This\x20is\x20example\x20data\x20only','2025-04-03T11:00:00','ExampleName1','Move\x20Wednesday`s\x20$$events\x20to\x20Friday','user','setDatePart','11982OKsgrG','2024-11-01','2025-04-03','2025-03-31T08:00:00','ExampleName2','2024-12-01','2025-04-03T16:00:00','Also\x20set\x20Example$$EventName1s\x20startDate\x20to\x20Example$$EventName2s','assign$$Events','158580qRJAjV','The\x20$$event\x20with\x20id\x20230\x20is\x201\x20hour\x20long,\x20and\x20the\x20first\x20available\x20hour\x20on\x20Thursday\x20is\x2011:00','get$$Events','231','You\x20need\x20to\x20find\x20out\x20what\x20date\x20the\x20Friday\x20the\x20user\x20refers\x20to\x20is,\x20do\x20this\x20by\x20checking\x20the\x20timeline\x20date\x20range,\x20and\x20if\x20that\x20contains\x20multiple\x20matches,\x20use\x20current\x20visible\x20date\x20range','resource.name','duration','ExampleName1\x20and\x20ExampleName2\x20is\x20both\x20$$rows\x20and\x20the\x20user\x20wants\x20their\x20$$event\x20to\x20be\x20reassigned\x20to\x20the\x20other','2025-04-03T09:00:00','singleAssignment','We\x20also\x20need\x20ExampleName2s\x20events\x20','2025-04-03T10:00:00','Assign\x20ExampleName1s\x20$$events\x20to\x20ExampleName2','2008HzRzoj','And\x20set\x20Example$$EventName2s\x20startDate\x20to\x20Example$$EventName1s','2025-03-31T10:00:00','Example$$EventName2','The\x20$$event\x20with\x20id\x20231\x20is\x201\x20hour\x20long,\x20and\x20the\x20first\x20available\x20hour\x20on\x20Thursday\x20is\x20now\x2013:30','Training\x20session','There\x20are\x2030\x20$$events\x20this\x20month','system','updateEvents','2025-03-31T13:30:00','update$$Events','200AoqBai'];_sca=function(){return h;};return _sca();}function _scb(a,b){var c=_sca();_scb=function(d,e){d=d-0x1f3;var f=c[d];return f;};return _scb(a,b);}function _scg(a,b){return _scb(a-0x1c5,b);}(function(a,b){var c=a();function f(a,b){return _scb(b-0x9a,a);}while(!![]){try{var d=parseInt(f(0x309,0x2df))/0x1*(-parseInt(f(0x2b8,0x2aa))/0x2)+parseInt(f(0x30b,0x2d8))/0x3+parseInt(f(0x2d1,0x2dc))/0x4+-parseInt(f(0x2ab,0x29d))/0x5+parseInt(f(0x26f,0x294))/0x6*(-parseInt(f(0x2c2,0x2ec))/0x7)+parseInt(f(0x2be,0x2c6))/0x8*(parseInt(f(0x2d1,0x2d3))/0x9)+parseInt(f(0x2bb,0x2b5))/0xa*(-parseInt(f(0x2b9,0x2c7))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_sca,0x52129));export default[[_scg(0x3d1,0x3e2),{'role':_scg(0x3bd,0x3e2),'content':'ExampleName1\x20and\x20ExampleName2\x20needs\x20to\x20switch\x20$$events','description':_scg(0x3cf,0x3f7)},{'role':_scg(0x419,0x3ec),'toolCalls':[{'id':'1','name':_scg(0x3ca,0x3f8),'arguments':{'$$eventConditions':{'conditions':[{'field':_scg(0x3cd,0x3b7),'operator':'*','value':_scg(0x3bb,0x3b6)}],'type':_scg(0x40b,0x3fc)},'fields':['id','resourceId']},'description':_scg(0x3e9,0x3f0)},{'id':'2','name':'get$$Events','arguments':{'$$eventConditions':{'conditions':[{'field':_scg(0x3cd,0x3cd),'operator':'*','value':_scg(0x3c3,0x3c4)}],'type':_scg(0x40b,0x438)},'fields':['id',_scg(0x40e,0x3ff)]},'description':_scg(0x3d2,0x39f)}]},{'role':_scg(0x3f9,0x3de),'id':'1','content':{'ok':!![],'data':{'$$Events':[{'id':'1','resourceId':'10'}],'conditionId':0x1,'count':0x1}},'name':'get$$Events'},{'role':_scg(0x3f9,0x413),'id':'2','content':{'ok':!![],'data':{'$$Events':[{'id':'3','resourceId':'11'},{'id':'7','resourceId':'11'}],'conditionId':0x2,'count':0x2}},'name':_scg(0x3ca,0x3ad)},{'role':'assistant','toolCalls':[{'name':'assign$$Events','arguments':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'1'}],'type':_scg(0x40b,0x3db)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'11'}],'type':_scg(0x40b,0x433)}},'description':'Change\x20ExampleName1s\x20$$events\x20resourceId\x20to\x20ExampleName2s'},{'name':_scg(0x3c7,0x394),'arguments':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'3'},{'field':'id','operator':'=','value':'7'}],'type':_scg(0x3fd,0x3fc)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'10'}],'type':'all'}},'description':_scg(0x3d4,0x3b3)}]},{'role':_scg(0x3f9,0x3ec),'id':'3','content':{'ok':!![],'message':'successfully\x20assigned\x201\x20$$Events\x20(conditionId:\x203)\x20to\x201\x20$$Rows\x20(conditionId:\x204)'},'name':_scg(0x3c7,0x3f5)},{'role':_scg(0x3f9,0x41a),'id':'4','content':{'ok':!![],'message':_scg(0x3e3,0x3ef)},'name':_scg(0x3c7,0x3e9)}],[_scg(0x3d1,0x3b1),{'role':'user','content':'Switch\x20the\x20$$event\x20Example$$EventName1\x20with\x20Example$$EventName2','description':_scg(0x3f4,0x3e4)},{'role':_scg(0x419,0x438),'toolCalls':[{'id':'1','name':_scg(0x3ca,0x3ce),'arguments':{'$$eventConditions':{'conditions':[{'field':_scg(0x3fa,0x3d2),'operator':'*','value':'Example$$EventName1'},{'field':_scg(0x3fa,0x3d9),'operator':'*','value':_scg(0x3d8,0x400)}],'type':_scg(0x3fd,0x3ec)},'fields':['id','name',_scg(0x40e,0x417),_scg(0x3e1,0x3f5)]},'description':'This\x20case\x20requires\x20you\x20to\x20read\x20$$event\x20data'}]},{'role':_scg(0x3f9,0x421),'id':'1','content':{'ok':!![],'data':{'$$Events':[{'id':'1','name':_scg(0x3e6,0x3be),'resourceId':'10','startDate':'2025-03-14T08:00'},{'id':'9','name':_scg(0x3d8,0x3be),'resourceId':'11','startDate':'2025-03-15T15:00'}],'conditionId':0x1,'count':0x2}},'name':_scg(0x3ca,0x3eb)},{'role':'assistant','toolCalls':[{'name':_scg(0x3c7,0x39a),'arguments':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'1'}],'type':_scg(0x40b,0x3f4)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'11'}],'type':'all'}},'description':_scg(0x404,0x3de)},{'name':'assign$$Events','arguments':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'9'}],'type':_scg(0x40b,0x41b)},'$$rowConditions':{'conditions':[{'field':'id','operator':'=','value':'10'}],'type':_scg(0x40b,0x429)}},'description':_scg(0x3fc,0x3d9)},{'name':_scg(0x3df,0x3f3),'arguments':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'1'}],'type':_scg(0x40b,0x436)},'changes':[{'field':_scg(0x3e1,0x3be),'setOperator':_scg(0x41b,0x409),'value':_scg(0x3f5,0x3c5)}]},'description':_scg(0x3c6,0x3f4)},{'name':_scg(0x3df,0x3e7),'arguments':{'$$eventConditions':{'conditions':[{'field':'id','operator':'=','value':'9'}],'type':_scg(0x40b,0x42f)},'changes':[{'field':_scg(0x3e1,0x3f4),'setOperator':'set','value':_scg(0x41c,0x3ef)}]},'description':_scg(0x3d6,0x3c9)}]}],[{'role':_scg(0x3bd,0x3c3),'content':_scg(0x3bc,0x3a5)},{'role':_scg(0x3dc,0x3e7),'content':'This\x20is\x20the\x20current\x20state\x20of\x20the\x20$$productName.\x0aTimeline\x20date\x20range:\x202025-03-10T00:00:00\x20to\x202025-03-14T23:59:59\x0a\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20Current\x20time\x20is:\x202025-03-14T13:31:02\x0a\x20Current\x20visible\x20date\x20range:\x202025-03-10T00:00:00\x20to\x202025-03-14T23:59:59'},{'role':'assistant','toolCalls':[{'name':'update$$Events','arguments':{'$$eventConditions':{'conditions':[{'field':_scg(0x3e1,0x3b5),'operator':'=','value':_scg(0x409,0x436)}],'type':'all'},'changes':[{'field':_scg(0x3e1,0x3d9),'setOperator':'+','value':_scg(0x414,0x3e6)}]},'description':'Use the information from the state system message to find out what Wednesday the user refers to'}]}],[{'role':'user','content':_scg(0x3ed,0x41e)},{'role':_scg(0x3dc,0x408),'content':_scg(0x400,0x42d)},{'role':_scg(0x419,0x407),'toolCalls':[{'name':_scg(0x3df,0x404),'arguments':{'$$eventConditions':{'conditions':[{'field':_scg(0x3cd,0x3c4),'operator':'*','value':_scg(0x3f8,0x3e9)}],'type':'all'},'changes':[{'field':_scg(0x3e1,0x3ec),'setOperator':_scg(0x3be,0x39f),'value':_scg(0x3f6,0x425)},{'field':_scg(0x3fa,0x3d4),'setOperator':_scg(0x410,0x42e),'value':_scg(0x406,0x3db)}]},'description':_scg(0x3cc,0x3f4)}]}],[{'role':'user','content':_scg(0x3e2,0x3ca)},{'role':'assistant','toolCalls':[{'name':_scg(0x3df,0x3db),'arguments':{'changes':[{'field':_scg(0x3ce,0x3bc),'setOperator':_scg(0x41b,0x43e),'value':'1'},{'field':_scg(0x418,0x443),'setOperator':_scg(0x41b,0x41b),'value':_scg(0x3f0,0x40e)}],'$$eventConditions':{'conditions':[{'field':'name','operator':'*','value':_scg(0x3f8,0x3f1)}],'type':'all'}}}]}],[{'role':'user','content':_scg(0x408,0x3ed)},{'role':'system','content':_scg(0x3fb,0x405)},{'role':'assistant','toolCalls':[{'name':_scg(0x411,0x3e5),'arguments':{'startDate':_scg(0x3ef,0x3c1),'endDate':'2024-11-15T23:59:59'}}],'description':'Use the system state message to find out the current week and from there calculate the next week'}],['singleAssignment',{'role':_scg(0x3bd,0x3ae),'content':_scg(0x3f7,0x3f4)},{'role':_scg(0x419,0x42e),'toolCalls':[{'id':0x1,'name':_scg(0x3c7,0x3bd),'arguments':{'$$eventConditions':{'type':_scg(0x40b,0x419),'conditions':[{'field':'resource.name','operator':'*','value':_scg(0x3e7,0x3bc)}]},'$$rowConditions':{'type':_scg(0x40b,0x3e8),'conditions':[{'field':'name','operator':'*','value':_scg(0x40d,0x401)}]}}}]},{'content':{'ok':!![],'message':'successfully\x20assigned\x202\x20$$Events\x20(conditionId:\x201)\x20to\x201\x20$$Rows\x20(conditionId:\x202)'},'role':_scg(0x3f9,0x40b),'id':0x1,'name':_scg(0x3c7,0x3f0)},{'id':0x2,'name':_scg(0x3df,0x3af),'arguments':{'$$eventConditions':{'type':'all','conditions':[{'field':_scg(0x413,0x3f6),'operator':'=','value':'1'}],'description':_scg(0x3e5,0x3ed)},'changes':[{'field':'duration','value':'1','setOperator':'+'}]}}],[{'role':'user','content':_scg(0x412,0x427)},{'role':'system','content':'This\x20is\x20the\x20current\x20state\x20of\x20the\x20Schedule.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x0a\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20Current\x20time\x20is:\x202025-04-24T15:11:19\x0a\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-04T00:00:00\x20to\x202024-11-08T14:24:00'},{'role':_scg(0x419,0x438),'toolCalls':[{'id':0x1,'name':_scg(0x3ca,0x3f0),'arguments':{'fields':['id'],'$$eventConditions':{'type':_scg(0x40b,0x421),'conditions':[{'field':'endDate','operator':'>','value':_scg(0x3c0,0x3bd)},{'field':'startDate','operator':'<','value':_scg(0x3c4,0x3ce)}],'description':'The startDate and endDate is deferred from the state system message. With "this month" the user means the month currently in view.'}}}]},{'content':{'ok':!![],'data':{'$$Events':[{'id':0x1}],'conditionId':0x1,'count':0x1e}},'role':'tool','id':0x1,'name':'get$$Events','description':_scg(0x3ee,0x3ef)},{'role':'assistant','content':_scg(0x3db,0x401)}],[{'role':_scg(0x3bd,0x396),'content':_scg(0x3b8,0x3bc),'description':_scg(0x405,0x427)},{'role':'system','content':'This\x20is\x20the\x20current\x20state\x20of\x20the\x20Schedule.\x20Use\x20this\x20data\x20when\x20evaluating\x20the\x20user\x20prompts:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Timeline\x20date\x20range\x20(time\x20span):\x202024-11-04T00:00:00\x20to\x202024-11-08T23:59:59\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A\x20week\x20starts\x20on\x20Sunday\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20time\x20is:\x202025-04-24T15:11:19\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Current\x20visible\x20date\x20range\x20(scrolled\x20in\x20view):\x202024-11-04T00:00:00\x20to\x202024-11-08T14:24:00'},{'role':'assistant','toolCalls':[{'id':0x1,'name':'get$$Events','arguments':{'fields':['id',_scg(0x3e1,0x407),_scg(0x416,0x443),_scg(0x3fa,0x414)],'$$eventConditions':{'type':_scg(0x40b,0x3ee),'conditions':[{'field':_scg(0x3e1,0x402),'operator':'=','value':'2025-03-31'}],'description':'The startDate condition is deferred from the state system message'}}},{'id':0x2,'name':_scg(0x3ca,0x3bd),'arguments':{'fields':['id','startDate',_scg(0x416,0x3e8),'name'],'$$eventConditions':{'type':_scg(0x40b,0x428),'conditions':[{'field':_scg(0x3e1,0x3b8),'operator':'=','value':_scg(0x3c1,0x3e3)}],'description':'The startDate condition is deferred from the state system message'}}}]},{'content':{'ok':!![],'data':{'$$Events':[{'id':0xe6,'name':'Team\x20meeting','startDate':_scg(0x3c2,0x3a0),'endDate':_scg(0x40f,0x436)},{'id':0xe7,'name':_scg(0x3eb,0x418),'startDate':_scg(0x3d7,0x3d8),'endDate':'2025-03-31T11:00:00'},{'id':0xe8,'name':_scg(0x401,0x3ff),'startDate':_scg(0x3de,0x3e9),'endDate':_scg(0x41a,0x449)}],'conditionId':0x1,'count':0x3}},'role':_scg(0x3f9,0x406),'id':0x1,'name':_scg(0x3ca,0x3c5),'description':_scg(0x3b9,0x3da)},{'content':{'ok':!![],'data':{'$$Events':[{'id':0xec,'name':_scg(0x3ea,0x418),'startDate':_scg(0x3e4,0x3da),'endDate':_scg(0x3d0,0x3df),'resourceId':0x3},{'id':0xe0,'name':'Team\x20check-in','startDate':_scg(0x3d0,0x3de),'endDate':'2025-04-03T09:30:00','resourceId':'3'},{'id':0x84,'name':_scg(0x3da,0x401),'startDate':_scg(0x3d3,0x3bd),'endDate':_scg(0x3ba,0x395),'resourceId':0x1},{'id':0x71,'name':_scg(0x3ec,0x400),'startDate':_scg(0x402,0x3fd),'endDate':'2025-04-03T13:30:00','resourceId':0x1},{'id':0xca,'name':_scg(0x401,0x430),'startDate':_scg(0x3c5,0x3f4),'endDate':_scg(0x40c,0x3ec),'resourceId':'3'}],'conditionId':0x3,'count':0x5}},'role':'tool','id':0x2,'name':_scg(0x3ca,0x3d2),'description':'The\x20current\x20$$events\x20on\x20Thursday.\x20This\x20is\x20example\x20data\x20only'},{'role':_scg(0x419,0x448),'toolCalls':[{'id':0x3,'name':_scg(0x3dd,0x3f6),'arguments':{'$$eventConditions':{'type':_scg(0x40b,0x40f),'conditions':[{'field':'id','operator':'=','value':_scg(0x3f3,0x3fd)}]},'changes':[{'field':_scg(0x3e1,0x3d8),'setOperator':'set','value':_scg(0x3e8,0x3e7)}]},'description':_scg(0x3c9,0x3ab)},{'id':0x4,'name':_scg(0x3dd,0x3fb),'arguments':{'$$eventConditions':{'type':_scg(0x40b,0x3e8),'conditions':[{'field':'id','operator':'=','value':_scg(0x3cb,0x3e3)}]},'changes':[{'field':_scg(0x3e1,0x3ea),'setOperator':_scg(0x41b,0x3ee),'value':_scg(0x3e8,0x408)}]},'description':_scg(0x3d9,0x406)},{'id':0x5,'name':_scg(0x3dd,0x3bd),'arguments':{'$$eventConditions':{'type':_scg(0x40b,0x436),'conditions':[{'field':'id','operator':'=','value':_scg(0x3ff,0x3d9)}]},'changes':[{'field':'startDate','setOperator':_scg(0x41b,0x43a),'value':'2025-04-03T11:00'}]},'description':_scg(0x415,0x41a)}]}]];
|