@bryntum/engine-thin-trial 7.1.1
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 +52 -0
- package/entry.engine.js +51 -0
- package/entry.gantt.js +9 -0
- package/entry.js +3 -0
- package/entry.pro.js +84 -0
- package/lib/ChronoGraph/benchmark/Benchmark.js +1 -0
- package/lib/ChronoGraph/chrono/CycleResolver.js +1 -0
- package/lib/ChronoGraph/chrono/Effect.js +1 -0
- package/lib/ChronoGraph/chrono/Graph.js +1 -0
- package/lib/ChronoGraph/chrono/Identifier.js +1 -0
- package/lib/ChronoGraph/chrono/Quark.js +1 -0
- package/lib/ChronoGraph/chrono/Revision.js +1 -0
- package/lib/ChronoGraph/chrono/Transaction.js +1 -0
- package/lib/ChronoGraph/chrono/TransactionCycleDetectionWalkContext.js +1 -0
- package/lib/ChronoGraph/chrono/TransactionWalkDepth.js +1 -0
- package/lib/ChronoGraph/class/Base.js +1 -0
- package/lib/ChronoGraph/class/BetterMixin.js +1 -0
- package/lib/ChronoGraph/class/Mixin.js +1 -0
- package/lib/ChronoGraph/class/RequiredProperty.js +1 -0
- package/lib/ChronoGraph/collection/Collection.js +0 -0
- package/lib/ChronoGraph/collection/Iterator.js +1 -0
- package/lib/ChronoGraph/collection/walk_depth/WalkDepthopedia.js +1 -0
- package/lib/ChronoGraph/cycle_resolver/CycleResolver.js +1 -0
- package/lib/ChronoGraph/environment/Debug.js +1 -0
- package/lib/ChronoGraph/event/Event.js +1 -0
- package/lib/ChronoGraph/event/Hook.js +1 -0
- package/lib/ChronoGraph/graph/Graph.js +1 -0
- package/lib/ChronoGraph/graph/Node.js +1 -0
- package/lib/ChronoGraph/graph/WalkDepth.js +1 -0
- package/lib/ChronoGraph/guides/AdvancedFeatures.js +1 -0
- package/lib/ChronoGraph/guides/BasicFeatures.js +1 -0
- package/lib/ChronoGraph/guides/Benchmarks.js +1 -0
- package/lib/ChronoGraph/guides/CycleResolver.js +1 -0
- package/lib/ChronoGraph/lab/Lab.js +0 -0
- package/lib/ChronoGraph/lab/LinkedList.js +0 -0
- package/lib/ChronoGraph/lab/Meta.js +1 -0
- package/lib/ChronoGraph/lab/StaticDefinitions.t.js +0 -0
- package/lib/ChronoGraph/lab/TreeNode.js +0 -0
- package/lib/ChronoGraph/lab/TreeNodeBucket.js +0 -0
- package/lib/ChronoGraph/lab/TreeNodeReference.js +0 -0
- package/lib/ChronoGraph/primitives/Calculation.js +1 -0
- package/lib/ChronoGraph/replica/Entity.js +1 -0
- package/lib/ChronoGraph/replica/Identifier.js +1 -0
- package/lib/ChronoGraph/replica/Reference.js +1 -0
- package/lib/ChronoGraph/replica/ReferenceBucket.js +1 -0
- package/lib/ChronoGraph/replica/Replica.js +1 -0
- package/lib/ChronoGraph/schema/EntityMeta.js +1 -0
- package/lib/ChronoGraph/schema/Field.js +1 -0
- package/lib/ChronoGraph/schema/Schema.js +1 -0
- package/lib/ChronoGraph/util/Helpers.js +1 -0
- package/lib/ChronoGraph/util/LeveledQueue.js +1 -0
- package/lib/ChronoGraph/util/Uniqable.js +1 -0
- package/lib/ChronoGraph/visualization/Cytoscape.js +1 -0
- package/lib/calendar/CalendarCache.js +1 -0
- package/lib/calendar/CalendarCacheInterval.js +1 -0
- package/lib/calendar/CalendarCacheIntervalMultiple.js +1 -0
- package/lib/calendar/CalendarCacheMultiple.js +1 -0
- package/lib/calendar/CalendarCacheSingle.js +1 -0
- package/lib/calendar/CalendarIntervalMixin.js +1 -0
- package/lib/calendar/CalendarIntervalStore.js +1 -0
- package/lib/calendar/IntervalCache.js +1 -0
- package/lib/calendar/SortedMap.js +1 -0
- package/lib/calendar/UnspecifiedTimeIntervalModel.js +1 -0
- package/lib/chrono/ChronoModelMixin.js +1 -0
- package/lib/chrono/Conflict.js +1 -0
- package/lib/chrono/ModelFieldAtom.js +1 -0
- package/lib/chrono/Replica.js +1 -0
- package/lib/chrono/SchedulingIssueEffect.js +1 -0
- package/lib/localization/Ar.js +94 -0
- package/lib/localization/Bg.js +94 -0
- package/lib/localization/Ca.js +94 -0
- package/lib/localization/Cs.js +94 -0
- package/lib/localization/Da.js +94 -0
- package/lib/localization/De.js +94 -0
- package/lib/localization/El.js +94 -0
- package/lib/localization/En.js +94 -0
- package/lib/localization/EnGb.js +94 -0
- package/lib/localization/Es.js +94 -0
- package/lib/localization/Et.js +94 -0
- package/lib/localization/Eu.js +94 -0
- package/lib/localization/Fi.js +94 -0
- package/lib/localization/FrFr.js +94 -0
- package/lib/localization/Gl.js +94 -0
- package/lib/localization/He.js +94 -0
- package/lib/localization/Hi.js +94 -0
- package/lib/localization/Hr.js +94 -0
- package/lib/localization/Hu.js +94 -0
- package/lib/localization/Id.js +94 -0
- package/lib/localization/It.js +94 -0
- package/lib/localization/Ja.js +94 -0
- package/lib/localization/Kk.js +94 -0
- package/lib/localization/Ko.js +94 -0
- package/lib/localization/Lt.js +94 -0
- package/lib/localization/Lv.js +94 -0
- package/lib/localization/Ms.js +94 -0
- package/lib/localization/Nl.js +94 -0
- package/lib/localization/No.js +94 -0
- package/lib/localization/Pl.js +94 -0
- package/lib/localization/Pt.js +94 -0
- package/lib/localization/PtBr.js +94 -0
- package/lib/localization/Ro.js +94 -0
- package/lib/localization/Ru.js +94 -0
- package/lib/localization/Sk.js +94 -0
- package/lib/localization/Sl.js +94 -0
- package/lib/localization/Sr.js +94 -0
- package/lib/localization/SrRs.js +94 -0
- package/lib/localization/SvSE.js +94 -0
- package/lib/localization/Th.js +94 -0
- package/lib/localization/Tr.js +94 -0
- package/lib/localization/Uk.js +94 -0
- package/lib/localization/Vi.js +94 -0
- package/lib/localization/ZhCn.js +94 -0
- package/lib/localization/ZhTw.js +94 -0
- package/lib/quark/AbstractPartOfProjectGenericMixin.js +1 -0
- package/lib/quark/ChronoPartOfProjectGenericMixin.js +1 -0
- package/lib/quark/CorePartOfProjectGenericMixin.js +1 -0
- package/lib/quark/Types.js +0 -0
- package/lib/quark/model/AbstractCalendarMixin.js +1 -0
- package/lib/quark/model/AbstractHasAssignmentsMixin.js +1 -0
- package/lib/quark/model/AbstractProjectMixin.js +1 -0
- package/lib/quark/model/gantt/ConstrainedByParentMixin.js +1 -0
- package/lib/quark/model/gantt/ConstrainedByParentScheduleMixin.js +1 -0
- package/lib/quark/model/gantt/ConstrainedLateEventMixin.js +1 -0
- package/lib/quark/model/gantt/ConstrainedLateScheduleMixin.js +1 -0
- package/lib/quark/model/gantt/GanttEvent.js +1 -0
- package/lib/quark/model/gantt/GanttEventScheduleMixin.js +1 -0
- package/lib/quark/model/gantt/GanttProjectMixin.js +1 -0
- package/lib/quark/model/gantt/GanttProjectScheduleMixin.js +1 -0
- package/lib/quark/model/gantt/GanttTimePhasedAssignmentMixin.js +1 -0
- package/lib/quark/model/gantt/HasCriticalPathsMixin.js +1 -0
- package/lib/quark/model/gantt/InactiveEventMixin.js +1 -0
- package/lib/quark/model/gantt/InactiveEventScheduleMixin.js +1 -0
- package/lib/quark/model/gantt/scheduling_modes/FixedEffortDispatcher.js +1 -0
- package/lib/quark/model/gantt/scheduling_modes/FixedEffortMixin.js +1 -0
- package/lib/quark/model/gantt/scheduling_modes/FixedUnitsDispatcher.js +1 -0
- package/lib/quark/model/gantt/scheduling_modes/FixedUnitsMixin.js +1 -0
- package/lib/quark/model/mixin/AbstractPartOfProjectModelMixin.js +1 -0
- package/lib/quark/model/mixin/ChronoPartOfProjectModelMixin.js +1 -0
- package/lib/quark/model/mixin/CorePartOfProjectModelMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseAssignmentMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseCalendarMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseDependencyMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseEventDispatcher.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseEventMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseHasAssignmentsMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/BaseResourceMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/ChronoAbstractProjectMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/HasCalendarMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/HasChildrenMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/HasDependenciesMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/HasSubEventsMixin.js +1 -0
- package/lib/quark/model/scheduler_basic/SchedulerBasicEvent.js +1 -0
- package/lib/quark/model/scheduler_basic/SchedulerBasicProjectMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreAssignmentMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreCalendarMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreDependencyMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreEventMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreHasAssignmentsMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreHasDependenciesMixin.js +1 -0
- package/lib/quark/model/scheduler_core/CoreResourceMixin.js +1 -0
- package/lib/quark/model/scheduler_core/SchedulerCoreEvent.js +1 -0
- package/lib/quark/model/scheduler_core/SchedulerCoreProjectMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/ConstrainedByDependenciesEventMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/ConstrainedByDependenciesEventScheduleMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/ConstrainedScheduleMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/CostResourceAllocationInfoMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/DelayFromParentMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/DelayFromParentScheduleMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/HasCostSubEventsMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/HasDateConstraintMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/HasDateConstraintScheduleMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/HasEffortDispatcher.js +1 -0
- package/lib/quark/model/scheduler_pro/HasEffortMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/HasPercentDoneMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/HasSchedulingModeMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/MaterialResourceAllocationInfoMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/ResourceAllocationInfo.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProAssignmentMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProDependencyMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProEvent.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProProjectMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProResourceMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/TimePhasedAssignmentStructureDispatcher.js +1 -0
- package/lib/quark/model/scheduler_pro/TimePhasedEventAssignmentDispatcher.js +1 -0
- package/lib/quark/model/scheduler_pro/WorkResourceAllocationInfoMixin.js +1 -0
- package/lib/quark/model/scheduler_pro/scheduling_modes/FixedDurationDispatcher.js +1 -0
- package/lib/quark/model/scheduler_pro/scheduling_modes/FixedDurationMixin.js +1 -0
- package/lib/quark/store/AbstractAssignmentStoreMixin.js +1 -0
- package/lib/quark/store/AbstractCalendarManagerStoreMixin.js +1 -0
- package/lib/quark/store/AbstractDependencyStoreMixin.js +1 -0
- package/lib/quark/store/AbstractEventStoreMixin.js +1 -0
- package/lib/quark/store/AbstractResourceStoreMixin.js +1 -0
- package/lib/quark/store/ChronoAssignmentStoreMixin.js +1 -0
- package/lib/quark/store/ChronoCalendarManagerStoreMixin.js +1 -0
- package/lib/quark/store/ChronoDependencyStoreMixin.js +1 -0
- package/lib/quark/store/ChronoEventStoreMixin.js +1 -0
- package/lib/quark/store/ChronoResourceStoreMixin.js +1 -0
- package/lib/quark/store/CoreAssignmentStoreMixin.js +1 -0
- package/lib/quark/store/CoreCalendarManagerStoreMixin.js +1 -0
- package/lib/quark/store/CoreDependencyStoreMixin.js +1 -0
- package/lib/quark/store/CoreEventStoreMixin.js +1 -0
- package/lib/quark/store/CoreResourceStoreMixin.js +1 -0
- package/lib/quark/store/mixin/AbstractPartOfProjectStoreMixin.js +1 -0
- package/lib/quark/store/mixin/ChronoPartOfProjectStoreMixin.js +1 -0
- package/lib/quark/store/mixin/ChronoStoreMixin.js +1 -0
- package/lib/quark/store/mixin/CorePartOfProjectStoreMixin.js +1 -0
- package/lib/scheduling/DateInterval.js +1 -0
- package/lib/scheduling/DurationConverterMixin.js +1 -0
- package/lib/scheduling/Types.js +1 -0
- package/lib/util/BinarySearch.js +1 -0
- package/lib/util/Constants.js +1 -0
- package/lib/util/Functions.js +1 -0
- package/lib/util/Queue.js +1 -0
- package/lib/util/StripDuplicates.js +1 -0
- package/lib/util/Types.js +1 -0
- package/lib/vendor/later/later.js +1 -0
- package/package.json +24 -0
- package/postinstall.cjs +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function p(a,b){return _enb(a- -0x170,b);}while(!![]){try{const d=parseInt(p(-0xb,0x18))/0x1+parseInt(p(-0x2b,-0x32))/0x2*(parseInt(p(-0x59,-0x55))/0x3)+parseInt(p(-0x3f,-0x5c))/0x4+-parseInt(p(-0x35,-0x37))/0x5*(-parseInt(p(-0x10,-0x27))/0x6)+-parseInt(p(-0x1d,-0x3a))/0x7*(parseInt(p(-0x1b,-0x1c))/0x8)+parseInt(p(-0x5b,-0x3f))/0x9+parseInt(p(-0x47,-0x4d))/0xa*(-parseInt(p(-0x50,-0x51))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5bd16));var __decorate=function(a,b,e,f){function q(a,b){return _enb(a-0xb7,b);}var g=arguments[q(0x1d2,0x1b3)],h=g<0x3?b:f===null?f=Object[q(0x205,0x1fb)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[q(0x1db,0x209)]===q(0x204,0x1d9))h=Reflect[q(0x1db,0x1d7)](a,b,e,f);else for(var k=a[q(0x1d2,0x1a7)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[q(0x1da,0x203)](b,e,h),h;};function _ena(){const T=['isDateConstraintInterval','891OnFFKP','concat','Implement\x20me','defineProperty','decorate','add','startDateConstraintIntervals','hasSubEvents','isManuallyScheduled','197690knbfYs','endDateConstraintIntervals','direction','StartNoLaterThan','isInfinite','maxChildrenEndDate','map','parentId','294484qsVOlE','isIntervalEmpty','calculateEarlyStartDateConstraintIntervals','filter','pick','shouldRollupChildEndDate','event','onNonEmptyEffectiveInterval','StartNoEarlierThan','shouldRollupChildEarlyStartDate','730AceQPz','calculateEarlyEndDateConstraintIntervals','calculateStartDate','resolved','isConstrained','endDateIsFinite','prototype','shouldRollupChildEarlyEndDate','phase','shouldSkipNonWorkingTime','34462nyfpPM','setupFields','subEventsIterable','calculateLateStartDateConstraintIntervals','isDependencyConstraintInterval','expanded','end','containsDate','function','getOwnPropertyDescriptor','constraintType','onEmptyEffectiveInterval','parentIndex','calculateStartDateConstraintIntervals','147ElIGxS','kind','904IIBaCz','FinishNoEarlierThan','endDate','readOnly','shouldRollupChildStartDate','date','calculateEffectiveConstraintInterval','copyWith','start','minChildrenStartDate','calculateMaxChildrenEndDate','23406mDMcIq','changeDateConstraintIntervalOnConflict','startDateIsFinite','value','shouldRollupChildLateStartDate','728148WioHHV','startDate','shouldRollupChildLateEndDate','Forward','new','calculateMinChildrenStartDate','project','calculateLateEndDateConstraintIntervals','calculateEffectiveDuration','calculateProjectedXDateWithDuration','doCalculateEffectiveEndDateInterval','removeField','calculateEndDateConstraintIntervals','getDateShifter','intersectionOf','isFirstPass','autoScheduleManualTasksOnSecondPass','effectiveDirection','earlyPreSchedule','5320818LQIhbI','calculateEndDate','3QtGYtx','End','Start','getTime','length','maybeSkipNonWorkingTime','return','skipNonWorkingTime'];_ena=function(){return T;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';function _enr(a,b){return _enb(b- -0x17d,a);}import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';const isForwardInterval=a=>a[_enr(-0x42,-0x1b)](),isBackwardInterval=a=>a['endDateIsFinite'](),isInflexibleInterval=a=>{function s(a,b){return _enr(b,a-0x50d);}return a[s(0x4f2,0x514)]()&&a[s(0x4d0,0x4b6)]()&&a[s(0x4f6,0x50e)][s(0x4aa,0x4d6)]()===a[s(0x4e7,0x4ee)][s(0x4aa,0x4a7)]();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){if(c[t(-0xee,-0x100)]())return c;if(e&&c['intersectionOf']){const i=new Set();for(const j of c[t(-0x110,-0x129)]){if(j['isInfinite']()){i['add'](j);}else{const k=j[t(-0xbe,-0x94)]()?yield*a[t(-0x115,-0x13b)](j[t(-0xba,-0xa3)],![],d):j[t(-0xba,-0xcf)];const l=j['endDateIsFinite']()?yield*a[t(-0x115,-0x10d)](j[t(-0xc9,-0xcc)],![],d):j[t(-0xc9,-0xee)];const m=j;i[t(-0xfb,-0x10c)](m[t(-0xc4,-0xd1)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide[t(-0x107,-0x136)]?ConstraintIntervalSide['End']:ConstraintIntervalSide[t(-0x107,-0x116)],'startDate':k,'endDate':l}));}}c[t(-0x110,-0x10b)]=i;}const g=c[t(-0xbe,-0xcb)]()?yield*f(c[t(-0xba,-0xab)]):null;const h=c[t(-0xe0,-0xcb)]()?yield*f(c[t(-0xc9,-0xa0)]):null;function t(a,b){return _enr(b,a- -0xa3);}return intersectIntervals([b,ConstraintInterval[t(-0xb7,-0x98)]({'intersectionOf':c[t(-0x110,-0x115)],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){function u(a,b){return _enr(b,a-0x45d);}if(b['isIntervalEmpty']())return b;if(e&&b['intersectionOf']){const i=new Set();for(const j of b[u(0x3f0,0x40a)]){if(j[u(0x40d,0x3df)]()){i[u(0x405,0x422)](j);}else{const k=j[u(0x442,0x46e)]()?yield*a['calculateProjectedXDateWithDuration'](j[u(0x446,0x43a)],!![],d):j['startDate'];const l=j[u(0x420,0x445)]()?yield*a[u(0x3eb,0x404)](j[u(0x437,0x410)],!![],d):j['endDate'];const m=j;i[u(0x405,0x3f4)](m[u(0x43c,0x42f)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide[u(0x3f9,0x41e)]?ConstraintIntervalSide[u(0x3f8,0x409)]:ConstraintIntervalSide[u(0x3f9,0x41e)],'startDate':k,'endDate':l}));}}b[u(0x3f0,0x3e5)]=i;}const g=b[u(0x442,0x429)]()?yield*f(b[u(0x446,0x415)]):null;const h=b['endDateIsFinite']()?yield*f(b[u(0x437,0x457)]):null;return intersectIntervals([c,ConstraintInterval[u(0x449,0x42e)]({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b['intersectionOf']:void 0x0,'startDate':g,'endDate':h})],e);};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x10a;let f=c[d];return f;};return _enb(a,b);}class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{class b extends a{constructor(){super(...arguments);this['direction']=void 0x0;function v(a,b){return _enb(a- -0x162,b);}this[v(-0x1f,-0x43)]='phase1';this[v(-0x2b,-0x2c)]=void 0x0;}get['project'](){function w(a,b){return _enb(b- -0x1e6,a);}return this[w(-0xce,-0xaf)]?.[w(-0x71,-0x7b)];}[x(0x182,0x177)](c){throw new Error('Implement\x20me');}*[x(0x18a,0x171)](){function y(a,b){return x(b-0x2e2,a);}throw new Error(y(0x431,0x451));}*[x(0x163,0x171)](){function z(a,b){return x(a- -0x37c,b);}throw new Error(z(-0x20d,-0x1e1));}static[x(0x193,0x167)](c,d){super[A(0x294,0x29f)](c,d);this[A(0x25b,0x236)](A(0x29f,0x279));this[A(0x25b,0x268)]('orderedParentIndex');this[A(0x25b,0x22b)](A(0x27e,0x28d));this[A(0x25b,0x229)](A(0x298,0x2b6));function A(a,b){return x(a-0x101,b);}this[A(0x25b,0x23d)](A(0x2a6,0x2b2));}}function x(a,b){return _enr(b,a-0x1ca);}__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b['prototype'],'startDate',void 0x0);__decorate([model_field({'type':x(0x1a7,0x1a3),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[x(0x18e,0x1b0)],'endDate',void 0x0);__decorate([calculate(x(0x1b3,0x1bf))],b[x(0x18e,0x1b0)],x(0x18a,0x1ac),null);__decorate([calculate(x(0x1a4,0x182))],b['prototype'],x(0x163,0x186),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){function B(a,b){return _enb(a-0x80,b);}super(...arguments);this['direction']=Direction[B(0x1e8,0x20f)];this[B(0x1b7,0x1c0)]=void 0x0;}[C(0x151,0x147)](c){function D(a,b){return C(a- -0x2a2,b);}return c[D(-0x172,-0x180)];}*[C(0x138,0x160)](c,d=!![],e=null){function E(a,b){return C(b-0x11f,a);}if(yield*this['event'][E(0x234,0x262)]())return c;let f=c;if(c&&(yield*this[E(0x289,0x272)][E(0x2a4,0x27f)]())){f=yield*this[E(0x24a,0x272)][E(0x260,0x259)](c,d);if(f&&e&&!e[E(0x270,0x287)](f)){f=c;}}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function F(a,b){return C(a-0xe9,b);}if(f&&g===e){if(this[F(0x230,0x236)]===Direction['Forward']){if(d===F(0x262,0x270)&&g[F(0x254,0x230)]===ConstraintType[F(0x231,0x23e)]){return c[F(0x261,0x264)]({'startDate':c[F(0x25c,0x25d)],'endDate':null});}if(d==='end'&&g[F(0x254,0x25f)]===ConstraintType['FinishNoLaterThan']){return c[F(0x261,0x25d)]({'startDate':c[F(0x25c,0x265)],'endDate':null});}}else{if(d==='start'&&g[F(0x254,0x234)]===ConstraintType[F(0x23e,0x236)]){return c[F(0x261,0x289)]({'startDate':null,'endDate':c['startDate']});}if(d===F(0x250,0x26a)&&g[F(0x254,0x25f)]===ConstraintType[F(0x25b,0x275)]){return c[F(0x261,0x270)]({'startDate':null,'endDate':c[F(0x26b,0x245)]});}}}return c;}*[C(0x177,0x1a2)](c,d,e,f=![],g=![]){function G(a,b){return C(b- -0x2b5,a);}const {event:h}=this;const i=yield*h[G(-0x196,-0x18a)](c?![]:!![]);if(i==null){return null;}const j=f?yield*h[G(-0x16b,-0x18f)]():0x0;if(j==null){return null;}if(g){if(this[G(-0x15b,-0x12e)]['bwcConflictPostpone']){if(yield*this[G(-0x178,-0x188)]()){d=d[G(-0x140,-0x165)](m=>!m[G(-0x181,-0x150)])[G(-0x13c,-0x16a)](m=>this[G(-0x150,-0x138)](m,G(-0x152,-0x13c),h));e=e[G(-0x190,-0x165)](m=>!m['isDependencyConstraintInterval'])[G(-0x174,-0x16a)](m=>this[G(-0x12a,-0x138)](m,G(-0x161,-0x14e),h));}else{d=d[G(-0x17e,-0x165)](m=>!m[G(-0x177,-0x17a)]);e=e[G(-0x15a,-0x165)](m=>!m[G(-0x16f,-0x17a)]);}}else{const m=this[G(-0x19d,-0x16e)]===Direction[G(-0x147,-0x131)]?isForwardInterval:isBackwardInterval,n=d[G(-0x151,-0x165)](isInflexibleInterval);d=n[G(-0x1ae,-0x17e)]?n:d[G(-0x191,-0x165)](m);const o=e[G(-0x16a,-0x165)](isInflexibleInterval);e=o[G(-0x15c,-0x17e)]?o:e[G(-0x14a,-0x165)](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*[C(0x16e,0x194)](){function H(a,b){return C(b- -0x23a,a);}return this[H(-0x118,-0xf3)]===Direction['Forward']?yield*this[H(-0x10b,-0xe7)][H(-0xbf,-0xeb)]():yield*this[H(-0xd1,-0xe7)][H(-0xb6,-0xd6)]();}*['calculateEndDateConstraintIntervals'](){function I(a,b){return C(a-0x23,b);}return this['direction']===Direction[I(0x1a7,0x1d3)]?yield*this[I(0x176,0x177)][I(0x17b,0x187)]():yield*this[I(0x176,0x1a4)][I(0x1ab,0x191)]();}*['doCalculateEffectiveStartDateInterval'](c=![],d=![]){const e=yield this['$'][J(0x187,0x19b)];const f=yield this['$'][J(0x18b,0x1b1)];function J(a,b){return C(a-0x45,b);}return yield*this[J(0x1bc,0x1e7)](!![],e[J(0x182,0x169)](yield this[J(0x198,0x19c)]['$'][J(0x187,0x16c)]),f['concat'](yield this[J(0x198,0x185)]['$'][J(0x18b,0x18d)]),c,d);}*[C(0x128,0x109)](c=![],d=![]){function K(a,b){return C(b-0x23b,a);}const e=yield this['$']['startDateConstraintIntervals'];const f=yield this['$'][K(0x377,0x381)];return yield*this[K(0x3bc,0x3b2)](![],e[K(0x367,0x378)](yield this[K(0x3b9,0x38e)]['$'][K(0x363,0x37d)]),f[K(0x39d,0x378)](yield this['event']['$'][K(0x394,0x381)]),c,d);}*[C(0x175,0x17f)](c){function L(a,b){return C(a-0x31b,b);}return this[L(0x462,0x46e)]===Direction[L(0x49f,0x4c6)]?yield*this[L(0x46e,0x477)][L(0x471,0x478)](c):yield*this[L(0x46e,0x484)][L(0x49b,0x490)](c);}*['calculateMinChildrenStartDate'](){let c=MAX_DATE;const d=yield*this[M(-0x263,-0x25a)][M(-0x253,-0x25f)]();function M(a,b){return C(a- -0x3b6,b);}for(const e of d){if(!(yield*this[M(-0x241,-0x227)](e)))continue;let f;if((yield*e[M(-0x272,-0x252)]())&&(yield*e['hasSubEvents']())){f=yield this[M(-0x265,-0x251)](e)['$'][M(-0x23c,-0x20d)];}f=f||(yield this[M(-0x265,-0x28c)](e)['$'][M(-0x234,-0x23e)]);if(f&&f<c)c=f;}return c[M(-0x280,-0x25f)]()-MAX_DATE[M(-0x280,-0x270)]()?c:null;}*[C(0x152,0x125)](c){function N(a,b){return C(a-0x170,b);}return this['direction']===Direction[N(0x2f4,0x2cf)]?yield*this[N(0x2c3,0x29a)][N(0x2ce,0x29d)](c):yield*this[N(0x2c3,0x2cb)][N(0x2f3,0x2e8)](c);}*[C(0x17b,0x174)](){let c=MIN_DATE;const d=yield*this[O(0x86,0x9f)][O(0x96,0x92)]();for(const e of d){if(!(yield*this[O(0x85,0xb2)](e)))continue;let f;if((yield*e[O(0x77,0x53)]())&&(yield*e[O(0x76,0x9a)]())){f=yield this[O(0x84,0x96)](e)['$'][O(0x7d,0x5e)];}f=f||(yield this[O(0x84,0xa7)](e)['$'][O(0xa6,0xd3)]);if(f&&f>c)c=f;}function O(a,b){return C(a- -0xcd,b);}return c[O(0x69,0x78)]()-MIN_DATE[O(0x69,0x56)]()?c:null;}*[C(0x159,0x155)](){let c;let d;function P(a,b){return C(a-0x23b,b);}if((yield*this[P(0x38e,0x39e)][P(0x37f,0x3ae)]())&&(!(yield this[P(0x3c2,0x3d0)]['$'][P(0x369,0x35c)])||(yield this[P(0x38e,0x3bb)]['$']['effectiveDirection'])[P(0x382,0x38e)]===this[P(0x382,0x35d)])){c=yield this[P(0x38e,0x398)]['$'][P(0x3bd,0x3e0)];}else if(yield*this[P(0x38e,0x37d)]['hasSubEvents']()){c=yield this['$'][P(0x3b5,0x3c0)];}else if(!(yield*this['isConstrained']())){c=yield this[P(0x38e,0x3a5)]['$'][P(0x3bd,0x38f)];}else{d=yield*this['doCalculateEffectiveStartDateInterval']();if(d===null){return null;}else if(d[P(0x389,0x39d)]()){const e=yield*this[P(0x38e,0x3a8)]['onEmptyEffectiveInterval'](P(0x3b4,0x3e6),this);if(e['kind']===P(0x374,0x36a)){return e['value'];}else if(e[P(0x3ab,0x3c7)]==='resolved'){d=e[P(0x3ba,0x3cf)];}}else{yield*this['event'][P(0x38f,0x3a9)](P(0x3b4,0x3c7),this);}c=this[P(0x382,0x3ac)]===Direction[P(0x3bf,0x3ea)]?isDateFinite(d[P(0x3bd,0x3bc)])?d[P(0x3bd,0x390)]:null:isDateFinite(d['endDate'])?d[P(0x3ae,0x390)]:null;}return yield*this['maybeSkipNonWorkingTime'](c,!![],d);}*[C(0x132,0x132)](){function Q(a,b){return C(a-0x27a,b);}let c;let d;if((yield*this[Q(0x3cd,0x3e0)][Q(0x3be,0x3ed)]())&&(!(yield this[Q(0x401,0x402)]['$'][Q(0x3a8,0x383)])||(yield this['event']['$'][Q(0x3a9,0x3a1)])[Q(0x3c1,0x3c7)]===this[Q(0x3c1,0x3c7)])){c=yield this[Q(0x3cd,0x3b3)]['$']['endDate'];}else if(yield*this['event'][Q(0x3bd,0x3bd)]()){c=yield this['$']['maxChildrenEndDate'];}else if(!(yield*this[Q(0x3d5,0x3f1)]())){c=yield this[Q(0x3cd,0x3b4)]['$']['endDate'];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[Q(0x3c8,0x3c9)]()){const e=yield*this['event'][Q(0x3e6,0x3c2)](Q(0x3e1,0x3bc),this);if(e[Q(0x3ea,0x3b8)]===Q(0x3b3,0x397)){return e['value'];}else if(e['kind']===Q(0x3d4,0x3df)){d=e[Q(0x3f9,0x3d3)];}}else{yield*this['event'][Q(0x3ce,0x3da)](Q(0x3e1,0x3b1),this);}c=this[Q(0x3c1,0x392)]===Direction[Q(0x3fe,0x3d6)]?isDateFinite(d[Q(0x3fc,0x3d6)])?d[Q(0x3fc,0x418)]:null:isDateFinite(d[Q(0x3ed,0x3f3)])?d[Q(0x3ed,0x3fa)]:null;}return yield*this[Q(0x3b2,0x392)](c,![],d);}*[C(0x15b,0x177)](){const c=yield this['event']['$'][R(0x453,0x456)];const d=yield this[R(0x440,0x467)]['$'][R(0x475,0x45a)];const e=yield this['$'][R(0x45d,0x456)];const f=yield this['$'][R(0x437,0x45a)];function R(a,b){return C(b-0x314,a);}return e?.[R(0x47b,0x44b)]>0x0||f?.['length']>0x0||c?.[R(0x41f,0x44b)]>0x0||d?.['length']>0x0;}*[C(0x12d,0x128)](){function S(a,b){return C(a-0x2c0,b);}const c=yield this['getProject']()['$'][S(0x3ef,0x3eb)];return c[S(0x407,0x3f8)]===this['direction'];}}__decorate([field({'lazy':!![]})],b[C(0x15d,0x134)],C(0x17a,0x169),void 0x0);__decorate([field({'lazy':!![]})],b[C(0x15d,0x133)],C(0x14a,0x164),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x15d,0x177)],'startDateConstraintIntervals',void 0x0);function C(a,b){return _enr(b,a-0x199);}__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x15d,0x144)],C(0x146,0x16e),void 0x0);__decorate([calculate(C(0x142,0x135))],b['prototype'],C(0x16e,0x193),null);__decorate([calculate('endDateConstraintIntervals')],b[C(0x15d,0x17b)],C(0x12a,0x10b),null);__decorate([calculate(C(0x17a,0x181))],b[C(0x15d,0x136)],C(0x186,0x19e),null);__decorate([calculate(C(0x14a,0x160))],b[C(0x15d,0x17a)],'calculateMaxChildrenEndDate',null);__decorate([calculate(C(0x182,0x179))],b[C(0x15d,0x13a)],'calculateStartDate',null);__decorate([calculate(C(0x173,0x173))],b[C(0x15d,0x166)],C(0x132,0x13b),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function a8(a,b){return _enb(a- -0x31b,b);}const c=a();while(!![]){try{const d=parseInt(a8(-0x1a8,-0x190))/0x1*(-parseInt(a8(-0x1af,-0x1ad))/0x2)+-parseInt(a8(-0x181,-0x173))/0x3*(-parseInt(a8(-0x1a0,-0x185))/0x4)+parseInt(a8(-0x1ad,-0x194))/0x5*(parseInt(a8(-0x199,-0x1a3))/0x6)+parseInt(a8(-0x17b,-0x170))/0x7*(-parseInt(a8(-0x182,-0x19a))/0x8)+parseInt(a8(-0x1a5,-0x1ab))/0x9*(parseInt(a8(-0x190,-0x17b))/0xa)+parseInt(a8(-0x196,-0x1b3))/0xb*(parseInt(a8(-0x19e,-0x19f))/0xc)+parseInt(a8(-0x17e,-0x182))/0xd*(parseInt(a8(-0x1b0,-0x1c5))/0xe);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x53b7f));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CostAccrual,ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{ResourceAllocationEventRangeCalendar,WorkResourceAllocationInfoMixin}from'./WorkResourceAllocationInfoMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x16a;let f=c[d];return f;};return _enb(a,b);}class CostResourceAllocationInfoMixin extends Mixin([WorkResourceAllocationInfoMixin],a=>{class b extends a{*[a9(0x48c,0x483)](){const c=yield this['$']['resource'],d=yield c['$'][aa(-0x2c,-0x1f)];if(d===ResourceType['Cost']){return yield*this['calculateCostAllocation']();}function aa(a,b){return a9(a,b- -0x4b7);}return yield*super[aa(-0x3e,-0x34)]();}[a9(0x49a,0x492)](c,d,e,f,g,h){const i={'tick':c,'resource':d,'cost':0x0};function ab(a,b){return a9(b,a- -0x36e);}e['set'](c,i);f[ab(0x127,0x144)](i);g['forEach']((j,k)=>{const l={'tick':c,'assignment':k,'cost':0x0};function ac(a,b){return ab(b-0x109,a);}j['set'](c,l);h[ac(0x240,0x22f)](k)[ac(0x23d,0x230)](l);});return i;}*[a9(0x479,0x482)](){const c=this,d=[],e=yield c[ad(0x3c1,0x3be)],f=yield c['$'][ad(0x3d1,0x3dd)],g=f[ad(0x3ce,0x3c8)](),h=yield f['$'][ad(0x3d2,0x3d4)],i=new Map(),j=[],k=new Map(),l=new Map(),m=e[ad(0x3cc,0x3bb)][ad(0x3b3,0x3c0)][ad(0x3dc,0x3e4)],n=e[ad(0x3c7,0x3bb)][ad(0x3c3,0x3cf)][ad(0x3ea,0x3e3)],o=n[ad(0x3a0,0x3b9)]()-m['getTime']();let p,q,r;p=yield f['$'][ad(0x3da,0x3c3)];r=new Map();function ad(a,b){return a9(a,b- -0xaa);}const s=new Map();for(const x of h){if(!(yield*c[ad(0x3f4,0x3ef)](x)))continue;const y=yield x['$'][ad(0x3ee,0x3e1)];let z=yield y['$']['startDate'];let A=yield y['$'][ad(0x400,0x3e3)];const B=yield y['$'][ad(0x3fd,0x3e2)];const C=yield y['$'][ad(0x3cd,0x3d2)];const D={'event':y,'eventCalendar':C,'startDate':z,'endDate':A,'durationMs':yield*g[ad(0x3de,0x3d5)](yield y['$']['duration'],yield y['$'][ad(0x3b8,0x3cc)],TimeUnit[ad(0x3d8,0x3c6)])};s[ad(0x3de,0x3ed)](x,D);if(B){for(const F of B){const G=yield F['$']['startDate'];const H=yield F['$'][ad(0x3f8,0x3e3)];j[ad(0x3fc,0x3eb)]({'startDate':G,'endDate':H,'assignment':x});}}else{if(yield*x[ad(0x3b8,0x3b6)]()){if(yield*x[ad(0x3af,0x3ca)]()){z=yield x['$'][ad(0x3e3,0x3e4)];A=yield x['$'][ad(0x3cb,0x3e3)];}else{z=yield x['$']['phantomStartDate'];A=yield x['$'][ad(0x3d8,0x3dc)];}D['startDate']=z;D[ad(0x3d8,0x3e3)]=A;}if(z&&A){j[ad(0x3f4,0x3eb)]({'startDate':z,'endDate':A,'assignment':x});}}s['get'](x)[ad(0x3c8,0x3c4)]=yield x['$'][ad(0x3ce,0x3c4)];let E=i[ad(0x3dc,0x3ea)](C);if(!E){E=[];i['set'](C,E);}k[ad(0x3fd,0x3ed)](x,new Map());l[ad(0x408,0x3ed)](x,[]);E[ad(0x3d8,0x3eb)](x);}const t=new ResourceAllocationEventRangeCalendar({'intervals':j});c[ad(0x3d2,0x3d0)][ad(0x3ca,0x3db)](t);const u=[e,t,...i[ad(0x3d7,0x3d6)]()];const v=new Map();const w=g['combineCalendars'](u)[ad(0x3ed,0x3e7)]({'startDate':m,'endDate':n,'maxRange':o>g[ad(0x3d2,0x3e0)]?o:void 0x0});for(const {startDate:I,endDate:J,calendarCacheInterval:K}of w){const L=K[ad(0x3a0,0x3bd)](),M=L['get'](e)[0x0],N=v[ad(0x3d6,0x3ea)](M)||c[ad(0x3ff,0x3e8)](M,f,v,d,k,l),O=K[ad(0x3af,0x3cb)]();if(O[ad(0x3cd,0x3ea)](e)){const P=N['assignments']||new Set(),Q=N[ad(0x3c6,0x3bc)]||new Map();let R=![],S=0x0,T;for(const U of L[ad(0x3cd,0x3ea)](t)){const V=U['assignment'];const W=V&&s['get'](V);const X=W?.['durationMs'];const Y=W?.['event'];if(Y&&O[ad(0x3d4,0x3ea)](W['eventCalendar'])){const Z=W[ad(0x3f0,0x3e4)];const a0=W['endDate'];const a1=W[ad(0x3b0,0x3c4)];const a2=Math['max'](I[ad(0x3b1,0x3b9)](),Z[ad(0x3cd,0x3b9)]());const a3=Math[ad(0x3da,0x3d3)](J[ad(0x3b1,0x3b9)](),a0['getTime']());R=!![];T=a3-a2;const a4=k['get'](V)['get'](M);switch(p){case CostAccrual['Prorated']:const a5=a1*T/(X||0x1);a4[ad(0x3ae,0x3c4)]+=a5;S+=a5;break;case CostAccrual[ad(0x3c1,0x3c1)]:if(!r['get'](V)&&q!==M&&N[ad(0x3e4,0x3da)][ad(0x3fd,0x3e4)]<=Z&&Z<N[ad(0x3ef,0x3da)]['endDate']){const a6=W['cost'];a4['cost']+=a6;S+=a6;r['set'](V,!![]);}break;case CostAccrual[ad(0x3e5,0x3df)]:if(!r['get'](V)&&q!==M&&N[ad(0x3f4,0x3da)]['startDate']<=a0&&a0<=N[ad(0x3e7,0x3da)][ad(0x3f9,0x3e3)]){const a7=W['cost'];a4[ad(0x3a7,0x3c4)]+=a7;S+=a7;r[ad(0x405,0x3ed)](V,!![]);}break;}a4[ad(0x3af,0x3c5)]=!![];P[ad(0x3f1,0x3db)](V);Q[ad(0x408,0x3ed)](V,a4);}}if(R){N[ad(0x3bf,0x3c5)]=!![];N['cost']+=S;N[ad(0x3c7,0x3cd)]=P;N[ad(0x3c1,0x3bc)]=Q;}}q=M;}c[ad(0x3e3,0x3de)]();return{'owner':c,'resource':f,'total':d,'byAssignments':l};}}function a9(a,b){return _enb(b-0x2f6,a);}return b;}){}export{CostResourceAllocationInfoMixin};function _ena(){const ae=['389KOrbiO','first','Start','159849sibdva','costAccrual','cost','inEventTimeSpan','Millisecond','20yEMZxZ','getProject','166992CRFILV','isUserTimePhased','getCalendarsWorkStatus','durationUnit','assignments','2308278hzUGTv','last','tempCalendars','22stxNKQ','effectiveCalendar','min','assigned','$convertDuration','keys','150keApJH','calculateCostAllocation','calculateAllocation','tick','add','phantomEndDate','resource','clearTempCalendars','End','maxCalendarRange','event','segments','endDate','startDate','235376arMShD','7437lykoiQ','getIterator','initCostTickData','26kPknYQ','get','push','49fYlNuT','set','type','shouldIncludeAssignmentInAllocation','isTimePhased','2771202lqvtPx','2768jcQlxH','getTime','5ljvLCj','intervalStore','assignmentIntervals','getGroups','ticks'];_ena=function(){return ae;};return _ena();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function o(a,b){return _enb(b- -0x2f6,a);}const c=a();while(!![]){try{const d=parseInt(o(-0x226,-0x231))/0x1+-parseInt(o(-0x240,-0x24a))/0x2+-parseInt(o(-0x23e,-0x227))/0x3*(parseInt(o(-0x23c,-0x230))/0x4)+parseInt(o(-0x227,-0x226))/0x5+-parseInt(o(-0x233,-0x235))/0x6+parseInt(o(-0x228,-0x224))/0x7*(-parseInt(o(-0x245,-0x22f))/0x8)+parseInt(o(-0x241,-0x239))/0x9*(parseInt(o(-0x222,-0x225))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x497a1));var __decorate=function(a,b,e,f){var g=arguments[p(0x229,0x21a)],h=g<0x3?b:f===null?f=Object[p(0x258,0x24a)](b,e):f,j;function p(a,b){return _enb(b-0x174,a);}if(typeof Reflect===p(0x234,0x219)&&typeof Reflect[p(0x244,0x248)]===p(0x24d,0x236))h=Reflect[p(0x246,0x248)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[p(0x236,0x241)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,TimeUnit}from'../../../scheduling/Types.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xa3;let f=c[d];return f;};return _enb(a,b);}import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{HasSubEventsMixin}from'../scheduler_basic/HasSubEventsMixin.js';function _ena(){const y=['getOwnPropertyDescriptor','min','run','isTaskPinnableWithConstraint','object','length','Start','Millisecond','getTime','new','usesDelayFromParent','10430ClEoBh','write','startDateConstraintIntervals','push','skipWorkingTime','durationUnit','map','calculateStartDateConstraintIntervals','calculateProjectedDuration','parent','delayFromParent','number','isRoot','manuallyScheduled','getData','prototype','earlySchedule','2333763lSmvwP','flatMap','call','parentEvent','3435432jMiGKa','function','children','updateDelaysAfterShrinkWrap','78046xbixZj','4wTwYlU','24rdMrqw','calculateStartDate','startDate','graph','isManuallyScheduled','calculateDelayFromParent','defineProperty','scheduleMixinClass','914883pNLIfZ','1662725dTYqrp','30DUBkXL','11207fHzAwe','isInitialTransaction','decorate','isStmRestoring'];_ena=function(){return y;};return _ena();}import{DelayFromParentScheduleMixin}from'./DelayFromParentScheduleMixin.js';import{DateConstraintInterval,HasDateConstraintMixin}from'./HasDateConstraintMixin.js';class DelayFromParentMixin extends Mixin([HasChildrenMixin,HasSubEventsMixin,HasDateConstraintMixin],a=>{const b=a[q(0x416,0x40e)];class c extends a{get[q(0x406,0x40c)](){return this['constructor']['usesDelayFromParent'];}['isTaskPinnableWithConstraint'](){function r(a,b){return q(b-0x5a,a);}if(this[r(0x46f,0x460)]&&(this[r(0x462,0x46a)]&&!this[r(0x47a,0x46a)]['isRoot'])){return![];}return b[r(0x441,0x459)]['call'](this);}[q(0x41f,0x414)](){const d=Math[s(0x1c2,0x1b9)](...this[s(0x1ae,0x195)][s(0x19d,0x198)](e=>e[s(0x1a1,0x1b6)]||0x0));function s(a,b){return q(a- -0x270,b);}if(d!==0x0){for(const e of this['children']){this['graph'][s(0x198,0x18d)](e['$'][s(0x1a1,0x1af)],e[s(0x1a1,0x1a6)]-d);}}}['updateParentEvent'](d,e){function t(a,b){return q(b- -0xd4,a);}if(e&&this[t(0x321,0x332)]&&d[t(0x318,0x332)]){e[t(0x334,0x332)]&&e[t(0x365,0x34b)]();for(const f of d[t(0x35f,0x34a)]){this[t(0x35c,0x351)][t(0x32f,0x334)](f['$'][t(0x324,0x33d)],null);}}}*[q(0x427,0x438)](){let d=yield ProposedOrPrevious;function u(a,b){return q(b- -0x449,a);}const e=yield this['$'][u(-0x2f,-0x2e)];if(this[u(-0x31,-0x43)]&&e&&!e['isRoot']&&d==null){let f=yield ProposedOrPreviousValueOf(e['$']['startDate']);if(!f){const h=e['children'][u(-0x3e,-0x30)](i=>i[u(-0x37,-0x34)](u(-0x16,-0x25))?.['getTime']()??[]);f=new Date(Math['min'](...h));}const g=yield ProposedOrPreviousValueOf(this['$']['startDate']);if(g){if(g['getTime']()<f[u(-0x3a,-0x45)]()){d=-(yield*this['calculateProjectedDuration'](g,f));}else{d=yield*this[u(-0x2d,-0x3a)](f,g);}}}return d;}['writeStartDate'](d,e,f,g,h=!![]){function v(a,b){return q(a- -0xb3,b);}const {parent:i,children:j,project:k}=this;if(this[v(0x353,0x34f)]&&!k[v(0x37b,0x38c)]){if(i&&!i[v(0x360,0x353)]&&i[v(0x372,0x36d)]&&!k[v(0x37d,0x368)]){const l=i['run'](v(0x35c,0x369),i['startDate'],g);e[v(0x355,0x33d)](this['$']['delayFromParent'],l);!i['manuallyScheduled']&&i[v(0x36c,0x372)]();}if(!h&&j?.[v(0x34e,0x34d)]&&this[v(0x361,0x349)]&&g[v(0x351,0x368)]()<this[v(0x371,0x369)][v(0x351,0x343)]()){for(const m of j){const n=m[v(0x34b,0x347)]('convertDurationGen',m[v(0x371,0x37a)][v(0x351,0x352)]()-g[v(0x351,0x340)](),TimeUnit[v(0x350,0x34e)],this[v(0x359,0x35e)]);e[v(0x355,0x366)](m['$'][v(0x35e,0x370)],n);}}}return b['writeStartDate'][v(0x367,0x373)](this,d,e,f,g,h);}*[q(0x40e,0x422)](){function w(a,b){return q(a-0x40,b);}const d=yield*b[w(0x44e,0x43a)][w(0x45a,0x46b)](this);let e=yield this['$'][w(0x451,0x447)];if(e!=null){const f=yield this['$'][w(0x45b,0x441)];const g=yield*f[w(0x466,0x477)]();let h;if(g){h=yield f['$']['startDate'];}else{const i=yield f[w(0x457,0x44b)]['$']['startDateConstraintIntervals'];const j=yield f['$']['startDateConstraintIntervals'];if(i['length']||j['length']){const k=intersectIntervals([...i,...j]);h=k['startDate'];}if(!h){h=yield ProposedValueOf(f['$'][w(0x464,0x456)]);}}if(h){h=yield*this[w(0x44b,0x466)](h,!![],e);d[w(0x44a,0x458)](DateConstraintInterval[w(0x445,0x432)]({'owner':this,'side':ConstraintIntervalSide[w(0x442,0x45b)],'startDate':h}));}}return d;}*['calculateStartDate'](){function x(a,b){return q(b- -0x431,a);}const d=yield*b[x(-0x1d,-0xe)][x(-0x26,-0x17)](this);if(this[x(-0x2f,-0x2b)]){if(yield*this[x(-0x26,-0xb)]()){const e=yield this['$'][x(-0x39,-0x28)];if(e[x(-0x25,-0x30)]){return e[e[x(-0x44,-0x30)]-0x1][x(-0xd,-0xd)];}}}return d;}}c['scheduleMixinClass']=Mixin([a[q(0x429,0x43a)],DelayFromParentScheduleMixin],d=>d);c[q(0x406,0x406)]=!![];__decorate([model_field({'type':q(0x412,0x428)})],c['prototype'],q(0x411,0x3fc),void 0x0);__decorate([calculate(q(0x411,0x404))],c[q(0x416,0x414)],'calculateDelayFromParent',null);function q(a,b){return _enb(a-0x35b,b);}return c;}){}export{DelayFromParentMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xdf;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function l(a,b){return _enb(b-0x195,a);}while(!![]){try{const d=parseInt(l(0x277,0x277))/0x1+-parseInt(l(0x283,0x27a))/0x2+-parseInt(l(0x27c,0x279))/0x3*(parseInt(l(0x282,0x285))/0x4)+-parseInt(l(0x27f,0x27b))/0x5*(parseInt(l(0x288,0x281))/0x6)+-parseInt(l(0x287,0x28a))/0x7+-parseInt(l(0x26a,0x274))/0x8*(parseInt(l(0x275,0x27f))/0x9)+-parseInt(l(0x26f,0x275))/0xa*(-parseInt(l(0x277,0x276))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd7387));var __decorate=function(a,b,e,f){var g=arguments[m(0x1c3,0x1bb)],h=g<0x3?b:f===null?f=Object[m(0x1b4,0x1ba)](b,e):f,j;if(typeof Reflect===m(0x1c0,0x1bf)&&typeof Reflect[m(0x1c4,0x1c2)]===m(0x1bf,0x1ca))h=Reflect[m(0x1c4,0x1c7)](a,b,e,f);else for(var k=a[m(0x1c3,0x1c5)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a-0xd1,b);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstrainedScheduleMixin}from'./ConstrainedScheduleMixin.js';class DelayFromParentScheduleMixin extends Mixin([ConstrainedScheduleMixin],a=>{function n(a,b){return _enb(b- -0x347,a);}const b=a[n(-0x256,-0x260)];class c extends a{*[n(-0x25d,-0x25a)](){const d=yield*b[o(0x3bf,0x3c2)][o(0x3c3,0x3b8)](this);if(this['event']['delayFromParent']!=null){const e=yield this['event']['$'][o(0x3c6,0x3c3)];const f=yield e[o(0x3bd,0x3bd)]['$'][o(0x3bb,0x3b8)];d[o(0x3ba,0x3bf)](...f);}function o(a,b){return n(b,a-0x619);}return d;}}__decorate([calculate(n(-0x25e,-0x25e))],c[n(-0x259,-0x260)],'calculateEndDateConstraintIntervals',null);return c;}){}export{DelayFromParentScheduleMixin};function _ena(){const p=['endDateConstraintIntervals','3262554ijjVbb','earlySchedule','12fcOXqs','calculateEndDateConstraintIntervals','function','object','12GeZtaP','call','length','decorate','parentEvent','1904714OYdtbG','32TmPTiJ','20OvxEED','21110078zvkZBr','1130632fiiGic','getOwnPropertyDescriptor','568455EokFiB','1128004azDSQm','3081755UdCXwV','prototype','push'];_ena=function(){return p;};return _ena();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _ena(){const p=['hasSubEvents','function','cost','121400DWnnwA','subEventsIterable','440WgpgEn','980wgTPXW','shouldRollupChildCost','104286sgWLTw','length','decorate','27704GdJxiO','defineProperty','1657012FOEhUZ','3861138EVnYag','4221QYoVRX','2101416IzSwga','462qDPhms','calculateCost','object','number','32948bEnule'];_ena=function(){return p;};return _ena();}(function(a,b){function l(a,b){return _enb(a- -0x1b5,b);}const c=a();while(!![]){try{const d=parseInt(l(-0x82,-0x7b))/0x1+-parseInt(l(-0x7f,-0x83))/0x2+-parseInt(l(-0x81,-0x7a))/0x3+parseInt(l(-0x90,-0x8c))/0x4*(parseInt(l(-0x89,-0x94))/0x5)+parseInt(l(-0x87,-0x7f))/0x6*(-parseInt(l(-0x94,-0x96))/0x7)+parseInt(l(-0x84,-0x82))/0x8*(parseInt(l(-0x80,-0x85))/0x9)+-parseInt(l(-0x8c,-0x8e))/0xa*(parseInt(l(-0x8a,-0x84))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe1db7));var __decorate=function(a,b,e,f){var g=arguments[m(0x4ab,0x4b2)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function m(a,b){return _enb(a-0x37c,b);}if(typeof Reflect===m(0x49f,0x4a0)&&typeof Reflect['decorate']===m(0x4a3,0x4a0))h=Reflect[m(0x4ac,0x4b7)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x4ae,0x4a5)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{HasSubEventsMixin}from'../scheduler_basic/HasSubEventsMixin.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x121;let f=c[d];return f;};return _enb(a,b);}class HasCostSubEventsMixin extends Mixin([HasSubEventsMixin],a=>{class b extends a{*[n(-0x135,-0x139)](c){return!![];}*[n(-0x144,-0x144)](){let c=0x0;const d=yield*this[o(0x45f,0x46a)]();if(d){const e=yield*this[o(0x467,0x46e)]();for(const f of e){if(!(yield*this['shouldRollupChildCost'](f)))continue;const g=yield f['$'][o(0x461,0x46c)];c+=g;}}function o(a,b){return n(a,b-0x5aa);}return c;}}__decorate([model_field({'persist':![],'type':n(-0x142,-0x142)})],b['prototype'],'cost',void 0x0);function n(a,b){return _enb(b- -0x266,a);}__decorate([calculate(n(-0x134,-0x13e))],b['prototype'],'calculateCost',null);return b;}){}export{HasCostSubEventsMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function l(a,b){return _enb(b- -0x19b,a);}while(!![]){try{const d=-parseInt(l(-0xb9,-0xad))/0x1*(parseInt(l(-0xc7,-0xbb))/0x2)+parseInt(l(-0xb3,-0xbe))/0x3*(-parseInt(l(-0x82,-0xba))/0x4)+parseInt(l(-0xde,-0xa9))/0x5*(parseInt(l(-0xb2,-0xa1))/0x6)+parseInt(l(-0x95,-0xb8))/0x7*(parseInt(l(-0xe2,-0xcb))/0x8)+parseInt(l(-0xb7,-0x80))/0x9+parseInt(l(-0xc3,-0xa2))/0xa*(parseInt(l(-0x100,-0xd9))/0xb)+parseInt(l(-0xa7,-0x94))/0xc*(parseInt(l(-0x52,-0x6d))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd2f7b));var __decorate=function(a,b,e,f){function m(a,b){return _enb(b-0x62,a);}var g=arguments[m(0x17b,0x168)],h=g<0x3?b:f===null?f=Object[m(0x1b0,0x188)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0x10c,0x13d)]==='function')h=Reflect[m(0x176,0x13d)](a,b,e,f);else for(var k=a[m(0x181,0x168)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x145,0x138)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';function _ena(){const X=['7247867ETXEFD','event','isWritingUndefined','manuallyScheduled','new','isReverting','getDescriptionParameters','setConstraint','forceResolutionOfPostponedConflict','canPostponeIntervalsConflict','FinishNoEarlierThan','phase','kind','startDate','2423976WMPQcQ','getStm','getDescription','endDate','getConstraintTypeDefaultDate','interval','defineProperty','unshift','baseRevision','getConstraintName','isAffectedByTransaction','decorate','resolve','933zqQCvE','writeEndDate','MustFinishOn','2bJizhe','17756DJqisC','calculateConstraintType','7jHgFLP','7.0.0','RemoveDateConstraintConflictResolution','owner','format','_isManuallyScheduled','PostponeDateConstraintConflictResolution','construct','startedTaskScheduling','writeDirection','MustStartOn','833914qUKwKl','writeStartDate','call','hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict','4945NpuGEh','postponedConflict','L{constraintTypeTpl}','$name','AsSoonAsPossible','getProject','isShadow','10DCgXDg','2388ZAaDgI','getEndDatePinConstraintType','allowPostponedConflicts','ignorePinningConstraint','hasIdentifier','createEndDateConstraintsInterval','applyChangeset','L{startDateDescriptionTpl}','FinishNoLaterThan','DateConstraintIntervalDescription','prototype','isDateConstraintInterval','length','72eHPEic','isConstraintTypeApplicable','bwcConflictPostpone','createStartDateConstraintsInterval','scheduleMixinClass','L{descriptionTpl}','writeConstraintType','isRestoring','Start','getOwnConstraintConflictInfo','StartNoEarlierThan','gantt','commitAsync','isSyncingDataOnLoad','date','percentDone','resolutions','write','constraintDate','direction','525258bLptpr','calculateConstraintDate','StartNoLaterThan','graph','hasPostponedOwnConstraintConflict','project','descriptionBuilderClass','effectiveDirection','sourceSchedule','deprecate','string','getOwnPropertyDescriptor','removeDateConstraintConflictResolutionClass','End','Backward','addConstraintOnDateSet','Manual','constraintType','resolvePostponedConflict','3606824IZNZJh','AsLateAsPossible','includeAsapAlapAsConstraints','isTaskPinnableWithConstraint','Forward','get','hasSubEvents','name','eventStore','dateConstraintIntervalClass'];_ena=function(){return X;};return _ena();}function _enM(a,b){return _enb(a-0x92,b);}import _ene from'@bryntum/core-thin/lib/localization/Localizable.js';import{ConflictResolution,ConstraintInterval,ConstraintIntervalDescription}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import'../../../localization/En.js';import{ConstraintIntervalSide,ConstraintType,Direction,StartedTaskScheduling}from'../../../scheduling/Types.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc0;let f=c[d];return f;};return _enb(a,b);}import{format}from'../../../util/Functions.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasDateConstraintScheduleMixin}from'./HasDateConstraintScheduleMixin.js';class HasDateConstraintMixin extends Mixin([ConstrainedEarlyEventMixin,HasChildrenMixin],a=>{const b=a[n(0x3d5,0x3ba)];class c extends a{constructor(){function o(a,b){return n(a-0x10c,b);}super(...arguments);this['forceResolutionOfPostponedConflict']=![];this[o(0x4da,0x49f)]=![];}get[n(0x3f0,0x3fe)](){_end[p(0x3cd,0x3e0)](p(0x3bb,0x389),p(0x38d,0x38c),p(0x39a,0x395));function p(a,b){return n(a- -0x28,b);}return this[p(0x39c,0x3b7)];}set[n(0x3f0,0x3ca)](d){function q(a,b){return n(a- -0x619,b);}_end[q(-0x224,-0x22a)](q(-0x236,-0x256),'7.0.0',q(-0x257,-0x23f));this[q(-0x255,-0x26e)]=d;}[n(0x3c0,0x3fa)](d,e,f,g,h=!![]){const i=this[r(0x1f6,0x1e3)](),{$:j}=this;function r(a,b){return n(b- -0x1e5,a);}if(i?.[r(0x231,0x216)]&&e['graph']['hasIdentifier'](j[r(0x1ec,0x20e)])&&!i[r(0x1a6,0x1ac)]['isSyncingDataOnLoad']&&!this[r(0x1bb,0x1b3)]&&!i[r(0x1e6,0x1bd)]()[r(0x1c3,0x1fa)]&&(h||this[r(0x1e7,0x20e)]['direction']===Direction[r(0x224,0x21e)])){const k=this['getStartDatePinConstraintType']();if(k){if(e[r(0x1f9,0x20a)]===this[r(0x1e7,0x20a)]){this[r(0x1f3,0x205)]=g;this[r(0x242,0x218)]=k;}else{e[r(0x1cf,0x204)](j[r(0x1f6,0x205)],g);e['write'](j[r(0x22a,0x218)],k);}}}return b['writeStartDate'][r(0x208,0x1dc)](this,d,e,f,g,h);}[n(0x3af,0x3a2)](d,e,f,g,h=![]){const i=this[s(0x40e,0x425)]();if(i?.[s(0x441,0x452)]&&e[s(0x435,0x448)]['hasIdentifier'](this['$'][s(0x431,0x42e)])&&h&&!i['eventStore'][s(0x42b,0x423)]&&!i[s(0x3e8,0x3c9)]()['isRestoring']){const j=this[s(0x412,0x3e9)]();if(j){e[s(0x42f,0x459)](this['$']['constraintDate'],g);e[s(0x42f,0x422)](this['$'][s(0x443,0x41e)],j);}}function s(a,b){return n(a-0x46,b);}return b[s(0x3f5,0x3de)][s(0x407,0x40d)](this,d,e,f,g,h);}[n(0x3de,0x40b)](d,e,f,g,h=![]){const i=this[t(-0x61,-0x5c)]();if(!h&&!d[t(-0x94,-0xb4)]&&i[t(-0x28,-0x28)]){if(g!==ConstraintType[t(-0x62,-0x97)]&&g!==ConstraintType[t(-0x29,0xa)]){if(e[t(-0x80,-0x79)]['hasIdentifier'](d)){e['write'](this['$']['direction'],null,!![]);}}else{e[t(-0x40,-0x5e)](this['$'][t(-0x3e,-0x70)],g===ConstraintType['AsSoonAsPossible']?Direction[t(-0x26,0x10)]:Direction[t(-0x2f,-0x43)],!![]);e[t(-0x40,-0x4d)](this['$'][t(-0x3f,-0x4e)],null);}}function t(a,b){return n(a- -0x429,b);}d['constructor'][t(-0x54,-0x4f)][t(-0x40,-0x7)][t(-0x68,-0x8e)](this,d,e,f,g);}[n(0x3bd,0x3f4)](d,e,f,g,h=![]){const i=this[u(-0x2c7,-0x28e)]();if(!h&&!d[u(-0x2fa,-0x314)]&&i[u(-0x28e,-0x284)]&&(g||e[u(-0x2e6,-0x2d0)]['hasIdentifier'](d))){e['write'](this['$'][u(-0x292,-0x2b0)],g===Direction[u(-0x28c,-0x2b9)]?ConstraintType['AsSoonAsPossible']:g===Direction['Backward']?ConstraintType[u(-0x28f,-0x2aa)]:null,!![]);}function u(a,b){return n(a- -0x68f,b);}d['constructor']['prototype'][u(-0x2a6,-0x297)]['call'](this,d,e,f,g);}*[n(0x3b3,0x3d3)](){let d=yield ProposedOrPrevious;function v(a,b){return n(b- -0x4f3,a);}if(!(yield*this[v(-0x138,-0x11a)](d))){d=null;}return d;}*[n(0x3ed,0x3bf)](d){let e=yield ProposedOrPrevious;const f=yield this['$'][w(0x9d,0xca)];if(!f){e=null;}else if(!e){e=this[w(0x45,0x1f)](d,f);}function w(a,b){return n(a- -0x360,b);}return e;}['getStartDatePinConstraintType'](){function x(a,b){return n(a- -0x66,b);}const {effectiveDirection:d}=this[x(0x38b,0x366)];if(!this[x(0x39c,0x381)]())return null;switch(d['direction']){case Direction[x(0x39d,0x3ad)]:return ConstraintType[x(0x37c,0x36e)];case Direction[x(0x394,0x3a1)]:return ConstraintType['StartNoLaterThan'];}}['getEndDatePinConstraintType'](){function y(a,b){return n(b- -0x568,a);}const {effectiveDirection:d}=this[y(-0x146,-0x177)];if(!this[y(-0x178,-0x166)]())return null;switch(d['direction']){case Direction[y(-0x131,-0x165)]:return ConstraintType['FinishNoEarlierThan'];case Direction[y(-0x144,-0x16e)]:return ConstraintType[y(-0x16b,-0x195)];}}[n(0x3b9,0x3a0)](){let d=this[z(0x313,0x338)];if(!d){const e=this[z(0x36e,0x36b)][z(0x339,0x32e)];if(e===StartedTaskScheduling[z(0x379,0x395)]){d=this[z(0x364,0x33d)]>0x0;}}function z(a,b){return n(a- -0x83,b);}return d;}['isTaskPinnableWithConstraint'](){const {ignorePinningConstraint:d,constraintType:e}=this;let f=![];function A(a,b){return n(b-0xc,a);}if(!this[A(0x3b3,0x3c5)]()&&!d){if(e){switch(e){case ConstraintType[A(0x3a4,0x3d3)]:case ConstraintType[A(0x41e,0x40c)]:case ConstraintType[A(0x3c7,0x3ee)]:case ConstraintType[A(0x3d2,0x3fa)]:case ConstraintType[A(0x39e,0x3a9)]:case ConstraintType['FinishNoLaterThan']:f=!![];}}else{f=!![];}}return f;}[n(0x3d1,0x3e1)](...d){this[B(0x425,0x453)]=!![];const e=super[B(0x428,0x452)](...d);function B(a,b){return n(a-0x57,b);}this['ignorePinningConstraint']=![];return e;}[n(0x3a5,0x38d)](d,e){switch(e){case ConstraintType[C(0x3ab,0x37f)]:case ConstraintType[C(0x396,0x38b)]:case ConstraintType[C(0x32e,0x35b)]:return d(ProposedOrPreviousValueOf(this['$']['startDate']));case ConstraintType[C(0x31e,0x33a)]:case ConstraintType[C(0x368,0x370)]:case ConstraintType[C(0x31e,0x34d)]:return d(ProposedOrPreviousValueOf(this['$'][C(0x356,0x341)]));}function C(a,b){return n(b- -0x63,a);}return null;}*[n(0x3d9,0x3c0)](d){const e=yield*this[D(0x88,0x63)]();function D(a,b){return n(b- -0x3a2,a);}switch(d){case ConstraintType[D(-0x3c,-0x5)]:case ConstraintType[D(0x87,0x4c)]:case ConstraintType[D(0x3e,0xe)]:case ConstraintType['MustStartOn']:return!e;}return!![];}async[n(0x39a,0x3ae)](d,e){this['constraintType']=d;if(e!==void 0x0){this[E(-0xc1,-0xc0)]=e;}function E(a,b){return n(a- -0x4ab,b);}return this[E(-0xc7,-0xaa)]();}[n(0x39c,0x387)](d){function F(a,b){return n(a- -0x340,b);}return this[F(0xb1,0xad)][F(0x9a,0xa1)]?this[F(0xa1,0xc6)](d)[F(0x5f,0x41)]==='dependency_with_own_constraint':!![];}['getOwnConstraintConflictInfo'](d){return{'kind':'no_own_constraint_conflict'};}*['onNonEmptyEffectiveInterval'](d,e){const f=yield*e['isFirstPass']();function G(a,b){return n(a- -0x3c1,b);}const g=yield this['$'][G(0x3,0x13)];if(g&&f&&e[G(-0x23,-0x2a)]===g[G(0x33,0x5c)][G(-0x23,-0x50)]){yield Write(this['$']['postponedConflict'],null);}this[G(-0x26,-0x2a)]=![];}async[n(0x3fe,0x418)](){if(this[H(0x170,0x138)]){this['postponedConflict']=null;this[H(0x147,0x181)]=!![];}function H(a,b){return n(a- -0x254,b);}return this[H(0x19d,0x1c6)][H(0x190,0x17c)]();}*[n(0x3db,0x3bc)](d,e,f,g){const h=this['project'][I(-0x109,-0xe5)];function I(a,b){return n(a- -0x49b,b);}switch(d){case ConstraintType['MustStartOn']:g[I(-0xf3,-0x101)](h['new']({'owner':this,'side':ConstraintIntervalSide[I(-0xbb,-0xa4)],'startDate':e,'endDate':e}));break;case ConstraintType['StartNoEarlierThan']:g[I(-0xf3,-0xee)](h[I(-0x104,-0x123)]({'owner':this,'side':ConstraintIntervalSide[I(-0xbb,-0xbe)],'startDate':e}));break;case ConstraintType['StartNoLaterThan']:g[I(-0xf3,-0xe1)](h['new']({'owner':this,'side':ConstraintIntervalSide[I(-0xbb,-0xcb)],'endDate':e}));break;}}*[n(0x3d0,0x3cd)](d,e,f,g){const h=this['project']['dateConstraintIntervalClass'];function J(a,b){return n(a- -0x258,b);}switch(d){case ConstraintType[J(0x158,0x16a)]:g[J(0x150,0x17f)](h['new']({'owner':this,'side':ConstraintIntervalSide[J(0x1a1,0x168)],'startDate':e,'endDate':e}));break;case ConstraintType['FinishNoEarlierThan']:g[J(0x150,0x189)](h['new']({'owner':this,'side':ConstraintIntervalSide[J(0x1a1,0x197)],'startDate':e}));break;case ConstraintType[J(0x17b,0x147)]:g[J(0x150,0x152)](h[J(0x13f,0x15a)]({'owner':this,'side':ConstraintIntervalSide[J(0x1a1,0x186)],'endDate':e}));break;}}}c[n(0x3dc,0x402)]=Mixin([a['scheduleMixinClass'],HasDateConstraintScheduleMixin],d=>d);__decorate([model_field({'type':n(0x3f6,0x3e5)},{'sync':!![]})],c[n(0x3d5,0x406)],n(0x3fd,0x3c7),void 0x0);function n(a,b){return _enb(a-0x2d1,b);}__decorate([model_field({'type':n(0x3e6,0x409)},{'converter':dateConverter,'sync':!![]})],c[n(0x3d5,0x39c)],'constraintDate',void 0x0);__decorate([model_field({'defaultValue':null,'persist':![]},{'sync':!![]})],c[n(0x3d5,0x3b6)],n(0x3c4,0x3ac),void 0x0);__decorate([write(n(0x3fd,0x42b))],c[n(0x3d5,0x40e)],'writeConstraintType',null);__decorate([write(n(0x3eb,0x413))],c[n(0x3d5,0x3ce)],n(0x3bd,0x38f),null);__decorate([calculate('constraintType')],c[n(0x3d5,0x3ae)],'calculateConstraintType',null);__decorate([calculate(n(0x3ea,0x411))],c[n(0x3d5,0x3c2)],n(0x3ed,0x426),null);return c;}){}class RemoveDateConstraintConflictResolution extends _ene(ConflictResolution){['construct'](){super[K(-0x247,-0x220)](...arguments);function K(a,b){return _enb(a- -0x331,b);}this['event']=this['interval'][K(-0x24b,-0x211)];}['getDescription'](){function L(a,b){return _enb(b-0x43,a);}const {event:a}=this;return format(this['L']('L{descriptionTpl}'),a['name']||a['id'],this[L(0x125,0x118)][L(0x157,0x11c)](a[L(0x166,0x16f)]));}[_enM(0x16e,0x13d)](){const {event:a}=this;a[N(0x1e8,0x209)]=null;function N(a,b){return _enM(a-0x2a,b);}a[N(0x1d5,0x1ac)]=null;}}RemoveDateConstraintConflictResolution[_enM(0x187,0x1b2)]=_enM(0x177,0x1ab);class PostponeDateConstraintConflictResolution extends _ene(ConflictResolution){get[_enM(0x155,0x184)](){function O(a,b){return _enM(b- -0xe0,a);}return this[O(0x58,0x87)][O(0x80,0x98)];}[_enM(0x164,0x195)](){function P(a,b){return _enM(a- -0xb1,b);}const {event:a}=this;return format(this['L'](P(0xed,0xf8)),a[P(0x116,0x13e)]||a['id']);}[_enM(0x16e,0x17f)](){function Q(a,b){return _enM(a- -0x400,b);}this[Q(-0x2ab,-0x27a)][Q(-0x27b,-0x24a)]=this['conflict'];}}PostponeDateConstraintConflictResolution[_enM(0x187,0x1a6)]=_enM(0x17b,0x147);class DateConstraintIntervalDescription extends ConstraintIntervalDescription{static[_enM(0x164,0x188)](a){a=a['reflectionOf']||a;let b;function R(a,b){return _enM(b-0x16e,a);}switch(a['owner'][R(0x354,0x32c)]){case ConstraintType[R(0x2e8,0x311)]:case ConstraintType[R(0x2e6,0x2cc)]:case ConstraintType[R(0x311,0x2ed)]:case ConstraintType[R(0x2f1,0x2df)]:b=this['L'](R(0x2e5,0x301));break;case ConstraintType[R(0x346,0x31d)]:case ConstraintType[R(0x327,0x302)]:b=this['L']('L{endDateDescriptionTpl}');break;}return format(b,...this[R(0x2f1,0x2c8)](a));}static[_enM(0x16b,0x19b)](a){function S(a,b){return _enM(a- -0x1d3,b);}return this['L'](S(-0x4d,-0x48))[a];}static[_enM(0x15a,0x17f)](a){a=a['reflectionOf']||a;const b=a[T(0x4aa,0x497)];function T(a,b){return _enM(b-0x31f,a);}return[_enc[T(0x4a3,0x498)](a[T(0x4a9,0x480)],this['L']('L{dateFormat}')),_enc[T(0x49d,0x498)](a[T(0x44f,0x484)],this['L']('L{dateFormat}')),b['name']||b['id'],this[T(0x463,0x48a)](b[T(0x4dc,0x4dd)])];}}DateConstraintIntervalDescription[_enM(0x187,0x16e)]=_enM(0x195,0x1ac);class DateConstraintInterval extends ConstraintInterval{get[_enM(0x197,0x17e)](){return!![];}[_enM(0x16b,0x19c)](a){function U(a,b){return _enM(a- -0x269,b);}return this['descriptionBuilderClass'][U(-0xfe,-0xf6)](a||this[U(-0xf1,-0xbb)][U(-0xab,-0x9e)]);}['getDescription'](){return this['descriptionBuilderClass']['getDescription'](this);}[_enM(0x16c,0x180)](a){const b=this[V(0x34a,0x311)];a=a||b[V(0x344,0x349)]['activeTransaction'];function V(a,b){return _enM(b-0x199,a);}const {entries:c}=a,{$:d}=b,e=c[V(0x327,0x35e)](d[V(0x322,0x344)]),f=c[V(0x38e,0x35e)](d[V(0x391,0x357)]);return!a[V(0x2e1,0x303)][V(0x323,0x329)](b['$$'])||e&&!e[V(0x325,0x323)]()||f&&!f['isShadow']();}['getResolutions'](a,b){if(this[W(0x1bf,0x184)]!==void 0x0)return this['resolutions'];const c=[this[W(0x1cf,0x1d3)][W(0x16e,0x135)]({'interval':this})],d=this[W(0x18e,0x1a2)],e=d[W(0x19f,0x16b)]();function W(a,b){return _enM(a-0x16,b);}if((e[W(0x1a4,0x19c)]||e['autoPostponeConflicts'])&&d[W(0x173,0x18d)](a)){c['push'](PostponeDateConstraintConflictResolution[W(0x16e,0x1a2)]({'interval':this,'conflict':b}));}return this[W(0x1bf,0x1b2)]=c;}}__decorate([prototypeValue(RemoveDateConstraintConflictResolution)],DateConstraintInterval[_enM(0x196,0x1a0)],'removeDateConstraintConflictResolutionClass',void 0x0);__decorate([prototypeValue(DateConstraintIntervalDescription)],DateConstraintInterval['prototype'],_enM(0x1b3,0x18b),void 0x0);export{DateConstraintInterval,DateConstraintIntervalDescription,HasDateConstraintMixin,PostponeDateConstraintConflictResolution,RemoveDateConstraintConflictResolution};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function h(a,b){return _enb(a-0x396,b);}while(!![]){try{const d=parseInt(h(0x529,0x52b))/0x1*(-parseInt(h(0x52e,0x532))/0x2)+-parseInt(h(0x538,0x537))/0x3*(-parseInt(h(0x52a,0x52b))/0x4)+-parseInt(h(0x526,0x527))/0x5+parseInt(h(0x536,0x533))/0x6+-parseInt(h(0x52c,0x525))/0x7+parseInt(h(0x531,0x539))/0x8+-parseInt(h(0x52d,0x533))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x758f7));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x190;let f=c[d];return f;};return _enb(a,b);}import{ConstrainedScheduleMixin}from'./ConstrainedScheduleMixin.js';class HasDateConstraintScheduleMixin extends Mixin([ConstrainedScheduleMixin],a=>{function i(a,b){return _enb(b- -0x175,a);}const b=a[i(0x2b,0x24)];class c extends a{*[i(0x24,0x2a)](){const d=yield*b[j(0x2d,0x31)][j(0x28,0x2a)](this);const e=yield this[j(0x20,0x22)]['$'][j(0x2c,0x23)];const f=yield this[j(0x20,0x17)]['$'][j(0x2b,0x2d)];function j(a,b){return i(b,a-0x3);}const g=yield this['event']['$']['constraintDate'];if(!e&&f&&g){yield*this[j(0x20,0x29)][j(0x2f,0x28)](f,g,this,d);}return d;}*[i(0x1f,0x20)](){const d=yield*b[k(0x91,0x9a)][k(0x96,0x95)](this);const e=yield this['event']['$'][k(0x9a,0x97)];const f=yield this['event']['$'][k(0x99,0x9f)];function k(a,b){return i(b,a-0x71);}const g=yield this[k(0x8e,0x95)]['$'][k(0x8d,0x96)];if(!e&&f&&g){yield*this[k(0x8e,0x8f)][k(0x98,0x9b)](f,g,this,d);}return d;}}return c;}){}export{HasDateConstraintScheduleMixin};function _ena(){const l=['manuallyScheduled','calculateStartDateConstraintIntervals','653592puiVTf','createStartDateConstraintsInterval','9RIVwAU','822790TeUgoa','constraintDate','event','24280mNQNzH','614028eVnLhU','calculateEndDateConstraintIntervals','1575826WzhSHa','2161935vhapUD','34rglzbj','prototype','call','7637800xAaPYJ','createEndDateConstraintsInterval','constraintType'];_ena=function(){return l;};return _ena();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _eng(a,b){return _enb(a- -0x12c,b);}(function(a,b){function f(a,b){return _enb(b-0x35d,a);}const c=a();while(!![]){try{const d=-parseInt(f(0x410,0x419))/0x1+-parseInt(f(0x413,0x415))/0x2*(-parseInt(f(0x411,0x418))/0x3)+-parseInt(f(0x425,0x41e))/0x4*(parseInt(f(0x415,0x412))/0x5)+parseInt(f(0x411,0x410))/0x6*(-parseInt(f(0x416,0x41b))/0x7)+-parseInt(f(0x417,0x41c))/0x8+parseInt(f(0x423,0x41d))/0x9*(-parseInt(f(0x411,0x40d))/0xa)+-parseInt(f(0x412,0x41a))/0xb*(-parseInt(f(0x41c,0x416))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x8b457));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xb0;let f=c[d];return f;};return _enb(a,b);}import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{EndDateVar,Instruction,SEDDispatcher,SEDDispatcherIdentifier,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';const EffortVar=Symbol('EffortVar');const UnitsVar=Symbol(_eng(-0x75,-0x7b));function _ena(){const j=['get','KeepDuration','54nMPSUd','isDurationDefinedByEffort','605fhUviH','addInstruction','UnitsVar','31534dYvTds','83244ozhSNc','resolution','93UMUxJj','1017210Pzpzcq','4631BcqIuX','79646toXngJ','4126112LdXmoc','18PAdZWd','2380tagyxy','new','5657140rdTDiZ'];_ena=function(){return j;};return _ena();}const effortFormula=Formula[_eng(-0x6a,-0x63)]({'output':EffortVar,'inputs':new Set([StartDateVar,EndDateVar,UnitsVar])});const unitsFormula=Formula['new']({'output':UnitsVar,'inputs':new Set([StartDateVar,EndDateVar,EffortVar])});const endDateByEffortFormula=Formula[_eng(-0x6a,-0x69)]({'output':EndDateVar,'inputs':new Set([StartDateVar,EffortVar,UnitsVar])});const startDateByEffortFormula=Formula[_eng(-0x6a,-0x6b)]({'output':StartDateVar,'inputs':new Set([EndDateVar,EffortVar,UnitsVar])});class SEDWUDispatcher extends SEDDispatcher{*['addInstruction'](a,b){function h(a,b){return _eng(a-0x3fe,b);}if(a===Instruction[h(0x384,0x37e)]){if(b[h(0x386,0x38a)]&&(yield*b[h(0x386,0x385)]())){return;}}yield*super[h(0x388,0x386)](a,b);}}class SEDWUDispatcherIdentifier extends SEDDispatcherIdentifier{['equality'](a,b){function i(a,b){return _eng(b- -0x11f,a);}const c=a[i(-0x198,-0x191)];const d=b[i(-0x18d,-0x191)];return(a!==TombStone||b===TombStone)&&(a===TombStone||b!==TombStone)&&c[i(-0x1a4,-0x19a)](EffortVar)===d['get'](EffortVar)&&c['get'](UnitsVar)===d[i(-0x196,-0x19a)](UnitsVar)&&super['equality'](a,b);}}export{EffortVar,SEDWUDispatcher,SEDWUDispatcherIdentifier,UnitsVar,effortFormula,endDateByEffortFormula,startDateByEffortFormula,unitsFormula};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function F(a,b){return _enb(a-0x1cc,b);}while(!![]){try{const d=parseInt(F(0x36f,0x37e))/0x1+-parseInt(F(0x358,0x340))/0x2*(parseInt(F(0x35e,0x371))/0x3)+parseInt(F(0x33a,0x34d))/0x4+parseInt(F(0x357,0x34b))/0x5*(parseInt(F(0x36e,0x36b))/0x6)+parseInt(F(0x347,0x336))/0x7*(-parseInt(F(0x369,0x372))/0x8)+parseInt(F(0x34c,0x365))/0x9+-parseInt(F(0x362,0x34b))/0xa*(parseInt(F(0x33c,0x32c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc2aff));var __decorate=function(a,b,e,f){function G(a,b){return _enb(b- -0x3d,a);}var g=arguments[G(0x137,0x147)],h=g<0x3?b:f===null?f=Object[G(0x153,0x146)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[G(0x13a,0x157)]==='function')h=Reflect[G(0x16c,0x157)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x167;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';function _ena(){const V=['run','shouldRollupChildEffort','writeEffort','calculateProjectedXDateByEffort','prototype','getTime','getDurationConverter','units','180845DMfqtT','calculateProjectedEffort','Hour','useEventAvailabilityIterator','getEffort','12134619DEpTkn','calculateAssignmentUnitsPure','calculateAssignmentUnitsProposed','getOwnPropertyDescriptor','length','getCalendarsWorking','size','constructor','startDate','convertDurationGen','getBaseOptionsForEffortCalculations','1355uiLyZV','634EAEABH','calculateEffortProposed','effort','endDate','write','$convertDuration','1140QtxkOT','hasIdentifier','decorate','get','10BeFlVH','ignoreResourceCalendar','calculateTotalChildrenEffort','has','calculateEffort','assignmentsByCalendar','effectiveCalendar','232NuqoZN','finalDate','Millisecond','string','forEachAvailabilityInterval','10182gbeApM','227250JKURRq','assign','childEvents','normalizeUnit','baseRevision','getBaseOptionsForDurationCalculations','calculateEffortPure','Use\x20`setEffort`\x20instead','1441256kOFkfG','set','8014908cErJZv','calculateUnitsByStartEndAndEffort','effortUnit'];_ena=function(){return V;};return _ena();}import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';class HasEffortMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasChildrenMixin],a=>{const b=a['prototype'];class c extends a{[H(0x140,0x136)](d){function I(a,b){return H(b- -0x2d6,a);}const e=this[I(-0x17c,-0x187)];return d?this[I(-0x1a4,-0x1a2)](I(-0x177,-0x18c),e,this[I(-0x18f,-0x1a3)],d):e;}[H(0x136,0x11a)](d,e,f,g,h){if(g<0x0)g=0x0;function J(a,b){return H(a-0x30d,b);}if(!e[J(0x438,0x43a)][J(0x461,0x47f)](d)&&g==null)return;if(h!=null&&h!==this[J(0x440,0x44e)]){e[J(0x45e,0x475)](this['$'][J(0x440,0x421)],h);}d[J(0x455,0x469)][J(0x445,0x434)][J(0x45e,0x478)](d,e,f,g);}['setEffortUnit'](d){function K(a,b){return H(a-0x172,b);}throw new Error(K(0x2a0,0x299));}*[H(0x135,0x136)](d){return!![];}*[H(0x159,0x142)](d=H(0x14f,0x167)){const e=yield this['$'][L(0x32e,0x31e)];let f=0x0;const g=this[L(0x33f,0x355)]();for(const h of e){if(!(yield*this[L(0x33a,0x33b)](h)))continue;const i=yield h['$'][L(0x338,0x345)];f+=yield*g[L(0x357,0x339)](yield h['$'][d],i,TimeUnit['Millisecond']);}function L(a,b){return H(a-0x205,b);}return yield*g[L(0x357,0x344)](f,TimeUnit[L(0x365,0x375)],yield this['$']['effortUnit']);}*['calculateEffort'](){function M(a,b){return H(b-0x37,a);}const d=yield this['$'][M(0x16f,0x160)];if(d[M(0x16b,0x17e)]>0x0)return yield*this[M(0x176,0x190)]();else{const e=yield ProposedOrPrevious;return e!==void 0x0?e:yield*this[M(0x159,0x164)]();}}*[H(0x12d,0x11f)](){function N(a,b){return H(a-0x1d1,b);}const d=yield this['$'][N(0x2fa,0x30f)];if(d[N(0x318,0x32d)]>0x0)return yield*this[N(0x32a,0x322)]();else{return yield*this[N(0x30e,0x2f6)](yield this['$'][N(0x31a,0x314)],yield this['$'][N(0x321,0x326)]);}}*[H(0x14e,0x15b)](){return yield ProposedOrPrevious;}*['calculateAssignmentUnits'](d){return yield*this['calculateAssignmentUnitsProposed'](d);}*[H(0x142,0x158)](d){function O(a,b){return H(a- -0x32e,b);}return yield*this[O(-0x1fc,-0x1df)](d);}*[H(0x143,0x14c)](d){return(yield ProposedOrPrevious)??0x64;}*[H(0x14b,0x141)](){return{'ignoreResourceCalendar':![]};}*[H(0x13d,0x12a)](d,e,f){if(d==null||e==null||d>e)return null;if(!f){f=yield this['$']['assignmentsByCalendar'];}const g=new Map();for(const [j,k]of f){let l=0x0;for(const m of k){l+=yield m['$'][P(0x289,0x28d)];}g[P(0x29c,0x282)](j,l);}let h=0x0;const i=Object[P(0x27c,0x27a)](yield*this[P(0x298,0x29d)](),{'startDate':d,'endDate':e});function P(a,b){return H(b-0x152,a);}if(g[P(0x2a7,0x299)]===0x0){g['set'](yield this['$'][P(0x295,0x2af)],0x64);i[P(0x28e,0x2aa)]=!![];}yield*this['forEachAvailabilityInterval'](i,(n,o,p)=>{const q=p[Q(0x250,0x240)]();function Q(a,b){return P(b,a- -0x48);}const r=n[Q(0x243,0x240)](),s=o['getTime'](),t=s-r;let u=0x0;for(const v of q){u+=g[Q(0x260,0x242)](v)||0x0;}h+=u*t*0.01;});return yield*this['convertDurationGen'](h,TimeUnit['Millisecond'],yield this['$']['effortUnit']);}*[H(0x132,0x115)](d){const e=yield this['$'][R(0x21a,0x215)],f=yield this['$'][R(0x1f2,0x1f9)],g=yield*this[R(0x1f4,0x210)](e,f,TimeUnit[R(0x212,0x226)]),h=yield this['$'][R(0x206,0x20f)],i=yield this['$'][R(0x1fa,0x216)];if(!h&&!i){return yield ProposedOrPrevious;}let j=0x0;const k=Object[R(0x1ec,0x1ee)](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':h,'endDate':i});function R(a,b){return H(b-0xc6,a);}const l=yield this['$'][R(0x20e,0x222)];yield*this['forEachAvailabilityInterval'](k,(m,n,o)=>{const p=o[S(0x22f,0x229)]();function S(a,b){return R(b,a-0x23);}const q=m[S(0x222,0x216)](),r=n[S(0x222,0x211)](),s=r-q;for(const t of p){j+=(l[S(0x243,0x247)](t)?l['get'](t)[S(0x22e,0x227)]:0x0)*s;}});return j?0x64*g/j:0x64;}*[H(0x137,0x11b)](d,e=!![],f,g,h,i){f=f!==void 0x0?f:yield this['$'][T(-0x121,-0x12e)];g=g!==void 0x0?g:yield this['$'][T(-0x13d,-0x153)];const j=yield*this[T(-0x126,-0x129)](f,g,TimeUnit[T(-0x110,-0xf5)]);if(d==null||f==null)return null;let k=d[T(-0x137,-0x14b)]();let l=j;if(l===0x0)return new Date(k);const m=yield this['$'][T(-0x113,-0x10d)];const n=yield this['$']['assignmentsByCalendar'];const o=new Map();let p=![];for(const [q,r]of n){let s=0x0;for(const t of r){s+=yield t['$']['units'];}o[T(-0x140,-0x12f)](q,s);if(s>0x0)p=!![];}function T(a,b){return H(a- -0x270,b);}if(p&&(yield*this[T(-0x131,-0x11e)]())){const u=Object[T(-0x148,-0x12e)](yield*this[T(-0x144,-0x13f)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e});yield*this[T(-0x10e,-0x10b)](u,(v,w,x)=>{const y=x['getCalendarsWorking']();const z=v[U(-0x199,-0x183)](),A=w['getTime'](),B=A-z;let C=0x0;for(const E of y){C+=o['get'](E)||0x0;}function U(a,b){return T(a- -0x62,b);}const D=C*B*0.01;if(D>=l){k=e?z+l/(0.01*C):A-l/(0.01*C);return![];}else{l-=D;}});return new Date(k);}else{return m['accumulateWorkingTime'](d,j,e)[T(-0x111,-0x125)];}}}function H(a,b){return _enb(a- -0x3f,b);}__decorate([model_field({'type':'number'})],c[H(0x138,0x144)],H(0x14f,0x16d),void 0x0);__decorate([model_field({'type':H(0x161,0x179),'defaultValue':TimeUnit[H(0x13e,0x151)]},{'converter':d=>_enc[H(0x12a,0x119)](d)||TimeUnit[H(0x13e,0x129)]})],c[H(0x138,0x136)],H(0x133,0x130),void 0x0);__decorate([write('effort')],c[H(0x138,0x143)],H(0x136,0x13a),null);__decorate([calculate(H(0x14f,0x157))],c[H(0x138,0x133)],H(0x15b,0x173),null);return c;}){}export{HasEffortMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(a-0x27a,b);}const c=a();while(!![]){try{const d=-parseInt(l(0x3ad,0x3a3))/0x1*(-parseInt(l(0x3ae,0x3a9))/0x2)+parseInt(l(0x3af,0x3c3))/0x3+parseInt(l(0x3a0,0x3b5))/0x4*(parseInt(l(0x3b1,0x39c))/0x5)+parseInt(l(0x39c,0x3a9))/0x6*(-parseInt(l(0x3ac,0x3a1))/0x7)+parseInt(l(0x394,0x387))/0x8*(parseInt(l(0x39f,0x397))/0x9)+parseInt(l(0x398,0x386))/0xa*(parseInt(l(0x3a9,0x3b0))/0xb)+-parseInt(l(0x399,0x38a))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x84339));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x4d6,0x4dd)](b,e):f,j;function m(a,b){return _enb(b-0x3a5,a);}if(typeof Reflect===m(0x4d7,0x4d6)&&typeof Reflect['decorate']===m(0x4be,0x4ba))h=Reflect[m(0x4ab,0x4bb)](a,b,e,f);else for(var k=a[m(0x4d1,0x4cd)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x4e9,0x4df)](b,e,h),h;};import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{StartedTaskScheduling,TimeUnit}from'../../../scheduling/Types.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';class HasPercentDoneMixin extends Mixin([HasChildrenMixin],a=>{const b=a[n(-0x16c,-0x17f)];class c extends a{*[n(-0x157,-0x147)](){const d=yield this['$'][o(0x279,0x284)];const e=yield this['$'][o(0x261,0x273)];function o(a,b){return n(a-0x3d9,b);}const f=yield this['$']['percentDone'];if(d&&e&&f){return yield*this[o(0x276,0x27f)](d,!![],e*0.01*f);}return d;}*[n(-0x174,-0x172)](){function p(a,b){return n(b-0x593,a);}const d=this[p(0x401,0x415)]();let e=yield this['$'][p(0x410,0x41c)];const f=yield this['$'][p(0x431,0x431)];if(!e&&!f[p(0x439,0x42a)]){const g=yield d['$']['startedTaskScheduling'];if(g===StartedTaskScheduling[p(0x415,0x423)]){e=(yield this['$']['percentDone'])>0x0;}}return e;}*['calculatePercentDone'](){const d=yield this['$'][q(-0x172,-0x178)];const e=this[q(-0x1a0,-0x194)]();const f=yield e['$'][q(-0x17d,-0x18f)];function q(a,b){return n(b- -0x16,a);}if(d[q(-0x192,-0x17f)]&&f){const g=yield this['$'][q(-0x17a,-0x185)];if(g[q(-0x169,-0x17b)]>0x0){const h=g[q(-0x176,-0x183)]/g['milestonesNum'];const i=g[q(-0x189,-0x193)]/g[q(-0x167,-0x17b)];return i<0x64?i:g[q(-0x162,-0x16b)]>0x0&&h<0x64?0x63:i;}else if(g[q(-0x17e,-0x16b)]>0x0){return g['milestonesTotalPercentDone']/g[q(-0x178,-0x16b)];}else{return null;}}return yield ProposedOrPrevious;}*[n(-0x173,-0x182)](d){return!![];}*[n(-0x175,-0x17d)](){const d=yield this['$'][r(0xb3,0xc0)];function r(a,b){return n(b-0x222,a);}if(d[r(0xa9,0xb9)]){let e={'totalDuration':0x0,'completedDuration':0x0,'milestonesNum':0x0,'milestonesTotalPercentDone':0x0};for(const f of d){if(!(yield*this['shouldRollupChildPercentDoneSummaryData'](f)))continue;const g=yield f['$'][r(0xaf,0xb3)];if(g){e[r(0xc0,0xbd)]+=g['totalDuration'];e[r(0xa0,0xa5)]+=g[r(0x9e,0xa5)];e[r(0xdc,0xcd)]+=g[r(0xc4,0xcd)];e[r(0xc9,0xb5)]+=g['milestonesTotalPercentDone'];}}return e;}else{const h=yield this['$'][r(0xb7,0xaa)];if(typeof h=='number'){const i=yield*this[r(0xba,0xc8)]()[r(0xb5,0xbc)](h,yield this['$']['durationUnit'],TimeUnit[r(0xb3,0xa6)]);const j=yield this['$']['percentDone'];return{'totalDuration':i,'completedDuration':i*j,'milestonesNum':i===0x0?0x1:0x0,'milestonesTotalPercentDone':i===0x0?j:0x0};}else{return null;}}}}__decorate([model_field({'type':'number','defaultValue':0x0})],c[n(-0x16c,-0x17b)],n(-0x164,-0x165),void 0x0);__decorate([field()],c[n(-0x16c,-0x15f)],n(-0x16f,-0x15b),void 0x0);__decorate([field({'lazy':!![]})],c[n(-0x16c,-0x180)],n(-0x167,-0x164),void 0x0);__decorate([calculate(n(-0x167,-0x163))],c[n(-0x16c,-0x17c)],'calculateActualDate',null);__decorate([calculate('percentDone')],c['prototype'],'calculatePercentDone',null);__decorate([calculate(n(-0x16f,-0x183))],c[n(-0x16c,-0x15d)],n(-0x175,-0x17a),null);function n(a,b){return _enb(a- -0x290,b);}return c;}){}function _ena(){const s=['length','actualDate','$convertDuration','totalDuration','percentDone','calculateProjectedXDateWithDuration','childEvents','143jwHkOf','startDate','object','13538epptJg','103eyufow','11174qbXqOs','1035258kunROX','getDurationConverter','25iQWygj','getOwnPropertyDescriptor','calculateActualDate','defineProperty','milestonesNum','getProject','completedDuration','Millisecond','function','decorate','autoCalculatePercentDoneForParentTasks','duration','manuallyScheduled','24SuMxkq','calculatePercentDoneSummaryData','isManuallyScheduled','shouldRollupChildPercentDoneSummaryData','29940WeKehZ','5070816MHbvpQ','Manual','percentDoneSummaryData','1362uPDBdw','milestonesTotalPercentDone','prototype','814527QWseDl','137684PfQxOG','size'];_ena=function(){return s;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x112;let f=c[d];return f;};return _enb(a,b);}export{HasPercentDoneMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function n(a,b){return _enb(a-0x2fa,b);}const c=a();while(!![]){try{const d=-parseInt(n(0x4a0,0x4a8))/0x1*(parseInt(n(0x4b4,0x4c0))/0x2)+parseInt(n(0x4b7,0x4a1))/0x3*(-parseInt(n(0x4bc,0x4a3))/0x4)+-parseInt(n(0x499,0x495))/0x5+-parseInt(n(0x4ad,0x4ac))/0x6*(parseInt(n(0x4b6,0x4c0))/0x7)+parseInt(n(0x4b9,0x4ac))/0x8*(-parseInt(n(0x4b2,0x498))/0x9)+parseInt(n(0x4bd,0x4ba))/0xa+parseInt(n(0x49b,0x48e))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd32b1));var __decorate=function(a,b,e,f){var g=arguments[o(0x2ca,0x2d5)],h=g<0x3?b:f===null?f=Object[o(0x2bc,0x2d0)](b,e):f,j;function o(a,b){return _enb(a-0x10a,b);}if(typeof Reflect==='object'&&typeof Reflect[o(0x2b7,0x2a9)]===o(0x2cb,0x2bc))h=Reflect[o(0x2b7,0x2b7)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[o(0x2d6,0x2c7)](b,e,h),h;};function _ena(){const B=['Unknown\x20formula\x20for\x20`effort`','calculateSchedulingMode','calculateProjectedDuration','size','Unknown\x20formula\x20for\x20`units`','startDate','effectiveSchedulingMode','defineProperty','prototype','schedulingMode','assignmentsByCalendar','calculateEffectiveDuration','calculateEffort','dispatcher','3395395sMGhTy','calculateSchedulingModeForUnitsCalculation','53640004dGaagc','effort','calculateProjectedXDateByEffort','Normal','prepareDispatcher','3RedEPw','calculateStartDate','hasProposedValueForUnits','boolean','collectInfo','effortDriven','calculateAssignmentUnitsProposed','decorate','effectiveSchedulingModeSync','call','hasPreviousValueForUnits','formulaId','getOwnPropertyDescriptor','3090PAVWBW','endDate','calculateAssignmentUnits','get','addProposedValueFlag','2313hTZTgo','string','1132634asFiSr','resolution','9597YGiuoB','15iJxFwg','calculateEndDate','27176gEZbIk','length','function','1227572bsatJR','14801700rZLIcX','dispatcherClass'];_ena=function(){return B;};return _ena();}import{ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{SchedulingMode}from'../../../scheduling/Types.js';import{durationFormula,DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{effortFormula,EffortVar,endDateByEffortFormula,SEDWUDispatcher,SEDWUDispatcherIdentifier,startDateByEffortFormula,unitsFormula,UnitsVar}from'./HasEffortDispatcher.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x19f;let f=c[d];return f;};return _enb(a,b);}import{HasEffortMixin}from'./HasEffortMixin.js';class HasSchedulingModeMixin extends Mixin([HasEffortMixin],a=>{const b=a['prototype'];class c extends a{*['calculateSchedulingMode'](){function p(a,b){return _enb(a-0x35d,b);}return(yield ProposedOrPrevious)||SchedulingMode[p(0x501,0x504)];}*[q(0x576,0x56d)](){function r(a,b){return q(b-0xd,a);}const d=yield this['$'][r(0x59c,0x587)];return d[r(0x586,0x580)]>0x0?yield this['$'][r(0x572,0x586)]:SchedulingMode[r(0x576,0x55c)];}[q(0x559,0x54d)](d){function s(a,b){return q(b- -0x26c,a);}const e=d(this['$'][s(0x315,0x30e)]);return e[s(0x2ef,0x307)]>0x0?d(this['$'][s(0x302,0x30d)]):SchedulingMode['Normal'];}*[q(0x550,0x55a)](d){function t(a,b){return q(a- -0x482,b);}const e=yield*this[t(0xf4,0x109)]();if(e!==SchedulingMode['Normal']){const f=yield*b[t(0xce,0xc8)][t(0xd8,0xc6)](this,d);f[t(0xd3,0xc6)](d,this['$'][t(0xcb,0xb6)],EffortVar);if(yield*this[t(0xd1,0xd0)]()){f[t(0xe0,0xc7)](UnitsVar);}if(yield*this[t(0xd9,0xed)]()){f['addPreviousValueFlag'](UnitsVar);}return f;}else{return yield*b['prepareDispatcher'][t(0xd8,0xf0)](this,d);}}[q(0x56f,0x587)](d){const e=this['effectiveSchedulingModeSync'](d);function u(a,b){return q(a- -0x77,b);}if(e!==SchedulingMode[u(0x4d8,0x4d5)]){return SEDWUDispatcher;}else{return b[u(0x4f8,0x50a)][u(0x4e3,0x4c9)](this,d);}}*[q(0x54b,0x560)](d){function v(a,b){return q(b- -0x13a,a);}return yield*this[v(0x44b,0x43c)]();}*[q(0x560,0x558)](d){function w(a,b){return q(b- -0x116,a);}const e=yield*this['calculateSchedulingModeForUnitsCalculation'](d);if(e!==SchedulingMode[w(0x432,0x439)]){const f=yield this['$'][w(0x450,0x467)];const g=f[w(0x45b,0x450)]['get'](UnitsVar);if(g===CalculateProposed){return yield*this[w(0x43e,0x441)](d);}else if(g===unitsFormula[w(0x43e,0x446)]){return yield*this['calculateAssignmentUnitsPure'](d);}else{throw new Error(w(0x473,0x45e));}}else{return yield*b[w(0x44b,0x44a)][w(0x44e,0x444)](this,d);}}*[q(0x57c,0x58c)](){const d=yield*this[x(0x9b,0x90)]();function x(a,b){return q(a- -0x4db,b);}if(d!==SchedulingMode[x(0x74,0x88)]){const e=yield this['$'][x(0xa2,0xb5)];const f=e[x(0x8b,0x8b)][x(0x86,0x97)](EffortVar);if(f===CalculateProposed){return yield*this['calculateEffortProposed']();}else if(f===effortFormula[x(0x81,0x6f)]){return yield*this['calculateEffortPure']();}else{throw new Error(x(0x95,0xa7));}}else{return yield*b[x(0xa1,0xb0)][x(0x7f,0x98)](this);}}*['calculateStartDate'](){function y(a,b){return q(b- -0x38b,a);}const d=yield*this[y(0x1f1,0x1eb)]();if(d!==SchedulingMode[y(0x1b0,0x1c4)]){const e=yield this['$'][y(0x201,0x1f2)];const f=e[y(0x1e1,0x1db)][y(0x1dc,0x1d6)](StartDateVar);if(f===startDateByEffortFormula[y(0x1d7,0x1d1)]){return yield*this['calculateProjectedXDateByEffort'](yield this['$'][y(0x1db,0x1d4)],![]);}else{return yield*b[y(0x1ca,0x1c7)][y(0x1c1,0x1cf)](this);}}else{return yield*b[y(0x1d2,0x1c7)][y(0x1db,0x1cf)](this);}}*[q(0x569,0x558)](){const d=yield*this['effectiveSchedulingMode']();function z(a,b){return q(a- -0x766,b);}if(d!==SchedulingMode['Normal']){const e=yield this['$'][z(-0x1e9,-0x1e2)];const f=e[z(-0x200,-0x212)][z(-0x205,-0x1fa)](EndDateVar);if(f===endDateByEffortFormula[z(-0x20a,-0x1f4)]){return yield*this[z(-0x218,-0x20f)](yield this['$'][z(-0x1f1,-0x20b)],!![]);}else{return yield*b['calculateEndDate'][z(-0x20c,-0x220)](this);}}else{return yield*b['calculateEndDate'][z(-0x20c,-0x1f5)](this);}}*['calculateEffectiveDuration'](){const d=yield this['$'][A(0x48c,0x47a)];const e=yield*this['effectiveSchedulingMode']();const f=d[A(0x475,0x473)][A(0x470,0x45b)](DurationVar);const g=d['resolution']['get'](EffortVar);let h;if(f===durationFormula[A(0x46b,0x463)]&&e!=SchedulingMode['Normal']){const i=yield ProposedOrPreviousValueOf(this['$'][A(0x484,0x49e)]);const j=yield ProposedOrPreviousValueOf(this['$'][A(0x46e,0x482)]);const k=d[A(0x475,0x48f)]['get'](StartDateVar);const l=d[A(0x475,0x471)][A(0x470,0x476)](EndDateVar);const m=yield this['$']['effortDriven'];if(j&&k===startDateByEffortFormula[A(0x46b,0x479)]){h=yield*this[A(0x481,0x46d)](yield*this[A(0x45d,0x450)](j,![]),j);}else if(i&&l===endDateByEffortFormula['formulaId']){h=yield*this[A(0x481,0x478)](i,yield*this[A(0x45d,0x474)](i,!![]));}else if(i&&j||!i&&!j){h=yield*b[A(0x48a,0x492)][A(0x469,0x474)](this);}}else h=yield*b[A(0x48a,0x49e)][A(0x469,0x474)](this);function A(a,b){return q(a- -0xf1,b);}return h;}}function q(a,b){return _enb(a-0x3ab,b);}__decorate([model_field({'type':q(0x554,0x563),'defaultValue':![]})],c[q(0x578,0x562)],q(0x556,0x56c),void 0x0);__decorate([model_field({'type':q(0x564,0x55d),'defaultValue':SchedulingMode[q(0x54f,0x55c)]},{'sync':!![]})],c[q(0x578,0x574)],q(0x579,0x566),void 0x0);__decorate([field({'identifierCls':SEDWUDispatcherIdentifier})],c[q(0x578,0x576)],q(0x57d,0x594),void 0x0);__decorate([calculate(q(0x579,0x58f))],c[q(0x578,0x577)],q(0x571,0x56d),null);__decorate([calculate(q(0x54d,0x559))],c[q(0x578,0x56d)],q(0x57c,0x574),null);__decorate([calculate(q(0x575,0x56f))],c['prototype'],q(0x552,0x564),null);__decorate([calculate(q(0x55f,0x579))],c[q(0x578,0x584)],q(0x569,0x564),null);return c;}){}export{HasSchedulingModeMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x159;let f=c[d];return f;};return _enb(a,b);}function _ena(){const at=['phantomStartDate','costAccrual','convertCurrency','tick','push','segments','15681042AMUDMA','8mQmwAu','add','calculateMaterialAllocation','tempCalendars','combineCalendars','123365JdaUai','isTimePhased','forEach','durationMs','currency','startDate','clearTempCalendars','inEventTimeSpan','cost','rateCalendar','getGroups','buildRateTableCalendar','Start','shouldIncludeAssignmentInAllocation','2218428mLFIKS','getCalendarsWorkStatus','rateTable','getTime','effectiveCalendar','initMaterialTickData','890524ZXmgYO','isUserTimePhased','22OysRMw','getRates','durationUnit','get','2010bkPRYX','5lYFNCu','End','getProject','keys','assignments','set','standardRate','type','Millisecond','Prorated','intervalStore','assigned','resource','event','max','quantity','6927102OGpFOj','getIterator','2546RrtRiv','perUseCost','min','15820080RYrPHj','duration','endDate','includeCost','first'];_ena=function(){return at;};return _ena();}(function(a,b){const c=a();function an(a,b){return _enb(a-0x15f,b);}while(!![]){try{const d=-parseInt(an(0x2d4,0x2e4))/0x1+-parseInt(an(0x2c0,0x2a5))/0x2*(-parseInt(an(0x2ee,0x30b))/0x3)+parseInt(an(0x2e8,0x2e2))/0x4+parseInt(an(0x2ef,0x2d6))/0x5*(parseInt(an(0x2e2,0x2f3))/0x6)+parseInt(an(0x2be,0x2b1))/0x7*(parseInt(an(0x2cf,0x2eb))/0x8)+parseInt(an(0x2ce,0x2dd))/0x9+parseInt(an(0x2c3,0x2da))/0xa*(-parseInt(an(0x2ea,0x2fc))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd93de));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CostAccrual,ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{ResourceAllocationEventRangeCalendar,WorkResourceAllocationInfoMixin}from'./WorkResourceAllocationInfoMixin.js';class MaterialResourceAllocationInfoMixin extends Mixin([WorkResourceAllocationInfoMixin],a=>{function ap(a,b){return _enb(b- -0x133,a);}class b extends a{*['calculateAllocation'](){function ao(a,b){return _enb(b- -0x18c,a);}const c=yield this['$'][ao(-0x15,-0x31)],d=yield c['$'][ao(0xa,0xb)];if(d===ResourceType['Material']){return yield*this[ao(-0x23,-0x1a)]();}return yield*super['calculateAllocation']();}[ap(0x6c,0x55)](c,d,e,f,g,h){const i={'tick':c,'resource':d,'cost':0x0,'quantity':0x0};e['set'](c,i);f[aq(-0x18c,-0x1ab)](i);g[aq(-0x182,-0x18d)]((j,k)=>{const l={'tick':c,'assignment':k,'cost':0x0,'quantity':0x0};function ar(a,b){return aq(a-0x4bd,b);}j['set'](c,l);h[ar(0x352,0x356)](k)[ar(0x331,0x33e)](l);});function aq(a,b){return ap(b,a- -0x1c6);}return i;}*[ap(0x25,0x3f)](){const c=this,d=[],e=yield c['ticks'],f=yield c['$']['resource'],g=yield c['$'][as(0x340,0x32e)],h=f[as(0x36b,0x38c)](),i=yield f['$'][as(0x333,0x338)],j=new Map(),k=[],l=new Map(),m=new Map(),n=e[as(0x332,0x336)][as(0x341,0x333)][as(0x353,0x34e)],o=e['intervalStore']['last']['endDate'],p=o[as(0x35f,0x369)]()-n[as(0x35f,0x365)]();let q,r,s,t=![],u;if(g){q=yield f['$'][as(0x343,0x35b)];u=yield h['$'][as(0x352,0x35f)];t=Boolean(h[as(0x344,0x356)]);s=new Map();}const v=new Map();const w=new Map();for(const B of i){if(!(yield*c[as(0x35b,0x37a)](B)))continue;const C=yield B['$'][as(0x335,0x314)];let D=yield C['$'][as(0x353,0x372)];let E=yield C['$'][as(0x33f,0x356)];const F=yield C['$'][as(0x347,0x335)];const G=yield C['$'][as(0x360,0x35b)];const H={'event':C,'eventCalendar':G,'startDate':D,'endDate':E,'quantity':yield B['$'][as(0x337,0x34a)],'durationMs':yield*h['$convertDuration'](yield C['$'][as(0x33e,0x33d)],yield C['$'][as(0x366,0x386)],TimeUnit[as(0x371,0x392)])};w[as(0x36e,0x35c)](B,H);if(F){for(const J of F){const K=yield J['$'][as(0x353,0x33b)];const L=yield J['$'][as(0x33f,0x35a)];k[as(0x346,0x363)]({'startDate':K,'endDate':L,'assignment':B});}}else{if(yield*B[as(0x34f,0x339)]()){if(yield*B[as(0x363,0x35c)]()){D=yield B['$'][as(0x353,0x35e)];E=yield B['$'][as(0x33f,0x347)];}else{D=yield B['$'][as(0x342,0x363)];E=yield B['$']['phantomEndDate'];}H[as(0x353,0x33a)]=D;H[as(0x33f,0x324)]=E;}if(D&&E){k[as(0x346,0x339)]({'startDate':D,'endDate':E,'assignment':B});}}if(q){switch(q){case CostAccrual['Prorated']:const M=yield B['$'][as(0x35e,0x34c)];if(M){let N=v['get'](M);if(!N&&(N=c[as(0x359,0x37a)](yield*f[as(0x365,0x35c)](M,n,o),n,o))){v['set'](M,N);}H[as(0x357,0x369)]=N;N?.[as(0x36d,0x36e)][as(0x346,0x35b)](B);}break;case CostAccrual['Start']:if(D>=n&&D<o){w[as(0x367,0x37e)](B)['cost']=yield B['$'][as(0x356,0x344)];}break;case CostAccrual['End']:if(E>n&&E<=o){w[as(0x367,0x371)](B)[as(0x356,0x344)]=yield B['$'][as(0x356,0x36e)];}break;}}let I=j[as(0x367,0x356)](G);if(!I){I=[];j[as(0x36e,0x356)](G,I);}l[as(0x36e,0x383)](B,new Map());m[as(0x36e,0x360)](B,[]);I['push'](B);}const x=new ResourceAllocationEventRangeCalendar({'intervals':k});c[as(0x34c,0x33b)][as(0x34a,0x34f)](x);const y=[e,...c[as(0x34c,0x338)],...j[as(0x36c,0x371)]()];const z=new Map();function as(a,b){return ap(b,a-0x30c);}const A=h[as(0x34d,0x335)](y)[as(0x339,0x340)]({'startDate':n,'endDate':o,'maxRange':p>h['maxCalendarRange']?p:void 0x0});for(const {startDate:O,endDate:P,calendarCacheInterval:Q}of A){const R=Q[as(0x358,0x369)](),S=R[as(0x367,0x364)](e)[0x0],T=z[as(0x367,0x34a)](S)||c[as(0x361,0x35b)](S,f,z,d,l,m),U=Q[as(0x35d,0x35d)]();if(U[as(0x367,0x35c)](e)){const V=T[as(0x36d,0x35b)]||new Set(),W=T['assignmentIntervals']||new Map();let X=![],Y=0x0,Z=0x0,a0;for(const a1 of R[as(0x367,0x37d)](x)){const a2=a1['assignment'];const a3=a2&&w['get'](a2);const a4=a3?.[as(0x335,0x33d)];let a5=!![];if(a4&&U['get'](a3['eventCalendar'])){const a6=a3[as(0x353,0x355)];const a7=a3[as(0x33f,0x346)];const a8=a3[as(0x337,0x355)];const a9=a3[as(0x351,0x35e)];const aa=Math[as(0x336,0x356)](O[as(0x35f,0x37d)](),a6['getTime']());const ab=Math[as(0x33c,0x354)](P['getTime'](),a7[as(0x35f,0x349)]());X=!![];a0=ab-aa;const ac=l[as(0x367,0x385)](a2)['get'](S);let ad=a8*a0/(a9||0x1);switch(q){case CostAccrual[as(0x372,0x375)]:let ae=0x0;a5=a5&&r!==S&&T[as(0x345,0x329)][as(0x353,0x343)]<=a6&&a6<T['tick'][as(0x33f,0x355)];const af=a3[as(0x357,0x345)];if(af&&U[as(0x367,0x383)](af)){const ag=R[as(0x367,0x350)](af);for(const {rate:ah}of ag){if(ah){const ai=ah[as(0x352,0x35e)];let aj=ah[as(0x33b,0x32a)]||0x0;let ak=ah[as(0x36f,0x361)]||0x0;if(ai&&u&&t){if(aj){aj=yield*h['convertCurrency'](aj,ai,u);}if(ak){ak=yield*h[as(0x344,0x355)](ak,ai,u);}}ae+=a8*ak*a0/(a9||0x1)+(a5&&aj);a5=![];}}}ac['cost']+=ae;Y+=ae;break;case CostAccrual[as(0x35a,0x35d)]:if(!s['get'](a2)&&r!==S&&T[as(0x345,0x343)][as(0x353,0x36e)]<=a6&&a6<T[as(0x345,0x32d)][as(0x33f,0x349)]){let al=a3[as(0x356,0x33a)];Y+=al;ac[as(0x356,0x357)]+=al;s[as(0x36e,0x350)](a2,!![]);}break;case CostAccrual[as(0x36a,0x385)]:if(!s[as(0x367,0x35c)](a2)&&r!==S&&(a6[as(0x35f,0x35e)]()-a7[as(0x35f,0x365)]()?T['tick'][as(0x353,0x341)]<a7&&a7<=T[as(0x345,0x33f)][as(0x33f,0x32b)]:T[as(0x345,0x339)][as(0x353,0x369)]<=a7&&a7<=T[as(0x345,0x362)][as(0x33f,0x33a)])){let am=a3[as(0x356,0x377)];Y+=am;ac[as(0x356,0x36e)]+=am;s[as(0x36e,0x368)](a2,!![]);}break;}ac[as(0x355,0x34c)]=!![];ac[as(0x337,0x326)]+=ad;Z+=ad;V[as(0x34a,0x334)](a2);W[as(0x36e,0x353)](a2,ac);}}if(X){T[as(0x355,0x371)]=!![];T[as(0x337,0x33e)]+=Z;T[as(0x356,0x363)]+=Y;T['assignments']=V;T['assignmentIntervals']=W;}}r=S;}c[as(0x354,0x346)]();return{'owner':c,'resource':f,'total':d,'byAssignments':m};}}return b;}){}export{MaterialResourceAllocationInfoMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function f(a,b){return _enb(b- -0x29a,a);}var c=a();while(!![]){try{var d=-parseInt(f(-0x1b8,-0x1bb))/0x1*(parseInt(f(-0x1c4,-0x1bf))/0x2)+-parseInt(f(-0x1b2,-0x1b3))/0x3*(-parseInt(f(-0x1bc,-0x1ba))/0x4)+-parseInt(f(-0x1b5,-0x1bc))/0x5*(parseInt(f(-0x1c1,-0x1bd))/0x6)+parseInt(f(-0x1bb,-0x1b6))/0x7*(parseInt(f(-0x1b5,-0x1b8))/0x8)+parseInt(f(-0x1b5,-0x1b5))/0x9+-parseInt(f(-0x1b3,-0x1b4))/0xa+parseInt(f(-0x1ba,-0x1be))/0xb*(-parseInt(f(-0x1b3,-0x1b7))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xeaa8d));import{CostResourceAllocationInfoMixin}from'./CostResourceAllocationInfoMixin.js';function _eng(a,b){return _enb(a-0x379,b);}import{MaterialResourceAllocationInfoMixin}from'./MaterialResourceAllocationInfoMixin.js';import{WorkResourceAllocationInfoMixin}from'./WorkResourceAllocationInfoMixin.js';function _ena(){var h=['189ZBDDVG','7751556AoDPUw','1417680yMrOql','5203977DZmDtR','2DyeEpQ','181885cZOiNV','11964ebMFBK','185osTxDk','1250938DMhVDg','4DLcFKt','mix','23624MGuvmA','180zvdnXX'];_ena=function(){return h;};return _ena();}function _enb(a,b){var c=_ena();_enb=function(d,e){d=d-0xdb;var f=c[d];return f;};return _enb(a,b);}class ResourceAllocationInfo extends CostResourceAllocationInfoMixin[_eng(0x45a,0x45c)](MaterialResourceAllocationInfoMixin[_eng(0x45a,0x45a)](WorkResourceAllocationInfoMixin)){}export{ResourceAllocationInfo};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function w(a,b){return _enb(a-0x2ff,b);}while(!![]){try{const d=parseInt(w(0x4d1,0x4ea))/0x1+-parseInt(w(0x4c8,0x4bd))/0x2*(parseInt(w(0x4ec,0x4ef))/0x3)+parseInt(w(0x4ed,0x4e5))/0x4+parseInt(w(0x4c4,0x4e2))/0x5*(parseInt(w(0x4f7,0x4e9))/0x6)+parseInt(w(0x4c9,0x4a5))/0x7+parseInt(w(0x4f9,0x4ee))/0x8+-parseInt(w(0x4e3,0x4f5))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x78632));var __decorate=function(a,b,e,f){var g=arguments[x(0x4a4,0x486)],h=g<0x3?b:f===null?f=Object[x(0x4bd,0x4ca)](b,e):f,j;function x(a,b){return _enb(b-0x2c0,a);}if(typeof Reflect===x(0x4cd,0x4c3)&&typeof Reflect[x(0x492,0x48c)]===x(0x49e,0x4be))h=Reflect[x(0x48b,0x48c)](a,b,e,f);else for(var k=a[x(0x4a7,0x486)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[x(0x4db,0x4bb)](b,e,h),h;};function _ena(){const K=['write','$convertDuration','baseRevision','calculateAssignmentActualEffort','getProject','943980NQwXbm','2280244IOhAmJ','effectiveCalendar','type','getRate','currency','calculateEffortTypeCost','ignoreResourceCalendar','endDate','calculateAssignmentUnits','rateTable','6rXFTew','resource','3384584stKJOB','defineProperty','prototype','isModel','function','manuallyScheduled','constructor','Material','startDate','object','calculateRateTable','SchedulerProAssignmentMixin','duration','getById','convertCurrency','quantity','getOwnPropertyDescriptor','rateTablesStore','event','Cost','set','calculateActualDate','3526175ckdkEx','length','perUseCost','number','6ljTKvt','3831317oozfVh','calculateCost','decorate','cost','calculateUnits','standardRate','units','Millisecond','81416QkIwqX','percentDone','actualDate','calculateMaterialTypeCost','getData','effort','actualEffort','hasIdentifier','defaultRateTable','call','doCalculateAssignmentProjectedEffort','writeResource','calculateAssignmentEffort','meta','skipNonWorkingTimeInDurationWhenSchedulingManually','durationUnit','Work','effortUnit','8010270EeyYVQ','project','getRates','getResourceById'];_ena=function(){return K;};return _ena();}import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1c2;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{isSerializableEqual,model_field}from'../../../chrono/ModelFieldAtom.js';import{BaseAssignmentMixin}from'../scheduler_basic/BaseAssignmentMixin.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ResourceType,TimeUnit}from'../../../scheduling/Types.js';class SchedulerProAssignmentMixin extends Mixin([BaseAssignmentMixin],a=>{class b extends a{*['calculateUnits'](){const c=yield this['$'][y(0x53e,0x562)];function y(a,b){return _enb(a-0x332,b);}if(c)return yield*c[y(0x528,0x54a)](this);return yield ProposedOrPrevious;}*['calculateAssignmentEffort'](c){return yield*this['doCalculateAssignmentProjectedEffort'](null,null);}*[z(0x470,0x493)](c=null,d=null){function A(a,b){return z(b,a- -0x19f);}const e=yield this['$'][A(0x324,0x31c)];if(e){if(!c){c=yield e['$'][A(0x31a,0x312)];}if(!d){d=yield e['$'][A(0x30d,0x30c)];}const f=yield this['$'][A(0x311,0x2ef)];if(f&&(yield f['$'][A(0x308,0x311)])===ResourceType[A(0x2fa,0x311)]){const g=yield e['$'][A(0x317,0x317)];if(c&&d){const h=(yield e['$'][A(0x30c,0x30e)])||(yield*e['hasElapsedDuration']())||g&&!e[A(0x304,0x307)]()[A(0x2f8,0x307)];const i=h?yield e['$']['effectiveCalendar']:yield f['$'][A(0x307,0x2e9)];const j=new Map();j[A(0x2db,0x2da)](i,[this]);return yield*e['calculateProjectedEffort'](c,d,j);}}}return null;}*['calculateActualDate'](){const c=yield this['$'][B(0x33a,0x354)];if(c){const d=yield c['$']['startDate'];const e=yield c['$']['duration'];const f=yield c['$'][B(0x2fe,0x31b)];return yield*c['calculateProjectedXDateWithDuration'](d,!![],e*0.01*f);}function B(a,b){return z(a,b- -0x16f);}return null;}*[z(0x4a6,0x4a2)](){function C(a,b){return z(a,b- -0x41);}const c=yield this['$']['actualDate'];return yield*this[C(0x465,0x452)](null,c);}*['isTimePhased'](){return![];}[z(0x48d,0x494)](c,d,e,f){const g=this[D(0x1da,0x1ea)](f);if(d[D(0x1ff,0x1ed)][D(0x1fc,0x1dc)](c)||this[D(0x1c4,0x1d9)](D(0x200,0x1fa))===void 0x0){d[D(0x1d5,0x1eb)](this['$']['rateTable'],g?.[D(0x1cf,0x1dd)]||null);}if(g){if(g[D(0x203,0x1f3)]!==ResourceType[D(0x1fd,0x204)]){d[D(0x1df,0x1eb)](this['$'][D(0x1ec,0x20c)],null);}else{const h=d[D(0x1f7,0x1ed)][D(0x200,0x1dc)](this['$'][D(0x203,0x20c)])?this[D(0x209,0x20c)]:this[D(0x1d0,0x1d9)]('quantity');if(typeof h!=='number'){d[D(0x1f4,0x1eb)](this['$'][D(0x21a,0x20c)],0x1);}}}function D(a,b){return z(a,b- -0x2b4);}c[D(0x218,0x203)][D(0x1ea,0x1ff)][D(0x1d9,0x1eb)][D(0x1eb,0x1de)](this,c,d,e,f);}*[z(0x4da,0x4bb)](){const c=yield ProposedOrPrevious;const d=yield this['$'][E(0x255,0x23d)];if(c&&d){const e=d[E(0x23b,0x21b)][E(0x267,0x277)];return e?.[E(0x263,0x285)]?.(c[E(0x259,0x249)]?c['id']:c);}function E(a,b){return z(b,a- -0x25b);}return c;}*[z(0x486,0x4aa)](c,d){const e=yield this['$'][F(0x3e0,0x3e4)];const f=this[F(0x3b9,0x3c2)];const g=yield*this[F(0x3ba,0x395)](c,d);function F(a,b){return z(b,a- -0xe3);}const h=yield f['$'][F(0x3c6,0x3e3)];let j=0x0;if(g?.[F(0x39a,0x382)]){const k=g[0x0][F(0x3c6,0x3d9)];let l=g[0x0][F(0x39b,0x384)]||0x0;if(k&&h&&f[F(0x3dc,0x3e7)]&&l){l=yield*f[F(0x3dc,0x3de)](l,k,h);}j=l;const m=yield e['$'][F(0x3b7,0x3b6)];let n=c,o;for(let p=0x0;p<g[F(0x39a,0x38d)];p++){const q=g[p];o=g[p+0x1]?.[F(0x3d6,0x3ec)]||d;const r=yield*this[F(0x3b0,0x3d1)](n,o);const s=yield*f[F(0x3bd,0x3cc)](r,m,q['standardRateEffortUnit']||m);let t=s*q[F(0x3a3,0x3a7)];if(h&&q[F(0x3c6,0x3d0)]&&f[F(0x3dc,0x3be)]&&t){t=yield*f['convertCurrency'](t,q[F(0x3c6,0x3c3)],h);}j+=t;n=o;}}return j;}*[z(0x466,0x48c)](c,d){const e=yield this['$'][G(0x473,0x462)];const f=this[G(0x44c,0x46c)];function G(a,b){return z(b,a- -0x50);}const g=yield f['$']['currency'];const h=yield*this['getRates'](c,d);let j=0x0;if(h?.[G(0x42d,0x42d)]){const k=h[0x0][G(0x459,0x43c)];let l=h[0x0][G(0x42e,0x40c)]||0x0;if(k&&g&&f[G(0x46f,0x45e)]&&l){l=yield*f[G(0x46f,0x466)](l,k,g);}j=l;const m=yield e['$'][G(0x46d,0x476)];const n=yield e['$'][G(0x448,0x46a)];const o=yield*f[G(0x450,0x46d)](m,n,TimeUnit[G(0x438,0x433)]);const p=yield this['$']['quantity'];let q=c,r;for(let s=0x0;s<h[G(0x42d,0x40b)];s++){const t=h[s];r=h[s+0x1]?.[G(0x469,0x48a)]||d;const u=yield*e['calculateProjectedDuration'](q,r,TimeUnit[G(0x438,0x44c)]);let v=p*t[G(0x436,0x42a)]*u/(o||0x1);if(g&&t['currency']&&f[G(0x46f,0x468)]&&v){v=yield*f[G(0x46f,0x459)](v,t[G(0x459,0x434)],g);}j+=v;q=r;}}return j;}*[z(0x462,0x482)](){const c=yield this['$']['resource'];const d=yield this['$'][H(0x14e,0x159)];function H(a,b){return z(a,b- -0x36a);}let e=0x0;if(c&&d){const f=yield c['$'][H(0x155,0x13d)];const g=yield d['$'][H(0x172,0x14f)];const h=yield d['$'][H(0x129,0x142)];switch(f){case ResourceType[H(0x120,0x12f)]:e+=yield*this[H(0x15b,0x140)](g,h);break;case ResourceType[H(0x14b,0x14e)]:e+=yield*this['calculateMaterialTypeCost'](g,h);break;case ResourceType[H(0x121,0x10f)]:let i=(yield ProposedOrPrevious)||0x0;e+=i;break;}}return e;}*[z(0x48c,0x4a8)](c){const d=yield this['$'][I(-0x131,-0x138)];const e=yield this['$'][I(-0x12b,-0x13a)];function I(a,b){return z(a,b- -0x5e8);}return yield*d?.[I(-0x146,-0x140)](e,c);}*[z(0x481,0x49d)](c,d){const e=yield this['$'][J(0x54f,0x572)];function J(a,b){return z(b,a-0x9f);}const f=yield this['$'][J(0x54d,0x52f)];return yield*e?.[J(0x53c,0x543)](f,c,d);}}b['$name']=z(0x4d5,0x4bc);__decorate([model_field({'type':z(0x49d,0x47f),'defaultValue':0x64})],b[z(0x48e,0x4b3)],z(0x461,0x487),void 0x0);__decorate([model_field({'type':z(0x48a,0x47f)})],b[z(0x4d6,0x4b3)],z(0x49e,0x4c0),void 0x0);__decorate([field()],b[z(0x4a1,0x4b3)],z(0x468,0x48e),void 0x0);__decorate([field({'lazy':!![]})],b[z(0x494,0x4b3)],'actualDate',void 0x0);__decorate([field({'lazy':!![]})],b[z(0x4bb,0x4b3)],z(0x4b1,0x48f),void 0x0);__decorate([model_field({'serialize':c=>c===void 0x0?void 0x0:c?.['id']||null,'isEqual':isSerializableEqual})],b[z(0x498,0x4b3)],z(0x4b0,0x4ae),void 0x0);function z(a,b){return _enb(b-0x2b7,a);}__decorate([model_field({'type':z(0x466,0x47f),'defaultValue':0x0})],b[z(0x4aa,0x4b3)],'cost',void 0x0);__decorate([calculate(z(0x494,0x487))],b[z(0x4b9,0x4b3)],z(0x4a0,0x485),null);__decorate([calculate(z(0x482,0x48e))],b['prototype'],z(0x4a0,0x495),null);__decorate([calculate(z(0x483,0x48b))],b[z(0x4ca,0x4b3)],z(0x45b,0x47b),null);__decorate([calculate(z(0x492,0x48f))],b['prototype'],z(0x4b6,0x4a2),null);__decorate([write(z(0x4c3,0x4b0))],b[z(0x492,0x4b3)],z(0x481,0x494),null);__decorate([calculate(z(0x4b6,0x4ae))],b[z(0x4d6,0x4b3)],'calculateRateTable',null);__decorate([calculate(z(0x47c,0x484))],b['prototype'],'calculateCost',null);return b;}){}export{SchedulerProAssignmentMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(a-0x357,b);}const c=a();while(!![]){try{const d=parseInt(l(0x47c,0x468))/0x1*(-parseInt(l(0x472,0x476))/0x2)+-parseInt(l(0x461,0x456))/0x3*(-parseInt(l(0x45a,0x449))/0x4)+-parseInt(l(0x463,0x463))/0x5+-parseInt(l(0x453,0x445))/0x6+-parseInt(l(0x46f,0x475))/0x7+-parseInt(l(0x46c,0x47b))/0x8*(-parseInt(l(0x459,0x469))/0x9)+parseInt(l(0x465,0x450))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc32b3));var __decorate=function(a,b,e,f){function m(a,b){return _enb(a-0x32b,b);}var g=arguments[m(0x442,0x43d)],h=g<0x3?b:f===null?f=Object[m(0x451,0x43b)](b,e):f,j;if(typeof Reflect===m(0x431,0x420)&&typeof Reflect[m(0x447,0x43e)]===m(0x438,0x44e))h=Reflect[m(0x447,0x454)](a,b,e,f);else for(var k=a[m(0x442,0x43a)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x43c,0x453)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';function _ena(){const s=['lagUnit','number','18AwJABV','20KBQxbr','dependenciesCalendar','string','object','write','DATA','writeLag','598245sBigbN','getDurationConverter','5553420ejUrTp','function','41104780uMYwGP','convertLagGen','prototype','defineProperty','commitAsync','calculateCalendar','Day','7848xekOyD','call','length','7678524HrniYj','calendar','graph','10cxZPFJ','decorate','lag','fromEvent','getProject','toEvent','boolean','normalizeUnit','effectiveCalendar','active','209071KZMWcJ','getOwnPropertyDescriptor','defaultCalendar','constructor','6342798FQOCnj','Project','setLag','FromEvent'];_ena=function(){return s;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xfb;let f=c[d];return f;};return _enb(a,b);}import{isAtomicValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{DependenciesCalendar,TimeUnit}from'../../../scheduling/Types.js';import{BaseDependencyMixin}from'../scheduler_basic/BaseDependencyMixin.js';class SchedulerProDependencyMixin extends Mixin([BaseDependencyMixin],a=>{const b=a[n(-0x25,-0x33)];class c extends a{*[n(-0x26,-0x34)](d,e,f){function o(a,b){return n(b,a-0x48);}return yield*this[o(0x10,0xa)]()['$convertDuration'](d,e,f);}[n(-0x23,-0x38)](){return this['getProject']();}*[n(-0x33,-0x30)](){const d=this[p(-0xa7,-0xa0)]();const e=yield d['$'][p(-0xc2,-0xae)];let f;switch(e){case DependenciesCalendar[p(-0xc9,-0xce)]:f=yield d['$'][p(-0xa3,-0xb5)];break;case DependenciesCalendar['AllWorking']:f=yield d['$'][p(-0x9f,-0x9d)];break;case DependenciesCalendar[p(-0xc7,-0xc1)]:const g=yield this['$'][p(-0xa8,-0x9d)];f=g&&!isAtomicValue(g)?yield g['$'][p(-0xa3,-0x94)]:null;break;case DependenciesCalendar['ToEvent']:const h=yield this['$'][p(-0xa6,-0x9d)];f=h&&!isAtomicValue(h)?yield h['$'][p(-0xa3,-0x99)]:null;break;}function p(a,b){return n(b,a- -0x83);}if(!f)f=yield d['$'][p(-0xa3,-0xb6)];return f;}async[n(-0x48,-0x45)](d,e){function q(a,b){return n(b,a- -0xac);}if(this[q(-0xd5,-0xda)]){this['graph'][q(-0xe8,-0xe6)](this['$'][q(-0xd2,-0xbd)],d,e);return this[q(-0xd5,-0xe8)][q(-0xdd,-0xf4)]();}else{this['$']['lag'][q(-0xe7,-0xe5)]=d;if(e!=null)this['$'][q(-0xef,-0xf9)]['DATA']=e;}}['writeLag'](d,e,f,g,h=void 0x0){d[r(0x1bd,0x1c4)][r(0x1d2,0x1c1)][r(0x1c9,0x1d5)][r(0x1d8,0x1d6)](this,d,e,f,g);function r(a,b){return n(b,a-0x205);}if(h!=null)e[r(0x1c9,0x1df)](this['$'][r(0x1c2,0x1c8)],h);}}function n(a,b){return _enb(b- -0x143,a);}__decorate([model_field({'type':n(-0x31,-0x42),'defaultValue':0x0})],c[n(-0x40,-0x33)],n(-0x18,-0x26),void 0x0);__decorate([model_field({'type':n(-0x53,-0x3e),'defaultValue':TimeUnit[n(-0x1a,-0x2f)]},{'converter':_enc[n(-0x2d,-0x21)]})],c['prototype'],n(-0x50,-0x43),void 0x0);__decorate([field()],c['prototype'],'calendar',void 0x0);__decorate([model_field({'type':n(-0x16,-0x22),'defaultValue':!![],'persist':!![]})],c[n(-0x2c,-0x33)],n(-0x2f,-0x1f),void 0x0);__decorate([calculate(n(-0x38,-0x2a))],c['prototype'],n(-0x26,-0x30),null);__decorate([write(n(-0x31,-0x26))],c[n(-0x32,-0x33)],n(-0x2b,-0x3a),null);return c;}){}export{SchedulerProDependencyMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(a- -0x2a3,b);}const c=a();while(!![]){try{const d=parseInt(l(-0xb1,-0xaf))/0x1+parseInt(l(-0xbb,-0xc3))/0x2+-parseInt(l(-0xb4,-0xba))/0x3+-parseInt(l(-0xaa,-0xad))/0x4+parseInt(l(-0xae,-0xb3))/0x5+-parseInt(l(-0xac,-0xad))/0x6+-parseInt(l(-0xba,-0xb9))/0x7*(-parseInt(l(-0xb5,-0xb3))/0x8);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xab9ac));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function m(a,b){return _enb(b- -0x46,a);}if(typeof Reflect===m(0x1aa,0x1ae)&&typeof Reflect[m(0x1b9,0x1b2)]==='function')h=Reflect[m(0x1b0,0x1b2)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x1ba,0x1b4)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{SchedulerBasicEvent}from'../scheduler_basic/SchedulerBasicEvent.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasDateConstraintMixin}from'./HasDateConstraintMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';import{ConstrainedByDependenciesEventMixin}from'./ConstrainedByDependenciesEventMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SchedulerProHasTimePhasedAssignmentsMixin}from'./SchedulerProHasTimePhasedAssignmentsMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e8;let f=c[d];return f;};return _enb(a,b);}import{SplitEventMixin}from'./SplitEventMixin.js';function _ena(){const q=['childEvents','5484096AMYxIG','decorate','4857320RCXoqy','defineProperty','2520246fxGuIi','553KHtWqm','actualEffort','cost','prototype','calculateCost','78616DvIyAU','1157937siXGOU','size','calculateTotalChildrenEffort','990582AeYlFp','calculateActualEffort','object','950895rIcaEZ'];_ena=function(){return q;};return _ena();}import{HasEffortMixin}from'./HasEffortMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';import{DelayFromParentMixin}from'./DelayFromParentMixin.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{HasCostSubEventsMixin}from'./HasCostSubEventsMixin.js';class SchedulerProBaseEvent extends Mixin([SchedulerBasicEvent,HasDateConstraintMixin,HasPercentDoneMixin,SchedulerProHasAssignmentsMixin,HasEffortMixin,HasSchedulingModeMixin,FixedDurationMixin,ConstrainedEarlyEventMixin,ConstrainedByDependenciesEventMixin,SplitEventMixin],a=>{class b extends a{}return b;}){}class SchedulerProEvent extends Mixin([SchedulerProBaseEvent,DelayFromParentMixin,HasCostSubEventsMixin],a=>{function n(a,b){return _enb(a- -0x2c3,b);}class b extends a{*[n(-0xd0,-0xd9)](){const c=yield this['$'][o(-0x92,-0x95)];let d;if(c['size']>0x0){d=yield*this[o(-0x97,-0x96)]('actualEffort');}else{const e=yield this['$']['assigned'];if(e[o(-0x98,-0x92)]){d=0x0;for(const f of e){d+=yield f['$']['actualEffort'];}}else{const g=yield this['$']['effort'];const h=yield this['$']['percentDone'];d=g*0.01*h;}}function o(a,b){return n(a-0x3b,b);}return d;}*[n(-0xd6,-0xcf)](){let c=yield*super[p(0x17d,0x17d)]();const d=yield this['$']['assigned'];for(const e of d){const f=yield e['$'][p(0x181,0x17b)];c+=f;}function p(a,b){return n(b-0x253,a);}return c;}}__decorate([model_field({'type':'number','persist':![]},{'lazy':!![]})],b[n(-0xd7,-0xe1)],n(-0xd9,-0xde),void 0x0);__decorate([calculate(n(-0xd9,-0xd4))],b[n(-0xd7,-0xd0)],'calculateActualEffort',null);return b;}){}class SchedulerProTimePhasedEvent extends Mixin([SchedulerProEvent,SchedulerProHasTimePhasedAssignmentsMixin],a=>{class b extends a{}return b;}){}export{SchedulerProBaseEvent,SchedulerProEvent,SchedulerProTimePhasedEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function q(a,b){return _enb(a- -0x3e7,b);}const c=a();while(!![]){try{const d=parseInt(q(-0x2d7,-0x2db))/0x1*(parseInt(q(-0x2ce,-0x2be))/0x2)+parseInt(q(-0x2b5,-0x2c8))/0x3*(-parseInt(q(-0x2b9,-0x2af))/0x4)+-parseInt(q(-0x2c5,-0x2bf))/0x5*(parseInt(q(-0x298,-0x2bd))/0x6)+parseInt(q(-0x294,-0x271))/0x7*(-parseInt(q(-0x2b4,-0x2d5))/0x8)+-parseInt(q(-0x2ba,-0x2ae))/0x9+-parseInt(q(-0x295,-0x28c))/0xa*(-parseInt(q(-0x293,-0x280))/0xb)+parseInt(q(-0x2c4,-0x2c1))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xbd1ad));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function r(a,b){return _enb(b-0x59,a);}if(typeof Reflect===r(0x174,0x189)&&typeof Reflect[r(0x18e,0x162)]===r(0x17f,0x157))h=Reflect[r(0x181,0x162)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['15264513LWhKEB','buildProposedDispatcher','endOffset','startDate','calculateStartDate','calculateMinPercent','function','startOffset','MasterStartDateVar','calculateEndOffsetByStartOffsetAndDuration','formulaId','skipNonWorkingTimeWhenSchedulingManually','map','assign','length','calculateEndOffset','percentDone','decorate','MasterTotalDurationVar','convertDurationGen','writeStartDate','calculateDuration','calculateStartOffsetByEndOffsetAndDuration','event','198323TolEFw','collectInfo','push','resolution','calculateMaxPercent','startPercentDone','calculateManuallyScheduled','calculateEndOffsetByMasterTotalDurationAndStartOffset','previousSegment','8oYKQBo','new','getStm','afterChange','prototype','stm','addPreviousValueFlag','min','addProposedValueFlag','60qLQlsQ','29619648PCgAwF','shouldRecordFieldChange','duration','durationUnit','calculateEndDate','MasterEndDateVar','baseRevision','equality','segments','isEventSegment','12588795NUvOsv','9092UukwdK','calculateEndDateByMasterStartAndEndOffset','object','modified','573MjcSmH','8fOwSDI','calculateProjectedXDateWithDuration','write','isRestoring','storeFieldChange','skipNonWorkingTime','applyingSyncResponse','StartOffsetVar','calculateDurationByOffsets','nextSegment','get','dispatcher','calculatePercentDone','calculateProjectedDuration','calculateStartDateByMasterStartAndStartOffset','prepareDispatcher','call','cycleResolutionContext','isManuallyScheduled','mix','meta','endPercentDone','toJSON','getProject','MasterDurationVar','calculateStartOffset','hasIdentifier','Millisecond','260034JkUicb','endDate','calculateEndOffsetByMasterDurationAndStartOffset','10BUbpkT','10652180rKGGTI'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol(_ens(0x270,0x24a));const MasterEndDateVar=Symbol(_ens(0x27e,0x272));const MasterDurationVar=Symbol(_ens(0x296,0x295));const MasterTotalDurationVar=Symbol(_ens(0x26f,0x254));const StartOffsetVar=Symbol(_ens(0x27e,0x284));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xf9;let f=c[d];return f;};return _enb(a,b);}const EndOffsetVar=Symbol('EndOffsetVar');const durationByOffsetsFormula=Formula[_ens(0x267,0x264)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x277,0x264)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x27c,0x264)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x238,0x264)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula[_ens(0x258,0x264)]({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x26c,0x264)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x282,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x240,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x292,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});function _ens(a,b){return _enb(b-0x14a,a);}const durationByMasterEndDateFormula=Formula[_ens(0x277,0x264)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x24a,0x264)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x28c,0x264)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier[_ens(0x29d,0x290)](CalculatedValueGen){[_ens(0x29b,0x274)](a,b){function t(a,b){return _ens(b,a- -0x33);}const c=a['resolution'];const d=b[t(0x22a,0x234)];return c[t(0x254,0x22b)](StartDateVar)===d['get'](StartDateVar)&&c[t(0x254,0x25f)](EndDateVar)===d[t(0x254,0x27f)](EndDateVar)&&c[t(0x254,0x243)](DurationVar)===d['get'](DurationVar)&&c[t(0x254,0x273)](MasterStartDateVar)===d[t(0x254,0x22c)](MasterStartDateVar)&&c[t(0x254,0x231)](MasterEndDateVar)===d[t(0x254,0x239)](MasterEndDateVar)&&c[t(0x254,0x280)](MasterDurationVar)===d['get'](MasterDurationVar)&&c[t(0x254,0x240)](MasterTotalDurationVar)===d[t(0x254,0x22c)](MasterTotalDurationVar)&&c[t(0x254,0x270)](StartOffsetVar)===d[t(0x254,0x274)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x254,0x255)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0xec,0xf2)](){return!![];}get['stm'](){function v(a,b){return u(a,b-0x420);}return this[v(0x4ec,0x4f5)]?.[v(0x506,0x504)];}set['stm'](c){}[u(0xe8,0xd2)](c,d,e,f,g=!![]){function w(a,b){return u(b,a-0x290);}const h=this[w(0x365,0x364)];const i=this['getProject']();if(h&&!this[w(0x36e,0x372)]&&d[w(0x37f,0x374)][w(0x3a3,0x37a)](c)&&!(i&&i[w(0x371,0x343)]()[w(0x38c,0x3b5)])){d[w(0x38b,0x3aa)](h['$'][w(0x351,0x37d)],f,g);}else{c['constructor'][w(0x373,0x358)]['write'][w(0x399,0x37e)](this,c,d,e,f,g);if(g&&this[w(0x392,0x3a9)]){const j=this['endOffset']-this['nextSegment']['startOffset'];if(j>0x0){let k=this;while(k=k[w(0x392,0x366)]){d['write'](k['$'][w(0x355,0x35f)],k['startOffset']+j);d[w(0x38b,0x364)](k['$']['endOffset'],k[w(0x350,0x36f)]+j);}}}}}['shouldRecordFieldChange'](c,d,e){function x(a,b){return u(a,b- -0x32d);}return c===x(-0x296,-0x268)||c===x(-0x284,-0x26d)||super[x(-0x248,-0x243)](c,d,e);}*[u(0x10d,0x112)](){function y(a,b){return u(b,a-0x245);}const c=yield this['$'][y(0x349,0x31b)];const d=c['resolution'][y(0x348,0x33e)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula['formulaId']){e=yield*this[y(0x319,0x327)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x30d,0x31d)]){const f=yield ProposedOrPreviousValueOf(this[y(0x31a,0x33a)]['$'][y(0x306,0x330)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x306,0x2fb)]);e=yield*this[y(0x31a,0x2f3)][y(0x34b,0x330)](f,g,TimeUnit[y(0x359,0x337)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){const c=yield this['$'][z(0x64,0x46)];const d=c[z(0x33,0x1b)][z(0x67,0x45)](EndOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function z(a,b){return u(a,b- -0xbe);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(-0x6,0xa)]){e=yield*this[z(0x7,0x9)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x8,0xa)]){const f=yield ProposedOrPreviousValueOf(this[z(-0x4,0x17)]['$'][z(-0x11,0x3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x5e,0x58)]);e=yield*this[z(0x43,0x17)]['calculateProjectedDuration'](f,g,TimeUnit[z(0x29,0x56)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(-0x16,0xa)]){e=yield*this[z(0x6f,0x59)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(-0x8,0xa)]){e=yield*this['calculateEndOffsetByMasterTotalDurationAndStartOffset']();}return e;}*['calculateStartDate'](){function A(a,b){return u(b,a- -0x38e);}const c=yield this['$'][A(-0x28a,-0x277)];const d=c[A(-0x2b5,-0x28d)][A(-0x28b,-0x2ae)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x2c6,-0x2f4)]){e=yield*this[A(-0x287,-0x287)]();}else{e=yield*super[A(-0x2cc,-0x2aa)]();}return e;}*['calculateEndDate'](){function B(a,b){return u(b,a-0xfc);}const c=yield this['$'][B(0x200,0x216)];const d=c[B(0x1d5,0x1e1)][B(0x1ff,0x216)](EndDateVar);if(!this[B(0x1d1,0x1cb)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula['formulaId']){e=yield*this[B(0x1f1,0x212)]();}else{e=yield*super[B(0x1e9,0x1f7)]();}return e;}*[u(0xd6,0xd3)](){const c=yield this['$'][C(0x48f,0x49f)];const d=c[C(0x464,0x482)][C(0x48e,0x497)](DurationVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(0x453,0x43f)]){e=yield*this['calculateDurationByOffsets']();}else if(d===durationByMasterEndDateFormula[C(0x453,0x478)]){e=yield*this[C(0x48c,0x471)]();}else{e=yield*super[C(0x45e,0x435)]();}function C(a,b){return u(b,a-0x38b);}return e;}[u(0x97,0xbf)](c,d,e){const f=super['buildProposedDispatcher'](c,d,e);f[D(-0xfc,-0xf7)](MasterStartDateVar);f[D(-0x11f,-0xf7)](StartOffsetVar);function D(a,b){return u(a,b- -0x1dc);}f['addPreviousValueFlag'](EndOffsetVar);return f;}*[u(0xea,0x108)](c){const d=yield*super[E(0x367,0x37c)](c);if(!this[E(0x334,0x34e)]){return d;}if(c(PreviousValueOf(this[E(0x334,0x359)]['$'][E(0x320,0x305)]))!=null)d['addPreviousValueFlag'](MasterStartDateVar);function E(a,b){return u(b,a-0x25f);}if(c(HasProposedValue(this[E(0x334,0x341)]['$'][E(0x320,0x2f9)])))d['addProposedValueFlag'](MasterStartDateVar);if(!c(HasProposedValue(this[E(0x334,0x347)]['$'][E(0x350,0x36e)]))){d[E(0x336,0x30f)](c,this[E(0x334,0x352)]['$'][E(0x34a,0x33e)],MasterDurationVar);if(c(HasProposedValue(this['event']['$'][E(0x375,0x353)]))){const f=c(ProposedArgumentsOf(this['event']['$'][E(0x375,0x34b)]));if(!f?.[0x0]){d[E(0x346,0x355)](MasterEndDateVar);}}const e=c(this[E(0x334,0x355)]['$']['dispatcher']);if(e[E(0x338,0x332)][E(0x362,0x353)](StartDateVar)===CalculateProposed&&e[E(0x338,0x31d)]['get'](EndDateVar)===CalculateProposed){d[E(0x346,0x31f)](MasterTotalDurationVar);}}d[E(0x336,0x34a)](c,this['$'][E(0x324,0x321)],StartOffsetVar);d[E(0x336,0x32a)](c,this['$'][E(0x31f,0x30f)],EndOffsetVar);return d;}[u(0x114,0x10a)](c){return segmentCycleResolution;}*[u(0x13b,0x117)](){const c=yield ProposedOrPreviousValueOf(this[F(0x33c,0x31f)]['$'][F(0x33d,0x335)]);const d=yield this['event']['$'][F(0x32d,0x336)];const e=yield this['$']['startOffset'];const f=this[F(0x33b,0x34c)];let g;let h=yield*this[F(0x342,0x31b)](c,d,TimeUnit[F(0x37c,0x35e)]);const j=[];function F(a,b){return u(a,b-0x24a);}let k=this;while(k=k[F(0x2fc,0x328)]){j[F(0x343,0x322)](k);}for(let l=j[F(0x32d,0x316)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(0x32f,0x30f)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(0x336,0x30a)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(0x33a,0x330)](h,(yield ProposedOrPreviousValueOf(this['$']['endOffset']))-e);}}else{g=e;}return g;}*[u(0xf4,0xdd)](){function G(a,b){return u(a,b- -0x31e);}const c=yield ProposedOrPreviousValueOf(this[G(-0x272,-0x249)]['$'][G(-0x24e,-0x25d)]);const d=yield ProposedOrPreviousValueOf(this['event']['$'][G(-0x216,-0x208)]);const e=yield*this['event'][G(-0x236,-0x218)](c,d,TimeUnit[G(-0x233,-0x20a)],{'ignoreSegments':!![]});const f=yield ProposedOrPreviousValueOf(this['$'][G(-0x257,-0x259)]);let g=yield ProposedOrPreviousValueOf(this['$']['endOffset']);let h=this[G(-0x1ff,-0x21c)];if(f<=e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(-0x27a,-0x259)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(-0x233,-0x259)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$'][H(0x402,0x405)];function H(a,b){return u(a,b-0x31a);}const d=yield this['$']['durationUnit'];const e=yield this['$']['endOffset'];return e-(yield*this['event'][H(0x401,0x3eb)](c,d,TimeUnit[H(0x420,0x42e)]));}*[u(0xa4,0xc7)](){const c=yield this['$'][I(-0x76,-0x4e)];function I(a,b){return u(a,b- -0x139);}const d=yield this['$'][I(-0x41,-0x4d)];const e=yield this['$'][I(-0x95,-0x74)];return e+(yield*this[I(-0x78,-0x64)][I(-0x40,-0x68)](c,d,TimeUnit[I(-0x37,-0x25)]));}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0xa0);}const c=yield this['event']['$'][J(0xa,0x21)];const d=yield this['$'][J(0x9,0x20)];const e=yield*this[J(0x24,0x35)]['calculateProjectedXDateWithDuration'](c,!![],d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this[J(0x56,0x70)]()[J(0x2e,0x29)]?e:yield*this[J(0x5e,0x35)][J(0x54,0x5e)](e,![]);}*[u(0x10b,0x107)](){const c=yield this[K(0x174,0x188)]['$'][K(0x160,0x16a)];const d=yield this['$'][K(0x164,0x157)];function K(a,b){return u(b,a-0x9f);}const e=yield*this[K(0x174,0x191)][K(0x199,0x185)](c,!![],d,TimeUnit[K(0x1b3,0x1b3)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()[K(0x168,0x173)]?e:yield*this[K(0x174,0x150)][K(0x19d,0x1a3)](e);}*['calculateDurationByOffsets'](){const c=yield this['$'][L(0x16e,0x198)];const d=yield this['$']['endOffset'];function L(a,b){return u(a,b-0xd3);}const e=yield this['$'][L(0x1cb,0x1bf)];return yield*this['convertDurationGen'](d-c,TimeUnit[L(0x1d2,0x1e7)],e);}*[u(0x10c,0x105)](){let c=0x0;if(!this[M(0x2ff,0x2f3)]){return yield ProposedOrPrevious;}const d=yield this[M(0x30d,0x2f3)]['$'][M(0x303,0x30f)];if(d){const e=yield this['event']['$'][M(0x2ed,0x2ec)];const f=yield this['event']['$'][M(0x2e3,0x309)];const g=yield this[M(0x2d6,0x2f3)]['$'][M(0x334,0x30a)];let h=yield*this[M(0x306,0x2ef)](f,g,TimeUnit[M(0x34c,0x332)]);let i=e*0.01*h;for(const j of d){const k=j[M(0x2b5,0x2e3)];const l=j[M(0x2fb,0x2de)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}function M(a,b){return u(a,b-0x21e);}return c;}*[u(0xd5,0xc3)](){const c=this[N(-0x20a,-0x1ed)];function N(a,b){return u(b,a- -0x2e8);}if(!this['event']){return yield ProposedOrPrevious;}if(c){return yield c['$'][N(-0x1da,-0x1f0)];}return 0x0;}*[u(0xd9,0xda)](){if(!this[O(0xde,0xc2)]){return yield ProposedOrPrevious;}const c=yield this[O(0xde,0xe3)]['$']['duration'];const d=yield this[O(0xde,0xf0)]['$'][O(0xf5,0xc7)];let e=yield*this[O(0xda,0xce)](c,d,TimeUnit[O(0x11d,0x10a)]);function O(a,b){return u(b,a-0x9);}const f=yield this['$'][O(0xce,0xb6)];const g=yield this['$'][O(0xc9,0xd8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x11e,0xfa)](c,d,e,f){function P(a,b){return u(b,a-0x326);}if(!f)f=yield this['$'][P(0x412,0x412)];return yield*this[P(0x3fb,0x3fb)][P(0x420,0x401)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x100,0x106)](c,d,e,...f){function Q(a,b){return u(a,b-0x37);}if(!e)e=yield this['$']['durationUnit'];return yield*this[Q(0x136,0x10c)][Q(0x15c,0x13d)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0xbb,0xdc)](){function R(a,b){return u(a,b- -0x25d);}if(this[R(-0x16e,-0x188)]){return yield*this[R(-0x16d,-0x188)][R(-0x176,-0x152)]();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super[S(-0x11a,-0x123)](c,d,e,f,g);const h=this[S(-0x147,-0x130)];function S(a,b){return u(a,b- -0x205);}if(d&&h){if(!(S(-0xf9,-0x114)in h[S(-0xf2,-0xf8)][S(-0x106,-0x10e)])&&h[S(-0x13d,-0x114)]){const l=h[S(-0x130,-0x114)][S(-0x136,-0x13b)](m=>Object[S(-0x165,-0x13a)](m['toJSON'](),m[S(-0xf2,-0xf8)][S(-0xf2,-0x10e)]));h[S(-0xdd,-0x108)](S(-0x136,-0x114),l);}const i=h[S(-0xdf,-0xf5)]();const j=i?.[S(-0xfd,-0x106)];if(i)i['applyingSyncResponse']=!![];const k=h[S(-0x12d,-0x114)]?.['map'](m=>m[S(-0x10f,-0xf6)]());h[S(-0x12e,-0x123)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(-0x125,-0x106)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0xdc,0xe3)],u(0x130,0x104),void 0x0);__decorate([model_field({'persist':![]})],b['prototype'],u(0xba,0xc5),void 0x0);__decorate([model_field({'persist':![]})],b[u(0xc8,0xe3)],u(0xcb,0xc0),void 0x0);__decorate([field()],b[u(0x104,0xe3)],'percentDone',void 0x0);__decorate([field()],b['prototype'],u(0xba,0xdb),void 0x0);__decorate([field()],b[u(0x10a,0xe3)],u(0x123,0x10e),void 0x0);function u(a,b){return _ens(a,b- -0x184);}__decorate([write('startDate')],b[u(0xfd,0xe3)],u(0xa4,0xd2),null);__decorate([calculate(u(0xa5,0xc5))],b['prototype'],u(0x11f,0x112),null);__decorate([calculate(u(0xd4,0xc0))],b['prototype'],u(0xf7,0xcd),null);__decorate([calculate(u(0xb3,0xce))],b['prototype'],u(0xff,0x105),null);__decorate([calculate('startPercentDone')],b[u(0xc6,0xe3)],'calculateMinPercent',null);__decorate([calculate('endPercentDone')],b[u(0xde,0xe3)],u(0xdd,0xda),null);__decorate([calculate('manuallyScheduled')],b[u(0xcc,0xe3)],'calculateManuallyScheduled',null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){function z(a,b){return _enb(b-0x3b4,a);}const c=a();while(!![]){try{const d=parseInt(z(0x4c9,0x4b6))/0x1+-parseInt(z(0x4bc,0x4c6))/0x2*(-parseInt(z(0x4b1,0x491))/0x3)+parseInt(z(0x4b0,0x4c1))/0x4+parseInt(z(0x4a0,0x498))/0x5+-parseInt(z(0x49a,0x49c))/0x6*(-parseInt(z(0x4ba,0x4af))/0x7)+parseInt(z(0x4e4,0x4be))/0x8+parseInt(z(0x4e3,0x4c5))/0x9*(-parseInt(z(0x4af,0x48a))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x61572));var __decorate=function(a,b,e,f){var g=arguments[A(0x470,0x45b)],h=g<0x3?b:f===null?f=Object[A(0x43e,0x463)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[A(0x47c,0x458)]===A(0x4a6,0x48c))h=Reflect[A(0x465,0x458)](a,b,e,f);else for(var k=a[A(0x460,0x45b)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function A(a,b){return _enb(b-0x37c,a);}return g>0x3&&h&&Object[A(0x475,0x45f)](b,e,h),h;};import{HasProposedValue}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Reject}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xd1;let f=c[d];return f;};return _enb(a,b);}function _enT(a,b){return _enb(a-0x232,b);}function _ena(){const V=['getOwnPropertyDescriptor','1236gFnBnX','getTime','resource','getCalendarsWorking','set','effectiveCalendar','manuallyScheduled','some','durationUnit','getProject','useEventAvailabilityIterator','getBaseOptionsForDurationCalculations','calculateProjectedXDateWithDuration','event','getCalendarsWorkStatus','afterConstruct','assign','call','effectiveCalendarsCombination','12579ZbFdXe','boolean','type','name','convertDurationGen','commitAsync','MaxRangeReached','532154IvShug','getInvalidCalendar','maxCalendarRange','addAssignment','assignmentsByCalendar','Work','progressing','cost','5622144YesSKu','skipNonWorkingTimeInDurationWhenSchedulingManually','hasPreviousValueForUnits','2228624VcnCDf','keys','push','function','9taClcl','732338nXbSVC','ignoreResourceCalendar','zeroDurationMsThreshold','isManuallyScheduled','hasProposedValueForAssignmentsField','getTimezoneOffset','prototype','hasProposedValueForUnits','getResolutions','calculateEffectiveCalendarsCombination','calculateAssignmentsByCalendar','Cost','size','assignmentStore','resolve','27035080QLJZjK','accumulateWorkingTime','forEachAvailabilityInterval','get','adjustDurationToDST','rateTable','decorate','3XPcBjp','assigned','length','hasElapsedDuration','Millisecond','combineCalendars','defineProperty','2868925hoouDe','calculateProjectedDuration','IgnoreResourceCalendarEmptyCalendarEffectResolution'];_ena=function(){return V;};return _ena();}import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIteratorResult}from'../../../calendar/CalendarCache.js';import{ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{EmptyCalendarEffect}from'../scheduler_basic/BaseCalendarMixin.js';import{BaseHasAssignmentsMixin}from'../scheduler_basic/BaseHasAssignmentsMixin.js';import{EffectResolutionResult,SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{format}from'../../../util/Functions.js';class SchedulerProHasAssignmentsMixin extends Mixin([BaseHasAssignmentsMixin],a=>{const b=a[B(0x8d,0xad)];class c extends a{[B(0x72,0x8c)](){function C(a,b){return B(b,a-0x43e);}super[C(0x4ca,0x4c0)]();this[C(0x4e7,0x4d6)]=0.00001;}*['hasProposedAssignments'](){function D(a,b){return B(b,a- -0x1f0);}return yield HasProposedValue(this['$'][D(-0x17d,-0x177)]);}*[B(0xa3,0xab)](d){const e=yield this['$'][E(0x1bf,0x1d6)];for(const f of e){const g=yield f['$'][E(0x1f3,0x1e2)];if(g&&(yield HasProposedValue(f['$'][d])))return!![];}function E(a,b){return B(a,b-0x163);}return![];}*[B(0x9b,0xae)](){function F(a,b){return B(b,a-0x20e);}return yield*this[F(0x2b9,0x2b7)]('units');}*[B(0x90,0xa1)](){return!![];}async[B(0x7b,0x8d)](d,e=void 0x0,f=void 0x0,g=void 0x0){const h=this['getProject']()[G(0x312,0x31f)]['modelClass'];const i={'event':this,'resource':d,...e!==void 0x0?{'units':e}:{}};if(d[G(0x348,0x348)]===ResourceType[G(0x304,0x31d)]&&g!==void 0x0){i[G(0x379,0x354)]=g;}else if(d[G(0x350,0x348)]!==ResourceType[G(0x32d,0x31d)]&&f!==void 0x0){i[G(0x323,0x326)]=f;}function G(a,b){return B(a,b-0x2b6);}this[G(0x352,0x350)](new h(i));return this[G(0x334,0x34b)]();}*[B(0x62,0x6d)](d,e){const f=yield this['$'][H(-0x51,-0x4a)];const g=yield this['$'][H(-0x38,-0x59)];function H(a,b){return B(b,a- -0xd3);}const h=yield this['$']['effectiveCalendarsCombination'];const i=(yield this['$'][H(-0x2b,-0x2d)])||(yield*this[H(-0x5e,-0x3c)]())||d['ignoreResourceCalendar']||!g['size'];const j=this[H(-0x4d,-0x73)]()[H(-0x3a,-0x29)];if(j){d=Object['assign']({'maxRange':j},d);}const k=this[H(-0x4d,-0x70)]();const l=yield this['$'][H(-0x50,-0x5c)];return h[H(-0x66,-0x49)](d,(m,n,o)=>{const p=o[I(-0x257,-0x24b)]();function I(a,b){return H(b- -0x203,a);}const q=o[I(-0x25f,-0x256)]();if(p[I(-0x286,-0x268)](f)&&(i||q[I(-0x272,-0x252)](r=>g['has'](r))||l&&!k[I(-0x211,-0x236)])){return e(m,n,o);}});}*[B(0xc7,0xb0)](){function J(a,b){return B(a,b- -0x56);}const d=yield*this[J(0x67,0x54)]();const e=this['getProject']();const f=[yield this['$'][J(0x4e,0x2c)]];if(!d||e['skipNonWorkingTimeInDurationWhenSchedulingManually']){const g=yield this['$'][J(0x53,0x45)];f[J(0x2e,0x4e)](...g[J(0x28,0x4d)]());}return e[J(0x21,0x21)](f);}*[B(0x7c,0x66)](){const d=yield this['$'][K(-0x22f,-0x241)];const e=this[K(-0x219,-0x22e)]();function K(a,b){return B(a,b- -0x2b4);}const f=yield this['$'][K(-0x21c,-0x231)];const g=(yield this['$'][K(-0x210,-0x20c)])||(yield*this[K(-0x254,-0x23f)]())||f&&!e[K(-0x1ff,-0x214)];const h=new Map();for(const i of d){const j=yield i['$']['resource'];if(j&&(yield j['$'][K(-0x22c,-0x222)])===ResourceType[K(-0x238,-0x218)]){const k=yield g?this['$'][K(-0x24d,-0x232)]:j['$'][K(-0x248,-0x232)];let l=h[K(-0x260,-0x246)](k);if(!l){l=[];h[K(-0x211,-0x233)](k,l);}l['push'](i);}}return h;}*['getBaseOptionsForDurationCalculations'](){return{'ignoreResourceCalendar':![]};}*['useEventAvailabilityIterator'](){const d=yield this['$'][L(0x203,0x227)];function L(a,b){return B(a,b-0x18c);}return d[L(0x1f3,0x1f4)]>0x0;}*['skipNonWorkingTime'](d,e=!![],f){if(!d)return null;function M(a,b){return B(a,b-0xf9);}const g=yield this['$'][M(0x1aa,0x194)];const h=yield this['$'][M(0x1b3,0x1a1)]||(yield*this[M(0x156,0x16e)]());if(yield*this['useEventAvailabilityIterator']()){const i=Object[M(0x183,0x186)](yield*this[M(0x194,0x181)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'positioning'},f);let j;const k=yield*this[M(0x160,0x166)](i,(l,m,n)=>{j=e?l:m;return![];});if(k===CalendarIteratorResult[M(0x1a2,0x18f)]||k===CalendarIteratorResult['FullRangeIterated']){const l=[yield this['$']['effectiveCalendar']];if(!i[M(0x189,0x1a1)]&&!h){l[M(0x18b,0x19d)](...g[M(0x1a5,0x19c)]());}const m=SchedulerProEmptyCalendarEffect['new']({'event':this,'calendars':l,'date':d,'isForward':e});if((yield m)===EffectResolutionResult['Cancel']){yield Reject(m);}else{return null;}}return new Date(j);}else{return yield*b['skipNonWorkingTime'][M(0x1a3,0x187)](this,d,e);}}*[B(0x5c,0x7a)](d,e,f,g,h=![]){function N(a,b){return B(a,b-0x447);}if(!d||!e){return null;}if(yield*this[N(0x4b4,0x4ce)]()){const i=d['getTime']()<=e[N(0x4d9,0x4c5)]()||!h?0x1:-0x1;if(i<0x0){[d,e]=[e,d];}const j=Object['assign'](yield*this[N(0x4e7,0x4cf)](),{'startDate':d,'endDate':e,'isForward':!![]},g,{'purpose':N(0x4f5,0x4e4)});const k=this[N(0x4bb,0x4cd)]()[N(0x49e,0x4b6)];let l=0x0;yield*this['forEachAvailabilityInterval'](j,(m,n)=>{l+=n['getTime']()-m[O(0x25f,0x27f)]();function O(a,b){return N(a,b- -0x246);}if(k){const o=m['getTimezoneOffset']()-n[O(0x28f,0x2ad)]();l+=o*0x3c*0x3e8;}});if(!f)f=yield this['$'][N(0x4d3,0x4cc)];l=yield*this[N(0x4da,0x4db)](l,TimeUnit[N(0x4cb,0x4bd)],f);return i*l;}else{return yield*b[N(0x4bd,0x4c1)][N(0x4cf,0x4d5)](this,d,e,f,g,h);}}*[B(0x9c,0x89)](d,e=!![],f,g,h){function P(a,b){return B(a,b-0x3ab);}if(f==null||isNaN(f)||d==null)return null;if(f==0x0)return d;g=g||(yield this['$'][P(0x440,0x430)]);const i=yield*this['convertDurationGen'](f,g,TimeUnit[P(0x40b,0x421)]);let j=d[P(0x40a,0x429)]();let k=i;const l=yield this['$'][P(0x44f,0x42d)];const m=this['zeroDurationMsThreshold'];if(yield*this['useEventAvailabilityIterator']()){const n=Object[P(0x445,0x438)](yield*this[P(0x41e,0x433)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':P(0x45f,0x448)},h);const o=this[P(0x454,0x431)]()['adjustDurationToDST'];const p=yield*this[P(0x416,0x418)](n,(q,r,s)=>{const t=q[Q(0xf4,0xdc)](),u=r[Q(0xb7,0xdc)](),v=u-t,w=k-v;function Q(a,b){return P(a,b- -0x34d);}if(w<=m){if(o){const x=e?q[Q(0xff,0x10a)]()-new Date(t+k)['getTimezoneOffset']():new Date(u-k)[Q(0x120,0x10a)]()-r[Q(0x111,0x10a)]();k-=x*0x3c*0x3e8;}j=e?t+k:u-k;return![];}else{k-=v;if(o){const y=q['getTimezoneOffset']()-r[Q(0x11a,0x10a)]();k-=y*0x3c*0x3e8;}}});return p===CalendarIteratorResult['StoppedByIterator']?new Date(j):null;}else{return l[P(0x41f,0x417)](d,i,e)['finalDate'];}}}__decorate([field()],c[B(0x8a,0xad)],B(0xa4,0x8f),void 0x0);__decorate([field()],c[B(0x8d,0xad)],B(0x99,0x9b),void 0x0);__decorate([model_field({'type':B(0x7c,0x91)})],c[B(0xb3,0xad)],'ignoreResourceCalendar',void 0x0);__decorate([calculate(B(0x83,0x8f))],c[B(0x94,0xad)],B(0xc7,0xb0),null);function B(a,b){return _enb(b- -0x6b,a);}__decorate([calculate(B(0xbc,0x9b))],c['prototype'],B(0x78,0x66),null);return c;}){}class SchedulerProEmptyCalendarEffect extends EmptyCalendarEffect{['getResolutions'](){function R(a,b){return _enb(b-0x105,a);}if(!this[R(0x215,0x208)]()){return[IgnoreResourceCalendarEmptyCalendarEffectResolution['new']({'event':this['event']})];}return super[R(0x1f9,0x21f)]();}}class IgnoreResourceCalendarEmptyCalendarEffectResolution extends _enc(SchedulingIssueEffectResolution){['getDescription'](){function S(a,b){return _enb(a- -0x3ab,b);}const {event:a}=this;return format(this['L']('L{descriptionTpl}'),a[S(-0x2ad,-0x2d0)]);}[_enT(0x307,0x2ed)](){function U(a,b){return _enT(b- -0x1d7,a);}this[U(0x136,0x150)][U(0x157,0x16e)]=!![];}}IgnoreResourceCalendarEmptyCalendarEffectResolution['$name']=_enT(0x318,0x338);export{IgnoreResourceCalendarEmptyCalendarEffectResolution,SchedulerProEmptyCalendarEffect,SchedulerProHasAssignmentsMixin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function U(a,b){return _enb(a-0x130,b);}while(!![]){try{const d=-parseInt(U(0x28e,0x2ca))/0x1*(parseInt(U(0x228,0x261))/0x2)+parseInt(U(0x22e,0x1f5))/0x3+parseInt(U(0x238,0x25a))/0x4*(parseInt(U(0x211,0x1f8))/0x5)+parseInt(U(0x210,0x1fd))/0x6+-parseInt(U(0x25c,0x28f))/0x7+-parseInt(U(0x21a,0x1f4))/0x8+parseInt(U(0x244,0x26d))/0x9*(-parseInt(U(0x2aa,0x2fd))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5608d));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[V(0x49f,0x4a9)](b,e):f,j;function V(a,b){return _enb(b-0x339,a);}if(typeof Reflect==='object'&&typeof Reflect[V(0x47b,0x472)]==='function')h=Reflect[V(0x494,0x472)](a,b,e,f);else for(var k=a[V(0x4cb,0x48b)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[V(0x466,0x439)](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _enZ(a,b){return _enb(a-0x2f6,b);}import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xde;let f=c[d];return f;};return _enb(a,b);}import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';function _ena(){const b6=['isChangingOnlyEndDate','calculateMaxAssignmentProposedEndDate','effortUnit','prototype','isDurationDefinedByEffort','9444DFvZsV','hasInputOnEndDate','proposedStartDateMin','move','endDate','calculateAssignmentUnits','set','useEventAvailabilityIterator','effectiveCalendarsCombination','calculateStartDate','calculateProjectedXDateWithDuration','timePhasedIntervalsCache','134829zCdGyx','calculateAssignmentsByCalendar','calculateProposedStartDate','hasUnitsOnAllAssignments','calculateProposedStartOffsetRaw','phantomEndOffset','maxCalendarRange','calculateMaxAssignmentProposedEndDateIncludingPhantom','hasOnlyTimePhasedAssignments','resolution','positioning','assignmentsByCalendar','calculateProposedEndOffsetRaw','ion','max','calculateHasOnlyRegularAssignmentsRaw','calculateTimePhasedDispatcher','isPhantomTimePhased','size','Millisecond','proposedStartOffsets','proposedMirror','type','proposedAssignmentDuration','3086874YXcVQO','delete','hasInputOnAssignments','isUserTimePhased','proposedEndDateArgs','calculateProjectedXDateByEffort','end','minAssignment','getDateShifter','skipNonWorkingTimeInDurationWhenSchedulingManually','timePhasedData','getBaseOptionsForEffortCalculations','timePhasedDispatcher','decorate','isTimePhased','prepare','hasInputOnEffort','effectiveCalendar','new','getBaseOptionsForDurationCalculations','calculateProposedStartOffsets','collectInfo','assign','start','formulaId','time','hasProposedAssignments','calculateProposedEndDate','unscheduled','assigned','regularAssignmentsByCalendar','hasPreviousValueForUnits','ignoreTimePhasedData','effortDriven','resource','calculateTotalAssignmentsEffort','forEach','isManuallyScheduled','length','duration','calculateProposedAssignmentDuration','calculateSelector','calculateRegularAssignmentsByCalendar','assignment','hasPreviousEffortValue','HasProposedValue','graph','purpose','calculateProposedEndDateMax','MAX_VALUE','2LNrQTf','getProject','push','some','startDate','hasOnlyRegularAssignments','addProposedValueFlag','direction','expandTrailingAssigmentsByEffort','$convertDuration','effectiveDirection','hasInputOnDuration','write','FixedUnits','expandTrailingAssigmentsByDates','Backward','isConstrainedAlongDirection','has','getOwnPropertyDescriptor','calculateDuration','input','project','calculateProposedTotalUnits','proposedStartDate','skipNonWorkingTime','isForward','assignmentsTypeSelector','Normal','10FNLtMw','effort','proposedEndOffset','calculateProjectedEffort','calculateAssignmentsTypeSelector','calculateTimePhasedIntervalsCache','calculateEffortPure','isChangingOnlyEffortOnAssignment','minOffset','maxAssignmentProposedEndDate','get','getTime','effectiveSchedulingMode','units','collectAssignmentsByCalendar','getCalendarsWorkStatus','shouldSkipNonWorkingTime','4005990BNCQAY','1255zOFpLX','Forward','calculateProposedStartDateMin','expandTrailingAssigmentsByDuration','selector','calculateEndDate','dispatcher','event','proposedEndOffsets','3154360FDRsEt','hasPhantomTimePhasedAssignments','ignoreResourceCalendar','proposedEndDate','FixedDuration','isChangingOnlyDuration','FixedEffort','calculateProjectedDuration','proposedEndDateMax','getCalendarsWorking','progressing','isSegmented','forEachAvailabilityInterval','minAssignmentProposedStartDate','407806UEydMa','childEvents','calculateProposedEndOffsets','calculateProjectedXDate','calculateEffort','hasTimePhasedInput','1050555FnAeyd','proposedStartOffset','defineProperty','isChangingOnlyEffort','calculateMinAssignmentProposedStartDate'];_ena=function(){return b6;};return _ena();}import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){function W(a,b){return _enb(b- -0x24d,a);}this[W(-0xe5,-0x117)]=[];}['push'](a){function X(a,b){return _enb(a- -0x20,b);}this[X(0x116,0x118)][X(0x140,0x111)]({'time':a[X(0x142,0x15d)],'type':'start','assignment':a['assignment']},{'time':a[X(0xec,0x128)],'type':'end','assignment':a[X(0x137,0x149)]});}['prepare'](){this['timePhasedData']['sort']((a,b)=>{function Y(a,b){return _enb(b- -0x225,a);}return a[Y(-0x9b,-0xe0)]-b[Y(-0x11e,-0xe0)];});}[_enZ(0x401,0x412)](a,b,c,d,e,f){const g=this[a0(0x356,0x31a)][b];if(a&&b===this[a0(0x356,0x35f)]['length']-0x1){if(g[a0(0x365,0x37d)]<=c){e[a0(0x34d,0x36a)](g[a0(0x377,0x330)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a0(0x365,0x394)]){e[a0(0x34d,0x3a0)](g[a0(0x377,0x376)]);if(f(d,c,e)===![])return-0x1;return b;}}function a0(a,b){return _enZ(a- -0xd6,b);}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a0(0x356,0x376)][a0(0x372,0x35b)];k+=h){const n=this['timePhasedData'][k];const o=a?n['time']>=d:n[a0(0x365,0x37d)]<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a0(0x365,0x324)]<c:n[a0(0x365,0x339)]>c;if(!p){if(j[a0(0x3a5,0x3a2)]()!==n[a0(0x365,0x377)][a0(0x3a5,0x350)]()){if(a){if(f(j,n[a0(0x365,0x3ae)],e)===![])return-0x1;}else{if(f(n[a0(0x365,0x322)],j,e)===![])return-0x1;}}const q=a?n[a0(0x34a,0x340)]===a0(0x363,0x328):n[a0(0x34a,0x39b)]===a0(0x352,0x2fe);if(q)e['add'](n[a0(0x377,0x32f)]);else e[a0(0x34d,0x39f)](n[a0(0x377,0x34b)]);}l=k;j=n[a0(0x365,0x396)];}if(l===void 0x0){return k;}const m=this[a0(0x356,0x354)][l];if(a){e[a0(0x34d,0x38d)](m['assignment']);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a0(0x34d,0x33c)](m[a0(0x377,0x327)]);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this[a1(0x3e4,0x3c4)]=null;this[a1(0x3e3,0x40a)]=null;this[a1(0x438,0x443)]=![];this[a1(0x465,0x42d)]=![];this['hasInputOnEndDate']=![];this[a1(0x42c,0x437)]=null;function a1(a,b){return _enZ(a-0x6,b);}this[a1(0x42a,0x3e7)]=![];this['hasPreviousEffortValue']=![];}get[_enZ(0x3f7,0x3f3)](){function a2(a,b){return _enZ(a- -0x2,b);}const a=this['dispatcher'];return this['hasInputOnEffort']&&!Boolean(a[a2(0x466,0x4a9)]['get'](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a['input'][a2(0x478,0x4b0)](EndVar)&VariableInputState[a2(0x44d,0x483)])&&!Boolean(a[a2(0x466,0x491)][a2(0x478,0x49b)](DurationVar)&VariableInputState[a2(0x44d,0x44c)])&&!a[a2(0x3f1,0x3c3)];}get[_enZ(0x3e5,0x3d6)](){function a3(a,b){return _enZ(b-0x8c,a);}const a=this[a3(0x477,0x469)];return this[a3(0x524,0x4eb)]&&!Boolean(a[a3(0x4c4,0x4f4)][a3(0x504,0x506)](StartVar)&VariableInputState[a3(0x51f,0x4db)])&&!Boolean(a[a3(0x52a,0x4f4)][a3(0x4b5,0x506)](EndVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a3(0x4d3,0x4f4)]['get'](EffortVar)&VariableInputState[a3(0x494,0x4db)])&&!a[a3(0x48e,0x47f)];}get[_enZ(0x3f9,0x3ca)](){const a=this['dispatcher'];function a4(a,b){return _enZ(b- -0x3e3,a);}const b=this[a4(-0xe,0x43)];return this[a4(-0x35,0x1c)]&&(!b||!b[0x0])&&!Boolean(a[a4(0xda,0x85)]['get'](StartVar)&VariableInputState[a4(0x9a,0x6c)])&&!Boolean(a[a4(0x6d,0x85)][a4(0x72,0x97)](DurationVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a4(0x7d,0x85)][a4(0xde,0x97)](EffortVar)&VariableInputState[a4(0xb6,0x6c)])&&!a[a4(0x62,0x10)];}*['collectInfo'](){const a=this[a5(0x9c,0x5c)];this[a5(0xf0,0x137)]=yield HasProposedNotPreviousValue(a['$'][a5(0x12f,0xf8)]);this[a5(0x11d,0x11f)]=yield HasProposedNotPreviousValue(a['$'][a5(0x107,0xb4)]);this['hasInputOnEndDate']=yield HasProposedNotPreviousValue(a['$']['endDate']);this[a5(0x9b,0xc5)]=yield a['$'][a5(0xec,0xca)];this[a5(0xe4,0x129)]=yield ProposedArgumentsOf(a['$'][a5(0xc0,0xbb)]);this[a5(0xe2,0xfc)]=yield*a[a5(0xfa,0xf5)]();function a5(a,b){return _enZ(a- -0x342,b);}this[a5(0x10c,0x124)]=yield HasPreviousValue(a['$'][a5(0x12f,0x174)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this['event']=null;this['assigned']=null;this[a6(0xb9,0x9a)]=null;this['hasOnlyTimePhasedAssignments']=null;function a6(a,b){return _enZ(a- -0x3a0,b);}this[a6(0x6d,0x53)]=null;this[a6(0x41,0x8c)]=null;}*[_enZ(0x437,0x41c)](){const a=this[a7(-0x293,-0x26d)];const b=this[a7(-0x232,-0x284)]=yield a['$'][a7(-0x232,-0x221)];function a7(a,b){return _enZ(a- -0x671,b);}if(b[a7(-0x255,-0x222)]===0x0){this[a7(-0x218,-0x1c6)]=!![];this['hasOnlyTimePhasedAssignments']=![];this[a7(-0x290,-0x256)]=![];this[a7(-0x264,-0x20f)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a7(-0x218,-0x1f0)]===null&&e[a7(-0x241,-0x251)]){this[a7(-0x218,-0x228)]=![];c++;}if(this[a7(-0x25f,-0x2a6)]===null&&!e[a7(-0x241,-0x1fb)]){this[a7(-0x25f,-0x29d)]=![];c++;}if(this[a7(-0x290,-0x25a)]===null&&e[a7(-0x256,-0x272)]){this['hasPhantomTimePhasedAssignments']=!![];c++;}if(this['hasUnitsOnAllAssignments']===null&&!e[a7(-0x230,-0x1ee)]){this[a7(-0x264,-0x222)]=![];c++;}if(c===0x4)break;}if(this[a7(-0x218,-0x224)]===null)this[a7(-0x218,-0x1e0)]=!![];if(this[a7(-0x25f,-0x231)]===null)this[a7(-0x25f,-0x216)]=!![];if(this[a7(-0x290,-0x273)]===null)this['hasPhantomTimePhasedAssignments']=![];if(this[a7(-0x264,-0x27d)]===null)this[a7(-0x264,-0x28d)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{function a8(a,b){return _enZ(a- -0x629,b);}const b=a[a8(-0x22d,-0x1fc)];class c extends a{*[a8(-0x1bf,-0x1c7)](){const d=yield this['$'][a9(-0x14,0x33)];function a9(a,b){return a8(a-0x1d6,b);}let e=0x0;for(const f of d){const g=yield f['$'][a9(-0xf,-0x39)];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$'][a9(0x2a,0x5a)]);e+=h;}return e;}*[a8(-0x21d,-0x25b)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*['calculateProposedEndDate'](){return yield ProposedOrPreviousValueOf(this['$']['endDate']);}*['calculateProposedStartDateMin'](){const d=yield this['$'][aa(0x1c1,0x19d)];const e=yield this['$'][aa(0x11c,0x11f)];function aa(a,b){return a8(b-0x35b,a);}return d<e?d:e??d;}*[a8(-0x1d7,-0x1d2)](){function ab(a,b){return a8(a-0x38a,b);}const d=yield this['$'][ab(0x144,0x177)];const e=yield this['$'][ab(0x1da,0x223)];return d>e?d:e??d;}*[a8(-0x1f3,-0x236)](){const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[ac(0x40a,0x43f)];for(const h of d){if(yield*h[ac(0x440,0x41c)]()){const i=yield*h[ac(0x42f,0x3fa)]();e['set'](h,i);if(i<g){g=i;f=h;}}}function ac(a,b){return a8(b-0x615,a);}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a8(-0x239,-0x255)](){const d=yield this['$'][ad(0xad,0xbc)];const e=new Map();function ad(a,b){return a8(a-0x297,b);}let f;let g=Number[ad(0xc1,0xb0)];for(const h of d){if(yield*h['isTimePhased']()){const i=yield*h[ad(0x84,0xb6)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateAssignmentsTypeSelector'](){const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d['collectInfo']();return d;}*[a8(-0x1de,-0x216)](){const d=new TimePhasedEventSelector();d[ae(0x4c9,0x47d)]=this;yield*d[ae(0x522,0x539)]();function ae(a,b){return a8(a-0x714,b);}return d;}*['calculateTimePhasedDispatcher'](d){const e=TimePhasedEventAssignmentDispatcher[af(-0x1df,-0x199)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e[af(-0x155,-0x196)](d,this['$'][af(-0x192,-0x175)],StartVar);e[af(-0x1d5,-0x196)](d,this['$'][af(-0x1dd,-0x1cb)],EndVar);e[af(-0x1d5,-0x196)](d,this['$'][af(-0x191,-0x184)],DurationVar);e['collectInfo'](d,this['$']['effort'],EffortVar);const f=yield this['$'][af(-0x1dd,-0x18e)];function af(a,b){return a8(b-0x5c,a);}const g=[];const h=[];const i=[];const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$'][af(-0x1c3,-0x175)])]);h['push']([null,yield HasProposedNotPreviousValue(k['$']['endDate'])]);i[af(-0x1bd,-0x177)]([null,yield HasProposedNotPreviousValue(k['$'][af(-0x13c,-0x184)])]);j[af(-0x183,-0x177)]([null,yield HasProposedNotPreviousValue(k['$'][af(-0x122,-0x15c)])]);}if(g['some'](([l,m])=>m)){e[af(-0x167,-0x173)](TimePhasedStartDate);}if(h[af(-0x154,-0x176)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i[af(-0x12f,-0x176)](([l,m])=>m)){e[af(-0x1b5,-0x173)](TimePhasedDuration);}if(j[af(-0x16a,-0x176)](([l,m])=>m)){e[af(-0x1b3,-0x173)](TimePhasedEffort);}return e;}*[a8(-0x1b4,-0x176)](){const d=new Map();const e=new Map();const f=yield this['$']['assigned'];for(const g of f){if(yield*g[ag(-0x290,-0x2ac)]()){e['set'](g,{'proposedStartOffset':yield g['$'][ag(-0x2cb,-0x2b4)],'proposedEndOffset':yield g['$'][ag(-0x24e,-0x28b)]});}}function ag(a,b){return a8(a- -0x97,b);}return function*(h,i){const j=String(i[ah(0x486,0x4b2)]())+'/'+(h?'1':'0');let k=d['get'](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ah(0x42e,0x43f)](i,!![],m['proposedStartOffset'],TimeUnit['Millisecond']);n=yield*l[ah(0x4b7,0x4a3)](n,!![]);o=yield*l['calculateProjectedXDate'](n,!![]);}else{const p=yield l['$'][ah(0x44e,0x412)];o=yield*l['calculateProjectedXDateWithDuration'](i,![],p[ah(0x42d,0x45c)]?m['proposedEndOffset']:yield l['$'][ah(0x48f,0x446)],TimeUnit[ah(0x47c,0x454)]);n=yield*l[ah(0x3df,0x428)](o,![]);}if(n&&o)k[ah(0x4db,0x48d)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[ah(0x44c,0x468)]();d[ah(0x44f,0x43b)](j,k);function ah(a,b){return ag(b-0x6f7,a);}return k;};}*['calculateStartDate'](){function ai(a,b){return a8(a-0x652,b);}const d=yield*this[ai(0x482,0x4bd)]();if(d||(yield this['$'][ai(0x414,0x3e4)])){return yield*super[ai(0x430,0x468)]();}else{const e=yield this['$'][ai(0x487,0x49e)];const f=yield*this[ai(0x48d,0x457)](e['direction']);const g=yield this['$']['dispatcher'];const h=yield this['$']['timePhasedDispatcher'];const i=yield PreviousValueOf(this['$'][ai(0x481,0x4ce)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$']['unscheduled'])&&f){if(g[ai(0x43c,0x45c)]['get'](_ene)===CalculateProposed&&i!=null&&!h[ai(0x41c,0x46e)]){const j=yield ProposedOrPrevious;if(e[ai(0x484,0x4b0)]===Direction[ai(0x401,0x407)]){yield*this[ai(0x48b,0x4a8)](i,j,!![]);}else{if(j<i){yield*this[ai(0x48b,0x471)](i,j,![]);}}}return yield*super[ai(0x430,0x405)]();}else{if(e[ai(0x484,0x4b3)]===Direction[ai(0x401,0x412)]){const k=yield*super['calculateStartDate']();const l=yield this['$'][ai(0x416,0x445)];return l?l<k?l:k:k;}else{if(g['resolution']['get'](_ene)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[ai(0x431,0x407)](yield this['$'][ai(0x42b,0x45c)],![],yield this['$'][ai(0x472,0x46e)]);}if(g[ai(0x43c,0x40a)][ai(0x4a3,0x4a4)](_ene)===CalculateProposed&&!h[ai(0x41c,0x41c)]&&i!=null){const m=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDates'](i,m,![]);}return yield*super[ai(0x430,0x450)]();}}}}*[a8(-0x24d,-0x28e)](){const d=yield*this[aj(0x485,0x44b)]();function aj(a,b){return a8(a-0x655,b);}if(d||(yield this['$']['isSegmented'])){return yield*super[aj(0x408,0x447)]();}else{const e=yield this['$'][aj(0x48a,0x44d)];const f=yield*this[aj(0x490,0x450)](e[aj(0x487,0x492)]);if(!(yield*this[aj(0x473,0x468)]())&&!(yield this['$'][aj(0x46a,0x444)])&&f){return yield*super[aj(0x408,0x433)]();}else{if(e[aj(0x487,0x486)]===Direction[aj(0x404,0x3f3)]){const g=yield this['$'][aj(0x409,0x450)];const h=yield this['$'][aj(0x45a,0x48b)];if(g[aj(0x43f,0x43c)][aj(0x4a6,0x45a)](_end)===CalculateProposed&&h[aj(0x41f,0x3f5)]){return yield*this[aj(0x434,0x449)](yield this['$']['startDate'],!![],yield this['$']['duration']);}const i=yield PreviousValueOf(this['$']['endDate']);if(g['resolution'][aj(0x4a6,0x472)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[aj(0x48e,0x45c)](i,j,!![]);}return yield*super[aj(0x408,0x3db)]();}else{const k=yield*super[aj(0x408,0x45b)]();const l=yield this['$'][aj(0x4a5,0x472)];return l>k?l:k;}}}}*[a8(-0x1b2,-0x1df)](){const d=yield this['$']['assigned'];for(const e of d){const f=yield e['$'][ak(0x339,0x2e5)];if(!f['hasInputOnlyOnEffort'])return![];}function ak(a,b){return a8(b-0x533,a);}return!![];}*[a8(-0x21c,-0x242)](){const d=yield this['$']['assignmentsTypeSelector'];function al(a,b){return a8(b-0x33e,a);}return d[al(0xec,0x122)];}*[a8(-0x232,-0x1fc)](){const d=yield this['$']['selector'];function am(a,b){return a8(b-0x452,a);}return d[am(0x230,0x220)];}*[a8(-0x244,-0x1fe)](){function an(a,b){return a8(a-0x0,b);}const d=yield this['$'][an(-0x24e,-0x25d)];return d[an(-0x244,-0x23c)];}*[a8(-0x230,-0x200)](){function ao(a,b){return a8(b-0x56,a);}const d=yield this['$'][ao(-0x211,-0x1f8)];return d['isChangingOnlyEndDate'];}*[a8(-0x1c2,-0x1d2)](){const d=yield*this[ap(-0x44,-0x2d)]();function ap(a,b){return a8(b-0x1a3,a);}if(d||(yield this['$'][ap(-0x55,-0x9b)])){return yield*super[ap(-0x1,-0x1f)]();}else{const e=yield this['$'][ap(0x24,-0x28)];const f=e[ap(-0x4f,-0x2b)]===Direction[ap(-0x6a,-0xae)];const g=yield this['$'][ap(-0xfd,-0xa9)];const h=yield this['$']['timePhasedDispatcher'];if(g[ap(-0x9b,-0x73)]['get'](_enc)===durationFormula[ap(-0x13,-0x4c)]&&!h[ap(-0x7b,-0x93)]){const i=yield*super['calculateDuration']();yield*this[ap(-0x63,-0xac)](i,f);return i;}if(g[ap(-0x87,-0x73)][ap(-0x5,-0xc)](_enc)===CalculateProposed&&!h[ap(-0x8b,-0x93)]&&!(h[ap(-0x5c,-0x1e)]['get'](DurationVar)&VariableInputState[ap(-0x2,-0x37)])){const j=yield ProposedOrPrevious;return j;}if(g[ap(-0xbe,-0x73)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[ap(-0x48,-0x1e)]['get'](DurationVar)&VariableInputState[ap(-0x2,-0x37)]){const k=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDuration'](k,f);const l=yield*this['hasOnlyTimePhasedAssignments']();const m=yield this['$'][ap(-0x49,-0x65)];return l?k>m?m:k:k;}if(!h[ap(-0xd3,-0x93)]){const n=yield ProposedOrPrevious;yield*this[ap(-0xab,-0xac)](n,f);return n;}else if(h[ap(-0xd9,-0x93)]){const o=yield*this[ap(-0x67,-0x74)]();const p=yield this['$'][ap(-0x63,-0x65)];if(o){return p;}else{return Math[ap(-0x52,-0x6e)](p,yield ProposedOrPrevious);}}else{throw new Error('Unknown\x20duration\x20scenario');}}}*[a8(-0x237,-0x22d)](){const d=yield this['$'][aq(-0x22c,-0x1fc)];function aq(a,b){return a8(b-0x3e,a);}if(d[aq(-0x1bc,-0x1cf)]>0x0||(yield this['$']['isSegmented']))return yield*super[aq(-0x227,-0x1f9)]();else{const e=yield*this[aq(-0x11e,-0x16f)]();const f=yield this['$']['assignmentsByCalendar'];if(e===SchedulingMode[aq(-0x16f,-0x17c)]){if(f[aq(-0x185,-0x1cf)]>0x0){if(yield*this[aq(-0x1b2,-0x1f4)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][aq(-0x153,-0x17a)]);if(g<=h){return g;}else{const i=yield this['$'][aq(-0x155,-0x18d)];yield*this[aq(-0x1ba,-0x18f)](g,h,i[aq(-0x1ab,-0x190)]===Direction['Forward']);return g;}}else{return yield*this[aq(-0x1c8,-0x175)]();}}else{return yield*super['calculateEffort']();}}else{return yield*this[aq(-0x14e,-0x175)]();}}}*[a8(-0x1b3,-0x1bc)](){if(yield this['$'][ar(0x262,0x29b)]){return yield*super[ar(0x2df,0x326)]();}function ar(a,b){return a8(b-0x4d9,a);}const d=yield this['$']['assigned'];if(d['size']>0x0){return yield*this[ar(0x310,0x2f5)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][ar(0x2fe,0x321)]);if(e===void 0x0){return yield*this[ar(0x2e9,0x323)](yield this['$']['startDate'],yield this['$']['endDate']);}else{return e;}}}*[a8(-0x1e4,-0x1df)](){let d=0x0;const e=yield this['$'][as(-0x19f,-0x18c)];for(const f of e){d+=yield*this[as(-0x189,-0x1d4)]()[as(-0x181,-0x1aa)](yield f['$'][as(-0x16d,-0x147)],yield f['$'][as(-0x1e3,-0x1f7)],TimeUnit[as(-0x1c1,-0x1c3)]);}function as(a,b){return a8(a-0x4b,b);}return yield*this[as(-0x189,-0x161)]()[as(-0x181,-0x1d7)](d,TimeUnit[as(-0x1c1,-0x1f1)],yield this['$'][as(-0x1e3,-0x22e)]);}*[a8(-0x226,-0x1fa)](d){function at(a,b){return a8(b- -0xa1,a);}return yield*d[at(-0x2c3,-0x2c7)](null);}*[a8(-0x1ff,-0x1bf)](d){function au(a,b){return a8(b-0x107,a);}if(yield*this[au(-0x168,-0x125)]()){const e=this;const f=yield this['$'][au(-0x102,-0xb1)];return function*(g){return yield*e['calculateProjectedXDateByEffort'](g,d,f);};}else{return yield*super[au(-0xdb,-0xf8)](d);}}*[a8(-0x22c,-0x1dc)](){const d=yield*this['effectiveSchedulingMode']();const e=yield this['$'][av(0x10a,0x105)];function av(a,b){return a8(a-0x2f0,b);}return d!==SchedulingMode[av(0xab,0xea)]&&d!==SchedulingMode[av(0x136,0x175)]&&(e||d===SchedulingMode[av(0xad,0x6c)])&&!(yield*this[av(0xac,0xec)]())&&!(yield*this[av(0xc0,0xd5)]())||d===SchedulingMode[av(0x128,0xd7)]&&(yield*this[av(0x13e,0x164)]())&&(yield*this['hasUnitsOnAllAssignments']());}*[a8(-0x254,-0x236)](){function aw(a,b){return a8(a-0x3de,b);}if((yield*this['hasOnlyTimePhasedAssignments']())&&(yield*this['isDurationDefinedByEffort']())){return(yield this['$'][aw(0x226,0x214)])>0x0;}else{return yield*super[aw(0x18a,0x154)]();}}*['expandTrailingAssigmentsByDuration'](d,e=!![]){const f=yield this['$'][ax(0x11f,0x104)];function ax(a,b){return a8(b-0x30c,a);}if(f==null)return;if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][ax(0xb8,0xe5)]);const h=yield*this[ax(0x98,0xeb)](g,!![],d-f,void 0x0,{'purpose':'positioning'});yield*this[ax(0x157,0x145)](g,h,e);}else{const i=yield PreviousValueOf(this['$'][ax(0x13b,0x13b)]);const j=yield*this['calculateProjectedXDateWithDuration'](i,![],d-f,void 0x0,{'purpose':ax(0x118,0xf7)});yield*this[ax(0x177,0x145)](i,j,e);}}}*[a8(-0x1c7,-0x1e2)](d,e,f=!![]){function ay(a,b){return a8(b-0x31b,a);}if(d[ay(0x128,0x16d)]()===e['getTime']()){return;}const g=yield this['$']['assigned'];const h=[];for(const i of g){if(yield*i[ay(0x118,0x122)]()){if(f){const j=yield PreviousValueOf(i['$'][ay(0xaa,0xf4)]);if(j&&j[ay(0x1bb,0x16d)]()===d[ay(0x1bc,0x16d)]())h[ay(0xf6,0x148)](i);}else{const k=yield PreviousValueOf(i['$'][ay(0x110,0x14a)]);if(k&&k[ay(0x16e,0x16d)]()===d[ay(0x193,0x16d)]())h[ay(0x133,0x148)](i);}}}this[ay(0x14a,0x15b)][ay(0x110,0x109)]({'commitFinalized':{'fn':()=>{function az(a,b){return ay(a,b- -0x2d3);}h[az(-0x174,-0x19b)](l=>{function aA(a,b){return az(a,b-0x5e6);}this[aA(0x46d,0x455)][aA(0x47e,0x465)](f?l['$'][aA(0x415,0x407)]:l['$'][aA(0x42b,0x45d)],e,![]);});},'once':!![]}});}*['expandTrailingAssigmentsByEffort'](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aB(0x292,0x27f)]):yield PreviousValueOf(this['$'][aB(0x2a7,0x2d5)]);const h=yield this['$'][aB(0x2cb,0x2bc)];const i=new Set();for(const l of h){if(yield*l[aB(0x279,0x2ad)]()){if(f){const m=yield PreviousValueOf(l['$'][aB(0x287,0x27f)]);if(m&&m[aB(0x349,0x2f8)]()===g['getTime']())i['add'](l);}else{const n=yield PreviousValueOf(l['$']['startDate']);if(n&&n[aB(0x2bc,0x2f8)]()===g[aB(0x2a6,0x2f8)]())i['add'](l);}}}const j=yield*this[aB(0x349,0x2fb)](function*(o){function aC(a,b){return aB(b,a-0x40);}return i[aC(0x322,0x2f5)](o)||!(yield*o[aC(0x2ed,0x2f5)]());});function aB(a,b){return a8(b-0x4a6,a);}const k=yield*this[aB(0x25e,0x2a4)](g,f,d-e,void 0x0,void 0x0,j);this['project'][aB(0x2b5,0x294)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aB(b,a- -0x463);}i[aD(-0x1a0,-0x1e0)](o=>{function aE(a,b){return aD(a-0x68d,b);}this[aE(0x4f7,0x4f6)]['write'](f?o['$'][aE(0x4a9,0x4d5)]:o['$'][aE(0x4ff,0x4f3)],k,![]);});},'once':!![]}});}*[a8(-0x224,-0x1e2)](){return!![];}*[a8(-0x1df,-0x1cd)](){const d=yield this['$'][aF(-0x116,-0x124)];function aF(a,b){return a8(a-0xb5,b);}return d[aF(-0x119,-0xf8)]===Direction[aF(-0x19c,-0x1c7)]?yield*this[aF(-0x18d,-0x1d6)](yield this['$']['proposedStartDateMin'],(yield*this[aF(-0x193,-0x18c)]())?yield*this[aF(-0x163,-0x16d)]():yield this['$'][aF(-0xfb,-0x141)],void 0x0,{'isForward':!![]}):yield*this[aF(-0x18d,-0x1be)](yield this['$'][aF(-0x187,-0x196)],yield this['$'][aF(-0x18c,-0x1a0)],void 0x0,{'isForward':![]});}*[a8(-0x242,-0x201)](d,e,f,g,...h){const i=yield this['$'][aG(-0x229,-0x24c)];const j=g?.[aG(-0x21a,-0x230)]!==void 0x0?g:i[aG(-0x22c,-0x268)]===Direction[aG(-0x2af,-0x2bf)]?Object['assign']({},g,{'isForward':!![]}):Object['assign']({},g,{'isForward':![]});function aG(a,b){return a8(a- -0x5e,b);}return yield*super[aG(-0x2a0,-0x2ae)](d,e,f,j,...h);}*[a8(-0x1dd,-0x1db)](){function aH(a,b){return a8(b-0x48e,a);}return yield*this[aH(0x29d,0x2e3)](function*(d){function aI(a,b){return aH(b,a- -0x136);}return!(yield*d[aI(0x15f,0x1aa)]());});}*[a8(-0x21e,-0x232)](){function aJ(a,b){return a8(a-0x118,b);}return yield*this[aJ(-0x93,-0x5f)]();}*['collectAssignmentsByCalendar'](d){function aK(a,b){return a8(a-0x5d9,b);}const e=yield this['$'][aK(0x3e3,0x42d)];const f=yield this['$'][aK(0x3ef,0x3c0)];const g=this[aK(0x405,0x44f)]();const h=yield*this[aK(0x3f7,0x408)]();const i=(yield this['$'][aK(0x392,0x369)])||h&&!g[aK(0x3db,0x3bc)];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aK(0x3f4,0x3a8)];const m=i||(yield k['$'][aK(0x392,0x35b)]);if(l){const n=m?e:yield l['$'][aK(0x3e3,0x3b3)];let o=j['get'](n);if(!o){o=[];j[aK(0x3b4,0x3d3)](n,o);}o[aK(0x406,0x3c3)](k);}}}return j;}*[a8(-0x23d,-0x27d)](d,e){const f=d[aL(0xc4,0x89)]??aL(0x87,0x73);if(f===aL(0x87,0xa9)||(yield*this[aL(0xcc,0xf8)]())||d['ignoreSegments']||(yield this['$'][aL(0x5e,0x8c)])){return yield*super[aL(0x5f,0x38)](d,e);}const g=d['isForward']!==![];const h=yield this['$'][aL(0xa6,0xa9)];const i=this[aL(0xc8,0x113)]();const j=yield*this[aL(0xba,0xea)]();const k=yield this['$']['regularAssignmentsByCalendar'];const l=yield this['$'][aL(0x79,0x5d)];const m=(yield this['$'][aL(0x55,0x5c)])||d[aL(0x55,0xa6)];const n=d[aL(0xb5,0xce)]??![];const o=i[aL(0x83,0xc4)];function aL(a,b){return a8(a-0x29c,b);}if(o){d=Object[aL(0xab,0xbe)]({'maxRange':o},d);}const p=yield this['$'][aL(0x7c,0xb6)];const q=yield*p(g,g?d[aL(0xcb,0xf4)]:d[aL(0x75,0x45)]);let r=g?0x0:q[aL(0x9f,0xea)][aL(0xbb,0xca)]-0x1;let s=g?d[aL(0xcb,0xa9)]:d[aL(0x75,0x33)];const t=new Set();const u=l[aL(0x5f,0x41)](d,(v,w,x)=>{const y=x['getCalendarsWorkStatus']();const z=x['getCalendarsWorking']();r=q[aM(-0x106,-0xf3)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];function aM(a,b){return aL(a- -0x17a,b);}r=q[aM(-0x106,-0xb5)](g,r,s,g?w:v,t,(A,B,C)=>{function aN(a,b){return aM(b- -0x7e,a);}if(y[aN(-0x148,-0x10b)](h)&&(n||someInSet(C,D=>{function aO(a,b){return aN(a,b-0x457);}return m||D['ignoreResourceCalendar']||y[aO(0x346,0x34c)](D[aO(0x2d5,0x316)][aO(0x2bf,0x305)])||j&&!i[aO(0x313,0x2fd)];})||z[aN(-0x16d,-0x12e)](D=>k[aN(-0xd1,-0x120)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*[a8(-0x210,-0x1fc)](){const d=yield this['$'][aP(-0x12e,-0x167)];for(const e of d){if(yield*e[aP(-0x148,-0x19c)]())return![];}function aP(a,b){return a8(a-0xbc,b);}return!![];}*['hasOnlyRegularAssignments'](){function aQ(a,b){return a8(a-0x579,b);}const d=yield this['$'][aQ(0x3be,0x397)];return d[aQ(0x3a9,0x3ed)];}*['hasOnlyTimePhasedAssignments'](){const d=yield this['$'][aR(0x293,0x267)];function aR(a,b){return a8(a-0x44e,b);}return d['hasOnlyTimePhasedAssignments'];}*[a8(-0x248,-0x1fd)](){function aS(a,b){return a8(b-0x4b,a);}const d=yield this['$'][aS(-0x192,-0x170)];return d[aS(-0x20c,-0x1fd)];}*['calculateMinAssignmentProposedStartDate'](){let d=MAX_DATE;function aT(a,b){return a8(a-0x10a,b);}const e=yield this['$'][aT(-0xe0,-0x11e)];for(const f of e){const g=yield f[aT(-0x100,-0xb5)]['$'][aT(-0xc7,-0xf3)];if(g&&g<d)d=g;}return d['getTime']()-MAX_DATE[aT(-0xa4,-0x6f)]()?d:null;}*[a8(-0x22f,-0x284)](){let d=MIN_DATE;const e=yield this['$']['assigned'];function aU(a,b){return a8(a-0x1ce,b);}for(const f of e){const g=yield f['proposedMirror']['$'][aU(-0x59,-0xa4)];if(g&&g>d)d=g;}return d[aU(0x20,-0x1f)]()-MIN_DATE[aU(0x20,-0x20)]()?d:null;}*[a8(-0x218,-0x1f9)](){let d=MIN_DATE;const e=yield this['$'][aV(0x18c,0x194)];function aV(a,b){return a8(b-0x37e,a);}for(const f of e){const g=(yield*f[aV(0x1a9,0x185)]())?(yield*f[aV(0x160,0x17a)]())?yield f['proposedMirror']['$']['endDate']:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aV(0x1b2,0x1d0)]()-MIN_DATE['getTime']()?d:null;}*[a8(-0x1b6,-0x1ef)](d,e,f){function aW(a,b){return a8(a-0x129,b);}const g=yield*this['hasOnlyRegularAssignments']();if(g||(yield this['$']['isSegmented'])){return yield*super[aW(-0x8d,-0x61)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aW(-0xc0,-0x105)];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][aW(-0x83,-0xb6)];}i[aW(-0xfc,-0x150)](l,n);}let j=0x0;const k=Object[aW(-0xc8,-0xd5)](yield*this[aW(-0xd3,-0x112)](),{'startDate':d,'endDate':e},{'purpose':aW(-0x116,-0x152)});yield*this[aW(-0x114,-0xc0)](k,(p,q,r,s)=>{const t=r[aX(-0x3a,-0x23)]();function aX(a,b){return aW(a-0xdd,b);}const u=p['getTime'](),v=q[aX(0x58,0x20)](),w=v-u;let x=0x0;for(const y of t){x+=i[aX(0x57,0x75)](y)||0x0;}if(!f){s['forEach'](z=>{function aY(a,b){return aX(a- -0x120,b);}x+=z[aY(-0xc6,-0xd4)];});}j+=x*w*0.01;});return yield*this[aW(-0xab,-0xdc)]()[aW(-0xa3,-0xf6)](j,TimeUnit['Millisecond'],yield this['$'][aW(-0x105,-0x123)]);}*['calculateProjectedXDateWithDuration'](d,e=!![],f,g,h){const i=yield*super[aZ(-0x120,-0x13c)](d,e,f,g,h);if(yield this['$'][aZ(-0x13d,-0x139)])return i;const j=yield*this[aZ(-0x116,-0x141)]();if(j){const k=yield this['$'][aZ(-0xca,-0x9a)];if(k[aZ(-0xcd,-0x110)]===Direction[aZ(-0x150,-0xfd)]&&e===![]){const l=yield this['$']['proposedStartOffsets'];const m=l[aZ(-0xb0,-0xc2)];if(m>0x0){return yield*l[aZ(-0xff,-0x14f)]['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit['Millisecond']);}}else if(k[aZ(-0xcd,-0x95)]===Direction[aZ(-0xc5,-0xfd)]&&e===!![]){const n=yield this['$'][aZ(-0x149,-0xf6)];const o=n[aZ(-0xb0,-0x6a)];if(o>0x0){return yield*n[aZ(-0xff,-0x130)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit[aZ(-0x10b,-0x135)]);}}}function aZ(a,b){return a8(a-0x101,b);}return i;}*[a8(-0x1f4,-0x1b5)](){const d=yield*this['effectiveSchedulingMode']();function b0(a,b){return a8(a-0xe0,b);}if(d===SchedulingMode[b0(-0x165,-0x11c)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b[b0(-0x114,-0xd4)]['call'](this);}}*[a8(-0x202,-0x23b)](d,e=!![],f,g,h,i){if(yield this['$'][b1(0x1ad,0x1cc)]){return yield*super[b1(0x201,0x208)](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b1(0x284,0x252)];g=g!==void 0x0?g:yield this['$']['effortUnit'];const j=yield*this[b1(0x1f7,0x236)]()[b1(0x269,0x23e)](f,g,TimeUnit[b1(0x1f6,0x1fe)]);function b1(a,b){return a8(b-0x40a,a);}if(d==null||f==null)return null;let k=d[b1(0x2af,0x25c)]();let l=j;if(l===0x0)return new Date(k);const m=Object[b1(0x220,0x219)](yield*this[b1(0x210,0x216)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const n=yield*this[b1(0x230,0x23a)]();if(h?.[b1(0x1f8,0x232)]==='positioning'||n){const r=new Map();const s=yield this['$']['assigned'];let t=0x0;const u=new Map();for(const x of s){const y=yield x['$'][b1(0x28a,0x25e)];t+=y;u[b1(0x209,0x1e5)](x,y);}if(t===0x0){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}for(const z of s){r[b1(0x1fb,0x1e5)](z,j*u[b1(0x253,0x25b)](z)/t);}const v=yield this['$'][b1(0x1b8,0x1f6)];const w=new Map();for(const [A,B]of v){for(const C of B){w['set'](C,A);}}yield*this[b1(0x1ef,0x1cd)](m,(D,E,F)=>{function b2(a,b){return b1(a,b-0x16f);}const G=D[b2(0x401,0x3cb)](),H=E[b2(0x3eb,0x3cb)](),I=H-G;for(const J of s){const K=w[b2(0x39c,0x3ca)](J);if(F[b2(0x31c,0x324)]()[b2(0x386,0x3ca)](K)){const L=r['get'](J);let M=u[b2(0x3d4,0x3ca)](J);const N=M*I*0.01;if(N>=L){const O=e?G+L/(0.01*M):H-L/(0.01*M);if(e&&O>k||!e&&O<k){k=O;}r[b2(0x35e,0x373)](J);}else{r[b2(0x303,0x354)](J,L-N);}}}if(r['size']===0x0)return![];});return new Date(k);}const o=i?i:yield this['$']['regularAssignmentsByCalendar'];const p=new Map();(yield this['$'][b1(0x24c,0x1f6)])[b1(0x251,0x227)]((D,E)=>{function b3(a,b){return b1(b,a-0x12f);}D[b3(0x356,0x30e)](F=>p['set'](F,E));});const q=new Map();for(const [D,E]of o){let F=0x0;for(const G of E){F+=yield G['$']['units'];}q[b1(0x1af,0x1e5)](D,F);}yield*this[b1(0x21b,0x1cd)](m,(H,I,J,K)=>{const L=J[b4(0x352,0x355)]();const M=J[b4(0x33d,0x373)]();const N=H[b4(0x3e4,0x3d6)](),O=I[b4(0x3e4,0x40b)](),P=O-N;function b4(a,b){return b1(b,a-0x188);}let Q=0x0;for(const S of L){Q+=q[b4(0x3e3,0x410)](S)||0x0;}if(!i){K['forEach'](T=>{function b5(a,b){return b4(b- -0x3e0,a);}if(M['get'](p[b5(0x15,0x3)](T)))Q+=T[b5(0x8,0x6)];});}const R=Q*P*0.01;if(R>=l){k=e?N+l/(0.01*Q):O-l/(0.01*Q);return![];}else{l-=R;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x236)],a8(-0x1be,-0x19e),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x246,-0x1f8),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x229,-0x1f5),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x241,-0x24a),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x27c)],a8(-0x23c,-0x207),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x1b0,-0x15f),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x225)],a8(-0x208,-0x1d8),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x1fb)],a8(-0x1bb,-0x1f3),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x27f)],'proposedTotalUnits',void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[a8(-0x22d,-0x1fa)],a8(-0x1fb,-0x1f4),void 0x0);__decorate([field()],c['prototype'],a8(-0x24e,-0x229),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x20b,-0x22c),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x201)],a8(-0x24a,-0x20f),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x218)],a8(-0x1e9,-0x1d2),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x220,-0x228),void 0x0);__decorate([calculate('proposedTotalUnits')],c[a8(-0x22d,-0x25d)],'calculateProposedTotalUnits',null);__decorate([calculate('proposedStartDate')],c['prototype'],'calculateProposedStartDate',null);__decorate([calculate('proposedEndDate')],c[a8(-0x22d,-0x262)],a8(-0x1ec,-0x1b3),null);__decorate([calculate('proposedStartDateMin')],c[a8(-0x22d,-0x264)],a8(-0x250,-0x20b),null);__decorate([calculate('proposedEndDateMax')],c['prototype'],a8(-0x1d7,-0x1e4),null);__decorate([calculate('proposedStartOffsets')],c[a8(-0x22d,-0x20b)],a8(-0x1f3,-0x1a1),null);__decorate([calculate(a8(-0x24a,-0x276))],c[a8(-0x22d,-0x266)],a8(-0x239,-0x272),null);__decorate([calculate(a8(-0x1bb,-0x1f3))],c[a8(-0x22d,-0x259)],a8(-0x1b5,-0x1db),null);__decorate([calculate(a8(-0x24e,-0x243))],c[a8(-0x22d,-0x256)],a8(-0x1de,-0x232),null);__decorate([calculate(a8(-0x1fb,-0x214))],c['prototype'],a8(-0x20f,-0x25f),null);__decorate([calculate(a8(-0x220,-0x25e))],c[a8(-0x22d,-0x21c)],a8(-0x1b4,-0x1b2),null);__decorate([calculate('proposedAssignmentDuration')],c['prototype'],a8(-0x1df,-0x1a0),null);__decorate([calculate(a8(-0x1e9,-0x217))],c['prototype'],'calculateRegularAssignmentsByCalendar',null);__decorate([calculate(a8(-0x23c,-0x27e))],c[a8(-0x22d,-0x281)],a8(-0x231,-0x244),null);__decorate([calculate(a8(-0x1b0,-0x180))],c[a8(-0x22d,-0x212)],a8(-0x22f,-0x23d),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){const c=a();function m(a,b){return _enb(b- -0x316,a);}while(!![]){try{const d=parseInt(m(-0x15a,-0x13f))/0x1*(parseInt(m(-0x136,-0x120))/0x2)+-parseInt(m(-0xb0,-0xe9))/0x3*(parseInt(m(-0x14d,-0x133))/0x4)+-parseInt(m(-0xf1,-0x126))/0x5*(parseInt(m(-0xdc,-0xf5))/0x6)+-parseInt(m(-0x105,-0x11c))/0x7+parseInt(m(-0x168,-0x13e))/0x8+parseInt(m(-0x110,-0x10c))/0x9+parseInt(m(-0x105,-0x117))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6107a));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[n(0x11e,0x138)](b,e):f,j;if(typeof Reflect===n(0x12b,0x14c)&&typeof Reflect[n(0x16c,0x181)]===n(0x155,0x175))h=Reflect[n(0x16c,0x16c)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function n(a,b){return _enb(a- -0xc0,b);}return g>0x3&&h&&Object[n(0x160,0x17f)](b,e,h),h;};function _ena(){const M=['$name','2800701totKbS','getDefaultCycleEffectClass','getDefaultResourceAllocationInfoClass','autoScheduleManualTasksOnSecondPass','all','endDate','replica','dependencyConstraintIntervalClass','toEvent','deprecate','hasInputOnAssignments','function','autoCalculatePercentDoneForParentTasks','getDefaultResourceModelClass','prototype','SchedulerProProjectMixin','getDefaultDependencyModelClass','startDate','proposedMirror','autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts','contains','getInvalidDependencies','defineProperty','1902rSYhzZ','autoPostponeConflicts','string','dateConstraintIntervalClass','autoSetConstraints','deactivateDependencyCycleEffectResolutionClass','branch','includeAsapAlapAsConstraints','active','modelClass','validateDependency','decorate','12450RsiucS','Auto','endDateConstraintIntervals','calculateDurationPure','throw','clearBranch','currency','resourceAllocationInfoClass','defaultConfig','effort','getResolutions','removeEntity','some','graph','allowPostponedConflicts','new','earlySchedule','afterConfigure','NoError','includes','isArray','test','transaction','bwcConflictPostpone','matchDependencyBySourceAndTargetEvent','filter','isValidDependency','getTime','259355BxhHMq','3421624QHGzOx','startDateConstraintIntervals','SchedulerPro','gantt','startedTaskScheduling','effortUnit','getOwnPropertyDescriptor','construct','getDependencies','getDefaultAssignmentModelClass','deactivateDependencyConflictResolutionClass','536XKUKUR','internalOnCommitFinalized','getDependencyCycleDetectionIdentifiers','getDependencyStore','candidate','autoPostponedConflicts','durationUnit','SchedulerProTimePhasedProjectMixin','object','boolean','duration','L{descriptionTpl}','push','8835cUDnyg','segmentsToCleanup','readAsync','isInitialTransaction','autoMergeAdjacentSegments','getType','2gqcpxF','assignmentStore','removeDependencyConflictResolutionClass','forEach','4655315OhSYCV','DeactivateDependencyCycleEffectResolution','_resolutions','isDependencyCyclic','getDefaultEventModelClass','11804710vxexXY','hasInputOnEffort','finalizeCommitHook','7.0.0','ion','_invalidDependencies','proposedTimePhasedWrites','getDescription','selector','fromEvent'];_ena=function(){return M;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CI}from'@bryntum/engine-thin/lib/ChronoGraph/collection/Iterator.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect}from'../../../chrono/Replica.js';import{SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';function _enG(a,b){return _enb(b-0x31f,a);}import{DependenciesCalendar,DependencyValidationResult,ProjectType,StartedTaskScheduling}from'../../../scheduling/Types.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{SchedulerBasicProjectMixin}from'../scheduler_basic/SchedulerBasicProjectMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{DateConstraintInterval}from'./HasDateConstraintMixin.js';import{DeactivateDependencyResolution,DependencyConstraintInterval,RemoveDependencyResolution}from'./ConstrainedByDependenciesEventMixin.js';import{SchedulerProDependencyMixin}from'./SchedulerProDependencyMixin.js';import{SchedulerProEvent,SchedulerProTimePhasedEvent}from'./SchedulerProEvent.js';import{ResourceAllocationInfo,SchedulerProResourceMixin}from'./SchedulerProResourceMixin.js';import{SchedulerProTimePhasedAssignmentMixin}from'./SchedulerProTimePhasedAssignmentMixin.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{HasCostSubEventsMixin}from'./HasCostSubEventsMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';class SchedulerProProjectMixin extends Mixin([SchedulerBasicProjectMixin,ConstrainedEarlyEventMixin,HasChildrenMixin,HasCostSubEventsMixin],a=>{const b=a[o(0x51d,0x4e8)];class c extends a{constructor(){function p(a,b){return o(a,b- -0x5da);}super(...arguments);this[p(-0xe4,-0x117)]=!![];}static get[o(0x4ff,0x505)](){return{'segmentModelClass':SchedulerProEventSegment};}['construct'](d={}){this['segmentsToCleanup']=new Set();this[q(-0x12f,-0xff)]=d[q(-0x11f,-0xff)]??![];this[q(-0x15f,-0x152)]=d[q(-0x133,-0x152)]??![];b[q(-0x140,-0x145)]['call'](this,d);this[q(-0xd8,-0xfc)]=d[q(-0x12c,-0xfc)]??!![];function q(a,b){return o(a,b- -0x5f4);}if(!this[q(-0xfc,-0xf0)])this[q(-0x101,-0xf0)]=this[q(-0x13a,-0x118)]();this[q(-0x14d,-0x121)]({'commitFinalized':this[q(-0x117,-0x140)]});}set[o(0x4de,0x4b8)](d){function r(a,b){return o(a,b- -0x46c);}_end[r(0x62,0x77)](r(0x15,0x3f),r(0x51,0x66),r(0x4f,0x81));this[r(0xbc,0x86)]=d;}get[o(0x4c3,0x4b8)](){function s(a,b){return o(a,b- -0xa8);}_end[s(0x461,0x43b)]('gantt',s(0x411,0x42a),s(0x462,0x445));return this[s(0x478,0x44a)];}[o(0x4b8,0x4d1)](d){this[t(0x39c,0x3a3)]=![];function t(a,b){return o(b,a- -0x127);}return![];}[o(0x4e8,0x4b4)]({transactionResult:d}){function u(a,b){return o(a,b- -0x319);}this[u(0x229,0x1f1)]?.['removeEntities']([...this[u(0x196,0x1a8)]]);this[u(0x18c,0x1a8)]['clear']();}['getDefaultEventStoreClass'](){return ChronoEventStoreMixin;}['getDefaultResourceAllocationInfoClass'](){return ResourceAllocationInfo;}[o(0x464,0x49c)](){b[v(0x16,0x22)]['apply'](this,arguments);this[v(0x6e,0x6a)]=this['dateConstraintIntervalClass']||DateConstraintInterval;function v(a,b){return o(b,a- -0x486);}this[v(0x5b,0x29)]=this[v(0x5b,0x55)]||DependencyConstraintInterval;}['getType'](){function w(a,b){return o(b,a- -0x15);}return ProjectType[w(0x495,0x4b4)];}[o(0x4d2,0x4db)](){return SchedulerProCycleEffect;}[o(0x4fa,0x4ce)](){return SchedulerProEvent;}[o(0x4e5,0x4ea)](){return SchedulerProDependencyMixin;}['getDefaultAssignmentModelClass'](){return SchedulerProAssignmentMixin;}[o(0x516,0x4e7)](){return SchedulerProResourceMixin;}async[o(0x4df,0x4fb)](d,e,f,g){function x(a,b){return o(b,a- -0xb1);}let h;if(g){h=Array[x(0x3ee,0x3d6)](g)?g:[g];}const i=CI(d['outgoingDeps'])[x(0x458,0x48c)](j=>j[x(0x431,0x40d)]===e&&!h?.[x(0x3ed,0x420)](j));if(i){return DependencyValidationResult['DuplicatingDependency'];}if(d[x(0x43d,0x46f)](e)||e['contains'](d)){return DependencyValidationResult['CyclicDependency'];}if(await this[x(0x41c,0x42d)](d,e,f,h)){return DependencyValidationResult['CyclicDependency'];}return DependencyValidationResult[x(0x3ec,0x3d1)];}*['calculateDurationPure'](){const d=yield this['$'][y(0x1e2,0x20b)];const e=yield this['$'][y(0x21b,0x1ff)];if(!d||!e)return null;function y(a,b){return o(a,b- -0x2e0);}if(d>e)return 0x0;return yield*super[y(0x22b,0x220)]();}async['isValidDependency'](d,e,f,g){const h=await this[z(0x7a,0x9b)](d,e,f,g);function z(a,b){return o(a,b- -0x460);}return h===DependencyValidationResult['NoError'];}['getDependencyCycleDetectionIdentifiers'](d,e){function A(a,b){return o(a,b-0xac);}return[e[A(0x520,0x547)]['$'][A(0x537,0x555)],e[A(0x562,0x547)]['$'][A(0x5af,0x5ab)]];}async[o(0x4a2,0x4cd)](d,f,g,h){const i=this[B(0x405,0x411)]()[B(0x449,0x417)];const j=new i({'fromEvent':d,'toEvent':f,'type':g});const k=this[B(0x42f,0x438)][B(0x446,0x44f)]({'autoCommit':![],'onComputationCycle':B(0x450,0x480)});if(h){if(!Array[B(0x3ee,0x3c8)](h)){h=[h];}h[B(0x418,0x3f3)](l=>k[B(0x457,0x467)](l));}k['addEntity'](j);function B(a,b){return o(b,a- -0xb1);}j['project']=this;try{await Promise[B(0x42d,0x466)](this[B(0x404,0x3f8)](d,f)['map'](l=>k[B(0x411,0x430)](l)));return![];}catch(l){if(/cycle/i[B(0x3ef,0x3ef)](l))return!![];if(!/conflict/i['test'](l)){throw l;}}finally{k[B(0x451,0x468)]();}}async['isValidDependencyModel'](d,e){function C(a,b){return o(a,b- -0x679);}return this[C(-0x1b5,-0x1d4)](d[C(-0x1c8,-0x1a1)],d[C(-0x1a1,-0x197)],d['type'],e);}}c['$name']=o(0x501,0x4e9);__decorate([model_field({'type':o(0x512,0x4f3),'defaultValue':DependenciesCalendar['ToEvent']})],c[o(0x514,0x4e8)],'dependenciesCalendar',void 0x0);__decorate([model_field({'type':o(0x4ba,0x4bc),'defaultValue':!![]})],c['prototype'],o(0x4ee,0x4e6),void 0x0);__decorate([model_field({'type':o(0x4f8,0x4f3),'defaultValue':StartedTaskScheduling[o(0x52d,0x4fe)]})],c[o(0x51d,0x4e8)],o(0x4c0,0x4ac),void 0x0);__decorate([model_field({'type':o(0x49f,0x4bc),'defaultValue':!![]})],c['prototype'],'addConstraintOnDateSet',void 0x0);__decorate([model_field({'type':o(0x4a2,0x4bc),'defaultValue':!![]})],c[o(0x50f,0x4e8)],o(0x4df,0x4dd),void 0x0);__decorate([model_field({'type':o(0x4ce,0x4bc),'defaultValue':![]})],c[o(0x4d1,0x4e8)],o(0x51e,0x50b),void 0x0);__decorate([model_field({'type':o(0x4b2,0x4bc),'defaultValue':![]})],c[o(0x506,0x4e8)],'autoPostponeConflicts',void 0x0);function o(a,b){return _enb(b-0x2d0,a);}__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[o(0x4ca,0x4e8)],o(0x4a5,0x4c4),void 0x0);__decorate([model_field({'persist':![]})],c[o(0x4f7,0x4e8)],o(0x503,0x503),void 0x0);return c;}){}class SchedulerProTimePhasedProjectMixin extends Mixin([SchedulerProProjectMixin],a=>{class b extends a{[D(-0x12,0x27)](){return ProjectType['SchedulerPro'];}[D(0x60,0x30)](){return SchedulerProTimePhasedEvent;}[D(0x35,0x13)](){return SchedulerProTimePhasedAssignmentMixin;}[D(0x12,0x16)]({transactionResult:c}){function E(a,b){return D(a,b- -0x78);}super[E(-0x51,-0x62)]({'transactionResult':c});this[E(-0x49,-0x4f)][E(-0x1f,-0x4d)](d=>{if(!d['graph']){return;}const e=c[F(0x204,0x231)][F(0x210,0x247)][F(0x267,0x265)];const f=d[F(0x288,0x27c)];const g=d['event']?.[F(0x259,0x267)];const h=g?g[F(0x276,0x260)]||g[F(0x24b,0x274)]&&g['hasPreviousEffortValue']:![];if(f[F(0x295,0x27b)]!=null&&f['startDate'][F(0x202,0x236)]()!==d[F(0x2a6,0x27b)]?.[F(0x20e,0x236)]()){e['push']([f['$'][F(0x276,0x27b)],d['startDate']]);}if(f[F(0x256,0x26f)]!=null&&f[F(0x23a,0x26f)][F(0x233,0x236)]()!==d[F(0x261,0x26f)]?.['getTime']()){e['push']([f['$'][F(0x2a5,0x26f)],d[F(0x288,0x26f)]]);}if(f['duration']!=null&&f[F(0x268,0x24d)]!==d[F(0x226,0x24d)]){e['push']([f['$'][F(0x223,0x24d)],d['duration']]);}function F(a,b){return E(a,b-0x2a6);}if(f[F(0x22f,0x249)]!=null&&f[F(0x224,0x249)]!==d[F(0x274,0x249)]){e[F(0x24a,0x24f)]([f['$'][F(0x272,0x249)],d[F(0x234,0x249)]]);}if(f['effort']!=null&&f[F(0x26c,0x296)]!==d[F(0x2bd,0x296)]){if(!h)e[F(0x276,0x24f)]([f['$'][F(0x2c1,0x296)],d[F(0x298,0x296)]]);else f[F(0x29d,0x296)]=d['effort'];}if(f['effortUnit']!=null&&f[F(0x239,0x23d)]!==d['effortUnit']){if(!h)e[F(0x252,0x24f)]([f['$'][F(0x228,0x23d)],d[F(0x240,0x23d)]]);else f['effortUnit']=d['effortUnit'];}},this,{'includeFilteredOutRecords':!![]});}}b['$name']=D(-0xc,0x1c);function D(a,b){return _enb(b- -0x1ce,a);}return b;}){}class DeactivateDependencyCycleEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enG(0x549,0x525)](){function H(a,b){return _enG(b,a- -0x11);}return this['L'](H(0x4fc,0x516));}['resolve'](a){a['active']=![];}}DeactivateDependencyCycleEffectResolution[_enG(0x505,0x528)]=_enG(0x4e5,0x51a);class SchedulerProCycleEffect extends CycleEffect{[_enG(0x535,0x53e)](){if(!this[I(0x4d3,0x4b7)]){const a=this[I(0x49f,0x493)]();this[I(0x4ce,0x4b7)]=a[I(0x465,0x487)](b=>b[I(0x48e,0x4bb)]===b[I(0x4b0,0x4c5)]||(b[I(0x48f,0x4bb)]['contains'](b[I(0x49c,0x4c5)])||b[I(0x4ec,0x4c5)][I(0x4d3,0x4d1)](b['fromEvent'])));}function I(a,b){return _enG(a,b- -0x6c);}return this[I(0x483,0x4b7)];}['buildInvalidDependencyResolutions'](a){function J(a,b){return _enG(b,a- -0x40e);}return[this[J(0x109,0x12b)][J(0x14d,0x12c)](a),this[J(0xf3,0xce)][J(0x14d,0x156)](a)];}['matchDependencyBySourceAndTargetEvent'](a,b,c){function K(a,b){return _enG(b,a- -0x392);}return a[K(0x1b6,0x1b2)]&&super[K(0x160,0x14b)](a,b,c);}[_enG(0x578,0x556)](){function L(a,b){return _enG(b,a- -0x5a7);}if(!this['_resolutions']){const a=this[L(-0x69,-0x7f)]();const b=[];for(const c of a){b[L(-0x99,-0xab)](...this['buildInvalidDependencyResolutions']({'dependency':c}));}if(!a['length']){b[L(-0x99,-0x79)](this[L(-0x62,-0x85)][L(-0x4c,-0x1a)](),...super[L(-0x51,-0x23)]());}this[L(-0x8c,-0xb2)]=b;}return this['_resolutions'];}}__decorate([prototypeValue(DeactivateDependencyCycleEffectResolution)],SchedulerProCycleEffect[_enG(0x509,0x537)],_enG(0x524,0x545),void 0x0);__decorate([prototypeValue(RemoveDependencyResolution)],SchedulerProCycleEffect[_enG(0x542,0x537)],_enG(0x4ee,0x517),void 0x0);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1cb;let f=c[d];return f;};return _enb(a,b);}__decorate([prototypeValue(DeactivateDependencyResolution)],SchedulerProCycleEffect[_enG(0x54e,0x537)],_enG(0x4f3,0x501),void 0x0);export{DeactivateDependencyCycleEffectResolution,SchedulerProCycleEffect,SchedulerProProjectMixin,SchedulerProTimePhasedProjectMixin};
|