!function(e){var t={};function r(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=4)}({4:function(e,t,r){e.exports=r("iSsb")},iSsb:function(e,t,r){"use strict";r.r(t);var a=wp.i18n.__,o=wp.element.Fragment,n=wp.components,l=n.SelectControl,u=n.ToggleControl,i=function(e){var t=e.updatedValue,r=e.updateMeta;return"1"===tutorstarter_admin_page.is_page?React.createElement(o,null,React.createElement(l,{label:a("Sidebar","tutorstarter"),value:null!==t?t.sidebar_select:"no-sidebar",options:[{label:a("--Select Option--","tutorstarter"),value:""},{label:a("No Sidebar","tutorstarter"),value:"no-sidebar"},{label:a("Left Sidebar","tutorstarter"),value:"left-sidebar"},{label:a("Right Sidebar","tutorstarter"),value:"right-sidebar"}],onChange:function(e){return r(e,"sidebar_select")}}),React.createElement(l,{label:a("Footer","tutorstarter"),value:null!==t?t.footer_select:"",options:[{label:a("--Select Footer--","tutorstarter"),value:""},{label:a("Type 1","tutorstarter"),value:"footer_one"},{label:a("Type 2","tutorstarter"),value:"footer_two"},{label:a("Type 3","tutorstarter"),value:"footer_three"},{label:a("Type 4","tutorstarter"),value:"footer_four"},{label:a("Type 5","tutorstarter"),value:"footer_five"}],onChange:function(e){return r(e,"footer_select")}}),React.createElement(u,{label:a("Disable Title?","tutorstarter"),checked:null!==t&&t.page_title_toggle,onChange:function(e){return r(e,"page_title_toggle")}}),React.createElement(u,{label:a("Disable Header?","tutorstarter"),checked:null!==t&&t.header_toggle,onChange:function(e){return r(e,"header_toggle")}}),React.createElement(u,{label:a("Enable Transparent Header?","tutorstarter"),checked:null!==t&&t.header_trans_toggle,onChange:function(e){return r(e,"header_trans_toggle")}}),React.createElement(u,{label:a("Disable Footer?","tutorstarter"),checked:null!==t&&t.footer_toggle,onChange:function(e){return r(e,"footer_toggle")}})):React.createElement(o,null)};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=wp.i18n.__,g=wp.compose.compose,f=wp.editPost.PluginDocumentSettingPanel,b=wp.data,d=b.select,_=b.withSelect,m=b.withDispatch,v=g([_((function(){return{updatedValue:d("core/editor").getEditedPostAttribute("meta")._tutorstarter_page_metadata}})),m((function(e){return{updateMeta:function(t,r){var a=d("core/editor").getEditedPostAttribute("meta")._tutorstarter_page_metadata;(a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({sidebar_select:"",footer_select:"",page_title_toggle:!1,header_toggle:!1,header_trans_toggle:!1,footer_toggle:!1},a))[r]=t,e("core/editor").editPost({meta:{_tutorstarter_page_metadata:a}})}}}))])(i),y=function(){return React.createElement(f,{name:"tutorstarter-settings-panel",title:p("Tutor Starter Page Settings","tutorstarter")},React.createElement(v,null))},h=wp.plugins.registerPlugin;"1"===tutorstarter_admin_page.is_page&&h("tutorstarter-settings-panel",{render:y,icon:""})}});