import{l as c,d as w,i as p,q as y,n as d,u as n,x as f,A as s,z as l,m as g,F as B,T as C,y as M}from"../../../../common/index.CPcBO1Os.js";import{M as V}from"../../../../common/index.DAmv0vEC.js";import{I as q}from"../../../../common/index.TkDYtvUB.js";import{C as z}from"../../../../common/CheckOutlined.DJf0xGTx.js";import{B as N}from"../../../../common/index.B1jVoQr7.js";import{_ as S}from"../../../../common/_plugin-vue_export-helper.DlAUqK2U.js";import"../../../../common/KeyCode.D63Tfrq7.js";import"../../../../common/omit.ddwJ_9WE.js";import"../../../../common/pickAttrs.BFk0ToaQ.js";import"../../../../common/Portal.B2TrUL41.js";import"../../../../common/zoom.DosRZx44.js";import"../../../../common/_getTag.5j88QV3u.js";import"../../../../common/CloseOutlined.gy8y5blQ.js";import"../../../../common/styleChecker.BitQvUMr.js";import"../../../../common/ExclamationCircleFilled.CnnwVzET.js";import"../../../../common/CloseCircleFilled.DsHyRhur.js";import"../../../../common/InfoCircleFilled.DFXLEYKe.js";import"../../../../common/index.B0UuxB9L.js";import"../../../../common/index.B91jMiUk.js";import"../../../../common/useState.DXwtWea_.js";import"../../../../common/devWarning.DpJYEIzv.js";import"../../../../common/compact-item.BK6dH04p.js";import"../../../../common/Compact.B3btkLRg.js";var A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};function h(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?Object(arguments[r]):{},a=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(e).filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),a.forEach(function(o){E(t,o,e[o])})}return t}function E(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var m=function(r,e){var a=h({},r,e.attrs);return c(q,h({},a,{icon:A}),null)};m.displayName="LockOutlined";m.inheritAttrs=!1;const L={class:"upgrade-modal-content"},j={class:"upgrade-modal-icon"},D={class:"upgrade-modal-title"},H={class:"upgrade-modal-description"},F={class:"upgrade-modal-benefits"},I={class:"upgrade-modal-plan-info"},T={class:"upgrade-modal-actions"},$=["href"],x=w({__name:"UpgradeModal",props:{visible:{type:Boolean},featureName:{},featureDescription:{},featureBenefits:{},requiredPlan:{},requiredPlanPrice:{},upgradeUrl:{},pricingUrl:{}},emits:["update:visible"],setup(t,{emit:r}){const{__:e,sprintf:a}=window.wp.i18n,o=t,_=r,v=()=>{_("update:visible",!1)},u=/^https?:\/\//i,b=p(()=>u.test(o.upgradeUrl)?o.upgradeUrl:"#"),O=p(()=>u.test(o.pricingUrl)?o.pricingUrl:"#"),P=p(()=>a(e("Upgrade to %s","storeagent-ai-for-woocommerce"),o.requiredPlan));return(i,G)=>(d(),y(n(V),{open:i.visible,footer:null,width:480,centered:"","destroy-on-close":"",class:"upgrade-modal",onCancel:v},{default:f(()=>[s("div",L,[s("div",j,[c(n(m))]),s("h2",D,l(n(a)(n(e)("Unlock %s","storeagent-ai-for-woocommerce"),i.featureName)),1),s("p",H,l(i.featureDescription),1),s("ul",F,[(d(!0),g(B,null,C(i.featureBenefits,(U,k)=>(d(),g("li",{key:k},[c(n(z),{class:"benefit-check"}),s("span",null,l(U),1)]))),128))]),s("p",I,l(n(a)(n(e)("Available on %1$s (%2$s) and above.","storeagent-ai-for-woocommerce"),i.requiredPlan,i.requiredPlanPrice)),1),s("div",T,[c(n(N),{type:"primary",size:"large",href:b.value,target:"_blank",rel:"noopener noreferrer",class:"upgrade-modal-cta"},{default:f(()=>[M(l(P.value),1)]),_:1},8,["href"]),s("a",{href:O.value,target:"_blank",rel:"noopener noreferrer",class:"upgrade-modal-compare"},l(n(e)("Compare All Plans","storeagent-ai-for-woocommerce")),9,$)])])]),_:1},8,["open"]))}}),ge=S(x,[["__scopeId","data-v-5f4ead05"]]);export{ge as default};
