1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c09fef4a-ed51-4fdf-9ba1-4ac2ecec4938",e._sentryDebugIdIdentifier="sentry-dbid-c09fef4a-ed51-4fdf-9ba1-4ac2ecec4938")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8878],{70442:(e,t,i)=>{i.d(t,{K:()=>eG,q:()=>eN});var n,s=i(26514),l=i(75834),o=i(17169),a=i(65782),r=i(19487),d=i(75563),c=i(17235),u=i(26097),x=i(62030),p=i(55951),h=i(21450),f=i(29717),g=i(362),w=i(92973),m=i(44403),j=i(32791),y=i(1883),v=i(27034);let b=(0,l.createContext)(null);function C(){let e=(0,l.useContext)(b);if(null===e)throw Error("`useChart` must be nested inside an `ChartProvider`.");return e}let I=()=>{let{config:e,data:t}=C(),{xFill:i,chartWidth:n,chartHeight:l,paddingTop:o,paddingLeft:a,tickHeight:r}=e;return(0,s.jsxs)(k,{children:[(0,s.jsx)(L,{x1:a,y1:o-r,x2:a,y2:o+r+l}),(0,s.jsx)(L,{x1:a+n,y1:o-r,x2:a+n,y2:o+r+l}),(0,s.jsx)(D,{x1:a,y1:o+l,x2:a+n,y2:o+l}),null!==t.viewsLimit&&(0,s.jsx)(A,{x1:a,y1:o,x2:a+n,y2:o}),(0,s.jsx)(P,{x1:a+i,y1:o-r,x2:a+i,y2:o+r+l})]})},k=u.default.g.withConfig({componentId:"sc-d3e66c8f-0"})(["stroke-width:1px;"]),L=u.default.line.withConfig({componentId:"sc-d3e66c8f-1"})(["stroke:",";stroke-dasharray:5px,3px;stroke-linecap:round;"],e=>{let{theme:t}=e;return t.colors.success}),A=u.default.line.withConfig({componentId:"sc-d3e66c8f-2"})(["stroke:",";"],e=>{let{theme:t}=e;return t.colors.alert}),D=u.default.line.withConfig({componentId:"sc-d3e66c8f-3"})(["stroke:",";stroke-dasharray:4px,3px;"],e=>{let{theme:t}=e;return t.colors.gray10}),P=u.default.line.withConfig({componentId:"sc-d3e66c8f-4"})(["stroke:",";"],e=>{let{theme:t}=e;return t.colors.black});var T=i(56198),V=i(91306);let $=e=>{let{x:t,y:i,widthPointArea:n,tooltip:o,opacityPoint:a=1}=e,{config:r}=C(),{tickHeight:d,chartHeight:c,paddingTop:u}=r,[p,h]=(0,l.useState)(!1);return(0,s.jsxs)(E,{onMouseOver:()=>h(!0),onMouseLeave:()=>h(!1),children:[(0,s.jsx)(S,{x1:t,y1:u-d,x2:t,y2:u+c+d}),(0,s.jsx)(x.m_,{content:o,isOpen:p,children:(0,s.jsx)(B,{cx:t,cy:i,r:"3",$opacityPoint:a})}),(0,s.jsx)(_,{x:t-n/2,y:u-d,width:n,height:c+2*d})]})},S=u.default.line.withConfig({componentId:"sc-6fd9f27e-0"})(["stroke-width:1px;stroke:none;stroke-dasharray:4px,4px;"]),_=u.default.rect.withConfig({componentId:"sc-6fd9f27e-1"})(["opacity:0;"]),B=u.default.circle.withConfig({componentId:"sc-6fd9f27e-2"})(["opacity:",";"],e=>{let{$opacityPoint:t}=e;return t}),E=u.default.g.withConfig({componentId:"sc-6fd9f27e-3"})(["cursor:pointer;&:hover{","{stroke:",";}","{fill:",";stroke:",";stroke-width:1px;}}"],S,e=>{let{theme:t}=e;return t.colors.gray10},B,e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.black}),M=e=>{let{date:t,dailyViews:i,accumulatedViews:n,isForecast:l=!1,isBlocked:o=!1}=e,{data:a}=C();return(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{children:(0,x._Q)(t)}),(0,s.jsxs)(G,{children:[(0,s.jsxs)(N,{children:["Daily views",l&&" (forecast)"]}),(0,s.jsx)(O,{children:(0,x.a)(null!==a.viewsLimit?Math.min(i,a.viewsLimit):i)})]}),(0,s.jsxs)(G,{children:[(0,s.jsxs)(N,{children:["Accumulated views",l&&" (forecast)"]}),(0,s.jsx)(O,{_isBlocked:o,children:(0,x.a)(null!==a.viewsLimit?Math.min(n,a.viewsLimit):n)})]})]})},H=u.default.div.withConfig({componentId:"sc-52298b23-0"})(["display:flex;flex-direction:column;gap:4px;"]),R=u.default.div.withConfig({componentId:"sc-52298b23-1"})(["align-self:flex-start;"]),G=u.default.div.withConfig({componentId:"sc-52298b23-2"})(["display:flex;justify-content:space-between;align-items:center;gap:8px;"]),N=u.default.span.withConfig({componentId:"sc-52298b23-3"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.white}),O=u.default.span.withConfig({componentId:"sc-52298b23-4"})(["",""],e=>{let{_isBlocked:t=!1,theme:i}=e;return t&&`color: ${i.colors.alert}`}),W=e=>{let{firstPoint:[t,i]}=e,{config:n,data:l}=C(),{xFill:o,iconBlockedWidth:a,iconBlockedY:r,paddingTop:d,paddingLeft:c,chartWidth:u}=n,x=(0,T.al)();if(!l.forecast)return null;let p=c+o+l.forecast.daysBeforeBlocked*u/l.countDays;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(q,{x1:t,y1:i,x2:p,y2:d}),(0,s.jsx)(U,{x:p-7,y:r,width:a}),!x&&(0,s.jsx)($,{x:p,y:d,widthPointArea:o/l.viewsDetailCount.length,opacityPoint:.3,tooltip:(0,s.jsx)(M,{isBlocked:!0,isForecast:!0,date:l.forecast.date,dailyViews:l.forecast.dailyViewsBlocked,accumulatedViews:l.forecast.accumulatedViewsBlocked})})]})},q=u.default.line.withConfig({componentId:"sc-3df72346-0"})(["stroke-width:2px;stroke:url('#border-gradient');opacity:0.3;stroke-dasharray:5px,3px;"]),U=(0,u.default)(V.A).withConfig({componentId:"sc-3df72346-1"})(["fill:",";stroke:none;"],e=>{let{theme:t}=e;return(0,x.oy)(t.colors.alert,.3)}),z=()=>{let{config:e,data:t,maxViews:i}=C(),{xFill:n,chartWidth:l,chartHeight:o,paddingTop:a,paddingLeft:r}=e,d=(0,T.al)(),c=t.viewsDetailCount.map((e,n)=>{let s=r+n*l/t.countDays,d=o-e.accumulatedViews*o/i;return{...e,x:s,y:d>0?d+a:a}});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Q,{d:`M${r},${a+o} ${c.reduce((e,t)=>
1{let{x:i,y:n}=t;return e+`L${i},${n} `},"")} L${r+n},${a+o}`}),(0,s.jsxs)(F,{children:[(0,s.jsx)(K,{points:c.reduce((e,t)=>{let{x:i,y:n}=t;return e+`${i},${n} `},"")}),t.isWarning&&(0,s.jsx)(W,{firstPoint:[c[c.length-1].x,c[c.length-1].y]}),!d&&c.map(e=>(0,s.jsx)($,{x:e.x,y:e.y,widthPointArea:n/t.viewsDetailCount.length,tooltip:(0,s.jsx)(M,{date:e.date,dailyViews:e.dailyViews,accumulatedViews:e.accumulatedViews})},`${e.x},${e.y}`))]})]})},F=u.default.g.withConfig({componentId:"sc-409f1910-0"})(["fill:url('#border-gradient');stroke:url('#border-gradient');"]),Q=u.default.path.withConfig({componentId:"sc-409f1910-1"})(["fill:url('#area-gradient');"]),K=u.default.polyline.withConfig({componentId:"sc-409f1910-2"})(["fill:none;stroke-width:2px;"]),X=()=>{let{config:e}=C(),{chartHeight:t,paddingTop:i,paddingLeft:n}=e;return(0,s.jsxs)("linearGradient",{id:"border-gradient",x1:n,y1:i+t,x2:n,y2:i,gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:x.w4.colors.success}),(0,s.jsx)("stop",{offset:"50%",stopColor:x.w4.colors.success}),(0,s.jsx)("stop",{offset:"75%",stopColor:x.w4.colors.warning}),(0,s.jsx)("stop",{offset:"100%",stopColor:x.w4.colors.alert})]})};var J=i(81259),Y=i.n(J);let Z=()=>{let{config:e,data:t,maxViews:i}=C(),{xFill:n,paddingTop:l,paddingLeft:o}=e,a=Y()([{color:(0,x.oy)(x.w4.colors.success,.1),pos:0},{color:(0,x.oy)(x.w4.colors.success,.1),pos:.5},{color:(0,x.oy)(x.w4.colors.warning,.1),pos:.75},{color:(0,x.oy)(x.w4.colors.alert,.1),pos:1}]),r=t.viewsDetailCount[t.viewsDetailCount.length-1].accumulatedViews/i;return(0,s.jsx)("linearGradient",{id:"area-gradient",x1:o,y1:l,x2:o+n,y2:l,gradientUnits:"userSpaceOnUse",children:r>.5?t.viewsDetailCount.map((e,n)=>{let l=Math.min(e.accumulatedViews/i,1);return(0,s.jsx)("stop",{offset:(n+.5)/t.viewsDetailCount.length,stopColor:a.rgbAt(l).toString()},`${l},${n}`)}):(0,s.jsx)("stop",{offset:"0",stopColor:(0,x.oy)(x.w4.colors.success,.1)})})},ee=()=>{let{config:e,data:t,maxViews:i}=C(),n=(0,T.al)(),{paddingTop:l,chartHeight:o,scales:a}=e,r=l+o+a.y.paddingTop,d=((e,t,i)=>{let{paddingLeft:n,chartWidth:s,xFill:l,scales:o}=e,a=n-o.x.textLength/2,r=a+s;if(t||i<=1)return{start:a,fill:!1,end:r};let d=a+l;if(a+o.x.textLength+o.x.minimumGap>d){let e=a+o.x.textLength-d;return{start:a-(e+o.x.minimumGap)/2,fill:d+(e+o.x.minimumGap)/2,end:r}}if(d+o.x.textLength+o.x.minimumGap>r){let e=d+o.x.textLength-r;return{start:a,fill:d-(e+o.x.minimumGap)/2,end:r+(e+o.x.minimumGap)/2}}return{start:a,fill:d,end:r}})(e,!!n,t.viewsDetailCount.length);return(0,s.jsxs)(et,{children:[(0,s.jsxs)("g",{children:[(0,s.jsx)(ei,{textLength:a.x.textLength,x:d.start,y:r,children:(0,x._Q)(t.viewsCountingPeriod.beginsAt)}),d.fill&&(0,s.jsx)(en,{textLength:a.x.textLength,x:d.fill,y:r,children:(0,x._Q)(t.viewsDetailCount[t.viewsDetailCount.length-1].date)}),(0,s.jsx)(ei,{textLength:a.x.textLength,x:d.end,y:r,children:(0,x._Q)(t.viewsCountingPeriod.endsAt)})]}),(0,s.jsx)("g",{children:a.y.intervals.map(e=>(0,s.jsx)(es,{x:a.y.paddingLeft,y:l+a.y.offset+o*(5-e)/5,children:(0,x.M1)(i*e/5)},i*e/5))})]})},et=u.default.g.withConfig({componentId:"sc-1dc01547-0"})(["",";"],e=>{let{theme:t}=e;return t.font.caption}),ei=u.default.text.withConfig({componentId:"sc-1dc01547-1"})(["fill:",";"],e=>{let{theme:t}=e;return t.colors.success}),en=u.default.text.withConfig({componentId:"sc-1dc01547-2"})(["fill:",";"],e=>{let{theme:t}=e;return t.colors.black}),es=u.default.text.withConfig({componentId:"sc-1dc01547-3"})(["fill:",";"],e=>{let{theme:t}=e;return t.colors.gray50});var el=i(10409);let eo=()=>{let{config:e,data:t}=C(),{chartWidth:i,paddingLeft:n,iconBlockedWidth:l,iconBlockedY:o}=e,a=t.viewsDetailCount.findIndex(e=>null!==t.viewsLimit&&e.accumulatedViews>=t.viewsLimit);return a?(0,s.jsx)(el.Xd,{appAlias:t.app.alias,children:(0,s.jsx)("g",{children:(0,s.jsx)(ea,{x:a*i/t.countDays+n-l/2,y:o,width:l})})}):null},ea=(0,u.default)(h.A).withConfig({componentId:"sc-441563d5-0"})(["fill:",";stroke:none;vertical-align:text-bottom;display:inline-block;cursor:pointer;"],e=>{let{theme:t}=e;return t.colors.alert}),er={chartHeight:190,iconBlockedWidth:16,tickHeight:8,paddingTop:40,paddingBottom:54,paddingLeft:74,paddingRight:54,scales:{x:{textLength:38,minimumGap:12},y:{paddingTop:22,offset:4,paddingLeft:22,intervals:[5,4,3,2,1,0]}}},ed=e=>{let{width:t,data:i}=e,n=Math.abs(t-(er.paddingRight+er.paddingLeft)),l=er.paddingBottom+er.paddingTop+er.chartHeight,o={...er,chartWidth:n,xFill:(i.viewsDetailCount.length-1)*n/i.countDays,iconBlockedY:-l/2+28},a=null!==i.viewsLimit?i.viewsLimit:1e6*Math.ceil(5*i.viewsCount/1e6)||1e6;return(0,s.jsx)(b.Provider,{value:{config:o,data:i,maxViews:a},children:(0,s.jsxs)(ec,{children:[i.isBlocked&&(0,s.jsx)(eo,{}),(0,s.jsx)(ee,{}),(0,s.jsx)(X,{}),(0,s.jsx)(Z,{}),(0,s.jsx)(I,{}),(0,s.jsx)(z,{})]})})},ec=u.default.svg.withConfig({componentId:"sc-e19b8b19-0"})(["width:100%;height:274px;"]),eu=e=>
1{let{statistics:t,minusMonths:i,prevPeriod:n,nextPeriod:o}=e,[a,r]=(0,l.useState)(0),[d]=(0,j.y)(e=>r(e.width),{resize:!0}),[c,u]=(0,l.useState)(!0),[p,h]=(0,l.useState)(0);(0,l.useEffect)(()=>{h(a),u(!1)},[a]);let f=(0,x._Q)(t.viewsCountingPeriod.beginsAt,!0),g=(0,x._Q)(t.viewsCountingPeriod.endsAt,!0);return(0,s.jsxs)(ex,{children:[(0,s.jsxs)(ep,{children:[(0,s.jsx)(x.K0,{disabled:t.isEndCountingPeriod,onClick:n,icon:y.A}),(0,s.jsxs)(eh,{children:[f," - ",g]}),(0,s.jsx)(x.K0,{disabled:0===i,onClick:o,icon:v.A})]}),(0,s.jsx)(ef,{ref:d,children:!c&&(0,s.jsx)(ed,{data:t,width:p})})]})},ex=u.default.div.withConfig({componentId:"sc-9cfeadd2-0"})(["width:100%;height:336px;border-radius:4px;border:1px solid ",";box-sizing:border-box;"],e=>{let{theme:t}=e;return t.colors.gray10}),ep=u.default.div.withConfig({componentId:"sc-9cfeadd2-1"})(["display:flex;justify-content:flex-end;align-items:center;gap:4px;padding:10px;background-color:",";"],e=>{let{theme:t}=e;return t.colors.gray5}),eh=u.default.div.withConfig({componentId:"sc-9cfeadd2-2"})(["",";"],e=>{let{theme:t}=e;return t.font.text}),ef=u.default.div.withConfig({componentId:"sc-9cfeadd2-3"})([""]);var eg=i(2483),ew=i(85398),em=i(5332),ej=i(76913),ey=i(62641),ev=i(20181),eb=i(80787);let eC=e=>{let{widget:t,isBlocked:i,appAlias:n,viewsLimit:l}=e,{pid:o,name:a,views:r,percentPerLimit:c,isDeleted:u,visibility:p}=t,f=(0,ew.jE)(),g=(0,T.al)(),{mutate:w}=(0,d.fk)(o,{onSuccess:e=>{let{visibility:t}=e;f.invalidateQueries({queryKey:[ev.df]}),f.invalidateQueries({queryKey:[eb.aem]}),t===eb.nt8.VISIBLE&&eg.oR.success(`Widget "${a}" is now visible on your website.`,{icon:(0,s.jsx)(em.A,{})}),t===eb.nt8.HIDDEN&&eg.oR.success(`Widget "${a}" was hidden from your website.`,{icon:(0,s.jsx)(ej.A,{})})}}),m=null!==c&&`${Math.min(Math.round(100*c),100)}%`,j=null!==l?Math.min(r,l):r,y=(0,x.M1)(j),v=(0,x.a)(j);return(0,s.jsxs)(x.TR,{children:[(0,s.jsx)(x.TD,{children:(0,s.jsxs)(eI,{children:[(0,s.jsxs)(ek,{children:[a,u&&(0,s.jsxs)(s.Fragment,{children:[" ","(Deleted)\xa0\xa0",(0,s.jsx)(x.Ck,{width:300,content:"This widget views is a part of overall stats in current period. It will be deleted from list in next period"})]})]}),i&&(0,s.jsx)(el.Xd,{appAlias:n,children:(0,s.jsx)(eL,{size:16,component:h.A,fill:"alert"})}),p===eb.nt8.HIDDEN&&(0,s.jsx)(x.m_,{content:"This widget is hidden on your website",openDelay:0,children:(0,s.jsx)(eL,{size:16,component:ej.A,fill:"black"})})]})}),(0,s.jsx)(x.TD,{children:g&&m?`${y} / ${m}`:v}),m&&!g&&(0,s.jsx)(x.TD,{children:m}),(0,s.jsx)(x.TD,{children:(0,s.jsxs)(x.tz,{disabledButton:u,children:[(0,s.jsx)(x.VJ,{href:`/widget/${o}`,target:"_blank",rightIcon:ey.A,children:"View Widget"}),p===eb.nt8.HIDDEN&&(0,s.jsx)(x.VJ,{onClick:()=>w({visibility:eb.nt8.VISIBLE}),rightIcon:em.A,children:"Show on Website"}),p===eb.nt8.VISIBLE&&(0,s.jsx)(x.VJ,{onClick:()=>w({visibility:eb.nt8.HIDDEN}),rightIcon:ej.A,children:"Hide from Website"})]})})]},o)},eI=u.default.div.withConfig({componentId:"sc-3da536f5-0"})(["display:inline-flex;width:100%;align-items:center;gap:5px;"]),ek=u.default.span.withConfig({componentId:"sc-3da536f5-1"})(["",";color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 25px);display:flex;align-items:center;"],e=>{let{theme:t}=e;return t.font.title4},e=>{let{theme:t}=e;return t.colors.black}),eL=(0,u.default)(x.In).withConfig({componentId:"sc-3da536f5-2"})(["vertical-align:text-bottom;display:inline-block;cursor:pointer;"]),eA=e=>{let{widgets:t,isBlocked:i,appAlias:n,viewsLimit:l}=e,o=(0,T.al)();return(0,s.jsxs)(x.XI,{children:[(0,s.jsx)(x.D1,{children:(0,s.jsxs)(x.TR,{children:[(0,s.jsx)(x.TH,{_width:o?"50%":"66%",children:"Widget name"}),(0,s.jsx)(x.TH,{children:"Views"}),!o&&null!==l&&(0,s.jsx)(x.TH,{children:"Percent Per Limit"}),(0,s.jsx)(x.TH,{})]})}),(0,s.jsx)(x.vc,{children:t.map(e=>(0,s.jsx)(eC,{widget:e,isBlocked:i,viewsLimit:l,appAlias:n},e.pid))})]})},eD=e=>{let{appAlias:t,isBlocked:i,minusMonths:n,viewsLimit:o}=e,[a,r]=(0,l.useState)(1);(0,l.useEffect)(()=>{r(1)},[t]);let{data:c,isPending:u}=(0,d.$k)({appAlias:t,minusMonths:n,page:a,itemsPerPage:10});return u?(0,s.jsx)(x.aH,{}):c?(0,s.jsxs)(eP,{children:[c.payload.length>0&&(0,s.jsx)(eA,{viewsLimit:o,appAlias:t,isBlocked:i,widgets:c.payload}),c.meta.lastPage>1&&(0,s.jsx)(x.dK,{page:a,count:c.meta.lastPage,onPageChange:r})]}):null},eP=u.default.div.withConfig({componentId:"sc-3d15610a-0"})(["display:flex;flex-direction:column;gap:20px;justify-content:center;"]),eT=e=>{let{appAlias:t}=e,{beacon:i}=(0,w.U)(),[n,o]=(0,l.useState)(0);(0,l.useEffect)(()=>{o(0)},[t]);let{data:a,isPending:r}=(0,d.L4)({appAlias:t,minusMonths:n}),{data:c,isPending:u}=(0,d.gL)(t,{enabled:!!t});if(r&&!a&&c&&!u)return(0,s.jsx)(x.aH,{});if(!a||!c)return null;let{app:f,viewsCount:j,viewsCountingPeriod:y,isWarning:v,isBlocked:b,forecast:C,viewsLimit:I}=a,k=(0,x._Q)((0,p.A)(new Date(y.endsAt),1),!0),L=(0,x._Q)((0,p.A)(new Date(y.endsAt),1),!1),A=(0,x.a)(null!==I?Math.min(j,I):j),D=null!==I?(0,x.a)(I):"Unlimited",P=(0,m.gR)({app:t,headerCloseURL:`/apps/${t}`,redirectURL:`/apps/${t}`,claim:"upgradePlan"}),T=(0,s.jsx)(x.$n,{variation:"successPrimary",href:P,small:!0,children:"Upgrade Now"}),V=(0,s.jsx)(x.N_,{color:"accent",onClick:()=>
1i.article(g.xj.views.id),children:"Learn more"}),$=!(b&&0===n||v&&C);return(0,s.jsx)(eV,{children:(0,s.jsx)(e$,{children:(0,s.jsxs)(eS,{children:[(0,s.jsxs)(x.P,{children:["Each app has its own monthly view limit according to its plan. Views are counted when your app is loaded on your website or by a share link and each load counts as one view. If you exceed this limit, your app will be temporarily deactivated. ",V]}),b&&0===n&&(0,s.jsxs)(x.Pq,{icon:(0,s.jsx)(x.In,{size:16,component:h.A,fill:"alert"}),backgroundColor:"alert",button:T,children:["View Limit Reached: ",f.name," widgets have been deactivated until"," ",k,". Increase view limit to activate widgets."]}),v&&C&&(0,s.jsxs)(x.Pq,{icon:(0,s.jsx)(x.In,{size:16,component:h.A,fill:"warning"}),backgroundColor:"warning",button:T,children:["Views Forecast: ",f.name," widgets might be deactivated in"," ",C.daysBeforeBlocked," days"]}),(0,s.jsxs)(e_,{children:[(0,s.jsx)(x.ge,{label:"Views",children:(0,s.jsxs)(x.H4,{children:[A," / ",D]})}),null!==I&&a.daysToReset>0&&(0,s.jsx)(x.ge,{label:"Days to Reset",children:(0,s.jsxs)(x.H4,{children:[a.daysToReset," (",L,")"]})}),(0,s.jsx)(x.ge,{label:"Subscription",children:(0,s.jsx)(x.H4,{children:a.subscriptionName})}),$&&(0,s.jsx)(x.$n,{href:P,variation:"successPrimary",small:!0,children:"Increase View Limit"})]}),(0,s.jsx)(eu,{minusMonths:n,prevPeriod:()=>o(e=>e+1),nextPeriod:()=>o(e=>e-1),statistics:a}),(0,s.jsx)(eD,{appAlias:t,isBlocked:b,minusMonths:n,viewsLimit:I})]})})})},eV=u.default.div.withConfig({componentId:"sc-65ebdba5-0"})(["display:flex;flex-direction:column;justify-content:center;overflow:hidden;"]),e$=u.default.div.withConfig({componentId:"sc-65ebdba5-1"})(["overflow:hidden;flex-grow:1;"]),eS=u.default.div.withConfig({componentId:"sc-65ebdba5-2"})(["display:flex;flex-direction:column;max-height:100%;overflow-y:auto;box-sizing:border-box;padding:0 40px 40px;gap:24px;",""],f.T),e_=u.default.div.withConfig({componentId:"sc-65ebdba5-3"})(["display:flex;align-items:center;flex-wrap:wrap;gap:24px 40px;"]);function eB(e){let{isOpen:t,appAlias:i,appName:n,zIndex:l,onRequestClose:o,...a}=e;return(0,s.jsx)(x.P6,{maxWidth:900,minHeight:900,onRequestClose:o,padding:[0,0],zIndex:l,isOpen:t,headerOffsetBottom:12,header:(0,s.jsx)(eE,{children:(0,s.jsxs)(eM,{children:[n," View Stats"]})}),...a,children:(0,s.jsx)(eT,{appAlias:i})})}let eE=u.default.div.withConfig({componentId:"sc-f127c383-0"})(["padding:40px 40px 0;"]),eM=u.default.div.withConfig({componentId:"sc-f127c383-1"})(["",";margin:auto 0;"],e=>{let{theme:t}=e;return t.font.title1});var eH=i(87500),eR=i(13945),eG=((n={}).STATS="stats",n.WIDGETS_LIMIT="widgets-limit",n.AI_CHATBOT_LIMIT="ai-chatbot-limit",n);function eN(e){var t;let{children:i,isSharedWithMePage:n}=e,{currentAppAlias:u}=(0,c.cN)(),{data:x={payload:[]}}=(0,d.Kn)(),p=x.payload.some(e=>e.alias===u),{data:h,isPending:f}=(0,d.gL)(u,{enabled:!!u&&p}),g=!h?.hasAppInstallation&&!!h?.isLiteSubscription&&h.widgetsTotalCount>0,{data:w}=(0,d.X8)(),m=!!w?.hasSharedWidget,j=u===r.Gq&&p&&!n,{data:y}=(0,d.B4)({enabled:j}),[v,b]=(0,l.useState)(),C=async e=>{b(e)},I=async()=>{b(void 0)};return(0,s.jsxs)(eR.C.Provider,{value:{installedApps:x,currentAppInfo:h,isCurrentAppInfoLoading:f,isCurrentAppInstalled:p,showInstallationHelpBar:g,showSharedWithMeButton:m,aIChatbotUsage:y,showAIChatbotLimit:j,isSharedWithMePage:!!n,openModal:C,closeModal:I},children:[i,(0,s.jsx)(eB,{withClose:!0,isOpen:"stats"===v,appAlias:u,appName:h?.app.name,onRequestClose:I}),(0,s.jsx)(eH.TG,{withClose:!0,isOpen:"widgets-limit"===v,appAlias:u,onRequestClose:I}),(0,s.jsx)(eH.cE,{withClose:!0,isOpen:"ai-chatbot-limit"===v,appAlias:u,planName:(t=h?.plan)?t.type===a.OL.LITE?"Free":t.grade?(0,o.De)(t.grade):"Free":"",onRequestClose:I})]})}},97973:(e,t,i)=>{i.d(t,{_:()=>j});var n=i(26514),s=i(75834),l=i(26097),o=i(46225),a=i(6158),r=i(62030),d=i(19487),c=i(75563),u=i(19405),x=i(31441),p=i(17235),h=i(21206),f=i(35417),g=i(13945),w=i(53124),m=i(64780);function j(e){let{isSharedWithMePage:t,onRequestClose:i,isOpen:l,...j}=e,{query:I}=(0,o.useRouter)(),{alias:k}=I,L=(0,h.i4)(),{colors:A,zIndex:D}=(0,r.DP)(),{installedApps:P={payload:[]},isCurrentAppInstalled:T,showSharedWithMeButton:V}=(0,g.V)(),{currentAppAlias:$,setCurrentAppAlias:S,updateVisitTimeSharedWithMePage:_,isReady:B}=(0,p.cN)(),E=P.payload.some(e=>{let{alias:t}=e;return t===d.Gq}),{data:M}=(0,c.B4)({enabled:E});return(0,s.useEffect)(()=>
1{if(B){if(t)return void _();$&&T&&S($)}},[B]),(0,n.jsx)(r.aF,{isOpen:l,onRequestClose:i,maxWidth:900,style:{content:{padding:0,inset:"auto 0 0"},overlay:{zIndex:D.selectAppModalBottomSheet,background:A.gray50}},containerComponent:y,...j,children:(0,n.jsx)(a.A,{enabled:l,children:(0,n.jsx)(v,{children:(0,n.jsxs)(b,{children:[P.payload.map(e=>{let t,s=e.alias===d.Gq?M?.messagesUsage:void 0;return(0,n.jsx)(w.t,{iconSrc:e.icon,selected:k===e.alias,onClick:(t=e.alias,()=>{S(t),i(),L()}),href:`/apps/${e.alias}`,warningIndicator:(0,f._7)({appAlias:e.alias,appViewsUsage:e.viewsUsage,aiChatbotMessagesUsage:s}),negativeOffset:0,children:e.name},e.alias)}),(0,n.jsx)(r.$n,{href:"/catalog?create=true",variation:"text",textColor:"accent",leftIcon:x.A,fullWidth:!0,padding:12,iconSize:20,children:"Add New App"}),V&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{}),(0,n.jsx)(w.t,{selected:t,href:m.A,leftIcon:u.A,negativeOffset:0,onClick:()=>{_(),i(),L()},children:"Shared with me"})]})]})})})})}let y=l.default.div.withConfig({componentId:"sc-bf568ea5-0"})(["background:",";"],e=>{let{theme:t}=e;return t.colors.white}),v=l.default.div.withConfig({componentId:"sc-bf568ea5-1"})(["padding:40px 24px;overflow-y:auto;max-height:50vh;"]),b=l.default.nav.withConfig({componentId:"sc-bf568ea5-2"})(["display:flex;flex-direction:column;gap:8px;"]),C=l.default.div.withConfig({componentId:"sc-bf568ea5-3"})(["height:1px;margin:8px 12px;background-color:",";"],e=>{let{theme:t}=e;return t.colors.gray10})}}]);
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.