1(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[11841],{202939(e,t,r){"use strict";r.d(t,{KpiGraph:()=>I});var n=r(205544),o=(r(218111),r(981148),r(607588),r(161701),r(692584)),a=r(785316),l=r(296540),s=r(97011),i=r(807057),c=r(663981),u=r(474848);const p=e=>{let t=e.chartModels;return(null==t?void 0:t[0].name)===i.KM.freeTrialConversionRate?(0,u.jsxs)(u.Fragment,{children:["You can turn on free trials by clicking"," ",(0,u.jsx)(c.N,{href:s.ZT["account.marketPlaceSettings"],rootClassName:"ml-4",children:"here"})]}):(0,u.jsx)(u.Fragment,{children:"No Data Available"})};var h=r(634164),d=r(427443),v=r(34656),m=r(238734),f=r(601812),y=r(7695);const b=e=>{let t=e.value,r=e.valuesType;return(0,o.g)(t)?"-":"percent"===r?(0,m._)(t):"currency"===r?(0,f.w)(t):(0,y.F)(t)};var g="x6Sev",x="ZZ3TM";const j=e=>{let t=e.label,r=e.currentValue,n=e.previousValue,a=e.rank,l=e.servicesCount,s=e.valuesType;const i=(0,d.G)().isSmScreen,c=b({value:r,valuesType:s}),p=b({value:n,valuesType:s}),m=(e=>{let t=e.value,r=e.previousValue,n=e.valuesType;const a=(0,o.g)(t)||(0,o.g)(r)?0:t-r;return{value:b({value:Math.abs(a),valuesType:n}),isUp:a>=0}})({value:r,previousValue:n,valuesType:s}),f=m.value,y=m.isUp,j="flex items-center flex-col text-center",w=(0,h.$)("JHjC2","mb-4 text-share-text-2");return(0,u.jsx)("div",{className:(0,h.$)("mb-10 flex items-start justify-between overflow-x-auto bg-white px-10 py-4 md:px-32 dark:bg-black-90",t&&"KJGc4"),children:(0,u.jsxs)(v.B,{with:i?null:(0,u.jsx)("div",{className:"flex items-start justify-between pb-8"}),children:[t?(0,u.jsx)("div",{className:(0,h.$)(j,"w-80 self-center"),children:(0,u.jsx)("div",{className:w,children:t})}):null,(0,u.jsxs)("div",{className:(0,h.$)(x,j),children:[(0,u.jsx)("div",{className:w,children:"Current"}),(0,u.jsxs)("div",{className:g,children:[c,"-"===c?null:(0,u.jsx)("div",{className:(0,h.$)("ml-8 mr-4 inline-block",y?["WP3Vi","text-share-positive"]:["sSVJh","text-share-negative"]),children:f})]})]}),(0,u.jsxs)("div",{className:(0,h.$)(x,j),children:[(0,u.jsx)("div",{className:w,children:"Last Month"}),(0,u.jsx)("div",{className:g,children:p})]}),(0,u.jsxs)("div",{className:(0,h.$)(x,j),children:[(0,u.jsx)("div",{className:w,children:l?`Rank (of ${l} services)`:"Rank"}),(0,u.jsx)("div",{className:g,children:a})]})]})})};var w=r(883799),T=r(286329),S=r(353986),F=(r(18237),r(945053)),M=r(575197),k=r(922057),C=r(954485);const V=["chart"],A=["#FF7200","#1A98FF"],N=e=>function(){const t=this.color,r=this.series,n=this.y;let o=(0,y.F)(n);return"currency"===e&&(o=(0,f.w)(n)),"percent"===e&&(o=(0,m._)(n)),`<span style="color: ${t}">â </span>${r.name}: <b>${o}</b><br/>`},O=e=>{let t=e.valuesType,r=e.isSplitTooltip,n=void 0!==r&&r;const o=(0,C.QJ)({height:300}),a=o.chart;return{...(0,S.A)(o,V),chart:{...a,style:{fontFamily:k.F2},spacing:[5,0,15,1]},xAxis:{type:"datetime",dateTimeLabelFormats:{minute:{main:"%l %p"},hour:{main:"%b %e"},day:{main:"%b %e"},month:{main:"%b '%y"},year:{main:"%Y"}},tickColor:"var(--sa-chart-axis-tick-color)",lineColor:"var(--sa-chart-axis-line-color)",labels:{style:{color:"var(--sa-chart-axis-label-color)"}}},title:null,yAxis:{title:{style:{color:"var(--sa-chart-axis-label-color)"}},labels:{formatter(){return((e,t)=>"percent"===e?(0,F.f)(t):"currency"===e?(0,M.Z)(t):(0,y.F)(t))(t,this.value)},style:{color:"var(--sa-chart-axis-label-color)"}},gridLineColor:"var(--sa-chart-axis-line-color)"},legend:{enabled:!1},tooltip:{enabled:!0,pointFormatter:N(t),split:n},colors:A}},$=e=>{let t=e.chartModels;return t?t.reduce((e,t)=>{let r=t.series,n=t.name;if(0===r.length)return e;const o=r.length-1,a=r[o][1],l=r.length>30?r[o-30+1][1]:null;return{...e,currentValues:{...e.currentValues,[n]:a},prevValues:{...e.prevValues,[n]:l}}},{currentValues:{},prevValues:{}}):{currentValues:{},prevValues:{}}},I=e=>{let t=e.title,r=e.tooltipText,s=e.valuesType,i=e.chartModels,c=e.servicesCount,h=e.isSplitTooltip;const d=(0,l.useState)($({chartModels:i})),v=(0,n.A)(d,2),m=v[0],f=v[1],y=(0,l.useMemo)(()=>({title:"",type:"popover",message:r}),[r]),b=(0,l.useCallback)(e=>{let t=e.target;if(!t)return;const r=t.index;
1t.series.chart.series.forEach(e=>{var t;let n=e.data,a=e.name;if(r>30){var l;const e=null===(l=n[r-30+1])||void 0===l?void 0:l.y;(0,o.g)(e)||f(t=>({...t,prevValues:{...t.prevValues,[a]:e}}))}else f(e=>({...e,prevValues:{...e.prevValues,[a]:null}}));const s=null===(t=n[r])||void 0===t?void 0:t.y;(0,o.g)(s)||f(e=>({...e,currentValues:{...e.currentValues,[a]:n[r].y}}))})},[]),g=(0,l.useCallback)(()=>{f($({chartModels:i}))},[i]),x=(0,l.useMemo)(()=>i?(e=>{let t=e.chartModels,r=e.onMouseHover,n=e.onMouseOut;return t.map(e=>e.series.map(e=>({x:e[0],y:e[1]}))).map((e,o)=>({name:t[o].name,rank:t[o].rank,data:e,events:{mouseOut:n},point:{events:{mouseOver:r}}}))})({chartModels:i,onMouseHover:b,onMouseOut:g}):[],[i,b,g]),S=(0,l.useMemo)(()=>({...O({valuesType:s,isSplitTooltip:h}),series:x}),[x,s,h]),F=x.every(e=>0===e.data.length);return(0,u.jsxs)(T.Z,{extraLayoutClassName:"e5mAF",children:[(0,u.jsx)(T.Z.Title,{tooltip:y,children:t}),F?(0,u.jsx)("div",{className:"my-16 flex items-center justify-center text-2x-large-2-r",children:(0,u.jsx)(p,{chartModels:i})}):(0,u.jsxs)(u.Fragment,{children:[x.map(e=>{var t,r;const n=x.length>1?e.name:null;return(0,u.jsx)(j,{currentValue:null!==(t=m.currentValues[e.name])&&void 0!==t?t:null,label:n,previousValue:null!==(r=m.prevValues[e.name])&&void 0!==r?r:null,rank:e.rank,servicesCount:c,valuesType:s},e.name)}),(0,u.jsx)(a.HighchartsReact,{highcharts:w.I,options:S})]})]})}},883799(e,t,r){"use strict";r.d(t,{I:()=>n.A}),r(638829),r(521361),r(713084),r(678811),r(569998),r(702752);var n=r(306306)},922057(e,t,r){"use strict";const n=String('\n-apple-system,\nBlinkMacSystemFont,\n"Roboto",\nArial,\n"Segoe UI",\nsans-serif,\n"Apple Color Emoji",\n"Segoe UI Emoji",\n"Segoe UI Symbol"\n');r.d(t,["AK",0,[10,0,0,0],"F2",0,n,"FP",0,{fontSize:"10px",color:"var(--sa-chart-axis-label-color)"}])},954485(e,t,r){"use strict";r(218111),r(22489),r(18237),r(962953);var n=r(68414);const o={navigator:{enabled:!1},exporting:{enabled:!1},scrollbar:{enabled:!1},rangeSelector:{enabled:!1},credits:{enabled:!1},tooltip:{enabled:!1}},a=function(){return{tooltip:{xDateFormat:"%m/%d/%Y %I:%M %p",valueDecimals:2,headerFormat:"<small>{point.key} ET</small><br>",pointFormatter:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).pointFormatter||null,style:{color:"var(--sa-chart-tooltip-color)",fontSize:"12px"},backgroundColor:"var(--sa-chart-tooltip-bg-color)"}}},l={shape:"squarepin",height:11,width:11,style:{color:"var(--sa-chart-flag-plot-text-color)",fontSize:"10px",fontWeight:"bold"},y:-23,lineColor:"var(--sa-chart-flag-plot-line-color)",fillColor:"var(--sa-chart-flag-plot-fill-color)",states:{hover:{lineColor:"var(--sa-chart-flag-plot-hover-line-color)",fillColor:"var(--sa-chart-flag-plot-hover-fill-color)"}}};r.d(t,["E6",0,o,"QJ",0,function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).height;return{...o,chart:{backgroundColor:"var(--sa-chart-bg-color)",spacing:[0,0,15,0],height:e||215,alignTicks:!1,zooming:{mouseWheel:!1}}}},"dV",0,(e,t)=>{const r=new Date((0,n.v)(0,0,t.yearsAgo)).getTime();return e.reduce((e,t)=>{let n=t.date,o=t.numerator,a=t.denominator;const l=new Date(n).getTime();return l<r?e:[...e,{text:`${o}-for-${a}`,title:"S",x:l}]},[])},"jW",0,a,"lu",0,()=>l,"m_",0,function(){return{yAxis:{labels:{enabled:!1}},xAxis:{labels:{enabled:!1}}}},"tJ",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pointFormatter,r=e.override;return{tooltip:{...a({pointFormatter:t}).tooltip,split:!1,shared:!0,...r}}},"wZ",0,function(){return{time:{timezone:void 0}}},"yB",0,(e,t)=>{const r=Math.round(e.length/t);return r<1?e:e.filter((n=r,(e,t)=>t%n===0));var n}])},68414(e,t,r){"use strict";r.d(t,["v",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n=new Date;return n.setDate(n.getDate()-e),n.setMonth(n.getMonth()-t),n.setFullYear(n.getFullYear()-r),`${n.getMonth()+1}/${n.getDate()}/${n.getFullYear()}`}])},601812(e,t,r){"use strict";var n=r(721465);const o=new Intl.NumberFormat("en-US",n.h1).format;r.d(t,["w",0,o])},575197(e,t,r){"use strict";var n=r(721465);const o=new Intl.NumberFormat("en-US",n.OS).format;
1r.d(t,["Z",0,o])},945053(e,t,r){"use strict";var n=r(721465);const o=new Intl.NumberFormat("en-US",n.k5).format;r.d(t,["f",0,e=>o(e/100)])},238734(e,t,r){"use strict";var n=r(721465);const o=new Intl.NumberFormat("en-US",n.Xq).format;r.d(t,["_",0,e=>o(e/100)])},785316(e,t,r){var n;"undefined"!=typeof self&&self,e.exports=(n=r(296540),function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"HighchartsReact",function(){return u});var s=r(1),i=r.n(s),c="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,u=Object(s.memo)(Object(s.forwardRef)(function(e,t){var r=Object(s.useRef)(),a=Object(s.useRef)(),u=Object(s.useRef)(e.constructorType),p=Object(s.useRef)(e.highcharts
1);return c(function(){function t(){var t=e.highcharts||"object"===("undefined"==typeof window?"undefined":l(window))&&window.Highcharts,n=e.constructorType||"chart";t?t[n]?e.options?a.current=t[n](r.current,e.options,e.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(a.current){if(!1!==e.allowChartUpdate)if(e.constructorType!==u.current||e.highcharts!==p.current)u.current=e.constructorType,p.current=e.highcharts,t();else if(!e.immutable&&a.current){var n;(n=a.current).update.apply(n,[e.options].concat(o(e.updateArgs||[!0,!0])))}else t()}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),c(function(){return function(){a.current&&(a.current.destroy(),a.current=null)}},[]),Object(s.useImperativeHandle)(t,function(){return{get chart(){return a.current},container:r}},[]),i.a.createElement("div",n({},e.containerProps,{ref:r}))}));t.default=u},function(e,t){e.exports=n}]))}}]);
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.