File "ComputedFieldMore-1.0.13-c76766d6.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/wp-data-access/assets/dist/ComputedFieldMore-1.0.13-c76766d6.js
File size: 1.78 KB
MIME-type: text/x-java
Charset: utf-8

import{l as j,r as l,j as e}from"./main-1.0.13.js";import{l as g}from"./main-1.0.13-4cbe632d.js";import{C}from"./settings-1.0.13-650559d5.js";import{l as M,h as b}from"./index.esm-1.0.13-0afa0259.js";import{I as D}from"./iconBase-1.0.13-98e06aa9.js";import{M as E}from"./Menu-1.0.13-2a06ef00.js";import{M as a}from"./MenuItem-1.0.13-e7719456.js";import"./FormControlLabel-1.0.13-143a10df.js";import"./TextField-1.0.13-7258d491.js";import"./Close-1.0.13-b137ce2f.js";import"./useScreenSize-1.0.13-fa31f819.js";import"./DialogContent-1.0.13-5873ffb9.js";import"./AdminTheme-1.0.13-a1e60de2.js";import"./Tabs-1.0.13-f71c8d5c.js";const R=({index:r,computedField:p,prepareComputedFieldUpdate:m,deleteComputedField:c})=>{j.debug(r,p);const[i,t]=l.useState(null),n=!!i,d=o=>{t(o.currentTarget),o.stopPropagation()},u=()=>{t(null)},f=o=>{m(r),t(null),o.stopPropagation()},h=o=>{s(!0),t(null),o.stopPropagation()},[x,s]=l.useState(!1);return e.jsxs("div",{children:[e.jsx(D,{id:"pp-computed-field-more-button","aria-controls":n?"pp-computed-field-more-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,onClick:d,children:e.jsx(g,{})}),e.jsxs(E,{id:"pp-computed-field-more-menu",anchorEl:i,open:n,onClose:u,MenuListProps:{"aria-labelledby":"pp-computed-field-more-button"},sx:{zIndex:9999999999},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[e.jsxs(a,{onClick:f,children:[e.jsx(M,{}),e.jsx("span",{style:{marginLeft:"10px"},children:"Edit"})]}),e.jsxs(a,{onClick:h,children:[e.jsx(b,{}),e.jsx("span",{style:{marginLeft:"10px"},children:"Delete"})]})]}),e.jsx(C,{title:"Delete computed field?",message:"Are you sure you want to delete this computed field? This action cannot be undone!",open:x,setOpen:s,onConfirm:()=>c(r)})]})};export{R as default};