(()=>{"use strict";const e=window.wp.blockEditor,i=window.wp.blocks,t=window.wp.i18n,s=JSON.parse('{"UU":"lumiere/widget","L1":"widgets","RE":["widget","lumiere","imdb","movie","film"],"uK":{"lumiere_input":{"type":"string","default":"Lumière Movies"}},"Fw":{"attributes":{"message":"This is a test"}}}'),r=window.wp.element,l=window.ReactJSXRuntime;const o=(0,l.jsx)("svg",{width:35,height:35,viewBox:"0 0 200 200",children:(0,l.jsx)("path",{d:"M10 100 c0 -47 4 -80 10 -80 6 0 10 33 10 80 0 47 -4 80 -10 80 -6 0 -10 -33 -10 -80z M50 170 c0 -5 23 -10 50 -10 28 0 50 5 50 10 0 6 -22 10 -50 10 -27 0 -50 -4 -50 -10z M170 100 c0 -47 4 -80 10 -80 6 0 10 33 10 80 0 47 -4 80 -10 80 -6 0 -10 -33 -10 -80z M50 110 c0 -29 1 -30 50 -30 49 0 50 1 50 30 0 29 -1 30 -50 30 -49 0 -50 -1 -50 -30z M57 44 c-17 -17 -4 -24 44 -24 36 0 49 4 47 13 -5 13 -79 22 -91 11z"})});(0,i.registerBlockType)(s.UU,{icon:o,title:(0,t.__)("Lumière Widget","lumiere-movies"),description:(0,t.__)("Add a movie/person widget in your sidebar","lumiere-movies"),category:s.L1,keywords:s.RE,example:s.Fw,attributes:s.uK,edit:function({attributes:i,setAttributes:s}){const o=(0,t.sprintf)((0,t.__)("This widget fills your selected area, such as a sidebar, with movie/person data according to the data inserted in your metabox in post edit or the title of your post (if %1$sLumière auto widget option%2$s is active). Once this widget is saved, either the data you filled in the Lumière metabox in your post or the post's title will be used to display the movie/person data accordingly.","lumiere-movies"),'<a href="admin.php?page=lumiere_options&subsection=advanced#imdbautopostwidget" target="_blank">',"</a>"),d=(0,e.useBlockProps)({className:"lumiere_block_widget"}),{lumiere_input:a}=i;return(0,l.jsxs)("div",{...d,children:[(0,l.jsx)("img",{class:"lumiere_block_widget_image",src:lumiere_admin_vars.ico80,alt:(0,t.__)("Lumière Icon","lumiere-movies")}),(0,l.jsx)("div",{class:"lumiere_block_widget_title",children:"Lumière! Widget"}),(0,l.jsx)("div",{class:"lumiere_block_widget_explanation",children:(n=o,(0,r.RawHTML)({children:n}))}),(0,l.jsxs)("div",{class:"lumiere_block_widget_container",children:[(0,l.jsx)("div",{class:"lumiere_block_widget_entertitle",children:(0,t.__)("Enter widget title:","lumiere-movies")}),(0,l.jsx)("div",{class:"lumiere_block_widget_enterinput",children:(0,l.jsx)("input",{value:a,class:"lumiere_block_widget_input",onChange:e=>s({lumiere_input:e.target.value})})})]})]});var n},save:()=>null})})();