(()=>{"use strict";var e={250(){const e=window.wp.blocks,t=window.wp.primitives,n=window.ReactJSXRuntime;var o=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)(t.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});const i=JSON.parse('{"UU":"remote-data-blocks/pagination"}'),r=window.wp.blockEditor,a=window.wp.components;var s,l=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)(t.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});null===(s=window.REMOTE_DATA_BLOCKS)||void 0===s||s.rest_url,function(...e){e.filter(Boolean).join(" ")}(undefined,`rdb-${"container".replace(/[^a-zA-Z\d\u00C0-\u00FF]/g,"-").toLowerCase()}`);const c=window.wp.data,d=window.wp.editor;function u(e){var t;const{postMeta:n,postType:o}=(i=e=>{var t,n;return{postMeta:null!==(t=e("meta"))&&void 0!==t?t:{},postType:null!==(n=e("type"))&&void 0!==n?n:""}},(0,c.useSelect)((e=>{const{getEditedPostAttribute:t}=e(d.store);return i(t)}),[]));var i;if("wp_block"===o){const e=String(null!==(t=n._remote_data_blocks_block_type)&&void 0!==t?t:""),o=function(e){var t,n;return null===(n=null===(t=window.REMOTE_DATA_BLOCKS)||void 0===t?void 0:t.config)||void 0===n?void 0:n[e]}(e);if(o)return{remoteData:{blockName:e,metadata:{},queryInputs:[],queryKey:"Example Query Key",resultId:"",results:[{result:Object.fromEntries(Object.entries(o.availableBindings).map((([e,t])=>[e,{name:t.name,type:t.type,value:t.name}]))),uuid:"Example Entity ID"}]}}}return{remoteData:e["remote-data-blocks/remoteData"]}}const p=window.wp.i18n;function __(e){return(0,p.__)(e,"remote-data-blocks")}(0,e.registerBlockType)(i.UU,{edit:function(e){const{context:t}=e,o=(0,r.useBlockProps)(),{remoteData:i}=u(t);return(null==i?void 0:i.blockName)?(null==i?void 0:i.pagination)?(0,n.jsx)("div",Object.assign({},o,{children:(0,n.jsxs)("div",{className:"remote-data-pagination",children:[(0,n.jsx)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),children:(0,n.jsx)("span",{children:"Previous"})}),(0,n.jsx)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),children:(0,n.jsx)("span",{children:"Next"})})]})})):(0,n.jsx)("div",Object.assign({},o,{children:(0,n.jsx)(a.Placeholder,{label:__("Remote Data Pagination"),instructions:__("This block only works when placed inside a remote data block using data that supports pagination. This block will be ignored as currently configured.")})})):(0,n.jsx)(a.Placeholder,{label:__("Remote Data Pagination"),icon:l,instructions:__("This block must be placed inside a remote data block. This block will be ignored as currently configured.")})},icon:{src:o},save:function(){return(0,n.jsx)(r.InnerBlocks.Content,{})}})}};const t={};function n(o){const i=t[o];if(void 0!==i)return i.exports;const r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.m=e,(()=>{const e=[];n.O=(t,o,i,r)=>{if(o){r=r||0;for(var a=e.length;a>0&&e[a-1][2]>r;a--)e[a]=e[a-1];return void(e[a]=[o,i,r])}let s=1/0;for(a=0;a<e.length;a++){let[o,i,r]=e[a],c=!0;for(var l=0;l<o.length;l++)(!1&r||s>=r)&&Object.keys(n.O).every((e=>n.O[e](o[l])))?o.splice(l--,1):(c=!1,r<s&&(s=r));if(c){e.splice(a--,1);const n=i();void 0!==n&&(t=n)}}return t}})(),n.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={137:0,325:0};n.O.j=t=>0===e[t];const t=(t,o)=>{let[i,r,a]=o;var s,l,c=0;if(i.some((t=>0!==e[t]))){for(s in r)n.o(r,s)&&(n.m[s]=r[s]);if(a)var d=a(n)}for(t&&t(o);c<i.length;c++)l=i[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=globalThis.webpackChunkremote_data_blocks||=[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();let o=n.O(void 0,[325],(()=>n(250)));o=n.O(o)})();