/*! * Licensed Materials - Property of IBM * IBM Cognos Products: Modeling UI * (C) Copyright IBM Corp. 2020 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ (window.caModellingPerspective=window.caModellingPerspective||[]).push([[44],{1228:function(e,t,i){"use strict";i.d(t,"a",function(){return r}),i.d(t,"b",function(){return n}),i.d(t,"c",function(){return o}),i.d(t,"d",function(){return a});var r="14",n=5,o="0",a="summary"},1229:function(e,t,i){"use strict";i.r(t),i.d(t,"default",function(){return g});var r,n=i(1),o=i.n(n),a=i(3),l=i(25),s=i(5),c=i(2),u=i(10),p=i(44),m=i(1726),d=i(1729);var g=Object(p.a)(u.E,{initializer:function(e,t){return new d.a({},{element:t.element,edit:t.edit})}})(r=Object(s.e)(function(e){return{dateSourceExpression:e.dateSourceExpression,dialogTitle:e.dialogTitle,isOnError:e.isOnError,isInProgress:e.isInProgress,splitColumn:e.splitColumn}})(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n0;if(t){this.showEditLabel=!0;var n=Object(A.getObjectProperty)(e,z.I);this.prevColumnsIds=n.newColumnsIds||[],this.oldColumnsData=n.newColumnsData||[],r||(this.edit=!0,this.prevColumnsData=n.columnsData,this.isDateChecked=n.isDateChecked,this.isYearChecked=n.isYearChecked,this.isMonthChecked=n.isMonthChecked,this.isDayChecked=n.isDayChecked,this.isAddWeekChecked=n.isAddWeekChecked,this.isTimeChecked=n.isTimeChecked,this.isHourChecked=n.isHourChecked,this.isMinuteChecked=n.isMinuteChecked,this.isSecondChecked=n.isSecondChecked,this.isMillisecondChecked=n.isMillisecondChecked,this.isTimezoneHourChecked=n.isTimezoneHourChecked,this.isTimezoneMinuteChecked=n.isTimezoneMinuteChecked,this.prevColumnsIds=n.newColumnsIds)}return Promise.resolve({updatedOutside:r,updatedPreviousColumns:i})},i.setIsValidating=function(e){this.isValidating=e},i.closeNotifyDialogAndExit=function(){this.provider.closeDialog().then(function(e){return(0,e.resolve)(!0)})},i.closeNotifyDialogAndContinue=function(){this.provider.closeDialog().then(function(e){return(0,e.resolve)(!1)}),this.showEditLabel=!1},function(e,t,i){t&&te(e.prototype,t),i&&te(e,i)}(t,[{key:"isSomethingSelected",get:function(){return!(this.isDateChecked||this.isYearChecked||this.isMonthChecked||this.isDayChecked||this.isAddWeekChecked||this.isTimeChecked||this.isHourChecked||this.isMinuteChecked||this.isSecondChecked||this.isMillisecondChecked||this.isTimezoneHourChecked||this.isTimezoneMinuteChecked)}},{key:"splitSpec",get:function(){return this.isSomethingSelected?{}:{columnsData:this.columnsData.map(function(e){return delete e.rows,e}),newColumnsIds:this.newColumnsIds,newColumnsData:this.newColumnsData,isDateChecked:this.isDateChecked,isYearChecked:this.isYearChecked,isMonthChecked:this.isMonthChecked,isDayChecked:this.isDayChecked,isAddWeekChecked:this.isAddWeekChecked,isTimeChecked:this.isTimeChecked,isHourChecked:this.isHourChecked,isMinuteChecked:this.isMinuteChecked,isSecondChecked:this.isSecondChecked,isMillisecondChecked:this.isMillisecondChecked,isTimezoneHourChecked:this.isTimezoneHourChecked,isTimezoneMinuteChecked:this.isTimezoneMinuteChecked}}},{key:"newColumnSplitSpec",get:function(){return this.isSomethingSelected?{}:{originalColumnIdentifier:this.selectedMoserObject.getIdentifier()}}},{key:"isNextDisabled",get:function(){return!this.columnsData.length&&!this.isLoading}},{key:"originalColumnName",get:function(){return this.selectedMoserObject.label}},{key:"isDate",get:function(){return Object(L.f)(this.selectedMoserObject)}},{key:"isTime",get:function(){return Object(L.l)(this.selectedMoserObject)}},{key:"isDateTime",get:function(){return Object(L.g)(this.selectedMoserObject)}},{key:"original",get:function(){return Object(Z.g)(this.prevData,Z.n.ORIGINAL)}},{key:"originalData",get:function(){return this.prevData.original||[]}},{key:"dateData",get:function(){return this.prevData[Z.n.DATE]||[]}},{key:"date",get:function(){return Object(Z.g)(this.prevData,Z.n.DATE)}},{key:"yearData",get:function(){return this.prevData[Z.n.YEAR]||[]}},{key:"year",get:function(){return Object(Z.g)(this.prevData,Z.n.YEAR)}},{key:"monthData",get:function(){return this.prevData[Z.n.MONTH]||[]}},{key:"month",get:function(){return Object(Z.g)(this.prevData,Z.n.MONTH)}},{key:"dayData",get:function(){return this.prevData[Z.n.DAY]||[]}},{key:"day",get:function(){return Object(Z.g)(this.prevData,Z.n.DAY)}},{key:"dayOfWeekData",get:function(){return this.prevData[Z.n.WEEK_DAY]||[]}},{key:"dayOfWeek",get:function(){return Object(Z.g)(this.prevData,Z.n.WEEK_DAY)}},{key:"timeData",get:function(){return this.prevData[Z.n.TIME]||[]}},{key:"time",get:function(){return Object(Z.g)(this.prevData,Z.n.TIME)}},{key:"hourData",get:function(){return this.prevData[Z.n.HOUR]||[]}},{key:"hours",get:function(){return Object(Z.g)(this.prevData,Z.n.HOUR)}},{key:"minuteData",get:function(){return this.prevData[Z.n.MINUTE]||[]}},{key:"minutes",get:function(){return Object(Z.g)(this.prevData,Z.n.MINUTE)}},{key:"secondData",get:function(){return this.prevData[Z.n.SECOND]||[]}},{key:"seconds",get:function(){return Object(Z.g)(this.prevData,Z.n.SECOND)}},{key:"millisecondData",get:function(){return this.prevData[Z.n.MILLISECOND]||[]}},{key:"milliseconds",get:function(){return Object(Z.g)(this.prevData,Z.n.MILLISECOND)}},{key:"offsetHourData",get:function(){return this.prevData[Z.n.TIMEZONE_HOUR]||[]}},{key:"timezoneHours",get:function(){return Object(Z.g)(this.prevData,Z.n.TIMEZONE_HOUR)}},{key:"offsetMinuteData",get:function(){return this.prevData[Z.n.TIMEZONE_MINUTE]||[]}},{key:"timezoneMinutes",get:function(){return Object(Z.g)(this.prevData,Z.n.TIMEZONE_MINUTE)}},{key:"selectedQuerySubject",get:function(){return Object(R.getAncestorOrSelf)(this.selectedMoserObject,M.a.MoserObjectTypes.QUERY_SUBJECT)}},{key:"previousColumns",get:function(){var e=this,t=Object(R.getAncestorOrModule)(this.selectedMoserObject,M.a.MoserObjectTypes.QUERY_SUBJECT);return this.prevColumnsIds.map(function(i,r){return M.a.QuerySubjectUtils.getQueryItemById(i,t)||{label:e.oldColumnsData[r]?e.oldColumnsData[r].label:i}}).filter(function(e){return!!e})}},{key:"updatedPreviousColumns",get:function(){return this.previousColumns.filter(function(e){return Object(B.getExpressionType)(e)!==z.I})}},{key:"dialogTitle",get:function(){return this.showEditLabel?Object(W.getString)("splitTextDialogEditTitle",{columnName:this.selectedMoserObject.label}):Object(W.getString)("splitTextDialogTitle",{columnName:this.selectedMoserObject.label})}}]),t}(P.a),S.defaultProvider={getModuleVersion:function(){}},n=re((r=I).prototype,"edit",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=re(r.prototype,"selectedMoserObject",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),a=re(r.prototype,"columnsData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=re(r.prototype,"inReview",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=re(r.prototype,"isInProgress",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=re(r.prototype,"isAddWeekChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=re(r.prototype,"isYearChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=re(r.prototype,"isMonthChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=re(r.prototype,"isDayChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=re(r.prototype,"isHourChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=re(r.prototype,"isMinuteChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=re(r.prototype,"isSecondChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=re(r.prototype,"isMillisecondChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=re(r.prototype,"isTimezoneHourChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=re(r.prototype,"isTimezoneMinuteChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=re(r.prototype,"isDateChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=re(r.prototype,"isTimeChecked",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=re(r.prototype,"hasDate",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=re(r.prototype,"hasTime",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=re(r.prototype,"prevData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),C=re(r.prototype,"isValidating",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O=re(r.prototype,"hasTimeHourOffset",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),T=re(r.prototype,"hasTimeMinuteOffset",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),E=re(r.prototype,"isLoading",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),j=re(r.prototype,"showEditLabel",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),re(r.prototype,"isSomethingSelected",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isSomethingSelected"),r.prototype),re(r.prototype,"splitSpec",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"splitSpec"),r.prototype),re(r.prototype,"newColumnSplitSpec",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"newColumnSplitSpec"),r.prototype),re(r.prototype,"isNextDisabled",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isNextDisabled"),r.prototype),re(r.prototype,"originalColumnName",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"originalColumnName"),r.prototype),re(r.prototype,"isDate",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isDate"),r.prototype),re(r.prototype,"isTime",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isTime"),r.prototype),re(r.prototype,"isDateTime",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isDateTime"),r.prototype),re(r.prototype,"original",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"original"),r.prototype),re(r.prototype,"originalData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"originalData"),r.prototype),re(r.prototype,"dateData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dateData"),r.prototype),re(r.prototype,"date",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"date"),r.prototype),re(r.prototype,"yearData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"yearData"),r.prototype),re(r.prototype,"year",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"year"),r.prototype),re(r.prototype,"monthData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"monthData"),r.prototype),re(r.prototype,"month",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"month"),r.prototype),re(r.prototype,"dayData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dayData"),r.prototype),re(r.prototype,"day",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"day"),r.prototype),re(r.prototype,"dayOfWeekData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dayOfWeekData"),r.prototype),re(r.prototype,"dayOfWeek",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dayOfWeek"),r.prototype),re(r.prototype,"timeData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"timeData"),r.prototype),re(r.prototype,"time",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"time"),r.prototype),re(r.prototype,"hourData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"hourData"),r.prototype),re(r.prototype,"hours",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"hours"),r.prototype),re(r.prototype,"minuteData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"minuteData"),r.prototype),re(r.prototype,"minutes",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"minutes"),r.prototype),re(r.prototype,"secondData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"secondData"),r.prototype),re(r.prototype,"seconds",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"seconds"),r.prototype),re(r.prototype,"millisecondData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"millisecondData"),r.prototype),re(r.prototype,"milliseconds",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"milliseconds"),r.prototype),re(r.prototype,"offsetHourData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"offsetHourData"),r.prototype),re(r.prototype,"timezoneHours",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"timezoneHours"),r.prototype),re(r.prototype,"offsetMinuteData",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"offsetMinuteData"),r.prototype),re(r.prototype,"timezoneMinutes",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"timezoneMinutes"),r.prototype),re(r.prototype,"selectedQuerySubject",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"selectedQuerySubject"),r.prototype),re(r.prototype,"previousColumns",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"previousColumns"),r.prototype),re(r.prototype,"dialogTitle",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dialogTitle"),r.prototype),re(r.prototype,"updateColumnFormat",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnFormat"),r.prototype),re(r.prototype,"updateColumnName",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnName"),r.prototype),re(r.prototype,"updateColumnCheckedState",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnCheckedState"),r.prototype),re(r.prototype,"updateColumnEditing",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnEditing"),r.prototype),re(r.prototype,"endColumnsEditing",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"endColumnsEditing"),r.prototype),re(r.prototype,"setReviewState",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"setReviewState"),r.prototype),re(r.prototype,"updateGeneratedColumns",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateGeneratedColumns"),r.prototype),re(r.prototype,"toggleIsAddWeekChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsAddWeekChecked"),r.prototype),re(r.prototype,"_handleErrors",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"_handleErrors"),r.prototype),re(r.prototype,"getValidatedColumnExpression",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"getValidatedColumnExpression"),r.prototype),re(r.prototype,"splitColumn",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"splitColumn"),r.prototype),re(r.prototype,"toggleIsDateChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsDateChecked"),r.prototype),re(r.prototype,"toggleIsTimeChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsTimeChecked"),r.prototype),re(r.prototype,"toggleIsYearChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsYearChecked"),r.prototype),re(r.prototype,"toggleIsMonthChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsMonthChecked"),r.prototype),re(r.prototype,"toggleIsDayChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsDayChecked"),r.prototype),re(r.prototype,"toggleIsHourChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsHourChecked"),r.prototype),re(r.prototype,"toggleIsMinuteChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsMinuteChecked"),r.prototype),re(r.prototype,"toggleIsSecondChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsSecondChecked"),r.prototype),re(r.prototype,"toggleIsMillisecondChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsMillisecondChecked"),r.prototype),re(r.prototype,"toggleIsTimezoneHourChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsTimezoneHourChecked"),r.prototype),re(r.prototype,"toggleIsTimezoneMinuteChecked",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsTimezoneMinuteChecked"),r.prototype),re(r.prototype,"_getValidatedExpression",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"_getValidatedExpression"),r.prototype),re(r.prototype,"previewExpressionData",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"previewExpressionData"),r.prototype),re(r.prototype,"createCloneModule",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"createCloneModule"),r.prototype),re(r.prototype,"getDateData",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"getDateData"),r.prototype),re(r.prototype,"getTimeData",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"getTimeData"),r.prototype),re(r.prototype,"updateAllData",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateAllData"),r.prototype),re(r.prototype,"getAllData",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"getAllData"),r.prototype),re(r.prototype,"initSplitDate",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"initSplitDate"),r.prototype),re(r.prototype,"updateEdit",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"updateEdit"),r.prototype),re(r.prototype,"setIsValidating",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"setIsValidating"),r.prototype),re(r.prototype,"closeNotifyDialogAndExit",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"closeNotifyDialogAndExit"),r.prototype),re(r.prototype,"closeNotifyDialogAndContinue",[P.c],Object.getOwnPropertyDescriptor(r.prototype,"closeNotifyDialogAndContinue"),r.prototype),r)},1722:function(e,t,i){"use strict";i.d(t,"e",function(){return r}),i.d(t,"a",function(){return n}),i.d(t,"f",function(){return o}),i.d(t,"g",function(){return a}),i.d(t,"b",function(){return l}),i.d(t,"c",function(){return s}),i.d(t,"d",function(){return c});var r={columnList:[{nullable:!1,datatype:"TIMESTAMP",highlevelDatatype:"datetime",usage:"attribute",regularAggregate:"none",name:"new",datatypeCategory:"datetime"}]},n={columnList:[{nullable:!1,datatype:"DATE",highlevelDatatype:"date",usage:"attribute",regularAggregate:"none",name:"new",datatypeCategory:"datetime"}]},o={columnList:[{nullable:!1,datatype:"TIME",highlevelDatatype:"time",usage:"attribute",regularAggregate:"none",name:"new",datatypeCategory:"datetime"}]},a={columnList:[{nullable:!0,datatype:"VARCHAR(9)",highlevelDatatype:"string",usage:"attribute",regularAggregate:"minimum",name:"new",datatypeCategory:"string"}]},l={columnList:[{nullable:!1,datatype:"INTEGER",highlevelDatatype:"integer",usage:"attribute",regularAggregate:"minimum",name:"new",datatypeCategory:"number"}]},s={columnList:[{nullable:!1,datatype:"DECIMAL(18,9)",highlevelDatatype:"decimal",usage:"fact",regularAggregate:"total",name:"new",datatypeCategory:"number"}]},c={columnList:[{nullable:!1,datatype:"DECIMAL(12,9)",highlevelDatatype:"decimal",usage:"fact",regularAggregate:"total",name:"new",datatypeCategory:"number"}]}},1723:function(e,t,i){"use strict";i.d(t,"g",function(){return r}),i.d(t,"a",function(){return n}),i.d(t,"e",function(){return o}),i.d(t,"b",function(){return a}),i.d(t,"c",function(){return l}),i.d(t,"d",function(){return s}),i.d(t,"f",function(){return c});var r="cYear",n="cTime",o="cMonth",a="cDay",l="cHour",s="cMinute",c="cSecond"},1724:function(e,t,i){"use strict";i.r(t),i.d(t,"default",function(){return m});var r,n=i(1),o=i.n(n),a=i(3),l=i(25),s=i(5),c=i(2),u=i(10),p=i(44);var m=Object(p.a)(u.B,{isChild:!0})(r=Object(s.e)(function(e){return{dialogTitle:e.dialogTitle,closeNotifyDialogAndExit:e.closeNotifyDialogAndExit,closeNotifyDialogAndContinue:e.closeNotifyDialogAndContinue}})(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n1?Object(c.getString)("splitColumnsEdited"):Object(c.getString)("splitColumnsEditedSingular",{columnName:r[0].label});return o.a.createElement(a.Dialog,{size:"large","data-tid":Object(l.a)("SplitDateNotifyDialog"),onClose:n},o.a.createElement(a.Dialog.Header,{"data-tid":Object(l.a)("SplitDateNotifyDialog","header")},s),o.a.createElement(a.Dialog.Body,null,o.a.createElement(a.FlexLayout,{direction:"column"},o.a.createElement(a.FlexItem,{gutter:[0,0,1,0]},o.a.createElement(a.Label,{label:u})),r.length>1&&r.map(function(e){return o.a.createElement(a.FlexItem,{gutter:[0,0,0,1]},o.a.createElement(a.Label,{label:e.label}))}),o.a.createElement(a.FlexItem,{gutter:[2,0,0,0],width:"75%"},o.a.createElement(a.Label,{label:Object(c.getString)("splitColumnsEditedContinue")})))),o.a.createElement(a.Dialog.Footer,null,o.a.createElement(a.Dialog.Button,{primary:!0,"data-tid":Object(l.a)("SplitDateNotifyDialog","ok"),label:Object(c.getString)("ok"),onClick:function(){return i()}}),o.a.createElement(a.Dialog.Button,{"data-tid":Object(l.a)("SplitDateNotifyDialog","cancel"),label:Object(c.getString)("cancel"),onClick:function(){return t()}})))},t}(n.Component))||r)||r},1725:function(e,t,i){"use strict";i.r(t),i.d(t,"default",function(){return m});var r,n=i(1),o=i.n(n),a=i(3),l=i(25),s=i(5),c=i(2),u=i(10),p=i(44);var m=Object(p.a)(u.C,{isChild:!0})(r=Object(s.e)(function(e){return{dialogTitle:e.dialogTitle,closeNotifyDialogAndExit:e.closeNotifyDialogAndExit,closeNotifyDialogAndContinue:e.closeNotifyDialogAndContinue}})(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n1?Object(c.getString)("splitColumnsEdited"):Object(c.getString)("splitColumnsEditedSingular",{columnName:r[0].label});return o.a.createElement(a.Dialog,{size:"large","data-tid":Object(l.a)("SplitNotifyDialog"),onClose:n},o.a.createElement(a.Dialog.Header,{"data-tid":Object(l.a)("SplitNotifyDialog","header")},s),o.a.createElement(a.Dialog.Body,null,o.a.createElement(a.FlexLayout,{direction:"column"},o.a.createElement(a.FlexItem,{gutter:[0,0,1,0]},o.a.createElement(a.Label,{label:u})),r.length>1&&r.map(function(e){return o.a.createElement(a.FlexItem,{gutter:[0,0,0,1]},o.a.createElement(a.Label,{label:e.label}))}),o.a.createElement(a.FlexItem,{gutter:[2,0,0,0],width:"75%"},o.a.createElement(a.Label,{label:Object(c.getString)("splitColumnsEditedContinue")})))),o.a.createElement(a.Dialog.Footer,null,o.a.createElement(a.Dialog.Button,{primary:!0,"data-tid":Object(l.a)("SplitNotifyDialog","ok"),label:Object(c.getString)("ok"),onClick:function(){return i()}}),o.a.createElement(a.Dialog.Button,{"data-tid":Object(l.a)("SplitNotifyDialog","cancel"),label:Object(c.getString)("cancel"),onClick:function(){return t()}})))},t}(n.Component))||r)||r},1726:function(e,t,i){"use strict";i.d(t,"a",function(){return h});var r,n=i(1),o=i.n(n),a=i(16),l=i(3),s=i(25),c=i(118),u=i.n(c),p=i(776),m=i.n(p),d=i(5),g=i(2),_=i(777),b=i(1230);i(1727);var h=Object(d.e)(function(e){return{originalColumnName:e.originalColumnName,previewData:e.previewData,columnsData:e.columnsData,isInProgress:e.isInProgress,sourceFormat:e.sourceFormat,isOnError:e.isOnError,errorMessage:e.errorMessage,isAmbiguous:e.isAmbiguous,updateDateType:e.updateDateType,updateDateArray:e.updateDateArray,updateColumnName:e.updateColumnName,updateColumnEditing:e.updateColumnEditing}})(r=Object(a.observer)(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n0?"if(position('"+this.sourceFormat.sep3+"';"+l+")>0)then(position('"+this.sourceFormat.sep3+"';"+l+"))else(char_length("+l+")+1)":"char_length("+l+")+1")+")+("+a+")")+")-("+a+")-1",u="substring("+r+";"+a+"+1;4)",p="trim(substring("+r+";1;("+n+")-1))",m="trim(substring("+r+";("+n+")+1;"+s+"))";this.sourceFormat.secondType===A.c?m=this.monthNameToMonthNumber(m):this.sourceFormat.firstType===A.c&&(p=this.monthNameToMonthNumber(p));var d="CAST("+u+" + '-' + "+p+" + '-' + "+m+" AS date)";return this.sourceFormat.firstType===A.a&&(d="CAST("+u+" + '-' + "+m+" + '-' + "+p+" AS date)"),this.isYearFirst&&this.sourceFormat.firstType===A.b&&2===this.sourceFormat.firstDayOrMonth.length&&2===this.sourceFormat.secondDayOrMonth.length&&"-"===this.sourceFormat.sep1&&"-"===this.sourceFormat.sep2?d="CAST(substring("+r+";1;10) AS date)":this.isYearFirst&&(u="trim(substring("+r+";1;"+n+"-1))",p="trim(substring("+r+";"+n+"+1;"+s+"))",m="trim(substring("+r+";"+a+"+1;"+c+"))",this.sourceFormat.firstType===A.c?p=this.monthNameToMonthNumber(p):this.sourceFormat.secondType===A.c&&(m=this.monthNameToMonthNumber(m)),d="CAST("+u+" + '-' + "+p+" + '-' + "+m+" AS date)",this.sourceFormat.firstType===A.a&&(d="CAST("+u+" + '-' + "+m+" + '-' + "+p+" AS date)")),d},i._handlePreviewSuccess=function(e){this.isInProgress=!1;var t=e.dataItems[1].items.map(function(e){return{selected:!1,data:Object(R.c)(e)}});this.previewData=t;var i=e.dataItems[0].items.map(function(e){return{selected:!1,data:Object(R.c)(e)}}),r=[],n={name:this.originalColumnName+" 1",type:R.m.DATE,rows:i,editing:!1,pencilClass:"pencil",checked:!0};r.push(n),this.columnsData=r},i._handlePreviewErrors=function(e){var t=e.messages&&e.messages.length&&e.messages[0].message||e.msg||Object(k.a)(e);this.errorMessage=t,this.isInProgress=!1,this.isOnError=!0,this.dateSourceExpression||(this.errorMessage="")},i.previewExpressionData=function(){var e=this,t=[{name:S.t,value:{func:S.I,version:this.provider.getModuleVersion()}}],i={label:"templabel",expression:this.selectedMoserObject.getIdentifier(),property:t},r=Object(I.createExpressionObject)(this.context,this.cloneQuerySubject,i),n={label:"templabel",expression:this.dateSourceExpression,property:t},o=Object(I.createExpressionObject)(this.context,this.cloneQuerySubject,n);return Object(L.a)(this.context,{moserObject:this.cloneQuerySubject,moduleId:this.cloneModuleData.id,expression:n.expression}).then(function(t){Object(I.updateExpressionProperties)(e.context,o,t.columnList[0]);var i=H({},e.cloneModule);return Object(I.addExpressionObjectToModule)(e.context,i.querySubject.find(function(t){return t.getIdentifier()===e.selectedQuerySubject.getIdentifier()}),o),Object(I.addExpressionObjectToModule)(e.context,i.querySubject.find(function(t){return t.getIdentifier()===e.selectedQuerySubject.getIdentifier()}),r),Object(F.a)(e.context,{temp:!0,module:i})}).then(function(t){var i=Object(R.k)([o,r]);return i.type="summary",Object(N.a)(e.context,{moduleId:t.id,querySpec:i})}).then(function(t){e._handlePreviewSuccess(t)}).catch(function(t){e._handlePreviewErrors(t)})},i._setRuleStoreProperties=function(e){this.isAmbiguous=e.isAmbiguous,this.isYearFirst=e.isYearFirst,this.sourceFormat.firstType=e.firstType,this.sourceFormat.secondType=e.secondType,this.sourceFormat.before=e.before,this.sourceFormat.after=e.after,this.sourceFormat.sep1=e.sep1,this.sourceFormat.sep2=e.sep2,this.sourceFormat.sep3=e.sep3,this.sourceFormat.year=e.year,this.sourceFormat.yearLength=e.yearLength,this.sourceFormat.yearStartIndex=e.yearStartIndex,this.sourceFormat.firstDayOrMonth=e.firstDayOrMonth,this.sourceFormat.firstDayOrMonthStartIndex=e.firstDayOrMonthStartIndex,this.sourceFormat.secondDayOrMonth=e.secondDayOrMonth,this.sourceFormat.secondDayOrMonthStartIndex=e.secondDayOrMonthStartIndex},i.checkForLeadingControl=function(e){for(var t=[8234,8235,8206,8207,8203],i=0;i=0,this.sourceFormat.hasLeadingControl);n++);if(this.sourceFormat.hasLeadingControl)return!0}return!1},i.processTemplate=function(e){if(this.isOnError=!1,this.isInProgress=!0,e.data&&e.data.trim()){e.selected=!0,this.previewData.forEach(function(t){t.data===e.data?e.selected=!0:t.selected=!1});var t=/(\D*)(\d{1,2})(\D+)(\d{1,2})(\D+)(\d{4,})(.{0,1})(.*)/.exec(e.data.trim()),i=/(.*)(\D{1} || ^)(\d{4,})(\D+)(\d{1,2})(\D+)(\d{1,2})(.{0,1})(.*)/.exec(e.data.trim()),r=/(\D*)(\d{1,2})(\D+)(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)(\D+)(\d{4,})(.{0,1})(.*)/.exec(e.data.trim()),n=/(\D*)(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)(\D+)(\d{1,2})(\D*)(\d{4,})(.{0,1})(.*)/.exec(e.data.trim()),o=/(.*)(\D{1} || ^)(\d{4,})(\D+)(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)(\D+)(\d{1,2})(.{0,1})(.*)/.exec(e.data.trim()),a=/(.*)(\D{1} || ^)(\d{4,})(\D+)(\d{1,2})(\D+)(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)(.{0,1})(.*)/.exec(e.data.trim());if(this.sourceFormat={},this.isYearFirst=!1,this.isAmbiguous=!0,a||o||n||r||i||t)if(a){var l={isAmbiguous:!1,isYearFirst:!0,firstType:A.a,secondType:A.c,before:a[1]+a[2],after:a[8]+a[9],sep1:a[4],sep2:a[6],sep3:a[8],year:a[3],yearLength:a[3].length,yearStartIndex:a[1].length+a[2].length,firstDayOrMonth:a[5],firstDayOrMonthStartIndex:U(a,1,4),secondDayOrMonth:a[7],secondDayOrMonthStartIndex:U(a,1,6)};this._setRuleStoreProperties(l)}else if(o){var s={isAmbiguous:!1,isYearFirst:!0,firstType:A.c,secondType:A.a,before:o[1]+o[2],after:o[8]+o[9],sep1:o[4],sep2:o[6],sep3:o[8],year:o[3],yearLength:o[3].length,yearStartIndex:o[1].length+o[2].length,firstDayOrMonth:o[5],firstDayOrMonthStartIndex:U(o,1,4),secondDayOrMonth:o[7],secondDayOrMonthStartIndex:U(o,1,6)};this._setRuleStoreProperties(s)}else if(n){var c={isAmbiguous:!1,isYearFirst:!1,firstType:A.c,secondType:A.a,before:n[1],after:n[7]+n[8],sep1:n[3],sep2:n[5],sep3:n[7],year:n[6],yearLength:n[6].length,yearStartIndex:U(n,1,5),firstDayOrMonth:n[2],firstDayOrMonthStartIndex:n[1].length,secondDayOrMonth:n[4],secondDayOrMonthStartIndex:U(n,1,3)};this._setRuleStoreProperties(c)}else if(r){var u={isAmbiguous:!1,isYearFirst:!1,firstType:A.a,secondType:A.c,before:r[1],after:r[7]+r[8],sep1:r[3],sep2:r[5],sep3:r[7],year:r[6],yearLength:r[6].length,yearStartIndex:U(r,1,5),firstDayOrMonth:r[2],firstDayOrMonthStartIndex:r[1].length,secondDayOrMonth:r[4],secondDayOrMonthStartIndex:U(r,1,3)};this._setRuleStoreProperties(u)}else if(t){var p={isAmbiguous:!0,isYearFirst:!1,firstType:A.a,secondType:A.b,before:t[1],after:t[7]+t[8],sep1:t[3],sep2:t[5],sep3:t[7],year:t[6],yearLength:t[6].length,yearStartIndex:U(t,1,5),firstDayOrMonth:t[2],firstDayOrMonthStartIndex:t[1].length,secondDayOrMonth:t[4],secondDayOrMonthStartIndex:U(t,1,3)};this._setRuleStoreProperties(p),this.sourceFormat.secondDayOrMonth>12&&(this.sourceFormat.firstType=A.b,this.sourceFormat.secondType=A.a)}else{var m={isAmbiguous:!0,isYearFirst:!0,firstType:A.b,secondType:A.a,before:i[1]+i[2],after:i[8]+i[9],sep1:i[4],sep2:i[6],sep3:i[8],year:i[3],yearLength:i[3].length,yearStartIndex:i[1].length+i[2].length,firstDayOrMonth:i[5],firstDayOrMonthStartIndex:U(i,1,4),secondDayOrMonth:i[7],secondDayOrMonthStartIndex:U(i,1,6)};this._setRuleStoreProperties(m),this.sourceFormat.firstDayOrMonth>12&&(this.sourceFormat.firstType=A.a,this.sourceFormat.secondType=A.b)}else this.isOnError=!0}},i.updateDateArray=function(e){this.processTemplate(e),this.sourceFormat.hasLeadingControl=this.hasLeadingControl,this.isOnError||this.previewExpressionData()},i.updateDateType=function(e,t,i){if(this.isOnError=!1,this.isInProgress=!0,i){t.firstType=e,t.secondType="D"===e?"M":"D";var r=H({},t);this.sourceFormat=r}else{t.secondType=e,t.firstType="D"===e?"M":"D";var n=H({},t);this.sourceFormat=n}this.columnsData=[],"M"===t.firstType&&t.firstDayOrMonth>12||"M"===t.secondType&&t.secondDayOrMonth>12?this.isOnError=!0:this.previewExpressionData()},i.updateColumnName=function(e,t){t.name=e},i._setEditingFalse=function(){this.columnsData.forEach(function(e){e.editing=!1,e.pencilClass="pencil"})},i.updateColumnEditing=function(e,t){if(!t||13===t.keyCode){var i=!e.editing;this._setEditingFalse(),e.editing=i,e.editing?e.pencilClass="pencil editing":e.pencilClass="pencil"}},i.endColumnsEditing=function(){this._setEditingFalse()},i.getValidatedColumnExpression=function(e,t,i){var r=this;void 0===e&&(e=[]),void 0===i&&(i=0);var n=t.shift();if(!n)return Promise.resolve(e);if(n.checked){var o=Object(V.getAncestorOrModule)(this.selectedMoserObject,T.a.MoserObjectTypes.QUERY_SUBJECT),a=[{name:S.t,value:{func:S.I,version:this.provider.getModuleVersion()}},{name:S.J,value:{originalColumnIdentifier:this.selectedMoserObject.getIdentifier()}}],l={label:""+n.name,expression:this.dateSourceExpression,property:a},s=Object(I.createExpressionObject)(this.context,o,l);return this.provider.saveGlobalSessionModule().then(function(){return Object(L.a)(r.context,{moduleId:r.provider.getModuleId(),moserObject:s,moserObjectParent:o,expression:l.expression})}).then(function(t){Object(I.updateExpressionProperties)(r.context,s,t.columnList[0]),e.push(s)}).then(function(){return r.getValidatedColumnExpression(e,t,i+1)})}return this.getValidatedColumnExpression(e,t,i+1)},i.splitColumn=function(){var e=this;this.isInProgress=!0;var t=this.columnsData.slice(),i=[],r=Object(V.getAncestorOrModule)(this.selectedMoserObject,T.a.MoserObjectTypes.QUERY_SUBJECT);this.getValidatedColumnExpression([],t,0).then(function(t){return e.action(Object(E.b)(Object(D.getString)("splitTextActionName"))(function(){if(e.edit&&e.prevColumnsIds){var n=e.prevColumnsIds.map(function(e){return Object(M.g)(r,e,T.a.MoserObjectTypes.QUERY_ITEM)}).filter(function(e){return!!e});Object(j.removeItems)(n)}var o=Object(M.k)(e.selectedMoserObject),a=Object(M.r)(Object(M.n)(e.selectedMoserObject)).length;o!==a-1&&t.reverse(),t.forEach(function(t){var n=Object(I.addExpressionObjectToModule)(e.context,r,t);e.newColumnsIds.push(n.getIdentifier()),i.push(n)}),i.forEach(function(t){o!==a-1&&T.a.ModuleUtils.move(t,r,Object(M.k)(e.selectedMoserObject)+1),Object(j.setObjectProperty)(t,S.J,e.newColumnSplitSpec)}),Object(j.setObjectProperty)(e.selectedMoserObject,S.I,e.splitSpec)}))})},i.createCloneModule=function(){var e=this;return Object(F.a)(this.context,{temp:!0,module:this.cloneModule}).then(function(t){e.cloneModuleData=t,e.cloneQuerySubject=e.cloneModule.getQuerySubject().find(function(t){return t.getIdentifier()===e.selectedQuerySubject.getIdentifier()})})},i._onParameterFault=function(e,t,i,r){t.length&&this.provider.openDialog(P.s,{resolve:i,abort:r,parameterResponse:e,parameterFault:t})},function(e,t,i){t&&W(e.prototype,t),i&&W(e,i)}(t,[{key:"splitSpec",get:function(){if(!this.separatorValue)return{};var e=this.columnsData.map(function(e){return delete e.rows,e});return{templateData:this.sdata,separatorValue:this.separatorValue,columnsData:e,newColumnsIds:this.newColumnsIds}}},{key:"newColumnSplitSpec",get:function(){return this.separatorValue?{originalColumnIdentifier:this.selectedMoserObject.getIdentifier()}:{}}},{key:"isNextDisabled",get:function(){return!this.columnsData.length}},{key:"originalColumnName",get:function(){return this.selectedMoserObject.getLabel()}},{key:"sdataArray",get:function(){return this.sdata?this.sdata.split("").map(function(e){return{value:e,active:!1}}):[]}},{key:"dashEscapedSeparator",get:function(){return this.separatorValue.replace(/\\/g,"\\\\]").replace(/-/g,"\\-").replace(/]/g,"\\]")}},{key:"dialogTitle",get:function(){return Object(D.getString)("splitTextDateDialogTitle",{columnName:this.selectedMoserObject.getLabel()})}},{key:"dateSourceExpression",get:function(){var e=this.singleDateSourceExpression();this.sourceFormat.hasLeadingControl&&(e="case when ("+e+" is null) then ("+this.singleDateSourceExpression({hasLeadingControl:!0})+") else ("+e+") end");return e}},{key:"cloneModule",get:function(){var e=Object(V.getModule)(this.selectedMoserObject);return Object(I.generateTempModuleFromModule)(e)}}]),t}(C.a),w.defaultProvider={getModuleVersion:function(){}},n=B((r=v).prototype,"selectedMoserObject",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),o=B(r.prototype,"separatorValue",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),a=B(r.prototype,"previewData",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=B(r.prototype,"sdata",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=B(r.prototype,"columnsData",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=B(r.prototype,"inReview",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=B(r.prototype,"isInProgress",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),p=B(r.prototype,"invalidNumbers",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=B(r.prototype,"cloneModuleData",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=B(r.prototype,"selectedQuerySubject",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=B(r.prototype,"cloneQuerySubject",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_=B(r.prototype,"sourceFormat",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),b=B(r.prototype,"errorMessage",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h=B(r.prototype,"isOnError",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=B(r.prototype,"isYearFirst",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=B(r.prototype,"isAmbiguous",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),B(r.prototype,"splitSpec",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"splitSpec"),r.prototype),B(r.prototype,"newColumnSplitSpec",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"newColumnSplitSpec"),r.prototype),B(r.prototype,"isNextDisabled",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"isNextDisabled"),r.prototype),B(r.prototype,"originalColumnName",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"originalColumnName"),r.prototype),B(r.prototype,"sdataArray",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"sdataArray"),r.prototype),B(r.prototype,"dashEscapedSeparator",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"dashEscapedSeparator"),r.prototype),B(r.prototype,"dialogTitle",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"dialogTitle"),r.prototype),B(r.prototype,"singleDateSourceExpression",[C.j],Object.getOwnPropertyDescriptor(r.prototype,"singleDateSourceExpression"),r.prototype),B(r.prototype,"dateSourceExpression",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"dateSourceExpression"),r.prototype),B(r.prototype,"cloneModule",[x.computed],Object.getOwnPropertyDescriptor(r.prototype,"cloneModule"),r.prototype),B(r.prototype,"previewExpressionData",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"previewExpressionData"),r.prototype),B(r.prototype,"updateDateArray",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"updateDateArray"),r.prototype),B(r.prototype,"updateDateType",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"updateDateType"),r.prototype),B(r.prototype,"updateColumnName",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnName"),r.prototype),B(r.prototype,"updateColumnEditing",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnEditing"),r.prototype),B(r.prototype,"endColumnsEditing",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"endColumnsEditing"),r.prototype),B(r.prototype,"getValidatedColumnExpression",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"getValidatedColumnExpression"),r.prototype),B(r.prototype,"splitColumn",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"splitColumn"),r.prototype),B(r.prototype,"createCloneModule",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"createCloneModule"),r.prototype),B(r.prototype,"_onParameterFault",[C.c],Object.getOwnPropertyDescriptor(r.prototype,"_onParameterFault"),r.prototype),r)},1730:function(e,t,i){"use strict";i.r(t),i.d(t,"default",function(){return d});var r,n=i(1),o=i.n(n),a=i(3),l=i(25),s=i(5),c=i(2),u=i(10),p=i(44),m=i(1731);var d=Object(p.a)(u.F)(r=Object(s.e)(function(e){return{dialogTitle:e.dialogTitle,isOnError:e.isOnError,isValidating:e.isValidating,validateNumericScale:e.validateNumericScale,onNumberDialogCancel:e.onNumberDialogCancel}})(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n0) then (substring("+o+";1;position('"+n+"';"+o+")-1)) else ("+o+");'')":"nullif(trim(trailing '"+n+"';"+o+");'')",t.isTrimWhitespaceSelected&&(i="trim("+i+")"),(t.isLeadingSelected||t.isTrailingSelected)&&(t.leadingValue&&t.leadingValue===t.trailingValue?i="trim('"+t.leadingValue+"';"+i+")":(t.leadingValue&&t.isLeadingSelected&&(i="trim(leading '"+t.leadingValue+"';"+i+")"),t.trailingValue&&t.isTrailingSelected&&(i="trim(trailing '"+t.trailingValue+"';"+i+")"))),i},t.getSplitNumericExpression=function(e,i){return"CAST(trim("+t.getSplitExpression(i)+") AS NUMERIC("+e.precision+" ;"+e.scale+"))"},t.getMatchValues=function(e){var i=e.split(t.separatorValue),r=(i=i.map(function(e){return t.getTrimmedValue(e)})).splice(0,J.c>1?J.c-1:1),n=i.join(t.separatorValue);return n.length>0&&r.push(n),r},t.getTrimmedValue=function(e){var i=e;t.isTrimWhitespaceSelected&&(i=i.trim());var r=new RegExp("^["+j()(t.leadingValue)+"]+","g"),n=new RegExp("["+j()(t.trailingValue)+"]+$","g");return t.isLeadingSelected&&t.leadingValue&&(i=i.replace(r,"")),t.isTrailingSelected&&t.trailingValue&&(i=i.replace(n,"")),i},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var i=t.prototype;return i.storeDidMount=function(e){var t=this,i=e.element,r=e.edit,n=e.onNotifyDialogClose;this.selectedMoserObject=i;var o=Object(H.getAncestorOrSelf)(i,M.a.MoserObjectTypes.QUERY_SUBJECT),a=Object(H.getChildQueryItem)(o,i.identifier),l=this.updatedPreviousColumns,s=l.length>0;if(r){var c=Object(P.getObjectProperty)(i,R.I);this.showEditLabel=!0,this.prevColumnsIds=c.newColumnsIds,s||(this.edit=!0,this.prevColumnsData=c.columnsData,this.isTrimWhitespaceSelected=c.isTrimWhitespaceSelected,this.isLeadingSelected=c.isLeadingSelected,this.leadingValue=c.leadingValue,this.isTrailingSelected=c.isTrailingSelected,this.trailingValue=c.trailingValue,this.separatorValue=c.separatorValue)}return Object(B.a)(this.context,{moduleId:this.provider.getModuleId(),querySpec:Object(G.k)(a),module:Object(H.getModule)(this.selectedMoserObject),rawResponse:!0,onParameterFault:this._onParameterFault}).then(function(e){var i=(e.data.dataItems[0].items||[]).map(function(e){return{selected:!1,data:Object(G.c)(e)}});t.action(function(){var e=i.find(function(e){var t;return null==e?void 0:null==(t=e.data)?void 0:t.trim()});e&&(t.sdata=e.data.trim(),e.selected=!0,t.previewData=i,t.edit&&t.updateSeparator(t.separatorValue)),s&&(t.columnsData=[],t.prevColumnsIds=[],t.edit=!1,t.provider.openDialog(W.C,{store:t,updatedPreviousColumns:l}).then(function(e){return n&&n(e)}))})})},i.doOnScroll=function(e){this.scrollTop=e},i.setOverflow=function(e,t){var i=this.columnsData.slice();i.forEach(function(i,r){i.scroll=r===e&&t}),this.columnsData=i},i.initSplitText=function(e){this.selectedMoserObject=e},i.setStringRowData=function(e){var t=this,i=[];this.previewData.forEach(function(r){if(r&&r.data){var n=t.getMatchValues(r.data);i.push(n[e])}else i.push(void 0)}),this.columnsData[e].rows=i},i.createCloneModule=function(){var e=this,t=Object(H.getModule)(this.selectedMoserObject);return this.cloneModule=Object(A.generateTempModuleFromModule)(t),Object(Q.a)(this.context,{temp:!0,module:this.cloneModule}).then(function(t){e.cloneModuleData=t,e.cloneQuerySubject=e.cloneModule.querySubject.find(function(t){return t.getIdentifier()===e.selectedQuerySubject.getIdentifier()})})},i._handlePreviewErrors=function(e){var t=e.messages&&e.messages.length&&e.messages[0].message||e.msg||Object(Y.a)(e);this.errorMessage=t,this.isValidating=!1,this.isOnError=!0},i.updateColumnName=function(e,t){t.name=e},i.updateColumnCheckedState=function(e){e.checked=!e.checked},i._setEditingFalse=function(){this.columnsData.forEach(function(e){e.editing=!1,e.pencilClass=J.h})},i.updateColumnEditing=function(e,t,i){if(!t||13===t.keyCode)if(e.type===M.a.HighLevelDataType.DECIMAL.name())e.editing=!1,this.openNumberDialog(e.precision,e.scale,e.type,e,i);else{var r=!e.editing;this._setEditingFalse(),e.editing=r,e.editing?e.pencilClass=J.i:e.pencilClass=J.h}},i.endColumnsEditing=function(){this._setEditingFalse()},i.setReviewState=function(e){this.inReview=e},i.updateSeparator=function(e){var t=this;this.separatorValue=e.substring(0,1);var i=0;this.sdataArray.forEach(function(e){t.separatorValue.indexOf(e.value)>=0&&(i+=1)0,this.updateSeparator(this.separatorValue)},i.updateTrailingValue=function(e){this.trailingValue=e.substring(0,1),this.isTrailingSelected=this.trailingValue.length>0,this.updateSeparator(this.separatorValue)},i.toggleIsTrimWhitespaceSelected=function(){this.isTrimWhitespaceSelected=!this.isTrimWhitespaceSelected,this.updateSeparator(this.separatorValue)},i.toggleIsLeadingSelected=function(){this.isLeadingSelected=!this.isLeadingSelected,this.updateSeparator(this.separatorValue)},i.toggleIsTrailingSelected=function(){this.isTrailingSelected=!this.isTrailingSelected,this.updateSeparator(this.separatorValue)},i._handlePreviewSuccess=function(e,t,i){var r={},n={};i.data.forEach(function(e,t){e.pt.forEach(function(e,o){var a=i.dataItems[o].items[e].t[0],l=void 0===a.d?a.u:a.d;0===o?n[t]=""+l:r[n[t]]=""+l})});var o=[];this.previewData.forEach(function(e){var t=""+r[e.data];o.push(t)});var a=this.columnsData.slice();a[t].rows=o,this.columnsData=a,this.isValidating=!1,this.numberDialogOpen&&(this.numberDialogOpen=!1,this.provider.closeDialog())},i._onParameterFault=function(e,t,i,r){t.length&&this.provider.openDialog(W.s,{resolve:i,abort:r,parameterResponse:e,parameterFault:t})},i.previewExpressionData=function(e,t){var i=this,r={label:"templabel",property:[{name:R.t,value:{func:R.I,version:this.provider.getModuleVersion()}}],expression:this.getSplitNumericExpression(e,t)},n=Object(A.createExpressionObject)(this.context,this.cloneQuerySubject,r);return Object(U.a)(this.context,{moserObject:this.cloneQuerySubject,moduleId:this.cloneModuleData.id,expression:r.expression}).then(function(e){Object(A.updateExpressionProperties)(i.context,n,e.columnList[0]);var t=Z({},i.cloneModule);return Object(A.addExpressionObjectToModule)(i.context,t.querySubject.find(function(e){return e.getIdentifier()===i.selectedQuerySubject.getIdentifier()}),n),Object(Q.a)(i.context,{temp:!0,module:t})}).then(function(e){var t=Object(H.getChildQueryItem)(i.selectedQuerySubject,i.selectedMoserObject.identifier);return t.push(n),Object(B.a)(i.context,{moduleId:e.id,querySpec:Object(G.k)(t)})}).then(function(r){i._handlePreviewSuccess(e,t,r)}).catch(function(e){return i._handlePreviewErrors(e),Promise.reject(e)})},i.validateNumericScale=function(e,t,i){if(Number(this.newScale)>Number(this.newPrecision)){var r=new Error(Object(F.getString)("splitTextNumberViewScaleError"));return this._handlePreviewErrors(r),Promise.resolve()}return this.setColumnType(e,t,i)},i.setColumnType=function(e,t,i){var r=this;if(this.isOnError=!1,this.errorMessage=!1,this.cloneModuleData={},e===M.a.HighLevelDataType.DECIMAL.name()){this.isValidating=!0,this.numberDialogOpen=!0;var n=I()(t);return n.precision=this.newPrecision,n.scale=this.newScale,this.createCloneModule().then(function(){return r.previewExpressionData(n,i)}).then(function(){t.type=M.a.HighLevelDataType.DECIMAL.name(),t.precision=r.newPrecision,t.scale=r.newScale})}return t.type=e,this.setStringRowData(i),Promise.resolve()},i.updateColumnType=function(e,t,i){if(e!==t.type)if(this.isValidating=!1,this.isOnError=!1,e===M.a.HighLevelDataType.DECIMAL.name()){var r=Object(G.f)(t.rows),n=r.precision,o=r.scale;this.openNumberDialog(n,o,e,t,i)}else this.setColumnType(e,t,i)},i.openNumberDialog=function(e,t,i,r,n){this.newPrecision=e,this.newScale=t,this.provider.openDialog(W.F,{store:this,type:i,column:r,columnIndex:n})},i.updateTemplate=function(e){var t=this;e.data&&e.data.trim()&&(this.previewData.forEach(function(i){i.data===e.data?(i.selected=!0,t.sdata=i.data.trim()):i.selected=!1}),this.updateSeparator(this.separatorValue))},i.updateItemState=function(e){this.separatorValue="",e.active?this.separatorValue=this.separatorValue.replace(e.value,""):this.separatorValue=(this.separatorValue||"")+e.value,this.updateSeparator(this.separatorValue)},i.updateReviewColumnData=function(){var e=this;this.isLoading=!0,this.inReview=!0;var t=[];return this.columnsData.forEach(function(i,r){i.type===M.a.HighLevelDataType.DECIMAL.name()&&t.push(e.createCloneModule().then(function(){return e.previewExpressionData(i,r)}))}),Promise.all(t).then(function(){e.action(function(){e.isLoading=!1})})},i.updateRawColumnData=function(){var e=this,t=0,i=[];this.inReview=!1,this.columnsData.forEach(function(e){return e.rows=[]}),this.previewData.forEach(function(r){if(r&&r.data){var n=e.getMatchValues(r.data);i.push(n),t=Math.max(n.length,t)}else i.push(void 0)}),i.forEach(function(i){for(var r=0;rc)&&(p=!0),e.isLeadingSelected&&r===e.leadingValue&&ua&&(p=!0);var m={value:r,active:r===e.separatorValue,trimmed:p};if(i.push(m),u===l.length-1&&n!==t.length-1){var d={value:e.separatorValue,active:!0,trimmed:!1};i.push(d)}})}),i}},{key:"dashEscapedSeparator",get:function(){return this.separatorValue.replace(/\\/g,"\\\\]").replace(/-/g,"\\-").replace(/]/g,"\\]")}},{key:"dialogTitle",get:function(){return this.showEditLabel?Object(F.getString)("splitTextDialogEditTitle",{columnName:this.selectedMoserObject.label}):Object(F.getString)("splitTextDialogTitle",{columnName:this.selectedMoserObject.label})}},{key:"notEnoughDataMessage",get:function(){return this.previewData.length?"":Object(F.getString)("splitTextNotEnoughData")}},{key:"selectedQuerySubject",get:function(){return Object(H.getAncestorOrSelf)(this.selectedMoserObject,M.a.MoserObjectTypes.QUERY_SUBJECT)}},{key:"isDelimiterSet",get:function(){return this.separatorValue.length>0}},{key:"previousColumns",get:function(){var e=Object(H.getAncestorOrModule)(this.selectedMoserObject,M.a.MoserObjectTypes.QUERY_SUBJECT);return this.prevColumnsIds.map(function(t){return Object(z.g)(e,t,M.a.MoserObjectTypes.QUERY_ITEM)}).filter(function(e){return!!e})}},{key:"updatedPreviousColumns",get:function(){return this.previousColumns.filter(function(e){return Object(A.getExpressionType)(e)===R.I})}}]),t}(N.a),O.defaultProvider={getModuleVersion:function(){}},n=$((r=T).prototype,"newPrecision",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=$(r.prototype,"newScale",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=$(r.prototype,"leadingValue",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=$(r.prototype,"previewData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),s=$(r.prototype,"trailingValue",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=$(r.prototype,"scrollTop",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=$(r.prototype,"selectedMoserObject",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),p=$(r.prototype,"sdata",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m=$(r.prototype,"separatorValue",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=$(r.prototype,"columnsData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=$(r.prototype,"values",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=$(r.prototype,"edit",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=$(r.prototype,"inReview",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=$(r.prototype,"isInProgress",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=$(r.prototype,"isLeadingSelected",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=$(r.prototype,"isLoading",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=$(r.prototype,"isOnError",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=$(r.prototype,"isTrailingSelected",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=$(r.prototype,"isValidating",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=$(r.prototype,"showEditLabel",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=$(r.prototype,"isTrimWhitespaceSelected",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),$(r.prototype,"splitSpec",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"splitSpec"),r.prototype),$(r.prototype,"newColumnSplitSpec",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"newColumnSplitSpec"),r.prototype),$(r.prototype,"isNextDisabled",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isNextDisabled"),r.prototype),$(r.prototype,"originalColumnName",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"originalColumnName"),r.prototype),$(r.prototype,"sdataArray",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"sdataArray"),r.prototype),$(r.prototype,"dashEscapedSeparator",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dashEscapedSeparator"),r.prototype),$(r.prototype,"dialogTitle",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"dialogTitle"),r.prototype),$(r.prototype,"notEnoughDataMessage",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"notEnoughDataMessage"),r.prototype),$(r.prototype,"selectedQuerySubject",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"selectedQuerySubject"),r.prototype),$(r.prototype,"isDelimiterSet",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"isDelimiterSet"),r.prototype),$(r.prototype,"previousColumns",[k.computed],Object.getOwnPropertyDescriptor(r.prototype,"previousColumns"),r.prototype),$(r.prototype,"doOnScroll",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"doOnScroll"),r.prototype),$(r.prototype,"setOverflow",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"setOverflow"),r.prototype),$(r.prototype,"initSplitText",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"initSplitText"),r.prototype),$(r.prototype,"setStringRowData",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"setStringRowData"),r.prototype),$(r.prototype,"createCloneModule",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"createCloneModule"),r.prototype),$(r.prototype,"_handlePreviewErrors",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"_handlePreviewErrors"),r.prototype),$(r.prototype,"updateColumnName",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnName"),r.prototype),$(r.prototype,"updateColumnCheckedState",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnCheckedState"),r.prototype),$(r.prototype,"updateColumnEditing",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnEditing"),r.prototype),$(r.prototype,"endColumnsEditing",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"endColumnsEditing"),r.prototype),$(r.prototype,"setReviewState",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"setReviewState"),r.prototype),$(r.prototype,"updateSeparator",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateSeparator"),r.prototype),$(r.prototype,"updateLeadingValue",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateLeadingValue"),r.prototype),$(r.prototype,"updateTrailingValue",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateTrailingValue"),r.prototype),$(r.prototype,"toggleIsTrimWhitespaceSelected",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsTrimWhitespaceSelected"),r.prototype),$(r.prototype,"toggleIsLeadingSelected",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsLeadingSelected"),r.prototype),$(r.prototype,"toggleIsTrailingSelected",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"toggleIsTrailingSelected"),r.prototype),$(r.prototype,"_handlePreviewSuccess",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"_handlePreviewSuccess"),r.prototype),$(r.prototype,"_onParameterFault",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"_onParameterFault"),r.prototype),$(r.prototype,"previewExpressionData",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"previewExpressionData"),r.prototype),$(r.prototype,"validateNumericScale",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"validateNumericScale"),r.prototype),$(r.prototype,"setColumnType",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"setColumnType"),r.prototype),$(r.prototype,"updateColumnType",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateColumnType"),r.prototype),$(r.prototype,"updateTemplate",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateTemplate"),r.prototype),$(r.prototype,"updateItemState",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateItemState"),r.prototype),$(r.prototype,"updateReviewColumnData",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateReviewColumnData"),r.prototype),$(r.prototype,"updateRawColumnData",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"updateRawColumnData"),r.prototype),$(r.prototype,"_getNewExpressions",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"_getNewExpressions"),r.prototype),$(r.prototype,"splitColumn",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"splitColumn"),r.prototype),$(r.prototype,"closeNotifyDialogAndExit",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"closeNotifyDialogAndExit"),r.prototype),$(r.prototype,"closeNotifyDialogAndContinue",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"closeNotifyDialogAndContinue"),r.prototype),$(r.prototype,"setNewPrecision",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"setNewPrecision"),r.prototype),$(r.prototype,"setNewScale",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"setNewScale"),r.prototype),$(r.prototype,"onNumberDialogCancel",[N.c],Object.getOwnPropertyDescriptor(r.prototype,"onNumberDialogCancel"),r.prototype),r)},1742:function(e,t,i){var r=i(505),n=4;e.exports=function(e){return r(e,n)}},708:function(e,t,i){"use strict";i.r(t);var r=i(1714),n=i(1724),o=i(1725),a=i(1229),l=i(1730),s=i(1734);t.default={"components/SplitDateDialog":r,"components/SplitDateNotifyDialog":n,"components/SplitNotifyDialog":o,"components/SplitTextDateDialog":a,"components/SplitTextNumberDialog":l,"components/SplitTextDialog":s}},776:function(e,t,i){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([1047],{"1354ceb8182eaf103bb5":function(e,t,i){"use strict";var r=i("9689a9c94ae38b47fa2c"),n=i.n(r),o=i("9ce58a7deea14f49ef01"),a=i.n(o),l=new n.a({id:"information_32_v7",use:"information_32_v7-usage",viewBox:"0 0 32 32",content:''});a.a.add(l),t.a=l},"3865314c5959606874d4":function(t,i){t.exports=e},"8bc7e3be0a35c2c98374":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("3865314c5959606874d4"),n=(i.n(r),i("1354ceb8182eaf103bb5"));t.default=n.a}},["8bc7e3be0a35c2c98374"])}(i(15))},777:function(e,t,i){"use strict";i.d(t,"a",function(){return c}),i.d(t,"n",function(){return p}),i.d(t,"k",function(){return m}),i.d(t,"m",function(){return d}),i.d(t,"d",function(){return g}),i.d(t,"c",function(){return _}),i.d(t,"h",function(){return b}),i.d(t,"j",function(){return h}),i.d(t,"i",function(){return f}),i.d(t,"e",function(){return y}),i.d(t,"b",function(){return w}),i.d(t,"g",function(){return v}),i.d(t,"l",function(){return x}),i.d(t,"f",function(){return D});i(874);var r=i(0),n=i.n(r),o=i(2),a=i(8),l=i(87),s=i(875),c="Null",u="cDate",p=Object.freeze({DATE:"date",YEAR:"year",YEAR_MONTH:"year_month",MONTH:"month",MONTH_DAY:"month_day",DAY:"day",TIME:"time",HOUR:"hour",HOUR_MINUTE:"hour_minute",HOUR_MINUTE_SECOND:"hour_minute_second",MINUTE:"minute",MINUTE_SECOND:"minute_second",MINUTE_SECOND_MILLISECOND:"minute_second_millisecond",SECOND:"second",SECOND_MILLISECOND:"second_millisecond",MILLISECOND:"millisecond",WEEK_DAY:"week_day",DATE_TIME:"day_time",TIMEZONE_HOUR:"timezonehour",TIMEZONE_MINUTE:"timezoneminute",TIMEZONE_INT_HOUR:"timezoneinthour",TIMEZONE_INT_MINUTE:"timezoneintminute",TIMEZONE_SIGN:"timezonesign",ORIGINAL:"original"});function m(e){var t=[],i=Object(a.isArray)(e)?e:[e];return{limit:"100",type:"detail",dataItems:i.map(function(e,i){var r=String(i);return t.push(r),{id:r,itemId:e.getIdForExpression()}}),projections:t,filters:[{expression:{operator:"isnotnull",itemId:i[0].getIdForExpression()}}]}}var d=Object.freeze({DATE:"date"});function g(){return[{value:"D",label:Object(o.getString)("splitDateHeaderDay")},{value:"M",label:Object(o.getString)("splitDateHeaderMonth")}]}function _(e){return void 0===e.t[0].d?e.t[0].u:e.t[0].d}function b(e){return e.data?e.data:c}function h(){return Object(o.getString)("splitTextDateViewTitle",{dataType:Object(o.getString)("splitTextDateDataTypeDate")})}function f(e,t){if(t===n.a.HighLevelDataType.DECIMAL.name()){var i=new RegExp("[.][^.]*[.]|[-][^-]*[-]|[^-.0-9]");return e.trim().match(i)?c:e}return e}function y(e,t){var i;return t===p.ORIGINAL?i=""+e:t===p.DATE?i="CAST("+e+" as DATE)":t===p.YEAR?i="_year("+e+")":t===p.MONTH?i="_month("+e+")":t===p.DAY?i="_day("+e+")":t===p.TIME?i="CAST("+e+" as TIME)":t===p.HOUR?i="_hour("+e+")":t===p.MINUTE?i="_minute("+e+")":t===p.SECOND?i="floor(_second("+e+"))":t===p.MILLISECOND?i="(_second("+e+") - floor(_second("+e+"))) * 1000":t===p.WEEK_DAY?i="case _day_of_week("+e+"; 1) when 1 then '"+Object(o.getString)("splitDateWDMonday")+"' when 2 then '"+Object(o.getString)("splitDateWDTuesday")+"' when 3 then '"+Object(o.getString)("splitDateWDWednesday")+"' when 4 then '"+Object(o.getString)("splitDateWDThursday")+"' when 5 then '"+Object(o.getString)("splitDateWDFriday")+"' when 6 then '"+Object(o.getString)("splitDateWDSaturday")+"' when 7 then '"+Object(o.getString)("splitDateWDSunday")+"' else null end":t===p.TIMEZONE_HOUR?i="_timezone_hour("+e+")":t===p.TIMEZONE_MINUTE&&(i="_timezone_minute("+e+")"),i}function w(e,t,i,r){var n=(t||[]).filter(function(t){return t.type===e})[0];return{name:n?n.name:r,type:e,rows:i.map(function(e){return e.data}),editing:!1,checked:!n||n.checked}}function v(e,t){var i=(e[t]||[]).filter(function(e){return null!==e.data});return i.length>0?""+i[0].data:""}function x(e,t,i,r){void 0===r&&(r=u);var n=t.getTaxonomy();if(n.length||(t.addTaxonomy(e.moser.objectFactory.createTaxonomyType()),n=t.getTaxonomy()),i[0]===l.a)for(var o=0;o