System.register(["../../../common/index-legacy.DRKniymH.js","../../partials/index-legacy.DS6a53IG.js","./UpgradeModal-legacy.DjfdBDO9.js","../../../common/createLucideIcon-legacy.BkLhZkR_.js","../../../common/_plugin-vue_export-helper-legacy.DgAO6S8O.js","../../../common/form-legacy.uLkuyqJm.js","../../../common/keyboard-legacy.ItkZdbDJ.js","../../../common/open-closed-legacy.CWZrlJ6W.js","../../../common/use-resolve-button-type-legacy.NaofbMZv.js","../../../common/crown-legacy.DM1UV0Ek.js","../../../common/x-legacy.CxaJbVYS.js","../../../common/sparkles-legacy.CcXdOfsl.js","../../../common/trending-up-legacy.B4yZQCGk.js","../../../common/transition-legacy.DZbCmrRe.js","../../../common/micro-task-legacy.D9KKWy-6.js"],(function(t,e){"use strict";var i,s,w,l,o,a,r,n,c,d,m,u,p,g,v,h,y,_;return{setters:[t=>{i=t.d,s=t.G,w=t.r,l=t.D,o=t.o,a=t.c,r=t.e,n=t.u,c=t.b,d=t.a,m=t.M,u=t.N,p=t.g,g=t.f,v=t.H},t=>{h=t.H},t=>{y=t.default},t=>{_=t.c},null,null,null,null,null,null,null,null,null,null,null],execute:function(){
/**
       * @license lucide-vue-next v0.544.0 - ISC
       *
       * This source code is licensed under the ISC license.
       * See the LICENSE file in the root directory of this source tree.
       */
const e=_("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),b=_("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),f=_("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),x={class:"stwlite-tw-max-w-7xl stwlite-tw-mx-auto"},k={class:"stwlite-tw-bg-amber-50 stwlite-tw-border-l-4 stwlite-tw-border-amber-400 stwlite-tw-p-4 stwlite-tw-mt-4 stwlite-tw-rounded-md"},j={class:"stwlite-tw-flex stwlite-tw-items-center"},M={class:"stwlite-tw-ml-3"},C={class:"stwlite-tw-text-sm stwlite-tw-text-amber-800"},A={key:0,class:"stwlite-tw-flex stwlite-tw-justify-center stwlite-tw-items-center stwlite-tw-py-12"},z={key:1,class:"stwlite-tw-max-w-7xl stwlite-tw-mx-auto stwlite-tw-px-4 sm:stwlite-tw-px-6 lg:stwlite-tw-px-8 stwlite-tw-py-8"},T={key:0,class:"stwlite-tw-text-center stwlite-tw-py-12"},B={class:"stwlite-tw-text-gray-500 stwlite-tw-text-lg stwlite-tw-mb-4"},H={key:1,class:"stwlite-tw-grid stwlite-tw-grid-cols-1 md:stwlite-tw-grid-cols-2 lg:stwlite-tw-grid-cols-3 stwlite-tw-gap-6"},I={class:"stwlite-tw-p-6 stwlite-tw-flex-1"},S={class:"stwlite-tw-mb-4"},D={class:"stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-leading-loose"},E={class:"stwlite-tw-bg-blue-50 stwlite-tw-text-gray-900 stwlite-tw-px-2 stwlite-tw-py-1 stwlite-tw-border-b-2 stwlite-tw-border-blue-600"},N={class:"stwlite-tw-bg-green-50 stwlite-tw-text-gray-900 stwlite-tw-px-2 stwlite-tw-py-1 stwlite-tw-border-b-2 stwlite-tw-border-green-600"},O={key:0,class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-leading-relaxed"},U={class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-bg-gray-50 stwlite-tw-border-t stwlite-tw-border-gray-100 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-gap-3 stwlite-tw-mt-auto"},V={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-gap-2"},W=["title"],L=["title"],P={class:"stwlite-tw-flex stwlite-tw-items-center"},R={class:"stwlite-tw-sr-only"};
/**
       * @license lucide-vue-next v0.544.0 - ISC
       *
       * This source code is licensed under the ISC license.
       * See the LICENSE file in the root directory of this source tree.
       */t("default",i({__name:"Automations",setup(t){const i={title:s("automations_title",wp.i18n.__("Wishlist Automations","saveto-wishlist-lite-for-woocommerce")),description:s("automations_description",wp.i18n.__("Create and manage automated workflows for your wishlists","saveto-wishlist-lite-for-woocommerce"))},_=s("automations_demo_notice",wp.i18n.__("This is a temporary demo view for the Automations page and will be removed once PRO is installed.","saveto-wishlist-lite-for-woocommerce")),q=w(!1),F=w(!1),G=w([{id:1,trigger_type:"product_added",action_type:"send_email",status:"active",description:"Send email notification when a product is added to wishlist"},{id:2,trigger_type:"wishlist_shared",action_type:"create_webhook",status:"inactive",description:"Trigger webhook when wishlist is shared"}]),K={product_added:s("product_added",wp.i18n.__("Product Added","saveto-wishlist-lite-for-woocommerce")),wishlist_shared:s("wishlist_shared",wp.i18n.__("Wishlist Shared","saveto-wishlist-lite-for-woocommerce")),item_removed:s("item_removed",wp.i18n.__("Item Removed","saveto-wishlist-lite-for-woocommerce"))},J={send_email:s("send_email",wp.i18n.__("Send Email","saveto-wishlist-lite-for-woocommerce")),create_webhook:s("create_webhook",wp.i18n.__("Create Webhook","saveto-wishlist-lite-for-woocommerce")),update_usermeta:s("update_usermeta",wp.i18n.__("Update User Meta","saveto-wishlist-lite-for-woocommerce"))},Q=()=>{q.value=!0},X=()=>{q.value=!0},Y=()=>{q.value=!0},Z=()=>{q.value=!0},$=()=>{q.value=!1};return l((()=>{F.value=!1})),(t,w)=>(o(),a("div",null,[r(n(h),{infoData:i,showButton:!0,buttonIcon:"plus",buttonText:n(s)("add_new",n(wp.i18n.__)("Add New","saveto-wishlist-lite-for-woocommerce")),onTriggerButton:Q},null,8,["buttonText"]),c("div",x,[c("div",k,[c("div",j,[w[0]||(w[0]=c("div",{class:"stwlite-tw-flex-shrink-0"},[c("svg",{class:"stwlite-tw-h-5 stwlite-tw-w-5 stwlite-tw-text-amber-400",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])],-1)),c("div",M,[c("p",C,d(n(_)),1)])])])]),F.value?(o(),a("div",A,[r(n(e),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-animate-spin stwlite-tw-text-blue-600"})])):(o(),a("div",z,[0===G.value.length?(o(),a("div",T,[c("p",B,d(n(s)("no_automations",n(wp.i18n.__)("No automations found. Create your first automation!","saveto-wishlist-lite-for-woocommerce"))),1),c("button",{onClick:Q,class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-bg-blue-600 stwlite-tw-text-white stwlite-tw-font-medium stwlite-tw-rounded-lg hover:stwlite-tw-bg-blue-700 stwlite-tw-transition-colors stwlite-tw-cursor-pointer stwlite-tw-border-solid stwlite-tw-border-0"},d(n(s)("create_first_automation",n(wp.i18n.__)("Create First Automation","saveto-wishlist-lite-for-woocommerce"))),1)])):(o(),a("div",H,[(o(!0),a(m,null,u(G.value,(t=>{return o(),a("div",{key:t.id,class:"stwlite-tw-bg-white stwlite-tw-rounded-xl stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-overflow-hidden hover:stwlite-tw-shadow-lg hover:stwlite-tw-border-gray-300 stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-flex stwlite-tw-flex-col stwlite-tw-border-solid"},[c("div",I,[c("div",S,[c("h3",D,[c("span",E,d((i=t.trigger_type,K[i]||i)),1),w[1]||(w[1]=c("span",{class:"stwlite-tw-text-gray-900"}," then ",-1)),c("span",N,d((e=t.action_type,J[e]||e)),1)])]),t.description?(o(),a("p",O,d(t.description),1)):p("",!0)]),c("div",U,[c("div",V,[c("button",{onClick:X,class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-gap-1 stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-bg-white stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-lg stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-gray-700 hover:stwlite-tw-bg-gray-50 hover:stwlite-tw-border-gray-400 stwlite-tw-transition-all stwlite-tw-cursor-pointer stwlite-tw-border-solid",title:n(s)("edit_automation",n(wp.i18n.__)("Edit Automation","saveto-wishlist-lite-for-woocommerce"))},[r(n(b),{class:"stwlite-tw-w-4 stwlite-tw-h-4"}),g(" "+d(n(s)("edit_automation",n(wp.i18n.__)("Edit Automation","saveto-wishlist-lite-for-woocommerce"))),1)],8,W),c("button",{onClick:Y,class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-gap-1 stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-bg-white stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-lg stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-red-600 hover:stwlite-tw-bg-red-50 hover:stwlite-tw-border-red-400 stwlite-tw-transition-all stwlite-tw-cursor-pointer stwlite-tw-border-solid",title:n(s)("delete_automation",n(wp.i18n.__)("Delete Automation","saveto-wishlist-lite-for-woocommerce"))},[r(n(f),{class:"stwlite-tw-w-4 stwlite-tw-h-4"})],8,L)]),c("div",P,[c("button",{type:"button",onClick:Z,class:v(["stwlite-tw-relative stwlite-tw-inline-flex stwlite-tw-h-7 stwlite-tw-w-12 stwlite-tw-items-center stwlite-tw-rounded-full stwlite-tw-transition-colors focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 stwlite-tw-border-0 stwlite-tw-cursor-pointer","active"===t.status?"stwlite-tw-bg-green-600 focus:stwlite-tw-ring-green-500":"stwlite-tw-bg-gray-300 focus:stwlite-tw-ring-gray-400"])},[c("span",{class:v(["stwlite-tw-inline-block stwlite-tw-h-5 stwlite-tw-w-5 stwlite-tw-transform stwlite-tw-rounded-full stwlite-tw-bg-white stwlite-tw-transition-transform stwlite-tw-shadow-lg","active"===t.status?"stwlite-tw-translate-x-4":"stwlite-tw-translate-x-0"])},null,2)],2),c("span",R,d("active"===t.status?n(s)("active",n(wp.i18n.__)("Active","saveto-wishlist-lite-for-woocommerce")):n(s)("inactive",n(wp.i18n.__)("Inactive","saveto-wishlist-lite-for-woocommerce"))),1)])])]);var e,i})),128))]))])),r(y,{isOpen:q.value,onClose:$},null,8,["isOpen"])]))}}))}}}));
