!function(e){if(e&&e.hooks&&e.element&&e.i18n&&e.compose&&e.blockEditor&&e.components){var t="core/group",r=e.element.createElement,n=e.element.Fragment,a=e.i18n.__,i=e.hooks.addFilter,o=e.compose.createHigherOrderComponent,l=e.blockEditor.InspectorControls,s=e.components.PanelBody,c=e.components.SelectControl,d={scrolled:"header--scrolled",fixed:"header--fixed",sticky:"header--sticky"};i("blocks.registerBlockType","x-t9/header-setting/attributes",(function(e,r){if(r!==t)return e;var n={},a=e.attributes||{};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i]);return n.headerSetting={type:"string",default:""},e.attributes=n,e})),i("editor.BlockEdit","x-t9/header-setting/inspector",o((function(e){return function(i){if(i.name!==t)return r(e,i);var o=i.attributes&&i.attributes.headerSetting?i.attributes.headerSetting:"";return r(n,{},r(e,i),r(l,{},r(s,{title:a("Header Setting","x-t9"),initialOpen:!1},r(c,{label:a("Header Setting","x-t9"),value:o,options:[{label:a("None","x-t9"),value:""},{label:a("Scrolled","x-t9"),value:"scrolled"},{label:a("Fixed","x-t9"),value:"fixed"},{label:a("Sticky","x-t9"),value:"sticky"}],onChange:function(e){i.setAttributes({headerSetting:e})}}))))}}),"withHeaderSettingInspector")),i("editor.BlockListBlock","x-t9/header-setting/editor-class",(function(e){return function(n){if(!n||n.name!==t)return r(e,n);var a=n.attributes&&n.attributes.headerSetting,i=a?d[a]:"";if(!i)return r(e,n);var o=n.className||"";-1===o.indexOf(i)&&(o=(o+" "+i).trim());var l={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(l[s]=n[s]);return l.className=o,r(e,l)}})),i("blocks.getSaveContent.extraProps","x-t9/header-setting/save-class",(function(e,r,n){if(r.name!==t)return e;var a=n&&n.headerSetting,i=a?d[a]:"";if(!i)return e;var o=e.className||"";return-1===o.indexOf(i)&&(e.className=(o+" "+i).trim()),e}))}}(window.wp);