HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/public_html/wp-content/plugins/ovation-elements/build/index.js
(()=>{"use strict";var c={n:s=>{var e=s&&s.__esModule?()=>s.default:()=>s;return c.d(e,{a:e}),e},d:(s,e)=>{for(var l in e)c.o(e,l)&&!c.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:e[l]})},o:(c,s)=>Object.prototype.hasOwnProperty.call(c,s)};const s=window.wp.blocks,e=window.wp.components,l=window.wp.element,t=window.wp.apiFetch;var a=c.n(t);const r=window.ReactJSXRuntime,o={};o.slider=(0,r.jsxs)("svg",{id:"Layer_2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.56 22.07",children:[(0,r.jsx)("defs",{children:(0,r.jsx)("style",{children:".cls-1 {fill: #cee1f2;}.cls-2 {fill: none;stroke: #0023c4;stroke-width: .5px;}.cls-2, .cls-3 {stroke-miterlimit: 10;}.cls-4 {fill: #0023c4;}.cls-5, .cls-3 {fill: #ff5cf4;}.cls-3 {stroke: #ff5cf4;stroke-width: .25px;}"})}),(0,r.jsxs)("g",{id:"Layer_1-2","data-name":"Layer_1",children:[(0,r.jsx)("path",{class:"cls-4",d:"M19.76,0h-5.52c-1.33,0-2.41,1.08-2.41,2.42v8.62c0,1.33,1.08,2.41,2.41,2.41h5.52c1.33,0,2.41-1.08,2.41-2.41V3.11l-2.41-3.11ZM20.44,11.03c0,.38-.31.69-.69.69h-5.52c-.38,0-.69-.31-.69-.69V2.42c0-.38.31-.69.69-.69h5.03v.91c0,.26.19.48.43.48h.75v7.92Z"}),(0,r.jsx)("path",{class:"cls-1",d:"M3.45,19.65v-7.07c0-.86.7-1.55,1.55-1.55h-2.59c-.86,0-1.55.7-1.55,1.55v7.07c0,.86.7,1.55,1.55,1.55h2.59c-.86,0-1.55-.7-1.55-1.55Z"}),(0,r.jsx)("path",{class:"cls-4",d:"M2.41,7.28h5.34c1.33,0,2.41-.91,2.41-2.04v-3.2c0-1.12-1.08-2.04-2.41-2.04H2.41C1.08,0,0,.91,0,2.04v3.2c0,1.12,1.08,2.04,2.41,2.04ZM1.72,2.04c0-.32.31-.58.69-.58h5.34c.38,0,.69.26.69.58v3.2c0,.32-.31.58-.69.58H2.41c-.38,0-.69-.26-.69-.58v-3.2Z"}),(0,r.jsx)("path",{class:"cls-4",d:"M2.41,22.07h5.34c1.33,0,2.41-1.08,2.41-2.41v-7.07c0-1.33-1.08-2.41-2.41-2.41H2.41c-1.33,0-2.41,1.08-2.41,2.41v7.07c0,1.33,1.08,2.41,2.41,2.41ZM1.72,12.59c0-.38.31-.69.69-.69h5.34c.38,0,.69.31.69.69v7.07c0,.38-.31.69-.69.69H2.41c-.38,0-.69-.31-.69-.69v-7.07Z"}),(0,r.jsx)("circle",{class:"cls-4",cx:"5.21",cy:"8.75",r:".69"}),(0,r.jsx)("circle",{class:"cls-2",cx:"2.85",cy:"8.75",r:".56"}),(0,r.jsx)("circle",{class:"cls-2",cx:"7.57",cy:"8.75",r:".56"}),(0,r.jsx)("path",{class:"cls-5",d:"M21.01,19.09c-.4,0-.72.28-.72.62v.32c0,.44-.3.79-.67.79h-5.98c-.37,0-.67-.36-.67-.79v-1.88c0-.44.3-.79.67-.79h1.61c.4,0,.72-.28.72-.62h0c0-.34-.32-.62-.72-.62h-2c-.98,0-1.78.94-1.78,2.11v1.72c0,1.17.8,2.11,1.78,2.11h6.78c.98,0,1.78-.94,1.78-2.11v-.24c0-.34-.32-.62-.72-.62h-.07Z"}),(0,r.jsx)("path",{class:"cls-5",d:"M22.49,16.25l-2.14-2.22c-.07-.07-.18-.1-.27-.06-.09.04-.15.13-.15.23v1.07h-.08c-1.77,0-3.21,1.44-3.21,3.21v.49c0,.11.08.21.19.24.02,0,.04,0,.05,0,.09,0,.18-.05.23-.14.46-.93,1.4-1.5,2.43-1.5h.39v1.07c0,.1.06.19.15.23.09.04.2.01.27-.06l2.14-2.22c.09-.1.09-.25,0-.34Z"}),(0,r.jsx)("path",{class:"cls-3",d:"M7.59,3.77l.28-.28-.28-.28s-.02-.05,0-.06c.02-.02.04-.02.06,0l.31.31s.02.05,0,.06l-.31.31s-.05.02-.06,0c-.02-.02-.02-.04,0-.06h0Z"}),(0,r.jsx)("path",{class:"cls-3",d:"M2.41,3.77s.02.04,0,.06c-.02.02-.05.02-.06,0l-.31-.31s-.02-.05,0-.06l.31-.31s.04-.02.06,0c.02.02.02.05,0,.06l-.28.28.28.28h0Z"})]})]});const i=o;wp.blocks.updateCategory("ovation-sliders",{icon:i.slider}),(0,s.registerBlockType)("ova-elems/ovation-sliders",{title:"Ovation Sliders",icon:i.slider,category:"Ovation Sliders",attributes:{selectedPost:{type:"number",default:null}},edit:({attributes:c,setAttributes:s})=>{const{selectedPost:t}=c,[o,i]=(0,l.useState)([]),[n,d]=(0,l.useState)(!0);(0,l.useEffect)((()=>{(async()=>{let c=[],s=1,e=!0;for(;e;){const l=await a()({path:`/wp/v2/ova_elems?per_page=100&page=${s}`});c=[...c,...l],e=100===l.length,s++}return c})().then((c=>{i(c),d(!1)})).catch((c=>{console.error(c),d(!1)}))}),[]);const h=o.map((c=>({label:c.title.rendered,value:c.id})));return h.unshift({label:"Select a post",value:null}),(0,r.jsx)("div",{children:n?(0,r.jsx)("p",{children:"Loading posts..."}):(0,r.jsx)(e.SelectControl,{label:"Select a Post",value:t,options:h,onChange:c=>s({selectedPost:parseInt(c,10)})})})},save:({attributes:c})=>null})})();