HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/chuair.org/wp-content/plugins/wd-framework/build/portfolio/index.js
!function(){"use strict";var e,a={2542:function(){var e=window.wp.element,a=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor;const{useState:t,useEffect:r}=wp.element;var n=JSON.parse('{"apiVersion":2,"name":"webdevia/portfolio","version":"0.1.0","title":"portfolio","category":"webdevia","description":"The Portfolio!","attributes":{"layout":{"type":"string","default":"grid"},"itemsToShow":{"type":"integer","default":3},"columns":{"type":"integer","default":3},"itemStyle":{"type":"string","default":"standard"},"showCatFilter":{"type":"boolean","default":false},"cssAnnimation":{"type":"string","default":"no"}},"supports":{"html":false,"align":["wide","full"]},"textdomain":"webdevia-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');const{name:i,...w}=n;(0,a.registerBlockType)(i,{...w,icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"wd-blocks-icon",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M7 5.5a1 1 0 0 0-1 1V13a.5.5 0 0 0 1 0v-2h1.188a2.75 2.75 0 0 0 0-5.5H7zM8.188 10H7V6.5h1.188a1.75 1.75 0 1 1 0 3.5z"}),(0,e.createElement)("path",{d:"M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"})),edit:function(a){let{attributes:n,setAttributes:i}=a;const{PanelBody:w,RangeControl:d,ToggleControl:f,SelectControl:_}=wp.components,{InspectorControls:m}=wp.blockEditor,{layout:s,itemsToShow:u,itemStyle:c,columns:p,showCatFilter:v,cssAnnimation:b}=n,k=(0,o.useBlockProps)({className:`portfolio portfolio--${s} portfolio--${c} large-up-${p} medium-up-2 wd-hover-nicelily`,style:{gridTemplateColumns:`repeat(${p}, 1fr)`}});let[h,g]=t();return r((()=>{const e=`/wc/v3/get-portfolios?per_page=${u}`;wp.apiRequest({path:e}).then((e=>{Array.isArray(e)&&g(e)}))}),[]),[(0,e.createElement)(m,{key:"1"},(0,e.createElement)(w,{title:(0,l.__)("Responsive spacer settings"),className:"wd__responsive-spacer__panel-body"},(0,e.createElement)(_,{className:"wd-portfolio-block__panel-body__layout",label:(0,l.__)("Layout","wd-framework"),value:s,options:[{label:"Grid",value:"grid"},{label:"Metro",value:"metro"}],onChange:e=>i({layout:e})}),(0,e.createElement)(_,{className:"wd-portfolio-block__panel-body__layout",label:(0,l.__)("Layout","wd-framework"),value:c,options:[{label:(0,l.__)("Standard","wd-framework"),value:"standard"},{label:(0,l.__)("Overlay","wd-framework"),value:"overlay"},{label:(0,l.__)("Overlay Background","wd-framework"),value:"overlay-bg"}],onChange:e=>i({itemStyle:e})}),(0,e.createElement)(_,{className:"wd-portfolio-block__panel-body__layout",label:(0,l.__)("CSS Annimation","wd-framework"),value:b,options:[{label:(0,l.__)("No","wd-framework"),value:"no"},{label:(0,l.__)("Bounce In","wd-framework"),value:"bounceIn"},{label:(0,l.__)("Bounce In Down","wd-framework"),value:"bounceInDown"},{label:(0,l.__)("Bounce In Left","wd-framework"),value:"bounceInLeft"},{label:(0,l.__)("Bounce In Right","wd-framework"),value:"bounceInRight"},{label:(0,l.__)("Bounce In Up","wd-framework"),value:"bounceInUp"},{label:(0,l.__)("Fade In","wd-framework"),value:"fadeIn"},{label:(0,l.__)("Fade In Down","wd-framework"),value:"fadeInDown"},{label:(0,l.__)("Fade In Down Big","wd-framework"),value:"fadeInDownBig"},{label:(0,l.__)("Fade In Left","wd-framework"),value:"fadeInLeft"},{label:(0,l.__)("Fade In Left Big","wd-framework"),value:"fadeInLeftBig"},{label:(0,l.__)("Fade In Right","wd-framework"),value:"fadeInRight"},{label:(0,l.__)("Fade In Right Big","wd-framework"),value:"fadeInRightBig"},{label:(0,l.__)("Fade In Up","wd-framework"),value:"fadeInUp"},{label:(0,l.__)("Fade In Up Big","wd-framework"),value:"fadeInUpBig"},{label:(0,l.__)("Flip","wd-framework"),value:"flip"},{label:(0,l.__)("Flip In X","wd-framework"),value:"flipInX"},{label:(0,l.__)("Flip In Y","wd-framework"),value:"flipInY"},{label:(0,l.__)("Flip Out X","wd-framework"),value:"flipOutX"},{label:(0,l.__)("Flip Out Y","wd-framework"),value:"flipOutY"},{label:(0,l.__)("Light Speed In","wd-framework"),value:"lightSpeedIn"},{label:(0,l.__)("Light Speed Out","wd-framework"),value:"lightSpeedOut"},{label:(0,l.__)("Rotate In","wd-framework"),value:"rotateIn"},{label:(0,l.__)("Rotate In Down Left","wd-framework"),value:"rotateInDownLeft"},{label:(0,l.__)("Rotate In Down Right","wd-framework"),value:"rotateInDownRight"},{label:(0,l.__)("Rotate In Up Left","wd-framework"),value:"rotateInUpLeft"},{label:(0,l.__)("Rotate In Up Right","wd-framework"),value:"rotateInUpRight"},{label:(0,l.__)("Slide In Up","wd-framework"),value:"slideInUp"},{label:(0,l.__)("Slide In Down","wd-framework"),value:"slideInDown"},{label:(0,l.__)("Slide In Left","wd-framework"),value:"slideInLeft"},{label:(0,l.__)("Slide In Right","wd-framework"),value:"slideInRight"},{label:(0,l.__)("Zoom In ","wd-framework"),value:"zoomIn"},{label:(0,l.__)("Zoom In Down","wd-framework"),value:"zoomInDown"},{label:(0,l.__)("Zoom In Left","wd-framework"),value:"zoomInLeft"},{label:(0,l.__)("Zoom In Right","wd-framework"),value:"zoomInRight"},{label:(0,l.__)("Zoom In Up","wd-framework"),value:"zoomInUp"},{label:(0,l.__)("Roll In","wd-framework"),value:"rollIn"}],onChange:e=>i({cssAnnimation:e})}),(0,e.createElement)(d,{className:"wd-portfolio-block__panel-body__items",label:(0,l.__)("Items to show","wd-framework"),value:u,onChange:e=>i({itemsToShow:e}),min:1,max:50}),(0,e.createElement)(d,{className:"wd-portfolio-block__panel-body__columns",label:(0,l.__)("Columns","wd-framework"),value:p,onChange:e=>i({columns:e}),min:1,max:5}),(0,e.createElement)(f,{label:(0,l.__)("Filters","wd-framework"),className:"wd-portfolio-block__panel-body__filter",help:v?"Show Category filters":"Hide Category filters",checked:v,onChange:e=>{i({showCatFilter:e})}}))),(0,e.createElement)("div",k,Array.isArray(h)&&h.length?h.map((a=>(0,e.createElement)("div",{className:"portfolio-item-wrapper"},(0,e.createElement)("div",{className:"portfolio__item"},(0,e.createElement)("div",{class:"portfolio__image"},(0,e.createElement)("img",{src:a.image_url,alt:`${a.title} - image`})),(0,e.createElement)("div",{class:"portfolio__info"},(0,e.createElement)("h4",null,(0,e.createElement)("a",{href:"#"},a.title)),(0,e.createElement)("div",{class:"portfolio__more"},(0,e.createElement)("div",{class:"portfolio__category-holder"}),(0,e.createElement)("div",{class:"read-more"},(0,e.createElement)("a",{href:"#"},(0,l.__)("View Project","wd-framework"))))))))):(0,e.createElement)("p",{style:{gridColumn:"1/-1",placeSelf:"center"}},(0,l.__)("There are no portfolios in the database, please add one ","wd-framework"),(0,e.createElement)("a",{href:"edit.php?post_type=portfolio"},(0,l.__)("here","wd-framework")),"."))]}})}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return a[e](r,r.exports,o),r.exports}o.m=a,e=[],o.O=function(a,l,t,r){if(!l){var n=1/0;for(f=0;f<e.length;f++){l=e[f][0],t=e[f][1],r=e[f][2];for(var i=!0,w=0;w<l.length;w++)(!1&r||n>=r)&&Object.keys(o.O).every((function(e){return o.O[e](l[w])}))?l.splice(w--,1):(i=!1,r<n&&(n=r));if(i){e.splice(f--,1);var d=t();void 0!==d&&(a=d)}}return a}r=r||0;for(var f=e.length;f>0&&e[f-1][2]>r;f--)e[f]=e[f-1];e[f]=[l,t,r]},o.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},function(){var e={8119:0,805:0};o.O.j=function(a){return 0===e[a]};var a=function(a,l){var t,r,n=l[0],i=l[1],w=l[2],d=0;if(n.some((function(a){return 0!==e[a]}))){for(t in i)o.o(i,t)&&(o.m[t]=i[t]);if(w)var f=w(o)}for(a&&a(l);d<n.length;d++)r=n[d],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(f)},l=self.webpackChunkwebdevia_blocks=self.webpackChunkwebdevia_blocks||[];l.forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l))}();var t=o.O(void 0,[805],(function(){return o(2542)}));t=o.O(t)}();