Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : block_views.js
(()=>{var e={904:(e,t,a)=>{"use strict";var n=a(439);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,a,r,o,l){if(l!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return a.PropTypes=a,a}},88:(e,t,a)=>{e.exports=a(904)()},439:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t){return e?` ${t}="${e}"`:""}function t(){const e=window.location.pathname,t=e.indexOf("wp-admin");let a="/";return t>-1&&(a=e.substr(0,t)),a}const{Component:n}=wp.element;class r extends n{render(){return React.createElement("div",null,"[display-frm-data",function(t){const{viewId:a,filter:n}=t;let r="";return r+=e(a,"id"),r+=e(n,"filter"),r}(this.props),"]")}}var o=a(88),l=a.n(o);const{__:i,sprintf:s}=wp.i18n,{Component:c}=wp.element,{SelectControl:m}=wp.components;class p extends c{createOptions(e,t){const a=e.map((e=>({label:e.label,value:e.value})));return[{label:s(i("Select a %s","formidable"),t),value:""},...a]}render(){const{selected:e,items:t,onChange:a,itemName:n,itemNamePlural:r,label:o,help:l}=this.props;return t&&0!==t.length?React.createElement(m,{value:e,options:this.createOptions(t,n),label:o,help:l,onChange:a}):React.createElement("p",{className:"frm-block-select-no-items"},s(i("Currently, there are no %s","formidable"),r))}}p.defaultProps={itemName:"item",itemNamePlural:"items"},p.propTypes={selected:l().oneOfType([l().string,l().number]),items:l().array,onChange:l().func,itemName:l().string,itemNamePlural:l().string,label:l().string,help:l().string};const{__:d}=wp.i18n,{Component:u}=wp.element;class b extends u{render(){const{viewId:e,setAttributes:t,views:a}=this.props;return React.createElement(p,{selected:e,itemName:d("View","formidable-pro"),itemNamePlural:d("Views","formidable-pro"),items:a,onChange:function(e){const a=formidable_view_selector.show_counts,n=a&&a[e]&&a[e].meta_value?a[e].meta_value:"",r=formidable_view_selector.view_options,o=r&&r[e]&&r[e].meta_value&&r[e].meta_value.limit?r[e].meta_value.limit:null;t({viewId:e,useDefaultLimit:"calendar"!==n&&"one"!==n&&!o})}})}}b.propTypes={viewId:l().string,setAttributes:l().func.isRequired};const{Component:v}=wp.element,{Dashicon:f}=wp.components;class w extends v{loadCustomSvgIcon(){return!!formidable_form_selector.icon.match(/frm_white_label_icon/)&&React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"120",height:"120"},React.createElement("path",{d:"M18.1 1.3H2C.9 1.3 0 2 0 3V17c0 1 .8 1.9 1.9 1.9H18c1 0 1.9-.9 1.9-2V3.2c0-1-.8-1.9-1.9-1.9zM18 16.9H2a.2.2 0 0 1-.2-.3V3.4c0-.2 0-.3.2-.3H18c.1 0 .2.1.2.3v13.2c0 .2 0 .3-.2.3zm-1.6-3.6v1c0 .2-.3.4-.5.4H8a.5.5 0 0 1-.5-.5v-1c0-.2.2-.4.5-.4h7.8c.2 0 .4.2.4.5zm0-3.8v1c0 .2-.3.4-.5.4H8a.5.5 0 0 1-.5-.4v-1c0-.2.2-.4.5-.4h7.8c.2 0 .4.2.4.4zm0-3.7v1c0 .2-.3.4-.5.4H8a.5.5 0 0 1-.5-.5v-1c0-.2.2-.4.5-.4h7.8c.2 0 .4.2.4.5zm-9.9.5a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0zm0 3.7a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0zm0 3.8a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0z"}))}render(){return!1!==this.loadCustomSvgIcon()?this.loadCustomSvgIcon():"svg"!==formidable_form_selector.icon?React.createElement(f,{icon:formidable_form_selector.icon}):React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 599.68 601.37",width:"120",height:"120"},React.createElement("path",{className:"cls-1 orange",d:"M289.6 384h140v76h-140z"}),React.createElement("path",{className:"cls-1",d:"M400.2 147h-200c-17 0-30.6 12.2-30.6 29.3V218h260v-71zM397.9 264H169.6v196h75V340H398a32.2 32.2 0 0 0 30.1-21.4 24.3 24.3 0 0 0 1.7-8.7V264z"}),React.createElement("path",{className:"cls-1",d:"M299.8 601.4A300.3 300.3 0 0 1 0 300.7a299.8 299.8 0 1 1 511.9 212.6 297.4 297.4 0 0 1-212 88zm0-563A262 262 0 0 0 38.3 300.7a261.6 261.6 0 1 0 446.5-185.5 259.5 259.5 0 0 0-185-76.8z"}))}}const{BaseControl:h}=wp.components,_=function({label:e,className:t,selected:a,help:n,instanceId:r,onChange:o,options:l=[]}){const i=`inspector-radio-control-${r}`,s=e=>o(e.target.value);return t+=" components-radio-control",React.createElement(h,{label:e,help:n,className:t},l.map(((e,t)=>React.createElement("div",{key:`${i}-${t}`,className:"components-radio-control__option"},React.createElement("input",{id:`${i}-${t}`,className:"components-radio-control__input",type:"radio",name:i,value:e.value,onChange:s,checked:e.value===a,"aria-describedby":n?`${i}__help`:void 0}),React.createElement("label",{htmlFor:`${i}-${t}`},e.label),e.help&&React.createElement("p",null,e.help)))))},{__:g}=wp.i18n,{Component:R}=wp.element,{InspectorControls:E}=wp.blockEditor,{ExternalLink:y,PanelBody:k,PanelRow:C}=wp.components;class N extends R{render(){const{setAttributes:e,attributes:a,views:n}=this.props,{viewId:o,filter:l}=a;return React.createElement(E,null,React.createElement(k,{title:g("Select a View","formidable-pro"),initialOpen:!0},React.createElement(C,null,React.createElement(b,{viewId:o,setAttributes:e,views:n})),o&&React.createElement(C,null,React.createElement(y,{href:t()+`wp-admin/post.php?post=${o}&action=edit`},g("Go to View","formidable-pro")))),React.createElement(k,{title:g("View Filtering","formidable-pro"),initialOpen:!1},React.createElement(_,{selected:l,instanceId:o,className:"frm-view-filter-component",options:[{label:g("Limited","formidable-pro"),value:"limited",help:g("Recommended. Adds automatic paragraphs and line breaks and filters most shortcodes.","formidable-pro")},{label:g("Everything","formidable-pro"),value:"1",help:g("Use only when shortcodes from other plugins are shown when Limited is selected. May cause conflicts with some plugins.","formidable-pro")},{label:g("None","formidable-pro"),value:""}],onChange:t=>{!function(e,t,a){a({filter:t})}(0,t,e)}})),React.createElement(k,{title:g("Shortcode","formidable-pro"),initialOpen:!1},React.createElement(C,null,React.createElement(r,this.props.attributes))))}}N.propTypes={attributes:l().object,setAttributes:l().func};const{Notice:x}=wp.components,{serverSideRender:I}=wp,{Fragment:O}=wp.element,{__:T}=wp.i18n,{getBlockType:P}=wp.blocks,V={title:formidable_view_selector.name,description:T("Display a View","formidable-pro"),icon:w,category:"widgets",keywords:[T("data display","formidable-pro"),T("show entries","formidable-pro")],edit:function({setAttributes:e,attributes:t,isSelected:a}){const{viewId:n}=t,r=formidable_view_selector.views;return 0===r.length?React.createElement(x,{status:"warning",isDismissible:!1},T("This site does not have any Views.","formidable-pro")):n?React.createElement(O,null,React.createElement(N,{attributes:t,setAttributes:e,views:r}),a&&React.createElement("style",null,"\n    .components-panel__body.editor-block-inspector__advanced {\n        display:none;\n    }\n"),React.createElement(I,{block:"formidable/simple-view",attributes:t})):React.createElement("div",{className:"frm-block-intro-screen"},React.createElement("div",{className:"frm-block-intro-content"},React.createElement(w,null),React.createElement("div",{className:"frm-block-title"},formidable_view_selector.name),React.createElement("div",{className:"frm-block-selector-screen"},React.createElement(b,{viewId:n,setAttributes:e,views:r}))))},save:function(e){const{attributes:t}=e,{viewId:a}=t;return void 0===a?"":React.createElement(r,t)}};P("formidable/simple-view")?wp.hooks.addFilter("blocks.registerBlockType","formidable-views/extend-block",((e,t)=>("formidable/simple-view"===t&&(e={...e,...V}),e))):wp.blocks.registerBlockType("formidable/simple-view",V)})()})();
© 2025 XylotrechusZ