@bryntum/engine-thin-trial 7.1.3 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/ChronoGraph/chrono/Graph.js +1 -1
- package/lib/ChronoGraph/chrono/Identifier.js +1 -1
- package/lib/ChronoGraph/chrono/Quark.js +1 -1
- package/lib/calendar/CalendarIntervalMixin.js +1 -1
- package/lib/chrono/Replica.js +1 -1
- package/lib/quark/model/AbstractProjectMixin.js +1 -1
- package/lib/quark/model/gantt/ConstrainedLateEventMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/ChronoAbstractProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/SchedulerBasicProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_core/CoreEventMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function o(a,b){return _enb(a-0x1a1,b);}const c=a();while(!![]){try{const d=parseInt(o(0x378,0x35d))/0x1*(parseInt(o(0x3e1,0x3ec))/0x2)+parseInt(o(0x39f,0x34f))/0x3+parseInt(o(0x373,0x373))/0x4*(-parseInt(o(0x3f2,0x3fa))/0x5)+parseInt(o(0x413,0x3e0))/0x6*(parseInt(o(0x398,0x418))/0x7)+-parseInt(o(0x3a8,0x3e8))/0x8*(-parseInt(o(0x3fb,0x3d2))/0x9)+-parseInt(o(0x383,0x3ff))/0xa*(-parseInt(o(0x32a,0x33c))/0xb)+parseInt(o(0x38a,0x373))/0xc*(-parseInt(o(0x415,0x417))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x99b70));var __decorate=function(a,b,e,f){var g=arguments[p(0x329,0x386)],h=g<0x3?b:f===null?f=Object[p(0x28b,0x28a)](b,e):f,j;if(typeof Reflect===p(0x2e9,0x31b)&&typeof Reflect[p(0x32b,0x2ac)]===p(0x371,0x36a))h=Reflect['decorate'](a,b,e,f);else for(var k=a[p(0x329,0x2bf)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function p(a,b){return _enb(a-0xfa,b);}return g>0x3&&h&&Object[p(0x2b4,0x31e)](b,e,h),h;};import{MixinAny}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Schema}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Schema.js';import{delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/data/stm/StateTrackingManager.js';import _end from'@bryntum/core-thin/lib/data/Store.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x187;let f=c[d];return f;};return _enb(a,b);}import _ene from'@bryntum/core-thin/lib/helper/IdHelper.js';import _enf from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{IsChronoModelSymbol,model_field,ModelBucketField}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect,EngineReplica}from'../../../chrono/Replica.js';import{DurationConverterMixin}from'../../../scheduling/DurationConverterMixin.js';import{Direction,ProjectType}from'../../../scheduling/Types.js';import _eng from'../../../util/Queue.js';import{ChronoAssignmentStoreMixin}from'../../store/ChronoAssignmentStoreMixin.js';import{ChronoCalendarManagerStoreMixin}from'../../store/ChronoCalendarManagerStoreMixin.js';import{ChronoDependencyStoreMixin}from'../../store/ChronoDependencyStoreMixin.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{ChronoResourceStoreMixin}from'../../store/ChronoResourceStoreMixin.js';import{BaseAssignmentMixin}from'./BaseAssignmentMixin.js';import{BaseCalendarMixin}from'./BaseCalendarMixin.js';import{BaseDependencyMixin}from'./BaseDependencyMixin.js';import{BaseEventMixin}from'./BaseEventMixin.js';import{BaseResourceMixin}from'./BaseResourceMixin.js';function _ena(){const as=['project','recordsUnlinked','acceptChanges','tasksData','1032SYOxOt','getDefaultEventModelClass','from','onCommitRejection','setAssignmentStore','delayCalculation','getType','unspecifiedTimeIsWorking','calendarManagerStore','detachStore','syncDataOnLoad','isValidDependency','CurrentOrProposedOrPrevious','data','eventStoreChange','usingSyncDataOnLoad','time','stm','dependencyStore','Forward','setCalendarManagerStore','internalDelayCalculation','dependencyStoreChange','defaultCalendar','includeEvent','beginBatch','totalCount','activeTransaction','setStm','isLoadingInlineData','direction','delayCalculationEnd','isCommitting','undo','excludeEvent','enterReplica','eventsData','rejectedWith','setResourceStore','tryPropagateWithChangesQueued','length','resourceModelClass','decorate','enableProgressNotifications','hasPendingAutoCommit','storeClass','resourceStoreClass','set','removeEvent','calendarManagerStoreChange','_enableProgressNotifications','commitAsync','cycleEffectClass','eventStore','unlinkCalendarConsumers','dirty','assignmentStoreClass','626PLzXxj','hasChanges','beforeCommitAsync','calculateProject','resourceStoreChange','stateRestoringDone','has','prototype','eventStoreClass','getDefaultDependencyStoreClass','unjoinRecordsFromProject','assignments','addIndex','tryPropagateWithChanges','resetStmQueue','values','invalidateIndices','1605CeOJif','scheduleDelayedCalculation','resourceStore','addEvent','initializeStm','some','redo','tree','invalidateTemporaryIndices','21051GRkVNW','tasks','assignmentStoreChange','SchedulerBasic','getById','boolean','assign','resetQueue','queue','repopulateReplica','calendarManagerStoreClass','startTransaction','removeRejectedRecordsAdd','resourcesData','setDependencyStore','enable','revisionsEnabled','onSTMRestoringStart','now','entries','transaction','getDefaultDependencyModelClass','deferUntilRepopulationIfNeeded','setEventStore','12swfnqY','isEngineReady','13iOvRGh','_stmAutoRecord','stopTransaction','function','assignmentsForRemoval','calendarsData','handleSTMRestoringStop','hasSubEvents','rootNode','Time\x20to\x20visible','resumeFilterOnUpdate','load','dependencyStoreClass','getDefaultCalendarManagerStoreClass','unScheduleAutoCommit','getReplicaConfig','removeStore','loadInlineData','generateId','Populating\x20project','repopulateOnDataset','getGraph','DEBUG','isDelayingCalculation','baseRevision','8987zWdvZM','timeEnd','rejectStmTransaction','repopulateStore','dependencies','hasChangesInStores','storePopulation','getLatestStableEntryFor','getOwnPropertyDescriptor','_stmDisabled','disable','Project\x20\x22ignoreInitialCommitComputationCycles\x22\x20option\x20is\x20deprecated\x20and\x20will\x20be\x20dropped\x20in\x20the\x20next\x20major\x20release','query','getRange','calendarModelClass','unlinkStoreRecords','getCalendarConsumers','setupTemporaryIndices','await','assignmentStore','eventModelClass','clear','traverse','afterResourceRemoval','add','getDefaultResourceModelClass','getDefaultAssignmentStoreClass','calendar','onCommitInitialization','resource','remove','onCommitFinalization','size','isPending','commitLoad','stmClass','previous','addEvents','ignoreInitialCommitComputationCycles','onSTMRestoringStop','isDestroyed','_stmRestoringInProgress','disabled','calendars','expanded','ProjectModelQueue','autoRecord','resources','ignore','defineProperty','then','events','removeEvents','attachStore','isRecording','ion','getDefaultCycleEffectClass','_queue','hasDataInStores','getDefaultAssignmentModelClass','rejectTransaction','font-weight:bold;color:darkgreen;text-transform:uppercase;margin-top:\x202em','reject','suspendChangeTracking','delayCalculationStart','destroy','joinRecordsToProject','removeTemporaryIndices','sort','getEventStore','construct','addEntity','replica','13852zaUyue','isRepopulatingStores','onPropagationProgressNotification','_isCommittingAfterStmRestore','silenceInitialCommit','1533rwgAfM','assignmentsData','isInitialCommitPerformed','repopulateStores','hasStore','getStm','dependencyModelClass','setProject','addStore','children','delayedCalculationPromise','5170bDcccd','forEachStore','isWritingPreviousData','trigger','delayable','forEach','get','12087060JykIYp','getDefaultResourceStoreClass','assignmentModelClass','new','self','removalOrder','object','createReplica','dependenciesData','appendChild','unlinkRecord','doDestroy','log','dataStores','3214603SlYZdk','delayEnteringReplica','skipNonWorkingTimeWhenSchedulingManually','keys','identifier','applyProjectResponse','removeIndex','1878261ButyBF','calculateEffectiveDataOrVisualCalendar','stop','getDefaultEventStoreClass','event'];_ena=function(){return as;};return _ena();}import{ChronoAbstractProjectMixin}from'./ChronoAbstractProjectMixin.js';import{CanCombineCalendarsMixin,HasCalendarMixin}from'./HasCalendarMixin.js';import{SchedulerBasicEvent}from'./SchedulerBasicEvent.js';import{HasChildrenMixin}from'./HasChildrenMixin.js';class SchedulerBasicProjectMixin extends MixinAny([ChronoAbstractProjectMixin,BaseEventMixin,HasChildrenMixin,HasCalendarMixin,DurationConverterMixin,CanCombineCalendarsMixin],a=>{const b=a[q(-0x6a,-0xe5)];class c extends a{[q(-0xe2,-0xe6)](d={}){d[r(-0x33,-0x98)]=d['delayCalculation']!==![];d[r(-0xd,-0x8)]=d['enableProgressNotifications']||d[r(-0x33,0x39)]!==![];this[r(-0x7d,-0xb3)]=new _eng(_ene[r(0x47,0x43)](r(-0x89,-0x80)));if(!('expanded'in d)){d[r(-0x8a,-0xe5)]=!![];}if(d[r(-0x33,-0x4e)]){this[r(-0x47,0x2a)]=!![];}if(!('skipNonWorkingTimeWhenSchedulingManually'in d)){d[r(-0x46,0x0)]=![];}const {events:e,dependencies:f,resources:g,assignments:h,calendars:i}=d;delete d[r(-0x83,-0xb7)];delete d[r(-0xb2,-0xe2)];delete d[r(-0x87,-0x80)];delete d['assignments'];delete d[r(-0x8b,-0x91)];b[r(-0x70,-0x6b)]['call'](this,d);this[r(-0x65,-0xad)]=new Set();this[r(-0x90,-0xf6)]=r(-0x90,-0x6a)in d?d[r(-0x90,-0x76)]:![];if(this[r(-0x90,-0xcd)]){console['warn'](r(-0xab,-0xa6));}if(!this[r(-0xa2,-0xf7)])this[r(-0xa2,-0x36)]=this[r(-0x37,-0x42)]();if(!this[r(0x9,0x2a)])this[r(0x9,0x5a)]=this[r(-0x3e,-0x1a)]();if(!this[r(-0x62,-0xba)])this['dependencyModelClass']=this[r(0x30,0x46)]();if(!this[r(0x41,-0x18)])this[r(0x41,-0x1b)]=this['getDefaultDependencyStoreClass']();if(!this[r(-0xf,-0x39)])this[r(-0xf,0x32)]=this['getDefaultResourceModelClass']();function r(a,b){return q(a-0x72,b);}if(!this[r(-0xa,-0x52)])this[r(-0xa,0x54)]=this['getDefaultResourceStoreClass']();if(!this['assignmentModelClass'])this[r(-0x54,-0x83)]=this['getDefaultAssignmentModelClass']();if(!this[r(0x0,0x2d)])this[r(0x0,0x73)]=this[r(-0x9c,-0xd1)]();if(!this['calendarModelClass'])this[r(-0xa8,-0xe3)]=this['getDefaultCalendarModelClass']();if(!this[r(0x25,-0x53)])this[r(0x25,0x42)]=this[r(0x42,0x69)]();if(!this['cycleEffectClass'])this[r(-0x4,-0x6a)]=this[r(-0x7e,-0xd9)]();this[r(0x16,0x31)]();this[r(-0x21,0x7)]=new this['calendarModelClass']({'name':'Default','unspecifiedTimeIsWorking':this[r(-0x31,-0x90)]});this[r(-0x21,0x46)]['project']=this;if(!this['delayEnteringReplica'])this['enterReplica'](![]);this[r(-0x24,-0x21)](this[r(-0x30,-0x22)]);this['setEventStore'](this[r(-0x3,0x28)]);this[r(0x29,0x5b)](this['dependencyStore']);this[r(-0x12,-0x68)](this['resourceStore']);this[r(-0x34,-0x6c)](this[r(-0xa3,-0xa8)]);const j=Boolean(this[r(0x3a,-0xe)]||this[r(-0x14,-0x74)]||this['dependenciesData']||this[r(0x28,0x30)]||this[r(-0x67,-0x2e)]||i||e||f||g||h);if(j){this[r(0x46,0x91)]({'calendarsData':this['calendarsData'],'eventsData':this[r(-0x14,0x4c)],'dependenciesData':this[r(-0x4e,-0x96)],'resourcesData':this[r(0x28,0x93)],'assignmentsData':this[r(-0x67,-0x78)],'calendars':i,'events':e,'dependencies':f,'resources':g,'assignments':h});delete this[r(0x3a,0x4c)];delete this['eventsData'];delete this[r(-0x4e,-0x73)];delete this['resourcesData'];delete this[r(-0x67,-0xcb)];}else{if(this[r(-0x33,-0x33)]&&this[r(-0x7c,-0x6a)])this['scheduleDelayedCalculation']();}}get[q(-0xbb,-0x3d)](){function s(a,b){return q(a-0x161,b);}return[this['calendarManagerStore'],this[s(0x103,0xbd)],this['eventStore'],this[s(0xc9,0x54)],this[s(0x4c,0x94)]];}get[q(-0xee,-0x110)](){function t(a,b){return q(a-0x79,b);}return this[t(-0x42,-0x94)][t(0x1e,0x22)](d=>d['totalCount']>0x0);}get[q(-0x123,-0x186)](){function u(a,b){return q(a-0x633,b);}return this['dataStores'][u(0x5d8,0x615)](d=>d[u(0x5c3,0x60b)]);}[q(-0x87,-0x27)](d){const e=this;function v(a,b){return q(a- -0x72,b);}if(!e[v(-0x152,-0x175)]){e[v(-0x152,-0x10e)]=e[v(-0x133,-0xd5)]();e[v(-0x152,-0x13b)][v(-0x153,-0x132)](e);e[v(-0x152,-0xee)][v(-0x153,-0x176)](e[v(-0x105,-0x128)]);e[v(-0x13e,-0x1b0)]('graphReady');}if(d&&!e[v(-0x150,-0x16a)]){e[v(-0x12d,-0x14d)][v(-0x13c,-0x114)](f=>{function w(a,b){return v(b-0x569,a);}f[w(0x44a,0x42d)](g=>{!g['graph']&&g['joinProject']();},void 0x0,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});});}}[q(-0x63,-0x2d)](){const d=this['stm'][x(-0x6e,0xb)];this['stm'][x(0x13,-0x15)]();this[x(0x19,0x70)]['resetQueue']();function x(a,b){return q(b-0x109,a);}if(!d){this[x(0x75,0x70)]['enable']();}}[q(-0xbd,-0x116)](){const d=this;d['dataStores']['forEach'](e=>e?.[y(-0x10b,-0xfe)]());function y(a,b){return q(b- -0x17,a);}d[y(-0xe6,-0xaa)]?.[y(-0xd4,-0xfe)]();d['replica']?.[y(-0x125,-0x12a)]();d['stm']?.[y(-0x102,-0xfe)]();b[y(-0x6a,-0xd4)]['call'](this);}[q(-0x2e,-0x60)](){function z(a,b){return q(a- -0xbc,b);}return{'project':this,'schema':Schema[z(-0x181,-0x158)](),'enableProgressNotifications':this['enableProgressNotifications'],'silenceInitialCommit':this[z(-0x197,-0x142)],'ignoreInitialCommitComputationCycles':this[z(-0x1be,-0x164)],'cycleEffectClass':this[z(-0x132,-0xf8)],'onWriteDuringCommit':z(-0x1b4,-0x22d),'readMode':ReadMode[z(-0x15a,-0x1b0)]};}[q(-0xc1,-0xff)](){function A(a,b){return q(a-0x3cf,b);}return EngineReplica['new'](this[A(0x3a1,0x3a5)]());}*[q(-0x36,-0x3d)](){return this['getEventStore']()['count']>0x0;}*['subEventsIterable'](){function B(a,b){return q(b-0x430,a);}return this[B(0x301,0x34d)]()[B(0x340,0x315)]();}[q(-0xa4,-0xbe)](){function C(a,b){return q(a- -0x132,b);}return ProjectType[C(-0x186,-0x108)];}get[q(-0x7f,-0x81)](){return this['_enableProgressNotifications'];}set[q(-0x7f,-0xa)](d){function D(a,b){return q(a-0x305,b);}this[D(0x28d,0x300)]=d;if(this[D(0x225,0x1d6)])this[D(0x225,0x1ad)][D(0x286,0x219)]=d;}['getDefaultCycleEffectClass'](){return CycleEffect;}['getDefaultEventModelClass'](){return SchedulerBasicEvent;}[q(-0xb0,-0xbd)](){return ChronoEventStoreMixin;}[q(-0x42,-0x20)](){return BaseDependencyMixin;}[q(-0x68,-0x40)](){return ChronoDependencyStoreMixin;}[q(-0x10f,-0xf7)](){return BaseResourceMixin;}[q(-0xc7,-0xf2)](){return ChronoResourceStoreMixin;}[q(-0xed,-0xda)](){return BaseAssignmentMixin;}[q(-0x10e,-0xf1)](){return ChronoAssignmentStoreMixin;}['getDefaultCalendarModelClass'](){return BaseCalendarMixin;}['getDefaultCalendarManagerStoreClass'](){return ChronoCalendarManagerStoreMixin;}[q(-0x9b,-0xa0)](){function E(a,b){return q(b-0x34c,a);}return[this[E(0x320,0x2d7)],this[E(0x312,0x2ee)],this[E(0x2fa,0x2b4)],this[E(0x29a,0x237)]][E(0x366,0x2f1)](d=>d['syncDataOnLoad']);}async[q(-0x2c,-0xa)](d){const {calendarManagerStore:e,eventStore:f,dependencyStore:g,assignmentStore:h,resourceStore:i,replica:j}=this;this['dataPropertyDeprecation']?.(d||{});if(!this[F(-0x91,-0xc3)]){j?.[F(0x18,0x82)]();}else{while(j?.['isCommitting']){await this[F(-0x30,0x16)]();}}if(j?.['enableProgressNotifications']&&!this['delayCalculation']){await delay(0x0);await this[F(-0x30,0x0)]();j[F(-0x96,-0xcb)]({'total':0x0,'remaining':0x0,'phase':F(-0xdb,-0xf5)});await delay(0x32);}this['isInitialCommitPerformed']=![];this[F(-0x46,0x6)]=!![];if(globalThis[F(0x20,-0x5c)]){console[F(-0x75,-0x1c)]('%cInitializing\x20project',F(-0xa4,-0xc0));console['time'](F(0x13,0x93));console[F(-0x53,-0xbf)](F(0x1d,-0x45));}if(this['delayCalculation']&&!this[F(-0x89,-0x71)]&&!this[F(-0x54,-0x8)]()){this['scheduleDelayedCalculation']();}if(d[F(-0xb6,-0x134)]||d[F(0xf,-0x58)]){this[F(-0xde,-0x90)](e);e['data']=d[F(-0xb6,-0x61)]||d['calendarsData'];}if(d[F(-0xae,-0x6b)]||d[F(-0xf,0x3c)]||d[F(-0x3f,0x1a)]||d['tasksData']){this[F(-0xde,-0xcf)](f);f[F(-0x56,-0x45)]=d[F(-0xae,-0x5c)]||d[F(-0xf,-0x15)]||d['eventsData']||d[F(-0x64,0x13)];}function F(a,b){return q(a-0x47,b);}if(d[F(-0xdd,-0xa6)]||d['dependenciesData']){this[F(-0xde,-0x126)](g);g['data']=d['dependencies']||d[F(-0x79,-0xb1)];}if(d[F(-0xb2,-0x31)]||d[F(-0x3,-0x3c)]){this[F(-0xde,-0x6f)](i);i[F(-0x56,-0xb1)]=d[F(-0xb2,-0x5d)]||d[F(-0x3,-0x2c)];}if(d['assignments']||d[F(-0x92,-0x9b)]){this[F(-0xde,-0xb5)](h);h[F(-0x56,-0x7d)]=d[F(-0x1f,-0x50)]||d[F(-0x92,-0x58)];}if(d['project']){if(this[F(-0x72,-0x62)]&&this[F(-0xa7,-0x109)]){this[F(-0xaa,-0xc8)]({'recordsUnlinked':()=>{function G(a,b){return F(a-0x4f7,b);}this[G(0x455,0x441)]();this['applyProjectResponse'](d['project']);this['resumeChangeTracking']();},'once':!![]});}else{this[F(-0x6e,-0x2c)](d[F(-0x67,-0x4c)]);}}if(globalThis['DEBUG'])console[F(-0xe0,-0x160)](F(0x1d,0x1));const k=await this[F(-0xbf,-0xfb)]();this[F(-0x46,-0x7b)]=![];return k;}['setupTemporaryIndices'](){const {storage:d}=this[H(0x4bc,0x51c)]||{};function H(a,b){return q(a-0x5d1,b);}if(d){d[H(0x56c,0x5b4)]({'property':H(0x522,0x59f),'unique':![]});d[H(0x56c,0x540)]({'property':H(0x4c6,0x509),'unique':![]});}}[q(-0x58,0x1b)](){function I(a,b){return q(a-0x4da,b);}this['assignmentStore']?.['storage']?.[I(0x479,0x407)]();}[q(-0xe5,-0x113)](){const {storage:d}=this[J(-0xc2,-0xef)];d[J(-0x61,-0x44)](J(-0x5c,-0x16));function J(a,b){return q(a-0x53,b);}d[J(-0x61,-0x6)](J(-0xb8,-0xc0));}async[q(-0x95,-0xe9)](d){const e=this;function K(a,b){return q(a-0x4dc,b);}e['delayEnteringReplica']=!![];e['setupTemporaryIndices']();await delay(0x0);if(e[K(0x3dc,0x3e6)]){d();return;}e[K(0x410,0x3dc)](K(0x3f4,0x3ea));e[K(0x410,0x399)]('refresh',{'isCalculated':![]});await delay(0x0);if(e[K(0x3dc,0x416)]){d();return;}e['delayEnteringReplica']=![];e[K(0x421,0x483)][K(0x412,0x3d7)](g=>g['suspendFilterOnUpdate']());if(e[K(0x3fe,0x3b0)]){e['repopulateReplica'][K(0x497,0x48d)]();}else{e['trigger'](K(0x42f,0x471));e[K(0x455,0x3d8)](!![]);}const f=await e[K(0x3fc,0x41c)][K(0x465,0x4b5)]();if(e[K(0x3dc,0x38e)]){d();return;}e[K(0x421,0x494)][K(0x412,0x3ed)](g=>g[K(0x4a9,0x42f)]());d(f);e['delayedCalculationPromise']=null;e[K(0x410,0x469)](K(0x451,0x4a4));e['removeTemporaryIndices']();}[q(-0x5f,-0xc)](){if(this['delayedCalculationPromise']){return this[L(0x37e,0x3a1)];}function L(a,b){return q(b-0x471,a);}if(this[L(0x350,0x3cc)]!==![]){return this[L(0x332,0x3a1)]=new Promise(d=>this[L(0x38b,0x3dc)](d)[L(0x334,0x37b)]());}}async[q(-0x106,-0x14a)](){const d=await this['commitAsync']();function M(a,b){return q(b-0x155,a);}if(!this[M(0xb7,0x55)])this['trigger'](M(0x143,0x123));return d;}['initializeStm'](){function N(a,b){return q(a-0x21f,b);}const d=this[N(0x11a,0xec)]||_enc;if(!(this[N(0x186,0x1e2)]instanceof _enc))this[N(0x186,0x173)]=d[N(0x15a,0xfb)]({'disabled':!![]},this[N(0x186,0x1b1)]);this[N(0x191,0x1f8)](this[N(0x186,0x1a0)]);if(this['resetUndoRedoQueuesAfterLoad']){this['ion']({'load':this[N(0x1bc,0x160)],'thisObj':this});}this[N(0x12e,0xc0)]({'beforeCommit':this[N(0x113,0xed)],'commitFinalized':this[N(0x116,0x141)],'commitRejected':this[N(0x178,0x158)],'thisObj':this});}[q(-0x4b,0x26)]({transactionResult:d,silenceCommit:e}){function O(a,b){return q(b-0x7a,a);}const f=new Map();for(const h of d[O(0x62,0x36)][O(-0x3d,0x18)]()){const i=h[O(0x17,-0x3c)];const {field:j}=i;if(h['isShadow']()||!i[IsChronoModelSymbol]||j instanceof ModelBucketField)continue;const k=i[O(-0x37,-0x4a)];const l=k['firstStore'];if(l&&!h[O(-0x32,-0x8a)]&&!d['transaction'][O(-0x2a,-0xa7)](k['$$'])?.[O(-0xea,-0x8a)]){if(!f[O(0x8a,0xf)](l)){f[O(-0x2d,-0x1)](l,new Set([k]));}else if(!f['get'](l)[O(-0x35,0xf)](k)){f['get'](l)['add'](k);}}}this['suspendChangeTracking']?.();const g=Array[O(-0x90,-0x2e)](f[O(0xf,-0x3d)]())[O(-0x2a,-0x6a)]((m,n)=>m['removalOrder']-n[O(-0x92,-0x49)]);g[O(-0x21,-0x50)](m=>m[O(-0xd0,-0x90)](f['get'](m)));this['resumeChangeTracking']?.(e);if(e){this[O(0x27,-0x41)]['forEach'](m=>m[O(0x40,-0x32)]());}}[q(-0xa7,-0x47)](d){function P(a,b){return q(b- -0x44,a);}if(this[P(-0x141,-0x163)]){this['replica'][P(-0xcf,-0x111)]++;this['isRestoringData']=!![];this[P(-0x63,-0x8f)](d);this['isRestoringData']=![];this['replica'][P(-0xa6,-0x111)]--;}else{this[P(-0x122,-0x16a)]();}}[q(-0x10c,-0x157)](){const {stm:d}=this;this[Q(0x4f8,0x4ef)]=d[Q(0x4cb,0x510)];function Q(a,b){return q(b-0x60e,a);}if(d['isRecording']&&d[Q(0x4bf,0x514)]){this[Q(0x59f,0x5d2)]=!![];d[Q(0x503,0x514)]=![];}}[q(-0x109,-0x117)](){function R(a,b){return q(a-0x98,b);}if(this['_stmAutoRecord']){this[R(-0x1,-0x69)][R(-0x62,-0xe2)]=!![];this[R(0x5c,0x29)]=![];}}async[q(-0x89,-0xa3)](){await this[S(0x2aa,0x238)][S(0x2ba,0x2aa)]();function S(a,b){return q(a-0x343,b);}if(this[S(0x267,0x29d)]){await this[S(0x22d,0x1cb)](S(0x2d7,0x356),![]);}}async[q(-0x5a,0x16)](){await this[T(0x2e4,0x2ba)][T(0x34b,0x2f9)]();function T(a,b){return q(b-0x353,a);}if(this[T(0x245,0x277)]){await this[T(0x1e8,0x23d)](T(0x2ed,0x2e7),![]);}}['onSTMRestoringStart']({source:d}){function U(a,b){return q(a-0x572,b);}if(this[U(0x492,0x4f5)])this[U(0x492,0x511)][U(0x4a5,0x4ec)]++;}async[q(-0x37,0x35)](d){if(this[V(0x104,0x175)])this['replica'][V(0x1d3,0x188)]--;this[V(0x10b,0x156)]=!![];function V(a,b){return q(b-0x255,a);}d[V(0xbe,0x137)]();this['_isCommittingAfterStmRestore']=!![];await this['commitAsync']();this[V(0x10f,0x179)]=![];this[V(0x190,0x156)]=![];if(!this[V(0x18d,0x155)]){d['enable']();this[V(0x116,0x189)](V(0x1c7,0x1e9));}}async[q(-0x101,-0xfb)]({source:d}){function W(a,b){return q(b-0x250,a);}if(d[W(0x1ca,0x209)]){await this[W(0x206,0x201)](()=>this[W(0x1b1,0x219)](d));}else{await this['handleSTMRestoringStop'](d);}}[q(-0x41,-0xb0)](d,e,f){function X(a,b){return q(b- -0xca,a);}if(this[X(-0x16e,-0x1a8)]){this['detachListeners'](d);this['ion']({'name':d,'repopulateReplica':{'fn':async()=>{await this['commitAsync']();function Y(a,b){return X(a,b- -0x40);}if(!this[Y(-0x261,-0x20a)]){e(...f);}},'once':!![]}});}else{e(...f);}}get[q(-0xde,-0xf1)](){function Z(a,b){return q(b-0x66,a);}return Boolean(this[Z(-0xcd,-0x71)]?.[Z(-0x8d,-0xa2)]);}[q(-0x125,-0xb7)](d){function a0(a,b){return q(a-0x353,b);}const e=this;if(e[a0(0x32a,0x323)]&&d['totalCount']&&!d[a0(0x2b3,0x2ce)]){e[a0(0x273,0x22c)]?.[a0(0x2c4,0x270)][a0(0x2a2,0x31e)]();if(!e['repopulateStores'])e[a0(0x27c,0x222)]=new Set();e[a0(0x27c,0x2a3)]['add'](d);e['repopulateReplica']();}}[q(-0x4e,-0x94)](){const d=this;if(d[a1(0x2c,0x52)]){return;}const {dataStores:e,replica:f,calendarManagerStore:g}=d;if(f){d[a1(-0x34,0x41)](...e);d[a1(0x27,-0x2e)](d);d[a1(0x27,0x64)](d[a1(0x52,0x6)]);d[a1(0x19,-0x2)](a1(0x38,0x4d));f[a1(-0x2e,0x29)]();}else{d['trigger']('recordsUnlinked');}const h=d[a1(0x5,-0x54)]=d['createReplica']();h['addEntities']([d,d[a1(0x52,0x9d)]]);const i=new Map();for(const j of e){i[a1(0x6a,0x2a)](j,j['joinRecordsToProject'](d,!![]));}function a1(a,b){return q(a-0xe5,b);}if(i[a1(0x1c,0x58)](g)<g[a1(0x55,0x63)]){d[a1(0x43,0x59)][a1(-0x1,-0x79)](d,!![]);}if(f){h[a1(0x56,0x96)]['writeFailedResolutionInfo'](f[a1(-0x44,-0x36)]['failedResolutionReferences']);}d[a1(0xe,0xb)]['clear']();d[a1(0x19,-0x64)]('repopulateReplica');}[q(-0x6f,-0x33)](){function a2(a,b){return q(a-0x4c9,b);}if(this['repopulateReplica'][a2(0x3c2,0x440)]&&!this[a2(0x39f,0x3e4)]){this[a2(0x47b,0x482)][a2(0x484,0x4ef)]();return this[a2(0x3e9,0x381)][a2(0x452,0x440)]();}return null;}['unlinkRecord'](d){d['unlink']();}[q(-0x119,-0x154)](...d){function a3(a,b){return q(b-0x87,a);}d[a3(0xe,-0x43)](e=>{function a4(a,b){return a3(b,a-0x123);}if(!this[a4(0xd3,0xb8)]['has'](e)||e['syncDataOnLoad']){e[a4(0x98,0x7e)](f=>{function a5(a,b){return a4(a- -0x26a,b);}this[a5(-0x17e,-0x197)](f);},![],![],{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}});}[q(-0x28,-0x84)](){function a6(a,b){return q(a-0x1c3,b);}return this[a6(0xe3,0x73)];}async[q(-0x103,-0x15b)](d){function a7(a,b){return q(a-0x173,b);}this['eventStore']['add'](d);return this[a7(0xfc,0xda)]();}async[q(-0x5d,-0xcd)](d){function a8(a,b){return q(b-0x1f1,a);}this[a8(0x125,0x17c)][a8(0x141,0xe1)](d);return this[a8(0x10c,0x17a)]();}[q(-0x92,-0x102)](d){this['eventStore']['add'](d);}async[q(-0xf4,-0x11d)](d){function a9(a,b){return q(b- -0x11,a);}this[a9(-0xf7,-0x86)]['remove'](d);return this[a9(-0xb3,-0x88)]();}[q(-0x88,-0xaf)](d){function aa(a,b){return q(a-0x193,b);}this['eventStore'][aa(0x89,0xe3)](d);}async[q(-0x7a,-0xaa)](d){function ab(a,b){return q(b-0x685,a);}this[ab(0x68f,0x610)][ab(0x511,0x57b)](d);return this['commitAsync']();}[q(-0xd5,-0xb4)](){return this['stm'];}[q(-0x8e,-0x38)](d){function ac(a,b){return q(b-0x11e,a);}this['stm']=d;this['stm'][ac(0x12,0x2d)]({'restoringStart':this[ac(0x14e,0xd8)],'restoringStop':this[ac(-0x58,0x1d)],'thisObj':this});}[q(-0x6e,-0x5d)](){return this;}*[q(-0xb2,-0x56)](d){let e=yield this['$']['calendar'];if(e){yield e['$']['version'];}else{e=this[ad(0x323,0x36c)];}function ad(a,b){return q(b-0x3ff,a);}return e;}[q(-0x40,-0x36)](d){const e=this['eventStore'];if(e&&this[ae(0x134,0x11e)]['hasStore'](e)){this[ae(0x104,0x11e)][ae(0x16a,0x18a)](e);e[ae(0xd6,0x150)](this);this[ae(0xef,0x116)](e);const f=e[ae(0x143,0x17e)];f[ae(0x116,0xed)](g=>{function af(a,b){return ae(a,b-0x20);}const h=g[af(0x107,0x128)];if(h){const i=d[af(0x1c9,0x184)](h['id']);if(i){g['event']=i;f['delete'](g);}}});e['afterEventRemoval']();}function ae(a,b){return q(b-0x1b7,a);}if(!d||!(d instanceof _end)){const g=d?.[ae(0xdf,0x13a)]||this[ae(0x181,0x14e)];this[ae(0x10b,0x142)]=new g(_enf[ae(0x15f,0x166)]({'modelClass':this[ae(0x55,0xa3)],'project':this,'stm':this['stm']},d||{}));}else{this['eventStore']=d;d[ae(0xc8,0xe4)](this);this[ae(0xc1,0x11e)][ae(0x110,0xe5)](d);if(d[ae(0x17d,0x15e)]&&d[ae(0x156,0x182)]!==this){this[ae(0x135,0xf8)](d[ae(0x142,0x182)][ae(0x113,0xe6)]||[]);d['rootNode']=this;}else{d[ae(0x12d,0xd1)](this);}}this[ae(0x10a,0xc4)](this[ae(0x115,0x142)]);this[ae(0x88,0xeb)](ae(0x17d,0x11b),{'store':this[ae(0x16b,0x142)]});}[q(-0x49,-0x14)](d){const e=this[ag(0x575,0x576)];function ag(a,b){return q(b-0x60e,a);}if(e&&this[ag(0x54e,0x575)][ag(0x586,0x538)](e)){this[ag(0x5ae,0x575)][ag(0x5a8,0x5e1)](e);this[ag(0x5a6,0x56d)](e);}if(!d||!(d instanceof _end)){const f=d?.[ag(0x613,0x591)]||this[ag(0x577,0x5dd)];this[ag(0x521,0x576)]=new f(_enf[ag(0x561,0x5bd)]({'modelClass':this[ag(0x4d6,0x53a)],'project':this,'stm':this[ag(0x574,0x575)]},d||{}));}else{this[ag(0x4f9,0x576)]=d;d[ag(0x532,0x53b)](this);this[ag(0x573,0x575)]['addStore'](d);d[ag(0x554,0x528)](this);}this[ag(0x4ba,0x51b)](this['dependencyStore']);this[ag(0x53d,0x542)](ag(0x58e,0x57a),{'store':this['dependencyStore']});}['setResourceStore'](d){const e=this[ah(0x171,0x12d)];if(e&&this[ah(0xa3,0xf2)][ah(0x41,0xb5)](e)){this[ah(0x87,0xf2)]['removeStore'](e);e[ah(0x136,0x124)](this);this[ah(0x8f,0xea)](e);const f=e[ah(0x129,0x152)];f[ah(0xd0,0xc1)](g=>{const h=g['resource'];function ai(a,b){return ah(a,b-0x391);}if(h){const i=d[ai(0x454,0x4c9)](h['id']);if(i){g[ai(0x411,0x411)]=i;f['delete'](g);}}});e[ah(0x6d,0x7a)]();}if(!d||!(d instanceof _end)){const g=d?.[ah(0xd6,0x10e)]||this['resourceStoreClass'];this['resourceStore']=new g(_enf[ah(0xd2,0x13a)]({'modelClass':this[ah(0x154,0x10a)],'project':this,'stm':this[ah(0x173,0xf2)]},d||{}));}else{this['resourceStore']=d;d[ah(0x5b,0xb8)](this);this[ah(0x9f,0xf2)][ah(0x13a,0xb9)](d);d['joinRecordsToProject'](this);}this[ah(0xf8,0x98)](this[ah(0x193,0x12d)]);function ah(a,b){return q(b-0x18b,a);}this['trigger'](ah(0x132,0x11e),{'store':this[ah(0xf4,0x12d)]});}[q(-0xa6,-0x44)](d){const e=this[aj(-0x1a0,-0x1e7)];if(e&&this[aj(-0x124,-0xfe)][aj(-0x161,-0x151)](e)){this[aj(-0x124,-0x10f)]['removeStore'](e);e[aj(-0xf2,-0xe7)](this);this['detachStore'](e);}if(!d||!(d instanceof _end)){const f=d?.[aj(-0x108,-0x114)]||this[aj(-0xfd,-0x11e)];this['assignmentStore']=new f(_enf[aj(-0xdc,-0x61)]({'modelClass':this[aj(-0x151,-0x174)],'project':this,'stm':this[aj(-0x124,-0xe3)]},d||{}));}else{this[aj(-0x1a0,-0x124)]=d;d['setProject'](this);this[aj(-0x124,-0xd7)]['addStore'](d);d[aj(-0x171,-0x1eb)](this);}this[aj(-0x1b5,-0x15d)]&&this[aj(-0x1a2,-0x17f)]();this[aj(-0x17e,-0x164)](this[aj(-0x1a0,-0x1e4)]);function aj(a,b){return q(a- -0x8b,b);}this[aj(-0x157,-0xe2)](aj(-0xe0,-0xbe),{'store':this['assignmentStore']});}[q(-0x96,-0xce)](d){const e=this[ak(0x1d9,0x169)];if(e&&this[ak(0x1e2,0x203)][ak(0x1a5,0x227)](e)){this[ak(0x1e2,0x240)][ak(0x24e,0x267)](e);this['detachStore'](e);}if(!d||!(d instanceof _end)){const f=d?.[ak(0x1fe,0x249)]||this['calendarManagerStoreClass'];this['calendarManagerStore']=new f(_enf['assign']({'modelClass':this['calendarModelClass'],'project':this,'stm':this[ak(0x1e2,0x20c)]},d||{}));}else{this['calendarManagerStore']=d;if(d){d[ak(0x1a8,0x1f2)](this);this['stm'][ak(0x1a9,0x18c)](d);d[ak(0x195,0x1f2)](this);}}function ak(a,b){return q(a-0x27b,b);}this[ak(0x188,0x16c)](this[ak(0x1d9,0x1c0)]);this[ak(0x1af,0x1a4)](ak(0x202,0x268),{'store':this[ak(0x1d9,0x1c9)]});}async[q(-0x9f,-0x9e)](...d){return!![];}[q(-0x126,-0xef)](d){function al(a,b){return q(a-0x47a,b);}d=d||this[al(0x3e1,0x42f)];if(d[al(0x437,0x401)]){if(d[al(0x437,0x409)][al(0x3f8,0x3cb)]){d[al(0x3ac,0x421)](e=>e[al(0x3e9,0x381)]());d[al(0x38e,0x3fe)]();d['forEachStore'](e=>e['endBatch']());}else{d[al(0x43f,0x42a)]();}}}async['tryPropagateWithChanges'](d){const f=this['stm'],g=f[am(0x28a,0x2b5)],h=f[am(0x259,0x2b9)];if(g){f[am(0x2ef,0x36b)]();}else{if(h){f[am(0x2ca,0x2b9)]=![];}if(f[am(0x263,0x2c1)]){f[am(0x325,0x378)]();}}f[am(0x338,0x367)]();function am(a,b){return q(b-0x3b3,a);}d();let i=!![];try{const j=await this[am(0x380,0x33c)]();i=!j[am(0x3a9,0x32e)];}catch(k){if(!/cycle/i['test'](k))throw k;i=![];}if(i){f['stopTransaction']();if(g){f[am(0x394,0x363)]();}}else{this[am(0x31b,0x2d3)][am(0x346,0x2c9)]();this[am(0x2c4,0x28d)](f);}f['disabled']=g;f[am(0x2e3,0x2b9)]=h;return i;}async[q(-0x83,-0xfb)](d){function an(a,b){return q(a-0x573,b);}return this[an(0x524,0x4d7)](()=>this[an(0x50f,0x49f)](d));}[q(-0x4f,-0x78)](d,e){function ao(a,b){return q(a-0x181,b);}const f=this;return f[ao(0x92,0x49)][ao(0x132,0x162)](async function g(){return d();},e);}[q(-0x3e,-0x8a)](){function ap(a,b){return q(b- -0x7c,a);}const {replica:d}=this;return this[ap(-0x178,-0x135)]||!this[ap(-0x14e,-0x15a)]&&(d?!(d[ap(-0xf3,-0xef)]&&(d[ap(-0x7b,-0xfa)]()||d[ap(-0xe4,-0x106)])):!![]);}[q(-0x118,-0xb5)](d){const e=[];if(this[aq(0x33c,0x3b4)]===d)e['push'](this);function aq(a,b){return q(b-0x4c1,a);}e['push'](...this[aq(0x455,0x44c)]['query'](f=>f[aq(0x3bf,0x3b4)]===d,!![]));e['push'](...this['resourceStore'][aq(0x409,0x3a5)](f=>f[aq(0x414,0x3b4)]===d,!![]));if(d['children']?.[aq(0x47c,0x43f)]){for(const f of d[aq(0x447,0x3f0)]){e['push'](...this['getCalendarConsumers'](f));}}return e;}[q(-0x74,-0x31)](d){const e=this[ar(0xd5,0x56)](d);function ar(a,b){return q(a-0x1ed,b);}for(const f of e){f['calendar']=null;}}static get['defaultConfig'](){return{'assignmentsData':null,'calendarsData':null,'dependenciesData':null,'eventsData':null,'resourcesData':null,'eventStore':null,'resourceStore':null,'assignmentStore':null,'dependencyStore':null,'calendarManagerStore':null,'eventModelClass':null,'resourceModelClass':null,'assignmentModelClass':null,'dependencyModelClass':null,'calendarModelClass':null,'repopulateOnDataset':!![]};}static get[q(-0xcb,-0x120)](){return{'repopulateReplica':0xa};}}c['applyConfigs']=!![];function q(a,b){return _enb(a- -0x2b1,b);}__decorate([model_field({'type':q(-0x52,0xc),'defaultValue':!![]})],c['prototype'],'unspecifiedTimeIsWorking',void 0x0);__decorate([model_field({'type':q(-0x52,-0x4c),'defaultValue':![]})],c['prototype'],q(-0xb8,-0x4a),void 0x0);__decorate([model_field({'type':q(-0x52,-0x99),'defaultValue':![]})],c[q(-0x6a,-0x1a)],'skipNonWorkingTimeInDurationWhenSchedulingManually',void 0x0);__decorate([model_field({'type':'string','defaultValue':Direction[q(-0x97,-0x73)]},{'sync':!![]})],c[q(-0x6a,-0x87)],q(-0x8c,-0x92),void 0x0);return c;}){}export{SchedulerBasicProjectMixin};
|
|
1
|
+
(function(a,b){const c=a();function o(a,b){return _enb(b-0x167,a);}while(!![]){try{const d=parseInt(o(0x421,0x39f))/0x1+-parseInt(o(0x350,0x3b6))/0x2+parseInt(o(0x342,0x370))/0x3*(parseInt(o(0x2f8,0x340))/0x4)+parseInt(o(0x3b5,0x353))/0x5+parseInt(o(0x2fe,0x316))/0x6+-parseInt(o(0x357,0x3bb))/0x7*(-parseInt(o(0x2e5,0x2e9))/0x8)+-parseInt(o(0x390,0x37c))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2a92c));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[p(0x4c0,0x450)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[p(0x4e1,0x48e)]===p(0x4f5,0x4ce))h=Reflect['decorate'](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 p(a,b){return _enb(b-0x273,a);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{MixinAny}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _ena(){const ax=['33135nRzjuA','addEvent','applyConfigs','setupTemporaryIndices','scheduleDelayedCalculation','isShadow','trigger','addStore','onSTMRestoringStart','queue','skipNonWorkingTimeWhenSchedulingManually','unjoinRecordsFromProject','4105503TqopNU','add','removeStore','getDefaultCycleEffectClass','_stmDisabled','rejectedWith','decorate','getDefaultCalendarModelClass','identifier','isRepopulatingStores','rootNode','hasDataInStores','setCalendarManagerStore','undo','isInitialCommitPerformed','repopulateStores','usingSyncDataOnLoad','isCommitting','unlink','resourceStoreChange','calendarsData','resources','hasChangesInStores','silenceInitialCommit','totalCount','resetQueue','enableProgressNotifications','font-weight:bold;color:darkgreen;text-transform:uppercase;margin-top:\x202em','string','onCommitInitialization','joinProject','count','initializeStm','stateRestoringDone','getGraph','144730kenUst','time','resourceStore','getReplicaConfig','suspendFilterOnUpdate','refresh','resumeChangeTracking','getDefaultDependencyStoreClass','revisionsEnabled','removeIndex','detachStore','getLatestStableEntryFor','endBatch','afterResourceRemoval','internalDelayCalculation','self','destroy','dependencies','excludeEvent','storeClass','beginBatch','construct','set','32614zqornz','expanded','eventsData','version','acceptChanges','9989MDJvQQ','delayCalculationEnd','delayedCalculationPromise','getDefaultDependencyModelClass','dependencyStoreChange','previous','storage','function','deferUntilRepopulationIfNeeded','handleSTMRestoringStop','onSTMRestoringStop','stop','disable','startTransaction','addIndex','prototype','tryPropagateWithChanges','warn','ignoreInitialCommitComputationCycles','includeEvent','subEventsIterable','getById','activeTransaction','_queue','push','doDestroy','SchedulerBasic','data','getDefaultEventModelClass','calendarManagerStoreChange','addEntity','calendarManagerStore','applyProjectResponse','getRange','boolean','values','log','enable','size','hasChanges','now','_isCommittingAfterStmRestore','dependencyModelClass','CurrentOrProposedOrPrevious','graphReady','getDefaultResourceModelClass','clear','generateId','unScheduleAutoCommit','setDependencyStore','88BSMyvK','calendarModelClass','length','createReplica','calculateProject','attachStore','dependenciesData','_stmRestoringInProgress','replica','resourcesData','resource','dataPropertyDeprecation','hasStore','setEventStore','unlinkStoreRecords','setResourceStore','traverse','repopulateReplica','Time\x20to\x20visible','assignmentsForRemoval','cycleEffectClass','getDefaultAssignmentModelClass','events','redo','_stmAutoRecord','beforeCommitAsync','disabled','isDelayingCalculation','addEvents','commitAsync','isRecording','eventStore','reject','Populating\x20project','suspendChangeTracking','syncDataOnLoad','commitLoad','delete','Forward','defaultCalendar','some','stmClass','has','appendChild','stm','791652TtgMLv','delayCalculation','sort','DEBUG','ion','resourceModelClass','unspecifiedTimeIsWorking','setAssignmentStore','calendars','recordsUnlinked','rejectStmTransaction','removeRejectedRecordsAdd','resourceStoreClass','tryPropagateWithChangesQueued','getEventStore','query','ignore','isEngineReady','eventStoreClass','dependencyStore','test','isLoadingInlineData','assignmentsData','setProject','forEachStore','delayCalculationStart','timeEnd','delayable','loadInlineData','resetStmQueue','_enableProgressNotifications','Project\x20\x22ignoreInitialCommitComputationCycles\x22\x20option\x20is\x20deprecated\x20and\x20will\x20be\x20dropped\x20in\x20the\x20next\x20major\x20release','writeFailedResolutionInfo','stopTransaction','get','unlinkCalendarConsumers','dataStores','storePopulation','calendarManagerStoreClass','detachListeners','removalOrder','joinRecordsToProject','20uuwbNC','call','assign','children','getOwnPropertyDescriptor','autoRecord','tree','tasksData','getDefaultCalendarManagerStoreClass','eventStoreChange','tasks','isRestoringData','getDefaultResourceStoreClass','event','dependencyStoreClass','onCommitRejection','entries','invalidateTemporaryIndices','onPropagationProgressNotification','1496300VNuSQO','new','calendar','remove','getCalendarConsumers','transaction','isWritingPreviousData','forEach','enterReplica','%cInitializing\x20project','eventModelClass','hasPendingAutoCommit','isDestroyed','unlinkRecord','getDefaultEventStoreClass','assignmentStore','delayEnteringReplica','setStm','isValidDependency','assignmentModelClass','afterEventRemoval','then','repopulateStore','assignmentStoreClass','graph','removeTemporaryIndices','getDefaultAssignmentStoreClass','await','firstStore'];_ena=function(){return ax;};return _ena();}import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Schema}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Schema.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x165;let f=c[d];return f;};return _enb(a,b);}import{delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/data/stm/StateTrackingManager.js';import _end from'@bryntum/core-thin/lib/data/Store.js';import _ene from'@bryntum/core-thin/lib/helper/IdHelper.js';import _enf from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{IsChronoModelSymbol,model_field,ModelBucketField}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect,EngineReplica}from'../../../chrono/Replica.js';import{DurationConverterMixin}from'../../../scheduling/DurationConverterMixin.js';import{Direction,ProjectType}from'../../../scheduling/Types.js';import _eng from'../../../util/Queue.js';import{ChronoAssignmentStoreMixin}from'../../store/ChronoAssignmentStoreMixin.js';import{ChronoCalendarManagerStoreMixin}from'../../store/ChronoCalendarManagerStoreMixin.js';import{ChronoDependencyStoreMixin}from'../../store/ChronoDependencyStoreMixin.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{ChronoResourceStoreMixin}from'../../store/ChronoResourceStoreMixin.js';import{BaseAssignmentMixin}from'./BaseAssignmentMixin.js';import{BaseCalendarMixin}from'./BaseCalendarMixin.js';import{BaseDependencyMixin}from'./BaseDependencyMixin.js';import{BaseEventMixin}from'./BaseEventMixin.js';import{BaseResourceMixin}from'./BaseResourceMixin.js';import{ChronoAbstractProjectMixin}from'./ChronoAbstractProjectMixin.js';import{CanCombineCalendarsMixin,HasCalendarMixin}from'./HasCalendarMixin.js';import{SchedulerBasicEvent}from'./SchedulerBasicEvent.js';import{HasChildrenMixin}from'./HasChildrenMixin.js';class SchedulerBasicProjectMixin extends MixinAny([ChronoAbstractProjectMixin,BaseEventMixin,HasChildrenMixin,HasCalendarMixin,DurationConverterMixin,CanCombineCalendarsMixin],a=>{const b=a[q(0x240,0x2bf)];class c extends a{[q(0x22a,0x1aa)](d={}){d[r(0x10e,0x96)]=d['delayCalculation']!==![];d['enableProgressNotifications']=d[r(0x18d,0x141)]||d[r(0x10e,0x12a)]!==![];function r(a,b){return q(a- -0x7f,b);}this[r(0xc5,0x108)]=new _eng(_ene[r(0xdd,0xf0)]('ProjectModelQueue'));if(!(r(0x1ae,0x20c)in d)){d['expanded']=!![];}if(d[r(0x10e,0xf8)]){this[r(0x15a,0x13d)]=!![];}if(!(r(0x171,0x156)in d)){d[r(0x171,0x107)]=![];}const {events:e,dependencies:f,resources:g,assignments:h,calendars:i}=d;delete d[r(0xf6,0xec)];delete d['dependencies'];delete d['resources'];delete d['assignments'];delete d[r(0x115,0x17d)];b[r(0x1ab,0x14d)][r(0x138,0xe2)](this,d);this[r(0x182,0x1cd)]=new Set();this['ignoreInitialCommitComputationCycles']='ignoreInitialCommitComputationCycles'in d?d[r(0x1c4,0x1c3)]:![];if(this[r(0x1c4,0x148)]){console[r(0x1c3,0x21d)](r(0x12c,0x1a5));}if(!this[r(0x154,0xd8)])this['eventModelClass']=this[r(0xca,0xef)]();if(!this[r(0x11f,0x12a)])this[r(0x11f,0xb6)]=this[r(0x158,0x16f)]();if(!this[r(0xd8,0x13a)])this[r(0xd8,0x121)]=this[r(0x1b5,0x1af)]();if(!this[r(0x145,0xc4)])this[r(0x145,0x1a3)]=this[r(0x19d,0x182)]();if(!this[r(0x112,0x11c)])this['resourceModelClass']=this[r(0xdb,0xa6)]();if(!this[r(0x119,0x154)])this[r(0x119,0xe6)]=this[r(0x143,0x1a8)]();if(!this[r(0x15d,0x1d4)])this[r(0x15d,0x112)]=this[r(0xf5,0x113)]();if(!this[r(0x161,0x139)])this['assignmentStoreClass']=this[r(0x164,0x15d)]();if(!this[r(0xe1,0x15a)])this[r(0xe1,0x130)]=this[r(0x17a,0x174)]();if(!this[r(0x133,0x142)])this[r(0x133,0x151)]=this[r(0x13f,0x10c)]();if(!this[r(0xf4,0x159)])this[r(0xf4,0x164)]=this[r(0x176,0x14a)]();this[r(0x193,0x1ac)]();this['defaultCalendar']=new this['calendarModelClass']({'name':'Default','unspecifiedTimeIsWorking':this['unspecifiedTimeIsWorking']});this[r(0x107,0x8d)]['project']=this;if(!this[r(0x15a,0xff)])this[r(0x152,0x149)](![]);this[r(0x17f,0x106)](this[r(0xcd,0x66)]);this[r(0xed,0xcd)](this['eventStore']);this[r(0xdf,0xc9)](this[r(0x120,0x19a)]);this['setResourceStore'](this['resourceStore']);this[r(0x114,0xb3)](this[r(0x159,0x123)]);const j=Boolean(this[r(0x187,0x19a)]||this[r(0x1af,0x1ee)]||this['dependenciesData']||this[r(0xe9,0xa5)]||this[r(0x123,0xc8)]||i||e||f||g||h);if(j){this['loadInlineData']({'calendarsData':this['calendarsData'],'eventsData':this[r(0x1af,0x175)],'dependenciesData':this['dependenciesData'],'resourcesData':this[r(0xe9,0xaa)],'assignmentsData':this[r(0x123,0xfa)],'calendars':i,'events':e,'dependencies':f,'resources':g,'assignments':h});delete this[r(0x187,0x168)];delete this['eventsData'];delete this[r(0xe6,0xfc)];delete this[r(0xe9,0x110)];delete this[r(0x123,0xd2)];}else{if(this[r(0x10e,0x11e)]&&this[r(0x17e,0x119)])this[r(0x16b,0x1d5)]();}}get[q(0x1b0,0x206)](){function s(a,b){return q(b- -0x25d,a);}return[this[s(-0xe1,-0x111)],this[s(-0x5f,-0x46)],this[s(-0x14a,-0xdf)],this['dependencyStore'],this[s(-0x69,-0x85)]];}get[q(0x1fd,0x22f)](){function t(a,b){return q(b-0x2bd,a);}return this['dataStores'][t(0x41e,0x444)](d=>d[t(0x4de,0x4c7)]>0x0);}get[q(0x208,0x1da)](){function u(a,b){return q(a-0xfb,b);}return this[u(0x2ab,0x285)]['some'](d=>d[u(0x24f,0x277)]);}[q(0x1d1,0x1a4)](d){const e=this;if(!e[v(0x24a,0x2bf)]){e[v(0x2b7,0x2bf)]=e[v(0x300,0x2ba)]();e[v(0x317,0x2bf)][v(0x27e,0x2a3)](e);e[v(0x2b0,0x2bf)][v(0x27a,0x2a3)](e[v(0x2b0,0x2de)]);e[v(0x2f3,0x344)](v(0x28f,0x2b1));}function v(a,b){return q(b-0x158,a);}if(d&&!e[v(0x2eb,0x353)]){e[v(0x2ee,0x308)][v(0x348,0x328)](f=>{function w(a,b){return v(a,b-0x6d);}f[w(0x36f,0x395)](g=>{function x(a,b){return w(b,a- -0x34f);}!g[x(0x57,-0x1e)]&&g[x(0x86,0x36)]();},void 0x0,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});});}}[q(0x1a9,0x181)](){const d=this[y(0xe2,0x13b)]['disabled'];function y(a,b){return q(a- -0xa9,b);}this[y(0xe2,0x84)][y(0x194,0x1e5)]();this[y(0xe2,0x149)][y(0x162,0x10d)]();if(!d){this['stm'][y(0xa9,0xe1)]();}}[q(0x146,0xf3)](){const d=this;function z(a,b){return q(b-0x388,a);}d['dataStores'][z(0x507,0x558)](e=>e?.[z(0x578,0x5ad)]());d[z(0x4a5,0x50e)]?.['destroy']();d[z(0x53e,0x4ef)]?.[z(0x53b,0x4e3)]();d['stm']?.['destroy']();b[z(0x4f2,0x4ce)][z(0x5af,0x53f)](this);}[q(0x218,0x26f)](){function A(a,b){return q(a- -0x2d1,b);}return{'project':this,'schema':Schema[A(-0x107,-0xa6)](),'enableProgressNotifications':this[A(-0xc5,-0x5b)],'silenceInitialCommit':this[A(-0xc8,-0x74)],'preventSilencingOnIssueResolve':this['preventSilencingOnIssueResolve'],'ignoreInitialCommitComputationCycles':this[A(-0x8e,-0x87)],'cycleEffectClass':this[A(-0x15e,-0x1ca)],'onWriteDuringCommit':A(-0x135,-0xcc),'readMode':ReadMode[A(-0x179,-0xf9)]};}[q(0x162,0x133)](){function B(a,b){return q(a- -0x304,b);}return EngineReplica[B(-0x13a,-0x1b0)](this['getReplicaConfig']());}*['hasSubEvents'](){function C(a,b){return q(a-0x77,b);}return this[C(0x211,0x1b9)]()[C(0x288,0x2b5)]>0x0;}*[q(0x245,0x28d)](){function D(a,b){return q(a- -0xed,b);}return this[D(0xad,0x7d)]()[D(0x61,0x56)]();}['getType'](){function E(a,b){return q(b- -0x340,a);}return ProjectType[E(-0x258,-0x1f9)];}get['enableProgressNotifications'](){return this['_enableProgressNotifications'];}set['enableProgressNotifications'](d){function F(a,b){return q(a- -0x2d0,b);}this[F(-0x126,-0xbc)]=d;if(this[F(-0x169,-0x1c6)])this[F(-0x169,-0x1c9)][F(-0xc4,-0x125)]=d;}[q(0x1f5,0x1e2)](){return CycleEffect;}[q(0x149,0x1bb)](){return SchedulerBasicEvent;}[q(0x1d7,0x1be)](){return ChronoEventStoreMixin;}[q(0x234,0x222)](){return BaseDependencyMixin;}[q(0x21c,0x1cc)](){return ChronoDependencyStoreMixin;}[q(0x15a,0x184)](){return BaseResourceMixin;}[q(0x1c2,0x1b8)](){return ChronoResourceStoreMixin;}['getDefaultAssignmentModelClass'](){return BaseAssignmentMixin;}[q(0x1e3,0x24f)](){return ChronoAssignmentStoreMixin;}[q(0x1f9,0x256)](){return BaseCalendarMixin;}[q(0x1be,0x212)](){return ChronoCalendarManagerStoreMixin;}['usingSyncDataOnLoad'](){function G(a,b){return q(a- -0x18d,b);}return[this[G(-0xf,0x50)],this[G(0x8a,0x4f)],this[G(0x12,0x2d)],this['assignmentStore']]['some'](d=>d[G(-0xb,-0x7)]);}async[q(0x1a8,0x1bb)](d){function H(a,b){return q(a- -0x349,b);}const {calendarManagerStore:e,eventStore:f,dependencyStore:g,assignmentStore:h,resourceStore:i,replica:j}=this;this[H(-0x1df,-0x1fe)]?.(d||{});if(!this['isInitialCommitPerformed']){j?.[H(-0x1ec,-0x1f1)]();}else{while(j?.['isCommitting']){await this[H(-0x1cd,-0x15e)]();}}if(j?.[H(-0x13d,-0x150)]&&!this['delayCalculation']){await delay(0x0);await this[H(-0x1cd,-0x1f2)]();j[H(-0x181,-0x156)]({'total':0x0,'remaining':0x0,'phase':H(-0x198,-0x181)});await delay(0x32);}this[H(-0x149,-0x161)]=![];this[H(-0x1a8,-0x216)]=!![];if(globalThis[H(-0x1ba,-0x1bc)]){console[H(-0x1f8,-0x1e9)](H(-0x177,-0x1a6),H(-0x13c,-0xc5));console[H(-0x133,-0x143)](H(-0x1d8,-0x1ad));console[H(-0x133,-0x17a)]('Populating\x20project');}if(this['delayCalculation']&&!this['delayedCalculationPromise']&&!this[H(-0x147,-0x173)]()){this['scheduleDelayedCalculation']();}if(d[H(-0x1b5,-0x1d6)]||d[H(-0x143,-0x163)]){this[H(-0x16a,-0x18e)](e);e[H(-0x201,-0x23a)]=d[H(-0x1b5,-0x1e0)]||d['calendarsData'];}if(d[H(-0x1d4,-0x223)]||d[H(-0x189,-0x1be)]||d[H(-0x11b,-0x11a)]||d[H(-0x18c,-0x1d3)]){this[H(-0x16a,-0x177)](f);f[H(-0x201,-0x19a)]=d[H(-0x1d4,-0x1f3)]||d[H(-0x189,-0x108)]||d[H(-0x11b,-0x105)]||d[H(-0x18c,-0x1eb)];}if(d['dependencies']||d[H(-0x1e4,-0x255)]){this[H(-0x16a,-0x1a6)](g);g[H(-0x201,-0x267)]=d[H(-0x123,-0xb3)]||d[H(-0x1e4,-0x22f)];}if(d[H(-0x142,-0x18b)]||d[H(-0x1e1,-0x25a)]){this[H(-0x16a,-0x1c5)](i);i[H(-0x201,-0x23b)]=d[H(-0x142,-0x109)]||d[H(-0x1e1,-0x224)];}if(d['assignments']||d[H(-0x1a7,-0x129)]){this[H(-0x16a,-0x1e8)](h);h[H(-0x201,-0x248)]=d['assignments']||d[H(-0x1a7,-0x1ad)];}if(d['project']){if(this[H(-0x170,-0x1d2)]&&this[H(-0x14c,-0x177)]){this[H(-0x1b9,-0x20f)]({'recordsUnlinked':()=>{this[I(0x52d,0x526)]();this[I(0x4f9,0x4c9)](d['project']);function I(a,b){return H(a-0x6f5,b);}this[I(0x5c7,0x5fb)]();},'once':!![]});}else{this[H(-0x1fc,-0x1d7)](d['project']);}}if(globalThis[H(-0x1ba,-0x210)])console[H(-0x1a3,-0x1c6)](H(-0x1c9,-0x19a));const k=await this[H(-0x1c6,-0x1f9)]();this[H(-0x1a8,-0x1ea)]=![];return k;}[q(0x1e9,0x223)](){function J(a,b){return q(b-0x38e,a);}const {storage:d}=this['assignmentStore']||{};if(d){d[J(0x5f3,0x5cd)]({'property':J(0x540,0x551),'unique':![]});d[J(0x59b,0x5cd)]({'property':J(0x4e1,0x4f7),'unique':![]});}}[q(0x1c7,0x1ed)](){function K(a,b){return q(b-0x3fd,a);}this[K(0x625,0x5d5)]?.[K(0x5dc,0x634)]?.['invalidateIndices']();}['removeTemporaryIndices'](){const {storage:d}=this[L(0x372,0x3da)];d[L(0x3e5,0x420)](L(0x3af,0x3c5));function L(a,b){return q(b-0x202,a);}d[L(0x484,0x420)](L(0x362,0x36b));}async[q(0x223,0x1b7)](d){const e=this;e[M(-0xc8,-0xef)]=!![];e[M(-0xb8,-0x111)]();function M(a,b){return q(a- -0x2a1,b);}await delay(0x0);if(e[M(-0xcc,-0x13b)]){d();return;}e[M(-0xb5,-0x66)](M(-0xfc,-0x138));e['trigger'](M(-0x87,-0x92),{'isCalculated':![]});await delay(0x0);if(e[M(-0xcc,-0x56)]){d();return;}e[M(-0xc8,-0x13e)]=![];e[M(-0xf1,-0x125)]['forEach'](g=>g[M(-0x88,-0x9c)]());if(e['isRepopulatingStores']){e[M(-0x131,-0xde)][M(-0x14c,-0xeb)]();}else{e['trigger'](M(-0x10c,-0x94));e[M(-0xd0,-0xa3)](!![]);}const f=await e['replica']['commitAsync']();if(e[M(-0xcc,-0x14b)]){d();return;}e[M(-0xf1,-0x105)][M(-0xd1,-0x77)](g=>g['resumeFilterOnUpdate']());d(f);e[M(-0x6e,-0xdd)]=null;e[M(-0xb5,-0xc4)](M(-0x6f,-0xbe));e[M(-0xbf,-0x115)]();}[q(0x1ea,0x1ec)](){function N(a,b){return q(b- -0x18e,a);}if(this['delayedCalculationPromise']){return this[N(0x46,0xa5)];}if(this['delayCalculation']!==![]){return this[N(0x2e,0xa5)]=new Promise(d=>this['internalDelayCalculation'](d)[N(-0x26,0x50)]());}}async[q(0x183,0x120)](){const d=await this[O(0x1ed,0x238)]();function O(a,b){return q(a-0x71,b);}if(!this[O(0x246,0x257)])this[O(0x25d,0x216)]('load');return d;}['initializeStm'](){const d=this[P(0xf5,0x15a)]||_enc;if(!(this[P(0x146,0x15d)]instanceof _enc))this[P(0x152,0x15d)]=d['new']({'disabled':!![]},this[P(0x194,0x15d)]);this[P(0x1c4,0x1ac)](this[P(0xf6,0x15d)]);function P(a,b){return q(b- -0x2e,a);}if(this['resetUndoRedoQueuesAfterLoad']){this['ion']({'load':this['resetStmQueue'],'thisObj':this});}this[P(0x166,0x162)]({'beforeCommit':this[P(0x21a,0x1e1)],'commitFinalized':this['onCommitFinalization'],'commitRejected':this[P(0x1c5,0x197)],'thisObj':this});}[q(0x197,0x1a6)]({transactionResult:d,silenceCommit:e}){const f=new Map();for(const h of d[Q(0x54,0xd3)][Q(-0x22,-0x7b)]()){const i=h[Q(0x88,0xcd)];const {field:j}=i;if(h[Q(0x79,0xe3)]()||!i[IsChronoModelSymbol]||j instanceof ModelBucketField)continue;const k=i[Q(0xb2,0xca)];const l=k[Q(0x73,0xed)];if(l&&!h['previous']&&!d[Q(0x5c,-0x24)][Q(0xae,0xaf)](k['$$'])?.[Q(0xc4,0x136)]){if(!f[Q(0x17,-0x26)](l)){f[Q(0xb9,0xfc)](l,new Set([k]));}else if(!f[Q(0x3c,-0x42)](l)[Q(0x17,-0x4a)](k)){f[Q(0x3c,0x97)](l)[Q(0x81,0xe9)](k);}}}this[Q(0xf,-0x41)]?.();function Q(a,b){return q(a- -0x172,b);}const g=Array['from'](f['keys']())[Q(0x1c,-0x1e)]((m,n)=>m[Q(0x42,0x5e)]-n[Q(0x42,0xaa)]);g[Q(0x5e,0x78)](m=>m['remove'](f['get'](m)));this[Q(0xa9,0xcf)]?.(e);if(e){this['dataStores'][Q(0x5e,0xd2)](m=>m[Q(0xbe,0xf6)]());}}['onCommitRejection'](d){function R(a,b){return q(b- -0x18e,a);}if(this[R(0x56,0x68)]){this[R(-0x5c,-0x27)][R(-0x22,0x41)]++;this['isRestoringData']=!![];this[R(0x1c,0x9)](d);this[R(0x81,0x33)]=![];this['replica']['isWritingPreviousData']--;}else{this[R(0x6d,0x8)]();}}[q(0x20f,0x270)](){const {stm:d}=this;function S(a,b){return q(b- -0x4b,a);}this[S(0x1f3,0x1ab)]=d[S(0x163,0x12e)];if(d[S(0x192,0x132)]&&d[S(0x110,0x170)]){this[S(0xcd,0x12c)]=!![];d[S(0x188,0x170)]=![];}}['onCommitFinalization'](){function T(a,b){return q(b-0x346,a);}if(this[T(0x43d,0x4bd)]){this[T(0x513,0x4d1)][T(0x4b4,0x501)]=!![];this['_stmAutoRecord']=![];}}async['undo'](){function U(a,b){return q(a-0x3d9,b);}await this[U(0x564,0x558)][U(0x5d8,0x644)]();if(this[U(0x52f,0x4ad)]){await this[U(0x5bd,0x59c)](U(0x5ec,0x582),![]);}}async[q(0x176,0x120)](){function V(a,b){return q(b-0x93,a);}await this[V(0x1d3,0x21e)]['redo']();if(this[V(0x1a8,0x1e9)]){await this[V(0x22d,0x277)](V(0x31f,0x2a6),![]);}}['onSTMRestoringStart']({source:d}){function W(a,b){return q(b- -0x2b4,a);}if(this[W(-0x15b,-0x14d)])this[W(-0x17d,-0x14d)][W(-0x6b,-0xe5)]++;}async[q(0x23a,0x1df)](d){if(this[X(-0xe,-0x32)])this[X(-0xe,-0x2b)]['isWritingPreviousData']--;this[X(-0xf,-0x1e)]=!![];d[X(0xc8,0xf5)]();this[X(-0x1f,0x26)]=!![];function X(a,b){return q(a- -0x175,b);}await this[X(0x7,0xa)]();this[X(-0x1f,0xc)]=![];this[X(-0xf,-0x5b)]=![];if(!this[X(0x60,0x6f)]){d[X(-0x23,-0x44)]();this[X(0x77,0xf2)](X(0x9e,0x106));}}async[q(0x23b,0x225)]({source:d}){function Y(a,b){return q(a-0x17a,b);}if(d[Y(0x397,0x36f)]){await this['queue'](()=>this[Y(0x3b4,0x3a4)](d));}else{await this['handleSTMRestoringStop'](d);}}[q(0x239,0x260)](d,e,f){function Z(a,b){return q(a-0x2dd,b);}if(this[Z(0x4d8,0x4bf)]){this[Z(0x490,0x44c)](d);this[Z(0x46d,0x4de)]({'name':d,'repopulateReplica':{'fn':async()=>{function a0(a,b){return Z(a-0xe9,b);}await this['commitAsync']();if(!this[a0(0x59b,0x593)]){e(...f);}},'once':!![]}});}else{e(...f);}}get[q(0x1fb,0x17c)](){function a1(a,b){return q(a-0x142,b);}return Boolean(this[a1(0x343,0x333)]?.[a1(0x295,0x295)]);}[q(0x1df,0x1e5)](d){function a2(a,b){return q(b-0x329,a);}const e=this;if(e['repopulateOnDataset']&&d[a2(0x578,0x533)]&&!d[a2(0x458,0x4ab)]){e[a2(0x439,0x490)]?.[a2(0x48b,0x46c)][a2(0x575,0x565)]();if(!e['repopulateStores'])e['repopulateStores']=new Set();e['repopulateStores'][a2(0x561,0x51c)](d);e[a2(0x512,0x499)]();}}[q(0x170,0x1f0)](){const d=this;function a3(a,b){return q(a-0x376,b);}if(d[a3(0x54f,0x4e3)]){return;}const {dataStores:e,replica:f,calendarManagerStore:g}=d;if(f){d['unlinkStoreRecords'](...e);d[a3(0x54c,0x581)](d);d['unlinkRecord'](d[a3(0x4fc,0x546)]);d[a3(0x562,0x5e2)](a3(0x50b,0x4b1));f[a3(0x4d1,0x478)]();}else{d[a3(0x562,0x50f)]('recordsUnlinked');}const h=d[a3(0x4dd,0x4d0)]=d[a3(0x4d8,0x549)]();h['addEntities']([d,d[a3(0x4fc,0x576)]]);const i=new Map();for(const j of e){i[a3(0x5a1,0x5d6)](j,j[a3(0x52b,0x570)](d,!![]));}if(i[a3(0x524,0x52c)](g)<g[a3(0x580,0x5de)]){d[a3(0x4c2,0x44b)][a3(0x52b,0x5a3)](d,!![]);}if(f){h[a3(0x4b9,0x43e)][a3(0x522,0x4e4)](f['baseRevision']['failedResolutionReferences']);}d['repopulateStores']['clear']();d['trigger'](a3(0x4e6,0x4dd));}[q(0x178,0x198)](){function a4(a,b){return q(a-0x312,b);}if(this[a4(0x482,0x4df)]['isPending']&&!this['isDelayingCalculation']){this[a4(0x482,0x400)]['now']();return this[a4(0x479,0x40e)][a4(0x48e,0x509)]();}return null;}['unlinkRecord'](d){function a5(a,b){return q(b- -0x3a8,a);}d[a5(-0x142,-0x1a4)]();}[q(0x16d,0x121)](...d){function a6(a,b){return q(a-0x17,b);}d[a6(0x1e7,0x1fc)](e=>{function a7(a,b){return a6(a-0xc2,b);}if(!this['repopulateStores'][a7(0x262,0x2e3)](e)||e['syncDataOnLoad']){e[a7(0x248,0x2b6)](f=>{function a8(a,b){return a7(a- -0x369,b);}this[a8(-0xba,-0xbf)](f);},![],![],{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}});}[q(0x214,0x1f9)](){function a9(a,b){return q(a-0x190,b);}return this[a9(0x2f7,0x284)];}async[q(0x17b,0x1cd)](d){this[aa(0xa,-0x20)][aa(0x7f,0x9)](d);function aa(a,b){return q(a- -0x174,b);}return this['commitAsync']();}async[q(0x1e7,0x1d1)](d){this[ab(0x0,-0x6e)][ab(0x75,0x90)](d);function ab(a,b){return q(a- -0x17e,b);}return this[ab(-0x2,0x46)]();}[q(0x244,0x230)](d){function ac(a,b){return q(b-0xda,a);}this[ac(0x1f6,0x258)]['add'](d);}async['removeEvents'](d){this[ad(0xc9,0x63)][ad(0xa6,0xb1)](d);function ad(a,b){return q(b- -0x11b,a);}return this[ad(0x31,0x61)]();}[q(0x227,0x20c)](d){function ae(a,b){return q(b- -0x82,a);}this['eventStore'][ae(0x12e,0x14a)](d);}async['removeEvent'](d){this[af(0x218,0x1ad)][af(0x266,0x231)](d);function af(a,b){return q(a-0x9a,b);}return this[af(0x216,0x1d9)]();}['getStm'](){function ag(a,b){return q(a- -0x1bb,b);}return this[ag(-0x30,0x38)];}[q(0x1da,0x1ff)](d){function ah(a,b){return q(b- -0x81,a);}this[ah(0x114,0x10a)]=d;this[ah(0x111,0x10a)][ah(0xac,0x10f)]({'restoringStart':this[ah(0x18b,0x16d)],'restoringStop':this[ah(0x177,0x1ba)],'thisObj':this});}[q(0x163,0xe1)](){return this;}*['calculateEffectiveDataOrVisualCalendar'](d){let e=yield this['$'][ai(0x269,0x2b8)];if(e){yield e['$'][ai(0x2cd,0x296)];}else{e=this[ai(0x224,0x1ef)];}function ai(a,b){return q(a-0x9e,b);}return e;}[q(0x16c,0x1b8)](d){const e=this[aj(0x148,0x1be)];if(e&&this[aj(0x15c,0x1cb)][aj(0x214,0x1ab)](e)){this[aj(0x220,0x1cb)]['removeStore'](e);e[aj(0x23d,0x231)](this);this[aj(0x250,0x25f)](e);const f=e[aj(0x190,0x1b2)];f[aj(0x194,0x210)](g=>{const h=g[ak(0xbc,0x107)];function ak(a,b){return aj(b,a- -0x147);}if(h){const i=d[ak(0x3b,0x74)](h['id']);if(i){g[ak(0xbc,0x99)]=i;f[ak(0x7d,0xe5)](g);}}});e[aj(0x29d,0x21d)]();}function aj(a,b){return q(b-0x40,a);}if(!d||!(d instanceof _end)){const g=d?.[aj(0x25f,0x268)]||this[aj(0x220,0x1de)];this[aj(0x1cb,0x1be)]=new g(_enf[aj(0x265,0x1f8)]({'modelClass':this['eventModelClass'],'project':this,'stm':this[aj(0x1d3,0x1cb)]},d||{}));}else{this[aj(0x171,0x1be)]=d;d[aj(0x238,0x1e3)](this);this[aj(0x1ba,0x1cb)][aj(0x278,0x22d)](d);if(d[aj(0x1fa,0x1fc)]&&d['rootNode']!==this){this[aj(0x235,0x1ca)](d[aj(0x255,0x23c)][aj(0x1f2,0x1f9)]||[]);d[aj(0x1ea,0x23c)]=this;}else{d[aj(0x179,0x1f5)](this);}}this[aj(0x218,0x1a4)](this[aj(0x1ae,0x1be)]);this[aj(0x1c6,0x22c)](aj(0x202,0x1ff),{'store':this[aj(0x194,0x1be)]});}[q(0x15e,0x148)](d){const e=this[al(0x579,0x55e)];if(e&&this[al(0x4d2,0x54a)]['hasStore'](e)){this[al(0x4df,0x54a)][al(0x626,0x5b3)](e);this['detachStore'](e);}function al(a,b){return q(b-0x3bf,a);}if(!d||!(d instanceof _end)){const f=d?.[al(0x62c,0x5e7)]||this[al(0x52d,0x583)];this[al(0x4fb,0x55e)]=new f(_enf[al(0x5a2,0x577)]({'modelClass':this[al(0x55e,0x516)],'project':this,'stm':this[al(0x515,0x54a)]},d||{}));}else{this[al(0x512,0x55e)]=d;d[al(0x518,0x562)](this);this[al(0x549,0x54a)][al(0x530,0x5ac)](d);d[al(0x52a,0x574)](this);}this[al(0x517,0x523)](this[al(0x4e8,0x55e)]);this[al(0x5b5,0x5ab)](al(0x585,0x5f4),{'store':this['dependencyStore']});}[q(0x16e,0xff)](d){const e=this[am(0xbc,0x80)];function am(a,b){return q(a- -0x15b,b);}if(e&&this['stm'][am(0x10,0x55)](e)){this[am(0x30,0x25)]['removeStore'](e);e[am(0x96,0x8a)](this);this[am(0xc4,0xae)](e);const f=e[am(0x17,0x36)];f[am(0x75,0x8a)](g=>{const h=g[an(0x5c,0x2)];function an(a,b){return am(a-0x4e,b);}if(h){const i=d[an(0x35,0x23)](h['id']);if(i){g[an(0x5c,-0x17)]=i;f[an(0x77,0x5)](g);}}});e[am(0xc7,0xa1)]();}if(!d||!(d instanceof _end)){const g=d?.[am(0xcd,0x97)]||this[am(0x3d,0x71)];this[am(0xbc,0xdd)]=new g(_enf[am(0x5d,0x86)]({'modelClass':this[am(0x36,0x1f)],'project':this,'stm':this['stm']},d||{}));}else{this['resourceStore']=d;d['setProject'](this);this[am(0x30,0x99)][am(0x92,0xf6)](d);d[am(0x5a,0x65)](this);}this['attachStore'](this[am(0xbc,0x94)]);this[am(0x91,0xfb)](am(0xaa,0x97),{'store':this[am(0xbc,0x12c)]});}['setAssignmentStore'](d){const e=this[ao(0x0,-0x19)];if(e&&this['stm'][ao(-0x29,-0x86)](e)){this['stm'][ao(0x7d,0x3)](e);e[ao(-0x6c,0x0)](this);this[ao(0x19,0x2e)](e);}if(!d||!(d instanceof _end)){const f=d?.[ao(-0x2a,0x37)]||this[ao(-0x77,-0x11)];this[ao(0x66,-0x19)]=new f(_enf[ao(0x44,-0x39)]({'modelClass':this['assignmentModelClass'],'project':this,'stm':this[ao(-0xd,-0x66)]},d||{}));}else{this[ao(0x52,-0x19)]=d;d['setProject'](this);this[ao(-0x77,-0x66)]['addStore'](d);d[ao(0x3c,-0x3c)](this);}this[ao(-0xf6,-0x77)]&&this[ao(-0x6a,-0x8)]();this[ao(-0xc6,-0x8d)](this[ao(-0x24,-0x19)]);function ao(a,b){return q(b- -0x1f1,a);}this[ao(-0x2a,-0x5)]('assignmentStoreChange',{'store':this['assignmentStore']});}[q(0x1fe,0x181)](d){const e=this[ap(0x4e8,0x4e9)];if(e&&this[ap(0x527,0x530)][ap(0x507,0x513)](e)){this['stm']['removeStore'](e);this[ap(0x5bb,0x564)](e);}if(!d||!(d instanceof _end)){const f=d?.[ap(0x5c4,0x5a2)]||this[ap(0x54e,0x5bb)];this['calendarManagerStore']=new f(_enf[ap(0x554,0x527)]({'modelClass':this[ap(0x4fc,0x4fc)],'project':this,'stm':this[ap(0x527,0x589)]},d||{}));}else{this[ap(0x4e8,0x55e)]=d;if(d){d[ap(0x53f,0x4c0)](this);this[ap(0x527,0x4a5)][ap(0x589,0x5d1)](d);d[ap(0x551,0x56e)](this);}}this['attachStore'](this[ap(0x4e8,0x48e)]);function ap(a,b){return q(a-0x39c,b);}this[ap(0x588,0x5c8)](ap(0x4e6,0x515),{'store':this[ap(0x4e8,0x4d0)]});}async[q(0x1db,0x180)](...d){return!![];}['rejectStmTransaction'](d){function aq(a,b){return q(b- -0x1fc,a);}d=d||this[aq(-0xb,-0x71)];if(d[aq(-0x7b,-0x2e)]){if(d[aq(-0x25,-0x2e)][aq(-0xcd,-0x9b)]){d[aq(0x1c,-0x58)](e=>e[aq(0x52,0x2d)]());d['rejectTransaction']();d['forEachStore'](e=>e[aq(0x9c,0x25)]());}else{d['stopTransaction']();}}}async[q(0x241,0x2b7)](d){const f=this[ar(-0x172,-0x13c)],g=f[ar(-0x132,-0x14e)],h=f[ar(-0x156,-0x10c)];if(g){f['enable']();}else{if(h){f[ar(-0xd2,-0x10c)]=![];}if(f[ar(-0xd7,-0x14a)]){f[ar(-0xde,-0x11a)]();}}f[ar(-0x33,-0x89)]();function ar(a,b){return q(b- -0x2c7,a);}d();let i=!![];try{const j=await this['commitAsync']();i=!j[ar(-0xa2,-0xd0)];}catch(k){if(!/cycle/i[ar(-0x13b,-0x127)](k))throw k;i=![];}if(i){f[ar(-0x15a,-0x11a)]();if(g){f[ar(-0x138,-0xbc)]();}}else{this[ar(-0x158,-0x160)][ar(-0xd3,-0x148)]();this['rejectStmTransaction'](f);}f[ar(-0x19e,-0x14e)]=g;f[ar(-0xf4,-0x10c)]=h;return i;}async[q(0x199,0x1d7)](d){function as(a,b){return q(a-0x175,b);}return this[as(0x364,0x37e)](()=>this[as(0x3b6,0x3fe)](d));}[q(0x1ef,0x1c4)](d,e){function at(a,b){return q(a- -0x2d6,b);}const f=this;return f[at(-0x192,-0x214)][at(-0xe7,-0x6c)](async function g(){return d();},e);}[q(0x19d,0x149)](){const {replica:d}=this;function au(a,b){return q(b- -0x257,a);}return this['delayEnteringReplica']||!this[au(0x16,-0x5c)]&&(d?!(d['dirty']&&(d[au(-0x78,-0x83)]()||d[au(-0x4e,-0x54)])):!![]);}[q(0x1cd,0x24a)](d){function av(a,b){return q(a-0x253,b);}const e=[];if(this['calendar']===d)e[av(0x398,0x34f)](this);e[av(0x398,0x40e)](...this[av(0x3d1,0x3c7)][av(0x3ee,0x3bf)](f=>f[av(0x41e,0x43c)]===d,!![]));e['push'](...this[av(0x46a,0x427)][av(0x3ee,0x394)](f=>f[av(0x41e,0x449)]===d,!![]));if(d[av(0x40c,0x456)]?.['length']){for(const f of d[av(0x40c,0x423)]){e[av(0x398,0x337)](...this[av(0x420,0x461)](f));}}return e;}[q(0x1af,0x186)](d){function aw(a,b){return q(b- -0x222,a);}const e=this['getCalendarConsumers'](d);for(const f of e){f[aw(-0x82,-0x57)]=null;}}static get['defaultConfig'](){return{'assignmentsData':null,'calendarsData':null,'dependenciesData':null,'eventsData':null,'resourcesData':null,'eventStore':null,'resourceStore':null,'assignmentStore':null,'dependencyStore':null,'calendarManagerStore':null,'eventModelClass':null,'resourceModelClass':null,'assignmentModelClass':null,'dependencyModelClass':null,'calendarModelClass':null,'repopulateOnDataset':!![]};}static get[q(0x1a7,0x1be)](){return{'repopulateReplica':0xa};}}c[q(0x1e8,0x203)]=!![];__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[q(0x240,0x287)],q(0x192,0x1cf),void 0x0);__decorate([model_field({'type':q(0x14f,0x1be),'defaultValue':![]})],c['prototype'],q(0x1f0,0x1f3),void 0x0);__decorate([model_field({'type':q(0x14f,0x1a6),'defaultValue':![]})],c[q(0x240,0x1d4)],'skipNonWorkingTimeInDurationWhenSchedulingManually',void 0x0);function q(a,b){return _enb(a- -0x23,b);}__decorate([model_field({'type':q(0x20e,0x24f),'defaultValue':Direction[q(0x185,0x140)]},{'sync':!![]})],c[q(0x240,0x1e5)],'direction',void 0x0);return c;}){}export{SchedulerBasicProjectMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x134;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function z(a,b){return _enb(a- -0x218,b);}const c=a();while(!![]){try{const d=-parseInt(z(-0xce,-0xcb))/0x1*(parseInt(z(-0xd1,-0xb6))/0x2)+-parseInt(z(-0xba,-0xd8))/0x3*(parseInt(z(-0xb0,-0xb7))/0x4)+-parseInt(z(-0xc9,-0xb2))/0x5+-parseInt(z(-0xe4,-0xc2))/0x6*(-parseInt(z(-0xa5,-0xac))/0x7)+-parseInt(z(-0xaa,-0xcd))/0x8*(parseInt(z(-0xa1,-0xa7))/0x9)+parseInt(z(-0xe3,-0x101))/0xa*(parseInt(z(-0xa9,-0xb4))/0xb)+-parseInt(z(-0xc4,-0xd1))/0xc*(-parseInt(z(-0xdd,-0xbe))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe710b));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CorePartOfProjectModelMixin}from'../mixin/CorePartOfProjectModelMixin.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';class CoreEventMixin extends Mixin([CorePartOfProjectModelMixin],a=>{const b=a[A(-0x134,-0x11d)];class c extends a{constructor(){super(...arguments);function B(a,b){return A(a,b-0x323);}this[B(0x1df,0x1de)]=null;this['_endDate']=null;this[B(0x21c,0x213)]=null;}static get[A(-0x12b,-0x13f)](){function C(a,b){return A(a,b-0x19b);}return[{'name':C(0x2f,0x52),'type':C(0x57,0x59)},{'name':C(0x71,0x81),'type':'date'},{'name':C(0xa7,0x90),'type':C(0x7c,0x93)},{'name':C(0x68,0x76),'type':'durationunit','defaultValue':C(0x45,0x60)}];}get['startDate'](){function D(a,b){return A(a,b-0x2c7);}return this[D(0x180,0x182)]??this['get'](D(0x16c,0x17e))??null;}get[A(-0x106,-0x11a)](){function E(a,b){return A(b,a-0x498);}return this['_endDate']??this[E(0x367,0x361)](E(0x37e,0x363))??null;}get['duration'](){function F(a,b){return A(b,a-0x1cc);}return this[F(0xbc,0xd1)]??this[F(0x9b,0x9b)]('duration')??null;}set['startDate'](d){this['proposeStartDate'](d);}set[A(-0x129,-0x11a)](d){function G(a,b){return A(b,a-0x590);}this[G(0x466,0x449)](d);}set[A(-0x114,-0x10b)](d){function H(a,b){return A(a,b-0x317);}this[H(0x21d,0x200)](d);}[A(-0x119,-0x12b)](d,e,f,g,h){const i=this;function I(a,b){return A(b,a-0x244);}if(i[I(0x124,0x103)]&&!i[I(0x124,0x12b)][I(0x125,0x115)]&&typeof d!=='string'&&!h){if(I(0xfb,0x11a)in d&&!(I(0xfb,0xff)in i[I(0x129,0x148)])){i[I(0x129,0x12d)]['startDate']=!![];i[I(0x11d,0x110)]();}if(I(0x12a,0x13f)in d&&!('endDate'in i[I(0x129,0x123)])){i[I(0x129,0x114)][I(0x12a,0x148)]=!![];i[I(0x11d,0x112)]();}}return b[I(0x119,0xfd)][I(0x10f,0x130)](i,d,e,f,g,h);}[A(-0x11a,-0x10c)](){function J(a,b){return A(a,b- -0x160);}return this[J(-0x2ae,-0x2a9)];}[A(-0x11c,-0x12c)](d,e=!(A(-0x115,-0x11a)in this[A(-0x10c,-0x11b)])){function K(a,b){return A(a,b-0x79);}if(this[K(-0xd5,-0xbd)]||d?.[K(-0x95,-0x9d)]()!==this['startDate']?.[K(-0x84,-0x9d)]()){this['_startDate']=d;this['propose']({'startDate':d,'keepDuration':e});}}async[A(-0x115,-0x114)](d,e=!![]){this[L(-0xc5,-0xe4)](d,e);function L(a,b){return A(b,a-0x67);}return this[L(-0xb9,-0xaf)]?.[L(-0xae,-0x9d)]();}[A(-0xef,-0x10f)](){function M(a,b){return A(b,a-0xe);}return this[M(-0x10c,-0x121)];}['proposeEndDate'](d,e=![]){function N(a,b){return A(a,b-0x406);}if(this[N(0x2f2,0x2d0)]||d?.[N(0x30c,0x2f0)]()!==this[N(0x2f0,0x2ec)]?.[N(0x2f7,0x2f0)]()){this['_endDate']=d;this[N(0x2c9,0x2c2)]({'endDate':d,'keepDuration':e});}}async[A(-0x137,-0x122)](d,e=![]){this[O(0x243,0x239)](d,e);function O(a,b){return A(a,b-0x363);}return this[O(0x23d,0x243)]?.['commitAsync']();}[A(-0x134,-0x128)](){return this['duration'];}['proposeDuration'](d,e,f=!![]){function P(a,b){return A(b,a-0x5e);}this[P(-0xb2,-0xba)]=d;this[P(-0xe6,-0xe2)]({'duration':d,'keepStart':f});if(e)this['propose']({'durationUnit':e});}async[A(-0x156,-0x13c)](d,e,f=!![]){function Q(a,b){return A(a,b-0x252);}this[Q(0x135,0x13b)](d,e,f);return this[Q(0x124,0x132)]?.[Q(0x147,0x13d)]();}[A(-0x139,-0x134)](){return this['durationUnit'];}['joinProject'](){const d=this;const e=d[R(-0xa9,-0xcc)];const f=d['getCurrentOrProposed'](R(-0xd7,-0xdd));function R(a,b){return A(b,a-0x72);}const g=d['getCurrentOrProposed']('endDate');const h=d[R(-0xb2,-0xc7)](R(-0x99,-0xa0));if(f!=null)e[R(-0xd7,-0xec)]=d[R(-0xd3,-0xc6)]=f;if(g!=null)e[R(-0xa8,-0xaf)]=d['_endDate']=g;if(h!=null)e['duration']=d[R(-0x9e,-0xb0)]=h;if(d[R(-0xb7,-0xd3)]&&!d[R(-0xb7,-0x96)][R(-0xbc,-0x9f)]){const i=d[R(-0xaf,-0xa0)]?.[R(-0xb4,-0x9a)]['findItem'](R(-0xd9,-0xca),null);if(i){const j=d[R(-0xaf,-0xa6)]?.[R(-0xb4,-0xb1)][R(-0xac,-0x8a)](R(-0xc1,-0xdb),d['id']);if(j){for(const k of j){k[R(-0x9f,-0x9f)]('event',d);}}else{for(const l of i){if(l['getCurrentOrProposed'](R(-0xd9,-0xd8))===d['id']){l[R(-0x9f,-0xb1)]('event',d);}}}}}b[R(-0xcf,-0xcc)][R(-0xc3,-0xaa)](d);}[A(-0x13e,-0x140)](d,e,f,g,h){function S(a,b){return A(a,b-0x317);}if((this['project']||this[S(0x222,0x20a)]?.[S(0x20b,0x1f7)])&&h){const {name:i}=h;if(i===S(0x1b3,0x1ce)||i==S(0x20a,0x20c)||i==='endDate'){d=!![];this['_'+i]=f;}if(g){d=![];}}b[S(0x1f8,0x1d7)][S(0x1c5,0x1e2)](this,d,e,f,g,h);}['afterChange'](d,e,f,g,h){if(!this[T(0x381,0x393)]&&!h){this[T(0x397,0x383)]({'startDate':this[T(0x3c5,0x3a7)](T(0x39f,0x382)),'endDate':this[T(0x3ab,0x3a7)]('endDate'),'duration':this[T(0x38e,0x3a7)](T(0x3ba,0x3c0)),'durationUnit':this[T(0x3ca,0x3a7)]('durationUnit')});}function T(a,b){return A(a,b-0x4cb);}b[T(0x3b3,0x3af)][T(0x3b5,0x396)](this,d,e,f,g,h);}[A(-0x12b,-0x13d)](){const d=this;const e=d[U(0x59,0x46)];const f=U(0x38,0x18)in e;const g=U(0x68,0x47)in e;const h=U(0x6e,0x56)in e;const {startDate:i,endDate:j,duration:k,keepDuration:l,keepStart:m}=e;let n=null;if(f&&!g&&!h){if(i===null){e[U(0x33,0x47)]=null;}else if(d[U(0x5c,0x49)](U(0x35,0x47))&&i>d[U(0x21,0x3d)](U(0x57,0x47))&&!l){e[U(0x56,0x47)]=i;e['duration']=0x0;}else if(d[U(0x27,0x49)](U(0x46,0x56))&&(l||!d[U(0x61,0x49)]('endDate'))){n=U(0x3a,0x47);}else if(d[U(0x5c,0x49)](U(0x34,0x47))){n=U(0x59,0x56);}}else if(!f&&g&&!h){if(j===null){e[U(0x20,0x18)]=null;}else if(d['hasCurrentOrProposed'](U(0x1f,0x18))&&!l&&j!==!![]&&j<d[U(0x25,0x3d)](U(0x13,0x18))){e[U(0x35,0x18)]=j;e[U(0x57,0x56)]=0x0;}else if(d['hasCurrentOrProposed'](U(0x54,0x56))&&(l||!d[U(0x37,0x49)]('startDate'))){n=U(0x1d,0x18);}else if(d[U(0x60,0x49)](U(0x8,0x18))){n='duration';}}else if(!f&&!g&&h){if(k===null){e['endDate']=null;}else if(d[U(0x4d,0x49)](U(0x22,0x18))&&(m||!d[U(0x5e,0x49)](U(0x50,0x47)))){if(m&&e[U(0x3d,0x56)]<0x0){e[U(0x5b,0x56)]=0x0;}n=U(0x5a,0x47);}else if(d[U(0x61,0x49)](U(0x32,0x47))){n=U(0x30,0x18);}}else if(f&&g&&!h){if(i===null&&j===null){e[U(0x75,0x56)]=null;}else{n='duration';}}else if(f&&!g&&h){n=U(0x39,0x47);}else if(!f&&g&&h&&j){n=U(0x37,0x18);}else if(f&&g&&h){if(k==null){n='duration';}else if(i==null){n='startDate';}else{n=U(0x3a,0x47);}}const o=d['getCurrentOrProposed'](U(0x1,0x18));const p=d[U(0x55,0x3d)](U(0x40,0x47));const q=d['getCurrentOrProposed'](U(0x71,0x56));const r=d[U(0x1c,0x3d)](U(0x4a,0x3c));const s=d[U(0x31,0x1a)]()?.['adjustDurationToDST']??![];switch(n){case U(0x36,0x18):const t=_enc[U(0x50,0x58)](p,-q,r);if(s){const w=p['getTimezoneOffset']()-t[U(0x49,0x28)]();t['setTime'](t[U(0x5b,0x4b)]()-w*0x3c*0x3e8);}e[U(0xe,0x18)]=t;break;case U(0x5e,0x47):const u=_enc[U(0x68,0x58)](o,q,r);if(s){const x=o[U(0x31,0x28)]()-u[U(0xb,0x28)]();u[U(0x16,0x1e)](u['getTime']()-x*0x3c*0x3e8);}e[U(0x51,0x47)]=u;break;case U(0x37,0x56):let v=_enc['diff'](o,p,U(0x15,0x23));if(s){const y=o[U(0x34,0x28)]()-p[U(0x35,0x28)]();v+=y*0x3c*0x3e8;}e[U(0x60,0x56)]=_enc['as'](r,v,'millisecond');break;}if(U(0x30,0x18)in e&&e[U(-0x4,0x18)]!==!![])this[U(-0x6,0x1c)]=e[U(0x26,0x18)];if('endDate'in e&&e[U(0x61,0x47)]!==!![])this[U(0xd,0x17)]=e['endDate'];if(U(0x46,0x56)in e&&e['duration']!==!![])this[U(0x5a,0x51)]=e[U(0x75,0x56)];if(e[U(0x1d,0x18)]===!![])delete e['startDate'];function U(a,b){return A(a,b-0x161);}if(e[U(0x5b,0x47)]===!![])delete e[U(0x5a,0x47)];delete e[U(0x25,0x32)];delete e[U(0x46,0x31)];}}function A(a,b){return _enb(b- -0x281,a);}return c;}){}export{CoreEventMixin};function _ena(){const V=['_endDate','startDate','setData','getProject','871XGOvFR','_startDate','propose','setTime','date','joinProject','applyValue','fields','millisecond','calculateInvalidated','setDuration','day','36052OQylGF','getTimezoneOffset','$isCalculating','24qcnzui','inSetting','call','getDurationUnit','eventId','5020240oQFFKk','get','keepStart','keepDuration','isLoadingData','523764raAMmZ','proposeStartDate','inSet','proposeEndDate','eventStore','getDuration','invalidate','storage','durationUnit','getCurrentOrProposed','17682mKjmgt','setEndDate','assignmentStore','project','isWritingData','findItem','prototype','afterChange','$changed','endDate','436FIdhjW','hasCurrentOrProposed','proposeDuration','getTime','commitAsync','setStartDate','8uCssAi','5891413WEfYmS','setChanged','_duration','getEndDate','1939wJApAm','recurringTimeSpan','getStartDate','duration','16811892WAfLLq','add','number','19452RZHcee','20BlQYgm','event'];_ena=function(){return V;};return _ena();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function q(a,b){return _enb(a- -0x3e7,b);}const c=a();while(!![]){try{const d=parseInt(q(-0x2d7,-0x2db))/0x1*(parseInt(q(-0x2ce,-0x2be))/0x2)+parseInt(q(-0x2b5,-0x2c8))/0x3*(-parseInt(q(-0x2b9,-0x2af))/0x4)+-parseInt(q(-0x2c5,-0x2bf))/0x5*(parseInt(q(-0x298,-0x2bd))/0x6)+parseInt(q(-0x294,-0x271))/0x7*(-parseInt(q(-0x2b4,-0x2d5))/0x8)+-parseInt(q(-0x2ba,-0x2ae))/0x9+-parseInt(q(-0x295,-0x28c))/0xa*(-parseInt(q(-0x293,-0x280))/0xb)+parseInt(q(-0x2c4,-0x2c1))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xbd1ad));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function r(a,b){return _enb(b-0x59,a);}if(typeof Reflect===r(0x174,0x189)&&typeof Reflect[r(0x18e,0x162)]===r(0x17f,0x157))h=Reflect[r(0x181,0x162)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['15264513LWhKEB','buildProposedDispatcher','endOffset','startDate','calculateStartDate','calculateMinPercent','function','startOffset','MasterStartDateVar','calculateEndOffsetByStartOffsetAndDuration','formulaId','skipNonWorkingTimeWhenSchedulingManually','map','assign','length','calculateEndOffset','percentDone','decorate','MasterTotalDurationVar','convertDurationGen','writeStartDate','calculateDuration','calculateStartOffsetByEndOffsetAndDuration','event','198323TolEFw','collectInfo','push','resolution','calculateMaxPercent','startPercentDone','calculateManuallyScheduled','calculateEndOffsetByMasterTotalDurationAndStartOffset','previousSegment','8oYKQBo','new','getStm','afterChange','prototype','stm','addPreviousValueFlag','min','addProposedValueFlag','60qLQlsQ','29619648PCgAwF','shouldRecordFieldChange','duration','durationUnit','calculateEndDate','MasterEndDateVar','baseRevision','equality','segments','isEventSegment','12588795NUvOsv','9092UukwdK','calculateEndDateByMasterStartAndEndOffset','object','modified','573MjcSmH','8fOwSDI','calculateProjectedXDateWithDuration','write','isRestoring','storeFieldChange','skipNonWorkingTime','applyingSyncResponse','StartOffsetVar','calculateDurationByOffsets','nextSegment','get','dispatcher','calculatePercentDone','calculateProjectedDuration','calculateStartDateByMasterStartAndStartOffset','prepareDispatcher','call','cycleResolutionContext','isManuallyScheduled','mix','meta','endPercentDone','toJSON','getProject','MasterDurationVar','calculateStartOffset','hasIdentifier','Millisecond','260034JkUicb','endDate','calculateEndOffsetByMasterDurationAndStartOffset','10BUbpkT','10652180rKGGTI'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol(_ens(0x270,0x24a));const MasterEndDateVar=Symbol(_ens(0x27e,0x272));const MasterDurationVar=Symbol(_ens(0x296,0x295));const MasterTotalDurationVar=Symbol(_ens(0x26f,0x254));const StartOffsetVar=Symbol(_ens(0x27e,0x284));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xf9;let f=c[d];return f;};return _enb(a,b);}const EndOffsetVar=Symbol('EndOffsetVar');const durationByOffsetsFormula=Formula[_ens(0x267,0x264)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x277,0x264)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x27c,0x264)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x238,0x264)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula[_ens(0x258,0x264)]({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x26c,0x264)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x282,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x240,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x292,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});function _ens(a,b){return _enb(b-0x14a,a);}const durationByMasterEndDateFormula=Formula[_ens(0x277,0x264)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x24a,0x264)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x28c,0x264)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier[_ens(0x29d,0x290)](CalculatedValueGen){[_ens(0x29b,0x274)](a,b){function t(a,b){return _ens(b,a- -0x33);}const c=a['resolution'];const d=b[t(0x22a,0x234)];return c[t(0x254,0x22b)](StartDateVar)===d['get'](StartDateVar)&&c[t(0x254,0x25f)](EndDateVar)===d[t(0x254,0x27f)](EndDateVar)&&c[t(0x254,0x243)](DurationVar)===d['get'](DurationVar)&&c[t(0x254,0x273)](MasterStartDateVar)===d[t(0x254,0x22c)](MasterStartDateVar)&&c[t(0x254,0x231)](MasterEndDateVar)===d[t(0x254,0x239)](MasterEndDateVar)&&c[t(0x254,0x280)](MasterDurationVar)===d['get'](MasterDurationVar)&&c[t(0x254,0x240)](MasterTotalDurationVar)===d[t(0x254,0x22c)](MasterTotalDurationVar)&&c[t(0x254,0x270)](StartOffsetVar)===d[t(0x254,0x274)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x254,0x255)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0xec,0xf2)](){return!![];}get['stm'](){function v(a,b){return u(a,b-0x420);}return this[v(0x4ec,0x4f5)]?.[v(0x506,0x504)];}set['stm'](c){}[u(0xe8,0xd2)](c,d,e,f,g=!![]){function w(a,b){return u(b,a-0x290);}const h=this[w(0x365,0x364)];const i=this['getProject']();if(h&&!this[w(0x36e,0x372)]&&d[w(0x37f,0x374)][w(0x3a3,0x37a)](c)&&!(i&&i[w(0x371,0x343)]()[w(0x38c,0x3b5)])){d[w(0x38b,0x3aa)](h['$'][w(0x351,0x37d)],f,g);}else{c['constructor'][w(0x373,0x358)]['write'][w(0x399,0x37e)](this,c,d,e,f,g);if(g&&this[w(0x392,0x3a9)]){const j=this['endOffset']-this['nextSegment']['startOffset'];if(j>0x0){let k=this;while(k=k[w(0x392,0x366)]){d['write'](k['$'][w(0x355,0x35f)],k['startOffset']+j);d[w(0x38b,0x364)](k['$']['endOffset'],k[w(0x350,0x36f)]+j);}}}}}['shouldRecordFieldChange'](c,d,e){function x(a,b){return u(a,b- -0x32d);}return c===x(-0x296,-0x268)||c===x(-0x284,-0x26d)||super[x(-0x248,-0x243)](c,d,e);}*[u(0x10d,0x112)](){function y(a,b){return u(b,a-0x245);}const c=yield this['$'][y(0x349,0x31b)];const d=c['resolution'][y(0x348,0x33e)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula['formulaId']){e=yield*this[y(0x319,0x327)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x30d,0x31d)]){const f=yield ProposedOrPreviousValueOf(this[y(0x31a,0x33a)]['$'][y(0x306,0x330)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x306,0x2fb)]);e=yield*this[y(0x31a,0x2f3)][y(0x34b,0x330)](f,g,TimeUnit[y(0x359,0x337)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){const c=yield this['$'][z(0x64,0x46)];const d=c[z(0x33,0x1b)][z(0x67,0x45)](EndOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function z(a,b){return u(a,b- -0xbe);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(-0x6,0xa)]){e=yield*this[z(0x7,0x9)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x8,0xa)]){const f=yield ProposedOrPreviousValueOf(this[z(-0x4,0x17)]['$'][z(-0x11,0x3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x5e,0x58)]);e=yield*this[z(0x43,0x17)]['calculateProjectedDuration'](f,g,TimeUnit[z(0x29,0x56)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(-0x16,0xa)]){e=yield*this[z(0x6f,0x59)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(-0x8,0xa)]){e=yield*this['calculateEndOffsetByMasterTotalDurationAndStartOffset']();}return e;}*['calculateStartDate'](){function A(a,b){return u(b,a- -0x38e);}const c=yield this['$'][A(-0x28a,-0x277)];const d=c[A(-0x2b5,-0x28d)][A(-0x28b,-0x2ae)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x2c6,-0x2f4)]){e=yield*this[A(-0x287,-0x287)]();}else{e=yield*super[A(-0x2cc,-0x2aa)]();}return e;}*['calculateEndDate'](){function B(a,b){return u(b,a-0xfc);}const c=yield this['$'][B(0x200,0x216)];const d=c[B(0x1d5,0x1e1)][B(0x1ff,0x216)](EndDateVar);if(!this[B(0x1d1,0x1cb)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula['formulaId']){e=yield*this[B(0x1f1,0x212)]();}else{e=yield*super[B(0x1e9,0x1f7)]();}return e;}*[u(0xd6,0xd3)](){const c=yield this['$'][C(0x48f,0x49f)];const d=c[C(0x464,0x482)][C(0x48e,0x497)](DurationVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(0x453,0x43f)]){e=yield*this['calculateDurationByOffsets']();}else if(d===durationByMasterEndDateFormula[C(0x453,0x478)]){e=yield*this[C(0x48c,0x471)]();}else{e=yield*super[C(0x45e,0x435)]();}function C(a,b){return u(b,a-0x38b);}return e;}[u(0x97,0xbf)](c,d,e){const f=super['buildProposedDispatcher'](c,d,e);f[D(-0xfc,-0xf7)](MasterStartDateVar);f[D(-0x11f,-0xf7)](StartOffsetVar);function D(a,b){return u(a,b- -0x1dc);}f['addPreviousValueFlag'](EndOffsetVar);return f;}*[u(0xea,0x108)](c){const d=yield*super[E(0x367,0x37c)](c);if(!this[E(0x334,0x34e)]){return d;}if(c(PreviousValueOf(this[E(0x334,0x359)]['$'][E(0x320,0x305)]))!=null)d['addPreviousValueFlag'](MasterStartDateVar);function E(a,b){return u(b,a-0x25f);}if(c(HasProposedValue(this[E(0x334,0x341)]['$'][E(0x320,0x2f9)])))d['addProposedValueFlag'](MasterStartDateVar);if(!c(HasProposedValue(this[E(0x334,0x347)]['$'][E(0x350,0x36e)]))){d[E(0x336,0x30f)](c,this[E(0x334,0x352)]['$'][E(0x34a,0x33e)],MasterDurationVar);if(c(HasProposedValue(this['event']['$'][E(0x375,0x353)]))){const f=c(ProposedArgumentsOf(this['event']['$'][E(0x375,0x34b)]));if(!f?.[0x0]){d[E(0x346,0x355)](MasterEndDateVar);}}const e=c(this[E(0x334,0x355)]['$']['dispatcher']);if(e[E(0x338,0x332)][E(0x362,0x353)](StartDateVar)===CalculateProposed&&e[E(0x338,0x31d)]['get'](EndDateVar)===CalculateProposed){d[E(0x346,0x31f)](MasterTotalDurationVar);}}d[E(0x336,0x34a)](c,this['$'][E(0x324,0x321)],StartOffsetVar);d[E(0x336,0x32a)](c,this['$'][E(0x31f,0x30f)],EndOffsetVar);return d;}[u(0x114,0x10a)](c){return segmentCycleResolution;}*[u(0x13b,0x117)](){const c=yield ProposedOrPreviousValueOf(this[F(0x33c,0x31f)]['$'][F(0x33d,0x335)]);const d=yield this['event']['$'][F(0x32d,0x336)];const e=yield this['$']['startOffset'];const f=this[F(0x33b,0x34c)];let g;let h=yield*this[F(0x342,0x31b)](c,d,TimeUnit[F(0x37c,0x35e)]);const j=[];function F(a,b){return u(a,b-0x24a);}let k=this;while(k=k[F(0x2fc,0x328)]){j[F(0x343,0x322)](k);}for(let l=j[F(0x32d,0x316)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(0x32f,0x30f)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(0x336,0x30a)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(0x33a,0x330)](h,(yield ProposedOrPreviousValueOf(this['$']['endOffset']))-e);}}else{g=e;}return g;}*[u(0xf4,0xdd)](){function G(a,b){return u(a,b- -0x31e);}const c=yield ProposedOrPreviousValueOf(this[G(-0x272,-0x249)]['$'][G(-0x24e,-0x25d)]);const d=yield ProposedOrPreviousValueOf(this['event']['$'][G(-0x216,-0x208)]);const e=yield*this['event'][G(-0x236,-0x218)](c,d,TimeUnit[G(-0x233,-0x20a)],{'ignoreSegments':!![]});const f=yield ProposedOrPreviousValueOf(this['$'][G(-0x257,-0x259)]);let g=yield ProposedOrPreviousValueOf(this['$']['endOffset']);let h=this[G(-0x1ff,-0x21c)];if(f<=e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(-0x27a,-0x259)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(-0x233,-0x259)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$'][H(0x402,0x405)];function H(a,b){return u(a,b-0x31a);}const d=yield this['$']['durationUnit'];const e=yield this['$']['endOffset'];return e-(yield*this['event'][H(0x401,0x3eb)](c,d,TimeUnit[H(0x420,0x42e)]));}*[u(0xa4,0xc7)](){const c=yield this['$'][I(-0x76,-0x4e)];function I(a,b){return u(a,b- -0x139);}const d=yield this['$'][I(-0x41,-0x4d)];const e=yield this['$'][I(-0x95,-0x74)];return e+(yield*this[I(-0x78,-0x64)][I(-0x40,-0x68)](c,d,TimeUnit[I(-0x37,-0x25)]));}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0xa0);}const c=yield this['event']['$'][J(0xa,0x21)];const d=yield this['$'][J(0x9,0x20)];const e=yield*this[J(0x24,0x35)]['calculateProjectedXDateWithDuration'](c,!![],d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this[J(0x56,0x70)]()[J(0x2e,0x29)]?e:yield*this[J(0x5e,0x35)][J(0x54,0x5e)](e,![]);}*[u(0x10b,0x107)](){const c=yield this[K(0x174,0x188)]['$'][K(0x160,0x16a)];const d=yield this['$'][K(0x164,0x157)];function K(a,b){return u(b,a-0x9f);}const e=yield*this[K(0x174,0x191)][K(0x199,0x185)](c,!![],d,TimeUnit[K(0x1b3,0x1b3)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()[K(0x168,0x173)]?e:yield*this[K(0x174,0x150)][K(0x19d,0x1a3)](e);}*['calculateDurationByOffsets'](){const c=yield this['$'][L(0x16e,0x198)];const d=yield this['$']['endOffset'];function L(a,b){return u(a,b-0xd3);}const e=yield this['$'][L(0x1cb,0x1bf)];return yield*this['convertDurationGen'](d-c,TimeUnit[L(0x1d2,0x1e7)],e);}*[u(0x10c,0x105)](){let c=0x0;if(!this[M(0x2ff,0x2f3)]){return yield ProposedOrPrevious;}const d=yield this[M(0x30d,0x2f3)]['$'][M(0x303,0x30f)];if(d){const e=yield this['event']['$'][M(0x2ed,0x2ec)];const f=yield this['event']['$'][M(0x2e3,0x309)];const g=yield this[M(0x2d6,0x2f3)]['$'][M(0x334,0x30a)];let h=yield*this[M(0x306,0x2ef)](f,g,TimeUnit[M(0x34c,0x332)]);let i=e*0.01*h;for(const j of d){const k=j[M(0x2b5,0x2e3)];const l=j[M(0x2fb,0x2de)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}function M(a,b){return u(a,b-0x21e);}return c;}*[u(0xd5,0xc3)](){const c=this[N(-0x20a,-0x1ed)];function N(a,b){return u(b,a- -0x2e8);}if(!this['event']){return yield ProposedOrPrevious;}if(c){return yield c['$'][N(-0x1da,-0x1f0)];}return 0x0;}*[u(0xd9,0xda)](){if(!this[O(0xde,0xc2)]){return yield ProposedOrPrevious;}const c=yield this[O(0xde,0xe3)]['$']['duration'];const d=yield this[O(0xde,0xf0)]['$'][O(0xf5,0xc7)];let e=yield*this[O(0xda,0xce)](c,d,TimeUnit[O(0x11d,0x10a)]);function O(a,b){return u(b,a-0x9);}const f=yield this['$'][O(0xce,0xb6)];const g=yield this['$'][O(0xc9,0xd8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x11e,0xfa)](c,d,e,f){function P(a,b){return u(b,a-0x326);}if(!f)f=yield this['$'][P(0x412,0x412)];return yield*this[P(0x3fb,0x3fb)][P(0x420,0x401)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x100,0x106)](c,d,e,...f){function Q(a,b){return u(a,b-0x37);}if(!e)e=yield this['$']['durationUnit'];return yield*this[Q(0x136,0x10c)][Q(0x15c,0x13d)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0xbb,0xdc)](){function R(a,b){return u(a,b- -0x25d);}if(this[R(-0x16e,-0x188)]){return yield*this[R(-0x16d,-0x188)][R(-0x176,-0x152)]();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super[S(-0x11a,-0x123)](c,d,e,f,g);const h=this[S(-0x147,-0x130)];function S(a,b){return u(a,b- -0x205);}if(d&&h){if(!(S(-0xf9,-0x114)in h[S(-0xf2,-0xf8)][S(-0x106,-0x10e)])&&h[S(-0x13d,-0x114)]){const l=h[S(-0x130,-0x114)][S(-0x136,-0x13b)](m=>Object[S(-0x165,-0x13a)](m['toJSON'](),m[S(-0xf2,-0xf8)][S(-0xf2,-0x10e)]));h[S(-0xdd,-0x108)](S(-0x136,-0x114),l);}const i=h[S(-0xdf,-0xf5)]();const j=i?.[S(-0xfd,-0x106)];if(i)i['applyingSyncResponse']=!![];const k=h[S(-0x12d,-0x114)]?.['map'](m=>m[S(-0x10f,-0xf6)]());h[S(-0x12e,-0x123)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(-0x125,-0x106)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0xdc,0xe3)],u(0x130,0x104),void 0x0);__decorate([model_field({'persist':![]})],b['prototype'],u(0xba,0xc5),void 0x0);__decorate([model_field({'persist':![]})],b[u(0xc8,0xe3)],u(0xcb,0xc0),void 0x0);__decorate([field()],b[u(0x104,0xe3)],'percentDone',void 0x0);__decorate([field()],b['prototype'],u(0xba,0xdb),void 0x0);__decorate([field()],b[u(0x10a,0xe3)],u(0x123,0x10e),void 0x0);function u(a,b){return _ens(a,b- -0x184);}__decorate([write('startDate')],b[u(0xfd,0xe3)],u(0xa4,0xd2),null);__decorate([calculate(u(0xa5,0xc5))],b['prototype'],u(0x11f,0x112),null);__decorate([calculate(u(0xd4,0xc0))],b['prototype'],u(0xf7,0xcd),null);__decorate([calculate(u(0xb3,0xce))],b['prototype'],u(0xff,0x105),null);__decorate([calculate('startPercentDone')],b[u(0xc6,0xe3)],'calculateMinPercent',null);__decorate([calculate('endPercentDone')],b[u(0xde,0xe3)],u(0xdd,0xda),null);__decorate([calculate('manuallyScheduled')],b[u(0xcc,0xe3)],'calculateManuallyScheduled',null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
1
|
+
(function(a,b){function q(a,b){return _enb(b-0x33,a);}const c=a();while(!![]){try{const d=parseInt(q(0x23a,0x23d))/0x1+-parseInt(q(0x235,0x234))/0x2*(-parseInt(q(0x1ed,0x20e))/0x3)+-parseInt(q(0x278,0x253))/0x4*(-parseInt(q(0x251,0x256))/0x5)+parseInt(q(0x1fa,0x21c))/0x6+-parseInt(q(0x212,0x200))/0x7+parseInt(q(0x223,0x24c))/0x8*(parseInt(q(0x253,0x22e))/0x9)+-parseInt(q(0x228,0x23a))/0xa*(parseInt(q(0x22b,0x23c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3fd8e));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===r(0x3f,0x17)&&typeof Reflect[r(-0x1c,0x4)]===r(-0x9,-0x1f))h=Reflect[r(-0x1,0x4)](a,b,e,f);else for(var k=a[r(0x4f,0x25)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function r(a,b){return _enb(b- -0x1fc,a);}return g>0x3&&h&&Object[r(-0x24,-0x18)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _ens(a,b){return _enb(b-0x3b7,a);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['35giqZhJ','StartOffsetVar','calculateStartDate','isEventSegment','equality','1484924JstxcQ','map','shouldRecordFieldChange','Millisecond','prepareDispatcher','calculateDurationByOffsets','calculateManuallyScheduled','calculateProjectedXDateWithDuration','calculateEndOffsetByMasterDurationAndStartOffset','afterChange','MasterDurationVar','calculateMaxPercent','buildProposedDispatcher','prototype','74388XImHKG','calculateEndOffsetByStartOffsetAndDuration','function','collectInfo','toJSON','percentDone','duration','calculateEndOffsetByMasterTotalDurationAndStartOffset','startDate','defineProperty','getProject','addProposedValueFlag','new','durationUnit','124704Szhcva','constructor','skipNonWorkingTimeWhenSchedulingManually','manuallyScheduled','convertDurationGen','calculateStartDateByMasterStartAndStartOffset','assign','calculatePercentDone','previousSegment','EndOffsetVar','calculateProjectedDuration','endOffset','write','MasterTotalDurationVar','dispatcher','addPreviousValueFlag','resolution','calculateEndDate','846657qqgFDg','baseRevision','startOffset','segments','calculateDuration','decorate','22KmzwFv','nextSegment','MasterEndDateVar','endDate','isManuallyScheduled','startPercentDone','2011190Mqabxf','storeFieldChange','22TqyldN','233258gCWlam','push','getStm','meta','call','formulaId','event','calculateEndOffset','durationInMS','object','min','cycleResolutionContext','applyingSyncResponse','stm','modified','8rbLkdt','isRestoring','calculateStartOffset','calculateEndDateByMasterStartAndEndOffset','calculateStartOffsetByEndOffsetAndDuration','get','writeStartDate','145724lzGFOz','length','calculateMinPercent'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol('MasterStartDateVar');function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ca;let f=c[d];return f;};return _enb(a,b);}const MasterEndDateVar=Symbol(_ens(0x59e,0x5ba));const MasterDurationVar=Symbol(_ens(0x5a1,0x58e));const MasterTotalDurationVar=Symbol(_ens(0x5bc,0x5ad));const StartOffsetVar=Symbol(_ens(0x5e7,0x5db));const EndOffsetVar=Symbol(_ens(0x588,0x5a9));const durationByOffsetsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x573,0x59e)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x5ca,0x59e)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x5b5,0x59e)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula['new']({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x574,0x59e)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x570,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x5c8,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x5b6,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});const durationByMasterEndDateFormula=Formula[_ens(0x59b,0x59e)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x59c,0x59e)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x58d,0x59e)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier['mix'](CalculatedValueGen){[_ens(0x5a2,0x583)](a,b){const c=a[t(0x224,0x226)];const d=b[t(0x224,0x22e)];function t(a,b){return _ens(b,a- -0x38c);}return c['get'](StartDateVar)===d[t(0x249,0x25b)](StartDateVar)&&c[t(0x249,0x227)](EndDateVar)===d[t(0x249,0x26a)](EndDateVar)&&c[t(0x249,0x256)](DurationVar)===d['get'](DurationVar)&&c[t(0x249,0x250)](MasterStartDateVar)===d[t(0x249,0x25e)](MasterStartDateVar)&&c[t(0x249,0x26d)](MasterEndDateVar)===d['get'](MasterEndDateVar)&&c[t(0x249,0x26f)](MasterDurationVar)===d[t(0x249,0x25c)](MasterDurationVar)&&c[t(0x249,0x26f)](MasterTotalDurationVar)===d['get'](MasterTotalDurationVar)&&c[t(0x249,0x232)](StartOffsetVar)===d[t(0x249,0x21b)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x249,0x21e)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0x28f,0x27a)](){return!![];}get[u(0x2e1,0x2c6)](){function v(a,b){return u(a,b- -0x1af);}return this[v(0xef,0x110)]?.[v(0xec,0x117)];}set[u(0x29a,0x2c6)](c){}['writeStartDate'](c,d,e,f,g=!![]){const h=this[w(0x21,0x2a)];const i=this[w(-0xa,-0x24)]();function w(a,b){return u(b,a- -0x29e);}if(h&&!this['previousSegment']&&d[w(0xd,0x14)]['hasIdentifier'](c)&&!(i&&i[w(0x1d,0x45)]()[w(0x2b,0x9)])){d[w(0x6,0x12)](h['$'][w(-0xc,-0xe)],f,g);}else{c[w(-0x5,0xf)][w(-0x15,0x12)][w(0x6,0x30)][w(0x1f,0x37)](this,c,d,e,f,g);if(g&&this[w(0x13,0x11)]){const j=this[w(0x5,-0x19)]-this[w(0x13,-0x18)][w(0xe,0x26)];if(j>0x0){let k=this;while(k=k['nextSegment']){d['write'](k['$'][w(0xe,0xa)],k[w(0xe,-0x13)]+j);d[w(0x6,-0x13)](k['$']['endOffset'],k[w(0x5,-0x7)]+j);}}}}}[u(0x281,0x27e)](c,d,e){function x(a,b){return u(b,a- -0x33f);}return c===x(-0x93,-0x99)||c==='endOffset'||super['shouldRecordFieldChange'](c,d,e);}*[u(0x2f7,0x2ca)](){const c=yield this['$'][y(0x152,0x136)];const d=c[y(0x10a,0x138)][y(0x148,0x15d)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function y(a,b){return u(a,b- -0x170);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula[y(0x177,0x14e)]){e=yield*this[y(0x187,0x15c)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x16b,0x14e)]){const f=yield ProposedOrPreviousValueOf(this[y(0x128,0x14f)]['$'][y(0x129,0x122)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x102,0x122)]);e=yield*this[y(0x179,0x14f)]['calculateProjectedDuration'](f,g,TimeUnit[y(0xfd,0x10f)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){function z(a,b){return u(a,b- -0xaf);}const c=yield this['$'][z(0x1d4,0x1f7)];const d=c[z(0x204,0x1f9)][z(0x204,0x21e)](EndOffsetVar);if(!this[z(0x200,0x210)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(0x1fa,0x20f)]){e=yield*this[z(0x1bc,0x1dc)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x236,0x20f)]){const f=yield ProposedOrPreviousValueOf(this[z(0x220,0x210)]['$'][z(0x1e1,0x1e3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x22b,0x204)]);e=yield*this[z(0x1fd,0x210)][z(0x1dd,0x1f3)](f,g,TimeUnit[z(0x1e0,0x1d0)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(0x1f7,0x20f)]){e=yield*this[z(0x1ca,0x1d5)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(0x213,0x20f)]){e=yield*this[z(0x1c6,0x1e2)]();}return e;}*[u(0x25c,0x279)](){const c=yield this['$'][A(-0x15,-0x36)];const d=c['resolution'][A(-0xe,-0xf)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}function A(a,b){return u(a,b- -0x2dc);}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x33,-0x1e)]){e=yield*this[A(-0x4a,-0x3f)]();}else{e=yield*super['calculateStartDate']();}return e;}*[u(0x2c5,0x2a9)](){const c=yield this['$'][B(0x3a4,0x394)];const d=c[B(0x3a6,0x396)][B(0x3b2,0x3bb)](EndDateVar);if(!this[B(0x39f,0x3ad)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula[B(0x3cf,0x3ac)]){e=yield*this[B(0x3e7,0x3b9)]();}else{e=yield*super[B(0x39c,0x397)]();}function B(a,b){return u(a,b-0xee);}return e;}*[u(0x29c,0x2ae)](){const c=yield this['$'][C(-0xa6,-0xb4)];const d=c['resolution'][C(-0x77,-0x8d)](DurationVar);if(!this[C(-0x95,-0x9b)]){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(-0x85,-0x9c)]){e=yield*this[C(-0xcb,-0xd9)]();}else if(d===durationByMasterEndDateFormula[C(-0xbd,-0x9c)]){e=yield*this['calculateDurationByOffsets']();}else{e=yield*super[C(-0xb0,-0xac)]();}function C(a,b){return u(a,b- -0x35a);}return e;}[u(0x277,0x288)](c,d,e){const f=super[D(0x4d8,0x4e4)](c,d,e);f[D(0x4f7,0x4cd)](MasterStartDateVar);function D(a,b){return u(b,a-0x250);}f['addPreviousValueFlag'](StartOffsetVar);f[D(0x4f7,0x4ca)](EndOffsetVar);return f;}*[u(0x270,0x280)](c){const d=yield*super['prepareDispatcher'](c);if(!this[E(0x4d4,0x4b7)]){return d;}function E(a,b){return u(b,a-0x215);}const e=this['event']['$'];if(c(PreviousValueOf(e[E(0x4a7,0x47e)]))!=null)d[E(0x4bc,0x4e4)](MasterStartDateVar);if(c(HasProposedValue(e[E(0x4a7,0x47b)])))d[E(0x4aa,0x4c7)](MasterStartDateVar);if(!c(HasProposedValue(e[E(0x4c2,0x498)]))){d[E(0x4a2,0x47d)](c,e[E(0x4a5,0x4a5)],MasterDurationVar);if(c(HasProposedValue(e['endDate']))){const g=c(ProposedArgumentsOf(e[E(0x4c8,0x4c8)]));if(!g?.[0x0]){d[E(0x4aa,0x485)](MasterEndDateVar);}}const f=c(e[E(0x4bb,0x499)]);if(f['resolution'][E(0x4e2,0x4fa)](StartDateVar)===CalculateProposed&&f[E(0x4bd,0x4bf)][E(0x4e2,0x4bd)](EndDateVar)===CalculateProposed){d['addProposedValueFlag'](MasterTotalDurationVar);}}d['collectInfo'](c,this['$'][E(0x4c1,0x4d1)],StartOffsetVar);d['collectInfo'](c,this['$'][E(0x4b8,0x4c4)],EndOffsetVar);return d;}[u(0x2a3,0x2c4)](c){return segmentCycleResolution;}*[u(0x291,0x284)](){const c=yield ProposedOrPreviousValueOf(this[F(-0x17,-0x16)]['$']['duration']);const d=yield this[F(-0x17,-0x22)]['$'][F(-0x3f,-0x35)];function F(a,b){return u(b,a- -0x2d6);}const e=yield this['$']['startOffset'];const f=this[F(-0x25,-0x11)];let g;let h=yield*this[F(-0x3a,-0x10)](c,d,TimeUnit['Millisecond']);const j=[];let k=this;while(k=k[F(-0x36,-0x22)]){j[F(-0x1c,-0x34)](k);}for(let l=j[F(-0x6,-0x26)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(-0x2a,-0x7)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(-0x33,-0x2b)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(-0x13,-0x29)](h,(yield ProposedOrPreviousValueOf(this['$'][F(-0x33,-0x2a)]))-e);}}else{g=e;}return g;}*[u(0x277,0x291)](){const c=yield ProposedOrPreviousValueOf(this['event']['$'][G(0xc0,0xa8)]);const d=yield ProposedOrPreviousValueOf(this[G(0xc6,0xd5)]['$'][G(0xf6,0xc9)]);const e=yield*this['event'][G(0xd6,0xb8)](c,d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});function G(a,b){return u(a,b- -0x1ea);}const f=yield ProposedOrPreviousValueOf(this['$'][G(0xb1,0xc2)]);let g=yield ProposedOrPreviousValueOf(this['$'][G(0xd8,0xb9)]);let h=this[G(0xa7,0xc7)];if(f<e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(0xc3,0xc2)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(0xdf,0xc2)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$']['durationInMS'];function H(a,b){return u(b,a- -0x2c2);}const d=yield this['$'][H(-0x1f,-0x7)];return d-c;}*[u(0x292,0x28b)](){function I(a,b){return u(b,a-0x219);}const c=yield this['$'][I(0x4da,0x4e1)];const d=yield this['$'][I(0x4c5,0x4d6)];return d+c;}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0x288);}const c=yield this[J(0xc,0x37)]['$'][J(0x11,0xa)];const d=yield this['$'][J(0x16,0x1b)];const e=yield*this[J(0x23,0x37)][J(0x4,-0x5)](c,!![],d,TimeUnit[J(-0x25,-0x9)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()['skipNonWorkingTimeWhenSchedulingManually']?e:yield*this[J(0x20,0x37)]['skipNonWorkingTime'](e,![]);}*['calculateStartDateByMasterStartAndStartOffset'](){function K(a,b){return u(a,b-0xf0);}const c=yield this['event']['$'][K(0x39d,0x382)];const d=yield this['$']['startOffset'];const e=yield*this['event'][K(0x388,0x373)](c,!![],d,TimeUnit[K(0x35e,0x36f)],{'ignoreSegments':!![]});const f=yield*this[K(0x3be,0x3a4)]();return f&&!this['getProject']()[K(0x384,0x38a)]?e:yield*this['event']['skipNonWorkingTime'](e);}*['calculateDurationInMS'](){const c=yield ProposedOrPrevious;if(!this['event']){return c;}const d=yield this['$'][L(0x3ef,0x3e3)],e=d[L(0x3f1,0x3dc)][L(0x416,0x424)](DurationVar);if(e===CalculateProposed){if((yield HasProposedValue(this['$'][L(0x3d9,0x3b1)]))||(yield HasProposedValue(this['$'][L(0x3e0,0x3f1)]))||c===void 0x0){const f=yield this['$'][L(0x3e0,0x3dd)],g=yield this['$'][L(0x3d9,0x3d6)];return yield*this[L(0x408,0x3f2)][L(0x3e5,0x3f5)](g,f,TimeUnit['Millisecond']);}else{return c;}}function L(a,b){return u(b,a-0x149);}return(yield this['$']['endOffset'])-(yield this['$'][L(0x3f5,0x3fe)]);}*[u(0x282,0x281)](){const c=yield this['$'][M(0x33,0x4f)];function M(a,b){return u(a,b- -0x248);}const d=yield this['$']['durationInMS'];return yield*this[M(0x63,0x54)](d,TimeUnit['Millisecond'],c);}*[u(0x2b1,0x29f)](){let c=0x0;function N(a,b){return u(b,a-0x83);}if(!this[N(0x342,0x31f)]){return yield ProposedOrPrevious;}const d=yield this[N(0x342,0x33d)]['$']['segments'];if(d){const e=yield this[N(0x342,0x36a)]['$'][N(0x312,0x306)];const f=yield this[N(0x342,0x326)]['$']['duration'];const g=yield this[N(0x342,0x367)]['$']['durationUnit'];let h=yield*this[N(0x31f,0x2f5)](f,g,TimeUnit[N(0x302,0x318)]);let i=e*0.01*h;for(const j of d){const k=j[N(0x32f,0x351)];const l=j[N(0x326,0x2fc)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}return c;}*[u(0x2ea,0x2d1)](){const c=this[O(0x7f,0x94)];function O(a,b){return u(a,b- -0x20c);}if(!this[O(0xca,0xb3)]){return yield ProposedOrPrevious;}if(c){return yield c['$']['endPercentDone'];}return 0x0;}*[u(0x28f,0x287)](){if(!this['event']){return yield ProposedOrPrevious;}const c=yield this[P(0x4fd,0x4d7)]['$'][P(0x4ce,0x4c6)];function P(a,b){return u(b,a-0x23e);}const d=yield this[P(0x4fd,0x500)]['$'][P(0x4d5,0x4a9)];let e=yield*this['convertDurationGen'](c,d,TimeUnit[P(0x4bd,0x4e7)]);const f=yield this['$'][P(0x4ea,0x4cd)];const g=yield this['$'][P(0x4e1,0x4c8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x280,0x283)](c,d,e,f){function Q(a,b){return u(a,b- -0x370);}if(!f)f=yield this['$'][Q(-0xdd,-0xd9)];return yield*this[Q(-0xcb,-0xb1)][Q(-0xf6,-0xed)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x2b0,0x2a2)](c,d,e,...f){function R(a,b){return u(b,a- -0x1e1);}if(!e)e=yield this['$'][R(0xb6,0xbc)];return yield*this['event'][R(0xc1,0xb4)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0x294,0x282)](){if(this['event']){return yield*this['event']['isManuallyScheduled']();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super['afterChange'](c,d,e,f,g);const h=this['event'];function S(a,b){return u(b,a- -0x230);}if(d&&h){if(!(S(0x7d,0x54)in h[S(0x8c,0x5f)][S(0x97,0x9e)])&&h[S(0x7d,0x7b)]){const l=h[S(0x7d,0xa0)][S(0x4d,0x3b)](m=>Object[S(0x6e,0x43)](m[S(0x5e,0x62)](),m[S(0x8c,0x92)][S(0x97,0x9a)]));h[S(0x87,0x61)](S(0x7d,0x86),l);}const i=h[S(0x64,0x79)]();const j=i?.[S(0x95,0x80)];if(i)i[S(0x95,0xc3)]=!![];const k=h[S(0x7d,0x7b)]?.[S(0x4d,0x5a)](m=>m[S(0x5e,0x64)]());h[S(0x55,0x2e)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(0x95,0xc2)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0x263,0x289)],u(0x2bd,0x2a6),void 0x0);__decorate([model_field({'persist':![]})],b[u(0x280,0x289)],'startOffset',void 0x0);__decorate([model_field({'persist':![]})],b[u(0x2b1,0x289)],'endOffset',void 0x0);__decorate([field()],b[u(0x2a8,0x289)],u(0x27b,0x28f),void 0x0);__decorate([field()],b[u(0x264,0x289)],u(0x28f,0x2b5),void 0x0);__decorate([field()],b[u(0x2b0,0x289)],'endPercentDone',void 0x0);__decorate([field()],b['prototype'],u(0x2c2,0x2c1),void 0x0);__decorate([write(u(0x28e,0x292))],b[u(0x267,0x289)],u(0x2ab,0x2ce),null);__decorate([calculate(u(0x298,0x2ac))],b[u(0x295,0x289)],'calculateStartOffset',null);__decorate([calculate('endOffset')],b[u(0x29e,0x289)],u(0x2d7,0x2c0),null);__decorate([calculate(u(0x2e9,0x2c1))],b[u(0x26e,0x289)],'calculateDurationInMS',null);__decorate([calculate('percentDone')],b['prototype'],u(0x2a7,0x29f),null);function u(a,b){return _ens(a,b- -0x308);}__decorate([calculate(u(0x2a9,0x2b5))],b[u(0x2af,0x289)],u(0x2de,0x2d1),null);__decorate([calculate('endPercentDone')],b[u(0x2b3,0x289)],u(0x27d,0x287),null);__decorate([calculate(u(0x2b0,0x29b))],b[u(0x294,0x289)],u(0x296,0x282),null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function U(a,b){return _enb(a-0x130,b);}while(!![]){try{const d=-parseInt(U(0x28e,0x2ca))/0x1*(parseInt(U(0x228,0x261))/0x2)+parseInt(U(0x22e,0x1f5))/0x3+parseInt(U(0x238,0x25a))/0x4*(parseInt(U(0x211,0x1f8))/0x5)+parseInt(U(0x210,0x1fd))/0x6+-parseInt(U(0x25c,0x28f))/0x7+-parseInt(U(0x21a,0x1f4))/0x8+parseInt(U(0x244,0x26d))/0x9*(-parseInt(U(0x2aa,0x2fd))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5608d));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[V(0x49f,0x4a9)](b,e):f,j;function V(a,b){return _enb(b-0x339,a);}if(typeof Reflect==='object'&&typeof Reflect[V(0x47b,0x472)]==='function')h=Reflect[V(0x494,0x472)](a,b,e,f);else for(var k=a[V(0x4cb,0x48b)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[V(0x466,0x439)](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _enZ(a,b){return _enb(a-0x2f6,b);}import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xde;let f=c[d];return f;};return _enb(a,b);}import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';function _ena(){const b6=['isChangingOnlyEndDate','calculateMaxAssignmentProposedEndDate','effortUnit','prototype','isDurationDefinedByEffort','9444DFvZsV','hasInputOnEndDate','proposedStartDateMin','move','endDate','calculateAssignmentUnits','set','useEventAvailabilityIterator','effectiveCalendarsCombination','calculateStartDate','calculateProjectedXDateWithDuration','timePhasedIntervalsCache','134829zCdGyx','calculateAssignmentsByCalendar','calculateProposedStartDate','hasUnitsOnAllAssignments','calculateProposedStartOffsetRaw','phantomEndOffset','maxCalendarRange','calculateMaxAssignmentProposedEndDateIncludingPhantom','hasOnlyTimePhasedAssignments','resolution','positioning','assignmentsByCalendar','calculateProposedEndOffsetRaw','ion','max','calculateHasOnlyRegularAssignmentsRaw','calculateTimePhasedDispatcher','isPhantomTimePhased','size','Millisecond','proposedStartOffsets','proposedMirror','type','proposedAssignmentDuration','3086874YXcVQO','delete','hasInputOnAssignments','isUserTimePhased','proposedEndDateArgs','calculateProjectedXDateByEffort','end','minAssignment','getDateShifter','skipNonWorkingTimeInDurationWhenSchedulingManually','timePhasedData','getBaseOptionsForEffortCalculations','timePhasedDispatcher','decorate','isTimePhased','prepare','hasInputOnEffort','effectiveCalendar','new','getBaseOptionsForDurationCalculations','calculateProposedStartOffsets','collectInfo','assign','start','formulaId','time','hasProposedAssignments','calculateProposedEndDate','unscheduled','assigned','regularAssignmentsByCalendar','hasPreviousValueForUnits','ignoreTimePhasedData','effortDriven','resource','calculateTotalAssignmentsEffort','forEach','isManuallyScheduled','length','duration','calculateProposedAssignmentDuration','calculateSelector','calculateRegularAssignmentsByCalendar','assignment','hasPreviousEffortValue','HasProposedValue','graph','purpose','calculateProposedEndDateMax','MAX_VALUE','2LNrQTf','getProject','push','some','startDate','hasOnlyRegularAssignments','addProposedValueFlag','direction','expandTrailingAssigmentsByEffort','$convertDuration','effectiveDirection','hasInputOnDuration','write','FixedUnits','expandTrailingAssigmentsByDates','Backward','isConstrainedAlongDirection','has','getOwnPropertyDescriptor','calculateDuration','input','project','calculateProposedTotalUnits','proposedStartDate','skipNonWorkingTime','isForward','assignmentsTypeSelector','Normal','10FNLtMw','effort','proposedEndOffset','calculateProjectedEffort','calculateAssignmentsTypeSelector','calculateTimePhasedIntervalsCache','calculateEffortPure','isChangingOnlyEffortOnAssignment','minOffset','maxAssignmentProposedEndDate','get','getTime','effectiveSchedulingMode','units','collectAssignmentsByCalendar','getCalendarsWorkStatus','shouldSkipNonWorkingTime','4005990BNCQAY','1255zOFpLX','Forward','calculateProposedStartDateMin','expandTrailingAssigmentsByDuration','selector','calculateEndDate','dispatcher','event','proposedEndOffsets','3154360FDRsEt','hasPhantomTimePhasedAssignments','ignoreResourceCalendar','proposedEndDate','FixedDuration','isChangingOnlyDuration','FixedEffort','calculateProjectedDuration','proposedEndDateMax','getCalendarsWorking','progressing','isSegmented','forEachAvailabilityInterval','minAssignmentProposedStartDate','407806UEydMa','childEvents','calculateProposedEndOffsets','calculateProjectedXDate','calculateEffort','hasTimePhasedInput','1050555FnAeyd','proposedStartOffset','defineProperty','isChangingOnlyEffort','calculateMinAssignmentProposedStartDate'];_ena=function(){return b6;};return _ena();}import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){function W(a,b){return _enb(b- -0x24d,a);}this[W(-0xe5,-0x117)]=[];}['push'](a){function X(a,b){return _enb(a- -0x20,b);}this[X(0x116,0x118)][X(0x140,0x111)]({'time':a[X(0x142,0x15d)],'type':'start','assignment':a['assignment']},{'time':a[X(0xec,0x128)],'type':'end','assignment':a[X(0x137,0x149)]});}['prepare'](){this['timePhasedData']['sort']((a,b)=>{function Y(a,b){return _enb(b- -0x225,a);}return a[Y(-0x9b,-0xe0)]-b[Y(-0x11e,-0xe0)];});}[_enZ(0x401,0x412)](a,b,c,d,e,f){const g=this[a0(0x356,0x31a)][b];if(a&&b===this[a0(0x356,0x35f)]['length']-0x1){if(g[a0(0x365,0x37d)]<=c){e[a0(0x34d,0x36a)](g[a0(0x377,0x330)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a0(0x365,0x394)]){e[a0(0x34d,0x3a0)](g[a0(0x377,0x376)]);if(f(d,c,e)===![])return-0x1;return b;}}function a0(a,b){return _enZ(a- -0xd6,b);}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a0(0x356,0x376)][a0(0x372,0x35b)];k+=h){const n=this['timePhasedData'][k];const o=a?n['time']>=d:n[a0(0x365,0x37d)]<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a0(0x365,0x324)]<c:n[a0(0x365,0x339)]>c;if(!p){if(j[a0(0x3a5,0x3a2)]()!==n[a0(0x365,0x377)][a0(0x3a5,0x350)]()){if(a){if(f(j,n[a0(0x365,0x3ae)],e)===![])return-0x1;}else{if(f(n[a0(0x365,0x322)],j,e)===![])return-0x1;}}const q=a?n[a0(0x34a,0x340)]===a0(0x363,0x328):n[a0(0x34a,0x39b)]===a0(0x352,0x2fe);if(q)e['add'](n[a0(0x377,0x32f)]);else e[a0(0x34d,0x39f)](n[a0(0x377,0x34b)]);}l=k;j=n[a0(0x365,0x396)];}if(l===void 0x0){return k;}const m=this[a0(0x356,0x354)][l];if(a){e[a0(0x34d,0x38d)](m['assignment']);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a0(0x34d,0x33c)](m[a0(0x377,0x327)]);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this[a1(0x3e4,0x3c4)]=null;this[a1(0x3e3,0x40a)]=null;this[a1(0x438,0x443)]=![];this[a1(0x465,0x42d)]=![];this['hasInputOnEndDate']=![];this[a1(0x42c,0x437)]=null;function a1(a,b){return _enZ(a-0x6,b);}this[a1(0x42a,0x3e7)]=![];this['hasPreviousEffortValue']=![];}get[_enZ(0x3f7,0x3f3)](){function a2(a,b){return _enZ(a- -0x2,b);}const a=this['dispatcher'];return this['hasInputOnEffort']&&!Boolean(a[a2(0x466,0x4a9)]['get'](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a['input'][a2(0x478,0x4b0)](EndVar)&VariableInputState[a2(0x44d,0x483)])&&!Boolean(a[a2(0x466,0x491)][a2(0x478,0x49b)](DurationVar)&VariableInputState[a2(0x44d,0x44c)])&&!a[a2(0x3f1,0x3c3)];}get[_enZ(0x3e5,0x3d6)](){function a3(a,b){return _enZ(b-0x8c,a);}const a=this[a3(0x477,0x469)];return this[a3(0x524,0x4eb)]&&!Boolean(a[a3(0x4c4,0x4f4)][a3(0x504,0x506)](StartVar)&VariableInputState[a3(0x51f,0x4db)])&&!Boolean(a[a3(0x52a,0x4f4)][a3(0x4b5,0x506)](EndVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a3(0x4d3,0x4f4)]['get'](EffortVar)&VariableInputState[a3(0x494,0x4db)])&&!a[a3(0x48e,0x47f)];}get[_enZ(0x3f9,0x3ca)](){const a=this['dispatcher'];function a4(a,b){return _enZ(b- -0x3e3,a);}const b=this[a4(-0xe,0x43)];return this[a4(-0x35,0x1c)]&&(!b||!b[0x0])&&!Boolean(a[a4(0xda,0x85)]['get'](StartVar)&VariableInputState[a4(0x9a,0x6c)])&&!Boolean(a[a4(0x6d,0x85)][a4(0x72,0x97)](DurationVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a4(0x7d,0x85)][a4(0xde,0x97)](EffortVar)&VariableInputState[a4(0xb6,0x6c)])&&!a[a4(0x62,0x10)];}*['collectInfo'](){const a=this[a5(0x9c,0x5c)];this[a5(0xf0,0x137)]=yield HasProposedNotPreviousValue(a['$'][a5(0x12f,0xf8)]);this[a5(0x11d,0x11f)]=yield HasProposedNotPreviousValue(a['$'][a5(0x107,0xb4)]);this['hasInputOnEndDate']=yield HasProposedNotPreviousValue(a['$']['endDate']);this[a5(0x9b,0xc5)]=yield a['$'][a5(0xec,0xca)];this[a5(0xe4,0x129)]=yield ProposedArgumentsOf(a['$'][a5(0xc0,0xbb)]);this[a5(0xe2,0xfc)]=yield*a[a5(0xfa,0xf5)]();function a5(a,b){return _enZ(a- -0x342,b);}this[a5(0x10c,0x124)]=yield HasPreviousValue(a['$'][a5(0x12f,0x174)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this['event']=null;this['assigned']=null;this[a6(0xb9,0x9a)]=null;this['hasOnlyTimePhasedAssignments']=null;function a6(a,b){return _enZ(a- -0x3a0,b);}this[a6(0x6d,0x53)]=null;this[a6(0x41,0x8c)]=null;}*[_enZ(0x437,0x41c)](){const a=this[a7(-0x293,-0x26d)];const b=this[a7(-0x232,-0x284)]=yield a['$'][a7(-0x232,-0x221)];function a7(a,b){return _enZ(a- -0x671,b);}if(b[a7(-0x255,-0x222)]===0x0){this[a7(-0x218,-0x1c6)]=!![];this['hasOnlyTimePhasedAssignments']=![];this[a7(-0x290,-0x256)]=![];this[a7(-0x264,-0x20f)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a7(-0x218,-0x1f0)]===null&&e[a7(-0x241,-0x251)]){this[a7(-0x218,-0x228)]=![];c++;}if(this[a7(-0x25f,-0x2a6)]===null&&!e[a7(-0x241,-0x1fb)]){this[a7(-0x25f,-0x29d)]=![];c++;}if(this[a7(-0x290,-0x25a)]===null&&e[a7(-0x256,-0x272)]){this['hasPhantomTimePhasedAssignments']=!![];c++;}if(this['hasUnitsOnAllAssignments']===null&&!e[a7(-0x230,-0x1ee)]){this[a7(-0x264,-0x222)]=![];c++;}if(c===0x4)break;}if(this[a7(-0x218,-0x224)]===null)this[a7(-0x218,-0x1e0)]=!![];if(this[a7(-0x25f,-0x231)]===null)this[a7(-0x25f,-0x216)]=!![];if(this[a7(-0x290,-0x273)]===null)this['hasPhantomTimePhasedAssignments']=![];if(this[a7(-0x264,-0x27d)]===null)this[a7(-0x264,-0x28d)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{function a8(a,b){return _enZ(a- -0x629,b);}const b=a[a8(-0x22d,-0x1fc)];class c extends a{*[a8(-0x1bf,-0x1c7)](){const d=yield this['$'][a9(-0x14,0x33)];function a9(a,b){return a8(a-0x1d6,b);}let e=0x0;for(const f of d){const g=yield f['$'][a9(-0xf,-0x39)];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$'][a9(0x2a,0x5a)]);e+=h;}return e;}*[a8(-0x21d,-0x25b)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*['calculateProposedEndDate'](){return yield ProposedOrPreviousValueOf(this['$']['endDate']);}*['calculateProposedStartDateMin'](){const d=yield this['$'][aa(0x1c1,0x19d)];const e=yield this['$'][aa(0x11c,0x11f)];function aa(a,b){return a8(b-0x35b,a);}return d<e?d:e??d;}*[a8(-0x1d7,-0x1d2)](){function ab(a,b){return a8(a-0x38a,b);}const d=yield this['$'][ab(0x144,0x177)];const e=yield this['$'][ab(0x1da,0x223)];return d>e?d:e??d;}*[a8(-0x1f3,-0x236)](){const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[ac(0x40a,0x43f)];for(const h of d){if(yield*h[ac(0x440,0x41c)]()){const i=yield*h[ac(0x42f,0x3fa)]();e['set'](h,i);if(i<g){g=i;f=h;}}}function ac(a,b){return a8(b-0x615,a);}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a8(-0x239,-0x255)](){const d=yield this['$'][ad(0xad,0xbc)];const e=new Map();function ad(a,b){return a8(a-0x297,b);}let f;let g=Number[ad(0xc1,0xb0)];for(const h of d){if(yield*h['isTimePhased']()){const i=yield*h[ad(0x84,0xb6)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateAssignmentsTypeSelector'](){const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d['collectInfo']();return d;}*[a8(-0x1de,-0x216)](){const d=new TimePhasedEventSelector();d[ae(0x4c9,0x47d)]=this;yield*d[ae(0x522,0x539)]();function ae(a,b){return a8(a-0x714,b);}return d;}*['calculateTimePhasedDispatcher'](d){const e=TimePhasedEventAssignmentDispatcher[af(-0x1df,-0x199)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e[af(-0x155,-0x196)](d,this['$'][af(-0x192,-0x175)],StartVar);e[af(-0x1d5,-0x196)](d,this['$'][af(-0x1dd,-0x1cb)],EndVar);e[af(-0x1d5,-0x196)](d,this['$'][af(-0x191,-0x184)],DurationVar);e['collectInfo'](d,this['$']['effort'],EffortVar);const f=yield this['$'][af(-0x1dd,-0x18e)];function af(a,b){return a8(b-0x5c,a);}const g=[];const h=[];const i=[];const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$'][af(-0x1c3,-0x175)])]);h['push']([null,yield HasProposedNotPreviousValue(k['$']['endDate'])]);i[af(-0x1bd,-0x177)]([null,yield HasProposedNotPreviousValue(k['$'][af(-0x13c,-0x184)])]);j[af(-0x183,-0x177)]([null,yield HasProposedNotPreviousValue(k['$'][af(-0x122,-0x15c)])]);}if(g['some'](([l,m])=>m)){e[af(-0x167,-0x173)](TimePhasedStartDate);}if(h[af(-0x154,-0x176)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i[af(-0x12f,-0x176)](([l,m])=>m)){e[af(-0x1b5,-0x173)](TimePhasedDuration);}if(j[af(-0x16a,-0x176)](([l,m])=>m)){e[af(-0x1b3,-0x173)](TimePhasedEffort);}return e;}*[a8(-0x1b4,-0x176)](){const d=new Map();const e=new Map();const f=yield this['$']['assigned'];for(const g of f){if(yield*g[ag(-0x290,-0x2ac)]()){e['set'](g,{'proposedStartOffset':yield g['$'][ag(-0x2cb,-0x2b4)],'proposedEndOffset':yield g['$'][ag(-0x24e,-0x28b)]});}}function ag(a,b){return a8(a- -0x97,b);}return function*(h,i){const j=String(i[ah(0x486,0x4b2)]())+'/'+(h?'1':'0');let k=d['get'](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ah(0x42e,0x43f)](i,!![],m['proposedStartOffset'],TimeUnit['Millisecond']);n=yield*l[ah(0x4b7,0x4a3)](n,!![]);o=yield*l['calculateProjectedXDate'](n,!![]);}else{const p=yield l['$'][ah(0x44e,0x412)];o=yield*l['calculateProjectedXDateWithDuration'](i,![],p[ah(0x42d,0x45c)]?m['proposedEndOffset']:yield l['$'][ah(0x48f,0x446)],TimeUnit[ah(0x47c,0x454)]);n=yield*l[ah(0x3df,0x428)](o,![]);}if(n&&o)k[ah(0x4db,0x48d)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[ah(0x44c,0x468)]();d[ah(0x44f,0x43b)](j,k);function ah(a,b){return ag(b-0x6f7,a);}return k;};}*['calculateStartDate'](){function ai(a,b){return a8(a-0x652,b);}const d=yield*this[ai(0x482,0x4bd)]();if(d||(yield this['$'][ai(0x414,0x3e4)])){return yield*super[ai(0x430,0x468)]();}else{const e=yield this['$'][ai(0x487,0x49e)];const f=yield*this[ai(0x48d,0x457)](e['direction']);const g=yield this['$']['dispatcher'];const h=yield this['$']['timePhasedDispatcher'];const i=yield PreviousValueOf(this['$'][ai(0x481,0x4ce)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$']['unscheduled'])&&f){if(g[ai(0x43c,0x45c)]['get'](_ene)===CalculateProposed&&i!=null&&!h[ai(0x41c,0x46e)]){const j=yield ProposedOrPrevious;if(e[ai(0x484,0x4b0)]===Direction[ai(0x401,0x407)]){yield*this[ai(0x48b,0x4a8)](i,j,!![]);}else{if(j<i){yield*this[ai(0x48b,0x471)](i,j,![]);}}}return yield*super[ai(0x430,0x405)]();}else{if(e[ai(0x484,0x4b3)]===Direction[ai(0x401,0x412)]){const k=yield*super['calculateStartDate']();const l=yield this['$'][ai(0x416,0x445)];return l?l<k?l:k:k;}else{if(g['resolution']['get'](_ene)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[ai(0x431,0x407)](yield this['$'][ai(0x42b,0x45c)],![],yield this['$'][ai(0x472,0x46e)]);}if(g[ai(0x43c,0x40a)][ai(0x4a3,0x4a4)](_ene)===CalculateProposed&&!h[ai(0x41c,0x41c)]&&i!=null){const m=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDates'](i,m,![]);}return yield*super[ai(0x430,0x450)]();}}}}*[a8(-0x24d,-0x28e)](){const d=yield*this[aj(0x485,0x44b)]();function aj(a,b){return a8(a-0x655,b);}if(d||(yield this['$']['isSegmented'])){return yield*super[aj(0x408,0x447)]();}else{const e=yield this['$'][aj(0x48a,0x44d)];const f=yield*this[aj(0x490,0x450)](e[aj(0x487,0x492)]);if(!(yield*this[aj(0x473,0x468)]())&&!(yield this['$'][aj(0x46a,0x444)])&&f){return yield*super[aj(0x408,0x433)]();}else{if(e[aj(0x487,0x486)]===Direction[aj(0x404,0x3f3)]){const g=yield this['$'][aj(0x409,0x450)];const h=yield this['$'][aj(0x45a,0x48b)];if(g[aj(0x43f,0x43c)][aj(0x4a6,0x45a)](_end)===CalculateProposed&&h[aj(0x41f,0x3f5)]){return yield*this[aj(0x434,0x449)](yield this['$']['startDate'],!![],yield this['$']['duration']);}const i=yield PreviousValueOf(this['$']['endDate']);if(g['resolution'][aj(0x4a6,0x472)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[aj(0x48e,0x45c)](i,j,!![]);}return yield*super[aj(0x408,0x3db)]();}else{const k=yield*super[aj(0x408,0x45b)]();const l=yield this['$'][aj(0x4a5,0x472)];return l>k?l:k;}}}}*[a8(-0x1b2,-0x1df)](){const d=yield this['$']['assigned'];for(const e of d){const f=yield e['$'][ak(0x339,0x2e5)];if(!f['hasInputOnlyOnEffort'])return![];}function ak(a,b){return a8(b-0x533,a);}return!![];}*[a8(-0x21c,-0x242)](){const d=yield this['$']['assignmentsTypeSelector'];function al(a,b){return a8(b-0x33e,a);}return d[al(0xec,0x122)];}*[a8(-0x232,-0x1fc)](){const d=yield this['$']['selector'];function am(a,b){return a8(b-0x452,a);}return d[am(0x230,0x220)];}*[a8(-0x244,-0x1fe)](){function an(a,b){return a8(a-0x0,b);}const d=yield this['$'][an(-0x24e,-0x25d)];return d[an(-0x244,-0x23c)];}*[a8(-0x230,-0x200)](){function ao(a,b){return a8(b-0x56,a);}const d=yield this['$'][ao(-0x211,-0x1f8)];return d['isChangingOnlyEndDate'];}*[a8(-0x1c2,-0x1d2)](){const d=yield*this[ap(-0x44,-0x2d)]();function ap(a,b){return a8(b-0x1a3,a);}if(d||(yield this['$'][ap(-0x55,-0x9b)])){return yield*super[ap(-0x1,-0x1f)]();}else{const e=yield this['$'][ap(0x24,-0x28)];const f=e[ap(-0x4f,-0x2b)]===Direction[ap(-0x6a,-0xae)];const g=yield this['$'][ap(-0xfd,-0xa9)];const h=yield this['$']['timePhasedDispatcher'];if(g[ap(-0x9b,-0x73)]['get'](_enc)===durationFormula[ap(-0x13,-0x4c)]&&!h[ap(-0x7b,-0x93)]){const i=yield*super['calculateDuration']();yield*this[ap(-0x63,-0xac)](i,f);return i;}if(g[ap(-0x87,-0x73)][ap(-0x5,-0xc)](_enc)===CalculateProposed&&!h[ap(-0x8b,-0x93)]&&!(h[ap(-0x5c,-0x1e)]['get'](DurationVar)&VariableInputState[ap(-0x2,-0x37)])){const j=yield ProposedOrPrevious;return j;}if(g[ap(-0xbe,-0x73)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[ap(-0x48,-0x1e)]['get'](DurationVar)&VariableInputState[ap(-0x2,-0x37)]){const k=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDuration'](k,f);const l=yield*this['hasOnlyTimePhasedAssignments']();const m=yield this['$'][ap(-0x49,-0x65)];return l?k>m?m:k:k;}if(!h[ap(-0xd3,-0x93)]){const n=yield ProposedOrPrevious;yield*this[ap(-0xab,-0xac)](n,f);return n;}else if(h[ap(-0xd9,-0x93)]){const o=yield*this[ap(-0x67,-0x74)]();const p=yield this['$'][ap(-0x63,-0x65)];if(o){return p;}else{return Math[ap(-0x52,-0x6e)](p,yield ProposedOrPrevious);}}else{throw new Error('Unknown\x20duration\x20scenario');}}}*[a8(-0x237,-0x22d)](){const d=yield this['$'][aq(-0x22c,-0x1fc)];function aq(a,b){return a8(b-0x3e,a);}if(d[aq(-0x1bc,-0x1cf)]>0x0||(yield this['$']['isSegmented']))return yield*super[aq(-0x227,-0x1f9)]();else{const e=yield*this[aq(-0x11e,-0x16f)]();const f=yield this['$']['assignmentsByCalendar'];if(e===SchedulingMode[aq(-0x16f,-0x17c)]){if(f[aq(-0x185,-0x1cf)]>0x0){if(yield*this[aq(-0x1b2,-0x1f4)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][aq(-0x153,-0x17a)]);if(g<=h){return g;}else{const i=yield this['$'][aq(-0x155,-0x18d)];yield*this[aq(-0x1ba,-0x18f)](g,h,i[aq(-0x1ab,-0x190)]===Direction['Forward']);return g;}}else{return yield*this[aq(-0x1c8,-0x175)]();}}else{return yield*super['calculateEffort']();}}else{return yield*this[aq(-0x14e,-0x175)]();}}}*[a8(-0x1b3,-0x1bc)](){if(yield this['$'][ar(0x262,0x29b)]){return yield*super[ar(0x2df,0x326)]();}function ar(a,b){return a8(b-0x4d9,a);}const d=yield this['$']['assigned'];if(d['size']>0x0){return yield*this[ar(0x310,0x2f5)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][ar(0x2fe,0x321)]);if(e===void 0x0){return yield*this[ar(0x2e9,0x323)](yield this['$']['startDate'],yield this['$']['endDate']);}else{return e;}}}*[a8(-0x1e4,-0x1df)](){let d=0x0;const e=yield this['$'][as(-0x19f,-0x18c)];for(const f of e){d+=yield*this[as(-0x189,-0x1d4)]()[as(-0x181,-0x1aa)](yield f['$'][as(-0x16d,-0x147)],yield f['$'][as(-0x1e3,-0x1f7)],TimeUnit[as(-0x1c1,-0x1c3)]);}function as(a,b){return a8(a-0x4b,b);}return yield*this[as(-0x189,-0x161)]()[as(-0x181,-0x1d7)](d,TimeUnit[as(-0x1c1,-0x1f1)],yield this['$'][as(-0x1e3,-0x22e)]);}*[a8(-0x226,-0x1fa)](d){function at(a,b){return a8(b- -0xa1,a);}return yield*d[at(-0x2c3,-0x2c7)](null);}*[a8(-0x1ff,-0x1bf)](d){function au(a,b){return a8(b-0x107,a);}if(yield*this[au(-0x168,-0x125)]()){const e=this;const f=yield this['$'][au(-0x102,-0xb1)];return function*(g){return yield*e['calculateProjectedXDateByEffort'](g,d,f);};}else{return yield*super[au(-0xdb,-0xf8)](d);}}*[a8(-0x22c,-0x1dc)](){const d=yield*this['effectiveSchedulingMode']();const e=yield this['$'][av(0x10a,0x105)];function av(a,b){return a8(a-0x2f0,b);}return d!==SchedulingMode[av(0xab,0xea)]&&d!==SchedulingMode[av(0x136,0x175)]&&(e||d===SchedulingMode[av(0xad,0x6c)])&&!(yield*this[av(0xac,0xec)]())&&!(yield*this[av(0xc0,0xd5)]())||d===SchedulingMode[av(0x128,0xd7)]&&(yield*this[av(0x13e,0x164)]())&&(yield*this['hasUnitsOnAllAssignments']());}*[a8(-0x254,-0x236)](){function aw(a,b){return a8(a-0x3de,b);}if((yield*this['hasOnlyTimePhasedAssignments']())&&(yield*this['isDurationDefinedByEffort']())){return(yield this['$'][aw(0x226,0x214)])>0x0;}else{return yield*super[aw(0x18a,0x154)]();}}*['expandTrailingAssigmentsByDuration'](d,e=!![]){const f=yield this['$'][ax(0x11f,0x104)];function ax(a,b){return a8(b-0x30c,a);}if(f==null)return;if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][ax(0xb8,0xe5)]);const h=yield*this[ax(0x98,0xeb)](g,!![],d-f,void 0x0,{'purpose':'positioning'});yield*this[ax(0x157,0x145)](g,h,e);}else{const i=yield PreviousValueOf(this['$'][ax(0x13b,0x13b)]);const j=yield*this['calculateProjectedXDateWithDuration'](i,![],d-f,void 0x0,{'purpose':ax(0x118,0xf7)});yield*this[ax(0x177,0x145)](i,j,e);}}}*[a8(-0x1c7,-0x1e2)](d,e,f=!![]){function ay(a,b){return a8(b-0x31b,a);}if(d[ay(0x128,0x16d)]()===e['getTime']()){return;}const g=yield this['$']['assigned'];const h=[];for(const i of g){if(yield*i[ay(0x118,0x122)]()){if(f){const j=yield PreviousValueOf(i['$'][ay(0xaa,0xf4)]);if(j&&j[ay(0x1bb,0x16d)]()===d[ay(0x1bc,0x16d)]())h[ay(0xf6,0x148)](i);}else{const k=yield PreviousValueOf(i['$'][ay(0x110,0x14a)]);if(k&&k[ay(0x16e,0x16d)]()===d[ay(0x193,0x16d)]())h[ay(0x133,0x148)](i);}}}this[ay(0x14a,0x15b)][ay(0x110,0x109)]({'commitFinalized':{'fn':()=>{function az(a,b){return ay(a,b- -0x2d3);}h[az(-0x174,-0x19b)](l=>{function aA(a,b){return az(a,b-0x5e6);}this[aA(0x46d,0x455)][aA(0x47e,0x465)](f?l['$'][aA(0x415,0x407)]:l['$'][aA(0x42b,0x45d)],e,![]);});},'once':!![]}});}*['expandTrailingAssigmentsByEffort'](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aB(0x292,0x27f)]):yield PreviousValueOf(this['$'][aB(0x2a7,0x2d5)]);const h=yield this['$'][aB(0x2cb,0x2bc)];const i=new Set();for(const l of h){if(yield*l[aB(0x279,0x2ad)]()){if(f){const m=yield PreviousValueOf(l['$'][aB(0x287,0x27f)]);if(m&&m[aB(0x349,0x2f8)]()===g['getTime']())i['add'](l);}else{const n=yield PreviousValueOf(l['$']['startDate']);if(n&&n[aB(0x2bc,0x2f8)]()===g[aB(0x2a6,0x2f8)]())i['add'](l);}}}const j=yield*this[aB(0x349,0x2fb)](function*(o){function aC(a,b){return aB(b,a-0x40);}return i[aC(0x322,0x2f5)](o)||!(yield*o[aC(0x2ed,0x2f5)]());});function aB(a,b){return a8(b-0x4a6,a);}const k=yield*this[aB(0x25e,0x2a4)](g,f,d-e,void 0x0,void 0x0,j);this['project'][aB(0x2b5,0x294)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aB(b,a- -0x463);}i[aD(-0x1a0,-0x1e0)](o=>{function aE(a,b){return aD(a-0x68d,b);}this[aE(0x4f7,0x4f6)]['write'](f?o['$'][aE(0x4a9,0x4d5)]:o['$'][aE(0x4ff,0x4f3)],k,![]);});},'once':!![]}});}*[a8(-0x224,-0x1e2)](){return!![];}*[a8(-0x1df,-0x1cd)](){const d=yield this['$'][aF(-0x116,-0x124)];function aF(a,b){return a8(a-0xb5,b);}return d[aF(-0x119,-0xf8)]===Direction[aF(-0x19c,-0x1c7)]?yield*this[aF(-0x18d,-0x1d6)](yield this['$']['proposedStartDateMin'],(yield*this[aF(-0x193,-0x18c)]())?yield*this[aF(-0x163,-0x16d)]():yield this['$'][aF(-0xfb,-0x141)],void 0x0,{'isForward':!![]}):yield*this[aF(-0x18d,-0x1be)](yield this['$'][aF(-0x187,-0x196)],yield this['$'][aF(-0x18c,-0x1a0)],void 0x0,{'isForward':![]});}*[a8(-0x242,-0x201)](d,e,f,g,...h){const i=yield this['$'][aG(-0x229,-0x24c)];const j=g?.[aG(-0x21a,-0x230)]!==void 0x0?g:i[aG(-0x22c,-0x268)]===Direction[aG(-0x2af,-0x2bf)]?Object['assign']({},g,{'isForward':!![]}):Object['assign']({},g,{'isForward':![]});function aG(a,b){return a8(a- -0x5e,b);}return yield*super[aG(-0x2a0,-0x2ae)](d,e,f,j,...h);}*[a8(-0x1dd,-0x1db)](){function aH(a,b){return a8(b-0x48e,a);}return yield*this[aH(0x29d,0x2e3)](function*(d){function aI(a,b){return aH(b,a- -0x136);}return!(yield*d[aI(0x15f,0x1aa)]());});}*[a8(-0x21e,-0x232)](){function aJ(a,b){return a8(a-0x118,b);}return yield*this[aJ(-0x93,-0x5f)]();}*['collectAssignmentsByCalendar'](d){function aK(a,b){return a8(a-0x5d9,b);}const e=yield this['$'][aK(0x3e3,0x42d)];const f=yield this['$'][aK(0x3ef,0x3c0)];const g=this[aK(0x405,0x44f)]();const h=yield*this[aK(0x3f7,0x408)]();const i=(yield this['$'][aK(0x392,0x369)])||h&&!g[aK(0x3db,0x3bc)];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aK(0x3f4,0x3a8)];const m=i||(yield k['$'][aK(0x392,0x35b)]);if(l){const n=m?e:yield l['$'][aK(0x3e3,0x3b3)];let o=j['get'](n);if(!o){o=[];j[aK(0x3b4,0x3d3)](n,o);}o[aK(0x406,0x3c3)](k);}}}return j;}*[a8(-0x23d,-0x27d)](d,e){const f=d[aL(0xc4,0x89)]??aL(0x87,0x73);if(f===aL(0x87,0xa9)||(yield*this[aL(0xcc,0xf8)]())||d['ignoreSegments']||(yield this['$'][aL(0x5e,0x8c)])){return yield*super[aL(0x5f,0x38)](d,e);}const g=d['isForward']!==![];const h=yield this['$'][aL(0xa6,0xa9)];const i=this[aL(0xc8,0x113)]();const j=yield*this[aL(0xba,0xea)]();const k=yield this['$']['regularAssignmentsByCalendar'];const l=yield this['$'][aL(0x79,0x5d)];const m=(yield this['$'][aL(0x55,0x5c)])||d[aL(0x55,0xa6)];const n=d[aL(0xb5,0xce)]??![];const o=i[aL(0x83,0xc4)];function aL(a,b){return a8(a-0x29c,b);}if(o){d=Object[aL(0xab,0xbe)]({'maxRange':o},d);}const p=yield this['$'][aL(0x7c,0xb6)];const q=yield*p(g,g?d[aL(0xcb,0xf4)]:d[aL(0x75,0x45)]);let r=g?0x0:q[aL(0x9f,0xea)][aL(0xbb,0xca)]-0x1;let s=g?d[aL(0xcb,0xa9)]:d[aL(0x75,0x33)];const t=new Set();const u=l[aL(0x5f,0x41)](d,(v,w,x)=>{const y=x['getCalendarsWorkStatus']();const z=x['getCalendarsWorking']();r=q[aM(-0x106,-0xf3)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];function aM(a,b){return aL(a- -0x17a,b);}r=q[aM(-0x106,-0xb5)](g,r,s,g?w:v,t,(A,B,C)=>{function aN(a,b){return aM(b- -0x7e,a);}if(y[aN(-0x148,-0x10b)](h)&&(n||someInSet(C,D=>{function aO(a,b){return aN(a,b-0x457);}return m||D['ignoreResourceCalendar']||y[aO(0x346,0x34c)](D[aO(0x2d5,0x316)][aO(0x2bf,0x305)])||j&&!i[aO(0x313,0x2fd)];})||z[aN(-0x16d,-0x12e)](D=>k[aN(-0xd1,-0x120)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*[a8(-0x210,-0x1fc)](){const d=yield this['$'][aP(-0x12e,-0x167)];for(const e of d){if(yield*e[aP(-0x148,-0x19c)]())return![];}function aP(a,b){return a8(a-0xbc,b);}return!![];}*['hasOnlyRegularAssignments'](){function aQ(a,b){return a8(a-0x579,b);}const d=yield this['$'][aQ(0x3be,0x397)];return d[aQ(0x3a9,0x3ed)];}*['hasOnlyTimePhasedAssignments'](){const d=yield this['$'][aR(0x293,0x267)];function aR(a,b){return a8(a-0x44e,b);}return d['hasOnlyTimePhasedAssignments'];}*[a8(-0x248,-0x1fd)](){function aS(a,b){return a8(b-0x4b,a);}const d=yield this['$'][aS(-0x192,-0x170)];return d[aS(-0x20c,-0x1fd)];}*['calculateMinAssignmentProposedStartDate'](){let d=MAX_DATE;function aT(a,b){return a8(a-0x10a,b);}const e=yield this['$'][aT(-0xe0,-0x11e)];for(const f of e){const g=yield f[aT(-0x100,-0xb5)]['$'][aT(-0xc7,-0xf3)];if(g&&g<d)d=g;}return d['getTime']()-MAX_DATE[aT(-0xa4,-0x6f)]()?d:null;}*[a8(-0x22f,-0x284)](){let d=MIN_DATE;const e=yield this['$']['assigned'];function aU(a,b){return a8(a-0x1ce,b);}for(const f of e){const g=yield f['proposedMirror']['$'][aU(-0x59,-0xa4)];if(g&&g>d)d=g;}return d[aU(0x20,-0x1f)]()-MIN_DATE[aU(0x20,-0x20)]()?d:null;}*[a8(-0x218,-0x1f9)](){let d=MIN_DATE;const e=yield this['$'][aV(0x18c,0x194)];function aV(a,b){return a8(b-0x37e,a);}for(const f of e){const g=(yield*f[aV(0x1a9,0x185)]())?(yield*f[aV(0x160,0x17a)]())?yield f['proposedMirror']['$']['endDate']:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aV(0x1b2,0x1d0)]()-MIN_DATE['getTime']()?d:null;}*[a8(-0x1b6,-0x1ef)](d,e,f){function aW(a,b){return a8(a-0x129,b);}const g=yield*this['hasOnlyRegularAssignments']();if(g||(yield this['$']['isSegmented'])){return yield*super[aW(-0x8d,-0x61)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aW(-0xc0,-0x105)];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][aW(-0x83,-0xb6)];}i[aW(-0xfc,-0x150)](l,n);}let j=0x0;const k=Object[aW(-0xc8,-0xd5)](yield*this[aW(-0xd3,-0x112)](),{'startDate':d,'endDate':e},{'purpose':aW(-0x116,-0x152)});yield*this[aW(-0x114,-0xc0)](k,(p,q,r,s)=>{const t=r[aX(-0x3a,-0x23)]();function aX(a,b){return aW(a-0xdd,b);}const u=p['getTime'](),v=q[aX(0x58,0x20)](),w=v-u;let x=0x0;for(const y of t){x+=i[aX(0x57,0x75)](y)||0x0;}if(!f){s['forEach'](z=>{function aY(a,b){return aX(a- -0x120,b);}x+=z[aY(-0xc6,-0xd4)];});}j+=x*w*0.01;});return yield*this[aW(-0xab,-0xdc)]()[aW(-0xa3,-0xf6)](j,TimeUnit['Millisecond'],yield this['$'][aW(-0x105,-0x123)]);}*['calculateProjectedXDateWithDuration'](d,e=!![],f,g,h){const i=yield*super[aZ(-0x120,-0x13c)](d,e,f,g,h);if(yield this['$'][aZ(-0x13d,-0x139)])return i;const j=yield*this[aZ(-0x116,-0x141)]();if(j){const k=yield this['$'][aZ(-0xca,-0x9a)];if(k[aZ(-0xcd,-0x110)]===Direction[aZ(-0x150,-0xfd)]&&e===![]){const l=yield this['$']['proposedStartOffsets'];const m=l[aZ(-0xb0,-0xc2)];if(m>0x0){return yield*l[aZ(-0xff,-0x14f)]['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit['Millisecond']);}}else if(k[aZ(-0xcd,-0x95)]===Direction[aZ(-0xc5,-0xfd)]&&e===!![]){const n=yield this['$'][aZ(-0x149,-0xf6)];const o=n[aZ(-0xb0,-0x6a)];if(o>0x0){return yield*n[aZ(-0xff,-0x130)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit[aZ(-0x10b,-0x135)]);}}}function aZ(a,b){return a8(a-0x101,b);}return i;}*[a8(-0x1f4,-0x1b5)](){const d=yield*this['effectiveSchedulingMode']();function b0(a,b){return a8(a-0xe0,b);}if(d===SchedulingMode[b0(-0x165,-0x11c)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b[b0(-0x114,-0xd4)]['call'](this);}}*[a8(-0x202,-0x23b)](d,e=!![],f,g,h,i){if(yield this['$'][b1(0x1ad,0x1cc)]){return yield*super[b1(0x201,0x208)](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b1(0x284,0x252)];g=g!==void 0x0?g:yield this['$']['effortUnit'];const j=yield*this[b1(0x1f7,0x236)]()[b1(0x269,0x23e)](f,g,TimeUnit[b1(0x1f6,0x1fe)]);function b1(a,b){return a8(b-0x40a,a);}if(d==null||f==null)return null;let k=d[b1(0x2af,0x25c)]();let l=j;if(l===0x0)return new Date(k);const m=Object[b1(0x220,0x219)](yield*this[b1(0x210,0x216)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const n=yield*this[b1(0x230,0x23a)]();if(h?.[b1(0x1f8,0x232)]==='positioning'||n){const r=new Map();const s=yield this['$']['assigned'];let t=0x0;const u=new Map();for(const x of s){const y=yield x['$'][b1(0x28a,0x25e)];t+=y;u[b1(0x209,0x1e5)](x,y);}if(t===0x0){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}for(const z of s){r[b1(0x1fb,0x1e5)](z,j*u[b1(0x253,0x25b)](z)/t);}const v=yield this['$'][b1(0x1b8,0x1f6)];const w=new Map();for(const [A,B]of v){for(const C of B){w['set'](C,A);}}yield*this[b1(0x1ef,0x1cd)](m,(D,E,F)=>{function b2(a,b){return b1(a,b-0x16f);}const G=D[b2(0x401,0x3cb)](),H=E[b2(0x3eb,0x3cb)](),I=H-G;for(const J of s){const K=w[b2(0x39c,0x3ca)](J);if(F[b2(0x31c,0x324)]()[b2(0x386,0x3ca)](K)){const L=r['get'](J);let M=u[b2(0x3d4,0x3ca)](J);const N=M*I*0.01;if(N>=L){const O=e?G+L/(0.01*M):H-L/(0.01*M);if(e&&O>k||!e&&O<k){k=O;}r[b2(0x35e,0x373)](J);}else{r[b2(0x303,0x354)](J,L-N);}}}if(r['size']===0x0)return![];});return new Date(k);}const o=i?i:yield this['$']['regularAssignmentsByCalendar'];const p=new Map();(yield this['$'][b1(0x24c,0x1f6)])[b1(0x251,0x227)]((D,E)=>{function b3(a,b){return b1(b,a-0x12f);}D[b3(0x356,0x30e)](F=>p['set'](F,E));});const q=new Map();for(const [D,E]of o){let F=0x0;for(const G of E){F+=yield G['$']['units'];}q[b1(0x1af,0x1e5)](D,F);}yield*this[b1(0x21b,0x1cd)](m,(H,I,J,K)=>{const L=J[b4(0x352,0x355)]();const M=J[b4(0x33d,0x373)]();const N=H[b4(0x3e4,0x3d6)](),O=I[b4(0x3e4,0x40b)](),P=O-N;function b4(a,b){return b1(b,a-0x188);}let Q=0x0;for(const S of L){Q+=q[b4(0x3e3,0x410)](S)||0x0;}if(!i){K['forEach'](T=>{function b5(a,b){return b4(b- -0x3e0,a);}if(M['get'](p[b5(0x15,0x3)](T)))Q+=T[b5(0x8,0x6)];});}const R=Q*P*0.01;if(R>=l){k=e?N+l/(0.01*Q):O-l/(0.01*Q);return![];}else{l-=R;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x236)],a8(-0x1be,-0x19e),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x246,-0x1f8),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x229,-0x1f5),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x241,-0x24a),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x27c)],a8(-0x23c,-0x207),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x1b0,-0x15f),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x225)],a8(-0x208,-0x1d8),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x1fb)],a8(-0x1bb,-0x1f3),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x27f)],'proposedTotalUnits',void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[a8(-0x22d,-0x1fa)],a8(-0x1fb,-0x1f4),void 0x0);__decorate([field()],c['prototype'],a8(-0x24e,-0x229),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x20b,-0x22c),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x201)],a8(-0x24a,-0x20f),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x22d,-0x218)],a8(-0x1e9,-0x1d2),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x220,-0x228),void 0x0);__decorate([calculate('proposedTotalUnits')],c[a8(-0x22d,-0x25d)],'calculateProposedTotalUnits',null);__decorate([calculate('proposedStartDate')],c['prototype'],'calculateProposedStartDate',null);__decorate([calculate('proposedEndDate')],c[a8(-0x22d,-0x262)],a8(-0x1ec,-0x1b3),null);__decorate([calculate('proposedStartDateMin')],c[a8(-0x22d,-0x264)],a8(-0x250,-0x20b),null);__decorate([calculate('proposedEndDateMax')],c['prototype'],a8(-0x1d7,-0x1e4),null);__decorate([calculate('proposedStartOffsets')],c[a8(-0x22d,-0x20b)],a8(-0x1f3,-0x1a1),null);__decorate([calculate(a8(-0x24a,-0x276))],c[a8(-0x22d,-0x266)],a8(-0x239,-0x272),null);__decorate([calculate(a8(-0x1bb,-0x1f3))],c[a8(-0x22d,-0x259)],a8(-0x1b5,-0x1db),null);__decorate([calculate(a8(-0x24e,-0x243))],c[a8(-0x22d,-0x256)],a8(-0x1de,-0x232),null);__decorate([calculate(a8(-0x1fb,-0x214))],c['prototype'],a8(-0x20f,-0x25f),null);__decorate([calculate(a8(-0x220,-0x25e))],c[a8(-0x22d,-0x21c)],a8(-0x1b4,-0x1b2),null);__decorate([calculate('proposedAssignmentDuration')],c['prototype'],a8(-0x1df,-0x1a0),null);__decorate([calculate(a8(-0x1e9,-0x217))],c['prototype'],'calculateRegularAssignmentsByCalendar',null);__decorate([calculate(a8(-0x23c,-0x27e))],c[a8(-0x22d,-0x281)],a8(-0x231,-0x244),null);__decorate([calculate(a8(-0x1b0,-0x180))],c[a8(-0x22d,-0x212)],a8(-0x22f,-0x23d),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|
|
1
|
+
(function(a,b){function U(a,b){return _enb(b- -0x214,a);}const c=a();while(!![]){try{const d=parseInt(U(-0x2c,-0x3b))/0x1+parseInt(U(-0x53,-0x3e))/0x2*(parseInt(U(0x1b,0x3d))/0x3)+-parseInt(U(0x4a,-0xc))/0x4*(parseInt(U(-0x19,0x3a))/0x5)+parseInt(U(-0x44,-0x24))/0x6+-parseInt(U(-0x9,-0x8))/0x7*(-parseInt(U(-0x1b,0x14))/0x8)+parseInt(U(-0x2,-0x1a))/0x9+-parseInt(U(-0x6b,-0x40))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x849b9));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[V(0xba,0xe0)](b,e):f,j;if(typeof Reflect===V(0xf5,0xdd)&&typeof Reflect[V(0xf,0x42)]===V(0x83,0x53))h=Reflect[V(-0xd,0x42)](a,b,e,f);else for(var k=a[V(0xdb,0xce)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function V(a,b){return _enb(b- -0x177,a);}return g>0x3&&h&&Object[V(0x75,0x3f)](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ac;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enX(a,b){return _enb(a-0x3e4,b);}import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';function _ena(){const b7=['calculateAssignmentUnits','shouldSkipNonWorkingTime','resource','add','set','effort','end','unscheduled','ion','calculateStartDate','4169964aVFuGk','regularAssignmentsByCalendar','hasInputOnDuration','hasInputOnlyOnEffort','get','useEventAvailabilityIterator','HasProposedValue','ignoreTimePhasedData','calculateAssignmentsTypeSelector','isTimePhased','489087tVJgZo','endDate','calculateDuration','minAssignmentProposedStartDate','timePhasedDispatcher','calculateProposedEndOffsetRaw','effortDriven','delete','calculateProjectedXDateByEffort','timePhasedData','effectiveDirection','Backward','childEvents','call','12tJfgMn','selector','effectiveCalendar','proposedEndDateArgs','6834982QvDosN','skipNonWorkingTimeInDurationWhenSchedulingManually','hasInputOnAssignments','MAX_VALUE','proposedTotalUnits','calculateTotalAssignmentsEffort','getDateShifter','prototype','proposedStartOffsets','hasPreviousEffortValue','proposedMirror','isChangingOnlyEffort','isChangingOnlyDuration','expandTrailingAssigmentsByEffort','time','calculateAssignmentsByCalendar','positioning','proposedEndOffset','FixedEffort','effortUnit','forEach','proposedStartDateMin','addProposedValueFlag','calculateTimePhasedDispatcher','effectiveCalendarsCombination','calculateProjectedDuration','Millisecond','forEachAvailabilityInterval','8muFUXn','isPhantomTimePhased','prepare','ignoreResourceCalendar','Forward','calculateMaxAssignmentProposedEndDate','calculateMinAssignmentProposedStartDate','effectiveSchedulingMode','FixedDuration','hasInputOnEndDate','maxCalendarRange','isDurationDefinedByEffort','has','some','input','dispatcher','proposedEndDate','$convertDuration','calculateProjectedEffort','calculateEffort','proposedStartOffset','getTime','hasPhantomTimePhasedAssignments','minAssignment','event','sort','resolution','isManuallyScheduled','assigned','length','size','calculateProposedEndDateMax','getBaseOptionsForEffortCalculations','calculateProposedStartDateMin','calculateProposedStartDate','formulaId','collectAssignmentsByCalendar','startDate','714745fPModj','calculateProposedEndOffsets','start','789PrcTCs','calculateEndDate','maxAssignmentProposedEndDate','object','Unknown\x20duration\x20scenario','hasInputOnEffort','getOwnPropertyDescriptor','isChangingOnlyEffortOnAssignment','isConstrainedAlongDirection','move','push','isSegmented','collectInfo','write','isUserTimePhased','isForward','skipNonWorkingTime','calculateTimePhasedIntervalsCache','minOffset','defineProperty','assignment','proposedEndDateMax','decorate','duration','hasTimePhasedInput','getCalendarsWorkStatus','assignmentsTypeSelector','calculateProposedAssignmentDuration','direction','hasProposedAssignments','getBaseOptionsForDurationCalculations','calculateMaxAssignmentProposedEndDateIncludingPhantom','graph','progressing','assignmentsByCalendar','expandTrailingAssignmentsByDuration','proposedStartDate','proposedAssignmentDuration','getProject','function','project','assign','hasOnlyTimePhasedAssignments','Normal','calculateProposedEndDate','type','calculateProjectedXDateWithDuration','hasUnitsOnAllAssignments','hasOnlyRegularAssignments','9463790vyFCTn','proposedEndOffsets','1362lsvpyK','calculateProjectedXDate','isChangingOnlyEndDate','13521lrSZBF','calculateRegularAssignmentsByCalendar','calculateProposedStartOffsets','calculateEffortPure','expandTrailingAssigmentsByDates','calculateSelector','max','timePhasedIntervalsCache','purpose','ignoreSegments','phantomEndOffset','units','getCalendarsWorking'];_ena=function(){return b7;};return _ena();}const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){function W(a,b){return _enb(a- -0x1f6,b);}this[W(0xd,0x5a)]=[];}[_enX(0x591,0x5c0)](a){function Y(a,b){return _enX(a- -0x628,b);}this['timePhasedData'][Y(-0x97,-0xe0)]({'time':a['startDate'],'type':'start','assignment':a[Y(-0x8d,-0xe2)]},{'time':a[Y(-0x49,-0x7a)],'type':Y(-0x58,-0x40),'assignment':a[Y(-0x8d,-0xa6)]});}[_enX(0x60e,0x606)](){function Z(a,b){return _enX(b- -0x375,a);}this[Z(0x22b,0x272)][Z(0x2a4,0x2b0)]((a,b)=>{return a['time']-b['time'];});}['move'](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a0(0x224,0x229)][a0(0x289,0x26b)]-0x1){if(g[a0(0x285,0x240)]<=c){e[a0(0x1ff,0x227)](g[a0(0x19a,0x1dd)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a0(0x251,0x240)]){e[a0(0x277,0x227)](g['assignment']);if(f(d,c,e)===![])return-0x1;return b;}}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a0(0x22d,0x229)][a0(0x2bb,0x26b)];k+=h){const n=this[a0(0x1d9,0x229)][k];const o=a?n[a0(0x1fd,0x240)]>=d:n['time']<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a0(0x1ee,0x240)]<c:n['time']>c;if(!p){if(j[a0(0x232,0x263)]()!==n[a0(0x221,0x240)]['getTime']()){if(a){if(f(j,n['time'],e)===![])return-0x1;}else{if(f(n['time'],j,e)===![])return-0x1;}}const q=a?n[a0(0x1a6,0x1f6)]===a0(0x2bb,0x276):n['type']===a0(0x25a,0x212);if(q)e[a0(0x1d2,0x20f)](n[a0(0x22c,0x1dd)]);else e[a0(0x238,0x227)](n[a0(0x18e,0x1dd)]);}l=k;j=n['time'];}if(l===void 0x0){return k;}function a0(a,b){return _enX(b- -0x3be,a);}const m=this['timePhasedData'][l];if(a){e[a0(0x24f,0x227)](m[a0(0x202,0x1dd)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a0(0x256,0x227)](m['assignment']);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this[a1(0x2e3,0x334)]=null;this['dispatcher']=null;this[a1(0x383,0x34a)]=![];this[a1(0x318,0x2e6)]=![];function a1(a,b){return _enX(b- -0x2f0,a);}this['hasInputOnEndDate']=![];this[a1(0x323,0x2ff)]=null;this[a1(0x2c9,0x302)]=![];this[a1(0x2c7,0x309)]=![];}get['isChangingOnlyEffort'](){function a2(a,b){return _enX(b- -0x6a0,a);}const a=this[a2(-0x78,-0x85)];return this['hasInputOnEffort']&&!Boolean(a[a2(-0x46,-0x86)][a2(-0x119,-0xc8)](StartVar)&VariableInputState[a2(-0xc0,-0xc6)])&&!Boolean(a[a2(-0x30,-0x86)][a2(-0x109,-0xc8)](EndVar)&VariableInputState[a2(-0x96,-0xc6)])&&!Boolean(a[a2(-0x95,-0x86)][a2(-0xcb,-0xc8)](DurationVar)&VariableInputState['HasProposedValue'])&&!a[a2(-0x13a,-0x101)];}get[_enX(0x5fc,0x652)](){const a=this[a3(0x62a,0x5ee)];function a3(a,b){return _enX(b- -0x2d,a);}return this[a3(0x5d9,0x5a9)]&&!Boolean(a['input'][a3(0x5c1,0x5ab)](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a3(0x5ec,0x5ed)]['get'](EndVar)&VariableInputState[a3(0x5f8,0x5ad)])&&!Boolean(a['input'][a3(0x5cf,0x5ab)](EffortVar)&VariableInputState[a3(0x589,0x5ad)])&&!a[a3(0x570,0x572)];}get[_enX(0x5bc,0x583)](){function a4(a,b){return _enX(b- -0x43d,a);}const a=this[a4(0x199,0x1de)];const b=this['proposedEndDateArgs'];return this[a4(0x1b9,0x1d8)]&&(!b||!b[0x0])&&!Boolean(a[a4(0x195,0x1dd)]['get'](StartVar)&VariableInputState[a4(0x19d,0x19d)])&&!Boolean(a[a4(0x194,0x1dd)][a4(0x1dd,0x19b)](DurationVar)&VariableInputState['HasProposedValue'])&&!Boolean(a['input'][a4(0x1ea,0x19b)](EffortVar)&VariableInputState[a4(0x176,0x19d)])&&!a[a4(0x12d,0x162)];}*[_enX(0x593,0x5c8)](){const a=this['event'];this[a5(0x237,0x24d)]=yield HasProposedNotPreviousValue(a['$']['effort']);this[a5(0x1dc,0x1e9)]=yield HasProposedNotPreviousValue(a['$'][a5(0x169,0x1b1)]);function a5(a,b){return _enX(b- -0x3ed,a);}this['hasInputOnEndDate']=yield HasProposedNotPreviousValue(a['$'][a5(0x23b,0x1f2)]);this[a5(0x258,0x22e)]=yield a['$'][a5(0x20e,0x1f5)];this['proposedEndDateArgs']=yield ProposedArgumentsOf(a['$'][a5(0x240,0x1f2)]);this[a5(0x1fe,0x205)]=yield*a[a5(0x1ea,0x1b7)]();this[a5(0x1c2,0x20c)]=yield HasPreviousValue(a['$'][a5(0x235,0x1e2)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a6(0x44,0x6f)]=null;this['assigned']=null;function a6(a,b){return _enX(b- -0x5b5,a);}this[a6(0x1f,0x2)]=null;this[a6(-0x57,-0x4)]=null;this[a6(0x58,0x1)]=null;this['hasPhantomTimePhasedAssignments']=null;}*[_enX(0x593,0x5da)](){const a=this[a7(0x51c,0x4d3)];const b=this[a7(0x492,0x4d7)]=yield a['$'][a7(0x4e9,0x4d7)];function a7(a,b){return _enX(b- -0x151,a);}if(b[a7(0x4a0,0x4d9)]===0x0){this[a7(0x463,0x466)]=!![];this[a7(0x40c,0x460)]=![];this[a7(0x4c5,0x4d1)]=![];this[a7(0x442,0x465)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$'][a7(0x4f1,0x49c)];if(this['hasOnlyRegularAssignments']===null&&e[a7(0x4c7,0x48c)]){this[a7(0x412,0x466)]=![];c++;}if(this[a7(0x43c,0x460)]===null&&!e[a7(0x486,0x48c)]){this[a7(0x496,0x460)]=![];c++;}if(this[a7(0x501,0x4d1)]===null&&e[a7(0x472,0x4bc)]){this[a7(0x4d5,0x4d1)]=!![];c++;}if(this[a7(0x4af,0x465)]===null&&!e['hasPreviousValueForUnits']){this[a7(0x490,0x465)]=![];c++;}if(c===0x4)break;}if(this[a7(0x4a9,0x466)]===null)this[a7(0x459,0x466)]=!![];if(this[a7(0x44a,0x460)]===null)this[a7(0x421,0x460)]=!![];if(this[a7(0x4ee,0x4d1)]===null)this[a7(0x510,0x4d1)]=![];if(this['hasUnitsOnAllAssignments']===null)this[a7(0x494,0x465)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a[a8(-0x16a,-0x148)];class c extends a{*['calculateProposedTotalUnits'](){function a9(a,b){return a8(b-0x2b6,a);}const d=yield this['$'][a9(0x1a3,0x17d)];let e=0x0;for(const f of d){const g=yield f['$'][a9(0xf0,0x121)];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$'][a9(0xe7,0x11d)]);e+=h;}return e;}*['calculateProposedStartDate'](){function aa(a,b){return a8(a-0x174,b);}return yield ProposedOrPreviousValueOf(this['$'][aa(0x44,0x88)]);}*['calculateProposedEndDate'](){function ab(a,b){return a8(b-0x4f2,a);}return yield ProposedOrPreviousValueOf(this['$'][ab(0x3a7,0x370)]);}*[a8(-0x134,-0x16d)](){function ac(a,b){return a8(a-0x352,b);}const d=yield this['$']['proposedStartDate'];const e=yield this['$'][ac(0x1d2,0x219)];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$']['proposedEndDate'];const e=yield this['$'][ad(-0x63,-0x79)];function ad(a,b){return a8(a-0xc7,b);}return d>e?d:e??d;}*['calculateProposedStartOffsets'](){function ae(a,b){return a8(b-0x499,a);}const d=yield this['$'][ae(0x31f,0x360)];const e=new Map();let f;let g=Number[ae(0x302,0x32b)];for(const h of d){if(yield*h[ae(0x2c6,0x315)]()){const i=yield*h['calculateProposedStartOffsetRaw']();e[ae(0x30b,0x306)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a8(-0x12e,-0x168)](){const d=yield this['$'][af(0x13a,0xf7)];const e=new Map();let f;function af(a,b){return a8(a-0x273,b);}let g=Number['MAX_VALUE'];for(const h of d){if(yield*h[af(0xef,0x138)]()){const i=yield*h[af(0xf5,0xc4)]();e[af(0xe0,0x131)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateAssignmentsTypeSelector'](){function ag(a,b){return a8(b-0x2af,a);}const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d[ag(0xa3,0xe1)]();return d;}*[a8(-0x19f,-0x1a1)](){const d=new TimePhasedEventSelector();function ah(a,b){return a8(a-0x2c,b);}d[ah(-0x111,-0xbf)]=this;yield*d[ah(-0x1a2,-0x1aa)]();return d;}*[a8(-0x15a,-0x126)](d){const e=TimePhasedEventAssignmentDispatcher['new']({'context':TimePhasedEventAssignmentCycleResolutionContext});function ai(a,b){return a8(a-0x74b,b);}e['collectInfo'](d,this['$'][ai(0x61b,0x5cf)],StartVar);e[ai(0x57d,0x5ac)](d,this['$'][ai(0x5c9,0x5ae)],EndVar);e[ai(0x57d,0x5b9)](d,this['$'][ai(0x588,0x5b9)],DurationVar);e[ai(0x57d,0x5a0)](d,this['$'][ai(0x5b9,0x5c3)],EffortVar);const f=yield this['$']['assigned'];const g=[];const h=[];const i=[];const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$'][ai(0x61b,0x608)])]);h[ai(0x57b,0x5a1)]([null,yield HasProposedNotPreviousValue(k['$']['endDate'])]);i[ai(0x57b,0x557)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x588,0x5b8)])]);j['push']([null,yield HasProposedNotPreviousValue(k['$']['effort'])]);}if(g[ai(0x603,0x5cc)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[ai(0x603,0x618)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i[ai(0x603,0x653)](([l,m])=>m)){e[ai(0x5f0,0x5f5)](TimePhasedDuration);}if(j[ai(0x603,0x5ce)](([l,m])=>m)){e[ai(0x5f0,0x5a5)](TimePhasedEffort);}return e;}*[a8(-0x1c9,-0x207)](){const d=new Map();const e=new Map();const f=yield this['$'][aj(0x337,0x2f9)];for(const g of f){if(yield*g['isTimePhased']()){e[aj(0x2dd,0x29d)](g,{'proposedStartOffset':yield g['$'][aj(0x32f,0x324)],'proposedEndOffset':yield g['$'][aj(0x310,0x2f1)]});}}function aj(a,b){return a8(a-0x470,b);}return function*(h,i){const j=String(i[ak(0x5da,0x5f1)]())+'/'+(h?'1':'0');let k=d[ak(0x591,0x5c8)](j);function ak(a,b){return aj(a-0x2aa,b);}if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x56e,0x551)](i,!![],m['proposedStartOffset'],TimeUnit[ak(0x5c3,0x58c)]);n=yield*l[ak(0x550,0x559)](n,!![]);o=yield*l[ak(0x574,0x5a9)](n,!![]);}else{const p=yield l['$']['selector'];o=yield*l[ak(0x56e,0x56f)](i,![],p['isUserTimePhased']?m['proposedEndOffset']:yield l['$'][ak(0x580,0x576)],TimeUnit[ak(0x5c3,0x580)]);n=yield*l[ak(0x574,0x5c9)](o,![]);}if(n&&o)k[ak(0x54a,0x505)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[ak(0x5c7,0x5ca)]();d[ak(0x587,0x533)](j,k);return k;};}*[a8(-0x18e,-0x1e3)](){const d=yield*this[al(-0x115,-0x115)]();function al(a,b){return a8(b-0x95,a);}if(d||(yield this['$'][al(-0x144,-0x13a)])){return yield*super['calculateStartDate']();}else{const e=yield this['$'][al(-0xdc,-0xe4)];const f=yield*this[al(-0x6d,-0x8f)](e[al(-0x17d,-0x129)]);const g=yield this['$']['dispatcher'];const h=yield this['$'][al(-0x10f,-0xea)];const i=yield PreviousValueOf(this['$']['startDate']);if(!(yield*this[al(-0xbb,-0xa5)]())&&!(yield this['$'][al(-0xc7,-0xfb)])&&f){if(g[al(-0x7f,-0xa6)][al(-0xc1,-0xf4)](_ene)===CalculateProposed&&i!=null&&!h[al(-0x172,-0x12d)]){const j=yield ProposedOrPrevious;if(e[al(-0x15c,-0x129)]===Direction[al(-0x76,-0xbc)]){yield*this[al(-0xc7,-0x10b)](i,j,!![]);}else{if(j<i){yield*this[al(-0x150,-0x10b)](i,j,![]);}}}return yield*super[al(-0x135,-0xf9)]();}else{if(e[al(-0x159,-0x129)]===Direction[al(-0x92,-0xbc)]){const k=yield*super['calculateStartDate']();const l=yield this['$'][al(-0x13a,-0xeb)];return l?l<k?l:k:k;}else{if(g[al(-0xba,-0xa6)]['get'](_ene)===CalculateProposed&&h[al(-0xe1,-0x12d)]){return yield*this[al(-0x121,-0x117)](yield this['$'][al(-0x9a,-0xed)],![],yield this['$'][al(-0x139,-0x12e)]);}if(g[al(-0xa0,-0xa6)][al(-0x11d,-0xf4)](_ene)===CalculateProposed&&!h[al(-0x12a,-0x12d)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(-0x108,-0x10b)](i,m,![]);}return yield*super[al(-0xc0,-0xf9)]();}}}}*[a8(-0x12b,-0x15b)](){function am(a,b){return a8(b-0x574,a);}const d=yield*this[am(0x3ec,0x3ca)]();if(d||(yield this['$'][am(0x38a,0x3a5)])){return yield*super['calculateEndDate']();}else{const e=yield this['$'][am(0x437,0x3fb)];const f=yield*this[am(0x4a7,0x450)](e[am(0x3f1,0x3b6)]);if(!(yield*this[am(0x43b,0x43a)]())&&!(yield this['$'][am(0x3f1,0x3e4)])&&f){return yield*super[am(0x3f7,0x449)]();}else{if(e['direction']===Direction[am(0x43e,0x423)]){const g=yield this['$'][am(0x473,0x42e)];const h=yield this['$'][am(0x430,0x3f5)];if(g[am(0x47f,0x439)][am(0x422,0x3eb)](_end)===CalculateProposed&&h[am(0x3ad,0x3b2)]){return yield*this['calculateProjectedXDateWithDuration'](yield this['$'][am(0x45d,0x444)],!![],yield this['$'][am(0x371,0x3b1)]);}const i=yield PreviousValueOf(this['$'][am(0x3d0,0x3f2)]);if(g[am(0x459,0x439)]['get'](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[am(0x3e9,0x3d4)](i,j,!![]);}return yield*super['calculateEndDate']();}else{const k=yield*super[am(0x447,0x449)]();const l=yield this['$']['maxAssignmentProposedEndDate'];return l>k?l:k;}}}}*[a8(-0x125,-0xde)](){function an(a,b){return a8(b-0x161,a);}const d=yield this['$']['assigned'];for(const e of d){const f=yield e['$'][an(0x1a,-0x13)];if(!f[an(-0x14,-0x29)])return![];}return!![];}*[a8(-0x1ab,-0x191)](){const d=yield this['$'][ao(0xed,0x118)];function ao(a,b){return a8(a-0x2ad,b);}return d[ao(0x102,0x11b)];}*[a8(-0x166,-0x10f)](){const d=yield this['$'][ap(0x428,0x45b)];function ap(a,b){return a8(a-0x59c,b);}return d[ap(0x436,0x3fb)];}*[a8(-0x165,-0x11c)](){function aq(a,b){return a8(b-0x5ae,a);}const d=yield this['$'][aq(0x45d,0x43a)];return d['isChangingOnlyDuration'];}*['isChangingOnlyEndDate'](){function ar(a,b){return a8(a-0x5ef,b);}const d=yield this['$'][ar(0x47b,0x444)];return d[ar(0x44a,0x41f)];}*[a8(-0x181,-0x174)](){const d=yield*this[as(0x137,0x155)]();function as(a,b){return a8(b-0x2ff,a);}if(d||(yield this['$'][as(0x136,0x130)])){return yield*super[as(0x1a9,0x17e)]();}else{const e=yield this['$'][as(0x151,0x186)];const f=e['direction']===Direction['Forward'];const g=yield this['$']['dispatcher'];const h=yield this['$'][as(0x130,0x180)];if(g['resolution']['get'](_enc)===durationFormula[as(0x17f,0x1cd)]&&!h[as(0x13f,0x13d)]){const i=yield*super[as(0x196,0x17e)]();yield*this[as(0xff,0x148)](i,f);return i;}if(g[as(0x1d9,0x1c4)][as(0x15e,0x176)](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&!(h[as(0x203,0x1b8)][as(0x179,0x176)](DurationVar)&VariableInputState[as(0x19d,0x178)])){const j=yield ProposedOrPrevious;return j;}if(g[as(0x20a,0x1c4)][as(0x12a,0x176)](_enc)===CalculateProposed&&!h[as(0x102,0x13d)]&&h['input'][as(0x128,0x176)](DurationVar)&VariableInputState[as(0x18b,0x178)]){const k=yield ProposedOrPrevious;yield*this[as(0x175,0x148)](k,f);const l=yield*this[as(0x136,0x14f)]();const m=yield this['$'][as(0x145,0x14a)];return l?k>m?m:k:k;}if(!h['hasTimePhasedInput']){const n=yield ProposedOrPrevious;yield*this['expandTrailingAssignmentsByDuration'](n,f);return n;}else if(h['hasTimePhasedInput']){const o=yield*this[as(0x194,0x14f)]();const p=yield this['$'][as(0x173,0x14a)];if(o){return p;}else{return Math[as(0x140,0x161)](p,yield ProposedOrPrevious);}}else{throw new Error(as(0x1ff,0x1d7));}}}*[a8(-0x142,-0xf5)](){function at(a,b){return a8(a-0xf0,b);}const d=yield this['$'][at(-0x87,-0x60)];if(d[at(-0x47,-0x30)]>0x0||(yield this['$']['isSegmented']))return yield*super[at(-0x52,-0x81)]();else{const e=yield*this[at(-0x5e,-0x87)]();const f=yield this['$'][at(-0xc8,-0xba)];if(e===SchedulingMode[at(-0xbf,-0xc7)]){if(f[at(-0x47,-0x8)]>0x0){if(yield*this[at(-0x76,-0x24)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][at(-0xa2,-0xdd)]);if(g<=h){return g;}else{const i=yield this['$'][at(-0x89,-0x85)];yield*this['expandTrailingAssigmentsByEffort'](g,h,i['direction']===Direction[at(-0x61,-0x1f)]);return g;}}else{return yield*this[at(-0xb1,-0x84)]();}}else{return yield*super[at(-0x52,-0x6b)]();}}else{return yield*this['calculateEffortPure']();}}}*[a8(-0x1a1,-0x18b)](){if(yield this['$'][au(0x4ae,0x4b1)]){return yield*super[au(0x4dc,0x4a4)]();}function au(a,b){return a8(a-0x67d,b);}const d=yield this['$'][au(0x544,0x570)];if(d[au(0x546,0x569)]>0x0){return yield*this[au(0x511,0x534)]();}else{const e=yield ProposedOrPreviousValueOf(this['$']['effort']);if(e===void 0x0){return yield*this['calculateProjectedEffort'](yield this['$']['startDate'],yield this['$'][au(0x4fb,0x53d)]);}else{return e;}}}*[a8(-0x16c,-0x17f)](){let d=0x0;const e=yield this['$']['assigned'];for(const f of e){d+=yield*this['getProject']()[av(0x461,0x4af)](yield f['$'][av(0x40c,0x461)],yield f['$'][av(0x458,0x495)],TimeUnit[av(0x4ac,0x49c)]);}function av(a,b){return a8(b-0x5f3,a);}return yield*this['getProject']()['$convertDuration'](d,TimeUnit[av(0x49e,0x49c)],yield this['$'][av(0x45d,0x495)]);}*[a8(-0x197,-0x14e)](d){function aw(a,b){return a8(a-0x51,b);}return yield*d[aw(-0x146,-0x15e)](null);}*['getDateShifter'](d){function ax(a,b){return a8(b-0x415,a);}if(yield*this[ax(0x288,0x2cb)]()){const e=this;const f=yield this['$'][ax(0x2c7,0x283)];return function*(g){function ay(a,b){return ax(b,a-0xe5);}return yield*e[ay(0x37f,0x353)](g,d,f);};}else{return yield*super[ax(0x2b0,0x2aa)](d);}}*[a8(-0x14a,-0x192)](){const d=yield*this[az(0x157,0x16b)]();const e=yield this['$'][az(0x128,0x152)];function az(a,b){return a8(a-0x2a5,b);}return d!==SchedulingMode[az(0x158,0x13a)]&&d!==SchedulingMode[az(0xf6,0x11f)]&&(e||d===SchedulingMode[az(0x146,0x173)])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this['isChangingOnlyEndDate']())||d===SchedulingMode['FixedUnits']&&(yield*this[az(0x180,0x13a)]())&&(yield*this[az(0xfa,0xbb)]());}*[a8(-0x196,-0x1be)](){function aA(a,b){return a8(b-0x576,a);}if((yield*this[aA(0x37f,0x3c6)]())&&(yield*this[aA(0x3fc,0x42c)]())){return(yield this['$'][aA(0x3b8,0x3e4)])>0x0;}else{return yield*super[aA(0x3ff,0x3e0)]();}}*['expandTrailingAssignmentsByDuration'](d,e=!![]){const f=yield this['$']['proposedAssignmentDuration'];if(f==null)return;function aB(a,b){return a8(a-0x4a9,b);}if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aB(0x327,0x2f6)]);const h=yield*this[aB(0x2fd,0x352)](g,!![],d-f,void 0x0,{'purpose':aB(0x348,0x2f7)});yield*this[aB(0x309,0x2c6)](g,h,e);}else{const i=yield PreviousValueOf(this['$']['startDate']);const j=yield*this[aB(0x2fd,0x2e6)](i,![],d-f,void 0x0,{'purpose':'positioning'});yield*this[aB(0x309,0x2df)](i,j,e);}}}*[a8(-0x1a0,-0x1ae)](d,e,f=!![]){if(d[aC(0x60a,0x5fe)]()===e['getTime']()){return;}const g=yield this['$'][aC(0x611,0x5e1)];const h=[];function aC(a,b){return a8(a-0x74a,b);}for(const i of g){if(yield*i[aC(0x5c6,0x5b3)]()){if(f){const j=yield PreviousValueOf(i['$']['endDate']);if(j&&j[aC(0x60a,0x616)]()===d[aC(0x60a,0x60d)]())h[aC(0x57a,0x5c8)](i);}else{const k=yield PreviousValueOf(i['$'][aC(0x61a,0x61e)]);if(k&&k['getTime']()===d[aC(0x60a,0x60a)]())h[aC(0x57a,0x58a)](i);}}}this[aC(0x598,0x57d)][aC(0x5bb,0x5de)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aC(a- -0x78d,b);}h[aD(-0x1a0,-0x184)](l=>{function aE(a,b){return aD(a-0x6c3,b);}this[aE(0x4c6,0x4b0)][aE(0x4b3,0x469)](f?l['$'][aE(0x4fe,0x553)]:l['$'][aE(0x550,0x56c)],e,![]);});},'once':!![]}});}*[a8(-0x164,-0x17f)](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aF(-0x6e,-0x29)]):yield PreviousValueOf(this['$'][aF(-0x10,0x29)]);const h=yield this['$'][aF(0x12,0x20)];const i=new Set();for(const l of h){if(yield*l[aF(-0x5f,-0x2b)]()){if(f){const m=yield PreviousValueOf(l['$'][aF(0x22,-0x29)]);if(m&&m[aF(-0x2f,0x19)]()===g[aF(0x5a,0x19)]())i['add'](l);}else{const n=yield PreviousValueOf(l['$'][aF(0x33,0x29)]);if(n&&n[aF(0x62,0x19)]()===g[aF(0x35,0x19)]())i[aF(-0x9,-0x3b)](l);}}}const j=yield*this[aF(0x3f,0x28)](function*(o){function aG(a,b){return aF(b,a- -0xc8);}return i[aG(-0xb8,-0xe4)](o)||!(yield*o[aG(-0xf3,-0xe0)]());});const k=yield*this[aF(0x2b,-0x22)](g,f,d-e,void 0x0,void 0x0,j);function aF(a,b){return a8(b-0x159,a);}this[aF(-0xa6,-0x59)][aF(-0x52,-0x36)]({'commitFinalized':{'fn':()=>{i['forEach'](o=>{function aH(a,b){return _enb(b-0x66,a);}this[aH(0x26d,0x229)][aH(0x25d,0x216)](f?o['$'][aH(0x2b6,0x261)]:o['$'][aH(0x2d5,0x2b3)],k,![]);});},'once':!![]}});}*[a8(-0x188,-0x1d0)](){return!![];}*[a8(-0x1bf,-0x1cf)](){function aI(a,b){return a8(b-0x204,a);}const d=yield this['$']['effectiveDirection'];return d['direction']===Direction[aI(0x8c,0xb3)]?yield*this[aI(0xdd,0xac)](yield this['$'][aI(0x96,0xa8)],(yield*this[aI(0x11c,0xc5)]())?yield*this[aI(0x19,0x49)]():yield this['$'][aI(0xe3,0xda)],void 0x0,{'isForward':!![]}):yield*this[aI(0xb5,0xac)](yield this['$']['minAssignmentProposedStartDate'],yield this['$'][aI(0x61,0x3f)],void 0x0,{'isForward':![]});}*[a8(-0x158,-0x139)](d,e,f,g,...h){const i=yield this['$'][aJ(-0x1ef,-0x19e)];function aJ(a,b){return a8(b- -0x25,a);}const j=g?.[aJ(-0x244,-0x1f0)]!==void 0x0?g:i[aJ(-0x1f0,-0x1e3)]===Direction[aJ(-0x158,-0x176)]?Object['assign']({},g,{'isForward':!![]}):Object[aJ(-0x1bb,-0x1d6)]({},g,{'isForward':![]});return yield*super['calculateProjectedDuration'](d,e,f,j,...h);}*[a8(-0x1a3,-0x1a3)](){function aK(a,b){return a8(a-0x5f4,b);}return yield*this[aK(0x4c3,0x4c8)](function*(d){return!(yield*d['isTimePhased']());});}*[a8(-0x162,-0x149)](){function aL(a,b){return a8(a-0x400,b);}return yield*this[aL(0x2cf,0x2a8)]();}*[a8(-0x131,-0x12d)](d){const e=yield this['$']['effectiveCalendar'];const f=yield this['$'][aM(-0xb7,-0x107)];const g=this[aM(-0x132,-0x188)]();const h=yield*this[aM(-0xb8,-0x65)]();const i=(yield this['$'][aM(-0xd0,-0xa1)])||h&&!g[aM(-0xee,-0xf9)];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aM(-0x113,-0xf4)];const m=i||(yield k['$']['ignoreResourceCalendar']);if(l){const n=m?e:yield l['$'][aM(-0xf1,-0x121)];let o=j[aM(-0x107,-0x126)](n);if(!o){o=[];j['set'](n,o);}o['push'](k);}}}function aM(a,b){return a8(a-0x82,b);}return j;}*['forEachAvailabilityInterval'](d,e){const f=d[aN(0x5a9,0x5aa)]??aN(0x5a1,0x5e5);if(f===aN(0x5bd,0x5e5)||(yield*this[aN(0x57f,0x59c)]())||d[aN(0x5a3,0x5ab)]||(yield this['$']['isSegmented'])){return yield*super[aN(0x643,0x5f0)](d,e);}const g=d[aN(0x527,0x57b)]!==![];const h=yield this['$'][aN(0x58f,0x5d3)];const i=this[aN(0x53d,0x592)]();const j=yield*this[aN(0x641,0x60c)]();const k=yield this['$'][aN(0x60f,0x5ba)];const l=yield this['$'][aN(0x5dd,0x5ed)];const m=(yield this['$'][aN(0x5c1,0x5f4)])||d[aN(0x5c7,0x5f4)];const n=d[aN(0x5e3,0x5c0)]??![];const o=i[aN(0x614,0x5fb)];if(o){d=Object[aN(0x56a,0x595)]({'maxRange':o},d);}const p=yield this['$'][aN(0x561,0x5a9)];const q=yield*p(g,g?d['startDate']:d[aN(0x59a,0x5c4)]);let r=g?0x0:q[aN(0x5ec,0x5cc)][aN(0x5e2,0x60e)]-0x1;let s=g?d[aN(0x643,0x616)]:d[aN(0x5cd,0x5c4)];function aN(a,b){return a8(b-0x746,a);}const t=new Set();const u=l[aN(0x5ca,0x5f0)](d,(v,w,x)=>{const y=x[aO(0x4a5,0x45f)]();const z=x[aO(0x4ce,0x4ce)]();function aO(a,b){return aN(b,a- -0xe0);}r=q[aO(0x495,0x4ea)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aO(0x495,0x4cd)](g,r,s,g?w:v,t,(A,B,C)=>{function aP(a,b){return aO(b- -0x13f,a);}if(y[aP(0x3b9,0x39e)](h)&&(n||someInSet(C,D=>{function aQ(a,b){return aP(b,a- -0x527);}return m||D[aQ(-0x152,-0x1a2)]||y['get'](D[aQ(-0x195,-0x1ea)]['effectiveCalendar'])||j&&!i['skipNonWorkingTimeInDurationWhenSchedulingManually'];})||z[aP(0x3d3,0x3df)](D=>k[aP(0x3b7,0x3de)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*['calculateHasOnlyRegularAssignmentsRaw'](){function aR(a,b){return a8(b-0xe6,a);}const d=yield this['$']['assigned'];for(const e of d){if(yield*e[aR(-0xcf,-0xe6)]())return![];}return!![];}*[a8(-0x1aa,-0x1b7)](){const d=yield this['$']['assignmentsTypeSelector'];return d['hasOnlyRegularAssignments'];}*['hasOnlyTimePhasedAssignments'](){function aS(a,b){return a8(b-0x5ac,a);}const d=yield this['$'][aS(0x3f2,0x3ec)];return d[aS(0x435,0x3fc)];}*[a8(-0x13f,-0x149)](){function aT(a,b){return a8(a- -0x4c,b);}const d=yield this['$'][aT(-0x20c,-0x23f)];return d[aT(-0x18b,-0x149)];}*['calculateMinAssignmentProposedStartDate'](){let d=MAX_DATE;const e=yield this['$'][aU(0x2c,0x36)];function aU(a,b){return a8(a-0x165,b);}for(const f of e){const g=yield f[aU(-0x2,0x9)]['$'][aU(0x35,0x8)];if(g&&g<d)d=g;}return d['getTime']()-MAX_DATE[aU(0x25,-0x2a)]()?d:null;}*[a8(-0x150,-0x14d)](){function aV(a,b){return a8(a-0x1ff,b);}let d=MIN_DATE;const e=yield this['$']['assigned'];for(const f of e){const g=yield f[aV(0x98,0x80)]['$']['endDate'];if(g&&g>d)d=g;}return d[aV(0xbf,0xf4)]()-MIN_DATE[aV(0xbf,0xc0)]()?d:null;}*[a8(-0x1bb,-0x1f7)](){let d=MIN_DATE;const e=yield this['$'][aW(0x1b6,0x168)];function aW(a,b){return a8(a-0x2ef,b);}for(const f of e){const g=(yield*f['isTimePhased']())?(yield*f[aW(0x123,0xf5)]())?yield f[aW(0x188,0x141)]['$'][aW(0x16d,0x1c4)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d['getTime']()-MIN_DATE['getTime']()?d:null;}*[a8(-0x143,-0x12e)](d,e,f){const g=yield*this[aX(0x3b4,0x36d)]();if(g||(yield this['$']['isSegmented'])){return yield*super[aX(0x41b,0x40b)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aX(0x3d2,0x400)];const i=new Map();function aX(a,b){return a8(a-0x55e,b);}for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][aX(0x3c5,0x3ed)];}i[aX(0x3cb,0x3b3)](l,n);}let j=0x0;const k=Object['assign'](yield*this[aX(0x429,0x466)](),{'startDate':d,'endDate':e},{'purpose':aX(0x3a5,0x393)});yield*this[aX(0x408,0x407)](k,(p,q,r,s)=>{function aY(a,b){return aX(a-0x1ea,b);}const t=r[aY(0x5b0,0x574)]();const u=p['getTime'](),v=q[aY(0x608,0x65a)](),w=v-u;let x=0x0;for(const y of t){x+=i['get'](y)||0x0;}if(!f){s['forEach'](z=>{function aZ(a,b){return aY(b- -0x3e,a);}x+=z[aZ(0x528,0x571)];});}j+=x*w*0.01;});return yield*this['getProject']()[aX(0x41a,0x45b)](j,TimeUnit[aX(0x407,0x3bd)],yield this['$'][aX(0x400,0x3fe)]);}*[a8(-0x1ac,-0x183)](d,e=!![],f,g,h){const i=yield*super[b0(-0x193,-0x1c8)](d,e,f,g,h);if(yield this['$'][b0(-0x1b6,-0x196)])return i;const j=yield*this[b0(-0x197,-0x197)]();function b0(a,b){return a8(a-0x19,b);}if(j){const k=yield this['$']['effectiveDirection'];if(k['direction']===Direction[b0(-0x138,-0x110)]&&e===![]){const l=yield this['$'][b0(-0x150,-0x134)];const m=l[b0(-0x1af,-0x17b)];if(m>0x0){return yield*l[b0(-0x125,-0xe0)]['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit['Millisecond']);}}else if(k[b0(-0x1a5,-0x1ea)]===Direction[b0(-0x15f,-0x13f)]&&e===!![]){const n=yield this['$'][b0(-0x18f,-0x1d2)];const o=n[b0(-0x1af,-0x1d1)];if(o>0x0){return yield*n[b0(-0x125,-0x140)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit[b0(-0x13e,-0x12f)]);}}}return i;}*['getBaseOptionsForDurationCalculations'](){function b1(a,b){return a8(b-0x634,a);}const d=yield*this[b1(0x4f9,0x4e6)]();if(d===SchedulingMode[b1(0x4c4,0x4e7)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b[b1(0x461,0x478)][b1(0x50e,0x4be)](this);}}*[a8(-0x17b,-0x181)](d,e=!![],f,g,h,i){if(yield this['$'][b2(0x2f1,0x2f1)]){return yield*super[b2(0x345,0x37c)](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b2(0x32e,0x361)];g=g!==void 0x0?g:yield this['$']['effortUnit'];const j=yield*this[b2(0x30c,0x2e9)]()[b2(0x37c,0x3b4)](f,g,TimeUnit[b2(0x369,0x385)]);if(d==null||f==null)return null;let k=d[b2(0x380,0x3bd)]();let l=j;if(l===0x0)return new Date(k);const m=Object[b2(0x30f,0x2ec)](yield*this[b2(0x304,0x2e7)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':b2(0x307,0x32b)},h);const n=yield*this[b2(0x316,0x367)]();if(h?.[b2(0x324,0x2dc)]==='positioning'||n){const r=new Map();const s=yield this['$']['assigned'];let t=0x0;const u=new Map();for(const x of s){const y=yield x['$'][b2(0x327,0x35b)];t+=y;u[b2(0x32d,0x32d)](x,y);}if(t===0x0){return yield*super[b2(0x345,0x346)](d,e,f,g,h,i);}for(const z of s){r[b2(0x32d,0x34b)](z,j*u['get'](z)/t);}const v=yield this['$']['assignmentsByCalendar'];const w=new Map();for(const [A,B]of v){for(const C of B){w[b2(0x32d,0x31e)](C,A);}}yield*this[b2(0x36a,0x331)](m,(D,E,F)=>{function b3(a,b){return b2(b- -0x3b3,a);}const G=D[b3(-0x41,-0x33)](),H=E[b3(-0x50,-0x33)](),I=H-G;for(const J of s){const K=w[b3(-0x6e,-0x7c)](J);if(F[b3(-0x97,-0xb4)]()[b3(-0xac,-0x7c)](K)){const L=r[b3(-0x57,-0x7c)](J);let M=u['get'](J);const N=M*I*0.01;if(N>=L){const O=e?G+L/(0.01*M):H-L/(0.01*M);if(e&&O>k||!e&&O<k){k=O;}r[b3(-0x1d,-0x6f)](J);}else{r[b3(-0xdb,-0x86)](J,L-N);}}}if(r[b3(-0x25,-0x2a)]===0x0)return![];});return new Date(k);}const o=i?i:yield this['$'][b2(0x334,0x2fa)];const p=new Map();(yield this['$']['assignmentsByCalendar'])[b2(0x363,0x34f)]((D,E)=>{function b4(a,b){return b2(a-0x253,b);}D[b4(0x5b6,0x5ae)](F=>p[b4(0x580,0x529)](F,E));});const q=new Map();function b2(a,b){return a8(a-0x4c0,b);}for(const [D,E]of o){let F=0x0;for(const G of E){F+=yield G['$'][b2(0x327,0x35f)];}q[b2(0x32d,0x30a)](D,F);}yield*this[b2(0x36a,0x3b4)](m,(H,I,J,K)=>{const L=J[b5(-0xed,-0xbd)]();const M=J[b5(-0xaf,-0xe6)]();const N=H[b5(-0x9c,-0x65)](),O=I['getTime'](),P=O-N;let Q=0x0;function b5(a,b){return b2(b- -0x3e5,a);}for(const S of L){Q+=q['get'](S)||0x0;}if(!i){K[b5(-0x35,-0x82)](T=>{function b6(a,b){return b5(b,a- -0x61);}if(M['get'](p['get'](T)))Q+=T[b6(-0x11f,-0x103)];});}const R=Q*P*0.01;if(R>=l){k=e?N+l/(0.01*Q):O-l/(0.01*Q);return![];}else{l-=R;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x133)],a8(-0x1b6,-0x1ff),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x1b7)],a8(-0x145,-0x188),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x12d)],'proposedStartDateMin',void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x15a)],a8(-0x1c5,-0x1e0),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x16b)],a8(-0x180,-0x1be),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],'maxAssignmentProposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x1b1)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x126)],a8(-0x1c0,-0x1f1),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x177)],a8(-0x16d,-0x11d),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[a8(-0x16a,-0x145)],a8(-0x17f,-0x19b),void 0x0);__decorate([field()],c['prototype'],a8(-0x174,-0x127),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x150)],a8(-0x169,-0x15a),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x1a8,-0x1c7),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x18c,-0x1c4),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x193)],'timePhasedIntervalsCache',void 0x0);__decorate([calculate(a8(-0x16d,-0x144))],c[a8(-0x16a,-0x16c)],'calculateProposedTotalUnits',null);__decorate([calculate(a8(-0x1b6,-0x186))],c['prototype'],a8(-0x133,-0x128),null);__decorate([calculate('proposedEndDate')],c[a8(-0x16a,-0x194)],a8(-0x1ae,-0x1e3),null);__decorate([calculate(a8(-0x15c,-0x16e))],c[a8(-0x16a,-0x1be)],'calculateProposedStartDateMin',null);__decorate([calculate(a8(-0x1c5,-0x1f1))],c[a8(-0x16a,-0x1a6)],a8(-0x136,-0x140),null);__decorate([calculate(a8(-0x169,-0x14d))],c[a8(-0x16a,-0x146)],a8(-0x1a2,-0x16e),null);__decorate([calculate(a8(-0x1a8,-0x19b))],c[a8(-0x16a,-0x13a)],a8(-0x12e,-0x129),null);__decorate([calculate('assignmentsTypeSelector')],c[a8(-0x16a,-0x1b1)],a8(-0x185,-0x155),null);__decorate([calculate(a8(-0x174,-0x16f))],c[a8(-0x16a,-0x115)],a8(-0x19f,-0x162),null);__decorate([calculate(a8(-0x17f,-0x1ad))],c[a8(-0x16a,-0x16e)],'calculateTimePhasedDispatcher',null);__decorate([calculate(a8(-0x19d,-0x17a))],c[a8(-0x16a,-0x182)],a8(-0x1c9,-0x1ef),null);function a8(a,b){return _enX(a- -0x761,b);}__decorate([calculate(a8(-0x1b5,-0x1ed))],c[a8(-0x16a,-0x121)],a8(-0x1bf,-0x1bf),null);__decorate([calculate('regularAssignmentsByCalendar')],c[a8(-0x16a,-0x17d)],a8(-0x1a3,-0x175),null);__decorate([calculate(a8(-0x180,-0x15c))],c[a8(-0x16a,-0x13c)],a8(-0x14f,-0x116),null);__decorate([calculate(a8(-0x12a,-0x145))],c[a8(-0x16a,-0x14c)],'calculateMaxAssignmentProposedEndDate',null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|