PageSourceSearch

https://procontent.renewedvision.com/js/procontent/assets/Index-DdiegC8Q.js

js renewedvision.com collected 2026-10-02 03:13:31 UTC 4,003 bytes, 1 lines download raw bytes

1import{r as i,j as t,H as C,d as v}from"./app-CixExHVM.js";import{d as T}from"./licenseManager.helpers-DRmXV-4B.js";import N from"./SearchLanding-CKZYSXnH.js";import K from"./SearchField-QIuH5WoV.js";import M from"./LicenseResult-BEB9oWsm.js";import $ from"./ConfirmModal-CgHw2AyN.js";import B from"./EditExpirationModal-DepFi6CU.js";import"./Tooltip-Be3Rybpg.js";import"./button.styles-7lPNyjJO.js";import"./iconBase-C485EjPC.js";import"./index-Dkf2GVy1.js";import"./dayjs-C2eAEgLB.js";import"./useTranslation-BSo1Hx03.js";import"./helpers-Cll8zBE2.js";import"./SummaryCard-BGdMSiPO.js";import"./Meter-CayVgFF3.js";import"./Card-C4QeILP8.js";import"./CopyChip-DY4cgm9Q.js";import"./useCopied-uVVD2SJx.js";import"./LicenseStatusBadge-CU9H3PMU.js";import"./SeatsSection-CmBiP2h4.js";import"./SectionHeader-CCS0tFQr.js";import"./SectionTable-BXTqGeZb.js";import"./BiblesSection-C7MePRNR.js";import"./BibleActivitySection-CsSXW0X-.js";import"./OrdersSection-BY9m-Dot.js";function re({result:u,query:p}){const[s,d]=i.useState(p?.q??""),[b,g]=i.useState(!1),l=i.useRef(0),[y,o]=i.useState(null),[r,m]=i.useState(null),[f,h]=i.useState(!1),x=e=>{const n=(e??s).trim();n&&(d(n),v.get(route("admin.license-manager.index"),{type:T(n),q:n},{preserveState:!0,preserveScroll:!0,onStart:()=>{l.current+=1,g(!0)},onFinish:()=>{l.current=Math.max(0,l.current-1),l.current===0&&g(!1)}}))},c=(e,n,k)=>{v[e](route(n),k,{preserveScroll:!0,onStart:()=>h(!0),onFinish:()=>h(!1),onSuccess:()=>{o(null),m(null)}})},S=e=>{const n=e.isEnabled;o({title:n?"Disable this license code?":"Enable this license code?",body:n?"Disabling prevents all devices on this code from authenticating. They will be unable to launch ProPresenter.":"Re-enabling restores authentication for all devices on this code.",danger:n,confirmLabel:n?"Disable code":"Enable code",onConfirm:()=>c("post","admin.license-manager.license.status",{licenseKey:e.key,enable:!e.isEnabled})})},j=e=>{o({title:`Deactivate “${e.name}”?`,body:"This frees the seat so it can be used on another device, and deactivates the device’s Bible activations.",danger:!0,confirmLabel:"Deactivate seat",onConfirm:()=>c("post","admin.license-manager.seat.status",{activationKey:e.activationKey,enable:!1})})},E=e=>{o({title:`Deactivate ${e.abbv} on “${e.name}”?`,body:"This frees the Bible activation so it can be used on another device.",danger:!0,confirmLabel:"Deactivate",onConfirm:()=>c("post","admin.license-manager.bible.status",{activationKey:e.activationKey,bibleId:e.bibleId})})},D=e=>{r&&c("patch","admin.license-manager.maintenance-expiration",{licenseKey:r.key,expirationDate:e})},a=u?.licenses??[],L=a.length>0?`License Manager — ${a[0].name} (Code ending in ${a[0].key.slice(-5)})`:"License Manager";return t.jsxs(t.Fragment,{children:[t.jsx(C,{title:L}),!b&&!u?t.jsx(N,{value:s,onChange:d,onSubmit:x}):t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx("div",{className:"mb-4",children:t.jsx(K,{value:s,onChange:d,onSubmit:()=>x()})}),b?t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("div",{className:"h-28 animate-pulse rounded-lg border border-utility-stroke-tertiary bg-surface-base"}),t.jsx("div",{className:"h-64 animate-pulse rounded-lg border border-utility-stroke-tertiary bg-surface-base"})]}):a.length===0?t.jsxs("div",{className:"rounded-lg border border-utility-stroke-tertiary bg-surface-base px-5 py-10 text-center text-paragraph-1 text-type-black-secondary",children:["No licenses found for “",p?.q??s,"”."]}):t.jsxs("div",{className:"flex flex-col gap-8",children:[a.length>1&&t.jsxs("h2",{className:"text-heading-6-bold text-type-black-secondary",children:[a.length," results"]}),a.map(e=>t.jsx(M,{license:e,onToggleLicense:()=>S(e),onEditExpiration:()=>m(e),onToggleSeat:j,onDeactivateBible:E},e.key))]})]}),t.jsx($,{config:y,loading:f,onClose:()=>o(null)}),t.jsx(B,{open:r!==null,initialDate:r?.maintenanceExpirationDate??null,loading:f,onClose:()=>m(null),onSave:D},r?.key??"none")]})}export{re as default};

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.