1(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[11841],{202939(e,t,r){"use strict";r.d(t,{KpiGraph:()=>I});var n=r(205544),a=(r(218111),r(981148),r(607588),r(161701),r(692584)),o=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 d=r(634164),h=r(427443),m=r(34656),v=r(238734),f=r(601812),y=r(7695);const b=e=>{let t=e.value,r=e.valuesType;return(0,a.g)(t)?"-":"percent"===r?(0,v._)(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,o=e.rank,l=e.servicesCount,s=e.valuesType;const i=(0,h.G)().isSmScreen,c=b({value:r,valuesType:s}),p=b({value:n,valuesType:s}),v=(e=>{let t=e.value,r=e.previousValue,n=e.valuesType;const o=(0,a.g)(t)||(0,a.g)(r)?0:t-r;return{value:b({value:Math.abs(o),valuesType:n}),isUp:o>=0}})({value:r,previousValue:n,valuesType:s}),f=v.value,y=v.isUp,j="flex items-center flex-col text-center",w=(0,d.$)("JHjC2","mb-4 text-share-text-2");return(0,u.jsx)("div",{className:(0,d.$)("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)(m.B,{with:i?null:(0,u.jsx)("div",{className:"flex items-start justify-between pb-8"}),children:[t?(0,u.jsx)("div",{className:(0,d.$)(j,"w-80 self-center"),children:(0,u.jsx)("div",{className:w,children:t})}):null,(0,u.jsxs)("div",{className:(0,d.$)(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,d.$)("ml-8 mr-4 inline-block",y?["WP3Vi","text-share-positive"]:["sSVJh","text-share-negative"]),children:f})]})]}),(0,u.jsxs)("div",{className:(0,d.$)(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,d.$)(x,j),children:[(0,u.jsx)("div",{className:w,children:l?`Rank (of ${l} services)`:"Rank"}),(0,u.jsx)("div",{className:g,children:o})]})]})})};var w=r(883799),T=r(286329),S=r(353986),F=(r(18237),r(945053)),M=r(575197),k=r(922057),V=r(954485);const A=["chart"],C=["#FF7200","#1A98FF"],N=e=>function(){const t=this.color,r=this.series,n=this.y;let a=(0,y.F)(n);return"currency"===e&&(a=(0,f.w)(n)),"percent"===e&&(a=(0,v._)(n)),`<span style="color: ${t}">â </span>${r.name}: <b>${a}</b><br/>`},O=e=>{let t=e.valuesType,r=e.isSplitTooltip,n=void 0!==r&&r;const a=(0,V.QJ)({height:300}),o=a.chart;return{...(0,S.A)(a,A),chart:{...o,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:C}},$=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 a=r.length-1,o=r[a][1],l=r.length>30?r[a-30+1][1]:null;return{...e,currentValues:{...e.currentValues,[n]:o},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,d=e.isSplitTooltip;const h=(0,l.useState)($({chartModels:i})),m=(0,n.A)(h,2),v=m[0],f=m[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,o=e.name;if(r>30){var l;const e=null===(l=n[r-30+1])||void 0===l?void 0:l.y;(0,a.g)(e)||f(t=>({...t,prevValues:{...t.prevValues,[o]:e}}))}else f(e=>({...e,prevValues:{...e.prevValues,[o]:null}}));const s=null===(t=n[r])||void 0===t?void 0:t.y;(0,a.g)(s)||f(e=>({...e,currentValues:{...e.currentValues,[o]: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,a)=>({name:t[a].name,rank:t[a].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:d}),series:x}),[x,s,d]),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=v.currentValues[e.name])&&void 0!==t?t:null,label:n,previousValue:null!==(r=v.prevValues[e.name])&&void 0!==r?r:null,rank:e.rank,servicesCount:c,valuesType:s},e.name)}),(0,u.jsx)(o.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 a={navigator:{enabled:!1},exporting:{enabled:!1},scrollbar:{enabled:!1},rangeSelector:{enabled:!1},credits:{enabled:!1},tooltip:{enabled:!1}},o=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:{fontSize:"10px",fontWeight:"bold"},y:-23,lineColor:"var(--sa-chart-flag-plot-line-color)",fillColor:"var(--sa-chart-flag-plot-fill-color)"};r.d(t,["E6",0,a,"QJ",0,function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).height;return{...a,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,a=t.numerator,o=t.denominator;const l=new Date(n).getTime();return l<r?e:[...e,{text:`${a}-for-${o}`,title:"S",x:l}]},[])},"jW",0,o,"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:{...o({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 a=new Intl.NumberFormat("en-US",n.h1).format;r.d(t,["w",0,a])},575197(e,t,r){"use strict";var n=r(721465);const a=new Intl.NumberFormat("en-US",n.OS).format;r.d(t,["Z",0,a])},945053(e,t,r){"use strict";var n=r(721465);const a=new Intl.NumberFormat("en-US",n.k5).format;r.d(t,["f",0,e=>a(e/100)])},238734(e,t,r){"use strict";var n=r(721465);const a=new Intl.NumberFormat("en-US",n.Xq).format;r.d(t,["_",0,e=>a(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 a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.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})}
1,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 a(e){return function(e){if(Array.isArray(e))return o(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 o(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)?o(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 o(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)(),o=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?o.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(o.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&&o.current){var n;(n=o.current).update.apply(n,[e.options].concat(a(e.updateArgs||[!0,!0])))}else t()}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),c(function(){return function(){o.current&&(o.current.destroy(),o.current=null)}},[]),Object(s.useImperativeHandle)(t,function(){return{get chart(){return o.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.