(()=>{"use strict";var e,t={435:()=>{const e=window.React,t=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"plover-kit/reading-time","title":"Plover: Reading Time","category":"plover-blocks","description":"Let’s you easily add an estimated reading time to your WordPress posts.","keywords":["reading","time"],"textdomain":"plover-kit","version":"1.0.0","attributes":{"align":{"type":"string"},"justification":{"type":"string"}},"supports":{"anchor":true,"html":false,"align":["wide","full"],"color":{"text":true,"background":true,"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorScript":"file:./index.js","style":"file:./style-index.min.css"}'),r=window.wp.blockEditor,n=window.wp.components,o=window.wp.i18n,i=window.wp.hooks,l=window.plover.utils,a=window.plover.components;function s(t){return(0,e.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 682.667 682.667",...t},(0,e.createElement)("g",null,(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a",clipPathUnits:"userSpaceOnUse"},(0,e.createElement)(n.Path,{d:"M0 512h512V0H0Z",fill:"currentColor"}))),(0,e.createElement)("g",{clipPath:"url(#a)",transform:"matrix(1.33333 0 0 -1.33333 0 682.667)"},(0,e.createElement)(n.Path,{d:"M0 0v80.333c133.016 0 241-107.992 241-241 0-133.008-107.992-241-241-241-133.008 0-241 107.992-241 241 0 66.508 27 126.758 70.621 170.379",transform:"translate(256 416.667)",fill:"none",stroke:"currentColor",strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),(0,e.createElement)(n.Path,{d:"M0 0s68.042-106.916 98.271-154.433a48.166 48.166 0 0 1 40.625-22.3h.016c20.887 0 37.821 16.934 37.821 37.821v.016a48.168 48.168 0 0 1-22.3 40.625C106.916-68.042 0 0 0 0Z",transform:"translate(127.467 384.533)",fill:"none",stroke:"currentColor",strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}))))}const p=window.wp.blocks,{name:c}=t;!function(e){if(!e)return;const{metadata:t,settings:r,name:n}=e;(0,p.registerBlockType)({name:n,...t},r)}({name:c,metadata:t,settings:{icon:(0,e.createElement)(s,null),example:{},edit:function(t){let p=(0,i.applyFilters)("plover.readingTime.BlockEdit",null,t);if(!p){const t=(0,r.useBlockProps)();p=(0,e.createElement)("div",{...t},(0,e.createElement)(n.Placeholder,{icon:(0,e.createElement)(s,{width:20}),label:(0,e.createElement)("span",{style:{padding:"0 6px"}},(0,o.__)("Plover: Reading Time","plover-kit")),className:"plover-reading-time-block-placeholder"},(0,e.createElement)("p",null,(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,o.sprintf)(/* translators: %s is the premium text and link. */ /* translators: %s is the premium text and link. */
(0,o.__)("Upgrade to %s to access this block.","plover-kit"),'<a href="'+(0,l.upsell_url)({utm_campaign:"reading_time_block"})+'" target="_blank">'+(0,o.__)("Premium","plover-kit")+"</a>")}}),(0,e.createElement)("a",{href:"https://wpplover.com/docs/plover-kit/modules/reading-time-block/",target:"_blank",style:{padding:"0 4px"}},(0,o.__)("Learn More ↗","plover-kit")))))}return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(a.DocLink,{borderTop:!0,link:"https://wpplover.com/docs/plover-kit/modules/reading-time-block/",text:(0,o.__)("Read Documentation ↗","plover-kit")})),p)}}})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var l=1/0;for(c=0;c<e.length;c++){for(var[r,o,i]=e[c],a=!0,s=0;s<r.length;s++)(!1&i||l>=i)&&Object.keys(n.O).every((e=>n.O[e](r[s])))?r.splice(s--,1):(a=!1,i<l&&(l=i));if(a){e.splice(c--,1);var p=o();void 0!==p&&(t=p)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[r,o,i]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={9376:0,4072:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[l,a,s]=r,p=0;if(l.some((t=>0!==e[t]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(s)var c=s(n)}for(t&&t(r);p<l.length;p++)i=l[p],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(c)},r=globalThis.webpackChunkplover_kit=globalThis.webpackChunkplover_kit||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[4072],(()=>n(435)));o=n.O(o)})();