1"use strict";(self.webpackChunksoneta_pckg=self.webpackChunksoneta_pckg||[]).push([[2566],{498643:function(t,e,i){var n=i(58168),o=i(602886),r=i(115478),s=i(626674),l=i(279713),a=i(876464),p=i(836878),h=i(668618),u=i(69693),g=i(723162),d=i(47592),c=i(589837),m=i(853490);const f=o.A.dateToMilliseconds;e.A=class{constructor(t){this.options=t,this._initPositioningStrategy()}get isAdaptive(){return this.options.adaptivityEnabled}get rtlEnabled(){return this.options.rtlEnabled}get startDayHour(){return this.options.startDayHour}get endDayHour(){return this.options.endDayHour}get maxAppointmentsPerCell(){return this.options.maxAppointmentsPerCell}get cellWidth(){return this.options.cellWidth}get cellHeight(){return this.options.cellHeight}get allDayHeight(){return this.options.allDayHeight}get resizableStep(){return this.options.resizableStep}get isGroupedByDate(){return this.options.isGroupedByDate}get visibleDayDuration(){return this.options.visibleDayDuration}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get cellDuration(){return this.options.cellDuration}get cellDurationInMinutes(){return this.options.cellDurationInMinutes}get leftVirtualCellCount(){return this.options.leftVirtualCellCount}get topVirtualCellCount(){return this.options.topVirtualCellCount}get positionHelper(){return this.options.positionHelper}get showAllDayPanel(){return this.options.showAllDayPanel}get isGroupedAllDayPanel(){return this.options.isGroupedAllDayPanel}get groupOrientation(){return this.options.groupOrientation}get rowCount(){return this.options.rowCount}get groupCount(){return this.options.groupCount}get currentDate(){return this.options.currentDate}get appointmentCountPerCell(){return this.options.appointmentCountPerCell}get appointmentOffset(){return this.options.appointmentOffset}get allowResizing(){return this.options.allowResizing}get allowAllDayResizing(){return this.options.allowAllDayResizing}get viewDataProvider(){return this.options.viewDataProvider}get dataAccessors(){return this.options.dataAccessors}get timeZoneCalculator(){return this.options.timeZoneCalculator}get intervalCount(){return this.options.intervalCount}get allDayPanelMode(){return this.options.allDayPanelMode}get isVirtualScrolling(){return this.options.isVirtualScrolling}_correctCollectorCoordinatesInAdaptive(t,e){t.top+=this.getCollectorTopOffset(e),t.left+=this.getCollectorLeftOffset()}_initPositioningStrategy(){this._positioningStrategy=this.isAdaptive?new c.A(this):new m.A(this)}getPositioningStrategy(){return this._positioningStrategy}getAppointmentMinSize(){return 2}keepAppointmentSettings(){return!1}getDeltaTime(t,e,i){}getAppointmentGeometry(t){return t}needCorrectAppointmentDates(){return!0}getDirection(){return"horizontal"}createTaskPositionMap(t,e){delete this._maxAppointmentCountPerCell;const i=null==t?void 0:t.length;if(!i)return;const n=[];for(let e=0;e<i;e++){let i=this._getItemPosition(t[e]);i.length&&this.rtlEnabled&&(i=this._correctRtlCoordinates(i)),i.forEac
1h(t=>{t.leftVirtualCellCount=this.leftVirtualCellCount,t.topVirtualCellCount=this.topVirtualCellCount,t.leftVirtualWidth=this.leftVirtualCellCount*this.cellWidth,t.topVirtualHeight=this.topVirtualCellCount*this.cellHeight}),n.push(i)}const o=this._getSortedPositions(n),r=this._getResultPositions(o);return this._getExtendedPositionMap(n,r)}_getDeltaWidth(t,e){const i=this.resizableStep||this.getAppointmentMinSize(),n=e.width;return Math.round((t.width-n)/i)}_correctRtlCoordinates(t){const e=t[0].width||this._getAppointmentMaxWidth();return t.forEach(t=>{t.appointmentReduced||(t.left-=e)}),t}_getAppointmentMaxWidth(){return this.cellWidth}_getItemPosition(t){const e=this.shiftAppointmentByViewOffset(t),i=this.generateAppointmentSettings(e),n=this.isAllDay(e);let o=[];for(let t=0;t<i.length;t++){const s=this.calculateAppointmentHeight(e,i[t]),l=this.calculateAppointmentWidth(e,i[t]);let a=l,p=null,h=[],u=i[t].rowIndex,g=i[t].columnIndex;if(this._needVerifyItemSize()||n){const e=i[t].hMax;this.isAppointmentGreaterThan(e,{left:i[t].left,width:l})&&(p="head",u=i[t].rowIndex,g=i[t].columnIndex,a=this._reduceMultiWeekAppointment(l,{left:i[t].left,right:e}),h=this._getAppointmentParts({sourceAppointmentWidth:l,reducedWidth:a,height:s},i[t]),this.rtlEnabled&&(i[t].left=e))}(0,r.X)(i[t],{height:s,width:a,allDay:n,rowIndex:u,columnIndex:g,appointmentReduced:p}),o=this._getAppointmentPartsPosition(h,i[t],o)}return o}_getAppointmentPartsPosition(t,e,i){return t.length?(t.unshift(e),i=i.concat(t)):i.push(e),i}getAppointmentSettingsGenerator(t){return new d.iY((0,n.A)({rawAppointment:t,appointmentTakesAllDay:this.isAppointmentTakesAllDay(t),getPositionShiftCallback:this.getPositionShift.bind(this)},this.options))}generateAppointmentSettings(t){return this.getAppointmentSettingsGenerator(t).create()}isAppointmentTakesAllDay(t){const e=(0,u.V)(t,this.dataAccessors,this.timeZoneCalculator);return(0,h.pB)(e,this.allDayPanelMode)}_getAppointmentParts(t,e){return[]}_getCompactAppointmentParts(t){const e=this.cellWidth||this.getAppointmentMinSize();return Math.round(t/e)}_reduceMultiWeekAppointment(t,e){return this.rtlEnabled?Math.floor(e.left-e.right):e.right-Math.floor(e.left)}calculateAppointmentHeight(t,e){return 0}calculateAppointmentWidth(t,e){return 0}isAppointmentGreaterThan(t,e){let i=e.left+e.width-t;return this.rtlEnabled&&(i=t+e.width-e.left),i>this.cellWidth/2}isAllDay(t){return!1}cropAppointmentWidth(t,e){return this.isGroupedByDate?e:t}_getSortedPositions(t,e){const i=[],n=t=>Math.round(100*t)/100,o=(t,e,i,o,r,s,l,a)=>({i:t,j:e,top:n(i),left:n(o),bottom:n(r),right:n(s),cellPosition:l,allDay:a});for(let e=0,n=t.length;e<n;e++)for(let n=0,r=t[e].length;n<r;n++){const{top:r,left:s,height:l,width:a,cellPosition:p,allDay:h}=t[e][n];i.push(o(e,n,r,s,r+l,s+a,p,h))}return i.sort((t,e)=>this._sortCondition(t,e))}_sortCondition(t,e){}_getConditions(t,e){const i=this._isSomeEdge(t,e);return{columnCondition:i||this._normalizeCondition(t.left,e.left),rowCondition:i||this._normalizeCondition(t.top,e.top),cellPositionCondition:i||this._normalizeCondition(t.cellPosition,e.cellPosition)}}_rowCondition(t,e){const i=this._getConditions(t,e);return i.columnCondition||i.rowCondition}_columnCondition(t,e){const i=this._getConditions(t,e);return i.rowCondition||i.columnCondition}_isSomeEdge(t,e){return t.i===e.i&&t.j===e.j}_normalizeCondition(t,e){const i=t-e;return Math.abs(i)>1?i:0}_isItemsCross(t,e){const i=!!t.allDay==!!e.allDay,n=t.allDay&&e.allDay;if(i){const i=this._getOrientation(n);return this._checkItemsCrossing(t,e,i)}return!1}_checkItemsCrossing(t,e,i){const n=Math.floor(t[i[0]]),o=Math.floor(t[i[1]]),r=Math.ceil(e[i[0]]),s=Math.ceil(e[i[1]]);return Math.abs(t[i[2]]-e[i[2]])<=1&&(n<=r&&o>r||n<s&&o>=s||n===r&&o===s)}_getOrientation(t){return t?["left","right","top"]:["top","bottom","left"]}_getResultPositions(t){const e=[];let i,n,o,r,s=0,l=0,a={};const p=(t,e)=>t.some(t=>t===e)?p(t,++e):e,h=(t,e)=>{const i=e||0;return{index:i,i:t.i,j:t.j,left:t.left,right:t.right,top:t.top,bottom:t.bottom,allDay:t.allDay,sortedIndex:this._skipSortedIndex(i)?null:s++}},u=t=>{a.items=[h(t)],a.left=t.left,a.right=t.right,a.top=t.top,a.bottom=t.bottom,a.allDay=t.allDay},g=t=>{t.forEach(t=>{e.push({index:t.index,count:l+1,i:t.i,j:t.j,sortedIndex:t.sortedIndex})})};for(i=0;i<t.length;
1i++)n=t[i],o=[],a.items?this._isItemsCross(a,n)?(a.items.forEach(t=>{this._isItemsCross(t,n)&&o.push(t.index)}),r=o.length?p(o,0):0,a.items.push(h(n,r)),l=Math.max(r,l),a.left=Math.min(a.left,n.left),a.right=Math.max(a.right,n.right),a.top=Math.min(a.top,n.top),a.bottom=Math.max(a.bottom,n.bottom),a.allDay=n.allDay):(g(a.items),a={},u(n),l=0):u(n);return a.items&&g(a.items),e.sort((t,e)=>{const i=t.j-e.j;return t.i-e.i||i})}_skipSortedIndex(t){return t>this._getMaxAppointmentCountPerCell()-1}_findIndexByKey(t,e,i,n,o){let r=0;for(let s=0,l=t.length;s<l;s++)if(t[s][e]===n&&t[s][i]===o){r=s;break}return r}_getExtendedPositionMap(t,e){let i=0;const n=[];for(let o=0,r=t.length;o<r;o++){const r=[];for(let n=0,s=t[o].length;n<s;n++)t[o][n].index=e[i].index,t[o][n].sortedIndex=e[i].sortedIndex,t[o][n].count=e[i++].count,r.push(t[o][n]),this._checkLongCompactAppointment(t[o][n],r);n.push(r)}return n}_checkLongCompactAppointment(t,e){return this._splitLongCompactAppointment(t,e),e}_splitLongCompactAppointment(t,e){const i=this._getMaxAppointmentCountPerCellByType(t.allDay);let n=0;if(void 0!==i&&t.index>i-1){t.isCompact=!0,n=this._getCompactAppointmentParts(t.width);for(let i=1;i<n;i++){const n=(0,r.X)(!0,{},t);n.left=this._getCompactLeftCoordinate(t.left,i),n.columnIndex+=i,n.sortedIndex=null,e.push(n)}}return e}_adjustDurationByDaylightDiff(t,e,i){const{viewOffset:n}=this.options,o=a.X.addOffsets(e,[n]),r=a.X.addOffsets(i,[n]),s=g.A.getDaylightOffset(o,r),l=this._needAdjustDuration(s)?this._calculateDurationByDaylightDiff(t,s):t;return l<=Math.abs(s)?t:l}_needAdjustDuration(t){return 0!==t}_calculateDurationByDaylightDiff(t,e){return t+e*f("minute")}_getCollectorLeftOffset(t){if(t||!this.isApplyCompactAppointmentOffset())return 0;const e=this.getDropDownAppointmentWidth(this.intervalCount,t),i=this._isCompactTheme()?1:5;return this.cellWidth-e-i}_markAppointmentAsVirtual(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this._getMaxAppointmentCountPerCellByType(e);if(t.count-i>0){const{top:i,left:n}=t,o=this.isAdaptive||!e&&this.supportCompactDropDownAppointments();t.virtual={left:n+this._getCollectorLeftOffset(e),top:i,width:this.getDropDownAppointmentWidth(this.intervalCount,e),height:this.getDropDownAppointmentHeight(),index:this._generateAppointmentCollectorIndex(t,e),isAllDay:e,groupIndex:t.groupIndex,isCompact:o}}}isApplyCompactAppointmentOffset(){return this.supportCompactDropDownAppointments()}supportCompactDropDownAppointments(){return!0}_generateAppointmentCollectorIndex(t,e){let{groupIndex:i,rowIndex:n,columnIndex:o}=t;return`${i}-${n}-${o}-${e}`}_getMaxAppointmentCountPerCellByType(t){const e=this._getMaxAppointmentCountPerCell();return(0,s.Gv)(e)?t?e.allDay:e.simple:e}getDropDownAppointmentWidth(t,e){return this.getPositioningStrategy().getDropDownAppointmentWidth(t,e)}getDropDownAppointmentHeight(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(t){return this.getPositioningStrategy().getCollectorTopOffset(t)}getCollectorLeftOffset(){return this.getPositioningStrategy().getCollectorLeftOffset()}getAppointmentDataCalculator(){}getVerticalAppointmentHeight(t,e,i){let n=i;if((0,s.kf)(this.maxAppointmentsPerCell)){const t=this._getDynamicAppointmentCountPerCell(),o=t.allDay||t,r=Math.max(e,o);n=Math.min(r,i)}return t/n}_customizeCoordinates(t,e,i,n,o){const{index:r,count:s}=t,l=this.getVerticalAppointmentHeight(e,s,i),a=t.top+r*l+n,{width:p}=t,{left:h}=t;return t.isCompact&&(this.isAdaptive&&this._correctCollectorCoordinatesInAdaptive(t,o),this._markAppointmentAsVirtual(t,o)),{height:l,width:p,top:a,left:h,empty:this._isAppointmentEmpty(e,p)}}_isAppointmentEmpty(t,e){return t<this._getAppointmentMinHeight()||e<this._getAppointmentMinWidth()}_calculateGeometryConfig(t){const e=this.maxAppointmentsPerCell,i=this._getOffsets(),n=this._getAppointmentDefaultOffset();let o=this._getAppointmentCount(e,t),r=this._getDefaultRatio(t,o),l=this._getMaxHeight();(0,s.kf)(o)||(o=t.count,r=(l-i.unlimited)/l);let a=(1-r)*l;return("auto"===e||(0,s.kf)(e))&&(r=1,l-=n,a=n),{height:r*l,appointmentCountPerCell:o,offset:a}}_getAppointmentCount(t,e){}_getDefaultRatio(t,e){}_getOffsets(){}_getMaxHeight(){}_needVerifyItemSize(){return!1}
1_getMaxAppointmentCountPerCell(){if(!this._maxAppointmentCountPerCell){const t=this.maxAppointmentsPerCell;let e;(0,s.kf)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell}_getDynamicAppointmentCountPerCell(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}allDaySupported(){return!1}_isCompactTheme(){return"compact"===((0,l.ss)()||"").split(".").pop()}_getAppointmentDefaultOffset(){return this.getPositioningStrategy().getAppointmentDefaultOffset()}_getAppointmentDefaultHeight(){return this._getAppointmentHeightByTheme()}_getAppointmentMinHeight(){return this._getAppointmentDefaultHeight()}_getAppointmentHeightByTheme(){return this._isCompactTheme()?18:20}_getAppointmentDefaultWidth(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()}_getAppointmentMinWidth(){return this._getAppointmentDefaultWidth()}_needVerticalGroupBounds(t){return!1}_needHorizontalGroupBounds(){return!1}getAppointmentDurationInMs(t,e,i){if(i){const i=e.getTime()-t.getTime();return Math.ceil(i/f("day"))*this.visibleDayDuration}const n=f("hour"),r=o.A.trimTime(t),s=o.A.trimTime(e),l=(s-r)/f("day")+1,a=this.endDayHour-this.startDayHour,p=a*l,h=(t-r)/n,u=Math.max(0,h-this.startDayHour),g=Math.max(0,(e-s)/n-this.startDayHour);return(p-(u+Math.max(0,a-g)))*n}getPositionShift(t,e){return{top:t*this.cellHeight,left:0,cellPosition:0}}shiftAppointmentByViewOffset(t){const{viewOffset:e}=this.options,i=this.dataAccessors.expr.startDateExpr,o=this.dataAccessors.expr.endDateExpr;let r=new Date(p.S.getField(this.dataAccessors,"startDate",t));r=a.X.addOffsets(r,[-e]);let s=new Date(p.S.getField(this.dataAccessors,"endDate",t));return s=a.X.addOffsets(s,[-e]),(0,n.A)({},t,{[i]:r,[o]:s})}}},477550:function(t,e,i){var n=i(602886),o=i(668618),r=i(836878),s=i(498643);const l=n.A.dateToMilliseconds;class a extends s.A{_needVerifyItemSize(){return!0}calculateAppointmentWidth(t,e){const i=this.cellWidth||this.getAppointmentMinSize(),n=r.S.getField(this.dataAccessors,"allDay",t),{startDate:s,endDate:a,normalizedEndDate:p}=e.info.appointment;let h=this.getAppointmentDurationInMs(s,p,n);h=this._adjustDurationByDaylightDiff(h,s,p);const u=this.cellDurationInMinutes*l("minute"),g=(h-(0,o.gx)(s,a,t.allDay,this.viewDataProvider)*l("hour"))/u;return this.cropAppointmentWidth(g*i,i)}_needAdjustDuration(t){return t<0}getAppointmentGeometry(t){const e=this._customizeAppointmentGeometry(t);return super.getAppointmentGeometry(e)}_customizeAppointmentGeometry(t){const e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}_getOffsets(){return{unlimited:0,auto:0}}_getCompactLeftCoordinate(t,e){return t+(this.cellWidth||this.getAppointmentMinSize())*e}_getMaxHeight(){return this.cellHeight||this.getAppointmentMinSize()}_getAppointmentCount(t,e){return this._getMaxAppointmentCountPerCellByType(!1)}_getAppointmentDefaultHeight(){return 60}_getAppointmentMinHeight(){return 35}_sortCondition(t,e){return this._columnCondition(t,e)}_getOrientation(){return["left","right","top"]}getDropDownAppointmentWidth(t,e){return this.cellWidth-4}getDeltaTime(t,e){let i=0;const n=t.width-e.width;return i=l("minute")*Math.round(n/this.cellWidth*this.cellDurationInMinutes),i}isAllDay(t){return r.S.getField(this.dataAccessors,"allDay",t)}_isItemsCross(t,e){const i=this._getOrientation();return this._checkItemsCrossing(t,e,i)}getPositionShift(t){const e=super.getPositionShift(t);let i=this.cellWidth*t;return this.rtlEnabled&&(i*=-1),i+=e.left,{top:0,left:i,cellPosition:i}}supportCompactDropDownAppointments(){return!1}}e.A=a},182151:function(t,e,i){var n=i(58168),o=i(602886),r=i(58981),s=i(412492);const l=o.A.dateToMilliseconds;class a extends s.A{get endViewDate(){return this.options.endViewDate}get adaptivityEnabled(){return this.options.adaptivityEnabled}get DOMMetaData(){return this.options.DOMMetaData}_getLeftPosition(t){const e=this.getGroupWidth(t.groupIndex);return this._calculateMultiWeekAppointmentLeftOffset(t.hMax,e)}_getChunkCount(t,e,i,n){const{groupIndex:o,info:{appointment:{startDate:r}}}=n,s=t-e+i,l=Math.ceil(s/i),a=this._tryGetRowIndexInView(r);if(void 0!==a){const t=this.viewDataProvider.getRowCountInGroup(o)-a;return l<=t?l:t}return l}_tryGetRowIndexInView(t){var e;const i=this.viewDataProvider.getColumnsCount();if((null===(e=this.options.dataRange)||void 0===e?void 0:e.length)<1||!i)return;const[n]=this.options.dateRange,o=l("day"),r=t.getTime()-n.getTime();return Math.floor(r/o/i)}_getChunkWidths(t,e,i){const n=t.reducedWidth,o=Math.floor(t.sourceAppointmentWidth);return[n,o,o-n]}_getTailChunkSettings(t,e,i){const n=t%e||e,o=i+(e-n);return[n,this.rtlEnabled?o:i]}_getAppointmentParts(t,e){const i=[],o=Math.round(this.getGroupWidth(e.groupIndex)),[r,s,l]=this._getChunkWidths(t,e,o),a=this._getLeftPosition(e),{endDate:p}=e.info.appointment,h=this.endViewDate>p,u=this._getChunkCount(s,r,o,e),[g,d]=this._getTailChunkSettings(l,o,a);for(let r=1;r<u;r++){const s=e.top+this.cellHeight*r,l=h&&r===u-1;i.push((0,n.A)({},e,{top:s,left:l?d:a,height:t.height,width:l?g:o,appointmentReduced:l?"tail":"body",rowIndex:++e.rowIndex,columnIndex:0}))}return i}_calculateMultiWeekAppointmentLeftOffset(t,e){return this.rtlEnabled?t:t-e}getGroupWidth(t){return(0,r.yj)(t,this.viewDataProvider,{intervalCount:this.options.intervalCount,currentDate:this.options.currentDate,viewType:this.options.viewT
1ype,hoursInterval:this.options.hoursInterval,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,isVirtualScrolling:this.isVirtualScrolling,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData})}_getAppointmentDefaultHeight(){return this._getAppointmentHeightByTheme()}_getAppointmentMinHeight(){return this._getAppointmentDefaultHeight()}createTaskPositionMap(t){return super.createTaskPositionMap(t,!0)}_getSortedPositions(t){return super._getSortedPositions(t,!0)}_getDefaultRatio(){return.6}_getOffsets(){return{unlimited:26,auto:30}}getDropDownAppointmentWidth(t,e){if(this.adaptivityEnabled)return this.getDropDownButtonAdaptiveSize();const i=t>1?60:36;return this.cellWidth-i}needCorrectAppointmentDates(){return!1}_needVerticalGroupBounds(){return!1}_needHorizontalGroupBounds(){return!0}}e.A=a},412492:function(t,e,i){var n=i(602886),o=i(629024),r=i(48245),s=i(477550);class l extends s.A{calculateAppointmentWidth(t,e){const{startDate:i,normalizedEndDate:o}=e.info.appointment,r=n.A.trimTime(i),s=this.cellWidth||this.getAppointmentMinSize(),l=Math.ceil(this._getDurationInDays(r,o));let a=this.cropAppointmentWidth(l*s,s);if(this.isVirtualScrolling){a-=this.viewDataProvider.getSkippedDaysCount(e.groupIndex,r,o,l)*s}return a}_columnCondition(t,e){const i=this._getConditions(t,e);return i.rowCondition||i.columnCondition||i.cellPositionCondition}_getDurationInDays(t,e){return this._adjustDurationByDaylightDiff(e.getTime()-t.getTime(),t,e)/n.A.dateToMilliseconds("day")||1}getDeltaTime(t,e){return 864e5*this._getDeltaWidth(t,e)}isAllDay(){return!1}createTaskPositionMap(t,e){return e||(0,r.W7)(t,this.dataAccessors),super.createTaskPositionMap(t)}_getSortedPositions(t,e){let i=super._getSortedPositions(t);return e||(i=(0,o.A)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i}needCorrectAppointmentDates(){return!1}getPositionShift(t){return{top:0,left:0,cellPosition:t*this.cellWidth}}}e.A=l}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.