(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var r in s)e.o(s,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:s[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,s=window.wp.i18n,r=window.wp.apiFetch;var n=e.n(r);const o=window.wp.domReady;var d=e.n(o);const a=window.wp.components,l=window.wp.element,i=()=>{const[e,r]=(0,l.useState)(!0);return e?(0,t.createElement)(a.Modal,{title:(0,s.__)("Congrats, You've Reached an Impressive Milestone!","feedzy-rss-feeds")+" 🎉",size:"medium",shouldCloseOnClickOutside:!1,onRequestClose:async()=>{try{await n()({path:"/wp/v2/settings",method:"POST",data:{feedzy_review_notice:"yes"}})}catch(e){console.error((0,s.__)("Error updating setting:","feedzy-rss-feeds"),e)}finally{r(!1)}}},(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,s.sprintf)(
// translators: %1$s is an opening strong tag, %2$s is a closing strong tag, %3$s is the number of posts imported.
// translators: %1$s is an opening strong tag, %2$s is a closing strong tag, %3$s is the number of posts imported.
(0,s.__)("You've successfully imported %1$s more than %3$s posts %2$s using Feedzy!","feedzy-rss-feeds"),"<strong>","</strong>",100)}}),(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,s.sprintf)(
// translators: %1$s is an opening strong tag, %2$s is a closing strong tag, %3$s is for the 5-star rating stars.
// translators: %1$s is an opening strong tag, %2$s is a closing strong tag, %3$s is for the 5-star rating stars.
(0,s.__)("If you're enjoying Feedzy, we'd be thrilled if you could leave us a %1$s5-star review%2$s (%3$s) on WordPress.org. Your support helps us grow and deliver even better features.","feedzy-rss-feeds"),"<strong>","</strong>",'<span style="color:gold;">★★★★★</span>')}}),(0,t.createElement)("div",{className:"buttons-wrap",style:{display:"flex",gap:"10px",marginTop:"20px"}},(0,t.createElement)(a.Button,{href:"https://wordpress.org/support/plugin/feedzy-rss-feeds/reviews/#new-post",target:"_blank",variant:"primary",className:"fz-feedback-button",style:{borderRadius:"5px"}},(0,s.__)("Rate Feedzy on WordPress.org","feedzy-rss-feeds")))):null};d()((()=>{const e=document.createElement("div");e.id="fz-review-modal",document.body.appendChild(e),(0,l.createRoot)(document.getElementById("fz-review-modal")).render((0,t.createElement)(i,null))}))})();