403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.117.196.112
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/build/blocks/post-tab/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/build/blocks/post-tab/index.js
(()=>{var t,e,r,a={8721:(t,e,r)=>{"use strict";const a=window.wp.blocks,o=window.wp.blockEditor;var i=r(6087),s=r(6942),n=r.n(s);const l=t=>{const e=t.target,r=e.getAttribute("data-category-id"),a=e.closest(".gkit-post-tab"),o=e.closest(".tab__list").childNodes;Array.from(o).filter((t=>t.nodeType===Node.ELEMENT_NODE&&t!==e)).map((t=>t.classList.remove("active"))),e.classList.add("active"),a.querySelectorAll(".tab-item").forEach((t=>{t.getAttribute("data-category-id")===r?t.classList.add("active"):t.classList.remove("active")}))};var c=r(790);const d=({category:t,index:e,eventType:r})=>{const a=0===e?"active":"",o={};return"mouseenter"===r?o.onMouseEnter=l:o.onClick=l,(0,c.jsx)("span",{className:`tab__list__item ${a}`,"data-category-id":t.value,...o,children:t.label})};var u=r(1455),p=r.n(u);r(7723);const b=function({post:t,attributes:e}){const r=t.featured_media,[a,o]=(0,i.useState)(""),{truncateWords:s,placeholderImage:n}=window.gutenkit.helpers;return(0,i.useEffect)((()=>{r?p()({path:`/wp/v2/media/${r}`}).then((t=>{o(t?.source_url)})).catch((t=>{console.error(t)})):o(n)}),[r]),(0,c.jsx)("div",{className:"tab__post__single--item",children:(0,c.jsxs)("div",{className:"tab__post__single--inner",children:[(0,c.jsx)("a",{href:"#",className:"tab__post--header","aria-label":"url",children:(0,c.jsx)("img",{src:a,alt:t.title.rendered,className:"gutenkit-post-tab-thumbnail-image"})}),(0,c.jsx)("h3",{className:"tab__post--title",children:(0,c.jsx)("a",{href:"#",children:e?.enableCropTitle?s(t.title.rendered,e?.numberOfWordsTitle):t.title.rendered})})]})})},g=({category:t,attributes:e,index:r})=>{const a=0===r?"active":"",[o,s]=(0,i.useState)([]);return(0,i.useEffect)((()=>{p()({path:`/wp/v2/posts?categories=${t.value}&per_page=${e.postCount}`}).then((t=>{s(t)})).catch((t=>{console.error(t)}))}),[e.postCount]),(0,c.jsxs)("div",{className:`tab-item ${a}`,"data-category-id":t.value,children:[o.map(((t,r)=>(0,c.jsx)(b,{post:t,attributes:e},r))),(0,c.jsx)("div",{className:"clearfix"})]})},_=(0,i.lazy)((()=>r.e(7787).then(r.bind(r,168)))),m=JSON.parse('{"UU":"gutenkit/post-tab"}'),{postTab:h}=window.gutenkit.editorIcon;(0,a.registerBlockType)(m.UU,{edit:function({attributes:t,setAttributes:e,advancedControl:r,isSelected:a}){const{GkitStyle:s,GkitSuspense:l}=window.gutenkit.components,{useDeviceType:u,useBlockStyles:b,useDeviceList:m}=window.gutenkit.helpers,h=m(),v=(0,o.useBlockProps)(),f=u(),y={className:n()("gkit-post-tab","post--tab"),"data-event":t.eventType},[w,k]=(0,i.useState)([]);return(0,i.useEffect)((()=>{0===t?.selectedCatagories.length?p()({path:"/wp/v2/categories?per_page=15"}).then((t=>{const e=t.map((t=>({label:t?.name,value:t?.id})));k(e)})).catch((t=>{console.error(t)})):k(t?.selectedCatagories)}),[t?.selectedCatagories]),b(t,e,"blocksCSS",((t,e)=>{const{parseCSS:r,backgroundGenerator:a,getBoxShadowValue:o,getBoxValue:i,getBorderValue:s,getTypographyValue:n,getSliderValue:l,getColor:c}=window.gutenkit.helpers,d=t.blockClass;return r([[{selector:`.${d} .post--tab .tab-header .tab__list`,...s(t?.tabContainerBorder),background:a(t?.tabContainerBackground).background},{selector:`.${d} .post--tab .tab-header .tab__list .tab__list__item`,...s(t?.itemBorder),background:a(t?.itemBgColor).background,color:c(t?.itemTextColor),"box-shadow":o(t?.itemShadow)},{selector:`.${d} .post--tab .tab-header .tab__list .tab__list__item:hover`,...s(t?.itemHoverBorder),background:a(t?.itemHoverBgColor).background,color:c(t?.itemHoverColor),"box-shadow":o(t?.itemHoverShadow)},{selector:`.${d} .post--tab .tab-header .tab__list .tab__list__item.active`,...s(t?.itemActiveBorder),background:a(t?.itemActiveBgColor).background,color:c(t?.itemActiveColor),"box-shadow":o(t?.itemActiveShadow)},{selector:`.${d} .gkit--tab__post__details .tab__post__single--item:hover .tab__post--header > img`,transform:t?.disableHoverEffect&&"none"},{selector:`.${d} .gkit--tab__post__details .tab__post--title > a`,color:c(t?.titleColor)},{selector:`.${d} .tab__post__single--item:hover .tab__post--title > a`,color:c(t?.titleHoverColor)}],e=>{let r={};return"horizontal"===t[`tabPosition${e}`]?(r["flex-direction"]="row",r["justify-content"]=t[`tabAlignment${e}`],r["flex-wrap"]="wrap"):r["justify-content"]=t[`tabJustify${e}`],[{selector:`.${d}`,"grid-template-columns":`repeat(${t[`selectColumn${e}`]}, 1fr)`,gap:l(t[`gap${e}`])},{selector:`.${d} .post--tab .tab-header .tab__list`,...i(t[`tabContainerMargin${e}`],"margin"),...i(t[`tabContainerPadding${e}`],"padding")},{selector:`.${d} .post--tab .tab-header .tab__list .tab__list__item`,...n(t.itemTypography,`${e}`),...i(t[`itemMargin${e}`],"margin"),...i(t[`itemPadding${e}`],"padding"),...i(t[`itemBorderRadius${e}`],"border-radius")},{selector:`.${d} .post--tab .tab-header .tab__list .tab__list__item:hover`,...i(t[`itemHoverBorderRadius${e}`],"border-radius")},{selector:`.${d} .post--tab .tab-header .tab__list .tab__list__item.active`,...i(t[`itemActiveBorderRadius${e}`],"border-radius")},{selector:`.${d} .gkit--tab__post__details .tab__post--title`,...n(t.titleTypography,`${e}`),...i(t[`titleMargin${e}`],"margin"),"text-align":t[`contentAlignment${e}`]},{selector:`.${d} .gkit--tab__post__details .tab__post__single--item`,width:t[`selectColumn${e}`]},{selector:`.${d} .gkit-post-tab--horizontal .tab__list`,"justify-content":"horizontal"===t[`tabPosition${e}`]&&t[`tabAlignment${e}`]},{selector:`.${d} .post--tab .tab-header .tab__list`,...r},{selector:`.${d} .post--tab`,display:"horizontal"===t[`tabPosition${e}`]&&"block"},{selector:`.${d} .gkit--tab__post__details .tab__post--header>img`,width:l(t[`imageWidth${e}`]),height:l(t[`imageHeight${e}`])},{selector:`.${d} .gkit--tab__post__details .tab__post--header`,"justify-content":t[`contentAlignment${e}`]},{selector:`.${d} .post--tab .tab-header`,"align-items":t[`tabJustify${e}`]}]}],e)})(t,h)),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s,{blocksCSS:t?.blocksCSS}),a&&(0,c.jsx)(l,{children:(0,c.jsx)(_,{attributes:t,setAttributes:e,device:f,advancedControl:r})}),(0,c.jsx)("div",{...v,children:(0,c.jsxs)("div",{...y,children:[(0,c.jsx)("div",{className:"tab-header",children:(0,c.jsx)("div",{className:"tab__list",children:w.map(((e,r)=>(0,c.jsx)(d,{category:e,index:r,eventType:t.eventType},r)))})}),(0,c.jsx)("div",{className:"gkit--tab__post__details tab-content",children:w.map(((e,r)=>(0,c.jsx)(g,{category:e,attributes:t,index:r},r)))})]})})]})},icon:{src:h},save:function(){return null}})},790:t=>{"use strict";t.exports=window.ReactJSXRuntime},1455:t=>{"use strict";t.exports=window.wp.apiFetch},6087:t=>{"use strict";t.exports=window.wp.element},7723:t=>{"use strict";t.exports=window.wp.i18n},5573:t=>{"use strict";t.exports=window.wp.primitives},6942:(t,e)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=s(t,i(r)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)a.call(t,r)&&t[r]&&(e=s(e,r));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return a[t](r,r.exports,i),r.exports}i.m=a,t=[],i.O=(e,r,a,o)=>{if(!r){var s=1/0;for(d=0;d<t.length;d++){r=t[d][0],a=t[d][1],o=t[d][2];for(var n=!0,l=0;l<r.length;l++)(!1&o||s>=o)&&Object.keys(i.O).every((t=>i.O[t](r[l])))?r.splice(l--,1):(n=!1,o<s&&(s=o));if(n){t.splice(d--,1);var c=a();void 0!==c&&(e=c)}}return e}o=o||0;for(var d=t.length;d>0&&t[d-1][2]>o;d--)t[d]=t[d-1];t[d]=[r,a,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,r)=>(i.f[r](t,e),e)),[])),i.u=t=>t+".js",i.miniCssF=t=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),e={},r="gutenkit-blocks-addon:",i.l=(t,a,o,s)=>{if(e[t])e[t].push(a);else{var n,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+o){n=u;break}}n||(l=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,i.nc&&n.setAttribute("nonce",i.nc),n.setAttribute("data-webpack",r+o),n.src=t),e[t]=[a];var p=(r,a)=>{n.onerror=n.onload=null,clearTimeout(b);var o=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),o&&o.forEach((t=>t(a))),r)return r(a)},b=setTimeout(p.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=p.bind(null,n.onerror),n.onload=p.bind(null,n.onload),l&&document.head.appendChild(n)}},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!t||!/^http(s?):/.test(t));)t=r[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t+"../../"})(),(()=>{var t={1369:0,1389:0};i.f.j=(e,r)=>{var a=i.o(t,e)?t[e]:void 0;if(0!==a)if(a)r.push(a[2]);else if(1389!=e){var o=new Promise(((r,o)=>a=t[e]=[r,o]));r.push(a[2]=o);var s=i.p+i.u(e),n=new Error;i.l(s,(r=>{if(i.o(t,e)&&(0!==(a=t[e])&&(t[e]=void 0),a)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",n.name="ChunkLoadError",n.type=o,n.request=s,a[1](n)}}),"chunk-"+e,e)}else t[e]=0},i.O.j=e=>0===t[e];var e=(e,r)=>{var a,o,s=r[0],n=r[1],l=r[2],c=0;if(s.some((e=>0!==t[e]))){for(a in n)i.o(n,a)&&(i.m[a]=n[a]);if(l)var d=l(i)}for(e&&e(r);c<s.length;c++)o=s[c],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(d)},r=self.webpackChunkgutenkit_blocks_addon=self.webpackChunkgutenkit_blocks_addon||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var s=i.O(void 0,[1389],(()=>i(8721)));s=i.O(s)})();

Youez - 2016 - github.com/yon3zu
LinuXploit