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