(()=>{"use strict";const e=window.wp.blocks,l=window.wp.blockEditor,o=window.wp.components,t=JSON.parse('{"UU":"modelora/model-viewer"}'),s=window.ReactJSXRuntime;(0,e.registerBlockType)(t.UU,{edit:({attributes:e,setAttributes:t})=>{const{modelId:r,preset:n,ar:a}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.InspectorControls,{children:(0,s.jsxs)(o.PanelBody,{title:"Modelora Settings",initialOpen:!0,children:[(0,s.jsx)(o.TextControl,{label:"Model ID",type:"number",value:r,onChange:e=>t({modelId:Number(e||0)}),help:"Create models from Modelora dashboard and paste the ID here."}),(0,s.jsx)(o.SelectControl,{label:"Preset",value:n,options:[{label:"Studio",value:"studio"},{label:"Outdoor",value:"outdoor"},{label:"Dark",value:"dark"}],onChange:e=>t({preset:e})}),(0,s.jsx)(o.ToggleControl,{label:"Enable AR",checked:!!a,onChange:e=>t({ar:!!e})})]})}),(0,s.jsx)("div",{...(0,l.useBlockProps)({className:"modelora-block-placeholder"}),children:(0,s.jsx)(o.Notice,{status:r?"success":"warning",isDismissible:!1,children:r?`3D viewer ready. Model ID: ${r}`:"Select a model ID to render the 3D viewer."})})]})},save:()=>null})})();


