%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/nossaradio.com.br/wp-includes/js/dist/
Upload File :
Create Path :
Current File : /var/www/projetos/nossaradio.com.br/wp-includes/js/dist/server-side-render.min.js

/*! This file is auto-generated */
!function(){"use strict";var e={n:function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(t,{a:t}),t},d:function(r,t){for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:function(e,r){return Object.prototype.hasOwnProperty.call(e,r)}},r={};function t(){return t=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},t.apply(null,arguments)}e.d(r,{default:function(){return y}});var n=window.wp.element,o=window.wp.data,l=window.wp.deprecated,s=e.n(l),c=window.lodash,u=window.wp.compose,a=window.wp.i18n,i=window.wp.apiFetch,d=e.n(i),w=window.wp.url,p=window.wp.components,f=window.wp.blocks;function m(e){let{className:r}=e;return(0,n.createElement)(p.Placeholder,{className:r},(0,a.__)("Block rendered as empty."))}function v(e){let{response:r,className:t}=e;const o=(0,a.sprintf)((0,a.__)("Error loading block: %s"),r.errorMsg);return(0,n.createElement)(p.Placeholder,{className:t},o)}function h(e){let{children:r,showLoader:t}=e;return(0,n.createElement)("div",{style:{position:"relative"}},t&&(0,n.createElement)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"}},(0,n.createElement)(p.Spinner,null)),(0,n.createElement)("div",{style:{opacity:t?"0.3":1}},r))}function E(e){const{attributes:r,block:o,className:l,httpMethod:s="GET",urlQueryArgs:a,EmptyResponsePlaceholder:i=m,ErrorResponsePlaceholder:p=v,LoadingResponsePlaceholder:E=h}=e,g=(0,n.useRef)(!0),[b,y]=(0,n.useState)(!1),P=(0,n.useRef)(),[S,R]=(0,n.useState)(null),T=(0,u.usePrevious)(e),[_,O]=(0,n.useState)(!1);function M(){if(!g.current)return;O(!0);const e=r&&(0,f.__experimentalSanitizeBlockAttributes)(o,r),t="POST"===s,n=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,w.addQueryArgs)(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==r?{attributes:r}:{},...t})}(o,t?null:null!=e?e:null,a),l=t?{attributes:null!=e?e:null}:null,c=P.current=d()({path:n,data:l,method:t?"POST":"GET"}).then((e=>{g.current&&c===P.current&&e&&R(e.rendered)})).catch((e=>{g.current&&c===P.current&&R({error:!0,errorMsg:e.message})})).finally((()=>{g.current&&c===P.current&&O(!1)}));return c}const N=(0,u.useDebounce)(M,500);(0,n.useEffect)((()=>()=>{g.current=!1}),[]),(0,n.useEffect)((()=>{void 0===T?M():(0,c.isEqual)(T,e)||N()})),(0,n.useEffect)((()=>{if(!_)return;const e=setTimeout((()=>{y(!0)}),1e3);return()=>clearTimeout(e)}),[_]);const k=!!S,L=""===S,A=null==S?void 0:S.error;return _?(0,n.createElement)(E,t({},e,{showLoader:b}),k&&(0,n.createElement)(n.RawHTML,{className:l},S)):L||!k?(0,n.createElement)(i,e):A?(0,n.createElement)(p,t({response:S},e)):(0,n.createElement)(n.RawHTML,{className:l},S)}const g={},b=(0,o.withSelect)((e=>{const r=e("core/editor");if(r){const e=r.getCurrentPostId();if(e&&"number"==typeof e)return{currentPostId:e}}return g}))((e=>{let{urlQueryArgs:r=g,currentPostId:o,...l}=e;const s=(0,n.useMemo)((()=>o?{post_id:o,...r}:r),[o,r]);return(0,n.createElement)(E,t({urlQueryArgs:s},l))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=(0,n.forwardRef)(((e,r)=>(s()("wp.components.ServerSideRender",{version:"6.2",since:"5.3",alternative:"wp.serverSideRender"}),(0,n.createElement)(b,t({},e,{ref:r}))))));var y=b;(window.wp=window.wp||{}).serverSideRender=r.default}();

Zerion Mini Shell 1.0