/*!*
 **                 _     _                         
 ** __      ___ __ | |   (_)_ __   __ _ _   _  __ _ 
 ** \ \ /\ / / '_ \| |   | | '_ \ / _` | | | |/ _` |
 **  \ V  V /| |_) | |___| | | | | (_| | |_| | (_| |
 **   \_/\_/ | .__/|_____|_|_| |_|\__, |\__,_|\__,_|
 **          |_|                  |___/             
 **
 **        -- wpLingua | WordPress plugin --
 **   Translate and make your website multilingual
 **
 **     https://github.com/julien-jacob/wplingua
 **      https://wordpress.org/plugins/wplingua/
 **              https://wplingua.com/
 **
 **/
wp.blocks.registerBlockType("wplingua/languages-switcher",{title:wplngI18nGutenberg.label.title,description:wplngI18nGutenberg.label.description,icon:"translation",attributes:{style:{type:"string",default:""},title:{type:"string",default:""},flags:{type:"string",default:""},theme:{type:"string",default:""}},edit:function(l){return[wp.element.createElement(wp.serverSideRender,{block:"wplingua/languages-switcher",attributes:l.attributes}),wp.element.createElement(wp.blockEditor.InspectorControls,{key:"inspector"},wp.element.createElement("div",{className:"wplng-block-attributes"},wp.element.createElement(wp.components.SelectControl,{label:wplngI18nGutenberg.input.style,value:l.attributes.style,onChange:function(e){l.setAttributes({style:e})},options:[{value:"",label:wplngI18nGutenberg.label.default},{value:"list",label:wplngI18nGutenberg.style.list},{value:"block",label:wplngI18nGutenberg.style.block},{value:"dropdown",label:wplngI18nGutenberg.style.dropdown}]}),wp.element.createElement(wp.components.SelectControl,{label:wplngI18nGutenberg.input.title,value:l.attributes.title,onChange:function(e){l.setAttributes({title:e})},options:[{value:"",label:wplngI18nGutenberg.label.default},{value:"original",label:wplngI18nGutenberg.title.original},{value:"name",label:wplngI18nGutenberg.title.name},{value:"id",label:wplngI18nGutenberg.title.id},{value:"none",label:wplngI18nGutenberg.title.none}]}),wp.element.createElement(wp.components.SelectControl,{label:wplngI18nGutenberg.input.flags,value:l.attributes.flags,onChange:function(e){l.setAttributes({flags:e})},options:[{value:"",label:wplngI18nGutenberg.label.default},{value:"circle",label:wplngI18nGutenberg.flags.circle},{value:"rectangular",label:wplngI18nGutenberg.flags.rectangular},{value:"wave",label:wplngI18nGutenberg.flags.wave},{value:"none",label:wplngI18nGutenberg.flags.none}]}),wp.element.createElement(wp.components.SelectControl,{label:wplngI18nGutenberg.input.theme,value:l.attributes.theme,onChange:function(e){l.setAttributes({theme:e})},options:[{value:"",label:wplngI18nGutenberg.label.default},{value:"light-double-smooth",label:wplngI18nGutenberg.theme["light-double-smooth"]},{value:"light-double-square",label:wplngI18nGutenberg.theme["light-double-square"]},{value:"light-simple-smooth",label:wplngI18nGutenberg.theme["light-simple-smooth"]},{value:"light-simple-square",label:wplngI18nGutenberg.theme["light-simple-square"]},{value:"grey-double-smooth",label:wplngI18nGutenberg.theme["grey-double-smooth"]},{value:"grey-double-square",label:wplngI18nGutenberg.theme["grey-double-square"]},{value:"grey-simple-smooth",label:wplngI18nGutenberg.theme["grey-simple-smooth"]},{value:"grey-simple-square",label:wplngI18nGutenberg.theme["grey-simple-square"]},{value:"dark-double-smooth",label:wplngI18nGutenberg.theme["dark-double-smooth"]},{value:"dark-double-square",label:wplngI18nGutenberg.theme["dark-double-square"]},{value:"dark-simple-smooth",label:wplngI18nGutenberg.theme["dark-simple-smooth"]},{value:"dark-simple-square",label:wplngI18nGutenberg.theme["dark-simple-square"]},{value:"blurblack-double-smooth",label:wplngI18nGutenberg.theme["blurblack-double-smooth"]},{value:"blurblack-double-square",label:wplngI18nGutenberg.theme["blurblack-double-square"]},{value:"blurblack-simple-smooth",label:wplngI18nGutenberg.theme["blurblack-simple-smooth"]},{value:"blurblack-simple-square",label:wplngI18nGutenberg.theme["blurblack-simple-square"]},{value:"blurwhite-double-smooth",label:wplngI18nGutenberg.theme["blurwhite-double-smooth"]},{value:"blurwhite-double-square",label:wplngI18nGutenberg.theme["blurwhite-double-square"]},{value:"blurwhite-simple-smooth",label:wplngI18nGutenberg.theme["blurwhite-simple-smooth"]},{value:"blurwhite-simple-square",label:wplngI18nGutenberg.theme["blurwhite-simple-square"]}]})))]},save:function(){return null}});//# sourceMappingURL=block-switcher.js.map
