| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/leapdubai/public_html/wp-content/plugins/tablepress/admin/js/build/ |
Upload File : |
(()=>{"use strict";const e={n:t=>{const r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{if(Array.isArray(r))for(var s=0;s<r.length;){var l=r[s++],o=r[s++];e.o(t,l)?0===o&&s++:0===o?Object.defineProperty(t,l,{enumerable:!0,value:r[s++]}):Object.defineProperty(t,l,{enumerable:!0,get:o})}else for(var l in r)e.o(r,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:r[l]})},o:(e,t)=>Object.hasOwn(e,t)},t=window.wp.i18n,r=e=>"#"===e[0]?document.getElementById(e.slice(1)):document.querySelectorAll(e),s=window.React,l=window.ReactDOM,o=window.wp.domReady;var n=e.n(o);window.wp.hooks;const a=window.ReactJSXRuntime,i=window.wp.components,c=window.wp.compose,d=window.wp.data,h=window.wp.primitives;var p=(0,a.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(h.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),v=(0,a.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(h.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});const u=window.wp.notices,w=(0,a.jsxs)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"-50 -50 100 100",fill:"#fff",children:[(0,a.jsx)(h.Circle,{r:"42",fill:"#16a34a"}),(0,a.jsx)(h.Path,{d:"M0-25.854h-25.854v51.708h51.708V0H21v21h-42v-42H0Z"}),(0,a.jsx)(h.Path,{d:"M-18-18h10v10h-10zM-18-5h10V5h-10zM-5-5H5V5H-5zM-18 8h10v10h-10zM-5 8H5v10H-5zM8 8h10v10H8zM5-31h6.18v6.18H5zM19-25h6.18v6.18H19zM0-15h3.82v3.82H0zM10-20h3.82v3.82H10zM25-12h3.82v3.82H25zM8-13h10v10H8z"})]}),m=(0,a.jsxs)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"-32 -32 64 64",fill:"#fff",children:[(0,a.jsx)(h.Path,{d:"M0-25.854h-25.854v51.708h51.708V0H21v21h-42v-42H0Z"}),(0,a.jsx)(h.Path,{d:"M-18-18h10v10h-10zM-18-5h10V5h-10zM-5-5H5V5H-5zM-18 8h10v10h-10zM-5 8H5v10H-5zM8 8h10v10H8zM5-31h6.18v6.18H5zM19-25h6.18v6.18H19zM0-15h3.82v3.82H0zM10-20h3.82v3.82H10zM25-12h3.82v3.82H25zM8-13h10v10H8z"})]}),x=()=>{const{removeNotice:e}=(0,d.useDispatch)(u.store),t=(0,d.useSelect)(e=>e(u.store).getNotices(),[]).filter(({type:e})=>"snackbar"===e);return 0===t.length?null:(0,a.jsx)(i.SnackbarList,{notices:t,onRemove:e})},f=({title:e,url:r,onRequestClose:s})=>(0,a.jsx)(i.Modal,{icon:(0,a.jsx)(i.Icon,{icon:w,size:"36",style:{display:"flex",marginRight:"1rem"}}),title:e,className:"table-preview-modal",onRequestClose:s,size:"fill",headerActions:(0,a.jsx)(i.Button,{icon:p,size:"compact",label:(0,t.__)("Open the preview in a new tab","tablepress"),href:r,target:"_blank"}),children:(0,a.jsx)("iframe",{title:e,src:r})}),b=({shortcode:e,onRequestClose:r})=>{const{createSuccessNotice:s}=(0,d.useDispatch)(u.store),l=(0,c.useCopyToClipboard)(e,()=>{r(),s((0,t.__)("Copied Shortcode to clipboard.","tablepress"),{type:"snackbar",icon:(0,a.jsx)(i.Icon,{icon:m})})});return(0,a.jsx)(i.Modal,{icon:(0,a.jsx)(i.Icon,{icon:w,size:"36",style:{display:"flex",marginRight:"1rem"}}),title:(0,t.__)("Table Shortcode","tablepress"),onRequestClose:r,children:(0,a.jsxs)(i.__experimentalVStack,{children:[(0,a.jsx)("span",{children:(0,t.__)("To embed this table into a post or page, use this Shortcode:","tablepress")}),(0,a.jsx)(i.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"text",id:"table-information-shortcode",value:e,onFocus:e=>e.target.select(),readOnly:!0,suffix:(0,a.jsx)(i.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,a.jsx)(i.Button,{icon:v,ref:l,size:"small",label:(0,t.__)("Copy Shortcode to clipboard","tablepress")})})})]})})},g=({title:e,deleteUrl:r,closeConfirmDeleteModal:l})=>{const o=(0,s.useRef)(),n=(0,s.useRef)(),c=(0,s.useCallback)(e=>{e.target===o.current||e.target===n.current||"Enter"!==e.key||n.current.click()},[]);return(0,a.jsx)(i.Modal,{size:"medium",icon:(0,a.jsx)(i.Icon,{icon:w,size:"36",style:{display:"flex",marginRight:"1rem"}}),title:e,isDismissible:!1,onKeyDown:c,onRequestClose:l,children:(0,a.jsxs)(i.__experimentalVStack,{spacing:8,children:[(0,a.jsxs)("span",{children:[(0,t._n)("Do you really want to delete this table?","Do you really want to delete these tables?",1,"tablepress"),(0,a.jsx)("br",{}),(0,t.__)("Deleting a table is permanent and can not be undone!","tablepress")]}),(0,a.jsxs)(i.__experimentalHStack,{alignment:"right",children:[(0,a.jsx)(i.Button,{ref:o,variant:"tertiary",text:(0,t.__)("Cancel","tablepress"),onClick:l}),(0,a.jsx)(i.Button,{ref:n,variant:"primary",isDestructive:!0,href:r,text:(0,t.__)("Delete","tablepress"),onClick:l})]})]})})},j=()=>{const[e,t]=(0,s.useState)({previewIsOpen:!1,previewUrl:"",previewTitle:"",shortcode:"",shortcodeModalIsOpen:!1}),r=e=>{t(t=>({...t,...e}))};return(0,s.useEffect)(()=>{const e=e=>{if(e.target)return e.target.matches(".table-preview a")&&!(e.ctrlKey||e.metaKey||e.shiftKey)?(r({previewIsOpen:!0,previewUrl:e.target.href,previewTitle:e.target.title}),void e.preventDefault()):e.target.matches(".shortcode a")?(r({shortcode:e.target.title,shortcodeModalIsOpen:!0}),void e.preventDefault()):e.target.matches(".delete a")?(r({confirmDeleteUrl:e.target.href,confirmDeleteTitle:e.target.title,confirmDeleteModalIsOpen:!0}),void e.preventDefault()):void 0};return document.querySelector(".tablepress-all-tables").addEventListener("click",e),()=>{document.querySelector(".tablepress-all-tables").removeEventListener("click",e)}},[]),(0,a.jsxs)(a.Fragment,{children:[e.previewIsOpen&&(0,a.jsx)(f,{title:e.previewTitle,url:e.previewUrl,onRequestClose:()=>r({previewIsOpen:!1})}),e.shortcodeModalIsOpen&&(0,a.jsx)(b,{shortcode:e.shortcode,onRequestClose:()=>r({shortcodeModalIsOpen:!1})}),e.confirmDeleteModalIsOpen&&(0,a.jsx)(g,{title:e.confirmDeleteTitle,deleteUrl:e.confirmDeleteUrl,closeConfirmDeleteModal:()=>r({confirmDeleteModalIsOpen:!1})}),(0,a.jsx)(x,{})]})};document.querySelectorAll("#tablepress-page .ajax-link").forEach(e=>{e.addEventListener("click",e=>{fetch(`${ajaxurl}?${e.target.href.split("?")[1]}`).then(e=>e.text()).then(t=>{"1"===t&&"hide_message"===e.target.dataset.action&&e.target.closest(".notice").remove()}),e.preventDefault()})});const M=r("#doaction");var y;M&&M.addEventListener("click",e=>{window.bulkActionObserverIds.bulk_action="bulk-action-selector-top";const s=r("#bulk-action-selector-top").value,l=r(".tablepress-all-tables tbody input:checked").length;"delete"!==s||confirm((0,t._n)("Do you really want to delete this table?","Do you really want to delete these tables?",l,"tablepress"))||e.preventDefault()}),y=(0,a.jsx)(j,{}),n()(()=>{const e=document.getElementById("tablepress-list-screen");e&&(0,l.createRoot)(e).render(y)})})();