1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3690,9943,7789,642,9059],{51521:function(t,e){"use strict";e.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"}},7255:function(t,e){"use strict";e.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},76537:function(t,e,r){"use strict";r.d(e,{AP:function(){return i},Qn:function(){return n},a9:function(){return o},pB:function(){return u},yl:function(){return a}});var n=["#0094FF","#7DC720","#FFC702","#AD00FF","#EF5DA8","#5D5FEF","#FFFFFF"],i=6,o=4,a={w:6,h:4,minH:3,minW:4},u={text:{grid:{x:1,h:1,w:12,minH:1,minW:1}}}},14019:function(t,e,r){"use strict";r.r(e),r.d(e,{Button:function(){return i},ChartToolbox:function(){return f.Y},ChatItem:function(){return a.z},DashboardCanvas:function(){return l.DashboardCanvas},DraggableContainer:function(){return c.K},G2Chart:function(){return s.Ik},Header:function(){return o},MagicChat:function(){return u.MagicChat},NumberChart:function(){return s.e3},RFMMatrix:function(){return s.bp},RFMSegmentations:function(){return s.iO},SeriesItem:function(){return c.s},TableChart:function(){return s.zL},VisualizationEditor:function(){return s.Rv}}),r(24353),r(2784);var n=r(52322),i=function(){return(0,n.jsx)("button",{className:"ui-bg-red-1000 bg-red-1000",onClick:function(){return alert("boop")},children:"Boop"})},o=function(t){var e=t.text;return(0,n.jsx)("h1",{children:e})},a=r(93898),u=r(78230),s=r(58203),c=r(10503),l=r(16920),f=r(61314)},95999:function(t,e,r){"use strict";r.d(e,{Zz:function(){return d},f5:function(){return y},oG:function(){return p}});var n=r(96412),i=r(13089),o=r(95235),a=r(60038),u=r.n(a),s=r(76635),c=r(23306),l=r(57647);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){(0,o.Z)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var p=function(){function t(e,r,i,a,u){(0,n.Z)(this,t),(0,o.Z)(this,"type",void 0),(0,o.Z)(this,"series",void 0),(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"data",void 0),(0,o.Z)(this,"aggregateData",void 0),(0,o.Z)(this,"filter",void 0),this.type=e,this.series=r,this.options=i,this.data=a,this.filter=u;var c=this.data;if(this.filter&&(c=this.filterData(this.data,this.filter)),this.type===d.feature){this.aggregateData=(0,s.orderBy)(this.data.map(function(t){return h(h({},t),{},{config:h(h({},JSON.parse(null!=t&&t.config?null==t?void 0:t.config:"{}")),{},{ivIndex:{"very strong":0,strong:1,medium:2,low:3}[t.iv_interpretation]})})}),["config.ivIndex","feature","config.index"]);return}if([d.RFMMatrix,d.sankey].includes(this.type)){this.aggregateData=c;return}var l=!!(0,s.isNil)(null==i?void 0:i.isAggregate)||i.isAggregate;if(![d.RFMMatrix,d.RFMSegmentation,d.feature,d.histogram,d.retention].includes(this.type)&&l&&(c=this.pickSeriesData(c)),c=this.filterNaNData(c),c=this.getGranularityData(c),l&&(c=this.getAggregateData(c)),![d.funnel,d.table].includes(this.type)){var f=r.find(function(t){return t.sort});f&&(c=(0,s.orderBy)(c,[null==f?void 0:f.key],[null==f?void 0:f.sort]))}this.aggregateData=c}return(0,i.Z)(t,[{key:"filterData",value:function(t,e){return t.filter(function(t){return e.every(function(e){var r=e.op,n=t[e.column],i=(0,s.isString)(e.value)?(0,s.trim)(e.value,"'"):e.value;if((0,s.isArray)(e.value)&&(i=e.value.map(function(t){return(0,s.isString)(t)?(0,s.trim)(t,"'"):t})),r===c.D9.GreaterThan&&n>i||r===c.D9.GreaterThanOrEqual&&n>=i||r===c.D9.LessThan&&n<i||r===c.D9.LessThanOrEqual&&n<=i||r===c.D9.Equal&&n===i||r===c.D9.NotEqual&&n!==i||r===c.D9.IsNull.toLowerCase()&&(0,s.isNil)(n)||r===c.D9.NotNull.toLowerCase()&&!(0,s.isNil)(n)||r===c.D9.Between.toLowerCase()&&n>=i[0]&&n<=i[1]||r===c.D9.In.toLowerCase()&&(0,s.isArray)(i)&&i.includes(n+""))return!0})})}},{key:"filterNaNData",value:function(t){var e=this;return t.filter(function(t){return!e.series.find(function(e){return"NaN"===t[e.key]})})}}
1,{key:"pickSeriesData",value:function(t){var e=new(u())().createView().source(t);return e.transform({type:"pick",fields:this.series.map(function(t){return t.key})}),e.rows}},{key:"getGranularityData",value:function(t){var e=new(u())().createView().source(t),r=this.series.filter(function(t){return t.granularity});return e.transform({type:"map",callback:function(t){return r.forEach(function(e){l.bx[e.granularity]&&(t[e.key]=l.bx[e.granularity](t[e.key]))}),t}}),e.rows}},{key:"getAggregateData",value:function(t){var e=this,r=this.series.filter(function(t){return t.isGroupBy}).map(function(t){return t.key}),n=this.series.filter(function(t){return!t.isGroupBy&&t.operation!==g.first}),i=n.map(function(t){return t.key}),o=n.map(function(t){return t.operation||g.sum}),a=new(u())().createView().source(t);return a.transform({type:"map",callback:function(t){return e.series&&e.series.forEach(function(e){(0,s.isNil)(t[e.key])&&(t[e.key]=0)}),t}}),a.transform({type:"aggregate",fields:i,operations:o,as:i,groupBy:r}),a.rows}},{key:"getGrand",value:function(t){var e=this.series.filter(function(e){var r,n=t.find(function(t){return t.name==e.key});return c.$F.includes(null==n?void 0:null===(r=n.type)||void 0===r?void 0:r.toLowerCase())}),r=this.series.find(function(t){return t.isGroupBy}),n=e.map(function(t){return t.key}),i=e.map(function(t){return"sum"});r&&(n.unshift(r.key),i.unshift("count"));var o=new(u())().createView().source(this.aggregateData);return o.transform({type:"aggregate",fields:n,operations:i,as:n,groupBy:[]}),o.rows[0]}}],[{key:"transConfigForChartType",value:function(t){return t.chartType===d.scatter&&(t.series=t.series.map(function(t){return t.isGroupBy?t.sort="asc":t.sort=void 0,t})),t.chartType===d.bubble&&(t.series=t.series.map(function(t){return t.isXAxis?t.sort="asc":t.sort=void 0,t})),t}}]),t}(),d={table:"table",line:"line",bar:"bar",horizontalBar:"horizontalBar",pie:"pie",area:"area",scatter:"scatter",bubble:"bubble",histogram:"histogram",box:"box",RFMMatrix:"RFMMatrix",RFMSegmentation:"RFMSegmentation",feature:"feature",funnel:"funnel",retention:"retention",number:"number",sankey:"sankey"},g={sum:"sum",first:"first"},y=[{type:d.table,icon:"icontablechart"},{type:d.number,icon:"iconNumbersquare3-24px"},{type:d.line,icon:"iconlinechart"},{type:d.bar,icon:"iconareachart"},{type:d.horizontalBar,icon:"iconhorizontalbarchart"},{type:d.pie,icon:"iconpiechart"},{type:d.area,icon:"iconareachart"},{type:d.scatter,icon:"iconscatterchart1"}]},24353:function(){},68262:function(t,e,r){"use strict";var n=r(23586);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i}
1;return r.PropTypes=r,r}},13980:function(t,e,r){t.exports=r(68262)()},23586:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98572:function(t,e,r){"use strict";r.d(e,{Q:function(){return s}});let n=t=>"object"==typeof t&&null!=t&&1===t.nodeType,i=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,o=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){let r=getComputedStyle(t,null);return i(r.overflowY,e)||i(r.overflowX,e)||(t=>{let e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},a=(t,e,r,n,i,o,a,u)=>o<t&&a>e||o>t&&a<e?0:o<=t&&u<=r||a>=e&&u>=r?o-t-n:a>e&&u<r||o<t&&u>r?a-e+i:0,u=t=>{let e=t.parentElement;return null==e?t.getRootNode().host||null:e},s=(t,e)=>{var r,i,s,c;if("undefined"==typeof document)return[];let{scrollMode:l,block:f,inline:h,boundary:p,skipOverflowHiddenElements:d}=e,g="function"==typeof p?p:t=>t!==p;if(!n(t))throw TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,m=[],b=t;for(;n(b)&&g(b);){if((b=u(b))===y){m.push(b);break}null!=b&&b===document.body&&o(b)&&!o(document.documentElement)||null!=b&&o(b,d)&&m.push(b)}let v=null!=(i=null==(r=window.visualViewport)?void 0:r.width)?i:innerWidth,w=null!=(c=null==(s=window.visualViewport)?void 0:s.height)?c:innerHeight,{scrollX:k,scrollY:D}=window,{height:x,width:C,top:O,right:F,bottom:E,left:M}=t.getBoundingClientRect(),T="start"===f||"nearest"===f?O:"end"===f?E:O+x/2,N="center"===h?M+C/2:"end"===h?F:M,S=[];for(let t=0;t<m.length;t++){let e=m[t],{height:r,width:n,top:i,right:o,bottom:u,left:s}=e.getBoundingClientRect();if("if-needed"===l&&O>=0&&M>=0&&E<=w&&F<=v&&O>=i&&E<=u&&M>=s&&F<=o)break;let c=getComputedStyle(e),p=parseInt(c.borderLeftWidth,10),d=parseInt(c.borderTopWidth,10),g=parseInt(c.borderRightWidth,10),b=parseInt(c.borderBottomWidth,10),B=0,W=0,H="offsetWidth"in e?e.offsetWidth-e.clientWidth-p-g:0,R="offsetHeight"in e?e.offsetHeight-e.clientHeight-d-b:0,I="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,j="offsetHeight"in e?0===e.offsetHeight?0:r/e.offsetHeight:0;if(y===e)B="start"===f?T:"end"===f?T-w:"nearest"===f?a(D,D+w,w,d,b,D+T,D+T+x,x):T-w/2,W="start"===h?N:"center"===h?N-v/2:"end"===h?N-v:a(k,k+v,v,p,g,k+N,k+N+C,C),B=Math.max(0,B+D),W=Math.max(0,W+k);else{B="start"===f?T-i-d:"end"===f?T-u+b+R:"nearest"===f?a(i,u,r,d,b+R,T,T+x,x):T-(i+r/2)+R/2,W="start"===h?N-s-p:"center"===h?N-(s+n/2)+H/2:"end"===h?N-o+g+H:a(s,o,n,p,g+H,N,N+C,C);let{scrollLeft:t,scrollTop:c}=e;B=Math.max(0,Math.min(c+B/j,e.scrollHeight-r/j+R)),W=Math.max(0,Math.min(t+W/I,e.scrollWidth-n/I+H)),T+=c-B,N+=t-W}S.push({el:e,top:B,left:W})}return S}},8529:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(57211);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,n,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,u=!1;try{for(i=i.call(t);!(a=(r=i.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,n=t}finally{try{a||null==i.return||i.return()}finally{if(u)throw n}}return o}}(t,e)||(0,n.Z)(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]);
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.