(function(a,b){function l(a,b){return _gab(a- -0x93,b);}const c=a();while(!![]){try{const d=parseInt(l(0xa3,0x9c))/0x1+parseInt(l(0x7c,0x79))/0x2+parseInt(l(0x83,0x98))/0x3*(parseInt(l(0xac,0xac))/0x4)+parseInt(l(0x95,0x95))/0x5+-parseInt(l(0xaa,0xb3))/0x6+parseInt(l(0x80,0x95))/0x7+-parseInt(l(0x81,0x7c))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_gaa,0x5cfc1));import _gac from'@bryntum/scheduler-thin/lib/feature/base/DragCreateBase.js';import _gad from'@bryntum/grid-thin/lib/feature/GridFeatureManager.js';function _gam(a,b){return _gab(a- -0x3e6,b);}function _gaa(){const v=['eventContexts','onAborted','getDateConstraints','context','endListeningForBatchedUpdates','forEach','2550954kRqhhh','getElementFromTaskRecord','4lTxnxW','closest','$name','startEvent','element','checkValidity','31946EEMYhb','taskRecord','isDateRangeValid','beginBatch','5314610aRxgBh','8394000xeylnP','startDate','800031zecCVL','scrollManager','pageX','mousedownDate','timeAxisColumn','internalUpdateRecord','beforeDragCreate','oldValue','client','getRecordFromElement','handleBeforeDragCreate','registerFeature','floor','resolution','call','endDate','cancelEventRecordBatch','isRowEmpty','2175285SPWhHq','dragging','Gantt','startDrag','createValidatorFn','weekStartDay','setupDragContext','beginListeningForBatchedUpdates','store','target','trigger','event','set','configurable','378337FtVPVo'];_gaa=function(){return v;};return _gaa();}function _gab(a,b){const c=_gaa();_gab=function(d,e){d=d-0x10c;let f=c[d];return f;};return _gab(a,b);}import _gae from'@bryntum/core-thin/lib/mixin/Draggable.js';import _gaf from'@bryntum/core-thin/lib/helper/DateHelper.js';export default class TaskDragCreate extends _gac{static [_gam(-0x2a5,-0x2a4)]='TaskDragCreate';static [_gam(-0x2b1,-0x2bd)]={'preventMultiple':!![]};get[_gam(-0x2b6,-0x2ad)](){function n(a,b){return _gam(a-0x5dc,b);}return this[n(0x314,0x31b)]['store'];}[_gam(-0x2b8,-0x2af)](a){function o(a,b){return _gam(b-0x72a,a);}var b,c;const {client:d}=this;if((b=(c=a[o(0x45b,0x475)])[o(0x499,0x484)])!==null&&b!==void 0x0&&b[o(0x45f,0x468)](c,'.'+d[o(0x462,0x45e)]['cellCls'])){const e=d[o(0x47c,0x463)](a[o(0x48e,0x475)]);if(e){const f=_gae()['prototype']['setupDragContext'][o(0x483,0x468)](this,a);f[o(0x465,0x45b)]=d[o(0x45b,0x45b)];f[o(0x45c,0x454)]=f['rowRecord']=e;return f;}}}['startDrag'](a){const b=this,c=b['draggingEnd']=a[p(0x2f1,0x2f4)]['pageX']>a[p(0x2cf,0x2cd)][p(0x2ed,0x2d9)],{client:d}=b,{timeAxis:e}=d,{mousedownDate:f,taskRecord:g,date:h}=a;d[p(0x305,0x2f0)]();function p(a,b){return _gam(b-0x5a7,a);}g[p(0x2b9,0x2d3)]();g[p(0x30d,0x2f5)](p(0x2ca,0x2d6),_gaf[p(0x2cb,0x2e3)](c?f:h,e[p(0x2fa,0x2e4)],undefined,d[p(0x2df,0x2ee)]));g[p(0x2e4,0x2f5)](p(0x2dc,0x2e6),_gaf['ceil'](c?h:f,e[p(0x2cd,0x2e4)],undefined,d[p(0x2f4,0x2ee)]));if(b[p(0x2c7,0x2e1)](a,g,a[p(0x2e7,0x2f4)])===![]){b[p(0x304,0x2f9)](a);return![];}a['itemElement']=a[p(0x2c2,0x2ce)]=d[p(0x30c,0x2ff)](a[p(0x2e3,0x2d1)]);const i=super[p(0x2fb,0x2ec)][p(0x2f9,0x2e5)](b,a),{context:j}=a;j[p(0x2cd,0x2de)]=a[p(0x2ee,0x2fb)][p(0x2de,0x2d1)][p(0x2e2,0x2d6)];j[p(0x2e3,0x2f8)][p(0x2f4,0x2fd)](k=>k[p(0x2d3,0x2de)]=k[p(0x2c7,0x2d6)]);return i;}['handleBeforeDragCreate'](a,b,c){var d,e;const f=this,g=f[q(0x298,0x2b1)][q(0x2be,0x2c5)](q(0x298,0x2af),{'taskRecord':b,'date':a[q(0x29c,0x2ac)],'event':c});f['dateConstraints']=(d=(e=f[q(0x2b0,0x2b1)])[q(0x2cf,0x2cc)])===null||d===void 0x0?void 0x0:d[q(0x2af,0x2b7)](e,b);function q(a,b){return _gam(b-0x579,a);}return g;}[_gam(-0x2d5,-0x2c7)](a){return!![];}[_gam(-0x2d8,-0x2d1)](a,b){const c=this;function r(a,b){return _gam(b-0x4b9,a);}a[r(0x1eb,0x1e3)]=c[r(0x20e,0x1fc)]['taskRecord'];return c[r(0x215,0x1ff)][r(0x1e9,0x1f7)](c['validatorFnThisObj']||c,a,b);}[_gam(-0x2bf,-0x2bb)](a){function s(a,b){return _gam(a-0x13,b);}return!a[s(-0x2be,-0x2bf)]||!a['endDate'];}[_gam(-0x2ae,-0x293)]({taskRecord:a}){a['cancelBatch']();function t(a,b){return _gam(b-0x1cd,a);}this[t(-0xe8,-0xfb)][t(-0xe0,-0xde)]();}async[_gam(-0x2cb,-0x2ce)](a,b){function u(a,b){return _gam(a-0x5c3,b);}const {startDate:c,endDate:d}=a;this['client'][u(0x318,0x304)]();this[u(0x303,0x303)](b);b[u(0x311,0x303)]({'startDate':c,'endDate':d});return!![];}}_gad[_gam(-0x2c5,-0x2d7)](TaskDragCreate,!![],_gam(-0x2bc,-0x2d7));