(()=>{"use strict";var e="D:\\Ampps\\www\\freemius\\wp-content\\plugins\\html5-audio-player\\src\\settings\\settings.js";function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,l,m=[],o=!0,u=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(m.push(r.value),!n||m.length!==n);o=!0);}catch(e){u=!0,l=e}finally{try{o||null==t.return||t.return()}finally{if(u)throw l}}return m}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var r=wp.i18n.__,l=wp.components,m=l.Button,o=l.Placeholder,u=l.Spinner,a=l.ToggleControl,i=l.TabPanel,c=l.PanelBody,s=l.PanelRow,_=wp.element,f=_.render,b=_.Fragment,N=_.useState,p=_.useEffect;f(wp.element.createElement((function(){var t=this,l=n(N(!1),2),_=l[0],f=l[1],w=n(N(!1),2),h=w[0],d=w[1],v=n(N(!1),2),y=v[0],g=v[1];p((function(){wp.api.loadPromise.then((function(){var e=new wp.api.models.Settings;!1===y&&e.fetch().then((function(e){f(Boolean(e.h5ap_gutenberg_enable)),g(!0)}))}))}),[]);return y?wp.element.createElement(b,{__self:this,__source:{fileName:e,lineNumber:64,columnNumber:5}},wp.element.createElement(i,{className:"bPSS",activeClass:"active-tab",tabs:[{name:"howto",title:"How to use"}],__self:this,__source:{fileName:e,lineNumber:72,columnNumber:7}},(function(n){return wp.element.createElement("div",{className:"wrapper",__self:t,__source:{fileName:e,lineNumber:89,columnNumber:13}},"howto"==n.name&&wp.element.createElement(c,{initialOpen:!0,__self:t,__source:{fileName:e,lineNumber:91,columnNumber:17}},wp.element.createElement("div",{class:"howto",__self:t,__source:{fileName:e,lineNumber:92,columnNumber:19}},wp.element.createElement("div",{id:"icon-tools",class:"icon32",__self:t,__source:{fileName:e,lineNumber:93,columnNumber:21}}),wp.element.createElement("h3",{__self:t,__source:{fileName:e,lineNumber:94,columnNumber:21}},r("We made a movie for you! Watch it and learn.","h5ap")," "),wp.element.createElement("div",{class:"embed-container",__self:t,__source:{fileName:e,lineNumber:95,columnNumber:21}},wp.element.createElement("iframe",{src:"https://www.youtube.com/embed/MbY9oyERJck",frameborder:"0",allowfullscreen:!0,__self:t,__source:{fileName:e,lineNumber:96,columnNumber:23}})))),"options"==n.name&&wp.element.createElement(b,{__self:t,__source:{fileName:e,lineNumber:102,columnNumber:17}},wp.element.createElement(c,{__self:t,__source:{fileName:e,lineNumber:103,columnNumber:19}},wp.element.createElement(s,{__self:t,__source:{fileName:e,lineNumber:104,columnNumber:21}},wp.element.createElement(a,{label:r("Enable Gutenberg Shortcode Generator"),help:"if you want to use Gutenberg as Shortcode generator, please enable the option.",checked:_,onChange:function(){return f(!_)},__self:t,__source:{fileName:e,lineNumber:105,columnNumber:23}}))),wp.element.createElement(c,{className:"option_save",__self:t,__source:{fileName:e,lineNumber:113,columnNumber:19}},wp.element.createElement(m,{disabled:h,isPrimary:!0,onClick:function(){return e="h5ap_gutenberg_enable",n=_,d(!0),void new wp.api.models.Settings(function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}({},e,n)).save().then((function(n){d(!1),f(n[e])}));var e,n},__self:t,__source:{fileName:e,lineNumber:114,columnNumber:21}},"Save"))))}))):wp.element.createElement(b,{__self:this,__source:{fileName:e,lineNumber:49,columnNumber:7}},wp.element.createElement(o,{__self:this,__source:{fileName:e,lineNumber:57,columnNumber:9}},wp.element.createElement(u,{__self:this,__source:{fileName:e,lineNumber:58,columnNumber:11}})))}),{__self:void 0,__source:{fileName:e,lineNumber:128,columnNumber:8}}),document.getElementById("h5ap-settings"))})();