!function(e){function t(a){if(n[a])return n[a].exports;var l=n[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";var a=n(2),l=n(3),i=(n.n(l),wp.i18n.__),s=wp.blocks.registerBlockType,r=wp.element.Fragment,m=wp.editor.InspectorControls,o=wp.components,p=o.PanelBody,u=o.TextControl,c=o.TextareaControl;s("meks/audio-player-timestamp",{title:i("Audio player timestamps","meks-audio-player"),description:i("Navigate audio with timestamps. Set the timestamp and the equivalent title/name.","meks-audio-player"),category:"media",icon:a.a,keywords:[i("Audio player timestamps","meks-audio-player"),i("timestamps","meks-audio-player"),i("meks","meks-audio-player"),i("meks audio","meks-audio-player")],supports:{html:!1},attributes:{time:{type:"string",default:"00:00"},minutes:{type:"string",default:"00"},seconds:{type:"string",default:"00"},timeTitle:{type:"string",default:"Your Title"}},edit:function(e){var t=e.setAttributes,n=e.attributes,a=n.time,l=n.minutes,s=n.seconds,o=n.timeTitle,d=function(e){if(e.match(/^(\d{1,3})(\:)(\d{0,2})?$/)){var n=e.match(/^(\d{1,3})(\:)(\d{0,2})?$/);t({minutes:n[1]&&"0"!=n[1]?n[1]:"00"}),t({seconds:n[3]&&"0"!=n[3]?n[3]:"00"}),t({time:!n[0]||"0:"==n[0]&&"00:"==n[0]?"00:00":n[0]})}},f=wp.element.createElement(m,null,wp.element.createElement(p,{title:i("Set timestamp time and title","meks-audio-player")},wp.element.createElement(u,{label:i("Set time","meks-audio-player"),value:a,help:i("minutes:seconds (eg. 01:20, 120:00)","meks-audio-player"),onChange:d}),wp.element.createElement(c,{label:i("Set title","meks-audio-player"),value:o,onChange:function(e){return t({timeTitle:e})}})));return wp.element.createElement(r,null,f,wp.element.createElement("span",{class:"meks-ap-timestamp"},wp.element.createElement("a",{href:"javascript:void(0)",className:"meks-jump-player","data-minutes":l,"data-seconds":s},a),wp.element.createElement("span",null,o)))},save:function(e){var t=e.attributes,n=t.time,a=t.minutes,l=t.seconds,i=t.timeTitle;return wp.element.createElement("span",{class:"meks-ap-timestamp"},wp.element.createElement("a",{href:"javascript:void(0)",className:"meks-jump-player","data-minutes":a,"data-seconds":l},n),wp.element.createElement("span",null,i))}})},function(e,t,n){"use strict";var a=wp.element.createElement("svg",{width:"512px",height:"512px",viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,"timestamp"),wp.element.createElement("g",{id:"timestamp",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("path",{d:"M235.529993,38.999964 C345.612272,38.9548619 436.586266,120.88767 450.713785,227.119421 L451.11831,230.345943 L487.237969,177.531803 L512.000007,194.468197 L438.618189,301.756884 L341.474807,212.574268 L361.763169,190.474893 L422.361977,246.103585 C417.218397,147.395104 335.526482,68.9590015 235.542299,68.9999987 C132.280034,69.0423723 48.5978228,152.776076 48.6189806,256.038336 C48.639949,358.267982 130.690743,441.324056 232.527029,442.974954 L235.618969,443 L235.618969,473 L232.030996,472.970936 C113.857335,471.055188 18.6433124,374.67461 18.6189806,256.044486 C18.594428,136.216088 115.70159,39.0491727 235.529993,38.999964 Z M225,146 L225,271 L147,271 L147,301 L255,301 L255,146 L225,146 Z",id:"Shape",fill:"#202020","fill-rule":"nonzero"})));t.a=a},function(e,t){}]);
//# sourceMappingURL=blocks.editor.js.map