PageSourceSearch

https://dash.elfsight.com/_next/static/chunks/pages/apps/[alias]/[[...params]]-11216bf3e280d4bf.js

js elfsight.com collected 2026-10-01 11:37:23 UTC 44,257 bytes, 1 lines download raw bytes

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]="5cd1f48b-df8d-4402-bddb-b47658cd1460",e._sentryDebugIdIdentifier="sentry-dbid-5cd1f48b-df8d-4402-bddb-b47658cd1460")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6006],{5759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i=n(26514),o=n(75834),a=n(26097),s=n(32791),r=n(62030),l=n(80787),d=n(64240),c=n(3488),p=n(55415),u=n(97115),g=n(21206),f=n(79124),h=n(71637),x=n(46225),m=n(78660),w=n(548),j=n(75563),I=n(91896),b=n(44403),C=n(47848),y=n(76271),v=n(84674),A=n(71142),E=n(74262);function P(e){let{widget:t,subscriptionAppInfo:n,withBelongingField:o,belongingFieldName:a,isProjectsPage:s,projectsInfo:p,currentViewWidgetsVariant:f,titleColor:h}=e,{query:P,push:S}=(0,x.useRouter)(),L=(0,r.$P)({maxWidth:d.NO}),{pid:T,createdAt:k,updatedAt:_,assignedProject:D,canUpdateToNewVersion:R}=t,{app:N,appUsage:U}=n,{state:{sortBy:G}}=(0,u.rU)(),W=(0,g.eG)({widgetPid:T,query:P,projectPid:s?D?.pid:void 0,projectName:s?D?.name:void 0}),F=(0,g.R_)({createdAt:k,updatedAt:_,sortBy:G,withPrefix:f!==l.K9y.TABLE}),{open:H}=(0,y.dy)(),O=(0,g.h2)({widgetPid:t.pid,appInfo:n,manuallyInstall:!0}),M=(0,I.W)(),$=(0,C.qd)(),{mutate:B}=(0,j.Y2)(t.pid,{onSuccess:()=>{M(),$()},onError:e=>{e===m.rJ.WIDGETS_LIMIT_REACHED&&H(y.GF.LIMIT_REACHED)},meta:{expectedErrors:[m.rJ.WIDGETS_LIMIT_REACHED]}}),V={[l.K9y.LIST]:v.FM,[l.K9y.TABLE]:E.L,[l.K9y.GRID]:A.b}[f],q=L&&f!==l.K9y.GRID||f===l.K9y.TABLE,z=R&&(L&&f===l.K9y.LIST||f===l.K9y.TABLE),K=!n.hasAppInstallation,X=n.isLiteSubscription||n.isLitePlanSubscriptionConfirmed,{href:J,badgeCount:Y}=(0,w.zM)({widgetPid:T,appAlias:N.alias,isDraft:t.isDraft});return(0,i.jsx)(V,{widget:t,titleColor:h,editURL:W,widgetResultsHref:J,widgetResultsBadgeCount:Y,appIcon:N.icon,dateWidgetInfoText:F,withBelongingField:o,belongingFieldName:a,onInstallClick:O,onDeleteClick:()=>{H(y.GF.DELETE)},onActivateClick:()=>{let e=s&&D?`/projects/${D.pid}`:`/apps/${N.alias}`,t=(0,b.gR)({app:N.alias,headerCloseURL:e,redirectURL:e});U.widgetsUsage<1?B():S(t)},onUpdateClick:()=>{H(y.GF.UPDATE_WIDGET_TO_NEW_VERSION)},accentOnInstallation:K&&X,contextMenu:(0,i.jsx)(c.FU,{widget:t,subscriptionAppInfo:n,projectsInfo:p,isProjectsPage:s,primaryButton:q,withBadge:z})})}function S(e){let{widget:t,projectsInfo:n,isProjectsPage:o,subscriptionAppInfo:a,currentViewWidgetsVariant:s,titleColor:r}=e,{hasProjectWithWidget:l,available:d}=n;return(0,i.jsx)(y.$C,{widget:t,subscriptionAppInfo:a,isProjectsPage:o,children:(0,i.jsx)(P,{widget:t,subscriptionAppInfo:a,belongingFieldName:o?"appName":"projectName",withBelongingField:d&&l,isProjectsPage:o,currentViewWidgetsVariant:s,projectsInfo:n,titleColor:r})},t.pid)}function L(e){let{widgets:t,subscriptionAppInfo:n,onTransitionFinish:o,projectsInfo:a,isProjectsPage:s,currentViewWidgetsVariant:r,titleColor:d}=e,{itemsTransition:u}=(0,c.Qz)(),x={[l.K9y.LIST]:f.eF,[l.K9y.TABLE]:p.wl,[l.K9y.GRID]:h.os}[r],m={[l.K9y.LIST]:f.Lk,[l.K9y.TABLE]:p.tu,[l.K9y.GRID]:h.B7}[r];return(0,i.jsx)(T,{children:(0,i.jsx)(m,{isTransitionActive:u,onTransitionFinish:o,placeholder:(0,i.jsx)(x,{}),transitionClassNames:"layout-list-item",timeout:500,items:t.map(e=>{let t=(0,g.dw)(n,e.app.alias);return{id:e.pid,nodeRef:e.nodeRef,isPlaceholder:e.isPlaceholder,content:t&&(0,i.jsx)(S,{widget:e,subscriptionAppInfo:t,projectsInfo:a,isProjectsPage:s,currentViewWidgetsVariant:r,titleColor:d})}})})})}let T=a.default.div.withConfig({componentId:"sc-ff1d7c53-0"})([""]);function k(e){let{isLoading:t,widgets:n,projectsInfo:a,isProjectsPage:g=!1,subscriptionAppInfo:f,titleColor:h}=e,x=(0,r.$P)({maxWidth:d.gD}),{state:{page:m,lastPage:w,widgetsDisplay:j,search:I,sortBy:b},setPage:C}=(0,u.rU)(),{setItemsTransition:y}=(0,c.Qz)(),v=(0,o.useDeferredValue)(I),{hasProjectWithWidget:A,available:E}=a,P=E&&A,S=(0,o.useRef)(0),[T]=(0,s.y)(e=>S.current=e.height,{resize:!0}),[k,N]=(0,o.useState)([]);return((0,p.TK)([k,j,P]),(0,o.useEffect)(()=>{N(n.map(e=>({...e,nodeRef:(0,o.createRef)()})))},[n]),t)?(0,i.jsx)(R,{children:(0,i.jsx)(r.aH,{})}):!n.length&&(v||m>1)?(0,i.jsx)(R,{children:(0,i.jsx)(c.yI,{})}):(0,i.jsxs)(_,{ref:T,children:[(0,i.jsx)(D,{children:!x&&j===l.K9y.TABLE&&(0,i.jsx)(p.Sq,{isProjectsPage:g,sortWidgetsBy:b,showBelongingField:P})}),(0,i.jsxs)(R,{children:[(0,i.jsx)(L,{titleColor:h,widgets:k,subscriptionAppInfo:f,onTransitionFinish:()=>{y(!1)},projectsInfo:a,isProjectsPage:g,currentViewWidgetsVariant:j}),w>1&&(0,i.jsx)(r.dK,{page:m,count:w,onPageChange:e=>{C(e)}})]})]})}let _=a.default.div.withConfig({componentId:"sc-5dd86d02-0"})([""]),D=a.default.div.withConfig({componentId:"sc-5dd86d02-1"})([""]),R=a.default.div.withConfig({componentId:"sc-5dd86d02-2"})(["position:relative;display:flex;flex-direction:column;gap:20px;"])}
1,38654:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/apps/[alias]/[[...params]]",function(){return n(87198)}])},47848:(e,t,n)=>{"use strict";n.d(t,{$U:()=>a,b$:()=>i.b$,qd:()=>i.qd});var i=n(10036),o=n(61420);function a(){let{state:{page:e,search:t,itemsPerPage:n}}=(0,o.DD)();return{page:e,search:t,itemsPerPage:n}}},61420:(e,t,n)=>{"use strict";n.d(t,{BE:()=>d,SX:()=>p,DD:()=>l});var i,o=n(26514),a=n(75834),s=n(50956);let r=(0,a.createContext)(null);function l(){let e=(0,a.useContext)(r);if(null===e)throw Error("`useProjectsContext` must be nested inside an `ProjectsProvider`.");return e}var d=((i={}).PAGE="PAGE",i.LAST_PAGE="LAST_PAGE",i.SEARCH="SEARCH",i);function c(e,t){switch(t.type){case"PAGE":return{...e,page:t.page};case"LAST_PAGE":return{...e,lastPage:t.lastPage};case"SEARCH":return{...e,search:t.search}}}function p(e){let{children:t}=e,n={page:1,lastPage:1,search:"",itemsPerPage:s.re},[i,l]=(0,a.useReducer)(c,n);return(0,o.jsx)(r.Provider,{value:{state:i,dispatch:l,setPage:e=>{l({type:d.PAGE,page:Number(e)})},setSearch:e=>{l({type:d.SEARCH,search:e}),l({type:d.PAGE,page:1})}},children:t})}},87198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nb});var i,o,a=n(26514),s=n(10409),r=n(97115),l=n(46225),d=n.n(l),c=n(78660),p=n(93796),u=n(75563),g=n(84795),f=n(56198),h=n(70572),x=n(43595),m=n(8514),w=n(85683),j=n(73676),I=n(64780),b=n(13945),C=n(35417),y=n(62030),v=n(47787),A=n(26097),E=n(44403);function P(e){let{appData:t}=e;return(0,a.jsxs)(S,{children:[(0,a.jsx)(L,{icon:t.icon,size:48}),(0,a.jsxs)(k,{children:[(0,a.jsx)(y.H1,{mb:4,children:t.name}),(0,a.jsx)(y.P,{children:t.caption})]}),(0,a.jsx)(T,{href:(0,E.gR)({app:t.alias,headerCloseURL:`/apps/${t.alias}`,redirectURL:`/apps/${t.alias}`}),disableShrink:!0,variation:"successSecondary",children:"View Plans"})]})}let S=A.default.div.withConfig({componentId:"sc-1df62965-0"})(["display:flex;"]),L=(0,A.default)(y.z9).withConfig({componentId:"sc-1df62965-1"})(["margin-right:16px;"]),T=(0,A.default)(y.$n).withConfig({componentId:"sc-1df62965-2"})(["margin-left:auto;"]),k=A.default.div.withConfig({componentId:"sc-1df62965-3"})(["display:flex;flex-direction:column;margin-right:30px;"]);var _=n(1883);function D(e){let{appData:t}=e;return(0,a.jsxs)(R,{children:[(0,a.jsx)(N,{href:"/apps",leftIcon:_.A,variation:"text",children:"Go to My Apps"}),(0,a.jsxs)(U,{children:[(0,a.jsx)(G,{icon:t.icon,size:32}),(0,a.jsx)(y.H2,{children:t.name})]}),(0,a.jsx)(y.P,{children:t.caption}),(0,a.jsx)(W,{href:(0,E.gR)({app:t.alias,headerCloseURL:`/apps/${t.alias}`,redirectURL:`/apps/${t.alias}`}),disableShrink:!0,variation:"successSecondary",children:"View Plans"})]})}let R=A.default.div.withConfig({componentId:"sc-a11ac0b7-0"})(["display:flex;flex-direction:column;padding:32px 20px;margin:0 -20px;background:#f8f8f8;border-bottom:1px solid ",";"],e=>{let{theme:t}=e;return t.colors.gray10}),N=(0,A.default)(y.$n).withConfig({componentId:"sc-a11ac0b7-1"})(["margin-bottom:20px;"]),U=A.default.div.withConfig({componentId:"sc-a11ac0b7-2"})(["display:flex;align-items:center;flex-shrink:0;margin-bottom:12px;"]),G=(0,A.default)(y.z9).withConfig({componentId:"sc-a11ac0b7-3"})(["margin-right:12px;"]),W=(0,A.default)(y.$n).withConfig({componentId:"sc-a11ac0b7-4"})(["margin-top:20px;"]);function F(e){let{appAlias:t,isMobile:n}=e,{data:i,isPending:o}=(0,u.co)({alias:t});return o||!i?(0,a.jsx)(y.aH,{}):(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)(D,{appData:i}):(0,a.jsx)(P,{appData:i})})}var H=n(75834),O=n(17235),M=n(90393);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}let B=e=>H.createElement("svg",$({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=H.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.334 6a4.667 4.667 0 0 1 9.333 0v.69c1.131.162 2 1.135 2 2.31v.167a2.167 2.167 0 0 1-2.221 2.165c-.494 1.413-1.748 2.366-3.102 2.608-.313.114-.684.06-1.01.06a1 1 0 1 1 0-2h.667c.33 0 .622.16.804.406.865-.411 1.529-1.28 1.529-2.406V6a3.333 3.333 0 0 0-6.667 0v4.167c0 .644-.522 1.166-1.166 1.166a2.167 2.167 0 0 1-2.167-2.166V9c0-1.175.87-2.148 2-2.31V6Z",fill:"currentColor"})));function V(e){let{currentAppInfo:t}=e,{push:n}=(0,l.useRouter)(),i=(0,y.$P)({maxWidth:680}),o=e=>{let{app:i,isLiteSubscription:o,isLitePlanSubscriptionConfirmed:a}=t,s=`/apps/${i.alias}?${x.sl}=${e}`;return o&&!a?n((0,E.gR)({app:i.alias,redirectURL:s,headerCloseURL:`/apps/${i.alias}`})):n(s)};return(0,a.jsx)(q,{children:(0,a.jsxs)(z,{children:[(0,a.jsx)(y.H4,{children:"Need help with widget installation?"}),(0,a.jsxs)(K,{children:[(0,a.jsx)(X,{leftIcon:M.A,onClick:()=>
1o(x.rs.EMBED),children:i?"Tutorials":"Installation Tutorials"}),(0,a.jsx)(X,{leftIcon:B,onClick:()=>o(x.rs.REQUEST),children:i?" Request Help":" Request Installation Help"})]})]})})}let q=A.default.div.withConfig({componentId:"sc-d4c6d3a3-0"})(["position:relative;padding-top:12px;margin-top:8px;&::after{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:12px solid ",";;}"],e=>{let{theme:t}=e;return(0,y.oy)(t.colors.accent,.05)}),z=A.default.div.withConfig({componentId:"sc-d4c6d3a3-1"})(["display:flex;align-items:center;justify-content:space-between;padding:8px 20px;border-radius:9px;gap:16px;background-color:",";@media (max-width:","px){flex-direction:column;padding:20px 20px 12px;gap:8px;}"],e=>{let{theme:t}=e;return(0,y.oy)(t.colors.accent,.05)},680),K=A.default.div.withConfig({componentId:"sc-d4c6d3a3-2"})(["display:flex;gap:12px;"]),X=(0,A.default)(y.$n).attrs({textColor:"accent",padding:8,iconSize:16,iconOutbound:0,small:!0}).withConfig({componentId:"sc-d4c6d3a3-3"})([""]);var J=n(80787),Y=n(12433),Q=n(58245),Z=n.n(Q),ee=n(48725);let et={src:"/_next/static/media/my-apps-has-not-widgets.a14e1056.png",height:258,width:348,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAUVBMVEX5+/vCjztwnbXz8vD5/Pry/P3t8vT6///f49vg4+D///+3n3Tn5+ZCg5Evk8Ckusgcga7NydWWpaJZmbnF2ODDgITlz6S7llm1rZS/rIW4qqIHXJ++AAAAE3RSTlPq/f3Z9uXs/N3i1f7H/v7+/v79b1v9ZgAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAADhJREFUCJkFwQkCgCAIAMHVRKDLCjv//9BmQGqFMqI9IpqC9m1dDhV0zzmlSyjn97zT7QxuZubzDzElAfeisBztAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};var en=n(63134),ei=n(2483);function eo(e){let{onRequestClose:t,onSuccess:n,appName:i,appAlias:o,...s}=e,{mutate:r,isPending:l}=(0,u.IM)(o,()=>{n(),ei.oR.success(`App "${i}" was removed.`,{icon:null})});return(0,a.jsx)(y.aF,{title:`Are you sure you want to remove the ${i} app from your Apps list?`,onRequestClose:t,actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.$n,{fullWidth:!0,center:!0,variation:"secondary",onClick:t,children:"Cancel"}),(0,a.jsx)(y.$n,{fullWidth:!0,center:!0,variation:"alertPrimary",isLoading:l,onClick:e=>{r(),t&&t(e)},children:"Remove App"})]}),...s,children:(0,a.jsx)(y.P,{alignCenter:!0,children:"You will be able to find it in our catalog at any time."})})}function ea(e){let{withDeleteApp:t=!1,appAlias:n}=e,{push:i}=(0,l.useRouter)(),{refetchCurrentAppAlias:o}=(0,f.cN)(),{data:r,isPending:d}=(0,u.co)({alias:n}),[c,p]=(0,H.useState)(!1),g=(0,en.l)();return d||!r?null:(0,a.jsxs)(s.EC,{spacer:[40,80],children:[(0,a.jsx)(Z(),{src:et,width:174,height:130,alt:""}),(0,a.jsx)(y.H1,{gb:!0,mt:20,children:"Your first widget is almost here!"}),(0,a.jsx)(es,{alignCenter:!0,mb:20,children:"Create a captivating widget with the help of ready-made templates or configure a unique widget from scratch."}),(0,a.jsx)(y.$n,{href:`/widget/create/${n}`,onClick:()=>(0,u.$)({name:"widgets_create_widget_click"}),variation:"accentPrimary",leftIcon:ee.A,children:"Create Widget"}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.o5,{variant:"captionSmallUppercase",color:"gray50",mb:32,mt:32,children:"or"}),(0,a.jsx)(er,{alignCenter:!0,mb:20,variant:"caption",color:"gray50",children:"In case you don’t feel like using this app right now, feel free to remove it from your Apps list. You will be able to find it in our catalog at any time."}),(0,a.jsx)(y.$n,{onClick:()=>{p(!0)},variation:"text",children:"Remove App"})]}),(0,a.jsx)(eo,{isOpen:c,appName:r.name,appAlias:n,onSuccess:()=>{g(),o(),i("/apps")},onRequestClose:()=>p(!1)})]})}let es=(0,A.default)(y.P).withConfig({componentId:"sc-c44c2312-0"})(["max-width:500px;"]),er=(0,A.default)(y.o5).withConfig({componentId:"sc-c44c2312-1"})(["max-width:500px;"]);var el=n(56769),ed=n(97710),ec=n(21206),ep=n(61303),eu=n(70442),eg=n(71156);function ef(){let{push:e}=(0,l.useRouter)(),{currentAppInfo:t,openModal:n,aIChatbotUsage:i}=(0,b.V)(),{currentAppAlias:o}=(0,O.cN)(),s=(0,eg.s)(),r=(0,el.a)({appAlias:o,appViewsUsage:t?.appUsage?.viewsUsage,aiChatbotMessagesUsage:i?.messagesUsage}),d=t&&(r===el.S.AI_CHATBOT_MESSAGES_LIMIT||r===el.S.APP_VIEWS_LIMIT)?"secondary":"accentSecondary";return(0,a.jsx)(y.$n,{onClick:()=>
1{if(Number(t?.appUsage.widgetsUsage)>=1){s({entityType:ep.IE.WIDGET,trigger:ep.bG.CREATE_WIDGET,appAlias:o}),n(eu.K.WIDGETS_LIMIT);return}e(`/widget/create/${o}`)},variation:d,leftIcon:ee.A,disableShrink:!0,children:"Create Widget"})}var eh=n(3488),ex=n(5759);function em(){let e=(0,ec.U0)(),{dispatch:t}=(0,r.rU)(),{currentAppAlias:n}=(0,O.cN)(),{currentAppInfo:i,isCurrentAppInstalled:o,aIChatbotUsage:s}=(0,b.V)(),{data:l}=(0,u.UH)(),d=[J.aem,...Object.values(e)],{data:c,isPending:p,isFetchedAfterMount:g,isFetched:f,refetch:h}=(0,u.BP)(e),x=c?.payload||[];(0,H.useEffect)(()=>{c&&t({type:r.DI.LAST_PAGE,lastPage:c.meta.lastPage})},[c]),(0,Y.LJ)(["WidgetThumbnailGenerationCompleted"],()=>{h()});let m=o&&i?.canAppBeDeleted,w=!x.length&&!e.search&&g,j=l&&i,I=(0,el.a)({appAlias:n,appViewsUsage:i?.appUsage?.viewsUsage,aiChatbotMessagesUsage:s?.messagesUsage}),C=i&&(I===el.S.AI_CHATBOT_MESSAGES_LIMIT||I===el.S.APP_VIEWS_LIMIT)?"black":"accent";return(0,a.jsx)(ew,{children:w?(0,a.jsx)(ea,{appAlias:n,withDeleteApp:m}):j&&(0,a.jsxs)(eh.pe,{listQueryKey:d,children:[(0,a.jsx)(ed.M,{actions:(0,a.jsx)(ef,{})}),(0,a.jsx)(ex.Z,{widgets:x,subscriptionAppInfo:i,projectsInfo:l,isLoading:p||!f,titleColor:C})]})})}let ew=A.default.div.withConfig({componentId:"sc-73070d44-0"})([""]);function ej(e){let{tabID:t}=e,{currentAppInfo:n,showInstallationHelpBar:i}=(0,b.V)();return(0,a.jsxs)(y.Kp,{tabID:t,children:[(0,a.jsx)(em,{}),i&&n&&(0,a.jsx)(V,{currentAppInfo:n})]})}var eI=n(85203);let eb=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":",n=e.split(t);return n.length>1?n[1]:e};var eC=n(30140);let ey={[eC.q8.NEW]:"New",[eC.q8.FIXED]:"Fixed",[eC.q8.IMPROVED]:"Improved"},ev={[eC.q8.NEW]:{color:"success"},[eC.q8.FIXED]:{color:"alert"},[eC.q8.IMPROVED]:{color:"#df8e07"}};function eA(e){let{type:t,title:n,link:i,date:o,...s}=e,r=(0,y.$P)({maxWidth:y.kJ}),l=eb(n);return(0,a.jsxs)(eS,{...s,children:[(0,a.jsx)(eE,{href:i,children:(0,a.jsx)(eP,{children:l})}),(0,a.jsxs)(ek,{children:[(0,a.jsx)(eL,{...ev[t],children:ey[t]}),!r&&(0,a.jsx)(eT,{children:o})]})]})}let eE=(0,A.default)(y.N_).withConfig({componentId:"sc-e9c269ea-0"})(["margin-bottom:8px;&:focus,&:hover{text-decoration:none;}&:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;}","{order:1;margin-top:4px;margin-bottom:0;}"],y.ND),eP=(0,A.default)(y.H3).withConfig({componentId:"sc-e9c269ea-1"})(["position:relative;z-index:1;&:hover{text-decoration:underline;}"]),eS=A.default.div.withConfig({componentId:"sc-e9c269ea-2"})(["display:flex;flex-direction:column;align-items:flex-start;"]),eL=(0,A.default)(y.vu).withConfig({componentId:"sc-e9c269ea-3"})(["position:static;padding:3px 8px;margin-right:12px;text-transform:none;","{margin-right:0;}"],y.ND),eT=A.default.span.withConfig({componentId:"sc-e9c269ea-4"})(["",";color:",";"],e=>{let{theme:t}=e;return t.font.caption},e=>{let{theme:t}=e;return t.colors.gray70}),ek=A.default.div.withConfig({componentId:"sc-e9c269ea-5"})(["display:flex;align-items:center;"]);function e_(e){let{link:t}=e;return(0,a.jsx)(s.$v,{title:(0,a.jsx)(y.H2,{mb:8,children:"Tell us how you found the updates!"}),caption:(0,a.jsx)(y.P,{children:"Your feedback is something that helps us navigate and take the right path. Let us know your thoughts about the updates, we always wait to hear from you with bated breath!"}),link:t,actionText:"See All Updates"})}function eD(){let{currentAppAlias:e}=(0,O.cN)(),{data:t,isPending:n}=(0,u.Ys)(e),i=t?.payload||[];return!t||n?(0,a.jsx)(y.aH,{}):(0,a.jsx)(eR,{children:i.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e_,{link:t.meta.seeAllUpdatesLink}),(0,a.jsx)(eN,{children:i.map(e=>{let t=e.posters.map(e=>{let{user:t}=e;return t.profilePicture}).slice(0,3),n=new Date().getFullYear()===new Date(e.createdAt).getFullYear()?"MMMM d":"MMMM d, yyyy",i=(0,eI.A)(new Date(e.createdAt),n);return(0,a.jsx)(eU,{profilePictures:t,views:e.views,replies:e.replies,date:i,children:(0,a.jsx)(eA,{type:e.type,title:e.title,link:e.link,date:i})},e.pid)})}),(0,a.jsx)(eG,{children:(0,a.jsx)(eW,{href:t.meta.seeAllUpdatesLink,variation:"accentSecondary",target:"_blank",rel:"noopener noreferrer",children:"See All Updates"})})]}):(0,a.jsxs)(y.P,{color:"gray70",children:["Cool improvements are yet to come!"," ",(0,a.jsx)(y.N_,{href:t.meta.changelogHomeLink,color:"accent",children:"See other updates in our community"}),"."]})})}let eR=A.default.div.withConfig({componentId:"sc-fb5bc9d1-0"})([""]),eN=(0,A.default)(s.o5).withConfig({componentId:"sc-fb5bc9d1-1"})(["margin-top:20px;"]),eU=(0,A.default)(s.me).withConfig({componentId:"sc-fb5bc9d1-2"})(["&:not(:first-of-type){margin-top:24px;}"]),eG=A.default.div.withConfig({componentId:"sc-fb5bc9d1-3"})(["display:flex;margin-top:32px;"]),eW=(0,A.default)(y.$n).withConfig({componentId:"sc-fb5bc9d1-4"})(["margin:auto;"]);function eF(e){let{tabID:t}=e;return(0,a.jsx)(y.Kp,{tabID:t,children:(0,a.jsx)(eD,{})})}let eH={[eC.Pn.GATHERING_FEEDBACK]:"Gathering feedback",[eC.Pn.IN_PROGRESS]:"In progress",[eC.Pn.RELEASED]:"Released",[eC.Pn.PLANNED]:"Planned",[eC.Pn.WILL_NOT_IMPLEMENT]:"Will not implement"},eO={[eC.Pn.GATHERING_FEEDBACK]:{color:"#df8e07"},[eC.Pn.IN_PROGRESS]:{color:"accent"},[eC.Pn.RELEASED]:{color:"promo"},[eC.Pn.PLANNED]:{color:"success"},[eC.Pn.WILL_NOT_IMPLEMENT]:{color:"alert"}};function eM(e){let{title:t,type:n,voteCount:i,link:o,voteLink:s,voted:r=!1,...l}=e;return(0,a.jsxs)(eB,{...l,children:[(0,a.jsxs)(eV,{children:[(0,a.jsx)(eK,{children:i}),(0,a.jsx)(eX,{padding:10,backgroundColor:"brand",fullWidth:!0,center:!0,disabled:r,href:s,target:"_blank",rel:"noopener noreferrer",children:r?"Voted":"Vote"})]}),(0,a.jsxs)(ez,{children:[(0,a.jsx)(eq,{href:o,children:(0,a.jsx)(e$,{children:t})}),(0,a.jsx)(eJ,{...eO[n],children:eH[n]})]})]})}let e$=(0,A.default)(y.H3).withConfig({componentId:"sc-e7316c74-0"})(["position:relative;z-index:1;&:hover{text-decoration:underline;}"]),eB=A.default.div.withConfig({componentId:"sc-e7316c74-1"})(["display:flex;gap:20px;align-items:center;","{justify-content:space-between;}&:hover{text-decoration:none;}"],y.ND),eV=A.default.div.withConfig({componentId:"sc-e7316c74-2"})(["width:78px;min-width:58px;display:flex;flex-direction:column;align-items:center;flex-shrink:0;","{width:60px;order:1;}"],y.ND),eq=(0,A.default)(y.N_).withConfig({componentId:"sc-e7316c74-3"})(["margin-bottom:4px;&:focus,&:hover{text-decoration:none;}&:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;}","{order:1;margin-top:4px;margin-bottom:0;}"],y.ND),ez=A.default.div.withConfig({componentId:"sc-e7316c74-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),eK=A.default.div.withConfig({componentId:"sc-e7316c74-5"})([""," display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;padding:12px;margin-bottom:4px;border-radius:4px;border:2px solid ",";background:",";"],e=>{let{theme:t}=e;return t.font.title2},e=>{let{theme:t}=e;return t.colors.gray10},e=>{let{theme:t}=e;return t.colors.white}),eX=(0,A.default)(y.$n).withConfig({componentId:"sc-e7316c74-6"})(["z-index:1;"]),eJ=(0,A.default)(y.vu).withConfig({componentId:"sc-e7316c74-7"})(["position:static;padding:3px 8px;text-transform:none;"]);var eY=n(8572);function eQ(e){let{link:t,appName:n}=e;return(0,a.jsx)(s.$v,{title:(0,a.jsxs)(y.H2,{mb:8,children:["Request"," ",(0,a.jsxs)(eZ,{children:["any feature",(0,a.jsx)(e0,{})]})," ","you want in ",n]}),caption:(0,a.jsx)(y.P,{children:"Your ideas are the backbone of our service improvement. Share your desired features and make a direct impact on the development of the widget you love. We're all ears!"}),link:t,actionText:"Request a Feature"})}let eZ=A.default.span.withConfig({componentId:"sc-13268d00-0"})(["position:relative;"]),e0=(0,A.default)(eY.A).withConfig({componentId:"sc-13268d00-1"})(["position:absolute;width:102%;left:-1px;bottom:-4px;color:",";stroke-opacity:0.41;"],e=>{let{theme:t}=e;return t.colors.accent});function e1(){let{currentAppAlias:e}=(0,O.cN)(),{data:t,isPending:n}=(0,u.N8)(e),{data:i,isPending:o}=(0,u.co)({alias:e}),r=t?.payload||[];return!t||!i||n||o?(0,a.jsx)(y.aH,{}):(0,a.jsxs)(e2,{children:[(0,a.jsx)(eQ,{link:t.meta.requestFeatureLink,appName:i.name}),!!r.length&&(0,a.jsxs)(e3,{children:[(0,a.jsx)(y.H2,{mb:20,children:"Vote for the features you want to see next! \uD83D\uDE80"}),(0,a.jsx)(s.o5,{children:r.map(e=>{let t=e.posters.map(e=>{let{user:t}=e;return t.profilePicture}).slice(0,3);return(0,a.jsx)(e4,{views:e.views,replies:e.replies,profilePictures:t,children:(0,a.jsx)(eM,{title:e.title,type:e.type,voteCount:e.voteCount,link:e.link,voteLink:e.voteLink})},e.pid)})}),(0,a.jsx)(e6,{children:(0,a.jsx)(e5,{href:t.meta.seeAllFeatureRequestsLink,variation:"accentSecondary",target:"_blank",rel:"noopener noreferrer",children:"See All Feature Requests"})})]})]})}let e2=A.default.div.withConfig({componentId:"sc-ff15a9de-0"})([""]),e4=(0,A.default)(s.me).withConfig({componentId:"sc-ff15a9de-1"})(["&:not(:first-of-type){margin-top:24px;}"]),e3=A.default.div.withConfig({componentId:"sc-ff15a9de-2"})(["margin-top:32px;"]),e6=A.default.div.withConfig({componentId:"sc-ff15a9de-3"})(["display:flex;margin-top:32px;"]),e5=(0,A.default)(y.$n).withConfig({componentId:"sc-ff15a9de-4"})(["margin:auto;"]);function e8(e){let{tabID:t}=e;return(0,a.jsx)(y.Kp,{tabID:t,children:(0,a.jsx)(e1,{})})}var e7=n(90798);function e9(){return(0,a.jsxs)(te,{children:[(0,a.jsx)(ej,{tabID:e7.I.WIDGETS}),(0,a.jsx)(eF,{tabID:e7.I.CHANGELOG}),(0,a.jsx)(e8,{tabID:e7.I.WISHLIST})]})}let te=A.default.div.withConfig({componentId:"sc-c3dc930e-0"})(["padding:20px 0;box-sizing:border-box;max-height:100%;overflow-y:visible;"]);var tt=n(29822),tn=n.n(tt),ti=n(52897),to=n.n(ti),ta=n(4843);function ts(){let{data:e={payload:[]},isPending:t}=(0,u.T1)(),[n,i]=(0,H.useState)([]);return((0,H.useEffect)(()=>{let[t,n]=tn()(e.payload,e=>{let{alias:t}=e;return"ai-chatbot"===t}),o=to()([...t,...to()(n)].slice(0,2));o.length&&i(o)},[e.payload]),t||!n.length)?null:(0,a.jsxs)(tr,{children:[(0,a.jsxs)(tl,{children:[(0,a.jsx)(y.o5,{variant:"title4Semibold",children:"Discover More Apps"}),(0,a.jsxs)(tc,{href:"/catalog",children:["Explore All Apps",(0,a.jsx)(tp,{component:ta.A,size:16})]})]}),(0,a.jsx)(td,{}),(0,a.jsx)(s.Uy,{children:n.map(e=>(0,H.createElement)(s.SV,{...e,key:e.alias,titleVariant:"title3Semibold"}))})]})}let tr=A.default.section.withConfig({componentId:"sc-7bbed815-0"})([""]),tl=A.default.div.withConfig({componentId:"sc-7bbed815-1"})(["display:flex;justify-content:space-between;"]),td=(0,A.default)(y.cG).withConfig({componentId:"sc-7bbed815-2"})(["margin:8px auto 32px;"]),tc=(0,A.default)(y.N_).withConfig({componentId:"sc-7bbed815-3"})(["",";display:inline-flex;align-items:center;justify-content:center;color:",";"],e=>{let{theme:t}=e;return t.font.title4Semibold},e=>{let{theme:t}=e;return t.colors.accent}),tp=(0,A.default)(y.In).withConfig({componentId:"sc-7bbed815-4"})(["margin-left:5px;"]);function tu(){let{activeTab:e}=(0,y.uc)(),{isCurrentAppInstalled:t,showInstallationHelpBar:n}=(0,b.V)(),i=(0,v.U)(),{data:{payload:o}={payload:[]}}=(0,u.BP)(i),s=!o.length&&!i.search;return t?e===e7.I.WIDGETS&&(s||n)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tg,{}),(0,a.jsx)(ts,{})]}):null}let tg=A.default.div.withConfig({componentId:"sc-da6c0cff-0"}
1)(["height:140px;margin-bottom:auto;"]);function tf(){let e=(0,l.useRouter)(),{currentAppAlias:t}=(0,O.cN)(),{isCurrentAppInstalled:n}=(0,b.V)(),{data:i,refetch:o}=(0,u.Ys)(t,{enabled:n}),s=(0,ec.i4)(),{mutate:r}=(0,u.m_)(()=>{o()}),[d,c]=(0,H.useState)(null),p=[{title:"Widgets",id:e7.I.WIDGETS},{title:"Request a Feature",id:e7.I.WISHLIST},{title:"What’s New",id:e7.I.CHANGELOG,alert:i?.meta.hasNewChangelogTopics??!1}];return(0,H.useEffect)(()=>{let t=e.query?.params?.[0];c(t&&p.some(e=>{let{id:n}=e;return n===t})?t:e7.I.WIDGETS)},[e.query]),(0,a.jsxs)(y.O_,{defaultTab:d||"",tabs:p,onSetActiveTab:n=>{let i={[e7.I.WIDGETS]:"",[e7.I.WISHLIST]:e7.I.WISHLIST,[e7.I.CHANGELOG]:e7.I.CHANGELOG}[n];s(),e.push(`/apps/${e.query.alias}/${i}`);let o=p.some(e=>e.id===e7.I.CHANGELOG&&e.alert);n===e7.I.CHANGELOG&&o&&r({appAlias:t})},children:[(0,a.jsx)(th,{withBorder:!0,height:36,itemsHeight:30,lightItems:!0,withBoldTextWidthFix:!0}),(0,a.jsx)(e9,{}),(0,a.jsx)(tu,{})]})}let th=(0,A.default)(y.a9).withConfig({componentId:"sc-42ac35d2-0"})(["margin-top:32px;flex-shrink:0;ul{gap:0 32px;}"]);var tx=n(91557);let tm=(0,a.jsx)(tx.CT,{underline:!0,children:"Contact us"}),tw=(0,a.jsx)(y.N_,{onClick:()=>d().back(),color:"black",underline:!0,children:"Try going back"});function tj(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.pD,{title:"404"}),(0,a.jsx)(s.EC,{width:600,spacer:[40,80],children:(0,a.jsxs)(tI,{children:[(0,a.jsx)(tb,{children:"404"}),(0,a.jsx)(tC,{children:"Sorry, page not found"}),(0,a.jsxs)(ty,{children:["We can’t seem to find the page you’re looking for.",(0,a.jsx)("br",{}),tw," to previous page or ",tm," for more information."]})]})})]})}let tI=A.default.div.withConfig({componentId:"sc-41cb589d-0"})(["width:100%;text-align:center;"]),tb=A.default.div.withConfig({componentId:"sc-41cb589d-1"})(["font-size:80px;font-weight:500;line-height:1.2;color:",";"],e=>{let{theme:t}=e;return t.colors.brand}),tC=A.default.div.withConfig({componentId:"sc-41cb589d-2"})(["",";"],e=>{let{theme:t}=e;return t.font.title1}),ty=A.default.div.withConfig({componentId:"sc-41cb589d-3"})(["margin-top:24px;",";"],e=>{let{theme:t}=e;return t.font.text});var tv=n(19487),tA=n(55951),tE=n(362),tP=n(92973);function tS(e){let{appInfo:t}=e,{beacon:n}=(0,tP.U)(),{app:{name:i},appUsage:{viewsUsage:o,viewsCountingPeriod:s}}=t;if(null===o)return null;let r=(0,a.jsx)(y.N_,{underline:!0,onClick:()=>n.article(tE.xj.views.id),children:"Learn more about views"}),l=(0,y._Q)((0,tA.A)(new Date(s.endsAt),1)),d=((1-o)*100).toFixed();return o>=e7.X.BLOCKED?(0,a.jsxs)(y.H4,{color:"alert",children:["Deactivated due to view limit reached\xa0",(0,a.jsx)(y.Ck,{width:300,iconColor:"alert",withSafePolygon:!0,content:(0,a.jsxs)(a.Fragment,{children:["Deactivated widgets no longer work on your website until views reset on ",l,". To continue using ",i," app, upgrade to a higher plan. ",r]})})]}):o>=e7.X.RED?(0,a.jsxs)(y.H4,{color:"alert",children:[d,"% of view limit left\xa0",(0,a.jsx)(y.Ck,{width:300,iconColor:"alert",withSafePolygon:!0,content:(0,a.jsxs)(a.Fragment,{children:["When your view limit is over, your widgets won’t be displayed on your website until views reset on ",l,". Upgrade your app now to continue using it without any interruption. ",r]})})]}):o>=e7.X.ORANGE?(0,a.jsxs)(y.H4,{color:"warning",children:[d,"% of view limit left\xa0",(0,a.jsx)(y.Ck,{width:300,iconColor:"warning",withSafePolygon:!0,content:(0,a.jsxs)(a.Fragment,{children:["When your view limit is over, your widgets won’t be displayed on your website until views reset on ",l,". Upgrade your app now to continue using it without any interruption. ",r]})})]}):null}var tL=n(40152),tT=n(65782),tk=n(68029);let t_=(0,H.forwardRef)(function(e,t){let{planType:n,planGrade:i,isLitePlanSubscriptionConfirmed:o,...s}=e,r=(0,A.useTheme)();return(0,a.jsx)(tD,{...tR(n,r),...s,ref:t,children:tN({planType:n,planGrade:i,isLitePlanSubscriptionConfirmed:o})})}),tD=(0,A.default)(y.vu).withConfig({componentId:"sc-d5c66036-0"})(["font-size:10px;line-height:12px;font-weight:500;text-transform:uppercase;padding:3px 8px;color:",";background:",";",""],e=>{let{$textColor:t}=e;return t},e=>{let{$backgroundColor:t,$withBorder:n}=e;return n?"transparent":t},e=>{let{$withBorder:t,$borderColor:n}=e;return t&&(0,A.css)(["box-shadow:0 0 0 1px "," inset;"],n)}),tR=(e,t)=>({[tT.OL.SINGLE_APP]:{color:"brand"},[tT.OL.LITE]:{$backgroundColor:"transparent",$textColor:(0,y.jp)("gray50",t),$borderColor:(0,y.jp)("gray30",t),$withBorder:!0},[tT.OL.ALL_APPS_PACK]:{$textColor:"black",$backgroundColor:(0,y.jp)("gray5",t)}})[e],tN=e=>{let{planType:t,planGrade:n,isLitePlanSubscriptionConfirmed:i}=e,o={[tT.OL.ALL_APPS_PACK]:"Pack",[tT.OL.SINGLE_APP]:"",[tT.OL.LITE]:i?"Free":"Select Plan"}[t],a=n?(0,tk.x)(n):"";return`${a} ${o}`};var tU=n(97973);function tG(e){let{appInfo:t,badge:n,showPlanBadge:i}=e,{app:{icon:o,name:s}}=t,[r,l]=(0,H.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tW,{onClick:()=>l(!0),children:[(0,a.jsx)(y.z9,{icon:o,size:32}),(0,a.jsx)(tF,{children:s}),i&&(0,a.jsx)(t_,{planType:t.plan.type,planGrade:t.plan.grade,isLitePlanSubscriptionConfirmed:t.isLitePlanSubscriptionConfirmed}),(0,a.jsx)(tH,{size:20,fill:"#888888",component:tL.A}),Number(n)>0&&(0,a.jsx)(y.Ex,{offset:[-4,-8],children:n})]}),(0,a.jsx)(tU._,{isOpen:r,withClose:!0,onRequestClose:()=>l(!1)})]})}let tW=(0,A.default)(y.Ei).withConfig({componentId:"sc-a109553a-0"})(["position:relative;display:flex;align-items:center;padding:11px;box-sizing:border-box;background:",";outline:none;border:1px solid ",";border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.06);"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.gray10}),tF=(0,A.default)(y.H2).withConfig({componentId:"sc-a109553a-1"})(["margin-left:12px;margin-right:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),tH=(0,A.default)(y.In).withConfig({componentId:"sc-a109553a-2"})(["margin-left:auto;justify-self:flex-end;"]);var tO=n(64240),tM=n(41682);function t$(){return(0,a.jsxs)(tB,{children:[(0,a.jsx)(y.o5,{variant:"captionSmallUppercase",color:"gray50",children:"Views"}),(0,a.jsxs)(tV,{children:[(0,a.jsx)(y.In,{component:tM.A,size:16}),(0,a.jsx)(y.o5,{variant:"captionBold",children:"Unlimited"})]})]})}let tB=A.default.div.withConfig({componentId:"sc-14977fd4-0"})(["display:flex;justify-content:flex-end;align-items:center;gap:8px;color:",";"],e=>{let{theme:t}=e;return t.colors.black}),tV=A.default.div.withConfig({componentId:"sc-14977fd4-1"})(["display:flex;gap:4px;"]);var tq=((i=tq||{}).SUCCESS="linear-gradient(270deg, #11c031 0%, #33de3a 100%)",i.WARNING="linear-gradient(270deg, #ff7a00 0%, #f8c307 100%)",i.ALERT="#ff5342",i);function tz(e){let{limitUsage:t,...n}=e;if(null===t)return null;let i=(0,H.useMemo)(()=>t>=e7.X.RED?"#ff5342":t>=e7.X.ORANGE?"linear-gradient(270deg, #ff7a00 0%, #f8c307 100%)":"linear-gradient(270deg, #11c031 0%, #33de3a 100%)",[t]);
1return(0,a.jsx)(tK,{...n,children:(0,a.jsx)(tX,{children:(0,a.jsx)(tJ,{_color:i,_width:100*t})})})}let tK=A.default.div.withConfig({componentId:"sc-a5334e1f-0"})(["display:flex;flex-direction:column;flex-grow:1;flex-basis:100%;align-items:flex-end;"]),tX=A.default.div.withConfig({componentId:"sc-a5334e1f-1"})(["width:100%;height:6px;border-radius:6px;overflow:hidden;background:",";"],e=>{let{theme:t}=e;return t.colors.gray10}),tJ=A.default.div.withConfig({componentId:"sc-a5334e1f-2"})(["height:100%;min-width:0;border-radius:6px;width:",";background:",";"],e=>{let{_width:t}=e;return`${t}%`},e=>{let{_color:t}=e;return t});function tY(e){let{limit:t,count:n,usage:i,countingPeriodEndsAt:o,title:s,...r}=e;if(null===t)return(0,a.jsx)(t$,{});let l=o?(0,y._Q)((0,tA.A)(new Date(o),1)):"",d=n>t?t:n;return(0,a.jsx)(tQ,{...r,children:(0,a.jsxs)(t4,{children:[(0,a.jsxs)(tZ,{children:[(0,a.jsx)(y.o5,{variant:"captionSmallUppercase",color:"gray50",children:s}),(0,a.jsx)(t0,{children:(0,a.jsxs)(t1,{children:[(0,y.a)(d)," /"," ",(0,y.a)(t)]})})]}),(0,a.jsx)(tz,{limitUsage:i}),(0,a.jsx)(t2,{children:l&&`Resets on ${l}`})]})})}let tQ=A.default.div.withConfig({componentId:"sc-fb0d304a-0"})(["display:flex;flex-direction:column;"]),tZ=A.default.div.withConfig({componentId:"sc-fb0d304a-1"})(["display:flex;justify-content:space-between;gap:8px;align-items:center;color:",";"],e=>{let{theme:t}=e;return t.colors.black}),t0=A.default.div.withConfig({componentId:"sc-fb0d304a-2"})(["display:flex;"]),t1=A.default.span.withConfig({componentId:"sc-fb0d304a-3"})(["",";color:",";"],e=>{let{theme:t}=e;return t.font.captionBold},e=>{let{theme:t}=e;return t.colors.black}),t2=A.default.span.withConfig({componentId:"sc-fb0d304a-4"})(["height:11px;font-size:9px;line-height:11px;font-weight:400;text-align:right;color:",";text-transform:uppercase;","{text-align:left;}"],e=>{let{theme:t}=e;return t.colors.gray50},tO.gp),t4=A.default.div.withConfig({componentId:"sc-fb0d304a-5"})(["display:flex;flex-direction:column;gap:4px;"]);function t3(e){let{count:t,limit:n,usage:i,countingPeriodEndsAt:o,title:s,tooltipContent:r,onClick:l,...d}=e;return(0,a.jsx)(y.m_,{content:r,children:(0,a.jsx)(t6,{variation:"text",height:null===n?32:58,padding:12,onClick:l,...d,children:(0,a.jsx)(tY,{title:s,limit:n,usage:i,count:t,countingPeriodEndsAt:o})})})}let t6=(0,A.default)(y.$n).withConfig({componentId:"sc-a6ab6182-0"})([""]);function t5(e){let{limit:t,totalCount:n}=e,{openModal:i}=(0,b.V)();return(0,a.jsx)(y.m_,{content:"Learn more about widget limit",children:(0,a.jsx)(y.$n,{variation:"text",padding:12,disableShrink:!0,onClick:()=>{i(eu.K.WIDGETS_LIMIT)},height:32,children:(0,a.jsxs)(t8,{children:[(0,a.jsx)(y.o5,{variant:"captionSmallUppercase",color:"gray50",children:"Widgets\xa0"}),(0,a.jsxs)(t7,{variant:"captionBold",color:n>t?"alert":"black",children:[(0,y.a)(n)," / ",(0,y.a)(t)]})]})})})}let t8=A.default.div.withConfig({componentId:"sc-22e8720c-0"})(["display:flex;align-items:center;"]),t7=(0,A.default)(y.o5).withConfig({componentId:"sc-22e8720c-1"})(["margin-left:8px;"]);function t9(e){let{...t}=e,{openModal:n}=(0,b.V)(),{data:i,isFetched:o,isError:s}=(0,u.B4)();return i&&o&&!s?(0,a.jsx)(t3,{limit:i.messagesLimit,usage:i.messagesUsage,count:i.messagesCount,countingPeriodEndsAt:i.messagesCountingPeriod?.endsAt??null,title:"Messages",tooltipContent:"Learn more about message limit",onClick:()=>{n(eu.K.AI_CHATBOT_LIMIT)},...t}):null}function ne(){let{beacon:e}=(0,tP.U)(),{data:t}=(0,u.B4)();if(!t)return null;let n=t.messagesCountingPeriod?(0,y._Q)((0,tA.A)(new Date(t.messagesCountingPeriod.endsAt),1)):"",i=((1-t.messagesUsage)*100).toFixed(),o=(0,a.jsx)(y.N_,{underline:!0,onClick:()=>e.article(tE.xj.aiChatbotLimit.id),children:"Learn more about messages"});return t.messagesUsage>=e7.X.BLOCKED?(0,a.jsxs)(y.H4,{color:"alert",children:["Deactivated due to message limit reached\xa0",(0,a.jsx)(y.Ck,{width:300,iconColor:"alert",withSafePolygon:!0,content:(0,a.jsxs)(a.Fragment,{children:["Deactivated widgets no longer work on your website until messages reset on ",n,". To continue using AI Chatbot app, upgrade to a higher plan. ",o]})})]}):t.messagesUsage>=e7.X.RED?(0,a.jsxs)(y.H4,{color:"alert",children:[i,"% of message limit left\xa0",(0,a.jsx)(y.Ck,{width:300,iconColor:"alert",withSafePolygon:!0,content:(0,a.jsxs)(a.Fragment,{children:["When your message limit is over, your widgets won’t be displayed on your website until messages reset on ",n,". Upgrade AI Chatbot now to continue using it without any interruption."," ",o]})})]}):t.messagesUsage>=e7.X.ORANGE?(0,a.jsxs)(y.H4,{color:"warning",children:[i,"% of message limit left\xa0",(0,a.jsx)(y.Ck,{width:300,iconColor:"warning",withSafePolygon:!0,content:(0,a.jsxs)(a.Fragment,{children:["When your message limit is over, your widgets won’t be displayed on your website until messages reset on ",n,". Upgrade AI Chatbot now to continue using it without any interruption."," ",o]})})]}):null}function nt(e){let{appInfo:t,reverseOrder:n=!1}=e,{openModal:i,showAIChatbotLimit:o}=(0,b.V)(),{appUsage:s,widgetsTotalCount:r}=t,{widgetsLimit:l,viewsLimit:d,viewsUsage:c,viewsCount:p,viewsCountingPeriod:g}=s,{isError:f}=(0,u.B4)({enabled:o}),h=o&&!f;return(0,a.jsxs)(ni,{$reverseOrder:n,children:[(0,a.jsx)(t5,{limit:l,totalCount:r}),(0,a.jsxs)(nn,{$showAIChatbotLimit:h,children:[(0,a.jsx)(t3,{limit:d,usage:c,count:p,countingPeriodEndsAt:g.endsAt,title:"Views",tooltipContent:"Learn more about view limit and usage",onClick:()=>{i(eu.K.STATS)}}),h&&(0,a.jsx)(t9,{})]})]})}let nn=A.default.div.withConfig({componentId:"sc-8226becc-0"})(["display:flex;gap:8px;","{min-width:186px;}","{gap:8px 0;",";}"],t6,tO.A8,e=>{let{$showAIChatbotLimit:t}=e;return t&&(0,A.css)(["width:100%;","{width:100%;min-width:auto;}"],t6)}),ni=A.default.div.withConfig({componentId:"sc-8226becc-1"})(["display:flex;gap:8px;margin-left:-12px;margin-right:-12px;flex-wrap:wrap;",";","{gap:8px 0;}"],e=>{let{$reverseOrder:t=!1}=e;return t&&(0,A.css)(["","{order:-1;}"],nn)},tO.A8);function no(e){let{hasNotWidgets:t,isPlanButtonShow:n,isWarningNoteShow:i,isAIChatbotWarningNoteShow:o,isUnconfirmedLitePlan:s,appInfo:r,upgradeURL:l,limitWarningAppsCount:d}=e;return(0,a.jsxs)(na,{children:[(0,a.jsx)(tG,{appInfo:r,badge:d,showPlanBadge:!n}),i&&(0,a.jsx)(nr,{children:(0,a.jsx)(tS,{appInfo:r})}),o&&(0,a.jsx)(nr,{children:(0,a.jsx)(ne,{})}),(0,a.jsxs)(ns,{children:[n&&(0,a.jsx)(nl,{children:(0,a.jsx)(y.$n,{href:l,variation:t?"successSecondary":"successPrimary",children:s?"Select Plan":"Upgrade"})}),(0,a.jsx)(nt,{appInfo:r,reverseOrder:!0})]})]})}let na=A.default.div.withConfig({componentId:"sc-cec28999-0"})(["display:flex;flex-direction:column;justify-content:space-between;gap:20px;box-sizing:border-box;margin:0 -20px;padding:32px 20px;background:",";"],e=>{let{theme:t}=e;return t.colors.background}),ns=A.default.div.withConfig({componentId:"sc-cec28999-1"})(["display:flex;gap:20px;flex-direction:column-reverse;"]),nr=A.default.div.withConfig({componentId:"sc-cec28999-2"})(["display:flex;flex-direction:column;gap:12px;"]),nl=A.default.div.withConfig({componentId:"sc-cec28999-3"})([""]);
1function nd(e){let{hasNotWidgets:t,isPlanButtonShow:n,isWarningNoteShow:i,isAIChatbotWarningNoteShow:o,isUnconfirmedLitePlan:s,appInfo:r,upgradeURL:d}=e,{push:c}=(0,l.useRouter)(),p=(0,y.$P)({maxWidth:tO.JG});return(0,a.jsxs)(np,{_alignItemsCenter:!n,children:[(0,a.jsxs)(ng,{children:[(0,a.jsxs)(nu,{children:[(0,a.jsx)(y.H1,{children:r.app.name}),(0,a.jsx)(y.m_,{content:"Your current app plan",children:(0,a.jsx)(nc,{onClick:()=>{c(d)},planType:r.plan.type,planGrade:r.plan.grade,isLitePlanSubscriptionConfirmed:r.isLitePlanSubscriptionConfirmed})})]}),i&&(0,a.jsx)(nh,{children:(0,a.jsx)(tS,{appInfo:r})}),o&&(0,a.jsx)(nh,{children:(0,a.jsx)(ne,{})}),n&&(0,a.jsx)(nf,{children:(0,a.jsx)(y.$n,{href:d,variation:t?"successSecondary":"successPrimary",children:s?"Select Plan":"Upgrade"})})]}),(0,a.jsx)(nt,{appInfo:r,reverseOrder:p})]})}let nc=(0,A.default)(t_).withConfig({componentId:"sc-7ae4c55e-0"})(["cursor:pointer;"]),np=A.default.div.withConfig({componentId:"sc-7ae4c55e-1"})(["display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;box-sizing:border-box;",";","{flex-direction:column;align-items:flex-start;}","{margin:0 -20px;padding:32px 20px;background:",";}"],e=>{let{_alignItemsCenter:t}=e;return t&&(0,A.css)(["align-items:center;"])},tO.gp,y.ND,e=>{let{theme:t}=e;return t.colors.background}),nu=A.default.div.withConfig({componentId:"sc-7ae4c55e-2"})(["display:flex;align-items:center;gap:8px;"]),ng=A.default.div.withConfig({componentId:"sc-7ae4c55e-3"})(["display:flex;flex-direction:column;gap:12px;"]),nf=A.default.div.withConfig({componentId:"sc-7ae4c55e-4"})([""]),nh=A.default.div.withConfig({componentId:"sc-7ae4c55e-5"})(["display:flex;flex-direction:column;gap:12px;"]);function nx(e){let{hasNotWidgets:t,isMobile:n}=e,{currentAppInfo:i,installedApps:o={payload:[]},isCurrentAppInstalled:s}=(0,b.V)(),{currentAppAlias:r}=(0,O.cN)(),l=r===tv.Gq&&s,{data:d,isPending:c}=(0,u.B4)({enabled:l}),p=(0,el.a)({appAlias:r,appViewsUsage:i?.appUsage?.viewsUsage,aiChatbotMessagesUsage:d?.messagesUsage});if(!i||!r||!o||c&&l)return(0,a.jsx)(y.aH,{});let g=i.isLiteSubscription&&!i.isLitePlanSubscriptionConfirmed,f=i.appUsage?.viewsUsage!==null&&i.appUsage?.viewsUsage>=e7.X.ORANGE||i.isLiteSubscription,h=o.payload.filter(e=>(0,el.a)({appAlias:e.alias,appViewsUsage:e.viewsUsage,aiChatbotMessagesUsage:d?.messagesUsage})!==el.S.LIMIT_NOT_REACHED).length,x=p===el.S.APP_VIEWS_LIMIT,m=p===el.S.AI_CHATBOT_MESSAGES_LIMIT,w=(0,E.gR)({app:i.app.alias,headerCloseURL:`/apps/${r}`,redirectURL:`/apps/${i.app.alias}`});return n?(0,a.jsx)(no,{hasNotWidgets:t,appInfo:i,isPlanButtonShow:f,isUnconfirmedLitePlan:g,isWarningNoteShow:x,isAIChatbotWarningNoteShow:m,upgradeURL:w,limitWarningAppsCount:h}):(0,a.jsx)(nd,{hasNotWidgets:t,appInfo:i,isPlanButtonShow:f,isUnconfirmedLitePlan:g,isWarningNoteShow:x,isAIChatbotWarningNoteShow:m,upgradeURL:w})}function nm(){let{isCurrentAppInstalled:e,isCurrentAppInfoLoading:t}=(0,b.V)(),{currentAppAlias:n}=(0,f.cN)(),i=(0,f.al)(),o=(0,v.U)(),{data:{payload:s}={payload:[]},isLoading:r,isFetchedAfterMount:l}=(0,u.BP)(o),{data:d={payload:[]},isLoading:c}=(0,u.jd)(),p=!s.length&&!o.search,g=d.payload.find(e=>e.alias===n);return r&&l||t&&e||c?(0,a.jsx)(y.aH,{}):e||g?(0,a.jsxs)(a.Fragment,{children:[e?(0,a.jsx)(nx,{hasNotWidgets:p,isMobile:i}):(0,a.jsx)(F,{appAlias:n,isMobile:i}),(0,a.jsx)(tf,{})]}):(0,a.jsx)(tj,{})}function nw(){let e=(0,f.al)(),{query:t,pathname:n,replace:i}=(0,l.useRouter)(),{currentAppAlias:o}=(0,f.cN)(),{currentAppInfo:r}=(0,b.V)(),{isPaddleBilling:d}=(0,m.H)(),[y]=(0,w.H)(h.FS),[v]=(0,p.pk)(x.GJ),[A]=(0,p.pk)(x.sl),[E]=(0,w.H)(x.dk),[P]=(0,w.H)(h.SI),{data:S,isFetched:L}=(0,u.PF)(o),{data:T}=(0,u.Y1)(v,{meta:{expectedErrors:[c.rJ.WIDGET_DOES_NOT_EXIST]}}),k=(0,C.sd)(),_={VERIFICATION_EMAIL:(0,a.jsx)(s.E0,{margin:e?[20,40]:[0,40]}),CHOOSE_OCCUPATION:(0,a.jsx)(s.Tb,{margin:e?[20,40]:[0,40]}),CHOOSE_PREFERRED_MONETIZATION:(0,a.jsx)(s.Cy,{margin:e?[20,40]:[0,40]}),DEFAULT:null}[k||"DEFAULT"],D=()=>{let e={...t};delete e[h.FS],delete e[h.SI],i({pathname:n,query:e})},R=v||S?.widget?.pid,N=v?T?.name:S?.widget?.name,U=L&&!!R&&!!r,G=(!!A||!!v)&&(!E||!!v);return(0,a.jsxs)(s.Ad,{headerActivePage:"/apps",header:(0,a.jsx)(g.Y9,{}),leftSidebar:(0,a.jsx)(I.e,{}),children:[(0,a.jsx)(s.ss,{_paddingMobile:[0,60],children:(0,a.jsxs)(s.nv,{_width:900,_flexVertical:!0,children:[_,(0,a.jsx)(nm,{})]})}),U&&(0,a.jsx)(x.rp,{plan:r.plan,appAlias:o,isOpen:G,widgetPid:R,widgetName:N||"",appName:r.app.name}),d?(0,a.jsx)(j.a,{isOpen:!!y,onRequestClose:D}):(0,a.jsx)(h.LX,{isOpen:!!y,onRequestClose:D,secondAppDealPromising:P})]})}let nj=()=>(0,a.jsx)(eu.q,{children:(0,a.jsx)(r.im,{children:(0,a.jsx)(nw,{})})}),nI=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.pD,{title:"My Apps"}),(0,a.jsx)(nj,{})]});nI.config={welcomeMessageEnabled:!0};let nb=nI}},e=>{e.O(0,[8238,6839,2911,8878,6593,636,8792],()=>e(e.s=38654)),_N_E=e.O()}]);

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.