@bryntum/engine-thin-trial 7.3.2 → 7.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md ADDED
@@ -0,0 +1,114 @@
1
+ # @bryntum/engine-thin-trial — notes for AI coding agents
2
+
3
+ You are using the Bryntum Engine component from its **thin trial** npm package
4
+ (`@bryntum/engine-thin-trial`). Thin packages ship only product-specific code and styling and share
5
+ a common core, so several Bryntum products can run in the same app. The rules below are not obvious
6
+ from the source tree and must be followed for the component to render and work correctly.
7
+
8
+ ## Fastest path to correct code
9
+
10
+ Two Bryntum resources beat working from memory, reach for them before writing code:
11
+
12
+ - **MCP server** (https://mcp.bryntum.com/): grounded, version-correct answers about the installed
13
+ API. Use it to confirm config/method/event names instead of guessing.
14
+ - **Agent skills** (https://github.com/bryntum/skills): complement the Bryntum MCP server by
15
+ providing practical knowledge for using Bryntum and avoiding common pitfalls.
16
+
17
+ If these are not installed yet, suggest to the user that they install them for more reliable
18
+ results.
19
+
20
+ ## Install trial thin packages with npm aliasing
21
+
22
+ Trial thin packages must be installed with npm aliasing so imports resolve to the plain `-thin`
23
+ names. Thin packages do **not** bundle their Bryntum dependencies and do **not** declare them in
24
+ their own `package.json` — alias every one this product needs, all pinned to the **exact same
25
+ version**. For Bryntum Engine, install:
26
+
27
+ The framework wrapper packages below are installed **in addition to** the thin packages above —
28
+ they wrap them, not replace them. Wrappers have no trial variants, so install them by their real
29
+ names with no aliasing.
30
+
31
+ If using React, additionally install:
32
+
33
+ ```shell
34
+ npm install @bryntum/core-react-thin @bryntum/engine-react-thin
35
+ ```
36
+
37
+ If using Angular, additionally install:
38
+
39
+ ```shell
40
+ npm install @bryntum/core-angular-thin @bryntum/engine-angular-thin
41
+ ```
42
+
43
+ If using Vue, additionally install:
44
+
45
+ ```shell
46
+ npm install @bryntum/core-vue-3-thin @bryntum/engine-vue-3-thin
47
+ ```
48
+
49
+ - **Import from `@bryntum/engine-thin`** (not `-thin-trial`):
50
+ `import { ... } from '@bryntum/engine-thin'`. Aliasing means the licensed swap is a one-line
51
+ `package.json` change with no source edits.
52
+ - **Never mix regular and thin packages.** Do not combine `@bryntum/engine` (regular) and
53
+ `@bryntum/engine-thin` in one project — the bundle loads twice and fails at runtime with "bundle
54
+ was loaded multiple times". To use several Bryntum products together, every one must be the
55
+ `-thin` variant; regular packages cannot be combined.
56
+ - TypeScript types ship as `*.d.ts` files inside the package. Do **not** redeclare interfaces or
57
+ component options; import the types you need.
58
+
59
+ ## CSS — theme, FontAwesome and core styling come from @bryntum/core-thin
60
+
61
+ Thin styling is split: the theme, FontAwesome and core structural CSS live in `@bryntum/core-thin`,
62
+ and each product ships only its own structural stylesheet. Structural CSS follows the same rule as
63
+ the packages: import it for **every** thin package aliased above (`@bryntum/engine-thin` has no
64
+ CSS) — importing only `engine.css` renders the component as broken, unstyled HTML. Thanks to the
65
+ aliasing, the import paths use the plain `-thin` names. For Bryntum Engine, import:
66
+
67
+ FontAwesome is required — icons, expanders and arrows are blank without it. Import **exactly one**
68
+ theme: `stockholm-light`, `svalbard-light`, `visby-light`, `material3-light` or `fluent2-light`.
69
+ Theme file names are exact and not guessable: `svalbard-light.css` exists, `svalbard.css` does not.
70
+ List them first: `ls node_modules/@bryntum/core-thin/*.css`.
71
+
72
+ When combining products, additionally import each product's `@bryntum/{product}-thin/{product}.css`,
73
+ but keep one core-thin theme.
74
+
75
+ ## Sizing the component — the parent needs a real height
76
+
77
+ By default the component fills 100% of its parent element, with a min-height of 10em. If no
78
+ ancestor has an explicit height, the component collapses to that minimum — the app builds and data
79
+ loads, but the component renders as a short strip instead of filling the page. To display the component at the appropriate size, you can, for example, set parent components to take up the full height of the screen:
80
+
81
+ ```css
82
+ #app {
83
+ margin : 0;
84
+ display : flex;
85
+ flex-direction : column;
86
+ height : 100vh;
87
+ }
88
+ ```
89
+
90
+ Adapt this to the application layout. When several components share the page, size each one inside
91
+ the full-height container (flex values or explicit heights).
92
+
93
+ ## Verify APIs before using them
94
+
95
+ Your training data is older than this package, and Bryntum APIs change between major versions.
96
+ Confirm config/method/event names against the installed version — read it from
97
+ `node_modules/@bryntum/engine-thin/package.json` (`"version"`) — using the Bryntum MCP server
98
+ (https://mcp.bryntum.com/) or the official docs. Do not invent APIs from memory.
99
+
100
+ ## Verify the component rendered
101
+
102
+ A successful `npm run build` does not mean the component rendered: data-loading errors and
103
+ misconfigured APIs fail silently at runtime. After the build, open the app in a browser and confirm:
104
+
105
+ - The themed container is visible (not a blank page or unstyled HTML)
106
+ - Data is populated (event bars / task rows / grid rows appear — not an empty timeline or grid)
107
+ - The component fills the intended page area — a component collapsed to a short strip means the
108
+ parent chain has no explicit height (see the sizing section above)
109
+
110
+ ## Safe data rendering
111
+
112
+ Column/event/tooltip renderers return HTML that the widget inserts via `innerHTML`. Interpolating
113
+ raw data (`<div>${record.name}</div>`) is an XSS vector. Use `StringHelper.encodeHtml(text)`
114
+ (exported from `@bryntum/engine-thin`), or return plain text and let the widget set `textContent`.
package/CLAUDE.md ADDED
@@ -0,0 +1,114 @@
1
+ # @bryntum/engine-thin-trial — notes for AI coding agents
2
+
3
+ You are using the Bryntum Engine component from its **thin trial** npm package
4
+ (`@bryntum/engine-thin-trial`). Thin packages ship only product-specific code and styling and share
5
+ a common core, so several Bryntum products can run in the same app. The rules below are not obvious
6
+ from the source tree and must be followed for the component to render and work correctly.
7
+
8
+ ## Fastest path to correct code
9
+
10
+ Two Bryntum resources beat working from memory, reach for them before writing code:
11
+
12
+ - **MCP server** (https://mcp.bryntum.com/): grounded, version-correct answers about the installed
13
+ API. Use it to confirm config/method/event names instead of guessing.
14
+ - **Agent skills** (https://github.com/bryntum/skills): complement the Bryntum MCP server by
15
+ providing practical knowledge for using Bryntum and avoiding common pitfalls.
16
+
17
+ If these are not installed yet, suggest to the user that they install them for more reliable
18
+ results.
19
+
20
+ ## Install trial thin packages with npm aliasing
21
+
22
+ Trial thin packages must be installed with npm aliasing so imports resolve to the plain `-thin`
23
+ names. Thin packages do **not** bundle their Bryntum dependencies and do **not** declare them in
24
+ their own `package.json` — alias every one this product needs, all pinned to the **exact same
25
+ version**. For Bryntum Engine, install:
26
+
27
+ The framework wrapper packages below are installed **in addition to** the thin packages above —
28
+ they wrap them, not replace them. Wrappers have no trial variants, so install them by their real
29
+ names with no aliasing.
30
+
31
+ If using React, additionally install:
32
+
33
+ ```shell
34
+ npm install @bryntum/core-react-thin @bryntum/engine-react-thin
35
+ ```
36
+
37
+ If using Angular, additionally install:
38
+
39
+ ```shell
40
+ npm install @bryntum/core-angular-thin @bryntum/engine-angular-thin
41
+ ```
42
+
43
+ If using Vue, additionally install:
44
+
45
+ ```shell
46
+ npm install @bryntum/core-vue-3-thin @bryntum/engine-vue-3-thin
47
+ ```
48
+
49
+ - **Import from `@bryntum/engine-thin`** (not `-thin-trial`):
50
+ `import { ... } from '@bryntum/engine-thin'`. Aliasing means the licensed swap is a one-line
51
+ `package.json` change with no source edits.
52
+ - **Never mix regular and thin packages.** Do not combine `@bryntum/engine` (regular) and
53
+ `@bryntum/engine-thin` in one project — the bundle loads twice and fails at runtime with "bundle
54
+ was loaded multiple times". To use several Bryntum products together, every one must be the
55
+ `-thin` variant; regular packages cannot be combined.
56
+ - TypeScript types ship as `*.d.ts` files inside the package. Do **not** redeclare interfaces or
57
+ component options; import the types you need.
58
+
59
+ ## CSS — theme, FontAwesome and core styling come from @bryntum/core-thin
60
+
61
+ Thin styling is split: the theme, FontAwesome and core structural CSS live in `@bryntum/core-thin`,
62
+ and each product ships only its own structural stylesheet. Structural CSS follows the same rule as
63
+ the packages: import it for **every** thin package aliased above (`@bryntum/engine-thin` has no
64
+ CSS) — importing only `engine.css` renders the component as broken, unstyled HTML. Thanks to the
65
+ aliasing, the import paths use the plain `-thin` names. For Bryntum Engine, import:
66
+
67
+ FontAwesome is required — icons, expanders and arrows are blank without it. Import **exactly one**
68
+ theme: `stockholm-light`, `svalbard-light`, `visby-light`, `material3-light` or `fluent2-light`.
69
+ Theme file names are exact and not guessable: `svalbard-light.css` exists, `svalbard.css` does not.
70
+ List them first: `ls node_modules/@bryntum/core-thin/*.css`.
71
+
72
+ When combining products, additionally import each product's `@bryntum/{product}-thin/{product}.css`,
73
+ but keep one core-thin theme.
74
+
75
+ ## Sizing the component — the parent needs a real height
76
+
77
+ By default the component fills 100% of its parent element, with a min-height of 10em. If no
78
+ ancestor has an explicit height, the component collapses to that minimum — the app builds and data
79
+ loads, but the component renders as a short strip instead of filling the page. To display the component at the appropriate size, you can, for example, set parent components to take up the full height of the screen:
80
+
81
+ ```css
82
+ #app {
83
+ margin : 0;
84
+ display : flex;
85
+ flex-direction : column;
86
+ height : 100vh;
87
+ }
88
+ ```
89
+
90
+ Adapt this to the application layout. When several components share the page, size each one inside
91
+ the full-height container (flex values or explicit heights).
92
+
93
+ ## Verify APIs before using them
94
+
95
+ Your training data is older than this package, and Bryntum APIs change between major versions.
96
+ Confirm config/method/event names against the installed version — read it from
97
+ `node_modules/@bryntum/engine-thin/package.json` (`"version"`) — using the Bryntum MCP server
98
+ (https://mcp.bryntum.com/) or the official docs. Do not invent APIs from memory.
99
+
100
+ ## Verify the component rendered
101
+
102
+ A successful `npm run build` does not mean the component rendered: data-loading errors and
103
+ misconfigured APIs fail silently at runtime. After the build, open the app in a browser and confirm:
104
+
105
+ - The themed container is visible (not a blank page or unstyled HTML)
106
+ - Data is populated (event bars / task rows / grid rows appear — not an empty timeline or grid)
107
+ - The component fills the intended page area — a component collapsed to a short strip means the
108
+ parent chain has no explicit height (see the sizing section above)
109
+
110
+ ## Safe data rendering
111
+
112
+ Column/event/tooltip renderers return HTML that the widget inserts via `innerHTML`. Interpolating
113
+ raw data (`<div>${record.name}</div>`) is an XSS vector. Use `StringHelper.encodeHtml(text)`
114
+ (exported from `@bryntum/engine-thin`), or return plain text and let the widget set `textContent`.
@@ -1 +1 @@
1
- (function(a,b){function n(a,b){return _enb(a- -0x250,b);}const c=a();while(!![]){try{const d=-parseInt(n(-0x7f,-0x6a))/0x1+parseInt(n(-0x3f,-0x22))/0x2+-parseInt(n(-0x6a,-0x6d))/0x3+parseInt(n(-0x72,-0x83))/0x4+-parseInt(n(-0x6e,-0x88))/0x5+parseInt(n(-0x6d,-0x6d))/0x6*(parseInt(n(-0x66,-0x45))/0x7)+-parseInt(n(-0x23,-0xb))/0x8*(-parseInt(n(-0x4b,-0x68))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xdf852));var __decorate=function(a,b,e,f){var g=arguments[o(-0x57,-0x60)],h=g<0x3?b:f===null?f=Object[o(-0x73,-0x68)](b,e):f,j;function o(a,b){return _enb(b- -0x293,a);}if(typeof Reflect===o(-0xda,-0xaa)&&typeof Reflect[o(-0x87,-0x78)]===o(-0x45,-0x77))h=Reflect['decorate'](a,b,e,f);else for(var k=a[o(-0x74,-0x60)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[o(-0xbf,-0xa1)](b,e,h),h;};function _ena(){const X=['effectiveCalendar','dispatcher','KeepStartDate','calculateStartDateDirection','hasElapsedDuration','length','effectiveDirection','skipWorkingTime','constructor','addPreviousValueFlag','DATA','860912jmamYn','isStmRestoring','calculateDurationProposed','prepareDispatcher','dispatcherClass','addInstruction','run','calculateDuration','writeEndDate','Unknown\x20formula\x20for\x20`endDate`','hasIdentifier','getDurationConverter','durationUnit','827752pEyMqQ','calculateStartDateProposed','calculateProjectedDuration','calculateStartDatePure','6923265gCaYBT','1398DgUfLt','commitAsync','setDuration','968265VWhSzn','setStartDate','shouldSkipNonWorkingTime','object','19649btnpPl','cycleResolutionContext','Unknown\x20formula\x20for\x20`duration`','convertDurationGen','Millisecond','calculateEffectiveDataOrVisualCalendar','calculateDurationMs','own','defineProperty','buildProposedDispatcher','delayedCalculationPromise','unitsInMs','writeStartDate','baseRevision','data','collectInfo','skipNonWorkingTime','normalizeUnit','calculateDispatcher','visual','formulaId','Cancel','getProject','date','endDateDirection','boolean','Day','5067dXSqlJ','calculateEndDateDirection','get','unscheduled','startDate','isManuallyScheduled','endDate','resolution','prototype','None','calculateStartDate','hasProposedValue','1657216laleBj','onEffectSync','canConvertDuration','new','string','calculateEffectiveCalendar','KeepDuration','Unknown\x20formula\x20for\x20`startDate`','Forward','calculateProjectedXDateWithDuration','decorate','function','writeDuration','calculateDurationPure','defaultCalendar','KeepEndDate','setEndDate','write','duration','direction','$convertDuration','calculateEndDatePure','skipNonWorkingTimeWhenSchedulingManually','calculateEndDate','calculateEffectiveDirection','durationunit','getOwnPropertyDescriptor','call','25496fEzjKr'];_ena=function(){return X;};return _ena();}import{ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,Reject,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d0;let f=c[d];return f;};return _enb(a,b);}import{build_proposed,calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{EffectResolutionResult}from'../../../chrono/SchedulingIssueEffect.js';import{Direction,isEqualEffectiveDirection,TimeUnit}from'../../../scheduling/Types.js';import{isNotNumber}from'../../../util/Functions.js';import{EmptyCalendarEffect}from'./BaseCalendarMixin.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,Instruction,SEDBackwardCycleResolutionContext,SEDDispatcher,SEDDispatcherIdentifier,SEDForwardCycleResolutionContext,startDateFormula,StartDateVar}from'./BaseEventDispatcher.js';import{HasCalendarMixin}from'./HasCalendarMixin.js';class BaseEventMixin extends Mixin([HasCalendarMixin],a=>{const b=a[p(0x2d0,0x2b2)];class c extends a{*[p(0x292,0x2af)](){return yield this['$']['manuallyScheduled'];}*[p(0x2dc,0x2d7)](){function q(a,b){return p(a,b-0x49);}const d=yield this['$'][q(0x29e,0x2cb)];return this[q(0x2c9,0x2ee)]()['isElapsedDurationUnit'](d);}*[p(0x2cb,0x2a1)](d){const e=yield ProposedOrPrevious;const f=yield*this[r(0x273,0x2a3)](d);const g=yield ProposedArgumentsOf(this['$'][r(0x2a8,0x277)]);const h=g?g[0x0]?Instruction[r(0x2b6,0x28e)]:Instruction[r(0x2bf,0x2a9)]:void 0x0;if(h)yield*f[r(0x275,0x294)](h,this);const i=yield ProposedArgumentsOf(this['$'][r(0x2aa,0x2ab)]);function r(a,b){return p(b,a- -0x6);}const j=i?i[0x0]?Instruction[r(0x2b6,0x2c3)]:Instruction['KeepStartDate']:void 0x0;if(j)yield*f[r(0x275,0x246)](j,this);const k=yield this['$'][r(0x2d3,0x2c7)];const l=yield ProposedArgumentsOf(this['$'][r(0x2c2,0x29a)]);let m;if(l){switch(l[0x0]){case!![]:m=Instruction['KeepStartDate'];break;case![]:m=Instruction[r(0x2bf,0x2db)];break;}}if(!m&&f[r(0x2af,0x27d)](DurationVar)){m=k[r(0x2c3,0x2b2)]===Direction[r(0x2b8,0x2e1)]||k[r(0x2c3,0x2da)]===Direction[r(0x2ad,0x2df)]?Instruction[r(0x2cf,0x2f9)]:Instruction[r(0x2bf,0x2b1)];}if(m)yield*f[r(0x275,0x25b)](m,this);return f;}*[p(0x260,0x279)](d){const e=this[s(-0x82,-0x79)](d);const f=e[s(-0x51,-0x3a)]({'context':this[s(-0x93,-0x63)](d)});f[s(-0x6d,-0x55)](d,this['$']['startDate'],StartDateVar);f[s(-0x76,-0x55)](d,this['$'][s(-0x24,-0x43)],EndDateVar);function s(a,b){return p(a,b- -0x2f3);}f[s(-0x53,-0x55)](d,this['$'][s(-0x8,-0x2b)],DurationVar);return f;}['cycleResolutionContext'](d){function t(a,b){return p(a,b-0x286);}const e=d(this['$'][t(0x54b,0x55f)]);return e['direction']===Direction['Forward']||e['direction']===Direction[t(0x544,0x539)]?SEDForwardCycleResolutionContext:SEDBackwardCycleResolutionContext;}[p(0x26c,0x27a)](d){return SEDDispatcher;}['buildProposedDispatcher'](d,e,f){const g=this[u(0x583,0x5b1)](f[u(0x5c0,0x5f0)])[u(0x5c2,0x5dd)]({'context':this[u(0x599,0x584)](f[u(0x5c0,0x5a9)])});g[u(0x5e5,0x5e8)](StartDateVar);function u(a,b){return p(b,a-0x309);}g['addPreviousValueFlag'](EndDateVar);g[u(0x5e5,0x5d3)](DurationVar);return g;}*[p(0x2d7,0x2bb)](){if(yield*this['hasElapsedDuration']()){return this['getProject']()[v(-0x52,-0x3c)];}function v(a,b){return p(b,a- -0x316);}return yield*super[v(-0x5b,-0x5c)]();}*['skipNonWorkingTime'](d,e){const f=yield this['$'][w(0x31f,0x32b)];if(!d)return null;function w(a,b){return p(a,b-0x58);}const g=f[w(0x31c,0x2f7)](d,e);if(g instanceof Date){return g;}else{const h=EmptyCalendarEffect[w(0x31b,0x311)]({'calendars':[f],'event':this,'date':d,'isForward':e});if((yield h)===EffectResolutionResult[w(0x31d,0x2fc)]){yield Reject(h);}else{return null;}}}[p(0x25f,0x281)](){function x(a,b){return p(b,a-0x198);}return this[x(0x43d,0x42c)]();}[p(0x297,0x2b8)](d,e,f){const g=this[y(0x3b6,0x3bc)]();f=_enc[y(0x3b0,0x3db)](f);e=_enc[y(0x3be,0x3db)](e);function y(a,b){return p(a,b-0x13b);}const h=g?.[y(0x3e5,0x3d5)];return Boolean(typeof d==='number'&&h?.[e]&&h[f]);}*['convertDurationGen'](d,e,f){const g=this[z(-0x153,-0x132)]();if(g===this){return yield*super[z(-0x10a,-0x120)](d,e,f);}function z(a,b){return p(b,a- -0x3d4);}return yield*g[z(-0x10a,-0xdd)](d,e,f);}*[p(0x2cd,0x2da)](d,e,f,g){const h=yield this['$'][A(-0x163,-0x16a)];if(g&&g!==h){f=yield*this[A(-0x163,-0x15a)](f,g,h);}function A(a,b){return p(a,b- -0x3ec);}return yield*this[A(-0x14b,-0x12d)](d,e,f);}[p(0x261,0x28c)](d,e=!![]){const {graph:f,project:g}=this;function B(a,b){return p(b,a- -0xa6);}if(f){f[B(0x221,0x23c)](this['$'][B(0x208,0x1d9)],d,e);return f[B(0x1e3,0x1da)]();}else{this['$'][B(0x208,0x1f0)][B(0x1cf,0x1a9)]=d;return g?.['delayedCalculationPromise'];}}[p(0x2b2,0x29b)](d,e,f,g,h=!![]){if(!e[C(0x29,0x56)][C(0xd,0x11)](d)&&g==null)return;if(!this[C(0x32,0x42)]()['isStmRestoring']){e[C(0x54,0x21)](this['$'][C(0x3a,0x36)],g==null);}function C(a,b){return p(b,a- -0x273);}d[C(0x68,0x49)][C(0x3f,0x43)][C(0x54,0x2c)][C(0x5e,0x81)](this,d,e,f,g,h);}*[p(0x28d,0x2b4)](){function D(a,b){return p(a,b-0x234);}const d=yield this['$'][D(0x4d7,0x508)];const e=d[D(0x501,0x4e5)]['get'](StartDateVar);if(e===CalculateProposed){return yield*this['calculateStartDateProposed']();}else if(e===startDateFormula[D(0x4ab,0x4d7)]){return yield*this[D(0x486,0x4ba)]();}else{throw new Error(D(0x4d6,0x4f1));}}*[p(0x28a,0x286)](){function E(a,b){return p(b,a- -0x1d9);}return yield*this[E(0xe6,0xdc)](yield this['$'][E(0xd7,0x100)],![],yield this['$'][E(0xef,0xe5)]);}*['shouldSkipNonWorkingTime'](){function F(a,b){return p(a,b- -0x315);}const d=yield*this['isManuallyScheduled']();const e=this[F(-0x41,-0x70)]();return!d||e[F(-0x58,-0x49)];}*[p(0x265,0x284)](){const d=yield ProposedOrPrevious;const e=yield*this['shouldSkipNonWorkingTime']();return e?yield*this['skipNonWorkingTime'](d,!![]):d;}*['calculateProjectedXDateWithDuration'](d,e,f,g){g=g??(yield this['$'][G(-0xb,-0xf)]);function G(a,b){return p(b,a- -0x28d);}const h=yield this['$'][G(0x46,0x35)];if(!d||isNotNumber(f))return null;e=e===void 0x0?!![]:e;if(e){return h[G(0x40,0xc)](d,yield*this[G(0x5,-0x21)](f,g,TimeUnit[G(0x6,0x12)]));}else{return h[G(0x27,0x1f)](d,yield*this[G(0x5,-0x9)](f,g,TimeUnit['Millisecond']));}}[p(0x2b0,0x2c6)](d,e=![]){const {graph:f,project:g}=this;function H(a,b){return p(b,a-0xab);}if(f){f[H(0x372,0x36b)](this['$'][H(0x35b,0x374)],d,e);return f[H(0x334,0x334)]();}else{this['$'][H(0x35b,0x367)]['DATA']=d;return g?.['delayedCalculationPromise'];}}['writeEndDate'](d,e,f,g,h=![]){function I(a,b){return p(b,a- -0x42d);}if(!e['baseRevision'][I(-0x1ad,-0x19a)](d)&&g==null)return;if(!this[I(-0x188,-0x196)]()['isStmRestoring']){e[I(-0x166,-0x158)](this['$'][I(-0x180,-0x15a)],g==null);}d[I(-0x152,-0x12e)]['prototype']['write'][I(-0x15c,-0x160)](this,d,e,f,g,h);}*['calculateEndDate'](){const d=yield this['$'][J(0x20f,0x1e4)];function J(a,b){return p(b,a- -0xc5);}const e=d['resolution'][J(0x1e7,0x1ea)](EndDateVar);if(e===CalculateProposed){return yield*this['calculateEndDateProposed']();}else if(e===endDateFormula[J(0x1de,0x1c0)]){return yield*this[J(0x206,0x1ff)]();}else{throw new Error(J(0x1ba,0x1bc));}}*[p(0x2ad,0x2cb)](){function K(a,b){return p(a,b- -0x205);}return yield*this[K(0xcf,0xba)](yield this['$']['startDate'],!![],yield this['$'][K(0x91,0xc3)]);}*['calculateEndDateProposed'](){const d=yield ProposedOrPrevious;function L(a,b){return p(a,b-0x73);}const e=yield*this[L(0x2d7,0x300)]();return e?yield*this['skipNonWorkingTime'](d,![]):d;}['getDuration'](d){const e=this[M(0x2aa,0x292)];function M(a,b){return p(b,a- -0x1e);}return d!==void 0x0?this[M(0x25e,0x291)]('convertDurationGen',e,this[M(0x264,0x24d)],d):e;}[p(0x26f,0x28a)](d,e,f){function N(a,b){return p(b,a- -0x390);}const {graph:g,project:h}=this;if(g){if(d!==void 0x0){g[N(-0xc9,-0xda)](this['$']['duration'],d,e,f);return g[N(-0x107,-0xe4)]();}}else{const i={'duration':d};this['$'][N(-0xc8,-0xdd)][N(-0x11b,-0xe7)]=d;if(e!=null)i[N(-0x10e,-0x132)]=this['$'][N(-0x10e,-0x10d)][N(-0x11b,-0xf4)]=e;this['set'](i);return h?.[N(-0xf7,-0xea)];}}['setDurationUnit'](d){throw new Error('Use\x20`setDuration`\x20instead');}[p(0x28f,0x2c2)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!e[O(-0xc0,-0xc9)][O(-0xdc,-0xe7)](d)&&g==null)return;function O(a,b){return p(b,a- -0x35c);}if(!this[O(-0xb7,-0xb2)]()[O(-0xe5,-0xf9)]){e[O(-0x95,-0xc7)](this['$'][O(-0xaf,-0xdf)],g==null);}d['constructor']['prototype'][O(-0x95,-0x9f)][O(-0x8b,-0xa2)](this,d,e,f,g,i);if(h!=null)e[O(-0x95,-0xaa)](this['$'][O(-0xda,-0xd7)],h);}*[p(0x270,0x27d)](){const d=yield this['$'][P(-0x1b2,-0x1ae)];const e=d[P(-0x1f6,-0x1d1)][P(-0x1af,-0x1d6)](DurationVar);function P(a,b){return p(a,b- -0x482);}if(e===CalculateProposed){return yield*this[P(-0x217,-0x20a)]();}else if(e===durationFormula[P(-0x1f2,-0x1df)]){return yield*this[P(-0x1e9,-0x1bf)]();}else{throw new Error(P(-0x1c2,-0x1f1));}}*[p(0x2d1,0x2c3)](){function Q(a,b){return p(b,a- -0x398);}const d=yield this['$'][Q(-0xea,-0xd7)];const e=yield this['$'][Q(-0xe8,-0x11a)];if(!d||!e)return null;if(d>e){yield Write(this['$'][Q(-0xd0,-0xb0)],0x0,null);}else{return yield*this[Q(-0x113,-0x114)](d,e);}}*[p(0x262,0x278)](){return yield ProposedOrPrevious;}*[p(0x26a,0x285)](d,e,f,g,h=![]){function R(a,b){return p(b,a-0x2a2);}if(!d||!e)return null;if(!f)f=yield this['$'][R(0x524,0x549)];const i=yield this['$'][R(0x575,0x56e)];return yield*this[R(0x534,0x541)](i[R(0x537,0x506)](d,e,h),TimeUnit[R(0x535,0x552)],f);}*['calculateEffectiveDuration'](){const d=yield this['$'][S(-0xf5,-0xe3)];let e;const f=d['resolution'][S(-0x11d,-0x108)](DurationVar);function S(a,b){return p(b,a- -0x3c9);}if(f===CalculateProposed){e=yield this['$'][S(-0x101,-0xeb)];}else if(f===durationFormula['formulaId']){e=yield*this[S(-0x144,-0x16d)](yield ProposedOrPreviousValueOf(this['$']['startDate']),yield ProposedOrPreviousValueOf(this['$'][S(-0x119,-0xfc)]));}return e;}*[p(0x2a2,0x2ce)](){function T(a,b){return p(a,b- -0x365);}const d=yield this['$']['direction'];return{'kind':T(-0x9c,-0xcf),'direction':d||Direction[T(-0x7b,-0xa7)]};}*[p(0x2c0,0x2d6)](){function U(a,b){return p(a,b- -0x367);}return yield this['$'][U(-0x9e,-0x8e)];}*[p(0x29e,0x2ab)](){function V(a,b){return p(a,b- -0x2ce);}return yield this['$'][V(-0x24,0xb)];}*[p(0x2ba,0x294)](d){function W(a,b){return p(b,a-0x194);}if(d===W(0x436,0x409)){return yield*super['calculateEffectiveDataOrVisualCalendar'](W(0x436,0x463));}else{const e=yield*this[W(0x443,0x459)]();const f=this['getProject']();return e&&!f['skipNonWorkingTimeInDurationWhenSchedulingManually']?f[W(0x458,0x448)]:yield*super[W(0x428,0x414)](W(0x431,0x453));}}}__decorate([model_field({'type':p(0x2ae,0x2a6),'bypassEqualityOnSyncDataset':!![]},{'converter':dateConverter})],c[p(0x293,0x2b2)],p(0x2a1,0x2ae),void 0x0);__decorate([model_field({'type':p(0x28e,0x2a6),'bypassEqualityOnSyncDataset':!![]},{'converter':dateConverter})],c['prototype'],p(0x2da,0x2b0),void 0x0);__decorate([model_field({'type':'number','bypassEqualityOnSyncDataset':!![],'allowNull':!![]})],c['prototype'],'duration',void 0x0);__decorate([model_field({'type':p(0x2f1,0x2cf),'defaultValue':TimeUnit[p(0x2a5,0x2a9)]},{'converter':d=>_enc['normalizeUnit'](d)||TimeUnit[p(0x27e,0x2a9)]})],c[p(0x291,0x2b2)],p(0x29a,0x282),void 0x0);__decorate([model_field({'type':p(0x2d4,0x2ba),'defaultValue':null},{'sync':!![]})],c['prototype'],p(0x2dc,0x2c9),void 0x0);__decorate([field({'sync':!![],'equality':isEqualEffectiveDirection})],c[p(0x2cd,0x2b2)],'startDateDirection',void 0x0);__decorate([field({'sync':!![],'equality':isEqualEffectiveDirection})],c[p(0x28b,0x2b2)],'endDateDirection',void 0x0);__decorate([field({'sync':!![],'equality':isEqualEffectiveDirection})],c[p(0x2ca,0x2b2)],p(0x30c,0x2d9),void 0x0);__decorate([field({'identifierCls':SEDDispatcherIdentifier})],c[p(0x28f,0x2b2)],p(0x2a3,0x2d4),void 0x0);__decorate([model_field({'type':p(0x2c9,0x2a8),'defaultValue':![]},{'sync':!![]})],c[p(0x292,0x2b2)],'manuallyScheduled',void 0x0);__decorate([model_field({'type':p(0x28b,0x2a8),'defaultValue':![]})],c[p(0x29a,0x2b2)],p(0x287,0x2ad),void 0x0);__decorate([calculate(p(0x2f8,0x2d4))],c[p(0x2d2,0x2b2)],p(0x286,0x2a1),null);__decorate([build_proposed(p(0x2d5,0x2d4))],c[p(0x2a0,0x2b2)],p(0x2a1,0x298),null);function p(a,b){return _enb(b-0xa5,a);}__decorate([write('startDate')],c[p(0x2ac,0x2b2)],p(0x2a1,0x29b),null);__decorate([calculate(p(0x289,0x2ae))],c[p(0x2c7,0x2b2)],p(0x2ab,0x2b4),null);__decorate([write(p(0x2d2,0x2b0))],c['prototype'],p(0x271,0x27e),null);__decorate([calculate('endDate')],c['prototype'],'calculateEndDate',null);__decorate([write(p(0x2f4,0x2c8))],c[p(0x2c1,0x2b2)],p(0x2c0,0x2c2),null);__decorate([calculate(p(0x2ca,0x2c8))],c['prototype'],p(0x26a,0x27d),null);__decorate([calculate('effectiveDirection')],c[p(0x2dc,0x2b2)],p(0x2ed,0x2ce),null);__decorate([calculate('startDateDirection')],c[p(0x2ae,0x2b2)],p(0x2ec,0x2d6),null);__decorate([calculate(p(0x287,0x2a7))],c['prototype'],p(0x295,0x2ab),null);return c;}){}export{BaseEventMixin};
1
+ (function(a,b){const c=a();function o(a,b){return _enb(a-0x3bf,b);}while(!![]){try{const d=-parseInt(o(0x525,0x534))/0x1*(-parseInt(o(0x530,0x51b))/0x2)+parseInt(o(0x51b,0x51d))/0x3*(parseInt(o(0x513,0x4f0))/0x4)+parseInt(o(0x4de,0x4ff))/0x5*(-parseInt(o(0x4d2,0x4a0))/0x6)+parseInt(o(0x4db,0x508))/0x7+-parseInt(o(0x4e9,0x4bf))/0x8+parseInt(o(0x528,0x547))/0x9+-parseInt(o(0x4da,0x50b))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa1575));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[p(0x2fa,0x30d)](b,e):f,j;function p(a,b){return _enb(a-0x187,b);}if(typeof Reflect===p(0x2c8,0x2c9)&&typeof Reflect['decorate']===p(0x2a1,0x2d4))h=Reflect[p(0x2df,0x2be)](a,b,e,f);else for(var k=a[p(0x2f3,0x314)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[p(0x297,0x297)](b,e,h),h;};import{ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,Reject,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{build_proposed,calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';function _ena(){const X=['durationUnit','isStmRestoring','setDurationUnit','manuallyScheduled','hasIdentifier','number','getProject','constructor','effectiveCalendar','object','boolean','calculateStartDateDirection','convertDurationGen','endDateDirection','prepareDispatcher','setDuration','delayedCalculationPromise','buildProposedDispatcher','startDate','None','skipWorkingTime','calculateStartDatePure','addPreviousValueFlag','hasProposedValue','calculateEffectiveDataOrVisualCalendar','isElapsedDurationUnit','get','calculateDurationProposed','15484KCegxS','Unknown\x20formula\x20for\x20`startDate`','skipNonWorkingTime','unscheduled','decorate','collectInfo','calculateEndDateDirection','Millisecond','402ADZngH','prototype','dispatcher','calculateEffectiveDirection','calculateDuration','direction','calculateDurationMs','DATA','addInstruction','calculateEndDatePure','1tzORfP','startDateDirection','$convertDuration','3872907InZhuA','cycleResolutionContext','canConvertDuration','length','date','baseRevision','isManuallyScheduled','Unknown\x20formula\x20for\x20`endDate`','1896532rUPzqC','KeepStartDate','getOwnPropertyDescriptor','calculateEffectiveDuration','durationunit','effectiveDirection','calculateStartDateProposed','setStartDate','calculateEndDateProposed','unitsInMs','defineProperty','Use\x20`setDuration`\x20instead','calculateEndDate','793134cPUKtG','skipNonWorkingTimeWhenSchedulingManually','calculateDispatcher','calculateDurationPure','getDuration','visual','getDurationConverter','function','7306680puINln','3316348tmgTfd','write','hasElapsedDuration','5cDrbme','calculateEffectiveCalendar','defaultCalendar','Day','new','calculateStartDate','calculateProjectedDuration','formulaId','writeDuration','KeepEndDate','skipNonWorkingTimeInDurationWhenSchedulingManually','6778856qXyLrQ','normalizeUnit','call','resolution','Forward','duration','own','calculateProjectedXDateWithDuration','writeStartDate','setEndDate','Unknown\x20formula\x20for\x20`duration`','endDate','commitAsync','shouldSkipNonWorkingTime'];_ena=function(){return X;};return _ena();}import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{EffectResolutionResult}from'../../../chrono/SchedulingIssueEffect.js';import{Direction,isEqualEffectiveDirection,TimeUnit}from'../../../scheduling/Types.js';import{isNotNumber}from'../../../util/Functions.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x109;let f=c[d];return f;};return _enb(a,b);}import{EmptyCalendarEffect}from'./BaseCalendarMixin.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,Instruction,SEDBackwardCycleResolutionContext,SEDDispatcher,SEDDispatcherIdentifier,SEDForwardCycleResolutionContext,startDateFormula,StartDateVar}from'./BaseEventDispatcher.js';import{HasCalendarMixin}from'./HasCalendarMixin.js';class BaseEventMixin extends Mixin([HasCalendarMixin],a=>{const b=a[q(0x283,0x29b)];class c extends a{*[q(0x295,0x27c)](){function r(a,b){return q(a- -0x119,b);}return yield this['$'][r(0x148,0x17c)];}*[q(0x244,0x264)](){const d=yield this['$'][s(0x22c,0x1f8)];function s(a,b){return q(b- -0x66,a);}return this[s(0x212,0x1fe)]()[s(0x247,0x211)](d);}*[q(0x23b,0x25d)](d){const e=yield ProposedOrPrevious;const f=yield*this[t(0x22f,0x239)](d);const g=yield ProposedArgumentsOf(this['$']['startDate']);const h=g?g[0x0]?Instruction['KeepDuration']:Instruction[t(0x211,0x22b)]:void 0x0;if(h)yield*f[t(0x24d,0x27f)](h,this);function t(a,b){return q(a- -0x3d,b);}const i=yield ProposedArgumentsOf(this['$'][t(0x21e,0x254)]);const j=i?i[0x0]?Instruction['KeepDuration']:Instruction['KeepStartDate']:void 0x0;if(j)yield*f['addInstruction'](j,this);const k=yield this['$'][t(0x1f4,0x1cd)];const l=yield ProposedArgumentsOf(this['$']['duration']);let m;if(l){switch(l[0x0]){case!![]:m=Instruction['KeepStartDate'];break;case![]:m=Instruction['KeepEndDate'];break;}}if(!m&&f[t(0x238,0x22d)](DurationVar)){m=k[t(0x24a,0x24e)]===Direction[t(0x217,0x20f)]||k['direction']===Direction[t(0x234,0x203)]?Instruction['KeepStartDate']:Instruction[t(0x211,0x201)];}if(m)yield*f[t(0x24d,0x26e)](m,this);const n=this[t(0x227,0x237)]();if(!g&&!i&&!l&&n[t(0x212,0x213)]&&!n['skipNonWorkingTimeWhenSchedulingManually']&&(yield*this[t(0x258,0x249)]())){yield*f[t(0x24d,0x245)](Instruction[t(0x25b,0x24b)],this);yield*f['addInstruction'](Instruction[t(0x211,0x245)],this);}return f;}*[q(0x26c,0x29d)](d){const e=this['dispatcherClass'](d);const f=e['new']({'context':this[u(0x69,0x51)](d)});function u(a,b){return q(b- -0x23f,a);}f[u(0x31,0x40)](d,this['$'][u(0x58,0x31)],StartDateVar);f[u(0x36,0x40)](d,this['$']['endDate'],EndDateVar);f[u(0x5a,0x40)](d,this['$'][u(-0x17,0x16)],DurationVar);return f;}[q(0x290,0x25b)](d){function v(a,b){return q(b- -0x4a7,a);}const e=d(this['$'][v(-0x270,-0x276)]);return e[v(-0x244,-0x220)]===Direction[v(-0x285,-0x253)]||e[v(-0x1ff,-0x220)]===Direction['None']?SEDForwardCycleResolutionContext:SEDBackwardCycleResolutionContext;}['dispatcherClass'](d){return SEDDispatcher;}[q(0x26f,0x240)](d,e,f){const g=this['dispatcherClass'](f['onEffectSync'])[w(-0x246,-0x271)]({'context':this[w(-0x1ff,-0x1f9)](f['onEffectSync'])});g['addPreviousValueFlag'](StartDateVar);g[w(-0x21b,-0x1e5)](EndDateVar);g['addPreviousValueFlag'](DurationVar);function w(a,b){return q(a- -0x48f,b);}return g;}*[q(0x246,0x23c)](){function x(a,b){return q(a- -0xc5,b);}if(yield*this[x(0x17f,0x19b)]()){return this[x(0x19f,0x1be)]()[x(0x182,0x192)];}return yield*super[x(0x181,0x1ab)]();}*[q(0x27c,0x2a5)](d,e){function y(a,b){return q(a-0xa8,b);}const f=yield this['$'][y(0x30e,0x2ec)];if(!d)return null;const g=f['skipNonWorkingTime'](d,e);if(g instanceof Date){return g;}else{const h=EmptyCalendarEffect[y(0x2f1,0x310)]({'calendars':[f],'event':this,'date':d,'isForward':e});if((yield h)===EffectResolutionResult['Cancel']){yield Reject(h);}else{return null;}}}[q(0x23f,0x246)](){return this['getProject']();}[q(0x291,0x2a9)](d,e,f){const g=this[z(-0x1d4,-0x1c0)]();function z(a,b){return q(a- -0x413,b);}f=_enc[z(-0x1c2,-0x191)](f);e=_enc['normalizeUnit'](e);const h=g?.[z(-0x1de,-0x205)];return Boolean(typeof d===z(-0x1b0,-0x1ce)&&h?.[e]&&h[f]);}*[q(0x26a,0x247)](d,e,f){function A(a,b){return q(a- -0xa7,b);}const g=this[A(0x198,0x1b3)]();if(g===this){return yield*super[A(0x1e7,0x1b6)](d,e,f);}return yield*g[A(0x1e7,0x1fd)](d,e,f);}*[q(0x272,0x264)](d,e,f,g){const h=yield this['$'][B(0x436,0x40d)];if(g&&g!==h){f=yield*this[B(0x442,0x476)](f,g,h);}function B(a,b){return q(a-0x1d8,b);}return yield*this['calculateProjectedXDateWithDuration'](d,e,f);}[q(0x233,0x225)](d,e=!![]){const {graph:f,project:g}=this;function C(a,b){return q(b-0x1d9,a);}if(f){f[C(0x400,0x41c)](this['$'][C(0x44e,0x449)],d,e);return f['commitAsync']();}else{this['$']['startDate'][C(0x489,0x462)]=d;return g?.['delayedCalculationPromise'];}}['writeStartDate'](d,e,f,g,h=!![]){if(!e['baseRevision']['hasIdentifier'](d)&&g==null)return;if(!this['getProject']()[D(-0x24b,-0x255)]){e['write'](this['$'][D(-0x20e,-0x237)],g==null);}function D(a,b){return q(b- -0x4b4,a);}d[D(-0x221,-0x24f)]['prototype'][D(-0x277,-0x271)][D(-0x232,-0x262)](this,d,e,f,g,h);}*[q(0x24a,0x250)](){function E(a,b){return q(b- -0x4cc,a);}const d=yield this['$']['dispatcher'];const e=d[E(-0x283,-0x279)][E(-0x238,-0x254)](StartDateVar);if(e===CalculateProposed){return yield*this[E(-0x292,-0x29a)]();}else if(e===startDateFormula[E(-0x27d,-0x280)]){return yield*this[E(-0x22c,-0x259)]();}else{throw new Error(E(-0x24e,-0x251));}}*[q(0x273,0x2a4)](){function F(a,b){return q(b-0x140,a);}return yield*this['calculateProjectedXDateWithDuration'](yield this['$']['endDate'],![],yield this['$'][F(0x3ae,0x395)]);}*[q(0x25d,0x232)](){const d=yield*this[G(0x4b5,0x48d)]();function G(a,b){return q(a-0x220,b);}const e=this[G(0x484,0x4a8)]();return!d||e[G(0x45a,0x440)];}*['calculateStartDateProposed'](){const d=yield ProposedOrPrevious;const e=yield*this['shouldSkipNonWorkingTime']();return e?yield*this['skipNonWorkingTime'](d,!![]):d;}*[q(0x257,0x270)](d,e,f,g){g=g??(yield this['$'][H(0x196,0x1b2)]);function H(a,b){return q(a- -0xc8,b);}const h=yield this['$'][H(0x19e,0x1cf)];if(!d||isNotNumber(f))return null;e=e===void 0x0?!![]:e;if(e){return h[H(0x170,0x17c)](d,yield*this[H(0x1a2,0x1cc)](f,g,TimeUnit[H(0x1b9,0x1c7)]));}else{return h[H(0x182,0x1aa)](d,yield*this['convertDurationGen'](f,g,TimeUnit[H(0x1b9,0x1c3)]));}}[q(0x259,0x270)](d,e=![]){function I(a,b){return q(a- -0x14c,b);}const {graph:f,project:g}=this;if(f){f[I(0xf7,0x10c)](this['$']['endDate'],d,e);return f['commitAsync']();}else{this['$'][I(0x10f,0x11d)][I(0x13d,0x11c)]=d;return g?.['delayedCalculationPromise'];}}['writeEndDate'](d,e,f,g,h=![]){if(!e[J(-0x3a,-0x54)][J(-0x5c,-0x86)](d)&&g==null)return;function J(a,b){return q(b- -0x2e8,a);}if(!this['getProject']()[J(-0x91,-0x89)]){e[J(-0xd6,-0xa5)](this['$'][J(-0x95,-0x6b)],g==null);}d['constructor'][J(-0x55,-0x65)][J(-0x7c,-0xa5)][J(-0x9e,-0x96)](this,d,e,f,g,h);}*['calculateEndDate'](){function K(a,b){return q(a- -0x193,b);}const d=yield this['$'][K(0xf1,0xdc)];const e=d[K(0xc0,0x99)][K(0xe5,0x107)](EndDateVar);if(e===CalculateProposed){return yield*this[K(0xa1,0x6d)]();}else if(e===endDateFormula[K(0xb9,0x88)]){return yield*this['calculateEndDatePure']();}else{throw new Error(K(0x103,0x10f));}}*[q(0x28b,0x27e)](){return yield*this['calculateProjectedXDateWithDuration'](yield this['$']['startDate'],!![],yield this['$']['duration']);}*['calculateEndDateProposed'](){const d=yield ProposedOrPrevious;function L(a,b){return q(b- -0x4cb,a);}const e=yield*this[L(-0x25c,-0x26e)]();return e?yield*this[L(-0x23a,-0x24f)](d,![]):d;}[q(0x23d,0x20a)](d){function M(a,b){return q(a- -0x18d,b);}const e=this[M(0xc8,0x96)];return d!==void 0x0?this['run'](M(0xdd,0xff),e,this[M(0xd1,0xb0)],d):e;}[q(0x26d,0x23e)](d,e,f){function N(a,b){return q(a-0xa1,b);}const {graph:g,project:h}=this;if(g){if(d!==void 0x0){g['write'](this['$'][N(0x2f6,0x2f1)],d,e,f);return g[N(0x2fd,0x2e1)]();}}else{const i={'duration':d};this['$'][N(0x2f6,0x2cc)][N(0x32a,0x35a)]=d;if(e!=null)i[N(0x2ff,0x2d5)]=this['$'][N(0x2ff,0x2f9)][N(0x32a,0x302)]=e;this['set'](i);return h?.[N(0x30f,0x2e1)];}}[q(0x260,0x262)](d){function O(a,b){return q(b-0x1ec,a);}throw new Error(O(0x434,0x423));}[q(0x24d,0x282)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!e[P(0x2f1,0x30e)][P(0x2f1,0x2dc)](d)&&g==null)return;function P(a,b){return q(b-0x7a,a);}if(!this[P(0x2b0,0x2de)]()[P(0x2cd,0x2d9)]){e['write'](this['$']['unscheduled'],g==null);}d[P(0x307,0x2df)][P(0x2f1,0x2fd)][P(0x28f,0x2bd)][P(0x296,0x2cc)](this,d,e,f,g,i);if(h!=null)e['write'](this['$']['durationUnit'],h);}*['calculateDuration'](){const d=yield this['$'][Q(0x546,0x522)];const e=d[Q(0x515,0x4e2)]['get'](DurationVar);function Q(a,b){return q(a-0x2c2,b);}if(e===CalculateProposed){return yield*this['calculateDurationProposed']();}else if(e===durationFormula[Q(0x50e,0x503)]){return yield*this[Q(0x4fe,0x4c8)]();}else{throw new Error(Q(0x51c,0x4e7));}}*[q(0x23c,0x265)](){const d=yield this['$']['startDate'];const e=yield this['$'][R(-0x73,-0x56)];function R(a,b){return q(b- -0x2b1,a);}if(!d||!e)return null;if(d>e){yield Write(this['$']['duration'],0x0,null);}else{return yield*this[R(-0x80,-0x66)](d,e);}}*[q(0x279,0x2a4)](){return yield ProposedOrPrevious;}*[q(0x24b,0x217)](d,e,f,g,h=![]){if(!d||!e)return null;if(!f)f=yield this['$'][S(0x345,0x351)];function S(a,b){return q(b-0xf3,a);}const i=yield this['$'][S(0x37c,0x359)];return yield*this[S(0x332,0x35d)](i[S(0x3ab,0x37b)](d,e,h),TimeUnit['Millisecond'],f);}*[q(0x22f,0x223)](){function T(a,b){return q(b-0x26a,a);}const d=yield this['$'][T(0x4ba,0x4ee)];let e;const f=d[T(0x4f2,0x4bd)]['get'](DurationVar);if(f===CalculateProposed){e=yield this['$'][T(0x498,0x4bf)];}else if(f===durationFormula[T(0x4db,0x4b6)]){e=yield*this['calculateProjectedDuration'](yield ProposedOrPreviousValueOf(this['$'][T(0x4ee,0x4da)]),yield ProposedOrPreviousValueOf(this['$'][T(0x4ae,0x4c5)]));}return e;}*[q(0x285,0x26d)](){const d=yield this['$']['direction'];function U(a,b){return q(b-0x9c,a);}return{'kind':U(0x2d7,0x2f2),'direction':d||Direction[U(0x2ce,0x2f0)]};}*[q(0x269,0x272)](){return yield this['$']['effectiveDirection'];}*['calculateEndDateDirection'](){function V(a,b){return q(b- -0x1c5,a);}return yield this['$'][V(0x9c,0x6c)];}*['calculateEffectiveDataOrVisualCalendar'](d){function W(a,b){return q(a- -0x4ad,b);}if(d===W(-0x26f,-0x29d)){return yield*super[W(-0x237,-0x217)](W(-0x26f,-0x246));}else{const e=yield*this[W(-0x218,-0x200)]();const f=this[W(-0x249,-0x21a)]();return e&&!f['skipNonWorkingTimeInDurationWhenSchedulingManually']?f[W(-0x266,-0x27c)]:yield*super[W(-0x237,-0x244)]('data');}}}__decorate([model_field({'type':q(0x293,0x2c1),'bypassEqualityOnSyncDataset':!![]},{'converter':dateConverter})],c[q(0x283,0x28e)],q(0x270,0x290),void 0x0);__decorate([model_field({'type':'date','bypassEqualityOnSyncDataset':!![]},{'converter':dateConverter})],c[q(0x283,0x2a7)],'endDate',void 0x0);__decorate([model_field({'type':q(0x263,0x28c),'bypassEqualityOnSyncDataset':!![],'allowNull':!![]})],c[q(0x283,0x299)],'duration',void 0x0);__decorate([model_field({'type':q(0x230,0x261),'defaultValue':TimeUnit[q(0x248,0x229)]},{'converter':d=>_enc['normalizeUnit'](d)||TimeUnit[q(0x248,0x212)]})],c['prototype'],q(0x25e,0x243),void 0x0);__decorate([model_field({'type':'string','defaultValue':null},{'sync':!![]})],c[q(0x283,0x255)],'direction',void 0x0);__decorate([field({'sync':!![],'equality':isEqualEffectiveDirection})],c[q(0x283,0x2af)],q(0x28d,0x28e),void 0x0);__decorate([field({'sync':!![],'equality':isEqualEffectiveDirection})],c['prototype'],q(0x26b,0x29c),void 0x0);__decorate([field({'sync':!![],'equality':isEqualEffectiveDirection})],c[q(0x283,0x296)],q(0x231,0x218),void 0x0);__decorate([field({'identifierCls':SEDDispatcherIdentifier})],c[q(0x283,0x286)],'dispatcher',void 0x0);__decorate([model_field({'type':q(0x268,0x242),'defaultValue':![]},{'sync':!![]})],c[q(0x283,0x2a4)],'manuallyScheduled',void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[q(0x283,0x256)],q(0x27d,0x295),void 0x0);function q(a,b){return _enb(a-0x126,b);}__decorate([calculate(q(0x284,0x2b3))],c[q(0x283,0x282)],'calculateDispatcher',null);__decorate([build_proposed('dispatcher')],c[q(0x283,0x29a)],q(0x26f,0x27c),null);__decorate([write(q(0x270,0x2a6))],c[q(0x283,0x259)],q(0x258,0x22a),null);__decorate([calculate('startDate')],c[q(0x283,0x261)],q(0x24a,0x263),null);__decorate([write(q(0x25b,0x225))],c[q(0x283,0x2b8)],'writeEndDate',null);__decorate([calculate(q(0x25b,0x254))],c[q(0x283,0x267)],'calculateEndDate',null);__decorate([write(q(0x255,0x253))],c[q(0x283,0x24e)],q(0x24d,0x269),null);__decorate([calculate(q(0x255,0x246))],c[q(0x283,0x24e)],q(0x286,0x260),null);__decorate([calculate(q(0x231,0x260))],c['prototype'],q(0x285,0x260),null);__decorate([calculate(q(0x28d,0x28e))],c[q(0x283,0x279)],q(0x269,0x294),null);__decorate([calculate(q(0x26b,0x28c))],c['prototype'],q(0x280,0x2aa),null);return c;}){}export{BaseEventMixin};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function l(a,b){return _enb(b- -0x326,a);}while(!![]){try{const d=-parseInt(l(-0x1e1,-0x217))/0x1*(-parseInt(l(-0x24e,-0x22e))/0x2)+parseInt(l(-0x20a,-0x208))/0x3+parseInt(l(-0x1e9,-0x205))/0x4*(-parseInt(l(-0x23c,-0x251))/0x5)+parseInt(l(-0x255,-0x249))/0x6+parseInt(l(-0x1df,-0x1f3))/0x7+parseInt(l(-0x24c,-0x253))/0x8*(parseInt(l(-0x25f,-0x23e))/0x9)+parseInt(l(-0x1d5,-0x1fc))/0xa*(-parseInt(l(-0x1fe,-0x231))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x27e7a));function _enK(a,b){return _enb(b- -0x3d,a);}var __decorate=function(a,b,e,f){var g=arguments[m(0x22a,0x212)],h=g<0x3?b:f===null?f=Object[m(0x260,0x26b)](b,e):f,j;if(typeof Reflect===m(0x21b,0x1f4)&&typeof Reflect[m(0x24f,0x263)]===m(0x26b,0x277))h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(0x22a,0x24f)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a-0x143,b);}return g>0x3&&h&&Object[m(0x23c,0x223)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _ena(){const X=['getOwnPropertyDescriptor','194253ljzMAL','getEndDatePinConstraintType','constructor','6376FTvODS','hasPostponedOwnConstraintConflict','conflict','prototype','AsLateAsPossible','AsSoonAsPossible','_isManuallyScheduled','function','direction','210WXAPOE','calculateConstraintDate','MustStartOn','get','getStm','write','removeDateConstraintConflictResolutionClass','baseRevision','getDescription','1527911AvZaUg','onNonEmptyEffectiveInterval','string','isShadow','hasSubEvents','isAffectedByTransaction','applyChangeset','reflectionOf','isFirstPass','StartNoLaterThan','getOwnConstraintConflictInfo','FinishNoLaterThan','allowPostponedConflicts','startedTaskScheduling','name','isDateConstraintInterval','getDescriptionParameters','postponedConflict','writeEndDate','getConstraintName','isTaskPinnableWithConstraint','1547704iNeVQB','getResolutions','790dXudNM','RemoveDateConstraintConflictResolution','hasIdentifier','object','$name','resolvePostponedConflict','new','scheduleMixinClass','1858122jEZHit','effectiveDirection','constraintType','includeAsapAlapAsConstraints','no_own_constraint_conflict','Forward','kind','commitAsync','push','unshift','length','9SARlie','L{descriptionTpl}','constraintDate','calculateConstraintType','L{constraintTypeTpl}','writeDirection','Backward','addConstraintOnDateSet','resolve','sourceSchedule','writeConstraintType','dependency_with_own_constraint','event','343981xDHDPj','endDate','project','190546PrHhfS','defineProperty','isRestoring','format','owner','L{startDateDescriptionTpl}','forceResolutionOfPostponedConflict','isSyncingDataOnLoad','deprecate','resolutions','isReverting','startDate','Manual','canPostponeIntervalsConflict','getConstraintTypeDefaultDate','eventStore','L{endDateDescriptionTpl}','phase','construct','writeStartDate','decorate','call','descriptionBuilderClass','3QhhkeL','graph','getStartDatePinConstraintType','dateConstraintIntervalClass','FinishNoEarlierThan','createEndDateConstraintsInterval','DateConstraintIntervalDescription','MustFinishOn','StartNoEarlierThan','interval','7.0.0','getProject','isConstraintTypeApplicable','isWritingUndefined'];_ena=function(){return X;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';import _ene from'@bryntum/core-thin/lib/localization/Localizable.js';import{ConflictResolution,ConstraintInterval,ConstraintIntervalDescription}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import'../../../localization/En.js';import{ConstraintIntervalSide,ConstraintType,Direction,StartedTaskScheduling}from'../../../scheduling/Types.js';import{format}from'../../../util/Functions.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasDateConstraintScheduleMixin}from'./HasDateConstraintScheduleMixin.js';class HasDateConstraintMixin extends Mixin([ConstrainedEarlyEventMixin,HasChildrenMixin],a=>{const b=a['prototype'];class c extends a{constructor(){super(...arguments);this[n(-0x29b,-0x2a7)]=![];function n(a,b){return _enb(a- -0x399,b);}this['ignorePinningConstraint']=![];}get[o(0x72,0x71)](){function p(a,b){return o(b,a-0x3c2);}_end[p(0x411,0x436)](p(0x42a,0x421),'hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict');return this['postponedConflict'];}set['hasPostponedOwnConstraintConflict'](d){_end[q(-0x64,-0x5c)]('7.0.0','hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict');function q(a,b){return o(a,b- -0xab);}this[q(-0x2a,-0x18)]=d;}['writeStartDate'](d,e,f,g,h=!![]){const i=this[r(0x344,0x342)](),{$:j}=this;if(i?.[r(0x2fd,0x317)]&&e[r(0x306,0x338)][r(0x305,0x2ff)](j['effectiveDirection'])&&!i[r(0x2f6,0x32f)][r(0x30b,0x327)]&&!this[r(0x353,0x32a)]&&!i[r(0x366,0x356)]()[r(0x30a,0x322)]&&(h||this[r(0x33e,0x306)][r(0x381,0x351)]===Direction[r(0x2ec,0x30a)])){const k=this[r(0x369,0x339)]();if(k){if(e[r(0x31e,0x338)]===this['graph']){this['constraintDate']=g;this[r(0x320,0x307)]=k;}else{e[r(0x36d,0x357)](j['constraintDate'],g);e['write'](j['constraintType'],k);}}}function r(a,b){return o(a,b-0x2d9);}return b[r(0x320,0x333)][r(0x32d,0x335)](this,d,e,f,g,h);}[o(-0xe,0x1f)](d,e,f,g,h=![]){const i=this['getProject']();if(i?.[s(-0x194,-0x1ce)]&&e[s(-0x173,-0x187)][s(-0x1ac,-0x1a5)](this['$'][s(-0x15a,-0x15a)])&&h&&!i[s(-0x17c,-0x19c)][s(-0x184,-0x1ac)]&&!i[s(-0x155,-0x140)]()[s(-0x189,-0x17c)]){const j=this['getEndDatePinConstraintType']();if(j){e['write'](this['$'][s(-0x199,-0x18b)],g);e[s(-0x154,-0x141)](this['$'][s(-0x1a4,-0x1ad)],j);}}function s(a,b){return o(b,a- -0x1d2);}return b[s(-0x1b3,-0x1bd)][s(-0x176,-0x182)](this,d,e,f,g,h);}['writeConstraintType'](d,e,f,g,h=![]){const i=this[t(-0xa4,-0xa0)]();if(!h&&!d[t(-0xa2,-0xd0)]&&i[t(-0xde,-0x113)]){if(g!==ConstraintType[t(-0x98,-0x66)]&&g!==ConstraintType[t(-0x99,-0x83)]){if(e['baseRevision']['hasIdentifier'](d)){e[t(-0x8f,-0x9b)](this['$']['direction'],null,!![]);}}else{e[t(-0x8f,-0x8d)](this['$'][t(-0x95,-0x5c)],g===ConstraintType[t(-0x98,-0xb2)]?Direction['Forward']:Direction['Backward'],!![]);e[t(-0x8f,-0x7c)](this['$'][t(-0xd4,-0xed)],null);}}function t(a,b){return o(b,a- -0x10d);}d[t(-0x9e,-0xa7)][t(-0x9a,-0x72)][t(-0x8f,-0x63)]['call'](this,d,e,f,g);}['writeDirection'](d,e,f,g,h=![]){const i=this['getProject']();if(!h&&!d[u(0x8a,0xa7)]&&i[u(0xa1,0x6b)]&&(g||e[u(0xe3,0xbc)][u(0x44,0x62)](d))){e[u(0xed,0xba)](this['$'][u(0x39,0x6a)],g===Direction[u(0x4b,0x6d)]?ConstraintType['AsSoonAsPossible']:g===Direction[u(0x4e,0x79)]?ConstraintType[u(0x85,0xb0)]:null,!![]);}function u(a,b){return o(a,b-0x3c);}d[u(0xa4,0xab)]['prototype'][u(0x84,0xba)][u(0xb6,0x98)](this,d,e,f,g);}*[o(0x5d,0x3a)](){let d=yield ProposedOrPrevious;if(!(yield*this[v(0x34e,0x37b)](d))){d=null;}function v(a,b){return o(a,b-0x311);}return d;}*[o(0x3f,0x7a)](d){let e=yield ProposedOrPrevious;function w(a,b){return o(b,a- -0x21b);}const f=yield this['$'][w(-0x1ed,-0x217)];if(!f){e=null;}else if(!e){e=this[w(-0x1c6,-0x1f6)](d,f);}return e;}[o(0x82,0x60)](){function x(a,b){return o(b,a- -0x1cd);}const {effectiveDirection:d}=this[x(-0x187,-0x16d)];if(!this[x(-0x1ac,-0x1c2)]())return null;switch(d[x(-0x155,-0x126)]){case Direction[x(-0x19c,-0x161)]:return ConstraintType[x(-0x167,-0x168)];case Direction[x(-0x190,-0x1af)]:return ConstraintType[x(-0x142,-0x148)];}}[o(0x4a,0x6e)](){function y(a,b){return o(b,a- -0xc4);}const {effectiveDirection:d}=this[y(-0x7e,-0xa8)];if(!this[y(-0xa3,-0x81)]())return null;switch(d[y(-0x4c,-0x4d)]){case Direction[y(-0x93,-0xba)]:return ConstraintType[y(-0x62,-0x53)];case Direction[y(-0x87,-0x7d)]:return ConstraintType['FinishNoLaterThan'];}}[o(0x44,0x76)](){function z(a,b){return o(b,a- -0x17a);}let d=this['manuallyScheduled'];if(!d){const e=this[z(-0x134,-0x11c)][z(-0xeb,-0x100)];if(e===StartedTaskScheduling[z(-0x127,-0x153)]){d=this['percentDone']>0x0;}}return d;}[o(0x20,0x21)](){function A(a,b){return o(a,b-0x339);}const {ignorePinningConstraint:d,constraintType:e}=this;let f=![];if(!this[A(0x39e,0x3af)]()&&!d){if(e){switch(e){case ConstraintType[A(0x3ad,0x3ae)]:case ConstraintType[A(0x39b,0x3ad)]:case ConstraintType[A(0x36e,0x39f)]:case ConstraintType['StartNoLaterThan']:case ConstraintType[A(0x3ae,0x39b)]:case ConstraintType['FinishNoLaterThan']:f=!![];}}else{f=!![];}}return f;}[o(0x87,0x88)](...d){this['ignorePinningConstraint']=!![];const e=super['applyChangeset'](...d);this['ignorePinningConstraint']=![];return e;}[o(0x4d,0x55)](d,e){function B(a,b){return o(b,a- -0x8);}switch(e){case ConstraintType['StartNoEarlierThan']:case ConstraintType['StartNoLaterThan']:case ConstraintType[B(0x73,0xa9)]:return d(ProposedOrPreviousValueOf(this['$'][B(0x4a,0x2c)]));case ConstraintType[B(0x5a,0x4c)]:case ConstraintType[B(0x85,0x66)]:case ConstraintType[B(0x5d,0x94)]:return d(ProposedOrPreviousValueOf(this['$'][B(0x3d,0xc)]));}return null;}*[o(0x4f,0x6a)](d){const e=yield*this[C(-0x214,-0x1ef)]();switch(d){case ConstraintType['FinishNoEarlierThan']:case ConstraintType[C(-0x20f,-0x230)]:case ConstraintType[C(-0x235,-0x215)]:case ConstraintType[C(-0x21f,-0x22a)]:return!e;}function C(a,b){return o(b,a- -0x29a);}return!![];}async['setConstraint'](d,e){this['constraintType']=d;if(e!==void 0x0){this[D(-0x16,-0x20)]=e;}function D(a,b){return o(a,b- -0x59);}return this[D(-0x46,-0x26)]();}[o(0x3a,0x54)](d){function E(a,b){return o(b,a-0x10d);}return this[E(0x153,0x13a)]['bwcConflictPostpone']?this['getOwnConstraintConflictInfo'](d)[E(0x13f,0x144)]===E(0x14f,0x11c):!![];}[o(0xbf,0x8c)](d){function F(a,b){return o(a,b-0xf5);}return{'kind':F(0x10b,0x125)};}*[o(0x56,0x83)](d,e){function G(a,b){return o(b,a- -0x244);}const f=yield*e[G(-0x1ba,-0x1e3)]();const g=yield this['$'][G(-0x1b1,-0x1d7)];if(g&&f&&e[G(-0x1ec,-0x1e7)]===g[G(-0x204,-0x210)][G(-0x1ec,-0x21a)]){yield Write(this['$']['postponedConflict'],null);}this['forceResolutionOfPostponedConflict']=![];}async[o(0x57,0x29)](){function H(a,b){return o(a,b- -0x2a6);}if(this[H(-0x246,-0x213)]){this[H(-0x1f2,-0x213)]=null;this[H(-0x27e,-0x259)]=!![];}return this[H(-0x243,-0x260)][H(-0x274,-0x273)]();}*['createStartDateConstraintsInterval'](d,e,f,g){function I(a,b){return o(b,a-0x255);}const h=this[I(0x29b,0x26e)][I(0x2b6,0x2c7)];switch(d){case ConstraintType['MustStartOn']:g[I(0x28a,0x25a)](h['new']({'owner':this,'side':ConstraintIntervalSide['Start'],'startDate':e,'endDate':e}));break;case ConstraintType[I(0x2bb,0x2a0)]:g['unshift'](h[I(0x27f,0x258)]({'owner':this,'side':ConstraintIntervalSide['Start'],'startDate':e}));break;case ConstraintType['StartNoLaterThan']:g[I(0x28a,0x26c)](h[I(0x27f,0x270)]({'owner':this,'side':ConstraintIntervalSide['Start'],'endDate':e}));break;}}*[o(0x42,0x63)](d,e,f,g){const h=this[J(-0x233,-0x238)][J(-0x218,-0x23a)];function J(a,b){return o(b,a- -0x279);}switch(d){case ConstraintType[J(-0x214,-0x225)]:g[J(-0x244,-0x26f)](h[J(-0x24f,-0x22d)]({'owner':this,'side':ConstraintIntervalSide['End'],'startDate':e,'endDate':e}));break;case ConstraintType['FinishNoEarlierThan']:g[J(-0x244,-0x25d)](h[J(-0x24f,-0x22c)]({'owner':this,'side':ConstraintIntervalSide['End'],'startDate':e}));break;case ConstraintType[J(-0x1ec,-0x205)]:g['unshift'](h[J(-0x24f,-0x243)]({'owner':this,'side':ConstraintIntervalSide['End'],'endDate':e}));break;}}}function o(a,b){return _enb(b- -0xb1,a);}c[o(0x48,0x2b)]=Mixin([a['scheduleMixinClass'],HasDateConstraintScheduleMixin],d=>d);__decorate([model_field({'type':o(0x9c,0x84)},{'sync':!![]})],c[o(0x9a,0x73)],o(0x29,0x2e),void 0x0);__decorate([model_field({'type':'date'},{'converter':dateConverter,'sync':!![]})],c[o(0x59,0x73)],'constraintDate',void 0x0);__decorate([model_field({'defaultValue':null,'persist':![]},{'sync':!![]})],c['prototype'],'postponedConflict',void 0x0);__decorate([write('constraintType')],c[o(0x9c,0x73)],o(0x71,0x41),null);__decorate([write(o(0x48,0x78))],c[o(0x94,0x73)],o(0x1e,0x3c),null);__decorate([calculate(o(0x8,0x2e))],c[o(0xa8,0x73)],o(0x1,0x3a),null);__decorate([calculate(o(0x16,0x39))],c[o(0x56,0x73)],o(0x97,0x7a),null);return c;}){}class RemoveDateConstraintConflictResolution extends _ene(ConflictResolution){[_enK(0xe7,0xcd)](){function L(a,b){return _enK(a,b-0x124);}super['construct'](...arguments);this[L(0x1b6,0x1db)]=this[L(0x1d4,0x1ff)][L(0x21b,0x1e3)];}[_enK(0x11b,0xf5)](){const {event:a}=this;function M(a,b){return _enK(a,b-0xbb);}return format(this['L'](M(0x175,0x167)),a[M(0x1ab,0x1bf)]||a['id'],this['interval'][M(0x184,0x14f)](a[M(0x197,0x15d)]));}['resolve'](){const {event:a}=this;function N(a,b){return _enK(a,b- -0x11d);}a['constraintType']=null;a[N(-0x44,-0x70)]=null;}}RemoveDateConstraintConflictResolution[_enK(0x7a,0x9c)]=_enK(0x7e,0x99);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xd0;let f=c[d];return f;};return _enb(a,b);}class PostponeDateConstraintConflictResolution extends _ene(ConflictResolution){get[_enK(0xba,0xb7)](){function O(a,b){return _enK(a,b- -0xd7);}return this[O(0xf,0x4)][O(-0x26,-0x18)];}[_enK(0xcb,0xf5)](){const {event:a}=this;return format(this['L']('L{descriptionTpl}'),a['name']||a['id']);}[_enK(0xb7,0xb3)](){function P(a,b){return _enK(b,a- -0x5c);}this[P(0x5b,0x69)]['postponedConflict']=this[P(0x8a,0x6c)];}}PostponeDateConstraintConflictResolution[_enK(0xb3,0x9c)]='PostponeDateConstraintConflictResolution';class DateConstraintIntervalDescription extends ConstraintIntervalDescription{static['getDescription'](a){a=a[Q(0x219,0x23d)]||a;let b;function Q(a,b){return _enK(a,b-0x140);}switch(a['owner'][Q(0x1de,0x1e2)]){case ConstraintType[Q(0x1f8,0x21a)]:case ConstraintType[Q(0x1e9,0x216)]:case ConstraintType[Q(0x211,0x22f)]:case ConstraintType[Q(0x1f6,0x219)]:b=this['L'](Q(0x233,0x200));break;case ConstraintType[Q(0x217,0x23f)]:case ConstraintType[Q(0x20e,0x241)]:b=this['L'](Q(0x1dc,0x20b));break;}return format(b,...this[Q(0x277,0x246)](a));}static[_enK(0xbd,0x94)](a){function R(a,b){return _enK(a,b- -0x129);}return this['L'](R(-0xb4,-0x7a))[a];}static[_enK(0xfb,0x106)](a){a=a[S(-0x19f,-0x1c5)]||a;function S(a,b){return _enK(a,b- -0x2c2);}const b=a['owner'];return[_enc[S(-0x1cc,-0x204)](a[S(-0x1d8,-0x1fc)],this['L']('L{dateFormat}')),_enc[S(-0x20b,-0x204)](a['endDate'],this['L']('L{dateFormat}')),b[S(-0x1bd,-0x1be)]||b['id'],this[S(-0x20d,-0x22e)](b[S(-0x1fc,-0x220)])];}}DateConstraintIntervalDescription[_enK(0xa9,0x9c)]=_enK(0xd5,0xd8);class DateConstraintInterval extends ConstraintInterval{get[_enK(0x114,0x105)](){return!![];}['getConstraintName'](a){function T(a,b){return _enK(a,b-0xd5);}return this[T(0x189,0x1a6)][T(0x187,0x169)](a||this['owner']['constraintType']);}[_enK(0xf2,0xf5)](){function U(a,b){return _enK(b,a-0xa);}return this[U(0xdb,0xb2)][U(0xff,0xcf)](this);}[_enK(0x132,0xfb)](a){function V(a,b){return _enK(a,b-0x47);}const b=this[V(0xf2,0x106)];a=a||b[V(0x125,0x11a)]['activeTransaction'];const {entries:c}=a,{$:d}=b,e=c['get'](d[V(0xcb,0xf4)]),f=c[V(0x13c,0x137)](d[V(0xe2,0xe9)]);return!a[V(0x139,0x13b)][V(0xd9,0xe1)](b['$$'])||e&&!e[V(0x111,0x140)]()||f&&!f[V(0x121,0x140)]();}[_enK(0x5d,0x97)](a,b){if(this[W(0xa8,0x76)]!==void 0x0)return this[W(0xa8,0xa8)];const c=[this['removeDateConstraintConflictResolutionClass'][W(0x82,0xba)]({'interval':this})],d=this[W(0xa3,0x74)],e=d['getProject']();function W(a,b){return _enK(b,a- -0x1c);}if((e[W(0xe6,0x111)]||e['autoPostponeConflicts'])&&d[W(0xac,0xb5)](a)){c[W(0x8c,0xa4)](PostponeDateConstraintConflictResolution[W(0x82,0xb9)]({'interval':this,'conflict':b}));}return this['resolutions']=c;}}__decorate([prototypeValue(RemoveDateConstraintConflictResolution)],DateConstraintInterval['prototype'],_enK(0xcd,0xf3),void 0x0);__decorate([prototypeValue(DateConstraintIntervalDescription)],DateConstraintInterval[_enK(0xcc,0xe7)],_enK(0xab,0xd1),void 0x0);export{DateConstraintInterval,DateConstraintIntervalDescription,HasDateConstraintMixin,PostponeDateConstraintConflictResolution,RemoveDateConstraintConflictResolution};
1
+ (function(a,b){function l(a,b){return _enb(a- -0x3f,b);}const c=a();while(!![]){try{const d=-parseInt(l(0xb1,0x98))/0x1+-parseInt(l(0xc6,0xd3))/0x2+-parseInt(l(0xb4,0xc4))/0x3*(-parseInt(l(0xbd,0xdb))/0x4)+parseInt(l(0x66,0x55))/0x5+-parseInt(l(0xa5,0x81))/0x6+parseInt(l(0xc8,0xc2))/0x7+parseInt(l(0xa0,0x6b))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd66c9));var __decorate=function(a,b,e,f){var g=arguments[m(0x1f8,0x1c0)],h=g<0x3?b:f===null?f=Object[m(0x1b6,0x1ac)](b,e):f,j;function m(a,b){return _enb(b-0x117,a);}if(typeof Reflect===m(0x200,0x1cb)&&typeof Reflect[m(0x1fc,0x20f)]===m(0x21a,0x1e9))h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(0x1b9,0x1c0)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x1cc,0x1fa)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x92;let f=c[d];return f;};return _enb(a,b);}import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';import _ene from'@bryntum/core-thin/lib/localization/Localizable.js';import{ConflictResolution,ConstraintInterval,ConstraintIntervalDescription}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';function _ena(){const Z=['effectiveDirection','unshift','isReverting','includeAsapAlapAsConstraints','startDate','AsLateAsPossible','hasSubEvents','object','write','L{startDateDescriptionTpl}','calculateConstraintType','FinishNoEarlierThan','isFirstPass','PostponeDateConstraintConflictResolution','StartNoEarlierThan','hasIdentifier','interval','constraintType','getConstraintTypeDefaultDate','L{endDateDescriptionTpl}','7.0.0','L{descriptionTpl}','getOwnConstraintConflictInfo','L{constraintTypeTpl}','kind','$name','get','forceResolutionOfPostponedConflict','isDateConstraintInterval','getEndDatePinConstraintType','Forward','endDate','getConstraintName','StartNoLaterThan','baseRevision','format','removeDateConstraintConflictResolutionClass','function','calculateConstraintDate','addConstraintOnDateSet','Manual','call','writeStartDate','new','resolvePostponedConflict','project','resolutions','constraintDate','name','MustFinishOn','5678128sXdrjn','direction','ignorePinningConstraint','AsSoonAsPossible','defineProperty','10312296aWyGLX','no_own_constraint_conflict','dependency_with_own_constraint','eventStore','Backward','writeDirection','getStartDatePinConstraintType','getProject','bwcConflictPostpone','isTaskPinnableWithConstraint','descriptionBuilderClass','autoPostponeConflicts','228576rHNMfF','constructor','dateConstraintIntervalClass','15hKsnFp','createStartDateConstraintsInterval','deprecate','isShadow','getDescriptionParameters','decorate','postponedConflict','End','sourceSchedule','1186732mnZZLy','scheduleMixinClass','push','commitAsync','isWritingUndefined','canPostponeIntervalsConflict','isAffectedByTransaction','getDescription','owner','2377662SwHqtf','Start','2966509YoVLVq','getResolutions','graph','startedTaskScheduling','MustStartOn','getOwnPropertyDescriptor','RemoveDateConstraintConflictResolution','isSyncingDataOnLoad','phase','FinishNoLaterThan','hasPostponedOwnConstraintConflict','isRestoring','DateConstraintIntervalDescription','event','string','writeEndDate','prototype','onNonEmptyEffectiveInterval','applyChangeset','hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict','L{dateFormat}','6987180lREMUD','createEndDateConstraintsInterval','isConstraintTypeApplicable','allowPostponedConflicts','length','_isManuallyScheduled','resolve','construct'];_ena=function(){return Z;};return _ena();}import'../../../localization/En.js';import{ConstraintIntervalSide,ConstraintType,Direction,StartedTaskScheduling}from'../../../scheduling/Types.js';import{format}from'../../../util/Functions.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasDateConstraintScheduleMixin}from'./HasDateConstraintScheduleMixin.js';class HasDateConstraintMixin extends Mixin([ConstrainedEarlyEventMixin,HasChildrenMixin],a=>{const b=a[n(-0x18,-0x20)];class c extends a{constructor(){super(...arguments);this[o(-0x63,-0x3b)]=![];function o(a,b){return n(b,a- -0x6b);}this[o(-0x4a,-0x5d)]=![];}get['hasPostponedOwnConstraintConflict'](){_end[p(0x3a3,0x3cd)](p(0x3a5,0x399),p(0x390,0x37b));function p(a,b){return n(a,b-0x398);}return this['postponedConflict'];}set[n(-0x5a,-0x26)](d){_end[q(0x38,0xf)](q(0x4,-0x35),q(-0x1a,-0xd));function q(a,b){return n(b,a-0x3);}this[q(0x3c,0x48)]=d;}[n(0x2e,0x17)](d,e,f,g,h=!![]){function r(a,b){return n(a,b-0x1a1);}const i=this[r(0x19f,0x1cc)](),{$:j}=this;if(i?.[r(0x1a1,0x1b5)]&&e['graph'][r(0x1a4,0x19d)](j[r(0x156,0x18e)])&&!i[r(0x1a5,0x1c8)][r(0x199,0x178)]&&!this[r(0x178,0x190)]&&!i['getStm']()[r(0x167,0x17c)]&&(h||this[r(0x184,0x18e)][r(0x19f,0x1c1)]===Direction['Forward'])){const k=this[r(0x1ce,0x1cb)]();if(k){if(e[r(0x1a1,0x173)]===this['graph']){this['constraintDate']=g;this[r(0x1ca,0x19f)]=k;}else{e[r(0x18e,0x196)](j[r(0x18f,0x1bd)],g);e[r(0x163,0x196)](j['constraintType'],k);}}}return b[r(0x1e7,0x1b8)][r(0x199,0x1b7)](this,d,e,f,g,h);}['writeEndDate'](d,e,f,g,h=![]){function s(a,b){return n(a,b-0xa0);}const i=this[s(0x97,0xcb)]();if(i?.[s(0x9c,0xb4)]&&e[s(0x5b,0x72)][s(0xbe,0x9c)](this['$'][s(0xa8,0xc0)])&&h&&!i['eventStore'][s(0x5f,0x77)]&&!i['getStm']()[s(0x83,0x7b)]){const j=this['getEndDatePinConstraintType']();if(j){e[s(0xc5,0x95)](this['$'][s(0xbb,0xbc)],g);e[s(0x8b,0x95)](this['$'][s(0xa1,0x9e)],j);}}return b[s(0x9f,0x7f)][s(0x8a,0xb6)](this,d,e,f,g,h);}['writeConstraintType'](d,e,f,g,h=![]){const i=this[t(0x2cf,0x2b6)]();function t(a,b){return n(a,b-0x28b);}if(!h&&!d[t(0x2d1,0x2cb)]&&i[t(0x248,0x27b)]){if(g!==ConstraintType[t(0x2b1,0x2ad)]&&g!==ConstraintType['AsLateAsPossible']){if(e[t(0x284,0x29a)][t(0x27a,0x287)](d)){e['write'](this['$'][t(0x280,0x2ab)],null,!![]);}}else{e[t(0x266,0x280)](this['$'][t(0x2b3,0x2ab)],g===ConstraintType[t(0x2d1,0x2ad)]?Direction[t(0x2c3,0x296)]:Direction[t(0x29a,0x2b3)],!![]);e[t(0x27f,0x280)](this['$'][t(0x27e,0x2a7)],null);}}d[t(0x2c3,0x2bc)][t(0x289,0x26b)][t(0x280,0x280)][t(0x2a2,0x2a1)](this,d,e,f,g);}[n(0x35,0x29)](d,e,f,g,h=![]){const i=this['getProject']();if(!h&&!d['isWritingUndefined']&&i[u(0x31c,0x317)]&&(g||e[u(0x362,0x336)][u(0x307,0x323)](d))){switch(g){case Direction[u(0x304,0x332)]:e[u(0x353,0x31c)](this['$'][u(0x317,0x325)],ConstraintType['AsSoonAsPossible'],!![]);break;case Direction[u(0x321,0x34f)]:e[u(0x31f,0x31c)](this['$'][u(0x33b,0x325)],ConstraintType['AsLateAsPossible'],!![]);break;default:if(this[u(0x305,0x325)]===ConstraintType[u(0x361,0x349)]||this[u(0x327,0x325)]===ConstraintType[u(0x344,0x319)]){e[u(0x340,0x31c)](this['$']['constraintType'],null,!![]);}break;}}function u(a,b){return n(a,b-0x327);}d[u(0x326,0x358)][u(0x336,0x307)][u(0x33c,0x31c)][u(0x31d,0x33d)](this,d,e,f,g);}*[n(-0x41,-0x9)](){let d=yield ProposedOrPrevious;if(!(yield*this[v(0x266,0x24a)](d))){d=null;}function v(a,b){return n(a,b-0x263);}return d;}*['calculateConstraintDate'](d){let e=yield ProposedOrPrevious;function w(a,b){return n(b,a- -0x308);}const f=yield this['$']['constraintType'];if(!f){e=null;}else if(!e){e=this[w(-0x309,-0x313)](d,f);}return e;}[n(0x34,0x2a)](){const {effectiveDirection:d}=this[x(-0x223,-0x216)];function x(a,b){return n(b,a- -0x23d);}if(!this[x(-0x210,-0x207)]())return null;switch(d[x(-0x21d,-0x21d)]){case Direction[x(-0x232,-0x230)]:return ConstraintType[x(-0x242,-0x277)];case Direction['Backward']:return ConstraintType[x(-0x22f,-0x213)];}}[n(0x19,0xa)](){function y(a,b){return n(a,b-0x12d);}const {effectiveDirection:d}=this['project'];if(!this[y(0x13c,0x15a)]())return null;switch(d[y(0x116,0x14d)]){case Direction[y(0x15c,0x138)]:return ConstraintType[y(0x107,0x125)];case Direction[y(0x17a,0x155)]:return ConstraintType[y(0xd8,0x106)];}}[n(0x25,-0x16)](){let d=this['manuallyScheduled'];if(!d){const e=this[z(0x150,0x162)][z(0x133,0x11b)];if(e===StartedTaskScheduling[z(0x13d,0x15d)]){d=this['percentDone']>0x0;}}function z(a,b){return n(a,b-0x148);}return d;}[n(0x3a,0x2d)](){const {ignorePinningConstraint:d,constraintType:e}=this;function A(a,b){return n(b,a- -0x2d7);}let f=![];if(!this[A(-0x2ed,-0x2b1)]()&&!d){if(e){switch(e){case ConstraintType[A(-0x2b5,-0x2b8)]:case ConstraintType['AsLateAsPossible']:case ConstraintType[A(-0x2dc,-0x314)]:case ConstraintType[A(-0x2c9,-0x2a6)]:case ConstraintType['FinishNoEarlierThan']:case ConstraintType[A(-0x2fe,-0x2f8)]:f=!![];}}else{f=!![];}}return f;}[n(-0x5,-0x1e)](...d){this[B(0x2cd,0x2e4)]=!![];const e=super[B(0x28e,0x296)](...d);function B(a,b){return n(b,a-0x2ac);}this[B(0x2cd,0x2e9)]=![];return e;}['getConstraintTypeDefaultDate'](d,e){function C(a,b){return n(b,a-0x3e5);}switch(e){case ConstraintType[C(0x3e0,0x3e8)]:case ConstraintType[C(0x3f3,0x41e)]:case ConstraintType['MustStartOn']:return d(ProposedOrPreviousValueOf(this['$'][C(0x3d6,0x3e4)]));case ConstraintType[C(0x3dd,0x3e0)]:case ConstraintType[C(0x3be,0x39b)]:case ConstraintType[C(0x403,0x3dd)]:return d(ProposedOrPreviousValueOf(this['$']['endDate']));}return null;}*[n(0xe,-0x19)](d){function D(a,b){return n(a,b-0x39a);}const e=yield*this[D(0x369,0x38d)]();switch(d){case ConstraintType[D(0x3bb,0x392)]:case ConstraintType[D(0x3de,0x3a8)]:case ConstraintType[D(0x3ca,0x3b8)]:case ConstraintType['MustStartOn']:return!e;}return!![];}async['setConstraint'](d,e){this[E(0x192,0x1b9)]=d;function E(a,b){return n(b,a-0x194);}if(e!==void 0x0){this[E(0x1b0,0x1d2)]=e;}return this[E(0x1d3,0x1ad)]();}['canPostponeIntervalsConflict'](d){function F(a,b){return n(a,b- -0x112);}return this[F(-0xc7,-0xf8)][F(-0x11e,-0xe6)]?this[F(-0xd8,-0x10f)](d)[F(-0x10e,-0x10d)]===F(-0x122,-0xec):!![];}[n(-0x11,0x3)](d){function G(a,b){return n(a,b-0x52);}return{'kind':G(0x7b,0x77)};}*[n(-0x35,-0x1f)](d,e){const f=yield*e[H(0xc4,0x8d)]();const g=yield this['$']['postponedConflict'];if(g&&f&&e[H(0xa3,0xb2)]===g[H(0x106,0x140)]['phase']){yield Write(this['$'][H(0x104,0xee)],null);}function H(a,b){return n(b,a-0xcb);}this[H(0xd3,0xb1)]=![];}async[n(0x37,0x19)](){function I(a,b){return n(a,b- -0x2cd);}if(this[I(-0x297,-0x294)]){this[I(-0x261,-0x294)]=null;this['forceResolutionOfPostponedConflict']=!![];}return this[I(-0x28d,-0x2b3)]['commitAsync']();}*[n(0x15,0x34)](d,e,f,g){const h=this[J(0x3b7,0x3a1)][J(0x3cf,0x3ad)];function J(a,b){return n(b,a-0x39d);}switch(d){case ConstraintType['MustStartOn']:g[J(0x38b,0x39b)](h[J(0x3b5,0x38a)]({'owner':this,'side':ConstraintIntervalSide[J(0x3e3,0x413)],'startDate':e,'endDate':e}));break;case ConstraintType[J(0x398,0x3b4)]:g[J(0x38b,0x3a6)](h[J(0x3b5,0x3bc)]({'owner':this,'side':ConstraintIntervalSide[J(0x3e3,0x41b)],'startDate':e}));break;case ConstraintType['StartNoLaterThan']:g[J(0x38b,0x3a0)](h[J(0x3b5,0x3b4)]({'owner':this,'side':ConstraintIntervalSide[J(0x3e3,0x416)],'endDate':e}));break;}}*[n(-0x24,-0x1a)](d,e,f,g){function K(a,b){return n(a,b-0x2ba);}const h=this[K(0x2c8,0x2d4)][K(0x2ff,0x2ec)];switch(d){case ConstraintType['MustFinishOn']:g[K(0x2aa,0x2a8)](h[K(0x306,0x2d2)]({'owner':this,'side':ConstraintIntervalSide['End'],'startDate':e,'endDate':e}));break;case ConstraintType[K(0x2cf,0x2b2)]:g[K(0x2d3,0x2a8)](h[K(0x2d4,0x2d2)]({'owner':this,'side':ConstraintIntervalSide['End'],'startDate':e}));break;case ConstraintType['FinishNoLaterThan']:g['unshift'](h['new']({'owner':this,'side':ConstraintIntervalSide[K(0x2d0,0x2f4)],'endDate':e}));break;}}}c[n(0x20,0x3d)]=Mixin([a[n(0x34,0x3d)],HasDateConstraintScheduleMixin],d=>d);__decorate([model_field({'type':n(-0x46,-0x22)},{'sync':!![]})],c[n(-0x1f,-0x20)],n(0x21,-0x2),void 0x0);__decorate([model_field({'type':'date'},{'converter':dateConverter,'sync':!![]})],c[n(-0x32,-0x20)],n(-0xe,0x1c),void 0x0);__decorate([model_field({'defaultValue':null,'persist':![]},{'sync':!![]})],c[n(-0xf,-0x20)],n(0x43,0x39),void 0x0);__decorate([write(n(0x1e,-0x2))],c['prototype'],'writeConstraintType',null);__decorate([write('direction')],c['prototype'],n(0xc,0x29),null);__decorate([calculate(n(0x6,-0x2))],c[n(-0x4f,-0x20)],n(-0x10,-0x9),null);function n(a,b){return _enb(b- -0xc0,a);}__decorate([calculate(n(0x19,0x1c))],c[n(-0x3e,-0x20)],n(0x1a,0x13),null);return c;}){}class RemoveDateConstraintConflictResolution extends _ene(ConflictResolution){[_enL(0x44d,0x423)](){super[M(-0x38,-0x3f)](...arguments);function M(a,b){return _enL(b- -0x48c,a);}this['event']=this['interval'][M(0x15,0x19)];}[_enL(0x4a4,0x482)](){const {event:a}=this;function N(a,b){return _enL(a- -0x56b,b);}return format(this['L'](N(-0x108,-0xd6)),a['name']||a['id'],this[N(-0x10d,-0x12c)][N(-0xfd,-0x118)](a['constraintType']));}[_enL(0x44c,0x46c)](){const {event:a}=this;function O(a,b){return _enL(b- -0x2ab,a);}a[O(0x1a8,0x1b4)]=null;a['constraintDate']=null;}}RemoveDateConstraintConflictResolution[_enL(0x467,0x47d)]=_enL(0x437,0x46b);class PostponeDateConstraintConflictResolution extends _ene(ConflictResolution){get[_enL(0x43e,0x408)](){function P(a,b){return _enL(a- -0x333,b);}return this['interval'][P(0x172,0x19b)];}['getDescription'](){const {event:a}=this;function Q(a,b){return _enL(a- -0x4ac,b);}return format(this['L'](Q(-0x49,-0x6e)),a['name']||a['id']);}[_enL(0x44c,0x445)](){function R(a,b){return _enL(b- -0x549,a);}this[R(-0xda,-0x10b)][R(-0xc6,-0xaf)]=this['conflict'];}}PostponeDateConstraintConflictResolution['$name']=_enL(0x45b,0x447);class DateConstraintIntervalDescription extends ConstraintIntervalDescription{static[_enL(0x4a4,0x4cb)](a){a=a['reflectionOf']||a;let b;switch(a[S(0x2da,0x2bd)][S(0x294,0x2b7)]){case ConstraintType[S(0x291,0x269)]:case ConstraintType[S(0x28e,0x27c)]:case ConstraintType[S(0x26a,0x27b)]:case ConstraintType[S(0x2b4,0x27c)]:b=this['L'](S(0x28c,0x289));break;case ConstraintType[S(0x2a4,0x2a1)]:case ConstraintType['FinishNoLaterThan']:b=this['L'](S(0x296,0x2b2));break;}function S(a,b){return _enL(a- -0x1cb,b);}return format(b,...this['getDescriptionParameters'](a));}static[_enL(0x46e,0x467)](a){function T(a,b){return _enL(a-0xb,b);}return this['L'](T(0x470,0x4a9))[a];}static[_enL(0x498,0x49b)](a){function U(a,b){return _enL(a- -0x58c,b);}a=a['reflectionOf']||a;const b=a[U(-0xe7,-0xf3)];return[_enc[U(-0x11b,-0x14b)](a[U(-0x13a,-0x10e)],this['L']('L{dateFormat}')),_enc['format'](a[U(-0x11f,-0x125)],this['L'](U(-0x147,-0x121))),b[U(-0x10e,-0x106)]||b['id'],this[U(-0x11e,-0x127)](b[U(-0x12d,-0x10b)])];}}DateConstraintIntervalDescription[_enL(0x467,0x44b)]=_enL(0x43d,0x422);class DateConstraintInterval extends ConstraintInterval{get[_enL(0x46a,0x498)](){return!![];}['getConstraintName'](a){function V(a,b){return _enL(a- -0x712,b);}return this[V(-0x283,-0x2a2)][V(-0x2a4,-0x2c4)](a||this[V(-0x26d,-0x234)][V(-0x2b3,-0x2db)]);}[_enL(0x4a4,0x49a)](){function W(a,b){return _enL(a- -0x368,b);}return this[W(0x127,0x115)][W(0x13c,0x143)](this);}[_enL(0x4a3,0x480)](a){const b=this[X(0x48a,0x4c4)];a=a||b[X(0x428,0x452)]['activeTransaction'];function X(a,b){return _enL(b-0x1f,a);}const {entries:c}=a,{$:d}=b,e=c[X(0x4a6,0x487)](d['constraintDate']),f=c[X(0x476,0x487)](d[X(0x485,0x47e)]);return!a['baseRevision'][X(0x444,0x47c)](b['$$'])||e&&!e[X(0x4de,0x4b6)]()||f&&!f['isShadow']();}[_enL(0x4a9,0x4ca)](a,b){function Y(a,b){return _enL(b- -0x6c4,a);}if(this[Y(-0x24f,-0x248)]!==void 0x0)return this[Y(-0x282,-0x248)];const c=[this[Y(-0x272,-0x252)][Y(-0x22f,-0x24b)]({'interval':this})],d=this['owner'],e=d[Y(-0x24e,-0x238)]();if((e[Y(-0x250,-0x27b)]||e[Y(-0x256,-0x234)])&&d[Y(-0x233,-0x222)](a)){c[Y(-0x1eb,-0x225)](PostponeDateConstraintConflictResolution[Y(-0x27b,-0x24b)]({'interval':this,'conflict':b}));}return this[Y(-0x281,-0x248)]=c;}}function _enL(a,b){return _enb(a-0x3a1,b);}__decorate([prototypeValue(RemoveDateConstraintConflictResolution)],DateConstraintInterval['prototype'],'removeDateConstraintConflictResolutionClass',void 0x0);__decorate([prototypeValue(DateConstraintIntervalDescription)],DateConstraintInterval['prototype'],'descriptionBuilderClass',void 0x0);export{DateConstraintInterval,DateConstraintIntervalDescription,HasDateConstraintMixin,PostponeDateConstraintConflictResolution,RemoveDateConstraintConflictResolution};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryntum/engine-thin-trial",
3
- "version": "7.3.2",
3
+ "version": "7.3.4",
4
4
  "description": "Bryntum Engine JavaScript thin trial component package",
5
5
  "keywords": [
6
6
  "bryntum",