@bryntum/engine-thin-trial 7.2.1 → 7.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ChronoGraph/chrono/Graph.js +1 -1
- package/lib/ChronoGraph/chrono/Quark.js +1 -1
- package/lib/ChronoGraph/chrono/Transaction.js +1 -1
- package/lib/ChronoGraph/chrono/TransactionWalkDepth.js +1 -1
- package/lib/ChronoGraph/util/LeveledQueue.js +1 -1
- package/lib/chrono/ModelFieldAtom.js +1 -1
- package/lib/chrono/Replica.js +1 -1
- package/lib/quark/model/scheduler_basic/ChronoAbstractProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/DelayFromParentMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/HasDateConstraintMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/HasEffortMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/WorkResourceAllocationInfoMixin.js +1 -1
- package/package.json +1 -1
|
@@ -1 +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};
|
|
1
|
+
(function(a,b){const c=a();function m(a,b){return _enb(b- -0x2b2,a);}while(!![]){try{const d=-parseInt(m(-0x140,-0x154))/0x1*(-parseInt(m(-0x117,-0x146))/0x2)+-parseInt(m(-0x130,-0x10a))/0x3+-parseInt(m(-0x113,-0x134))/0x4+parseInt(m(-0x153,-0x16b))/0x5+parseInt(m(-0x101,-0x123))/0x6+-parseInt(m(-0xdf,-0x106))/0x7+-parseInt(m(-0x11b,-0x141))/0x8*(parseInt(m(-0x14f,-0x15f))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa1116));var __decorate=function(a,b,e,f){var g=arguments[n(0x1d8,0x1cd)],h=g<0x3?b:f===null?f=Object[n(0x1e7,0x1cd)](b,e):f,j;function n(a,b){return _enb(a-0x64,b);}if(typeof Reflect===n(0x20b,0x20d)&&typeof Reflect[n(0x1aa,0x1c4)]==='function')h=Reflect[n(0x1aa,0x1da)](a,b,e,f);else for(var k=a[n(0x1d8,0x1d5)]-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;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x142;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CI}from'@bryntum/engine-thin/lib/ChronoGraph/collection/Iterator.js';function _enH(a,b){return _enb(a- -0xe8,b);}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';import{DependenciesCalendar,DependencyValidationResult,ProjectType,StartedTaskScheduling}from'../../../scheduling/Types.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';function _ena(){const N=['segmentsToCleanup','contains','autoPostponeConflicts','clearBranch','startDateConstraintIntervals','forEach','NoError','2971964cTUGka','removeEntity','isValidDependencyModel','fromEvent','finalizeCommitHook','getOwnPropertyDescriptor','CyclicDependency','dependenciesCalendar','getDependencyCycleDetectionIdentifiers','7.0.0','bwcConflictPostpone','toEvent','resourceAllocationInfoClass','removeEntities','earlySchedule','deprecate','startDate','7117758CmKyUq','SchedulerProProjectMixin','construct','isValidDependency','internalOnCommitFinalized','DuplicatingDependency','dependencyConstraintIntervalClass','getDependencies','isDependencyCyclic','getType','durationUnit','getDefaultEventModelClass','_resolutions','selector','deactivateDependencyCycleEffectResolutionClass','graph','Auto','all','validateDependency','dateConstraintIntervalClass','throw','candidate','autoPostponedConflicts','proposedTimePhasedWrites','object','3768237HBczbZ','call','getDefaultResourceAllocationInfoClass','buildInvalidDependencyResolutions','1050707iepqHV','assignmentStore','endDate','effort','duration','readAsync','event','new','isArray','decorate','5258480mYqxgs','autoScheduleManualTasksOnSecondPass','getDefaultResourceModelClass','getResolutions','getInvalidDependencies','getDefaultEventStoreClass','push','addConstraintOnDateSet','includeAsapAlapAsConstraints','modelClass','getTime','transaction','10593FtnGKO','autoSetConstraints','addEntity','active','calculateDurationPure','DeactivateDependencyCycleEffectResolution','autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts','resolve','deactivateDependencyConflictResolutionClass','getDefaultDependencyModelClass','getDefaultAssignmentModelClass','146qJuFMM','autoCalculatePercentDoneForParentTasks','SchedulerProTimePhasedProjectMixin','clear','effortUnit','removeDependencyConflictResolutionClass','filter','outgoingDeps','isInitialTransaction','defaultConfig','SchedulerPro','boolean','allowPostponedConflicts','afterConfigure','15044NIUPFI','$name','prototype','getDescription','project','3584MJNdun','hasInputOnEffort','branch','length','string','_invalidDependencies'];_ena=function(){return N;};return _ena();}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['prototype'];class c extends a{constructor(){function o(a,b){return _enb(a- -0x25b,b);}super(...arguments);this[o(-0xf5,-0x129)]=!![];}static get[p(0x3c0,0x397)](){return{'segmentModelClass':SchedulerProEventSegment};}[p(0x3e8,0x3c1)](d={}){this[q(-0x5a,-0x81)]=new Set();this[q(-0x7d,-0xa8)]=d[q(-0x7d,-0x9c)]??![];this[q(-0x49,-0x1d)]=d['bwcConflictPostpone']??![];b[q(-0x40,-0x2b)][q(-0x28,-0x19)](this,d);function q(a,b){return p(b,a- -0x401);}this[q(-0x82,-0x8a)]=d[q(-0x82,-0x5f)]??!![];if(!this[q(-0x47,-0x6f)])this['resourceAllocationInfoClass']=this[q(-0x27,-0x6)]();this['ion']({'commitFinalized':this[q(-0x3e,-0x54)]});}set[p(0x3a2,0x3d5)](d){function r(a,b){return p(a,b- -0x5ea);}_end[r(-0x251,-0x22d)](r(-0x26b,-0x233),'autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts');this[r(-0x25a,-0x241)]=d;}get[p(0x3d9,0x3d5)](){_end[s(0x301,0x2f4)]('7.0.0',s(0x2cd,0x2dc));function s(a,b){return p(b,a- -0xbc);}return this['autoPostponeConflicts'];}[p(0x38c,0x3b2)](d){this[t(0x27b,0x274)]=![];function t(a,b){return p(b,a- -0x11b);}return![];}['internalOnCommitFinalized']({transactionResult:d}){function u(a,b){return p(a,b- -0x99);}this['graph']?.[u(0x358,0x322)]([...this['segmentsToCleanup']]);this['segmentsToCleanup'][u(0x316,0x2f8)]();}[p(0x388,0x37c)](){return ChronoEventStoreMixin;}[p(0x3a8,0x3da)](){return ResourceAllocationInfo;}[p(0x37c,0x39b)](){b[v(-0x119,-0x14f)]['apply'](this,arguments);this[v(-0xe2,-0xf1)]=this[v(-0xe2,-0xf7)]||DateConstraintInterval;function v(a,b){return p(b,a- -0x4b4);}this[v(-0xef,-0xfb)]=this['dependencyConstraintIntervalClass']||DependencyConstraintInterval;}[p(0x3c2,0x3c8)](){function w(a,b){return p(a,b- -0xc);}return ProjectType[w(0x36c,0x38c)];}['getDefaultCycleEffectClass'](){return SchedulerProCycleEffect;}[p(0x3d3,0x3ca)](){return SchedulerProEvent;}[p(0x366,0x38c)](){return SchedulerProDependencyMixin;}[p(0x3bd,0x38d)](){return SchedulerProAssignmentMixin;}[p(0x3ab,0x379)](){return SchedulerProResourceMixin;}async['validateDependency'](d,e,f,g){let h;if(g){h=Array[x(-0x25b,-0x269)](g)?g:[g];}const i=CI(d[x(-0x23b,-0x266)])['some'](j=>j[x(-0x217,-0x236)]===e&&!h?.['includes'](j));if(i){return DependencyValidationResult[x(-0x20c,-0x221)];}if(d['contains'](e)||e['contains'](d)){return DependencyValidationResult['CyclicDependency'];}if(await this[x(-0x209,-0x213)](d,e,f,h)){return DependencyValidationResult[x(-0x21c,-0x20b)];}function x(a,b){return p(b,a- -0x5d0);}return DependencyValidationResult[x(-0x223,-0x211)];}*[p(0x395,0x387)](){const d=yield this['$'][y(0x452,0x428)];const e=yield this['$'][y(0x472,0x441)];if(!d||!e)return null;if(d>e)return 0x0;function y(a,b){return p(b,a-0x94);}return yield*super[y(0x41b,0x3f4)]();}async[p(0x3c6,0x3c2)](d,e,f,g){const h=await this[z(0x73,0x6f)](d,e,f,g);function z(a,b){return p(a,b- -0x362);}return h===DependencyValidationResult[z(0x7f,0x4b)];}[p(0x3a9,0x3b6)](d,e){function A(a,b){return p(b,a-0x8f);}return[e[A(0x44b,0x41f)]['$'][A(0x43a,0x405)],e[A(0x44b,0x47d)]['$']['endDateConstraintIntervals']];}async[p(0x396,0x3c7)](d,f,g,h){const i=this['getDependencyStore']()[B(-0x114,-0xee)];const j=new i({'fromEvent':d,'toEvent':f,'type':g});const k=this['replica'][B(-0xfb,-0xcb)]({'autoCommit':![],'onComputationCycle':B(-0x71,-0x9b)});if(h){if(!Array[B(-0xd8,-0xf9)](h)){h=[h];}h[B(-0xc4,-0xc2)](l=>k[B(-0xac,-0xbf)](l));}k[B(-0xde,-0xe9)](j);j[B(-0xf5,-0xce)]=this;function B(a,b){return p(a,b- -0x46e);}try{await Promise[B(-0x7b,-0x9e)](this[B(-0x81,-0xb8)](d,f)['map'](l=>k[B(-0xf2,-0xfc)](l)));return![];}catch(l){if(/cycle/i['test'](l))return!![];if(!/conflict/i['test'](l)){throw l;}}finally{k[B(-0x9e,-0xc4)]();}}async[p(0x382,0x3b0)](d,e){function C(a,b){return p(a,b-0xde);}return this['isValidDependency'](d[C(0x48e,0x48f)],d[C(0x49d,0x497)],d['type'],e);}}c[p(0x387,0x39d)]=p(0x3a8,0x3c0);function p(a,b){return _enb(b-0x230,a);}__decorate([model_field({'type':p(0x3c7,0x3a5),'defaultValue':DependenciesCalendar['ToEvent']})],c[p(0x3c2,0x39e)],p(0x3d3,0x3b5),void 0x0);__decorate([model_field({'type':p(0x366,0x399),'defaultValue':!![]})],c[p(0x3c5,0x39e)],p(0x375,0x38f),void 0x0);__decorate([model_field({'type':p(0x398,0x3a5),'defaultValue':StartedTaskScheduling[p(0x3fc,0x3cf)]})],c['prototype'],'startedTaskScheduling',void 0x0);__decorate([model_field({'type':p(0x3c4,0x399),'defaultValue':!![]})],c[p(0x388,0x39e)],p(0x38c,0x37e),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[p(0x375,0x39e)],p(0x3a1,0x378),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[p(0x3ad,0x39e)],p(0x3a5,0x39a),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[p(0x372,0x39e)],'autoPostponeConflicts',void 0x0);__decorate([model_field({'type':p(0x3b8,0x399),'defaultValue':!![]})],c[p(0x36a,0x39e)],'autoMergeAdjacentSegments',void 0x0);__decorate([model_field({'persist':![]})],c[p(0x3d1,0x39e)],'currency',void 0x0);return c;}){}class SchedulerProTimePhasedProjectMixin extends Mixin([SchedulerProProjectMixin],a=>{function D(a,b){return _enb(a- -0x21c,b);}class b extends a{[D(-0x84,-0xb0)](){function E(a,b){return D(a- -0x182,b);}return ProjectType[E(-0x236,-0x25f)];}['getDefaultEventModelClass'](){return SchedulerProTimePhasedEvent;}[D(-0xbf,-0xb0)](){return SchedulerProTimePhasedAssignmentMixin;}[D(-0x89,-0x9c)]({transactionResult:c}){super[F(-0x19d,-0x1c5)]({'transactionResult':c});function F(a,b){return D(b- -0x13c,a);}this[F(-0x1d8,-0x1ab)]['forEach'](d=>{if(!d[G(0xa2,0x72)]){return;}function G(a,b){return F(a,b-0x22c);}const e=c[G(0x1b,0x26)][G(0x71,0x78)][G(0x5a,0x7a)];const f=d['proposedMirror'];const g=d[G(0x9,0x17)]?.[G(0x5a,0x70)];const h=g?g[G(0x42,0x46)]||g['hasInputOnAssignments']&&g['hasPreviousEffortValue']:![];if(f[G(0x2f,0x62)]!=null&&f['startDate'][G(0x5c,0x25)]()!==d[G(0x62,0x62)]?.[G(0x3a,0x25)]()){e[G(0x40,0x21)]([f['$'][G(0x7e,0x62)],d['startDate']]);}if(f[G(0xa0,0x82)]!=null&&f['endDate'][G(0x1,0x25)]()!==d[G(0x8d,0x82)]?.[G(0x6,0x25)]()){e[G(0x16,0x21)]([f['$'][G(0x67,0x82)],d[G(0x90,0x82)]]);}if(f[G(0xb5,0x84)]!=null&&f[G(0xb5,0x84)]!==d['duration']){e['push']([f['$'][G(0x56,0x84)],d[G(0xb3,0x84)]]);}if(f[G(0xa1,0x6d)]!=null&&f[G(0x5d,0x6d)]!==d['durationUnit']){e[G(0x11,0x21)]([f['$'][G(0x8f,0x6d)],d[G(0x97,0x6d)]]);}if(f[G(0x78,0x83)]!=null&&f[G(0x84,0x83)]!==d[G(0xa7,0x83)]){if(!h)e[G(0x40,0x21)]([f['$'][G(0x8c,0x83)],d[G(0x54,0x83)]]);else f[G(0x93,0x83)]=d[G(0x57,0x83)];}if(f[G(0x2b,0x36)]!=null&&f[G(0xc,0x36)]!==d[G(0x6a,0x36)]){if(!h)e[G(0x1e,0x21)]([f['$']['effortUnit'],d[G(0x1e,0x36)]]);else f[G(0x60,0x36)]=d['effortUnit'];}},this,{'includeFilteredOutRecords':!![]});}}b[D(-0xaf,-0xde)]=D(-0xbc,-0x92);return b;}){}class DeactivateDependencyCycleEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enH(0x87,0x91)](){return this['L']('L{descriptionTpl}');}[_enH(0x72,0x48)](a){function I(a,b){return _enH(b-0x2dd,a);}a[I(0x31d,0x34b)]=![];}}DeactivateDependencyCycleEffectResolution[_enH(0x85,0xaa)]=_enH(0x70,0x76);class SchedulerProCycleEffect extends CycleEffect{[_enH(0x63,0x4e)](){if(!this['_invalidDependencies']){const a=this[J(0x35a,0x340)]();this[J(0x2fd,0x320)]=a[J(0x2e7,0x30e)](b=>b[J(0x33b,0x32b)]===b[J(0x315,0x333)]||(b[J(0x342,0x32b)]['contains'](b['toEvent'])||b[J(0x313,0x333)][J(0x32d,0x322)](b[J(0x34a,0x32b)])));}function J(a,b){return _enH(b-0x292,a);}return this[J(0x330,0x320)];}['buildInvalidDependencyResolutions'](a){function K(a,b){return _enH(b-0x248,a);}return[this[K(0x2d2,0x2c3)][K(0x2c6,0x2a4)](a),this[K(0x283,0x2bb)]['new'](a)];}['matchDependencyBySourceAndTargetEvent'](a,b,c){function L(a,b){return _enH(a- -0x28e,b);}return a[L(-0x220,-0x249)]&&super['matchDependencyBySourceAndTargetEvent'](a,b,c);}[_enH(0x62,0x83)](){function M(a,b){return _enH(b- -0x242,a);}if(!this['_resolutions']){const a=this[M(-0x1c0,-0x1df)]();const b=[];for(const c of a){b[M(-0x1c6,-0x1dd)](...this[M(-0x176,-0x17f)]({'dependency':c}));}if(!a[M(-0x1d6,-0x1b6)]){b[M(-0x203,-0x1dd)](this[M(-0x189,-0x18d)][M(-0x1d4,-0x1e6)](),...super[M(-0x1f2,-0x1e0)]());}this[M(-0x1b3,-0x18f)]=b;}return this['_resolutions'];}}__decorate([prototypeValue(DeactivateDependencyCycleEffectResolution)],SchedulerProCycleEffect[_enH(0x86,0x7c)],_enH(0xb5,0x9a),void 0x0);__decorate([prototypeValue(RemoveDependencyResolution)],SchedulerProCycleEffect[_enH(0x86,0x4e)],'removeDependencyConflictResolutionClass',void 0x0);__decorate([prototypeValue(DeactivateDependencyResolution)],SchedulerProCycleEffect[_enH(0x86,0xb5)],'deactivateDependencyConflictResolutionClass',void 0x0);export{DeactivateDependencyCycleEffectResolution,SchedulerProCycleEffect,SchedulerProProjectMixin,SchedulerProTimePhasedProjectMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function V(a,b){return _enb(a- -0x94,b);}while(!![]){try{const d=parseInt(V(0xd3,0xa9))/0x1+parseInt(V(0x34,0x2f))/0x2*(-parseInt(V(0x44,0x94))/0x3)+parseInt(V(0x40,0x9c))/0x4+parseInt(V(0x8f,0x98))/0x5*(-parseInt(V(0xec,0xc5))/0x6)+-parseInt(V(0x4b,0x86))/0x7*(parseInt(V(0x98,0xc6))/0x8)+parseInt(V(0x6e,0x24))/0x9*(parseInt(V(0x38,-0xc))/0xa)+parseInt(V(0xa7,0xbf))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6da89));var __decorate=function(a,b,e,f){function W(a,b){return _enb(a- -0x1c0,b);}var g=arguments[W(-0x6f,-0x2d)],h=g<0x3?b:f===null?f=Object[W(-0xa4,-0xc3)](b,e):f,j;if(typeof Reflect===W(-0x90,-0x88)&&typeof Reflect[W(-0xa2,-0x9a)]==='function')h=Reflect[W(-0xa2,-0x98)](a,b,e,f);else for(var k=a[W(-0x6f,-0x20)]-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{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc7;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enaa(a,b){return _enb(a- -0x3b6,b);}import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';function _ena(){const bl=['boolean','calculateProjectedXDateWithDuration','phantomEndDate','calculateSelector','calculatePhantomStartOffset','hasStartDateValue','doCalculateAssignmentProjectedEffort','isPhantomTimePhasedStructurally','eventEffectiveSchedulingMode','doCalculateAssignmentEffort','calculateStartDate','ion','calculateIgnoreResourceCalendar','_changeAssignmentData','writeEffort','calculateEffortUnit','splice','formulaId','baseRevision','length','isDurationDefinedByEffort','proposedStartDate','calculateStartByDelay','maxAssignmentProposedEndDate','minAssignmentProposedStartDate','direction','hasEndDateValue','_calculateEffortData','add','hasInputOnUnits','calculateEffectiveDirection','eventSelector','number','prepareDispatcher','proposedEndOffset','leaveGraph','calculateEffortProposed','resolution','proposedStartOffsets','effortUnit','startDate','558920zuZgRv','calculateEffort','FixedEffort','call','writeStartDate','isDurationDefinedByEffortStructurally','$name','getTime','_proposedMirror','effortDriven','eventEffortDriven','proposedEndDateMax','skipNonWorkingTimeInDurationWhenSchedulingManually','commitAsync','manuallyScheduled','writeIgnoreResourceCalendar','event','hasInputOnDuration','calculateEndDate','calculateStartOffset','unlink','fields','calculateEndOffset','proposedStartDateMin','assigned','1122834FMQcfa','putTimePhasedEffortBatch','selector','2TqlMhm','getProject','hasInputOnEndDate','isUserTimePhased','1461280IDjQIK','assign','string','timePhasedDispatcher','write','calculateAssignmentsByCalendar','set','hasInputOnEffort','2545492lCqxBp','hasInputOnStartDate','startOffset','forEachAvailabilityInterval','1116522TlTGOP','calculateSchedulingModeForUnitsCalculation','prepareDispatcherForAssignmentsFixedDuration','endOffset','run','filter','effort','215404vJLxwh','effectiveCalendar','ignoreResourceCalendar','PROPOSED_','calculateProposedEndOffset','hasEffortInput','collectInfo','isChangingOnlyDuration','calculateDuration','proposedStartOffset','size','getBaseOptionsForDurationCalculations','isTimePhasedStructurally','Unknown\x20formula\x20for\x20`effort`','hasIdentifier','calculateEffortDriven','schedulingMode','hasInputOnlyOnEffort','setTimePhasedEffort','isChangingOnlyEndDate','calculateProjectedXDateByEffort','Normal','graph','hasPreviousValueForUnits','getCalendarsWorking','SchedulerProTimePhasedAssignmentMixin','ownIgnoreResourceCalendar','assignmentsByCalendar','phantomEndOffset','calculateProposedStartOffset','writeDuration','FixedUnits','get','hasDurationValue','addProposedValueFlag','9ofDEtM','duration','$convertDuration','writeUnits','enterGraph','calculateEffortPure','effectiveDirection','proposedMirror','calculatePhantomEndOffset','calculateProportionalEffort','remove','proposedMirrorClass','getBaseOptionsForEffortCalculations','Forward','durationUnit','writeEndDate','calculateEndByDelay','proposedEndOffsets','calculateProportionalEffortByEffort','project','calculateProjectedEffort','forEach','minOffset','hasInputOnTimePhasedData','calculateProjectedDuration','phantomStartDate','getOwnPropertyDescriptor','eventIsSegmented','decorate','effectiveSchedulingMode','prototype','constructor','date','5OkEXhH','push','isPhantomTimePhased','calculateHasOnlyRegularAssignmentsRaw','dispatcher','calculateDurationUnit','hasProposedValueForUnits','isSegmented','isRemovingAssignmentByPutEffort','224JRsFnM','calculateProportionalEffortByUnits','assignment','hasProposedValueForAssignmentsField','object','units','$removed','FixedDuration','phantomStartOffset','calculateEffectiveDataOrVisualCalendar','isTimePhased','resource','calculateUnitsForNewAssignment','sort','Millisecond','5815359AbcooR','endDate','hasProposedAssignments'];_ena=function(){return bl;};return _ena();}import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MissingValue}from'../../../util/Constants.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{effortFormula,EffortVar,UnitsVar}from'./HasEffortDispatcher.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';class TimePhasedAssignmentMirror extends Mixin([FixedDurationMixin],a=>{class b extends a{*['calculateDurationUnit'](){function X(a,b){return _enb(a-0x277,b);}return yield this[X(0x3a5,0x368)]['$'][X(0x387,0x3e2)];}*[Y(0x1fc,0x1e3)](){function Z(a,b){return Y(b- -0x2e5,a);}return yield this['assignment']['$'][Z(-0xc1,-0xd1)];}*[Y(0x19d,0x18f)](){function a0(a,b){return Y(b- -0x39b,a);}return yield this[a0(-0x1b1,-0x1be)]['$']['effortDriven'];}*['calculateSchedulingMode'](){function a1(a,b){return Y(a- -0x262,b);}return yield this[a1(-0x85,-0x78)]['$'][a1(-0xc4,-0x110)];}*[Y(0x1d8,0x21c)](){function a2(a,b){return Y(b- -0x24d,a);}return yield*this['assignment'][a2(-0x2f,-0x75)]();}*['hasPreviousValueForUnits'](){function a3(a,b){return Y(a- -0xf,b);}return yield*this[a3(0x1ce,0x176)][a3(0x196,0x1a2)]();}*[Y(0x20b,0x262)](){function a4(a,b){return Y(a-0x25b,b);}return yield*this['assignment'][a4(0x466,0x409)]();}*['calculateEffectiveDataOrVisualCalendar'](c){function a5(a,b){return Y(b-0x70,a);}return yield*this[a5(0x280,0x24d)][a5(0x1fb,0x254)](c);}*[Y(0x180,0x134)](){const c=new Map();const d=yield this['assignment']['$'][a6(0x4cb,0x4ef)];if(d){const e=yield d['$'][a6(0x474,0x465)];c[a6(0x466,0x4b5)](e,[this[a6(0x4c2,0x4ec)]]);}function a6(a,b){return Y(a-0x2e5,b);}return c;}*[Y(0x1f9,0x229)](){function a7(a,b){return Y(a-0x24b,b);}return yield this['assignment']['$'][a7(0x3db,0x3a4)];}*['getBaseOptionsForDurationCalculations'](){function a8(a,b){return Y(a-0x55,b);}return yield*this[a8(0x232,0x209)]['getBaseOptionsForDurationCalculations']();}}__decorate([calculate(Y(0x1bf,0x1dc))],b['prototype'],Y(0x1d7,0x1f9),null);function Y(a,b){return _enb(a-0xaf,b);}__decorate([calculate(Y(0x214,0x248))],b['prototype'],Y(0x1fc,0x22b),null);__decorate([calculate(Y(0x21f,0x23d))],b[Y(0x1cf,0x1c4)],Y(0x19d,0x178),null);__decorate([calculate('schedulingMode')],b[Y(0x1cf,0x1e4)],'calculateSchedulingMode',null);__decorate([calculate(Y(0x190,0x13f))],b['prototype'],Y(0x1f9,0x1f4),null);return b;}){}class TimePhasedAssignmentSelector{constructor(){this[a9(0x3fc,0x3de)]=null;function a9(a,b){return _enb(b-0x2b0,a);}this[a9(0x42c,0x427)]=null;this[a9(0x3e2,0x40d)]=null;this[a9(0x420,0x3f6)]=null;this[a9(0x452,0x421)]=![];this[a9(0x41e,0x3cd)]=![];this[a9(0x411,0x3f3)]=![];this[a9(0x3eb,0x408)]=![];this[a9(0x38a,0x3b0)]=![];this[a9(0x336,0x385)]=![];this[a9(0x3d0,0x37a)]=![];this[a9(0x462,0x428)]=![];this['hasInputOnEffort']=![];this[a9(0x45c,0x40b)]=![];this[a9(0x358,0x3a6)]=![];}get[_enaa(-0x2c6,-0x319)](){function ab(a,b){return _enaa(b-0x179,a);}return!this['hasInputOnStartDate']&&!this[ab(-0x155,-0x173)]&&!this[ab(-0xc3,-0xc5)]&&this[ab(-0x177,-0x16a)]&&!this[ab(-0xed,-0xe2)];}get['hasInputOnTimePhasedData'](){function ac(a,b){return _enaa(b-0x6da,a);}return this[ac(0x3b7,0x3f9)]||this['hasInputOnEndDate']||this[ac(0x4da,0x49c)];}get[_enaa(-0x2eb,-0x30b)](){function ad(a,b){return _enaa(a-0x265,b);}return(this[ad(-0xe,-0x4e)]?0x1:0x0)+(this[ad(0x7,0x38)]?0x1:0x0)+(this[ad(-0x51,-0x8e)]?0x1:0x0)>=0x2;}get[_enaa(-0x280,-0x261)](){function ae(a,b){return _enaa(b-0xe3,a);}return this[ae(-0x1f2,-0x208)]||this[ae(-0x175,-0x181)];}get[_enaa(-0x2cb,-0x287)](){function af(a,b){return _enaa(b-0x6a0,a);}return this['isUserTimePhased']||this[af(0x487,0x456)];}get[_enaa(-0x291,-0x27f)](){function ag(a,b){return _enaa(a-0x76a,b);}return this[ag(0x4ea,0x500)]&&!this['isUserTimePhased'];}get[_enaa(-0x271,-0x274)](){function ah(a,b){return _enaa(b-0xb3,a);}return this[ah(-0x22f,-0x218)]&&!this['isUserTimePhased'];}get[_enaa(-0x24a,-0x22e)](){const a=this[ai(0x548,0x54c)];function ai(a,b){return _enaa(b-0x78b,a);}if(a){const b=this[ai(0x4f6,0x51b)];const c=this[ai(0x4e9,0x546)];return b!==SchedulingMode['FixedDuration']&&b!==SchedulingMode[ai(0x4e2,0x4c9)]&&(c||b===SchedulingMode[ai(0x50b,0x53e)]);}else{return![];}}get[_enaa(-0x264,-0x26a)](){function aj(a,b){return _enaa(a-0x4d2,b);}const a=this[aj(0x293,0x266)];if(a){const b=this['eventEffectiveSchedulingMode'];return this[aj(0x288,0x2a7)]&&!this[aj(0x279,0x24d)][aj(0x202,0x1c3)]&&!this[aj(0x279,0x238)][aj(0x20e,0x1f3)]||b===SchedulingMode[aj(0x21a,0x1f1)]&&this[aj(0x1ef,0x1e9)]&&!this[aj(0x277,0x2cc)]&&this[aj(0x212,0x1f6)];}else{return![];}}*[_enaa(-0x2d1,-0x2d2)](){const a=this[ak(0x1ed,0x23b)];function ak(a,b){return _enaa(b-0x4c3,a);}this[ak(0x244,0x250)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x292,0x273)]))!=null;this[ak(0x28e,0x265)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x25a,0x249)]))!=null;this[ak(0x25c,0x20d)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x1bb,0x210)]))!=null;this['hasInputOnStartDate']=yield HasProposedNotPreviousValue(a['$'][ak(0x2af,0x273)]);this[ak(0x201,0x1d7)]=yield HasProposedNotPreviousValue(a['$'][ak(0x21b,0x249)]);this[ak(0x23f,0x285)]=yield HasProposedNotPreviousValue(a['$']['duration']);this[ak(0x22c,0x1e0)]=yield HasProposedNotPreviousValue(a['$']['effort']);this['hasInputOnUnits']=yield HasProposedNotPreviousValue(a['$'][ak(0x260,0x23e)]);this[ak(0x1c2,0x203)]=yield*a['hasPreviousValueForUnits']();const b=this[ak(0x29b,0x284)]=yield a['$'][ak(0x2bf,0x284)];if(b){this[ak(0x243,0x26a)]=yield b['$']['selector'];this['eventEffectiveSchedulingMode']=yield*b[ak(0x243,0x22c)]();this[ak(0x296,0x27e)]=yield b['$'][ak(0x220,0x27d)];this[ak(0x20b,0x22a)]=yield b['$'][ak(0x235,0x237)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0x9c,0x8d)];class c extends a{constructor(){super(...arguments);this['proposedMirrorClass']=TimePhasedAssignmentMirror;function am(a,b){return al(a,b- -0x35);}this[am(0x98,0xa7)]=void 0x0;}['_calculateEffortData'](d,e,f){let g,h;function an(a,b){return al(b,a- -0x329);}if(d[an(-0x2e0,-0x326)]){g=d['run']('doCalculateAssignmentEffort',e,f);h=d[an(-0x257,-0x21c)];}else{g=this[an(-0x2e0,-0x2ee)](an(-0x275,-0x25c),e,f);h=this[an(-0x257,-0x23f)];}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0xd4,0xb8)](d,e,f){function ao(a,b){return al(a,b-0x3c3);}let g;if(d[ao(0x3fd,0x40c)]){g=f[ao(0x47f,0x42f)](d);if(!g){g={};f[ao(0x3c3,0x402)](d,g);}}else{g=d;}Object['assign'](g,e);return g;}[al(0xc1,0xee)](d){if(!d[ap(0x50,0x90)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;function ap(a,b){return al(b,a- -0x6e);}const m=g[ap(0x7e,0x91)];const n=g[ap(0x65,0x18)];const o=g[ap(0x3b,0x6e)];const p=new Map();const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d['slice']()[ap(0x38,0x21)]((w,x)=>(w['startDate']||n)['getTime']()-(x['startDate']||n)[ap(0x6d,0x35)]());const t=[...m][ap(-0x24,0x1e)](w=>w['resource']===f)[ap(0x38,0x37)]((w,x)=>(w[ap(0x65,0x5c)]||n)[ap(0x6d,0x36)]()-(x[ap(0x65,0xad)]||n)[ap(0x6d,0xb6)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ap(-0x23,0x2f)]);const A=t['slice']();let B=![];for(let C=u,D=A[ap(0x50,0x11)];C<D;C++){const E=A[C];const F=p['get'](E);const G=F?.['startDate']||E[ap(0x65,0x65)]||n;const H=F?.[ap(0x3b,0x59)]||E[ap(0x3b,-0xa)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ap(0xf,0x23)]||E['durationUnit'];if(G>=x&&H<=y){if(z){p[ap(-0x2f,0x29)](E,w);z=![];}else{r[ap(0x23,0x4e)](E);t[ap(0x4d,0x46)](C);}}else{let K;if(z){K={...s,...w};q[ap(0x23,0x6c)](K);z=![];}let L=![];if(G<x){const M=this[ap(0x58,0x60)](E,G,x);if(M[ap(-0x23,-0x4f)]){L=!![];this[ap(0x4a,0x9f)](E,M,p);if(K){I++;t[ap(0x4d,0x12)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ap(0x58,0x29)](E,y,H)};if(N[ap(-0x23,0xb)]){q['push'](N);t[ap(0x4d,0x3)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[ap(0x4d,0x54)](I,0x0,K);I++;}const O=this[ap(0x4a,0x57)](E,this[ap(0x58,-0x4)](E,y,H),p);if(!O['effort']){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q['push'](P);t[ap(0x23,0x7)](P);if(!p[ap(-0x18,0x1b)]&&t[ap(0x50,0x3d)]===0x1&&!t[0x0]['startDate']&&!t[0x0][ap(0x3b,-0x1b)]){this[ap(0x4a,0x80)](t[0x0],{'startDate':n,'endDate':o,'effort':this['effort']},p);}}}let v=[];for(let [Q,R]of p){Object[ap(-0x34,-0x63)](Q,R);}if(q[ap(0x50,0x65)]){q[ap(0x38,0x8d)]((S,T)=>S[ap(0x65,0xa)][ap(0x6d,0x1c)]()-T[ap(0x65,0x33)][ap(0x6d,0x32)]());if(this['event'][ap(-0x12,-0x54)]===SchedulingMode[ap(0x32,0x1b)]){for(const S of q){const T=this[ap(-0x25,-0x6c)]('calculateUnitsForNewAssignment',S[ap(0x65,0xbc)],S['endDate'],S['effort'],S['effortUnit'],S[ap(0x36,0x67)]);delete S['effort'];S[ap(0x30,0x5a)]=T;}}v=k[ap(0x59,0x69)](q);}if(r[ap(0x50,0x88)]){r[ap(0x16,-0x29)](U=>{function aq(a,b){return ap(a-0x1a,b);}U[aq(-0x9,0x4d)]=0x0;U['duration']=0x0;U[aq(0x4b,0x5c)]=!![];});e[ap(0x48,-0x4)]({'commitFinalized':{'fn':()=>{e[ar(-0x10,0x25)]=!![];function ar(a,b){return ap(a- -0x3a,b);}k[ar(-0x2f,-0x34)](r);e[ar(0xe,0x62)]({'commitFinalized':{'fn':()=>{e['isRemovingAssignmentByPutEffort']=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}['setTimePhasedEffortBatch'](d){this[as(0x556,0x4fd)](d);function as(a,b){return al(a,b-0x40f);}return this[as(0x495,0x4f0)]();}['putTimePhasedEffort'](d,e,f,g=this[al(0x11a,0xd2)]){function at(a,b){return al(b,a-0x18);}return this[at(0x106,0xcc)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0x3d,0x5e)](d,e,f,g){function au(a,b){return al(a,b- -0x208);}this['putTimePhasedEffort'](d,e,f,g);return this[au(-0xdc,-0x127)]();}*[al(0x70,0xae)](){const d=new TimePhasedAssignmentSelector();d['assignment']=this;yield*d['collectInfo']();return d;}*[al(0x6e,0x5b)](){function av(a,b){return al(b,a-0x42e);}const d=yield this['$']['event'];if(d&&(yield this['$'][av(0x4d2,0x489)])){const e=yield d['$'][av(0x48a,0x453)];return e===SchedulingMode[av(0x48f,0x4d7)]?!![]:yield d['$'][av(0x50b,0x553)];}else{return![];}}*['calculateSchedulingMode'](){const d=yield this['$'][aw(0x214,0x227)];function aw(a,b){return al(a,b-0x143);}if(d&&(yield this['$'][aw(0x1b7,0x1e7)])){const e=yield d['$'][aw(0x196,0x19f)];return e===SchedulingMode[aw(0x183,0x1a4)]?SchedulingMode['FixedDuration']:e;}else{return SchedulingMode['Normal'];}}*[al(0x9d,0x46)](d){function ax(a,b){return al(a,b- -0x259);}const e=yield this['$'][ax(-0x17d,-0x175)];if(e&&(yield this['$'][ax(-0x1ed,-0x1b5)])){const f=yield e['$'][ax(-0x1ec,-0x1fd)];return f===SchedulingMode['Normal']?!(yield*e[ax(-0x175,-0x1c6)]())?SchedulingMode[ax(-0x1ef,-0x1b9)]:SchedulingMode[ax(-0x22d,-0x1f8)]:f;}else{return SchedulingMode[ax(-0x24d,-0x1f8)];}}get[al(0x6e,0x76)](){if(this['_proposedMirror']!==void 0x0)return this[ay(-0x50,-0x90)];const d=new this[(ay(-0x13f,-0xf2))]();d[ay(-0x11a,-0xd1)]=this;function ay(a,b){return al(a,b- -0x16c);}d['project']=this[ay(-0xd8,-0xea)];d['id']=ay(-0x10e,-0x11d)+this['id'];if(this[ay(-0x147,-0x10a)]){d[ay(-0x141,-0xf9)](this[ay(-0xee,-0x10a)]);}return this['_proposedMirror']=d;}[al(0x3a,0x73)](d){function az(a,b){return al(a,b-0x115);}super[az(0x1d5,0x188)](d);const e=this[az(0x21a,0x1f1)];if(e&&!e['graph']){e['enterGraph'](d);}}['leaveGraph'](d){function aA(a,b){return al(b,a-0x43);}this[aA(0x11f,0x117)]?.[aA(0x111,0x13a)](d);super[aA(0x111,0x160)](d);}[al(0x135,0xe8)](){this[aB(0x1bc,0x168)]?.['unlink']();function aB(a,b){return al(a,b-0x8c);}super[aB(0x1bd,0x174)]();}['writeIgnoreResourceCalendar'](d,e,f,g){function aC(a,b){return al(b,a- -0xb8);}e[aC(-0x7b,-0xd9)](this['$']['ownIgnoreResourceCalendar'],g);d[aC(-0x2a,-0xa)][aC(-0x2b,-0x51)][aC(-0x7b,-0xb4)]['call'](this,d,e,f,g);}[al(0xb2,0xd8)](d,e,f,g,h=!![]){if(!(!e[aD(0x2fe,0x304)]['hasIdentifier'](d)&&g==null)){e[aD(0x2ce,0x284)](this['proposedMirror']['$'][aD(0x2bf,0x31a)],g,h);}function aD(a,b){return al(a,b-0x247);}super['writeStartDate'](d,e,f,g,h);}[al(0x47,0x7e)](d,e,f,g,h=![]){if(!(!e[aE(-0x5c,-0xb5)]['hasIdentifier'](d)&&g==null)){e[aE(-0x11f,-0x135)](this[aE(-0xad,-0xfc)]['$'][aE(-0xb8,-0xc9)],g,h);}function aE(a,b){return al(a,b- -0x172);}super[aE(-0xa4,-0xf4)](d,e,f,g,h);}[al(0x4b,0x6a)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e[aF(0x14b,0x11d)][aF(0x79,0xba)](d)&&g==null)){e[aF(0xc1,0x9d)](this[aF(0xa7,0xd6)]['$']['duration'],g,h,i);}function aF(a,b){return al(a,b-0x60);}super['writeDuration'](d,e,f,g,h,i);}[al(0x10d,0xb9)](d,e,f,g,h){if(g<0x0)g=0x0;function aG(a,b){return al(a,b- -0x51);}if(!(!e['baseRevision'][aG(-0x2a,0x9)](d)&&g==null)){e[aG(0x25,-0x14)](this[aG(-0x2,0x25)]['$'][aG(0x3,-0x6)],g,h);}super[aG(0x72,0x68)](d,e,f,g,h);}['writeUnits'](d,e,f,g){function aH(a,b){return al(a,b- -0x2f0);}if(g===MissingValue)return;super[aH(-0x23c,-0x237)](d,e,f,g);}*['calculateEffortPure'](){function aI(a,b){return al(b,a-0x2a5);}return yield*this[aI(0x359,0x319)]();}*[al(0x71,0xb4)](d=null,e=null){function aJ(a,b){return al(b,a- -0x165);}const f=yield this['$'][aJ(-0x131,-0x12e)];if(f['event']&&f[aJ(-0xc2,-0x7d)]){if(!d){d=yield this['$'][aJ(-0x92,-0x8f)];}if(!e){e=yield this['$'][aJ(-0xbc,-0xb7)];}return yield*this[aJ(-0xe2,-0x10c)](d,e);}return yield*super[aJ(-0xb4,-0xc8)](d,e);}*[al(0x8b,0xc9)](){function aK(a,b){return al(b,a- -0x150);}const d=yield this['$'][aK(-0x6c,-0x78)];if(d){return yield d['$'][aK(-0xdb,-0x95)];}else{return yield*super[aK(-0x87,-0x38)]();}}*['calculateIgnoreResourceCalendar'](){const d=yield this['$'][aL(0xe9,0xfc)];function aL(a,b){return al(a,b-0x18);}return Boolean(d&&(yield d['$'][aL(0x53,0x66)])||(yield this['$'][aL(0x8b,0x7e)]));}*[al(0x98,0xe7)](){function aM(a,b){return al(b,a-0xff);}const d=yield this['$']['event'];if(d){const e=yield d['$'][aM(0x1d2,0x1ca)];const f=yield this['$'][aM(0x1d2,0x1e4)];return(yield*this[aM(0x186,0x1b8)](e,f,TimeUnit[aM(0x1a6,0x1cf)]))??0x0;}else return null;}*['calculateProposedStartOffsetRaw'](){const d=yield this['$'][aN(-0xa,-0x1b)];function aN(a,b){return al(b,a- -0x3e);}const e=d[aN(0xa6,0x97)];if(e){if(d[aN(0x48,0x4)]||(yield PreviousValueOf(this['$'][aN(0x5,-0x43)]))==null){const f=(yield e['$'][aN(0x82,0x9e)])??(yield e['$'][aN(0x85,0xcd)]);const g=yield this[aN(0x38,0x89)]['$'][aN(0x95,0x3d)];return(yield*this[aN(0x49,0x3b)](f,g,TimeUnit['Millisecond']))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aN(0x5,-0x28)]);}}else{return null;}}*[al(0x96,0x69)](){function aO(a,b){return al(b,a-0x426);}const d=yield this['$'][aO(0x45a,0x45b)];const e=d[aO(0x50a,0x4dd)];if(e){const f=(yield e['$'][aO(0x4f7,0x4d8)])[aO(0x4ab,0x4d7)]<0x0;if(f||d[aO(0x4ac,0x48d)]||(yield PreviousValueOf(this['$'][aO(0x469,0x470)]))==null){const g=yield this['$'][aO(0x49b,0x47a)];const h=g[aO(0x4ea,0x530)]===Direction[aO(0x4a2,0x4a9)]?yield e['$'][aO(0x511,0x4d1)]:yield e['$'][aO(0x4e9,0x547)];const i=yield this['proposedMirror']['$'][aO(0x4f9,0x4fd)];return(yield*this[aO(0x4ad,0x4f6)](h,i,TimeUnit[aO(0x4cd,0x499)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aO(0x469,0x452)]);}}else{return null;}}*['calculatePhantomStartDate'](){const d=yield this['$'][aP(0x227,0x1ce)];function aP(a,b){return al(a,b-0x19a);}if(d[aP(0x28a,0x27e)]&&!d[aP(0x270,0x224)]&&d[aP(0x213,0x22c)]){return yield*this[aP(0x273,0x25b)]();}return null;}*['calculatePhantomEndDate'](){function aQ(a,b){return al(b,a-0x163);}const d=yield this['$'][aQ(0x197,0x1e5)];if(d[aQ(0x247,0x231)]&&!d[aQ(0x1ed,0x1e4)]&&d[aQ(0x1f5,0x24d)]){const e=yield this['$'][aQ(0x1eb,0x1d1)];if(e){return yield*this[aQ(0x1c3,0x1ab)](e,!![],yield this['$'][aQ(0x1ae,0x186)],yield this['$'][aQ(0x235,0x259)]);}}return null;}*['calculatePhantomStartOffset'](){const d=yield this['$'][aR(-0x17f,-0x13b)];function aR(a,b){return al(b,a- -0x1b3);}if(d[aR(-0xcf,-0xeb)]&&!d[aR(-0x129,-0x11b)]&&d[aR(-0x121,-0x127)]){if(d[aR(-0x121,-0x13b)]){return 0x0;}}else return null;}*['calculatePhantomEndOffset'](){const d=yield this['$']['selector'];function aS(a,b){return al(a,b- -0x11c);}if(d[aS(-0x2b,-0x38)]&&!d[aS(-0x5c,-0x92)]&&d[aS(-0xa3,-0x8a)]){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aS(-0x99,-0xb4)]))==null){const e=yield d['event']['$'][aS(-0x8b,-0x73)];const f=yield*this[aS(-0xbd,-0xbc)](yield this['$'][aS(-0xd9,-0x94)],!![],yield this['$']['effort'],yield this['$']['effortUnit']);return yield*this[aS(-0x9a,-0x95)](f,e,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$'][aS(-0x107,-0xb4)]);}}return null;}*[al(0x143,0xea)](){const d=yield this['$'][aT(-0x84,-0x42)];function aT(a,b){return al(b,a- -0x168);}if(d){const e=yield d['$']['endDate'];const f=yield this['$'][aT(-0xbf,-0x96)];return yield*this[aT(-0xe1,-0x117)](f,e,TimeUnit[aT(-0xc1,-0xbd)]);}else return null;}*['calculateProposedEndOffsetRaw'](){const d=yield this['$'][aU(0x3e4,0x413)];function aU(a,b){return al(a,b-0x3df);}const e=d['event'];if(e){if(d[aU(0x40f,0x465)]||(yield PreviousValueOf(this['$'][aU(0x471,0x427)]))==null){const f=(yield e['$']['proposedEndDate'])??(yield e['$'][aU(0x4af,0x4a1)]);const g=yield this[aU(0x3ff,0x455)]['$'][aU(0x4da,0x488)];return yield*this[aU(0x423,0x466)](g,f,TimeUnit[aU(0x495,0x486)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aU(0x467,0x427)]);}}else{return null;}}*[al(0x80,0x50)](){const d=yield this['$'][aV(0x129,0x115)];const e=d[aV(0x1a4,0x1c5)];function aV(a,b){return al(a,b-0xe1);}if(e){const f=(yield e['$'][aV(0x170,0x161)])[aV(0x138,0x166)]<0x0;if(f||d[aV(0x175,0x167)]||(yield PreviousValueOf(this['$']['endOffset']))==null){const g=yield this['$']['effectiveDirection'];const h=g[aV(0x1a7,0x1a5)]===Direction['Backward']?yield e['$'][aV(0x1b0,0x1c0)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this['proposedMirror']['$'][aV(0x13b,0x18a)];return yield*this['calculateProjectedDuration'](i,h,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$'][aV(0xcf,0x129)]);}}else{return null;}}*[al(0xf6,0xd9)](){function aW(a,b){return al(a,b-0x47b);}const d=yield this['$'][aW(0x4c5,0x4af)];return d[aW(0x560,0x554)];}*['isDurationDefinedByEffort'](){const d=yield this['$']['selector'];return d['isDurationDefinedByEffort'];}*['calculateProjectedXDate'](d,e){function aX(a,b){return al(b,a- -0x14);}if(yield*this[aX(0xab,0x50)]()){return yield*this[aX(0x4c,0x9b)](d,e,yield this['$'][aX(0x37,-0x26)],yield this['$'][aX(0xbe,0xde)]);}else{return yield*this[aX(0x98,0x3e)](d,e,yield this[aX(0x62,0x8a)]['$'][aX(0x5c,0x6e)],yield this['$'][aX(0x69,0x78)]);}}*[al(0x96,0xb5)](){const d=yield this['$']['selector'];const e=d[aY(-0x140,-0x18a)];function aY(a,b){return al(a,b- -0x26e);}if(e&&d['isUserTimePhased']){const f=yield this['$'][aY(-0x22e,-0x1f9)];if(f['direction']===Direction['Forward']){const g=yield*this[aY(-0x17a,-0x1ad)]();const h=yield e['$'][aY(-0x1ce,-0x1c5)];if(g>h){return h;}else return g;}else{const i=yield this['$'][aY(-0x183,-0x1c5)];const j=yield e['$'][aY(-0x16f,-0x19b)];const k=yield this[aY(-0x248,-0x1f8)]['$'][aY(-0x23a,-0x1fe)];const l=yield*this[aY(-0x214,-0x1c2)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(0xf6,0xe6)](){const d=yield this['$'][aZ(0x43e,0x412)];function aZ(a,b){return al(a,b-0x3de);}const e=d['event'];if(e&&d[aZ(0x3dc,0x416)]){const f=yield this['$'][aZ(0x4b0,0x453)];if(f[aZ(0x473,0x4a2)]===Direction[aZ(0x45c,0x45a)]){const g=yield this['$'][aZ(0x4d9,0x4b1)];const h=yield e['$'][aZ(0x4bd,0x487)];const i=yield this[aZ(0x421,0x454)]['$'][aZ(0x43b,0x44e)];const j=yield*this['calculateProjectedXDateWithDuration'](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[aZ(0x44f,0x45d)]();const l=yield e['$'][aZ(0x4c9,0x4b1)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*[al(0x99,0x54)](){function b0(a,b){return al(a,b-0x3a8);}const d=yield this['$'][b0(0x46e,0x47b)];const e=yield this['$'][b0(0x434,0x451)];return yield*this[b0(0x3d9,0x42f)](d,e);}*[al(0x10a,0xc1)](){const d=yield this['$'][b1(0x16f,0x126)];function b1(a,b){return al(b,a-0x8b);}if(d){const e=yield d['$']['startDate'];const f=yield this['$']['proposedStartOffset'];const g=yield*this[b1(0x137,0x173)](e,!![],f,TimeUnit['Millisecond']);const h=yield*this['skipNonWorkingTime'](g,!![]);return h;}else{return null;}}*[al(0xc6,0x7f)](){function b2(a,b){return al(a,b- -0xb6);}const d=yield this['$'][b2(0x57,0x2e)];if(d){const e=yield d['$'][b2(-0x22,-0xd)];const f=yield this['$'][b2(-0x35,0x17)];const g=yield*this['calculateProjectedXDateWithDuration'](e,![],f,TimeUnit[b2(-0x5e,-0xf)]);const h=yield*this['skipNonWorkingTime'](g,![]);return h;}else{return null;}}*[al(0xee,0xa2)](d){const e=yield this['$'][b3(-0x188,-0x12d)];function b3(a,b){return al(b,a- -0x26c);}const f=e?yield e['$'][b3(-0x21f,-0x261)]:yield this[b3(-0x236,-0x269)]()['$'][b3(-0x21f,-0x1c6)];yield f['$']['version'];return f;}*['useEventAvailabilityIterator'](){return!![];}*[al(0x16,0x3e)](){const d=new Map();const e=yield this['$'][b4(-0x124,-0x14c)];if(e){const f=yield e['$'][b4(-0x17b,-0x1d8)];d[b4(-0x189,-0x1a6)](f,[this]);}function b4(a,b){return al(b,a- -0x1c8);}return d;}*[al(0x33,0x58)](){function b5(a,b){return al(a,b- -0x228);}const d=yield this['$'][b5(-0x1a0,-0x1f4)];return d['isTimePhasedStructurally'];}*['isTimePhased'](){const d=yield this['$'][b6(-0x2ab,-0x2db)];function b6(a,b){return al(b,a- -0x2df);}return d[b6(-0x23c,-0x245)];}*[al(0x9,0x38)](){const d=yield this['$'][b7(0x35d,0x37a)];function b7(a,b){return al(a,b-0x346);}return d[b7(0x3cf,0x37e)];}*[al(0x3c,0x92)](){function b8(a,b){return al(a,b-0x248);}const d=yield this['$'][b8(0x2d4,0x27c)];return d[b8(0x2e9,0x2da)];}*[al(0x7d,0x57)](){const d=yield*super[b9(-0x116,-0x10f)]();const e=yield this['$'][b9(-0xbb,-0x82)];if(e){const f=yield*e['effectiveSchedulingMode']();if(f===SchedulingMode[b9(-0xfe,-0x105)]){d[b9(-0xfd,-0x118)]=![];}}function b9(a,b){return al(a,b- -0x166);}return d;}*[al(0x1d,0x47)](d,e){function ba(a,b){return al(b,a- -0x1e5);}if(yield*this['hasProposedAssignments']()){const f=yield this['$'][ba(-0x101,-0xea)];if(yield this['$']['effortDriven']){if(!f||(yield ProposedOrPreviousValueOf(f['$'][ba(-0x19a,-0x15d)]))!=null)e[ba(-0x177,-0x190)](EffortVar);}else{if(yield*this['hasPreviousValueForUnits']()){e[ba(-0x177,-0x138)](UnitsVar);}}}}*[al(0x123,0xcc)](d){const e=yield*this[bb(-0x26f,-0x260)]();const f=yield this['$'][bb(-0x20b,-0x208)];function bb(a,b){return al(a,b- -0x2ec);}if(e!==SchedulingMode[bb(-0x279,-0x28b)]&&f){let g;if(yield*this[bb(-0x1f3,-0x249)]()){g=yield*super['prepareDispatcher'](d);}else{g=yield*super[bb(-0x1dd,-0x220)](d);g['collectInfo'](d,f['$'][bb(-0x230,-0x219)],StartDateVar);g['collectInfo'](d,f['$']['endDate'],EndDateVar);g[bb(-0x2cc,-0x29a)](d,f['$'][bb(-0x2a4,-0x27c)],DurationVar);g[bb(-0x24c,-0x29a)](d,f['$'][bb(-0x2ef,-0x2a1)],EffortVar);}if(yield*f['hasProposedValueForUnits']()){g['addProposedValueFlag'](UnitsVar);}return g;}else{return yield*super['prepareDispatcher'](d);}}*['hasProposedAssignments'](){const d=yield this['$'][bc(0x3c3,0x3be)];function bc(a,b){return al(b,a-0x2df);}return d?yield HasProposedValue(d['$'][bc(0x3cb,0x375)]):![];}*[al(0x4a,0x96)](){return yield HasProposedValue(this['$']['units']);}*[al(0x9b,0x63)](){return(yield PreviousValueOf(this['$']['units']))!==void 0x0;}*[al(0x79,0xd5)](){function bd(a,b){return al(b,a- -0x99);}const d=yield*this['effectiveSchedulingMode']();const e=yield this['$'][bd(0x4b,0x85)];if(e&&d!==SchedulingMode['Normal']){const f=yield this['$'][bd(-0x5,0x18)];const g=f[bd(0x37,0x49)][bd(-0x2d,0x2a)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$'][bd(-0x4e,-0x25)]);const i=yield*e[bd(0x3,-0x3d)]('effort');if(h&&!i||(yield*this[bd(0x11,0x7)]())&&(yield HasPreviousValue(e['$'][bd(-0x4e,-0x5c)]))&&!(yield e['$'][bd(-0x5d,-0x9a)])[bd(-0x48,-0xa3)]&&!this[bd(-0x17,-0x37)][bd(-0x1,-0x46)]){return yield*this[bd(-0x21,0x19)]();}return yield*this[bd(0x36,0x6b)]();}else if(g===effortFormula[bd(0x23,0x29)]){return yield*this[bd(-0x25,-0x51)]();}else{throw new Error(bd(-0x40,-0x91));}}else{return yield*b[bd(0x3c,0x4a)][bd(0x3e,0x93)](this);}}*['calculateProportionalEffortByUnits'](){const d=yield this[be(0x484,0x484)]['$']['proposedTotalUnits'];const e=yield ProposedOrPreviousValueOf(this[be(0x484,0x48f)]['$'][be(0x3eb,0x3a0)]);const f=yield this[be(0x484,0x435)]['$'][be(0x472,0x483)];const g=(yield*this[be(0x3d6,0x38a)]()[be(0x411,0x41a)](e,f,TimeUnit[be(0x447,0x423)]))*((yield ProposedOrPreviousValueOf(this['$'][be(0x43e,0x3e7)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;function be(a,b){return al(b,a-0x3a0);}return yield*this['getProject']()['$convertDuration'](h,TimeUnit[be(0x447,0x457)],yield this['$'][be(0x472,0x4bf)]);}*[al(0xd2,0x81)](){const d=yield PreviousValueOf(this[bf(0xa0,0x68)]['$'][bf(-0x23,-0x31)]);const e=yield this[bf(0x9c,0x68)]['$'][bf(0x1a,0x56)];const f=yield*this[bf(-0x25,-0x46)]()[bf(-0x15,-0xb)](d,e,TimeUnit[bf(0x7c,0x2b)]);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$'][bf(-0x20,-0x31)]);const h=yield this['$'][bf(0x71,0x56)];const i=yield*this['getProject']()['$convertDuration'](g,h,TimeUnit['Millisecond']);const j=yield ProposedOrPreviousValueOf(this[bf(0x30,0x68)]['$'][bf(0x22,-0x31)]);function bf(a,b){return al(a,b- -0x7c);}const k=yield*this[bf(-0xa0,-0x46)]()[bf(0x4e,-0xb)](j,e,TimeUnit[bf(-0x8,0x2b)]);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bf(-0x6b,-0x46)]()[bf(0x4b,-0xb)](l,TimeUnit[bf(-0x1e,0x2b)],h);}else{return 0x0;}}*['calculateProportionalEffort'](){function bg(a,b){return al(a,b-0x353);}const d=yield HasProposedNotPreviousValue(this[bg(0x45a,0x437)]['$'][bg(0x398,0x39e)]);const e=yield*this[bg(0x40d,0x437)][bg(0x442,0x3fd)]();if(d&&!e){return yield*this['calculateProportionalEffortByEffort']();}else{return yield*this[bg(0x3c1,0x3ed)]();}}*['calculateUnitsByStartEndAndEffort'](d){const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$']['effort']);const g=yield*e[bh(0x298,0x2c3)](bh(0x2b0,0x272));const h=f&&!g?yield*this[bh(0x28b,0x29f)]():yield this['$']['effort'],i=yield this['$']['effortUnit'],j=yield*this[bh(0x276,0x25d)]()[bh(0x278,0x298)](h,i,TimeUnit[bh(0x31a,0x2ce)]);let k,l;function bh(a,b){return al(a,b-0x227);}if(yield*this[bh(0x284,0x2ca)]()){k=yield this['$'][bh(0x320,0x2fa)];l=yield this['$'][bh(0x2b0,0x2d0)];}else{k=yield e['$'][bh(0x2e6,0x2fa)];l=yield e['$'][bh(0x29a,0x2d0)];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object[bh(0x26d,0x261)](yield*this[bh(0x2fd,0x2a2)](),{'startDate':k,'endDate':l});const o=yield this['$'][bh(0x28d,0x28e)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{function bi(a,b){return bh(b,a- -0x197);}const s=r[bi(0xf4,0x10a)]();const t=p[bi(0x16b,0x143)](),u=q[bi(0x16b,0x19d)](),v=u-t;for(const w of s){m+=(o['has'](w)?o[bi(0xfc,0xb6)](w)[bi(0x14e,0xf7)]:0x0)*v;}});return m?0x64*j/m:0x64;}*[al(0x64,0xa5)](d,e,f,g,h){const i=this[bj(-0x10c,-0xf8)]();const j=this[bj(-0x39,-0x4a)];const k=yield*i[bj(-0xe9,-0xbd)](f,g,TimeUnit['Millisecond']);let l=0x0;function bj(a,b){return al(a,b- -0x12e);}const m=Object[bj(-0xaf,-0xf4)](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':d,'endDate':e});const n=yield j['$'][bj(-0x6e,-0x4c)];const o=(yield j['$']['ignoreResourceCalendar'])||(yield this['$']['ignoreResourceCalendar'])||(yield*j['hasElapsedDuration']())||n&&!i[bj(-0xa8,-0x4e)];const p=o?yield j['$'][bj(-0x90,-0xe1)]:yield h['$'][bj(-0xf4,-0xe1)];yield*this[bj(-0x11d,-0xea)](m,(q,r,s)=>{function bk(a,b){return bj(b,a-0xb);}const t=s[bk(-0xbf,-0xf0)]();const u=q[bk(-0x48,-0x4)](),v=r[bk(-0x48,-0x63)](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[al(0xa0,0xda)]=al(0xa7,0x65);__decorate([model_field({'type':al(0xa7,0xab),'defaultValue':!![]})],c[al(0x65,0x8d)],al(0x101,0xdd),void 0x0);__decorate([model_field({'type':al(0x43,0x3b),'defaultValue':SchedulingMode[al(0xba,0xa0)]},{'sync':!![]})],c['prototype'],al(0x92,0x5c),void 0x0);__decorate([model_field({'type':al(0xb2,0xab),'defaultValue':![]})],c[al(0x83,0x8d)],'ignoreResourceCalendar',void 0x0);__decorate([model_field({'type':'date','bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x40,0x8d)],al(0xa1,0xd3),void 0x0);__decorate([model_field({'type':al(0xbd,0x8f),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x3b,0x8d)],'endDate',void 0x0);__decorate([model_field({'type':'number','bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c['prototype'],al(0x45,0x70),void 0x0);__decorate([model_field({'type':al(0x86,0xcb),'defaultValue':null})],c[al(0xe7,0x8d)],al(0x29,0x4b),void 0x0);__decorate([field()],c[al(0x85,0x8d)],al(0x36,0x34),void 0x0);__decorate([calculate(al(0x84,0x34))],c[al(0x49,0x8d)],'calculateSelector',null);__decorate([calculate(al(0xde,0xdd))],c[al(0x67,0x8d)],al(0xb5,0x5b),null);__decorate([calculate(al(0x2a,0x5c))],c['prototype'],'calculateSchedulingMode',null);__decorate([field()],c['prototype'],'startOffset',void 0x0);function al(a,b){return _enaa(b-0x323,a);}__decorate([field()],c[al(0x36,0x8d)],'phantomStartOffset',void 0x0);__decorate([field()],c['prototype'],al(0xa3,0x88),void 0x0);__decorate([field()],c['prototype'],al(0xb1,0x55),void 0x0);__decorate([field()],c['prototype'],al(0x5e,0x48),void 0x0);__decorate([field()],c[al(0x6e,0x8d)],al(0xa8,0x68),void 0x0);__decorate([field()],c[al(0xbe,0x8d)],al(0x9c,0xad),void 0x0);__decorate([field()],c[al(0x5e,0x8d)],al(0x124,0xcd),void 0x0);__decorate([field({'sync':!![]})],c[al(0x6b,0x8d)],al(0xa5,0x66),void 0x0);__decorate([write(al(0x79,0x4e))],c[al(0x54,0x8d)],al(0xd3,0xe3),null);__decorate([write(al(0xca,0xd3))],c[al(0x59,0x8d)],al(0xe3,0xd8),null);__decorate([write(al(0x81,0xa9))],c['prototype'],al(0x76,0x7e),null);__decorate([write(al(0xae,0x70))],c[al(0x4e,0x8d)],'writeDuration',null);__decorate([write(al(0x70,0x4b))],c[al(0xe3,0x8d)],al(0xc3,0xb9),null);__decorate([write(al(0xb5,0x9e))],c['prototype'],al(0x6d,0x72),null);__decorate([calculate(al(0xa0,0x4e))],c[al(0x60,0x8d)],al(0xd8,0xb7),null);__decorate([calculate(al(0x64,0x43))],c['prototype'],al(0xc5,0xe7),null);__decorate([calculate(al(0x3a,0x55))],c[al(0xc3,0x8d)],al(0xe,0x69),null);__decorate([calculate(al(0x9d,0x88))],c[al(0xaa,0x8d)],'calculatePhantomStartDate',null);__decorate([calculate(al(0x10a,0xad))],c['prototype'],'calculatePhantomEndDate',null);__decorate([calculate(al(0x4e,0xa1))],c[al(0x57,0x8d)],al(0xc0,0xaf),null);__decorate([calculate(al(0x8b,0x68))],c['prototype'],al(0x6e,0x77),null);__decorate([calculate(al(0x87,0x48))],c[al(0xd1,0x8d)],al(0x11f,0xea),null);__decorate([calculate(al(0xa3,0xcd))],c[al(0xaf,0x8d)],'calculateProposedEndOffset',null);__decorate([calculate('effort')],c['prototype'],'calculateEffort',null);return c;}){}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0x23a,-0x291)](){return['assignment'];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get['defaultConfig'](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);this['isTimePhasedCalendar']=!![];}get['intervalStoreClass'](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
|
|
1
|
+
(function(a,b){const c=a();function V(a,b){return _enb(b-0x234,a);}while(!![]){try{const d=parseInt(V(0x408,0x3a6))/0x1*(-parseInt(V(0x314,0x311))/0x2)+parseInt(V(0x306,0x30c))/0x3*(-parseInt(V(0x3a3,0x354))/0x4)+-parseInt(V(0x352,0x38b))/0x5*(parseInt(V(0x363,0x32d))/0x6)+-parseInt(V(0x39a,0x378))/0x7*(parseInt(V(0x364,0x34d))/0x8)+-parseInt(V(0x331,0x344))/0x9*(parseInt(V(0x368,0x397))/0xa)+parseInt(V(0x31d,0x309))/0xb+parseInt(V(0x34f,0x2f5))/0xc*(parseInt(V(0x360,0x3a4))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb3afd));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[W(-0x33,0x2)](b,e):f,j;function W(a,b){return _enb(b- -0x113,a);}if(typeof Reflect===W(0x9c,0x5e)&&typeof Reflect[W(-0x23,-0x32)]==='function')h=Reflect[W(0x16,-0x32)](a,b,e,f);else for(var k=a[W(-0x9,-0x16)]-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[W(0x4c,0x20)](b,e,h),h;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc1;let f=c[d];return f;};return _enb(a,b);}import{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,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,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MissingValue}from'../../../util/Constants.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{effortFormula,EffortVar,UnitsVar}from'./HasEffortDispatcher.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';class TimePhasedAssignmentMirror extends Mixin([FixedDurationMixin],a=>{class b extends a{*[X(-0x28c,-0x295)](){function Y(a,b){return X(b-0x604,a);}return yield this[Y(0x399,0x3ab)]['$']['durationUnit'];}*[X(-0x29f,-0x26c)](){function Z(a,b){return X(a-0x451,b);}return yield this[Z(0x1f8,0x196)]['$']['effortUnit'];}*[X(-0x27b,-0x294)](){function a0(a,b){return X(b-0x3db,a);}return yield this[a0(0x170,0x182)]['$'][a0(0x176,0x126)];}*[X(-0x2d3,-0x2b6)](){function a1(a,b){return X(a-0x53c,b);}return yield this[a1(0x2e3,0x2a8)]['$'][a1(0x268,0x220)];}*[X(-0x2dc,-0x2b1)](){function a2(a,b){return X(b-0x52b,a);}return yield*this[a2(0x2fc,0x2d2)][a2(0x227,0x24f)]();}*[X(-0x251,-0x26d)](){function a3(a,b){return X(a-0x510,b);}return yield*this[a3(0x2b7,0x298)]['hasPreviousValueForUnits']();}*['calculateEffectiveDirection'](){function a4(a,b){return X(b-0x2c5,a);}return yield*this[a4(0x5b,0x6c)][a4(0x54,0x14)]();}*['calculateEffectiveDataOrVisualCalendar'](c){function a5(a,b){return X(a-0x5fa,b);}return yield*this[a5(0x3a1,0x37a)][a5(0x367,0x35b)](c);}*[X(-0x301,-0x335)](){function a6(a,b){return X(a-0x342,b);}const c=new Map();const d=yield this[a6(0xe9,0xfc)]['$']['resource'];if(d){const e=yield d['$'][a6(0x59,0x91)];c[a6(0xbc,0xc9)](e,[this[a6(0xe9,0x13a)]]);}return c;}*[X(-0x2ea,-0x2c0)](){function a7(a,b){return X(a-0x534,b);}return yield this[a7(0x2db,0x296)]['$'][a7(0x24f,0x27f)];}*[X(-0x2cc,-0x314)](){function a8(a,b){return X(b-0x215,a);}return yield*this[a8(0x2,-0x44)][a8(-0xbd,-0xb7)]();}}__decorate([calculate('durationUnit')],b['prototype'],'calculateDurationUnit',null);__decorate([calculate(X(-0x2e3,-0x2c4))],b[X(-0x2cf,-0x30e)],X(-0x29f,-0x2a6),null);__decorate([calculate('effortDriven')],b['prototype'],X(-0x27b,-0x2c1),null);__decorate([calculate(X(-0x2d4,-0x2f1))],b[X(-0x2cf,-0x29f)],'calculateSchedulingMode',null);__decorate([calculate(X(-0x2e5,-0x305))],b[X(-0x2cf,-0x28d)],X(-0x2ea,-0x2aa),null);function X(a,b){return _enb(a- -0x3d3,b);}return b;}){}function _ena(){const bn=['isRemovingAssignmentByPutEffort','isUserTimePhased','getBaseOptionsForDurationCalculations','prepareDispatcher','hasInputOnlyOnEffort','hasProposedValueForAssignmentsField','call','FixedDuration','writeUnits','leaveGraph','direction','9fsOyJH','SchedulerProTimePhasedAssignmentMixin','effort','commitAsync','skipNonWorkingTime','getOwnPropertyDescriptor','addProposedValueFlag','proposedStartDate','calculateStartByDelay','24qqAQZl','Backward','calculateSelector','calculateEffortPure','calculateProposedEndOffsetRaw','effortDriven','proposedStartDateMin','4gCgMuQ','setTimePhasedEffortBatch','calculateEffectiveDirection','hasIdentifier','isTimePhased','version','date','string','writeStartDate','writeEndDate','unlink','phantomEndOffset','phantomEndDate','ownIgnoreResourceCalendar','proposedEndDate','endDate','skipNonWorkingTimeInDurationWhenSchedulingManually','writeIgnoreResourceCalendar','calculateHasOnlyRegularAssignmentsRaw','defineProperty','calculateEffortUnit','has','eventSelector','isSegmented','FixedUnits','calculateUnitsByStartEndAndEffort','defaultConfig','event','calculateStartDate','manuallyScheduled','eventIsSegmented','hasProposedAssignments','calculateEffectiveDataOrVisualCalendar','sort','slice','effectiveSchedulingMode','2443847kOCwAV','proposedTotalUnits','hasInputOnStartDate','calculateDurationUnit','_calculateEffortData','baseRevision','putTimePhasedEffortBatch','hasEffortInput','calculateEndOffset','set','assign','calculateStartOffset','hasEndDateValue','selector','duration','fields','calculateProjectedXDateByEffort','putTimePhasedEffort','proposedStartOffset','4161545NxJWhn','calculateEffortDriven','dispatcher','ion','calculateEffort','$name','Unknown\x20formula\x20for\x20`effort`','useEventAvailabilityIterator','endOffset','calculatePhantomEndDate','PROPOSED_','startOffset','9904340anLiZR','get','setTimePhasedEffort','isPhantomTimePhased','calculateEndDate','resource','collectInfo','_changeAssignmentData','Forward','calculateProposedStartOffsetRaw','proposedStartOffsets','formulaId','assigned','2015CWKrxv','object','53zGKxMd','calculatePhantomStartDate','enterGraph','calculateSchedulingModeForUnitsCalculation','eventEffortDriven','hasInputOnUnits','number','getTime','assignment','isDurationDefinedByEffort','proposedEndDateMax','getBaseOptionsForEffortCalculations','run','calculateEffortProposed','Normal','calculateProportionalEffortByUnits','hasPreviousValueForUnits','intervalStoreClass','maxAssignmentProposedEndDate','304068ZKnlWS','graph','eventEffectiveSchedulingMode','filter','proposedMirror','writeEffort','timePhasedDispatcher','_proposedMirror','calculateProportionalEffort','forEachAvailabilityInterval','durationUnit','project','Millisecond','proposedEndOffset','hasInputOnEffort','minOffset','hasInputOnDuration','calculateAssignmentsByCalendar','prepareDispatcherForAssignmentsFixedDuration','constructor','12928388HnoSTs','addKeepIfPossibleFlag','splice','3506835EVnsUw','push','write','doCalculateAssignmentEffort','calculateEndByDelay','12370WCAacj','calculateProjectedDuration','isTimePhasedStructurally','calculateUnitsForNewAssignment','decorate','$convertDuration','writeDuration','hasInputOnTimePhasedData','assignmentsByCalendar','effectiveDirection','isPhantomTimePhasedStructurally','getProject','calculateIgnoreResourceCalendar','effectiveCalendar','isChangingOnlyDuration','minAssignmentProposedStartDate','proposedMirrorClass','ignoreResourceCalendar','calculateProjectedXDateWithDuration','effortUnit','size','hasInputOnEndDate','phantomStartOffset','calculatePhantomStartOffset','hasElapsedDuration','hasSomeInput','hasProposedValueForUnits','calculateProportionalEffortByEffort','6czVbAE','calculatePhantomEndOffset','isDurationDefinedByEffortStructurally','units','length','startDate','schedulingMode','calculateSchedulingMode','phantomStartDate','getCalendarsWorking','hasStartDateValue','prototype'];_ena=function(){return bn;};return _ena();}class TimePhasedAssignmentSelector{constructor(){this[a9(0x377,0x394)]=null;function a9(a,b){return _enb(a-0x1fd,b);}this[a9(0x338,0x306)]=null;this[a9(0x333,0x325)]=null;this[a9(0x2c0,0x29f)]=null;this[a9(0x373,0x362)]=![];this[a9(0x33b,0x37c)]=![];this[a9(0x300,0x2b5)]=![];this[a9(0x34d,0x336)]=![];this['hasDurationValue']=![];this[a9(0x343,0x330)]=![];this[a9(0x2ef,0x2a6)]=![];this['hasInputOnDuration']=![];this['hasInputOnEffort']=![];this[a9(0x374,0x322)]=![];this[a9(0x37f,0x3b9)]=![];}get[_enaa(-0x139,-0x188)](){function ab(a,b){return _enaa(b-0x97,a);}return!this[ab(-0xe,-0x65)]&&!this[ab(-0xa1,-0xb9)]&&!this[ab(-0x109,-0xda)]&&this[ab(-0xa2,-0xdc)]&&!this[ab(0xa,-0x34)];}get[_enaa(-0x14c,-0x16e)](){function ac(a,b){return _enaa(b- -0xb4,a);}return this['hasInputOnStartDate']||this[ac(-0x1f3,-0x204)]||this['hasInputOnDuration']||this[ac(-0x207,-0x227)]||this[ac(-0x189,-0x17f)];}get[_enaa(-0x15e,-0x1a3)](){function ad(a,b){return _enaa(b-0x2fe,a);}return this[ad(0x22f,0x202)]||this[ad(0x1a4,0x1ae)]||this[ad(0x149,0x18d)];}get[_enaa(-0x13c,-0x149)](){function ae(a,b){return _enaa(b-0x63,a);}return(this[ae(-0xc5,-0xdc)]?0x1:0x0)+(this[ae(-0x6c,-0x8f)]?0x1:0x0)+(this['hasDurationValue']?0x1:0x0)>=0x2;}get[_enaa(-0x11e,-0x132)](){function af(a,b){return _enaa(a- -0x16c,b);}return this[af(-0x2a8,-0x294)]||this[af(-0x233,-0x205)];}get[_enaa(-0x163,-0x143)](){function ag(a,b){return _enaa(a-0x12,b);}return this[ag(-0x12a,-0x141)]||this['isDurationDefinedByEffortStructurally'];}get[_enaa(-0xdc,-0xb2)](){function ah(a,b){return _enaa(a-0x20f,b);}return this['isTimePhased']&&!this[ah(0xd3,0xec)];}get[_enaa(-0x15b,-0x140)](){return this['isTimePhasedStructurally']&&!this['isUserTimePhased'];}get[_enaa(-0x147,-0x110)](){const a=this['event'];function ai(a,b){return _enaa(a-0x2bc,b);}if(a){const b=this[ai(0x13d,0xf6)];const c=this[ai(0x1f0,0x1eb)];return b!==SchedulingMode[ai(0x186,0x147)]&&b!==SchedulingMode[ai(0x1fa,0x1b3)]&&(c||b===SchedulingMode['FixedEffort']);}else{return![];}}get[_enaa(-0xc7,-0x11b)](){const a=this['event'];function aj(a,b){return _enaa(b-0x1cc,a);}if(a){const b=this['eventEffectiveSchedulingMode'];return this[aj(0xc0,0x85)]&&!this[aj(0xee,0xc0)][aj(0xb0,0x75)]&&!this[aj(0x10d,0xc0)]['isChangingOnlyEndDate']||b===SchedulingMode[aj(0x115,0xc2)]&&this[aj(0xa,0x59)]&&!this[aj(0xfb,0x101)]&&this[aj(0xbd,0x10c)];}else{return![];}}*[_enaa(-0xd9,-0x93)](){const a=this['assignment'];this[ak(-0x10b,-0xe5)]=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xe3,-0xea)]))!=null;this['hasEndDateValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xf0,-0xb9)]))!=null;this['hasDurationValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xf3,-0x96)]))!=null;this[ak(-0x64,-0xa2)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x11b,-0xea)]);this[ak(-0xc8,-0xf6)]=yield HasProposedNotPreviousValue(a['$'][ak(-0xad,-0xb9)]);this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$'][ak(-0x5c,-0x96)]);this[ak(-0xde,-0x119)]=yield HasProposedNotPreviousValue(a['$'][ak(-0xe8,-0xd6)]);this[ak(-0x90,-0x71)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x90,-0xec)]);this[ak(-0x72,-0x66)]=yield*a[ak(-0x67,-0x66)]();function ak(a,b){return _enaa(b-0x5a,a);}const b=this[ak(-0x4c,-0xad)]=yield a['$']['event'];if(b){this[ak(-0xa0,-0xb2)]=yield b['$'][ak(-0x88,-0x97)];this[ak(-0x153,-0x125)]=yield*b[ak(-0xc4,-0xa5)]();this[ak(-0x94,-0x72)]=yield b['$']['effortDriven'];this[ak(-0x5b,-0xaa)]=yield b['$'][ak(-0xd4,-0xb1)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0xa1,0x7c)];class c extends a{constructor(){super(...arguments);function am(a,b){return al(a- -0x58,b);}this[am(0x32,0x88)]=TimePhasedAssignmentMirror;this[am(0xd,-0x45)]=void 0x0;}[al(0xe5,0xd0)](d,e,f){let g,h;if(d[an(0x597,0x53d)]){g=d[an(0x594,0x53d)](an(0x483,0x49a),e,f);h=d[an(0x4ff,0x4af)];}else{g=this[an(0x4ee,0x53d)](an(0x4d1,0x49a),e,f);h=this[an(0x47a,0x4af)];}function an(a,b){return al(b-0x422,a);}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0x107,0x102)](d,e,f){let g;if(d[ao(0xb8,0x119)]){g=f[ao(0x12c,0xff)](d);if(!g){g={};f[ao(0xd6,0xe8)](d,g);}}else{g=d;}function ao(a,b){return al(b- -0x2,a);}Object['assign'](g,e);return g;}[al(0xe7,0x126)](d){if(!d[ap(-0xe8,-0x10b)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g['assigned'];const n=g['startDate'];const o=g[ap(-0xb6,-0x85)];const p=new Map();function ap(a,b){return al(a- -0x182,b);}const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d[ap(-0xa3,-0x95)]()[ap(-0xa4,-0xc5)]((w,x)=>(w[ap(-0xe7,-0x11f)]||n)[ap(-0x6c,-0xc1)]()-(x[ap(-0xe7,-0xbc)]||n)[ap(-0x6c,-0x64)]());const t=[...m][ap(-0x121,-0x137)](w=>w[ap(-0x7d,-0x1f)]===f)[ap(-0xa4,-0xa0)]((w,x)=>(w[ap(-0xe7,-0x126)]||n)['getTime']()-(x[ap(-0xe7,-0x110)]||n)[ap(-0x6c,-0x44)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ap(-0xd3,-0x12d)]);const A=t[ap(-0xa3,-0xbf)]();let B=![];for(let C=u,D=A[ap(-0xe8,-0x142)];C<D;C++){const E=A[C];const F=p[ap(-0x81,-0x36)](E);const G=F?.[ap(-0xe7,-0x130)]||E[ap(-0xe7,-0x13b)]||n;const H=F?.[ap(-0xb6,-0xca)]||E[ap(-0xb6,-0xb1)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ap(-0x11a,-0x112)]||E[ap(-0x11a,-0x10b)];if(G>=x&&H<=y){if(z){p['set'](E,w);z=![];}else{r[ap(-0x10c,-0xc3)](E);t[ap(-0x10e,-0x141)](C);}}else{let K;if(z){K={...s,...w};q[ap(-0x10c,-0x166)](K);z=![];}let L=![];if(G<x){const M=this[ap(-0x9d,-0xc2)](E,G,x);if(M[ap(-0xd3,-0x101)]){L=!![];this[ap(-0x7b,-0xa0)](E,M,p);if(K){I++;t[ap(-0x10e,-0xcf)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ap(-0x9d,-0xcb)](E,y,H)};if(N['effort']){q['push'](N);t[ap(-0x10e,-0xfd)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[ap(-0x10e,-0xdc)](I,0x0,K);I++;}const O=this[ap(-0x7b,-0xd6)](E,this[ap(-0x9d,-0x69)](E,y,H),p);if(!O[ap(-0xd3,-0xc6)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q[ap(-0x10c,-0xb4)](P);t[ap(-0x10c,-0xaf)](P);if(!p[ap(-0xf4,-0x9a)]&&t[ap(-0xe8,-0xf9)]===0x1&&!t[0x0][ap(-0xe7,-0xf8)]&&!t[0x0][ap(-0xb6,-0xfc)]){this[ap(-0x7b,-0x23)](t[0x0],{'startDate':n,'endDate':o,'effort':this[ap(-0xd3,-0x119)]},p);}}}let v=[];for(let [Q,R]of p){Object[ap(-0x97,-0xac)](Q,R);}if(q[ap(-0xe8,-0x130)]){q['sort']((S,T)=>S[ap(-0xe7,-0x112)][ap(-0x6c,-0x4e)]()-T[ap(-0xe7,-0xf5)][ap(-0x6c,-0xad)]());if(this[ap(-0xaa,-0x48)][ap(-0xe6,-0x111)]===SchedulingMode['FixedDuration']){for(const S of q){const T=this['run'](ap(-0x105,-0x132),S[ap(-0xe7,-0x126)],S['endDate'],S[ap(-0xd3,-0x128)],S[ap(-0xf5,-0xd3)],S['resource']);delete S[ap(-0xd3,-0xf1)];S[ap(-0xe9,-0xd7)]=T;}}v=k['add'](q);}if(r[ap(-0xe8,-0xbd)]){r['forEach'](U=>{U['effort']=0x0;U[aq(-0x4c,-0x2e)]=0x0;function aq(a,b){return ap(b-0x65,a);}U['$removed']=!![];});e[ap(-0x8b,-0xa4)]({'commitFinalized':{'fn':()=>{function ar(a,b){return ap(b-0x117,a);}e['isRemovingAssignmentByPutEffort']=!![];k['remove'](r);e[ar(0x3e,0x8c)]({'commitFinalized':{'fn':()=>{function as(a,b){return ar(b,a-0x42);}e[as(0x79,0x29)]=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}[al(0xbe,0x8f)](d){this[at(0x8a,0x39)](d);function at(a,b){return al(b- -0xae,a);}return this[at(-0x27,0x2)]();}['putTimePhasedEffort'](d,e,f,g=this[al(0x8d,0x7f)]){function au(a,b){return al(b-0x52,a);}return this[au(0xfe,0x139)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0x102,0xe1)](d,e,f,g){function av(a,b){return al(b- -0x130,a);}this[av(-0x5b,-0x3e)](d,e,f,g);return this['commitAsync']();}*[al(0xb8,0xe2)](){function aw(a,b){return al(a- -0x361,b);}const d=new TimePhasedAssignmentSelector();d[aw(-0x24a,-0x228)]=this;yield*d[aw(-0x25b,-0x261)]();return d;}*[al(0xf5,0xe9)](){function ax(a,b){return al(a-0x19b,b);}const d=yield this['$'][ax(0x273,0x25b)];if(d&&(yield this['$']['resource'])){const e=yield d['$'][ax(0x237,0x248)];return e===SchedulingMode[ax(0x2b8,0x2d0)]?!![]:yield d['$']['effortDriven'];}else{return![];}}*[al(0x9d,0x88)](){const d=yield this['$'][ay(0x6,-0x54)];function ay(a,b){return al(a- -0xd2,b);}if(d&&(yield this['$'][ay(0x33,0x33)])){const e=yield d['$'][ay(-0x36,-0x3c)];return e===SchedulingMode[ay(0x4b,0x2a)]?SchedulingMode[ay(-0x29,0x31)]:e;}else{return SchedulingMode[ay(0x4b,0x6d)];}}*[al(0x112,0xbb)](d){function az(a,b){return al(a-0x11a,b);}const e=yield this['$'][az(0x1f2,0x241)];if(e&&(yield this['$'][az(0x21f,0x248)])){const f=yield e['$'][az(0x1b6,0x1cd)];return f===SchedulingMode[az(0x237,0x263)]?!(yield*e[az(0x1e9,0x23b)]())?SchedulingMode[az(0x1c3,0x162)]:SchedulingMode['Normal']:f;}else{return SchedulingMode['Normal'];}}get[al(0x62,0x3)](){if(this[aA(-0xdf,-0x102)]!==void 0x0)return this[aA(-0xca,-0x102)];const d=new this[(aA(-0x13f,-0xdd))]();d['assignment']=this;d[aA(-0xa5,-0xfe)]=this[aA(-0xf2,-0xfe)];function aA(a,b){return al(b- -0x167,a);}d['id']=aA(-0xb5,-0x69)+this['id'];if(this[aA(-0x168,-0x108)]){d[aA(-0x8c,-0x56)](this[aA(-0xef,-0x108)]);}return this[aA(-0xc7,-0x102)]=d;}[al(0x111,0x11e)](d){function aB(a,b){return al(a-0x195,b);}super[aB(0x2a6,0x28c)](d);const e=this[aB(0x1fa,0x1af)];if(e&&!e[aB(0x1f4,0x1c4)]){e['enterGraph'](d);}}[al(0xab,0xe1)](d){function aC(a,b){return al(b-0x21e,a);}this['_proposedMirror']?.['leaveGraph'](d);super[aC(0x2ce,0x2c9)](d);}['unlink'](){function aD(a,b){return al(b-0x351,a);}this[aD(0x37f,0x3b6)]?.[aD(0x421,0x418)]();super[aD(0x44e,0x418)]();}[al(0xce,0xaf)](d,e,f,g){function aE(a,b){return al(b- -0x94,a);}e[aE(-0x5b,-0x1d)](this['$'][aE(-0x25,0x36)],g);d['constructor'][aE(0x3c,0xd)][aE(-0x36,-0x1d)][aE(0x1e,0x14)](this,d,e,f,g);}['writeStartDate'](d,e,f,g,h=!![]){if(!(!e['baseRevision'][aF(-0x183,-0x181)](d)&&g==null)){e[aF(-0x19a,-0x1ca)](this[aF(-0x1c8,-0x1df)]['$']['startDate'],g,h);}function aF(a,b){return al(b- -0x241,a);}super[aF(-0x186,-0x17c)](d,e,f,g,h);}['writeEndDate'](d,e,f,g,h=![]){if(!(!e[aG(0x391,0x3c4)]['hasIdentifier'](d)&&g==null)){e[aG(0x322,0x354)](this[aG(0x30d,0x339)]['$'][aG(0x377,0x36e)],g,h);}function aG(a,b){return al(a-0x2ab,b);}super[aG(0x371,0x393)](d,e,f,g,h);}['writeDuration'](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e['baseRevision']['hasIdentifier'](d)&&g==null)){e[aH(0x55,0x5d)](this[aH(-0x2,0x48)]['$'][aH(0x11c,0xd5)],g,h,i);}function aH(a,b){return al(b- -0x1a,a);}super[aH(0x2f,0x66)](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){if(g<0x0)g=0x0;if(!(!e['baseRevision'][aI(0x3bc,0x401)](d)&&g==null)){e[aI(0x37c,0x3b8)](this[aI(0x3c1,0x3a3)]['$'][aI(0x3c2,0x3f0)],g,h);}function aI(a,b){return al(b-0x341,a);}super[aI(0x391,0x3a4)](d,e,f,g,h);}['writeUnits'](d,e,f,g){if(g===MissingValue)return;function aJ(a,b){return al(a-0x105,b);}d[aJ(0x176,0x173)][aJ(0x1a6,0x1f0)][aJ(0x17c,0x13b)][aJ(0x1ad,0x1ea)](this,d,e,f,g);}*[al(0xb9,0xae)](){return yield*this['doCalculateAssignmentEffort']();}*['doCalculateAssignmentEffort'](d=null,e=null){function aK(a,b){return al(a-0x1aa,b);}const f=yield this['$']['selector'];if(f['event']&&f[aK(0x26b,0x21f)]){if(!d){d=yield this['$']['startDate'];}if(!e){e=yield this['$'][aK(0x276,0x296)];}return yield*this['calculateProjectedEffort'](d,e);}return yield*super['doCalculateAssignmentProjectedEffort'](d,e);}*[al(0xbf,0xa6)](){const d=yield this['$'][aL(-0xad,-0x98)];function aL(a,b){return al(a- -0x185,b);}if(d){return yield d['$'][aL(-0x102,-0xc6)];}else{return yield*super[aL(-0xc6,-0x96)]();}}*[al(0x86,0x9d)](){const d=yield this['$']['event'];function aM(a,b){return al(a-0x2db,b);}return Boolean(d&&(yield d['$'][aM(0x366,0x310)])||(yield this['$'][aM(0x3a5,0x390)]));}*[al(0xec,0x134)](){const d=yield this['$'][aN(0x48e,0x4d7)];function aN(a,b){return al(b-0x3ff,a);}if(d){const e=yield d['$']['startDate'];const f=yield this['$']['startDate'];return(yield*this[aN(0x46f,0x47a)](e,f,TimeUnit['Millisecond']))??0x0;}else return null;}*[al(0x109,0x119)](){const d=yield this['$'][aO(0x1d6,0x223)];const e=d['event'];function aO(a,b){return al(a-0xe8,b);}if(e){if(d[aO(0x169,0x1bd)]||(yield PreviousValueOf(this['$'][aO(0x1e7,0x227)]))==null){const f=(yield e['$'][aO(0x19c,0x1f5)])??(yield e['$'][aO(0x171,0x1bb)]);const g=yield this['proposedMirror']['$'][aO(0x183,0x150)];return(yield*this['calculateProjectedDuration'](f,g,TimeUnit[aO(0x152,0x19d)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$']['startOffset']);}}else{return null;}}*['calculateProposedStartOffset'](){function aP(a,b){return al(a- -0x114,b);}const d=yield this['$'][aP(-0x26,-0x4a)];const e=d[aP(-0x3c,-0x3b)];if(e){const f=(yield e['$'][aP(-0xa,-0x16)])[aP(-0xa7,-0xbf)]<0x0;if(f||d[aP(-0x93,-0xc1)]||(yield PreviousValueOf(this['$'][aP(-0x15,-0x21)]))==null){const g=yield this['$'][aP(-0x91,-0x8a)];const h=g[aP(-0x68,-0x9b)]===Direction[aP(-0xc,0x1d)]?yield e['$'][aP(-0x58,-0x64)]:yield e['$']['minAssignmentProposedStartDate'];const i=yield this[aP(-0xb2,-0x100)]['$'][aP(-0x79,-0x60)];return(yield*this['calculateProjectedDuration'](h,i,TimeUnit[aP(-0xaa,-0xae)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aP(-0x15,-0x50)]);}}else{return null;}}*[al(0x110,0x13d)](){const d=yield this['$'][aQ(0x44b,0x488)];if(d[aQ(0x4c2,0x472)]&&!d[aQ(0x49a,0x475)]&&(d[aQ(0x4af,0x49d)]||(yield*d[aQ(0x4ab,0x472)][aQ(0x4cb,0x4b2)]()))){return yield*this[aQ(0x478,0x44f)]();}function aQ(a,b){return al(b-0x39a,a);}return null;}*[al(0xfd,0x14c)](){function aR(a,b){return al(a-0xb5,b);}const d=yield this['$'][aR(0x1a3,0x179)];if(d[aR(0x18d,0x1b5)]&&!d['eventIsSegmented']&&(d[aR(0x1b8,0x1a3)]||(yield*d['event'][aR(0x1cd,0x16b)]()))){const e=yield this['$'][aR(0x153,0x162)];if(e){return yield*this[aR(0x1a6,0x19d)](e,!![],yield this['$'][aR(0x164,0x1b1)],yield this['$'][aR(0x142,0x111)]);}}return null;}*[al(0x91,0x99)](){const d=yield this['$'][aS(0x2ed,0x34a)];function aS(a,b){return al(a-0x1ff,b);}if(d[aS(0x2d7,0x275)]&&!d[aS(0x2da,0x296)]&&(d[aS(0x302,0x34d)]||(yield*d[aS(0x2d7,0x2e0)][aS(0x317,0x2c2)]()))){return 0x0;}else return null;}*[al(0x97,0xcc)](){const d=yield this['$']['selector'];if(d['event']&&!d[aT(0x312,0x2c9)]&&(d[aT(0x33a,0x2f6)]||(yield*d[aT(0x30f,0x2c8)]['isDurationDefinedByEffort']()))){if(d[aT(0x2b8,0x300)]||(yield PreviousValueOf(this['$'][aT(0x2ff,0x2f7)]))==null){const e=yield d[aT(0x30f,0x321)]['$'][aT(0x303,0x329)];const f=yield*this['calculateProjectedXDateByEffort'](yield this['$'][aT(0x2d5,0x330)],!![],yield this['$'][aT(0x2e6,0x330)],yield this['$'][aT(0x2c4,0x26e)]);return yield*this[aT(0x2b2,0x2de)](f,e,TimeUnit[aT(0x2a1,0x2a2)]);}else{return yield ProposedOrPreviousValueOf(this['$']['phantomEndOffset']);}}function aT(a,b){return al(a-0x237,b);}return null;}*[al(0xe9,0x13b)](){function aU(a,b){return al(a- -0x1ea,b);}const d=yield this['$'][aU(-0x112,-0xfd)];if(d){const e=yield d['$']['endDate'];const f=yield this['$'][aU(-0x11e,-0xc6)];return yield*this[aU(-0x16f,-0x1a8)](f,e,TimeUnit[aU(-0x180,-0x130)]);}else return null;}*[al(0xba,0x109)](){const d=yield this['$'][aV(-0x209,-0x1e3)];const e=d[aV(-0x1bf,-0x1f9)];function aV(a,b){return al(b- -0x2d1,a);}if(e){if(d[aV(-0x228,-0x250)]||(yield PreviousValueOf(this['$'][aV(-0x1b5,-0x1d5)]))==null){const f=(yield e['$'][aV(-0x264,-0x206)])??(yield e['$'][aV(-0x201,-0x1b0)]);const g=yield this[aV(-0x24d,-0x26f)]['$']['endDate'];return yield*this[aV(-0x273,-0x256)](g,f,TimeUnit[aV(-0x288,-0x267)]);}else{return yield ProposedOrPreviousValueOf(this['$']['endOffset']);}}else{return null;}}*['calculateProposedEndOffset'](){const d=yield this['$'][aW(0x89,0x36)];function aW(a,b){return al(b- -0xb8,a);}const e=d[aW(0x16,0x20)];if(e){const f=(yield e['$']['proposedEndOffsets'])['minOffset']<0x0;if(f||d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$']['endOffset']))==null){const g=yield this['$'][aW(-0x94,-0x35)];const h=g[aW(0x54,-0xc)]===Direction[aW(0x9,-0x1)]?yield e['$'][aW(0x22,0x61)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this[aW(-0x26,-0x56)]['$']['endDate'];return yield*this[aW(-0x49,-0x3d)](i,h,TimeUnit[aW(-0x23,-0x4e)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aW(0x3c,0x44)]);}}else{return null;}}*['isDurationDefinedByEffortStructurally'](){function aX(a,b){return al(a- -0x118,b);}const d=yield this['$']['selector'];return d[aX(-0x80,-0x56)];}*[al(0x118,0x152)](){const d=yield this['$'][aY(-0x1e4,-0x1c3)];function aY(a,b){return al(b- -0x2b1,a);}return d['isDurationDefinedByEffort'];}*['calculateProjectedXDate'](d,e){function aZ(a,b){return al(a-0xa6,b);}const {event:f}=this;if(f&&((yield*this['isDurationDefinedByEffort']())||(yield*f[aZ(0x1be,0x1c6)]()))){return yield*this['calculateProjectedXDateByEffort'](d,e,yield this['$']['effort'],yield this['$'][aZ(0x133,0xfe)]);}else{return yield*this[aZ(0x132,0xdc)](d,e,yield this['proposedMirror']['$'][aZ(0x195,0x149)],yield this['$'][aZ(0x10e,0x163)]);}}*[al(0xd9,0x86)](){function b0(a,b){return al(b- -0x78,a);}const d=yield this['$'][b0(0x5c,0x76)];const e=d[b0(0x1b,0x60)];if(e&&d[b0(0x17,0x2b)]){const f=yield this['$']['effectiveDirection'];if(f[b0(-0x1d,0x34)]===Direction[b0(0x91,0x90)]){const g=yield*this[b0(0x8a,0x3d)]();const h=yield e['$']['endDate'];if(g>h){return h;}else return g;}else{const i=yield this['$'][b0(0xb4,0x54)];const j=yield e['$'][b0(0xb,0x23)];const k=yield this[b0(-0x6f,-0x16)]['$'][b0(0x92,0x77)];const l=yield*this[b0(0x31,0x14)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(0x104,0xb5)](){const d=yield this['$'][b1(-0x24,-0x2a)];function b1(a,b){return al(b- -0x118,a);}const e=d[b1(0x1b,-0x40)];if(e&&d[b1(-0x2b,-0x75)]){const f=yield this['$'][b1(-0xf0,-0x95)];if(f[b1(-0x56,-0x6c)]===Direction[b1(0x4b,-0x10)]){const g=yield this['$'][b1(-0xcb,-0x7d)];const h=yield e['$'][b1(-0x48,-0x4c)];const i=yield this[b1(-0x64,-0xb6)]['$'][b1(0x39,-0x29)];const j=yield*this[b1(-0xeb,-0x8c)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[b1(-0x3d,-0x9f)]();const l=yield e['$'][b1(-0x9a,-0x7d)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*['calculateDuration'](){function b2(a,b){return al(b- -0xe1,a);}const d=yield this['$'][b2(-0x97,-0x46)];const e=yield this['$'][b2(-0x57,-0x15)];return yield*this[b2(-0x44,-0x66)](d,e);}*[al(0xb5,0xa1)](){const d=yield this['$'][b3(-0x1a7,-0x155)];function b3(a,b){return al(a- -0x27f,b);}if(d){const e=yield d['$'][b3(-0x1e4,-0x186)];const f=yield this['$'][b3(-0x18c,-0x18e)];const g=yield*this['calculateProjectedXDateWithDuration'](e,!![],f,TimeUnit[b3(-0x215,-0x1c5)]);const h=yield*this[b3(-0x1ce,-0x1dd)](g,!![]);return h;}else{return null;}}*['calculateEndByDelay'](){const d=yield this['$'][b4(-0x245,-0x236)];function b4(a,b){return al(a- -0x31d,b);}if(d){const e=yield d['$']['endDate'];const f=yield this['$'][b4(-0x2b2,-0x30f)];const g=yield*this[b4(-0x291,-0x281)](e,![],f,TimeUnit[b4(-0x2b3,-0x2e0)]);const h=yield*this[b4(-0x26c,-0x281)](g,![]);return h;}else{return null;}}*['calculateEffectiveDataOrVisualCalendar'](d){const e=yield this['$'][b5(0x131,0x103)];const f=e?yield e['$'][b5(0xe0,0xaf)]:yield this[b5(0xde,0x10d)]()['$']['effectiveCalendar'];yield f['$'][b5(0x11b,0xd9)];function b5(a,b){return al(a-0x59,b);}return f;}*[al(0xfb,0xfd)](){return!![];}*[al(0x6f,0x77)](){function b6(a,b){return al(a-0x335,b);}const d=new Map();const e=yield this['$']['resource'];if(e){const f=yield e['$']['effectiveCalendar'];d[b6(0x41f,0x3d3)](f,[this]);}return d;}*[al(0x7c,0xd9)](){const d=yield this['$']['selector'];return d['isTimePhasedStructurally'];}*[al(0xc1,0xf8)](){const d=yield this['$'][b7(0x1d2,0x22f)];const {event:e}=d;function b7(a,b){return al(b-0x141,a);}return e&&(d[b7(0x1ed,0x202)]||(yield*e[b7(0x293,0x259)]()));}*[al(0xa3,0x51)](){function b8(a,b){return al(b-0x2d9,a);}const d=yield this['$'][b8(0x415,0x3c7)];return d[b8(0x31b,0x37c)];}*[al(0x103,0xd3)](){function b9(a,b){return al(a-0x2b2,b);}const d=yield this['$'][b9(0x3a0,0x385)];return d[b9(0x3b5,0x3ba)];}*['getBaseOptionsForDurationCalculations'](){const d=yield*super[ba(-0x40,-0x56)]();const e=yield this['$'][ba(0x2,-0x22)];function ba(a,b){return al(b- -0xfa,a);}if(e){const f=yield*e['effectiveSchedulingMode']();if(f===SchedulingMode[ba(0x22,0x23)]){d['ignoreResourceCalendar']=![];}}return d;}*[al(0x70,0x8c)](d,e){function bb(a,b){return al(a- -0x289,b);}if(yield*this[bb(-0x1ad,-0x196)]()){const f=yield this['$']['event'];if(yield this['$'][bb(-0x1ce,-0x209)]){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bb(-0x1da,-0x1ac)]))!=null)e[bb(-0x1d6,-0x1f8)](EffortVar);}else{if(yield*this[bb(-0x16a,-0x165)]()){e[bb(-0x1d6,-0x17b)](UnitsVar);}}}}*[al(0xa5,0xfe)](d){function bc(a,b){return al(b- -0xc5,a);}const e=yield*this[bc(0xf,0x1b)]();const f=yield this['$'][bc(0x3d,0x13)];if(e!==SchedulingMode[bc(0x1,0x58)]&&f){let g;const h=yield this['$'][bc(0x45,0x29)];const i=yield*f[bc(0x2b,0x53)]();if(h[bc(-0x52,-0x4)]||i){g=yield*super[bc(-0x80,-0x20)](d);}else{g=yield*super[bc(0x35,-0x20)](d);g['collectInfo'](d,f['$'][bc(0x1f,-0x2a)],StartDateVar);g[bc(0x53,0x41)](d,f['$']['endDate'],EndDateVar);g[bc(0xa3,0x41)](d,f['$'][bc(-0x4,0x2a)],DurationVar);g[bc(0x57,0x41)](d,f['$']['effort'],EffortVar);}if(i){g['addProposedValueFlag'](EffortVar);g[bc(0x1,-0x52)](EffortVar);}if(yield*f[bc(-0x7,-0x31)]()){g[bc(0x13,-0x12)](UnitsVar);}return g;}else{return yield*super[bc(-0x1c,-0x20)](d);}}*['hasProposedAssignments'](){function bd(a,b){return al(b- -0x2ae,a);}const d=yield this['$'][bd(-0x21a,-0x1d6)];return d?yield HasProposedValue(d['$'][bd(-0x1cd,-0x1a2)]):![];}*[al(0x94,0xa2)](){return yield HasProposedValue(this['$']['units']);}*[al(0x11f,0xe0)](){function be(a,b){return al(b-0x333,a);}return(yield PreviousValueOf(this['$'][be(0x38b,0x3cc)]))!==void 0x0;}*['calculateEffort'](){function bf(a,b){return al(b- -0x197,a);}const d=yield*this[bf(-0xd9,-0xb7)]();const e=yield this['$'][bf(-0xc3,-0xbf)];if(e&&d!==SchedulingMode[bf(-0x2f,-0x7a)]){const f=yield this['$'][bf(-0xef,-0xa1)];const g=f['resolution'][bf(-0xbb,-0x96)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$']['effort']);const i=yield*e[bf(-0x111,-0xf0)](bf(-0x110,-0xe8));if(h&&!i||(yield*this[bf(-0x88,-0xbb)]())&&(yield HasPreviousValue(e['$']['effort']))&&!(yield e['$'][bf(-0x13b,-0x133)])[bf(-0xd3,-0xaf)]&&!this[bf(-0x106,-0x12e)][bf(-0xea,-0xf5)]){return yield*this[bf(-0x161,-0x131)]();}return yield*this[bf(-0x44,-0x7b)]();}else if(g===effortFormula[bf(-0xd1,-0x8c)]){return yield*this[bf(-0x7c,-0xde)]();}else{throw new Error(bf(-0x99,-0x9d));}}else{return yield*b[bf(-0xa3,-0x9f)][bf(-0xb8,-0xef)](this);}}*[al(0x11e,0xe0)](){const d=yield this[bg(-0xc2,-0x119)]['$'][bg(-0xd7,-0x10f)];const e=yield ProposedOrPreviousValueOf(this[bg(-0x10d,-0x119)]['$'][bg(-0x14a,-0x142)]);function bg(a,b){return al(b- -0x1f1,a);}const f=yield this[bg(-0xea,-0x119)]['$'][bg(-0x1a9,-0x164)];const g=(yield*this[bg(-0x131,-0x16c)]()[bg(-0x1c9,-0x172)](e,f,TimeUnit['Millisecond']))*((yield ProposedOrPreviousValueOf(this['$'][bg(-0x14a,-0x158)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bg(-0x116,-0x16c)]()['$convertDuration'](h,TimeUnit[bg(-0x182,-0x187)],yield this['$'][bg(-0x18a,-0x164)]);}*['calculateProportionalEffortByEffort'](){const d=yield PreviousValueOf(this['event']['$'][bh(0xab,0xe2)]);const e=yield this[bh(0xd4,0x132)]['$'][bh(0x89,0x43)];const f=yield*this[bh(0x81,0x24)]()['$convertDuration'](d,e,TimeUnit['Millisecond']);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$']['effort']);function bh(a,b){return al(a- -0x4,b);}const h=yield this['$'][bh(0x89,0x8d)];const i=yield*this['getProject']()['$convertDuration'](g,h,TimeUnit[bh(0x66,0x70)]);const j=yield ProposedOrPreviousValueOf(this[bh(0xd4,0x101)]['$'][bh(0xab,0xca)]);const k=yield*this['getProject']()['$convertDuration'](j,e,TimeUnit['Millisecond']);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bh(0x81,0x69)]()[bh(0x7b,0x74)](l,TimeUnit['Millisecond'],h);}else{return 0x0;}}*[al(0x66,0x7d)](){function bi(a,b){return al(b-0x1d5,a);}const d=yield HasProposedNotPreviousValue(this[bi(0x2ff,0x2ad)]['$'][bi(0x24c,0x284)]);const e=yield*this[bi(0x25d,0x2ad)][bi(0x268,0x2b1)]();if(d&&!e){return yield*this[bi(0x21f,0x26a)]();}else{return yield*this[bi(0x330,0x2f3)]();}}*[al(0xd6,0xbe)](d){function bj(a,b){return al(a-0x3f8,b);}const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$'][bj(0x4a7,0x4b8)]);const g=yield*e['hasProposedValueForAssignmentsField']('effort');const h=f&&!g?yield*this[bj(0x45e,0x416)]():yield this['$'][bj(0x4a7,0x459)],i=yield this['$'][bj(0x485,0x476)],j=yield*this[bj(0x47d,0x47e)]()['$convertDuration'](h,i,TimeUnit[bj(0x462,0x443)]);let k,l;if(yield*this['isTimePhased']()){k=yield this['$'][bj(0x493,0x470)];l=yield this['$'][bj(0x4c4,0x4fe)];}else{k=yield e['$'][bj(0x493,0x47e)];l=yield e['$'][bj(0x4c4,0x50d)];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object['assign'](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':k,'endDate':l});const o=yield this['$'][bj(0x47a,0x41e)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{const s=r[bk(0xa2,0xd3)]();const t=p[bk(0x119,0x148)](),u=q[bk(0x119,0xd1)](),v=u-t;function bk(a,b){return bj(a- -0x3f5,b);}for(const w of s){m+=(o[bk(0xd5,0x7e)](w)?o['get'](w)[bk(0x9d,0x5b)]:0x0)*v;}});return m?0x64*j/m:0x64;}*['calculateUnitsForNewAssignment'](d,e,f,g,h){const i=this[bl(-0x73,-0x99)]();const j=this[bl(-0x3e,-0x46)];const k=yield*i[bl(-0xc5,-0x9f)](f,g,TimeUnit[bl(-0x70,-0xb4)]);let l=0x0;const m=Object[bl(0x13,-0x33)](yield*this[bl(-0x3d,-0x4)](),{'startDate':d,'endDate':e});const n=yield j['$'][bl(-0x8c,-0x44)];const o=(yield j['$'][bl(-0xaa,-0x93)])||(yield this['$'][bl(-0x31,-0x93)])||(yield*j[bl(-0xd3,-0x8c)]())||n&&!i[bl(-0xac,-0x51)];const p=o?yield j['$']['effectiveCalendar']:yield h['$']['effectiveCalendar'];function bl(a,b){return al(b- -0x11e,a);}yield*this[bl(-0x6a,-0xb7)](m,(q,r,s)=>{const t=s[bm(-0x33c,-0x2dc)]();function bm(a,b){return bl(a,b- -0x25d);}const u=q['getTime'](),v=r[bm(-0x2b1,-0x265)](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[al(0xf9,0x144)]=al(0xae,0xea);__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[al(0xa1,0xad)],al(0xbb,0x77),void 0x0);__decorate([model_field({'type':al(0xc4,0x9c),'defaultValue':SchedulingMode['FixedDuration']},{'sync':!![]})],c['prototype'],'schedulingMode',void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[al(0xa1,0x77)],al(0x8b,0x93),void 0x0);__decorate([model_field({'type':al(0xc3,0x99),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0xa1,0x44)],'startDate',void 0x0);__decorate([model_field({'type':al(0xc3,0xe1),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0xa1,0x100)],'endDate',void 0x0);__decorate([model_field({'type':al(0x115,0xbc),'bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[al(0xa1,0xa7)],al(0xef,0x128),void 0x0);__decorate([model_field({'type':'number','defaultValue':null})],c[al(0xa1,0xad)],al(0xaf,0x103),void 0x0);__decorate([field()],c[al(0xa1,0xe7)],'selector',void 0x0);__decorate([calculate('selector')],c[al(0xa1,0x61)],al(0xb8,0x59),null);__decorate([calculate(al(0xbb,0x65))],c[al(0xa1,0xc7)],al(0xf5,0x113),null);__decorate([calculate(al(0x9c,0x6a))],c[al(0xa1,0x48)],al(0x9d,0x48),null);__decorate([field()],c['prototype'],'startOffset',void 0x0);__decorate([field()],c['prototype'],al(0x90,0x6d),void 0x0);__decorate([field()],c[al(0xa1,0x80)],al(0x9e,0x9c),void 0x0);__decorate([field()],c['prototype'],al(0xf3,0x106),void 0x0);__decorate([field()],c[al(0xa1,0x47)],al(0xfc,0x9b),void 0x0);__decorate([field()],c[al(0xa1,0x55)],al(0xc8,0x9f),void 0x0);__decorate([field()],c[al(0xa1,0x6d)],al(0xc9,0xf5),void 0x0);__decorate([field()],c[al(0xa1,0xce)],'proposedEndOffset',void 0x0);__decorate([field({'sync':!![]})],c[al(0xa1,0xe6)],al(0xca,0xc7),void 0x0);__decorate([write(al(0x8b,0x75))],c[al(0xa1,0xc1)],'writeIgnoreResourceCalendar',null);__decorate([write('startDate')],c[al(0xa1,0x63)],al(0xc5,0xc0),null);__decorate([write(al(0xcc,0xc4))],c[al(0xa1,0x40)],al(0xc6,0x111),null);__decorate([write(al(0xef,0x110))],c[al(0xa1,0xf7)],al(0x80,0x1e),null);__decorate([write('effort')],c[al(0xa1,0x88)],'writeEffort',null);__decorate([write('units')],c['prototype'],al(0xaa,0xad),null);__decorate([calculate('ignoreResourceCalendar')],c['prototype'],al(0x86,0x25),null);__decorate([calculate(al(0xff,0xe7))],c['prototype'],'calculateStartOffset',null);__decorate([calculate(al(0xf3,0xfe))],c['prototype'],'calculateProposedStartOffset',null);__decorate([calculate('phantomStartDate')],c[al(0xa1,0xbc)],al(0x110,0xeb),null);__decorate([calculate(al(0xc9,0xd6))],c[al(0xa1,0xe5)],al(0xfd,0x149),null);__decorate([calculate(al(0x90,0xd2))],c['prototype'],'calculatePhantomStartOffset',null);__decorate([calculate(al(0xc8,0x7f))],c['prototype'],al(0x97,0x35),null);__decorate([calculate('endOffset')],c['prototype'],'calculateEndOffset',null);function al(a,b){return _enaa(a-0x1df,b);}__decorate([calculate(al(0x6b,0x12))],c[al(0xa1,0xd1)],'calculateProposedEndOffset',null);__decorate([calculate(al(0xaf,0xd3))],c[al(0xa1,0x91)],'calculateEffort',null);return c;}){}function _enaa(a,b){return _enb(a- -0x242,b);}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0xef,-0xfe)](){return['assignment'];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(-0x108,-0x118)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);this['isTimePhasedCalendar']=!![];}get[_enaa(-0xbf,-0x80)](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function aw(a,b){return _enb(a-0x70,b);}const c=a();while(!![]){try{const d=-parseInt(aw(0x1e0,0x1ff))/0x1+parseInt(aw(0x1e1,0x1dc))/0x2*(parseInt(aw(0x200,0x1d8))/0x3)+parseInt(aw(0x1a3,0x1c8))/0x4+-parseInt(aw(0x202,0x219))/0x5*(parseInt(aw(0x208,0x221))/0x6)+-parseInt(aw(0x1f9,0x225))/0x7+parseInt(aw(0x1f3,0x1f6))/0x8*(parseInt(aw(0x201,0x212))/0x9)+-parseInt(aw(0x1f5,0x217))/0xa*(parseInt(aw(0x1eb,0x1bc))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5d7b6));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[ax(0x2d8,0x2cf)](b,e):f,j;function ax(a,b){return _enb(b-0x14d,a);}if(typeof Reflect==='object'&&typeof Reflect[ax(0x2bb,0x290)]===ax(0x290,0x2a0))h=Reflect['decorate'](a,b,e,f);else for(var k=a[ax(0x2a3,0x2c9)]-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{Base,Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,Entity,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x130;let f=c[d];return f;};return _enb(a,b);}import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';function _enay(a,b){return _enb(a-0x30f,b);}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{CostAccrual,ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{isGeneratorFunction}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import{ChronoPartOfProjectStoreMixin}from'../../store/mixin/ChronoPartOfProjectStoreMixin.js';class ResourceAllocationEventRangeCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enay(0x475,0x46b)](){function az(a,b){return _enay(b- -0x548,a);}return[{'name':az(-0xd9,-0xb9),'type':az(-0xdc,-0xfe),'defaultValue':!![]}];}}class ResourceAllocationEventRangeCalendarIntervalStore extends CalendarIntervalStore{static get[_enay(0x4a5,0x4a1)](){return{'modelClass':ResourceAllocationEventRangeCalendarIntervalMixin};}}class ResourceAllocationRateCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enay(0x475,0x49c)](){function aA(a,b){return _enay(b-0x87,a);}return[{'name':aA(0x4eb,0x516),'type':aA(0x4f3,0x4d1),'defaultValue':!![]}];}}function _ena(){const aP=['isUnderallocated','standardRateEffortUnit','buildRateTableCalendar','defaultConfig','ticks','4398DWVmVO','getEventStore','clearTempCalendars','intervalStoreClass','endDate','2635780pgvpwV','End','getIterator','eventCalendar','hasElapsedDuration','getRates','assignment','startDate','boolean','includeInactiveEvents','push','combineCalendars','firstStore','Millisecond','convertCurrency','event','decorate','getGroups','maxUnits','tempCalendars','leaveGraph','readField','min','add','initWorkTickData','Start','prototype','shouldIncludeAssignmentInAllocation','currency','resource','getCalendarsWorkStatus','Work','function','tick','costAccrued','initialize','type','calculateAllocation','clear','effortUnit','isTimePhased','intervalStore','getTime','isUserTimePhased','segments','max','assigned','set','assignments','phantomStartDate','units','fields','enterGraph','clearCombinationsWith','rateTable','perUseCost','Prorated','effectiveCalendar','forEach','maxEffort','unspecifiedTimeIsWorking','182271jmKlLY','75256mKXxHA','assignmentFilterFn','trackStoreFilter','trackRecordFieldChanges','get','allocation','$convertDuration','rateCalendar','assignmentIntervals','inactive','77DCHpRc','length','effort','destroy','getProject','isWorking','first','getOwnPropertyDescriptor','136ofKgpe','calculateWorkAllocation','164800ryuOUt','ignoreResourceCalendar','last','includeCost','3586716uTASgH','standardRate','phantomEndDate','cost','isAvailable','getAssignmentStore','respectStoreFilters','51gXKUNA','259533uqGmqA','4065ozsbHR'];_ena=function(){return aP;};return _ena();}class ResourceAllocationRateCalendarIntervalStore extends CalendarIntervalStore{static get['defaultConfig'](){return{'modelClass':ResourceAllocationRateCalendarIntervalMixin};}}class ResourceAllocationEventRangeCalendar extends BaseCalendarMixin{get[_enay(0x440,0x45c)](){return ResourceAllocationEventRangeCalendarIntervalStore;}}__decorate([model_field({'type':_enay(0x44a,0x457),'defaultValue':![]})],ResourceAllocationEventRangeCalendar['prototype'],_enay(0x47e,0x487),void 0x0);class ResourceAllocationRateCalendar extends BaseCalendarMixin{constructor(){super(...arguments);function aB(a,b){return _enay(a-0x33,b);}this[aB(0x4a5,0x48f)]=[];}get[_enay(0x440,0x418)](){return ResourceAllocationRateCalendarIntervalStore;}}__decorate([model_field({'type':'boolean','defaultValue':![]})],ResourceAllocationRateCalendar[_enay(0x45c,0x48a)],_enay(0x47e,0x482),void 0x0);class WorkResourceAllocationInfoMixin extends Mixin([Entity,Base],a=>{class b extends a{constructor(){super(...arguments);function aC(a,b){return _enb(b-0x2e3,a);}this[aC(0x403,0x429)]=new Set();}[aD(0x2bf,0x2aa)](c){function aE(a,b){return aD(b,a- -0x7f);}super[aE(0x22b,0x249)]({'includeInactiveEvents':![],...c});}[aD(0x2da,0x2bb)](c){function aF(a,b){return aD(b,a-0xbb);}super[aF(0x376,0x346)](c);}[aD(0x294,0x29b)](c){this[aG(0x282,0x25f)]();function aG(a,b){return aD(a,b- -0x25);}super[aG(0x265,0x276)](c);}*['shouldIncludeAssignmentInAllocation'](c){const d=yield c['$'][aH(0x23,-0x9)],e=yield this['$'][aH(-0xe,-0xf)],f=yield this['$'][aH(0x79,0x44)],g=yield this['$'][aH(0x49,0x27)];if(c['$removed'])return![];let h=Boolean(d);if(d){if(!e){h=h&&!(yield d['$'][aH(0x7,0x2f)]);}if(f){const i=this[aH(0x14,0x5)][aH(0x9,0x34)]();const j=i[aH(0x6f,0x4e)]();const k=i[aH(0x2d,0x43)]();yield*j[aH(0x13,0x28)]();yield*k['trackStoreFilter']();h=h&&j[aH(0x44,0x42)](d)&&k[aH(0x70,0x42)](c);}if(g){h=h&&(isGeneratorFunction(g)?yield*g(c,this):g(c,this));}}function aH(a,b){return aD(a,b- -0x29f);}return h;}*[aD(0x2c5,0x29c)](c,d){if(c['$'][d]){return yield c['$'][d];}const e=c[aI(0x17c,0x191)];function aI(a,b){return aD(a,b- -0x102);}if(e instanceof ChronoPartOfProjectStoreMixin){const f=e[aI(0x1a7,0x1c6)](c,d);return yield f;}return c[d];}[aD(0x25d,0x284)](){function aJ(a,b){return aD(b,a- -0x50c);}const c=this[aJ(-0x268,-0x28e)]?.[aJ(-0x239,-0x205)]();if(c){for(const d of this[aJ(-0x272,-0x254)]){c[aJ(-0x250,-0x27f)](d);d[aJ(-0x23a,-0x21f)]();}this[aJ(-0x272,-0x288)][aJ(-0x25f,-0x23b)]();}}[aD(0x2e3,0x2e9)](c,d,e){const f=[];let g;for(const h of c){if(g){g['endDate']=h[aK(0x319,0x2ec)];f[aK(0x31c,0x33c)](g);}g={'startDate':h['startDate']||d,'rate':h};}function aK(a,b){return aD(b,a-0x8b);}if(g){g['endDate']=e;f[aK(0x31c,0x2f2)](g);}if(f[aK(0x35b,0x342)]){const i=new ResourceAllocationRateCalendar({'intervals':f});this[aK(0x325,0x359)][aK(0x329,0x346)](i);return i;}}*[aD(0x2b1,0x2ac)](){const c=yield this['$'][aL(0x449,0x43b)],d=yield c['$'][aL(0x45b,0x442)];function aL(a,b){return aD(a,b-0x197);}if(d===ResourceType[aL(0x453,0x43d)]){return yield*this['calculateWorkAllocation']();}}['initWorkTickData'](c,d,e,f,g,h){const i={'tick':c,'resource':d,'cost':0x0,'effort':0x0,'units':0x0,'maxEffort':0x0,'isOverallocated':![],'isUnderallocated':![],'assignments':null};function aM(a,b){return aD(b,a-0x63);}e[aM(0x319,0x2e7)](c,i);f[aM(0x2f4,0x2e0)](i);g[aM(0x324,0x305)]((j,k)=>{const l={'tick':c,'assignment':k,'cost':0x0,'effort':0x0,'units':0x0};function aN(a,b){return aM(b- -0x3eb,a);}j[aN(-0xa9,-0xd2)](c,l);h[aN(-0xb0,-0xbf)](k)[aN(-0xe8,-0xf7)](l);});return i;}*[aD(0x2c1,0x2d8)](){const c=this,d=[],e=yield c[aO(-0x223,-0x23d)],f=yield c['$'][aO(-0x257,-0x284)],g=yield c['$'][aO(-0x260,-0x24c)],h=f[aO(-0x25b,-0x255)](),i=yield f['$'][aO(-0x249,-0x273)],j=yield f['$'][aO(-0x271,-0x268)],k=new Map(),l=[],m=new Map(),n=new Map(),o=yield f['$'][aO(-0x26d,-0x28f)],p=e[aO(-0x29d,-0x278)][aO(-0x22d,-0x253)]['startDate'],q=e['intervalStore'][aO(-0x270,-0x24d)][aO(-0x2c2,-0x2a2)],r=q[aO(-0x290,-0x277)]()-p[aO(-0x288,-0x277)]();let s,t,u,v,w=![],x=![],y;if(g){s=yield f['$']['costAccrual'];y=yield h['$'][aO(-0x2a6,-0x285)];x=Boolean(h[aO(-0x29f,-0x293)]);}c['clearTempCalendars']();const z=new Map();function aO(a,b){return aD(a,b- -0x528);}const A=new Map();for(const F of i){if(!(yield*c[aO(-0x256,-0x286)](F)))continue;const G=yield F['$'][aO(-0x2bb,-0x292)];let H=yield G['$'][aO(-0x2b1,-0x29a)];let I=yield G['$'][aO(-0x28b,-0x2a2)];const J=yield G['$'][aO(-0x2a8,-0x275)];const K=yield G['$'][aO(-0x251,-0x268)];const L={'event':G,'eventCalendar':K,'startDate':H,'endDate':I,'units':yield F['$'][aO(-0x299,-0x26f)],'ignoreResourceCalendar':(yield G['$'][aO(-0x239,-0x24e)])||(yield*G[aO(-0x2d1,-0x29d)]())};A['set'](F,L);if(J){for(const N of J){const O=yield N['$'][aO(-0x2a3,-0x29a)];const P=yield N['$'][aO(-0x285,-0x2a2)];l[aO(-0x2a5,-0x297)]({'startDate':O,'endDate':P,'assignment':F});}}else{if(yield*F[aO(-0x29b,-0x279)]()){if(yield*F[aO(-0x29f,-0x276)]()){H=yield F['$'][aO(-0x2a2,-0x29a)];I=yield F['$'][aO(-0x285,-0x2a2)];}else{H=yield F['$'][aO(-0x284,-0x270)];I=yield F['$'][aO(-0x267,-0x249)];}}if(H&&I){l[aO(-0x28f,-0x297)]({'startDate':H,'endDate':I,'assignment':F});}}if(s){switch(s){case CostAccrual[aO(-0x296,-0x269)]:const Q=yield F['$'][aO(-0x275,-0x26b)];if(Q){let R=z['get'](Q);if(!R&&(R=c['buildRateTableCalendar'](yield*f[aO(-0x2c6,-0x29c)](Q,p,q),p,q))){z[aO(-0x27c,-0x272)](Q,R);w=!![];}L[aO(-0x233,-0x25c)]=R;R?.[aO(-0x293,-0x271)][aO(-0x285,-0x297)](F);}break;case CostAccrual['Start']:if(H>=p&&H<q){L[aO(-0x269,-0x248)]=yield F['$'][aO(-0x243,-0x248)];w=!![];}break;case CostAccrual[aO(-0x28d,-0x2a0)]:if(I>p&&I<=q){L[aO(-0x270,-0x248)]=yield F['$']['cost'];w=!![];}break;}}let M=k[aO(-0x23d,-0x25f)](K);if(!M){M=[];k[aO(-0x23d,-0x272)](K,M);}m[aO(-0x23f,-0x272)](F,new Map());n[aO(-0x251,-0x272)](F,[]);M[aO(-0x2b1,-0x297)](F);}if(s&&!w){s=null;}const B=new ResourceAllocationEventRangeCalendar({'intervals':l});c['tempCalendars']['add'](B);const C=[j,e,...c['tempCalendars'],...k['keys']()];const D=new Map();const E=h[aO(-0x284,-0x296)](C)[aO(-0x2a3,-0x29f)]({'startDate':p,'endDate':q,'maxRange':r>h['maxCalendarRange']?r:void 0x0});for(const {startDate:S,endDate:T,calendarCacheInterval:U}of E){const V=U[aO(-0x29e,-0x290)](),W=V['get'](e)[0x0],X=D[aO(-0x273,-0x25f)](W)||c[aO(-0x2b7,-0x289)](W,f,D,d,m,n),Y=U[aO(-0x265,-0x283)]();if(Y[aO(-0x241,-0x25f)](e)){const Z=T[aO(-0x28f,-0x277)]()-S[aO(-0x284,-0x277)](),a0=X[aO(-0x28f,-0x271)]||new Set(),a1=X[aO(-0x23f,-0x25b)]||new Map();if(v&&v!==W){const a7=D[aO(-0x24d,-0x25f)](v);a7[aO(-0x24e,-0x241)]=a7[aO(-0x24a,-0x241)]||a7[aO(-0x264,-0x257)]&&a7['effort']<a7[aO(-0x292,-0x266)];}if(!X[aO(-0x293,-0x271)]){t=0x0;u=0x0;}let a2=![],a3=0x0,a4=0x0,a5=0x0,a6;for(const a8 of V['get'](B)){const a9=a8[aO(-0x28c,-0x29b)];const aa=a9&&A['get'](a9);const ab=aa?.['event'];let ac=!![];if(ab&&Y[aO(-0x265,-0x25f)](aa[aO(-0x2bb,-0x29e)])&&(aa[aO(-0x265,-0x24e)]||Y[aO(-0x23c,-0x25f)](j))){const ad=aa[aO(-0x2cb,-0x29a)];const ae=aa['endDate'];const af=aa[aO(-0x290,-0x26f)];const ag=Math[aO(-0x277,-0x274)](S[aO(-0x2a6,-0x277)](),ad['getTime']());const ah=Math[aO(-0x29e,-0x28b)](T[aO(-0x278,-0x277)](),ae[aO(-0x28e,-0x277)]());a2=!![];a6=ah-ag;const ai=m['get'](a9)[aO(-0x274,-0x25f)](W);let aj=a6*af*0.01;if(s){switch(s){case CostAccrual[aO(-0x28b,-0x269)]:let ak=0x0;ac=ac&&v!==W&&X[aO(-0x2b4,-0x280)][aO(-0x2bd,-0x29a)]<=ad&&ad<X[aO(-0x2a8,-0x280)][aO(-0x27c,-0x2a2)];const al=aa[aO(-0x238,-0x25c)];if(al&&Y[aO(-0x294,-0x25f)](al)){const am=yield ab['$'][aO(-0x259,-0x27a)];const an=V[aO(-0x283,-0x25f)](al);for(const {rate:ao}of an){if(ao){const ap=yield*h[aO(-0x257,-0x25d)](aj,TimeUnit[aO(-0x2b2,-0x294)],ao[aO(-0x21e,-0x240)]||am);const aq=ao[aO(-0x260,-0x285)];let ar=ao[aO(-0x27b,-0x26a)]||0x0;let as=ao[aO(-0x234,-0x24a)]||0x0;if(aq&&y&&x){if(ar){ar=yield*h[aO(-0x2aa,-0x293)](ar,aq,y);}if(as){as=yield*h[aO(-0x2a3,-0x293)](as,aq,y);}}ak+=ap*as+(ac&&ar);ac=![];}}}ai['cost']+=ak;a5+=ak;break;case CostAccrual[aO(-0x290,-0x288)]:if(!aa[aO(-0x279,-0x27f)]&&v!==W&&X[aO(-0x2a6,-0x280)][aO(-0x26f,-0x29a)]<=ad&&ad<X[aO(-0x297,-0x280)][aO(-0x2d7,-0x2a2)]){const at=aa[aO(-0x24e,-0x248)];a5+=at;ai[aO(-0x234,-0x248)]+=at;aa[aO(-0x26d,-0x27f)]=!![];}break;case CostAccrual[aO(-0x2be,-0x2a0)]:if(!aa[aO(-0x262,-0x27f)]&&v!==W&&(ad[aO(-0x264,-0x277)]()-ae[aO(-0x28c,-0x277)]()?X['tick'][aO(-0x286,-0x29a)]<ae&&ae<=X[aO(-0x250,-0x280)][aO(-0x2b1,-0x2a2)]:X[aO(-0x27a,-0x280)][aO(-0x268,-0x29a)]<=ae&&ae<=X[aO(-0x24b,-0x280)][aO(-0x2d7,-0x2a2)])){const au=aa[aO(-0x231,-0x248)];a5+=au;ai['cost']+=au;aa['costAccrued']=!![];}break;}}ai[aO(-0x26b,-0x257)]+=aj;ai[aO(-0x262,-0x26f)]=af;ai['inEventTimeSpan']=!![];a4+=aj;a3+=af;a0[aO(-0x2bb,-0x28a)](a9);a1[aO(-0x26e,-0x272)](a9,ai);}}if(Y[aO(-0x279,-0x25f)](j)){X[aO(-0x241,-0x266)]+=Z*o*0.01;}if(a3){if(a6){t+=a6*a3;u+=a6;X[aO(-0x270,-0x26f)]=t/u;}else if(!t){X[aO(-0x2a3,-0x26f)]=a3;}}if(a2){X['inEventTimeSpan']=!![];X[aO(-0x257,-0x257)]+=a4;X['cost']+=a5;X[aO(-0x24b,-0x271)]=a0;X[aO(-0x22d,-0x25b)]=a1;X['isOverallocated']=X['isOverallocated']||X[aO(-0x25d,-0x257)]>X[aO(-0x233,-0x266)]||X[aO(-0x24b,-0x26f)]>o;X['isUnderallocated']=X[aO(-0x267,-0x241)]||a4<Z||X[aO(-0x272,-0x26f)]<o;}}v=W;}if(v){const av=D['get'](v);av[aO(-0x20c,-0x241)]=av[aO(-0x25f,-0x241)]||av[aO(-0x262,-0x257)]&&av['effort']<av[aO(-0x284,-0x266)];}c[aO(-0x287,-0x2a4)]();return{'owner':c,'resource':f,'total':d,'byAssignments':n};}}__decorate([field()],b[aD(0x276,0x2a1)],aD(0x279,0x290),void 0x0);__decorate([field()],b['prototype'],aD(0x2d9,0x2e3),void 0x0);__decorate([field()],b['prototype'],'assignmentFilterFn',void 0x0);__decorate([field()],b['prototype'],aD(0x2cb,0x2ca),void 0x0);__decorate([field()],b[aD(0x2af,0x2a1)],aD(0x29b,0x2a4),void 0x0);__decorate([field()],b[aD(0x27e,0x2a1)],'includeCost',void 0x0);__decorate([calculate(aD(0x2cc,0x2ca))],b[aD(0x27f,0x2a1)],aD(0x286,0x2ac),null);function aD(a,b){return _enay(b- -0x1bb,a);}return b;}){}export{ResourceAllocationEventRangeCalendar,ResourceAllocationEventRangeCalendarIntervalMixin,ResourceAllocationEventRangeCalendarIntervalStore,ResourceAllocationRateCalendar,ResourceAllocationRateCalendarIntervalMixin,ResourceAllocationRateCalendarIntervalStore,WorkResourceAllocationInfoMixin};
|
|
1
|
+
(function(a,b){const c=a();function aw(a,b){return _enb(b- -0x117,a);}while(!![]){try{const d=parseInt(aw(0x57,0x41))/0x1+-parseInt(aw(0x19,0x40))/0x2*(-parseInt(aw(0x6c,0x60))/0x3)+parseInt(aw(0x5c,0x66))/0x4+-parseInt(aw(0x47,0x1a))/0x5*(-parseInt(aw(0x2e,0x34))/0x6)+-parseInt(aw(0xd,0x35))/0x7+parseInt(aw(0x14,0x43))/0x8*(-parseInt(aw(0x23,0x3c))/0x9)+parseInt(aw(-0xe,0xf))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xaad3b));var __decorate=function(a,b,e,f){function ax(a,b){return _enb(a- -0xce,b);}var g=arguments[ax(0x64,0x37)],h=g<0x3?b:f===null?f=Object[ax(0x90,0xa9)](b,e):f,j;if(typeof Reflect===ax(0x79,0x93)&&typeof Reflect[ax(0x7c,0x7c)]===ax(0xb2,0xa6))h=Reflect[ax(0x7c,0x87)](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[ax(0x98,0x95)](b,e,h),h;};import{Base,Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,Entity,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x126;let f=c[d];return f;};return _enb(a,b);}import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{CostAccrual,ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{isGeneratorFunction}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import{ChronoPartOfProjectStoreMixin}from'../../store/mixin/ChronoPartOfProjectStoreMixin.js';const validResourceTypes=new Set(Object['values'](ResourceType));class ResourceAllocationEventRangeCalendarIntervalMixin extends CalendarIntervalMixin{static get['fields'](){function ay(a,b){return _enb(b-0x5b,a);}return[{'name':ay(0x18d,0x19a),'type':ay(0x18b,0x1a1),'defaultValue':!![]}];}}function _enaz(a,b){return _enb(b-0x14e,a);}class ResourceAllocationEventRangeCalendarIntervalStore extends CalendarIntervalStore{static get[_enaz(0x2a3,0x2ba)](){return{'modelClass':ResourceAllocationEventRangeCalendarIntervalMixin};}}class ResourceAllocationRateCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaz(0x27f,0x278)](){function aA(a,b){return _enaz(b,a- -0x3f5);}return[{'name':aA(-0x168,-0x166),'type':aA(-0x161,-0x131),'defaultValue':!![]}];}}class ResourceAllocationRateCalendarIntervalStore extends CalendarIntervalStore{static get[_enaz(0x28e,0x2ba)](){return{'modelClass':ResourceAllocationRateCalendarIntervalMixin};}}function _ena(){const aM=['Millisecond','intervalStoreClass','decorate','30gpjClP','8443393JNGANj','last','assigned','clearCombinationsWith','getTime','respectStoreFilters','calculateWorkAllocation','450abqPYM','assignments','convertCurrency','trackStoreFilter','1297516gGsujJ','410252tFjtbQ','clearTempCalendars','68912aMBEnJ','getGroups','segments','shouldIncludeAssignmentInAllocation','getOwnPropertyDescriptor','intervalStore','isAvailable','effectiveCalendar','effort','cost','initWorkTickData','isUserTimePhased','defineProperty','getIterator','$convertDuration','endDate','buildRateTableCalendar','effortUnit','defaultConfig','min','inEventTimeSpan','resource','includeCost','costAccrued','keys','getProject','enterGraph','startDate','tick','6cYgfHi','eventCalendar','standardRate','rateTable','getAssignmentStore','Start','1782500ycviNZ','clear','maxEffort','function','ignoreResourceCalendar','Work','currency','calculateAllocation','isOverallocated','phantomStartDate','1137580jSkurz','tempCalendars','get','includeInactiveEvents','fields','allocation','destroy','standardRateEffortUnit','add','set','initialize','69455aZSZWW','length','event','prototype','combineCalendars','getRates','rateCalendar','maxCalendarRange','End','type','maxUnits','Prorated','getEventStore','assignmentFilterFn','isWorking','unspecifiedTimeIsWorking','isUnderallocated','units','phantomEndDate','push','costAccrual','boolean','object'];_ena=function(){return aM;};return _ena();}class ResourceAllocationEventRangeCalendar extends BaseCalendarMixin{get[_enaz(0x28e,0x297)](){return ResourceAllocationEventRangeCalendarIntervalStore;}}__decorate([model_field({'type':'boolean','defaultValue':![]})],ResourceAllocationEventRangeCalendar[_enaz(0x277,0x282)],_enaz(0x2be,0x28e),void 0x0);class ResourceAllocationRateCalendar extends BaseCalendarMixin{constructor(){super(...arguments);this['assignments']=[];}get[_enaz(0x293,0x297)](){return ResourceAllocationRateCalendarIntervalStore;}}__decorate([model_field({'type':_enaz(0x2a6,0x294),'defaultValue':![]})],ResourceAllocationRateCalendar[_enaz(0x2a7,0x282)],_enaz(0x288,0x28e),void 0x0);class WorkResourceAllocationInfoMixin extends Mixin([Entity,Base],a=>{class b extends a{constructor(){super(...arguments);function aB(a,b){return _enb(a- -0x194,b);}this[aB(-0x6d,-0x72)]=new Set();}[aC(0x45e,0x46a)](c){function aD(a,b){return aC(b- -0x446,a);}super[aD(0x11,0x18)]({'includeInactiveEvents':![],...c});}[aC(0x4a2,0x4b2)](c){function aE(a,b){return aC(b- -0x6a4,a);}super[aE(-0x210,-0x202)](c);}['leaveGraph'](c){this['clearTempCalendars']();super['leaveGraph'](c);}*[aC(0x48b,0x473)](c){const d=yield c['$'][aF(0x2ad,0x299)],e=yield this['$'][aF(0x29e,0x28f)],f=yield this['$'][aF(0x296,0x2b7)],g=yield this['$'][aF(0x281,0x2a4)];function aF(a,b){return aC(b- -0x1c8,a);}if(c['$removed'])return![];let h=Boolean(d);if(d){if(!e){h=h&&!(yield d['$']['inactive']);}if(f){const i=this[aF(0x2aa,0x2d5)][aF(0x2d6,0x2d9)]();const j=i[aF(0x2ba,0x2a3)]();const k=i[aF(0x2d4,0x2e1)]();yield*j[aF(0x2b5,0x2bc)]();yield*k[aF(0x2da,0x2bc)]();h=h&&j[aF(0x2ef,0x2c6)](d)&&k[aF(0x2a5,0x2c6)](c);}if(g){h=h&&(isGeneratorFunction(g)?yield*g(c,this):g(c,this));}}return h;}*['readField'](c,d){if(c['$'][d]){return yield c['$'][d];}const e=c['firstStore'];if(e instanceof ChronoPartOfProjectStoreMixin){const f=e['trackRecordFieldChanges'](c,d);return yield f;}return c[d];}[aC(0x487,0x492)](){const c=this[aG(0x111,0x133)]?.[aG(0x115,0xf7)]();function aG(a,b){return aC(a- -0x38c,b);}if(c){for(const d of this['tempCalendars']){c[aG(0xf1,0xd2)](d);d[aG(0xce,0xf0)]();}this[aG(0xc9,0xcd)][aG(0x120,0x103)]();}}[aC(0x498,0x476)](c,d,e){const f=[];let g;function aH(a,b){return aC(a- -0x36e,b);}for(const h of c){if(g){g['endDate']=h[aH(0x135,0x11b)];f[aH(0x104,0x10f)](g);}g={'startDate':h['startDate']||d,'rate':h};}if(g){g['endDate']=e;f['push'](g);}if(f[aH(0xf2,0x121)]){const i=new ResourceAllocationRateCalendar({'intervals':f});this[aH(0xe7,0x115)][aH(0xee,0xd6)](i);return i;}}*[aC(0x4b2,0x4ad)](){function aI(a,b){return aC(b- -0x68f,a);}const c=yield this['$'][aI(-0x1e3,-0x1f2)],d=yield c['$'][aI(-0x20b,-0x227)];if(d===ResourceType[aI(-0x1ba,-0x1df)]||!validResourceTypes['has'](d)){return yield*this[aI(-0x211,-0x20f)]();}}[aC(0x492,0x4ba)](c,d,e,f,g,h){function aJ(a,b){return aC(a- -0x212,b);}const i={'tick':c,'resource':d,'cost':0x0,'effort':0x0,'units':0x0,'maxEffort':0x0,'isOverallocated':![],'isUnderallocated':![],'assignments':null};e['set'](c,i);f[aJ(0x260,0x244)](i);g['forEach']((j,k)=>{function aK(a,b){return aJ(a- -0x21e,b);}const l={'tick':c,'assignment':k,'cost':0x0,'effort':0x0,'units':0x0};j['set'](c,l);h[aK(0x26,0x3f)](k)['push'](l);});return i;}*['calculateWorkAllocation'](){const c=this,d=[],e=yield c['ticks'],f=yield c['$'][aL(0x15e,0x165)],g=yield c['$']['includeCost'],h=f['getProject'](),i=yield f['$'][aL(0x13d,0x115)],j=yield f['$'][aL(0x150,0x173)],k=new Map(),l=[],m=new Map(),n=new Map(),o=yield f['$'][aL(0x12a,0x109)],p=e[aL(0x14e,0x178)]['first'][aL(0x164,0x13d)],q=e[aL(0x14e,0x167)][aL(0x13c,0x157)][aL(0x158,0x151)],r=q['getTime']()-p[aL(0x13f,0x111)]();let s,t,u,v,w=![],x=![],y;if(g){s=yield f['$'][aL(0x134,0x10f)];y=yield h['$'][aL(0x172,0x171)];x=Boolean(h['convertCurrency']);}c[aL(0x148,0x162)]();const z=new Map();const A=new Map();for(const F of i){if(!(yield*c[aL(0x14c,0x145)](F)))continue;const G=yield F['$'][aL(0x122,0x122)];let H=yield G['$'][aL(0x164,0x175)];let I=yield G['$'][aL(0x158,0x142)];const J=yield G['$'][aL(0x14b,0x144)];const K=yield G['$'][aL(0x150,0x167)];const L={'event':G,'eventCalendar':K,'startDate':H,'endDate':I,'units':yield F['$']['units'],'ignoreResourceCalendar':(yield G['$'][aL(0x170,0x180)])||(yield*G['hasElapsedDuration']())};A[aL(0x11e,0x115)](F,L);if(J){for(const N of J){const O=yield N['$']['startDate'];const P=yield N['$'][aL(0x158,0x185)];l[aL(0x133,0x110)]({'startDate':O,'endDate':P,'assignment':F});}}else{if(yield*F['isTimePhased']()){if(yield*F[aL(0x154,0x173)]()){H=yield F['$'][aL(0x164,0x15b)];I=yield F['$']['endDate'];}else{H=yield F['$'][aL(0x175,0x178)];I=yield F['$'][aL(0x132,0x103)];}}if(H&&I){l[aL(0x133,0x111)]({'startDate':H,'endDate':I,'assignment':F});}}if(s){switch(s){case CostAccrual[aL(0x12b,0x153)]:const Q=yield F['$'][aL(0x169,0x155)];if(Q){let R=z[aL(0x117,0xf5)](Q);if(!R&&(R=c[aL(0x159,0x18a)](yield*f[aL(0x125,0x13d)](Q,p,q),p,q))){z[aL(0x11e,0x14c)](Q,R);w=!![];}L[aL(0x126,0x144)]=R;R?.[aL(0x143,0x16a)]['push'](F);}break;case CostAccrual[aL(0x16b,0x158)]:if(H>=p&&H<q){L[aL(0x152,0x17d)]=yield F['$'][aL(0x152,0x169)];w=!![];}break;case CostAccrual[aL(0x128,0x131)]:if(I>p&&I<=q){L[aL(0x152,0x16a)]=yield F['$'][aL(0x152,0x14a)];w=!![];}break;}}let M=k[aL(0x117,0xfd)](K);if(!M){M=[];k[aL(0x11e,0x120)](K,M);}m['set'](F,new Map());n[aL(0x11e,0x11f)](F,[]);M[aL(0x133,0x10e)](F);}if(s&&!w){s=null;}const B=new ResourceAllocationEventRangeCalendar({'intervals':l});c['tempCalendars'][aL(0x11d,0xf1)](B);const C=[j,e,...c[aL(0x116,0x104)],...k[aL(0x161,0x18e)]()];const D=new Map();const E=h[aL(0x124,0x11a)](C)[aL(0x156,0x169)]({'startDate':p,'endDate':q,'maxRange':r>h[aL(0x127,0xf6)]?r:void 0x0});for(const {startDate:S,endDate:T,calendarCacheInterval:U}of E){const V=U[aL(0x14a,0x167)](),W=V[aL(0x117,0x143)](e)[0x0],X=D[aL(0x117,0x138)](W)||c[aL(0x153,0x143)](W,f,D,d,m,n),Y=U['getCalendarsWorkStatus']();if(Y[aL(0x117,0x140)](e)){const Z=T[aL(0x13f,0x144)]()-S[aL(0x13f,0x16c)](),a0=X[aL(0x143,0x13a)]||new Set(),a1=X['assignmentIntervals']||new Map();if(v&&v!==W){const a7=D[aL(0x117,0xed)](v);a7['isUnderallocated']=a7[aL(0x130,0x132)]||a7['effort']&&a7['effort']<a7['maxEffort'];}if(!X[aL(0x143,0x145)]){t=0x0;u=0x0;}let a2=![],a3=0x0,a4=0x0,a5=0x0,a6;for(const a8 of V[aL(0x117,0x116)](B)){const a9=a8['assignment'];const aa=a9&&A[aL(0x117,0x101)](a9);const ab=aa?.[aL(0x122,0x138)];let ac=!![];if(ab&&Y['get'](aa[aL(0x167,0x16c)])&&(aa[aL(0x170,0x199)]||Y[aL(0x117,0xef)](j))){const ad=aa['startDate'];const ae=aa[aL(0x158,0x178)];const af=aa[aL(0x131,0x138)];const ag=Math['max'](S[aL(0x13f,0x12c)](),ad[aL(0x13f,0x13b)]());const ah=Math[aL(0x15c,0x180)](T[aL(0x13f,0x123)](),ae[aL(0x13f,0x16d)]());a2=!![];a6=ah-ag;const ai=m[aL(0x117,0x119)](a9)[aL(0x117,0x12e)](W);let aj=a6*af*0.01;if(s){switch(s){case CostAccrual[aL(0x12b,0x122)]:let ak=0x0;ac=ac&&v!==W&&X[aL(0x165,0x135)][aL(0x164,0x188)]<=ad&&ad<X[aL(0x165,0x168)]['endDate'];const al=aa['rateCalendar'];if(al&&Y[aL(0x117,0x12d)](al)){const am=yield ab['$'][aL(0x15a,0x17d)];const an=V['get'](al);for(const {rate:ao}of an){if(ao){const ap=yield*h[aL(0x157,0x12a)](aj,TimeUnit[aL(0x137,0x166)],ao[aL(0x11c,0xf1)]||am);const aq=ao[aL(0x172,0x14d)];let ar=ao['perUseCost']||0x0;let as=ao[aL(0x168,0x170)]||0x0;if(aq&&y&&x){if(ar){ar=yield*h[aL(0x144,0x11e)](ar,aq,y);}if(as){as=yield*h[aL(0x144,0x14d)](as,aq,y);}}ak+=ap*as+(ac&&ar);ac=![];}}}ai[aL(0x152,0x124)]+=ak;a5+=ak;break;case CostAccrual[aL(0x16b,0x18f)]:if(!aa['costAccrued']&&v!==W&&X[aL(0x165,0x157)]['startDate']<=ad&&ad<X[aL(0x165,0x172)][aL(0x158,0x14c)]){const at=aa[aL(0x152,0x138)];a5+=at;ai[aL(0x152,0x15b)]+=at;aa[aL(0x160,0x159)]=!![];}break;case CostAccrual[aL(0x128,0x13f)]:if(!aa[aL(0x160,0x172)]&&v!==W&&(ad[aL(0x13f,0x168)]()-ae[aL(0x13f,0x156)]()?X[aL(0x165,0x189)][aL(0x164,0x166)]<ae&&ae<=X['tick'][aL(0x158,0x136)]:X[aL(0x165,0x188)][aL(0x164,0x16a)]<=ae&&ae<=X[aL(0x165,0x134)][aL(0x158,0x136)])){const au=aa[aL(0x152,0x178)];a5+=au;ai['cost']+=au;aa[aL(0x160,0x154)]=!![];}break;}}ai[aL(0x151,0x17c)]+=aj;ai['units']=af;ai[aL(0x15d,0x130)]=!![];a4+=aj;a3+=af;a0['add'](a9);a1[aL(0x11e,0x13e)](a9,ai);}}if(Y[aL(0x117,0x137)](j)){X[aL(0x16e,0x14b)]+=Z*o*0.01;}if(a3){if(a6){t+=a6*a3;u+=a6;X[aL(0x131,0x15c)]=t/u;}else if(!t){X['units']=a3;}}if(a2){X['inEventTimeSpan']=!![];X[aL(0x151,0x15d)]+=a4;X[aL(0x152,0x141)]+=a5;X[aL(0x143,0x161)]=a0;X['assignmentIntervals']=a1;X[aL(0x174,0x16f)]=X['isOverallocated']||X['effort']>X['maxEffort']||X['units']>o;X[aL(0x130,0x137)]=X[aL(0x130,0x106)]||a4<Z||X[aL(0x131,0x105)]<o;}}v=W;}if(v){const av=D[aL(0x117,0xf6)](v);av[aL(0x130,0x10f)]=av[aL(0x130,0x121)]||av[aL(0x151,0x14c)]&&av[aL(0x151,0x176)]<av[aL(0x16e,0x19a)];}function aL(a,b){return aC(a- -0x33f,b);}c[aL(0x148,0x13b)]();return{'owner':c,'resource':f,'total':d,'byAssignments':n};}}__decorate([field()],b['prototype'],aC(0x457,0x459),void 0x0);__decorate([field()],b[aC(0x462,0x47d)],'respectStoreFilters',void 0x0);__decorate([field()],b['prototype'],aC(0x46c,0x462),void 0x0);__decorate([field()],b[aC(0x462,0x48e)],'allocation',void 0x0);__decorate([field()],b[aC(0x462,0x453)],aC(0x49d,0x495),void 0x0);function aC(a,b){return _enaz(b,a-0x1e0);}__decorate([field()],b['prototype'],aC(0x49e,0x48b),void 0x0);__decorate([calculate(aC(0x459,0x443))],b[aC(0x462,0x432)],'calculateAllocation',null);return b;}){}export{ResourceAllocationEventRangeCalendar,ResourceAllocationEventRangeCalendarIntervalMixin,ResourceAllocationEventRangeCalendarIntervalStore,ResourceAllocationRateCalendar,ResourceAllocationRateCalendarIntervalMixin,ResourceAllocationRateCalendarIntervalStore,WorkResourceAllocationInfoMixin};
|