(()=>{"use strict";var e,r={935:(e,r,o)=>{const t=window.wp.blocks,n=window.wp.i18n,s=window.wp.blockEditor,l=window.wp.components,a=window.wp.serverSideRender;var i=o.n(a);const u=window.wp.data,d=window.ReactJSXRuntime,p=JSON.parse('{"UU":"ar-for-wordpress/gutenberg-block"}');(0,t.registerBlockType)(p.UU,{edit:e=>{const r=(0,s.useBlockProps)(),{pages:o}=(0,u.useSelect)((e=>{const{getEntityRecords:r}=e("core");return{pages:r("postType","armodels",{status:"publish",per_page:-1})}}));let t=[];return o?(t.push({value:0,label:"Select a model"}),o.forEach((e=>{t.push({value:e.id,label:e.title.rendered})}))):t.push({value:0,label:"Loading..."}),console.log(e.attributes),(0,d.jsxs)("div",{...r,children:[(0,d.jsx)(l.SelectControl,{label:(0,n.__)("AR Model","ar-for-wordpress"),value:e.attributes.id,options:t,onChange:r=>{e.setAttributes({id:Number(r)})}}),(0,d.jsx)(l.Disabled,{children:(0,d.jsx)(i(),{block:"ar-for-wordpress/gutenberg-block",attributes:e.attributes})})]})},save:function(){return null}})}},o={};function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports}t.m=r,e=[],t.O=(r,o,n,s)=>{if(!o){var l=1/0;for(d=0;d<e.length;d++){for(var[o,n,s]=e[d],a=!0,i=0;i<o.length;i++)(!1&s||l>=s)&&Object.keys(t.O).every((e=>t.O[e](o[i])))?o.splice(i--,1):(a=!1,s<l&&(l=s));if(a){e.splice(d--,1);var u=n();void 0!==u&&(r=u)}}return r}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[o,n,s]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={372:0,212:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,s,[l,a,i]=o,u=0;if(l.some((r=>0!==e[r]))){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(i)var d=i(t)}for(r&&r(o);u<l.length;u++)s=l[u],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(d)},o=globalThis.webpackChunkgutenberg_block=globalThis.webpackChunkgutenberg_block||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var n=t.O(void 0,[212],(()=>t(935)));n=t.O(n)})();