System.register(["../../common/index-legacy.DRKniymH.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"],(function(t,e){"use strict";var l,i,a,o,s,r,n,u,w,d,c,v,p,b,f,m,g,x,y,h,k,_,S,O,L,C,D,T,R,P,I,B,j,F,A,M,V,q,E,N,z,H,$,U,K,Y,Q,W,G,J,X,Z;return{setters:[t=>{l=t.r,i=t.d,a=t.A,o=t.a9,s=t.D,r=t.l,n=t.a8,u=t.M,w=t.s,d=t.aa,c=t.E,v=t.k,p=t.z,b=t.o,f=t.c,m=t.b,g=t.h,x=t.H,y=t.R,h=t.a,k=t.g,_=t.I,S=t.G,O=t.t,L=t.u,C=t.e,D=t.f,T=t.w,R=t.N,P=t.T},t=>{I=t.c},t=>{B=t._},t=>{j=t.d,F=t.e},t=>{A=t.o,M=t.b,V=t.w,q=t.h,E=t.f,N=t.E,z=t.u,H=t.A,$=t.T,U=t.O,K=t.a,Y=t.N,Q=t.c},t=>{W=t.w,G=t.t,J=t.i,X=t.l},t=>{Z=t.s}],execute:function(){var e=document.createElement("style");e.textContent=".stwpro-license-notice-wrapper[data-v-bbabce97]{max-width:100%;padding:1rem;margin-bottom:1rem}@media (min-width: 640px){.stwpro-license-notice-wrapper[data-v-bbabce97]{padding:1rem 1.5rem}}@media (min-width: 1024px){.stwpro-license-notice-wrapper[data-v-bbabce97]{padding:1rem 2rem;max-width:80rem;margin-left:auto;margin-right:auto}}.stwlite-brand-bg-pro-gold-light[data-v-bbabce97]{background-color:rgba(255,193,7,.1)!important}.stwlite-brand-bg-pro-gold[data-v-bbabce97]{background-color:#ffc107!important}.stwlite-brand-bg-pro-gold-dark[data-v-bbabce97]{background-color:#ffb300!important}.stwlite-brand-bg-pink-light[data-v-bbabce97]{background-color:rgba(255,77,109,.1)!important}.stwlite-brand-bg-pink[data-v-bbabce97]{background-color:#ff4d6d!important}.stwlite-brand-bg-pink-dark[data-v-bbabce97]{background-color:#e63950!important}.stwlite-brand-border-pro-gold[data-v-bbabce97]{border-color:#ffc107!important}.stwlite-brand-border-pink[data-v-bbabce97]{border-color:#ff4d6d!important}.stwlite-brand-text-pro-gold-dark[data-v-bbabce97]{color:#ffb300!important}.stwlite-brand-text-pink[data-v-bbabce97]{color:#ff4d6d!important}.stwlite-brand-text-dark[data-v-bbabce97]{color:#333!important}.stwlite-brand-text-gray[data-v-bbabce97]{color:#666!important}h1[data-v-60654ae8]{padding:0}.stwlite-brand-text-dark[data-v-60654ae8]{color:#333!important}.stwlite-brand-text-gray[data-v-60654ae8]{color:#666!important}\n/*$vite$:1*/",document.head.appendChild(e),t({f:wt,u:nt});
/**
       * @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 tt=I("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),et=I("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),lt=I("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),it=I("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),at=t("P",I("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])),ot=I("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),st=t("T",I("trash",[["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"}]]));
/**
       * @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.
       */function rt(t){return[t.screenX,t.screenY]}function nt(){let t=l([-1,-1]);return{wasMoved(e){let l=rt(e);return(t.value[0]!==l[0]||t.value[1]!==l[1])&&(t.value=l,!0)},update(e){t.value=rt(e)}}}var ut=t("c",(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(ut||{}));function wt(t,e){let l=e.resolveItems();if(l.length<=0)return null;let i=e.resolveActiveIndex(),a=null!=i?i:-1;switch(t.focus){case 0:for(let t=0;t<l.length;++t)if(!e.resolveDisabled(l[t],t,l))return t;return i;case 1:-1===a&&(a=l.length);for(let t=a-1;t>=0;--t)if(!e.resolveDisabled(l[t],t,l))return t;return i;case 2:for(let t=a+1;t<l.length;++t)if(!e.resolveDisabled(l[t],t,l))return t;return i;case 3:for(let t=l.length-1;t>=0;--t)if(!e.resolveDisabled(l[t],t,l))return t;return i;case 4:for(let i=0;i<l.length;++i)if(e.resolveId(l[i],i,l)===t.id)return i;return i;case 5:return null;default:!function(t){throw new Error("Unexpected object: "+t)}(t)}}let dt=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ct(t){var e,l;let i=null!=(e=t.innerText)?e:"",a=t.cloneNode(!0);if(!(a instanceof HTMLElement))return i;let o=!1;for(let r of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))r.remove(),o=!0;let s=o?null!=(l=a.innerText)?l:"":i;return dt.test(s)&&(s=s.replace(dt,"")),s}function vt(t){let e=l(""),i=l("");return()=>{let l=A(t);if(!l)return"";let a=l.innerText;if(e.value===a)return i.value;let o=function(t){let e=t.getAttribute("aria-label");if("string"==typeof e)return e.trim();let l=t.getAttribute("aria-labelledby");if(l){let t=l.split(" ").map((t=>{let e=document.getElementById(t);if(e){let t=e.getAttribute("aria-label");return"string"==typeof t?t.trim():ct(e).trim()}return null})).filter(Boolean);if(t.length>0)return t.join(", ")}return ct(t).trim()}(l).trim().toLowerCase();return e.value=a,i.value=o,o}}function pt(t,e){return t===e}var bt=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(bt||{}),ft=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(ft||{}),mt=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(mt||{});let gt=Symbol("ListboxContext");function xt(t){let e=v(gt,null);if(null===e){let e=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,xt),e}return e}let yt=i({name:"Listbox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>pt},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:e,attrs:i,emit:d}){let c=l(1),v=l(null),p=l(null),b=l(null),f=l([]),m=l(""),g=l(null),x=l(1);function y(t=t=>t){let e=null!==g.value?f.value[g.value]:null,l=U(t(f.value.slice()),(t=>A(t.dataRef.domRef))),i=e?l.indexOf(e):null;return-1===i&&(i=null),{options:l,activeOptionIndex:i}}let h=a((()=>t.multiple?1:0)),[k,_]=j(a((()=>t.modelValue)),(t=>d("update:modelValue",t)),a((()=>t.defaultValue))),S=a((()=>void 0===k.value?M(h.value,{1:[],0:void 0}):k.value)),O={listboxState:c,value:S,mode:h,compare(e,l){if("string"==typeof t.by){let i=t.by;return(null==e?void 0:e[i])===(null==l?void 0:l[i])}return t.by(e,l)},orientation:a((()=>t.horizontal?"horizontal":"vertical")),labelRef:v,buttonRef:p,optionsRef:b,disabled:a((()=>t.disabled)),options:f,searchQuery:m,activeOptionIndex:g,activationTrigger:x,closeListbox(){t.disabled||1!==c.value&&(c.value=1,g.value=null)},openListbox(){t.disabled||0!==c.value&&(c.value=0)},goToOption(e,l,i){if(t.disabled||1===c.value)return;let a=y(),o=wt(e===ut.Specific?{focus:ut.Specific,id:l}:{focus:e},{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.disabled});m.value="",g.value=o,x.value=null!=i?i:1,f.value=a.options},search(e){if(t.disabled||1===c.value)return;let l=""!==m.value?0:1;m.value+=e.toLowerCase();let i=(null!==g.value?f.value.slice(g.value+l).concat(f.value.slice(0,g.value+l)):f.value).find((t=>t.dataRef.textValue.startsWith(m.value)&&!t.dataRef.disabled)),a=i?f.value.indexOf(i):-1;-1===a||a===g.value||(g.value=a,x.value=1)},clearSearch(){t.disabled||1!==c.value&&""!==m.value&&(m.value="")},registerOption(t,e){let l=y((l=>[...l,{id:t,dataRef:e}]));f.value=l.options,g.value=l.activeOptionIndex},unregisterOption(t){let e=y((e=>{let l=e.findIndex((e=>e.id===t));return-1!==l&&e.splice(l,1),e}));f.value=e.options,g.value=e.activeOptionIndex,x.value=1},theirOnChange(e){t.disabled||_(e)},select(e){t.disabled||_(M(h.value,{0:()=>e,1:()=>{let t=w(O.value.value).slice(),l=w(e),i=t.findIndex((t=>O.compare(l,w(t))));return-1===i?t.push(l):t.splice(i,1),t}}))}};W([p,b],((t,e)=>{var l;O.closeListbox(),V(e,q.Loose)||(t.preventDefault(),null==(l=A(p))||l.focus())}),a((()=>0===c.value))),o(gt,O),G(a((()=>M(c.value,{0:J.Open,1:J.Closed}))));let L=a((()=>{var t;return null==(t=A(p))?void 0:t.closest("form")}));return s((()=>{r([L],(()=>{if(L.value&&void 0!==t.defaultValue)return L.value.addEventListener("reset",e),()=>{var t;null==(t=L.value)||t.removeEventListener("reset",e)};function e(){O.theirOnChange(t.defaultValue)}}),{immediate:!0})})),()=>{let{name:l,modelValue:a,disabled:o,form:s,...r}=t,w={open:0===c.value,disabled:o,value:S.value};return n(u,[...null!=l&&null!=S.value?F({[l]:S.value}).map((([t,e])=>n(E,N({features:z.Hidden,key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:o,name:t,value:e})))):[],H({ourProps:{},theirProps:{...i,...$(r,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:w,slots:e,attrs:i,name:"Listbox"})])}}}),ht=i({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(t,{attrs:e,slots:l,expose:i}){var o;let s=null!=(o=t.id)?o:`headlessui-listbox-button-${K()}`,r=xt("ListboxButton");function n(t){switch(t.key){case Q.Space:case Q.Enter:case Q.ArrowDown:t.preventDefault(),r.openListbox(),p((()=>{var t;null==(t=A(r.optionsRef))||t.focus({preventScroll:!0}),r.value.value||r.goToOption(ut.First)}));break;case Q.ArrowUp:t.preventDefault(),r.openListbox(),p((()=>{var t;null==(t=A(r.optionsRef))||t.focus({preventScroll:!0}),r.value.value||r.goToOption(ut.Last)}))}}function u(t){t.key===Q.Space&&t.preventDefault()}function w(t){r.disabled.value||(0===r.listboxState.value?(r.closeListbox(),p((()=>{var t;return null==(t=A(r.buttonRef))?void 0:t.focus({preventScroll:!0})}))):(t.preventDefault(),r.openListbox(),function(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}((()=>{var t;return null==(t=A(r.optionsRef))?void 0:t.focus({preventScroll:!0})}))))}i({el:r.buttonRef,$el:r.buttonRef});let d=Z(a((()=>({as:t.as,type:e.type}))),r.buttonRef);return()=>{var i,a;let o={open:0===r.listboxState.value,disabled:r.disabled.value,value:r.value.value},{...c}=t,v={ref:r.buttonRef,id:s,type:d.value,"aria-haspopup":"listbox","aria-controls":null==(i=A(r.optionsRef))?void 0:i.id,"aria-expanded":0===r.listboxState.value,"aria-labelledby":r.labelRef.value?[null==(a=A(r.labelRef))?void 0:a.id,s].join(" "):void 0,disabled:!0===r.disabled.value||void 0,onKeydown:n,onKeyup:u,onClick:w};return H({ourProps:v,theirProps:c,slot:o,attrs:e,slots:l,name:"ListboxButton"})}}}),kt=i({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(t,{attrs:e,slots:i,expose:o}){var s;let r=null!=(s=t.id)?s:`headlessui-listbox-options-${K()}`,n=xt("ListboxOptions"),u=l(null);function w(t){switch(u.value&&clearTimeout(u.value),t.key){case Q.Space:if(""!==n.searchQuery.value)return t.preventDefault(),t.stopPropagation(),n.search(t.key);case Q.Enter:if(t.preventDefault(),t.stopPropagation(),null!==n.activeOptionIndex.value){let t=n.options.value[n.activeOptionIndex.value];n.select(t.dataRef.value)}0===n.mode.value&&(n.closeListbox(),p((()=>{var t;return null==(t=A(n.buttonRef))?void 0:t.focus({preventScroll:!0})})));break;case M(n.orientation.value,{vertical:Q.ArrowDown,horizontal:Q.ArrowRight}):return t.preventDefault(),t.stopPropagation(),n.goToOption(ut.Next);case M(n.orientation.value,{vertical:Q.ArrowUp,horizontal:Q.ArrowLeft}):return t.preventDefault(),t.stopPropagation(),n.goToOption(ut.Previous);case Q.Home:case Q.PageUp:return t.preventDefault(),t.stopPropagation(),n.goToOption(ut.First);case Q.End:case Q.PageDown:return t.preventDefault(),t.stopPropagation(),n.goToOption(ut.Last);case Q.Escape:t.preventDefault(),t.stopPropagation(),n.closeListbox(),p((()=>{var t;return null==(t=A(n.buttonRef))?void 0:t.focus({preventScroll:!0})}));break;case Q.Tab:t.preventDefault(),t.stopPropagation();break;default:1===t.key.length&&(n.search(t.key),u.value=setTimeout((()=>n.clearSearch()),350))}}o({el:n.optionsRef,$el:n.optionsRef});let d=X(),c=a((()=>null!==d?(d.value&J.Open)===J.Open:0===n.listboxState.value));return()=>{var l,a;let o={open:0===n.listboxState.value},{...s}=t,u={"aria-activedescendant":null===n.activeOptionIndex.value||null==(l=n.options.value[n.activeOptionIndex.value])?void 0:l.id,"aria-multiselectable":1===n.mode.value||void 0,"aria-labelledby":null==(a=A(n.buttonRef))?void 0:a.id,"aria-orientation":n.orientation.value,id:r,onKeydown:w,role:"listbox",tabIndex:0,ref:n.optionsRef};return H({ourProps:u,theirProps:s,slot:o,attrs:e,slots:i,features:Y.RenderStrategy|Y.Static,visible:c.value,name:"ListboxOptions"})}}}),_t=i({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(t,{slots:e,attrs:i,expose:o}){var n;let u=null!=(n=t.id)?n:`headlessui-listbox-option-${K()}`,v=xt("ListboxOption"),b=l(null);o({el:b,$el:b});let f=a((()=>null!==v.activeOptionIndex.value&&v.options.value[v.activeOptionIndex.value].id===u)),m=a((()=>M(v.mode.value,{0:()=>v.compare(w(v.value.value),w(t.value)),1:()=>w(v.value.value).some((e=>v.compare(w(e),w(t.value))))}))),g=a((()=>M(v.mode.value,{1:()=>{var t;let e=w(v.value.value);return(null==(t=v.options.value.find((t=>e.some((e=>v.compare(w(e),w(t.dataRef.value)))))))?void 0:t.id)===u},0:()=>m.value}))),x=vt(b),y=a((()=>({disabled:t.disabled,value:t.value,get textValue(){return x()},domRef:b})));function h(e){if(t.disabled)return e.preventDefault();v.select(t.value),0===v.mode.value&&(v.closeListbox(),p((()=>{var t;return null==(t=A(v.buttonRef))?void 0:t.focus({preventScroll:!0})})))}function k(){if(t.disabled)return v.goToOption(ut.Nothing);v.goToOption(ut.Specific,u)}s((()=>v.registerOption(u,y))),d((()=>v.unregisterOption(u))),s((()=>{r([v.listboxState,m],(()=>{0===v.listboxState.value&&m.value&&M(v.mode.value,{1:()=>{g.value&&v.goToOption(ut.Specific,u)},0:()=>{v.goToOption(ut.Specific,u)}})}),{immediate:!0})})),c((()=>{0===v.listboxState.value&&f.value&&0!==v.activationTrigger.value&&p((()=>{var t,e;return null==(e=null==(t=A(b))?void 0:t.scrollIntoView)?void 0:e.call(t,{block:"nearest"})}))}));let _=nt();function S(t){_.update(t)}function O(e){_.wasMoved(e)&&(t.disabled||f.value||v.goToOption(ut.Specific,u,0))}function L(e){_.wasMoved(e)&&(t.disabled||f.value&&v.goToOption(ut.Nothing))}return()=>{let{disabled:l}=t,a={active:f.value,selected:m.value,disabled:l},{value:o,disabled:s,...r}=t,n={id:u,ref:b,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":m.value,disabled:void 0,onClick:h,onFocus:k,onPointerenter:S,onMouseenter:S,onPointermove:O,onMousemove:O,onPointerleave:L,onMouseleave:L};return H({ourProps:n,theirProps:r,slot:a,attrs:i,slots:e,name:"ListboxOption"})}}});const St={key:0,class:"stwpro-license-notice-wrapper"},Ot={class:"stwlite-tw-flex stwlite-tw-items-start"},Lt={class:"stwlite-tw-flex-1"},Ct={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-gap-3"},Dt=["href"],Tt=B(i({__name:"LicenseNotice",setup(t){const e=a((()=>_?.isProInstalled??!1)),i=a((()=>_?.stwproStatus??{success:!1,check_type:"",license_page_url:""})),o=a((()=>i.value.success)),r=a((()=>i.value.check_type||"license_data")),n=a((()=>i.value.license_page_url)),u=l(!1);s((()=>{const t=JSON.parse(localStorage.getItem("stwpro_dismissed_license_notices")||"{}"),e=`license_${r.value}`;u.value=!0===t[e]}));const w=a((()=>!o.value)),d=a((()=>{const t={icon:lt,bgColor:"stwlite-brand-bg-pink-light",borderColor:"stwlite-brand-border-pink",iconColor:"stwlite-brand-text-pink",titleColor:"stwlite-brand-text-dark",textColor:"stwlite-brand-text-gray",buttonColor:"stwlite-brand-bg-pink hover:stwlite-brand-bg-pink-dark",title:S("license_not_active_title",wp.i18n.__("License Not Active","saveto-wishlist-lite-for-woocommerce")),message:S("license_not_active_message",wp.i18n.__("Your license is not currently active. Please validate your license key to access all premium features.","saveto-wishlist-lite-for-woocommerce")),buttonText:S("activate_license",wp.i18n.__("Activate License","saveto-wishlist-lite-for-woocommerce"))},e={license_data:{icon:it,bgColor:"stwlite-brand-bg-pro-gold-light",borderColor:"stwlite-brand-border-pro-gold",iconColor:"stwlite-brand-text-pro-gold-dark",titleColor:"stwlite-brand-text-dark",textColor:"stwlite-brand-text-gray",buttonColor:"stwlite-brand-bg-pro-gold hover:stwlite-brand-bg-pro-gold-dark",title:S("license_not_provided_title",wp.i18n.__("License Not Provided","saveto-wishlist-lite-for-woocommerce")),message:S("license_not_provided_message",wp.i18n.__("Please enter and activate your SaveTo Wishlist Pro license key to access all premium features and receive updates.","saveto-wishlist-lite-for-woocommerce")),buttonText:S("activate_license",wp.i18n.__("Activate License","saveto-wishlist-lite-for-woocommerce"))},license_activated:t,license_status:t,license_expiration:{icon:lt,bgColor:"stwlite-brand-bg-pink-light",borderColor:"stwlite-brand-border-pink",iconColor:"stwlite-brand-text-pink",titleColor:"stwlite-brand-text-dark",textColor:"stwlite-brand-text-gray",buttonColor:"stwlite-brand-bg-pink hover:stwlite-brand-bg-pink-dark",title:S("license_expired_title",wp.i18n.__("License Expired","saveto-wishlist-lite-for-woocommerce")),message:S("license_expired_message",wp.i18n.__("Your license has expired. Please renew your license to continue receiving updates and support.","saveto-wishlist-lite-for-woocommerce")),buttonText:S("renew_license",wp.i18n.__("Renew License","saveto-wishlist-lite-for-woocommerce"))}};return e[r.value]||e.license_data})),c=a((()=>d.value.icon));return(t,l)=>w.value&&e.value?(b(),f("div",St,[m("div",{class:x(["stwlite-tw-border-l-4 stwlite-tw-p-6 stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-relative",d.value.bgColor,d.value.borderColor])},[m("div",Ot,[(b(),g(y(c.value),{class:x(["stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-mr-3 stwlite-tw-mt-0.5 stwlite-tw-flex-shrink-0",d.value.iconColor])},null,8,["class"])),m("div",Lt,[m("h3",{class:x(["stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-mb-2 stwlite-tw-mt-0",d.value.titleColor])},h(d.value.title),3),m("p",{class:x(["stwlite-tw-mb-4",d.value.textColor])},h(d.value.message),3),m("div",Ct,[m("a",{href:n.value,class:x(["stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-text-white stwlite-tw-font-medium stwlite-tw-rounded-lg stwlite-tw-transition-colors stwlite-tw-no-underline hover:stwlite-tw-text-white",d.value.buttonColor])},h(d.value.buttonText),11,Dt)])])])],2)])):k("",!0)}}),[["__scopeId","data-v-bbabce97"]]),Rt={class:"global-header stwlite-tw-bg-white stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-gray-200 stwlite-tw-border-solid"},Pt={class:"stwlite-tw-px-4 sm:stwlite-tw-px-6 lg:stwlite-tw-px-8"},It={class:"stwlite-tw-flex stwlite-tw-justify-between stwlite-tw-items-center stwlite-tw-py-4"},Bt={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-4"},jt=["src","alt"],Ft={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-4"},At={class:"stwlite-tw-text-2xl stwlite-tw-font-semibold stwlite-brand-text-dark stwlite-tw-my-0 stwlite-tw-py-0"},Mt={key:0,class:"stwlite-tw-text-sm stwlite-brand-text-gray stwlite-tw-mt-1 stwlite-tw-mb-0"},Vt={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-end stwlite-tw-space-x-4"},qt=["disabled"],Et={key:1},Nt={key:2},zt={class:"stwlite-tw-relative stwlite-tw-w-96"},Ht={class:"stwlite-tw-flex stwlite-tw-items-center"},$t={class:"stwlite-tw-flex stwlite-tw-flex-col"},Ut={class:"stwlite-tw-block stwlite-tw-truncate stwlite-tw-text-lg stwlite-tw-font-medium stwlite-tw-text-gray-900"},Kt={class:"stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-mt-0.5"},Yt={class:"stwlite-tw-py-1 stwlite-tw-max-h-64 stwlite-tw-overflow-y-auto"},Qt={class:"stwlite-tw-flex stwlite-tw-flex-col"},Wt={class:"stwlite-tw-flex stwlite-tw-items-center"},Gt={class:"stwlite-tw-flex stwlite-tw-flex-col"},Jt={class:"stwlite-tw-text-xs stwlite-tw-text-gray-500 stwlite-tw-mt-0.5"},Xt=i({__name:"Header",props:{infoData:{type:Object,required:!0},showButton:{type:Boolean,required:!1,default:!1},buttonIcon:{type:String,required:!1,default:""},buttonText:{type:String,required:!1,default:S("submitText",wp.i18n.__("Save Changes","saveto-wishlist-lite-for-woocommerce"))},buttonLoadingText:{type:String,required:!1,default:S("saving",wp.i18n.__("Saving...","saveto-wishlist-lite-for-woocommerce"))},showBackButton:{type:Boolean,required:!1,default:!1},showDeleteButton:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},selectedOption:{type:String,required:!1,default:null},showSelect:{type:Boolean,required:!1,default:!1},selectOptions:{type:Array,required:!1,default:[]}},emits:["trigger-button","trigger-back","trigger-delete","select-change"],setup(t,{emit:e}){const i=t,{infoData:o,showButton:s,buttonText:r,buttonLoadingText:n,showBackButton:w,showDeleteButton:d,isLoading:c,showSelect:v,selectOptions:p,selectedOption:I}=O(i),B=a((()=>o.value.title)),j=a((()=>o.value.description||"")),F=_.details,A=e,M=l(!1),V=()=>{A("trigger-button")},q=()=>{A("trigger-back")},E=()=>{A("trigger-delete")},N=t=>{A("select-change",t||""),M.value=!1};return(e,l)=>(b(),f(u,null,[m("div",Rt,[m("div",Pt,[m("div",It,[m("div",Bt,[m("img",{src:L(F).logo,alt:L(F).logo_alt,class:"stwlite-tw-max-w-12"},null,8,jt),m("div",Ft,[L(w)?(b(),f("button",{key:0,onClick:q,class:"stwlite-tw-inline-flex stwlite-tw-border-0 stwlite-tw-items-center stwlite-tw-text-gray-600 hover:stwlite-tw-text-gray-900 stwlite-tw-transition-colors stwlite-tw-duration-200 stwlite-tw-text-base stwlite-tw-bg-transparent stwlite-tw-cursor-pointer"},[C(L(tt),{class:"stwlite-tw-w-5 stwlite-tw-h-5 stwlite-tw-mr-2"}),D(" "+h(L(S)("back",L(wp.i18n.__)("Back","saveto-wishlist-lite-for-woocommerce"))),1)])):k("",!0),m("div",null,[m("h1",At,h(B.value),1),j.value?(b(),f("p",Mt,h(j.value),1)):k("",!0)])])]),m("div",Vt,[L(s)?(b(),f("button",{key:0,type:"button",class:x(["stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-bg-blue-600 stwlite-tw-text-white stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-rounded-md stwlite-tw-font-medium stwlite-tw-text-sm hover:stwlite-tw-bg-blue-700 stwlite-tw-transition-colors stwlite-tw-border-0 stwlite-tw-cursor-pointer",L(c)?"stwlite-tw-bg-gray-400 stwlite-tw-cursor-not-allowed hover:stwlite-tw-bg-gray-400":"stwlite-tw-bg-blue-600 hover:stwlite-tw-bg-blue-700"]),onClick:V,disabled:L(c)},[t.buttonIcon?(b(),g(y("save"===t.buttonIcon?L(ot):L(at)),{key:0,class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"})):k("",!0),L(c)?(b(),f("span",Et,h(L(n)),1)):(b(),f("span",Nt,h(L(r)),1))],10,qt)):k("",!0),L(v)?(b(),g(L(yt),{key:1,"model-value":L(I),"onUpdate:modelValue":N},{default:T((()=>[m("div",zt,[C(L(ht),{class:"stwlite-tw-relative stwlite-tw-w-full stwlite-tw-bg-white stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-lg stwlite-tw-px-5 stwlite-tw-py-3 stwlite-tw-text-left stwlite-tw-shadow-sm hover:stwlite-tw-border-gray-400 stwlite-tw-transition-colors focus:stwlite-tw-outline-none focus-visible:stwlite-tw-ring-2 focus-visible:stwlite-tw-ring-offset-2 focus-visible:stwlite-tw-ring-blue-500 stwlite-tw-text-lg stwlite-tw-cursor-pointer"},{default:T((()=>[m("div",Ht,[L(p).find((t=>t.value===L(I)))?.icon?(b(),g(y(L(p).find((t=>t.value===L(I)))?.icon),{key:0,class:"stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-mr-3 stwlite-tw-text-blue-600"})):k("",!0),m("div",$t,[m("span",Ut,h(L(p).find((t=>t.value===L(I)))?.label||""),1),m("span",Kt,h(L(p).find((t=>t.value===L(I)))?.description||""),1)])]),C(L(et),{class:x(["stwlite-tw-absolute stwlite-tw-right-4 stwlite-tw-top-1/2 stwlite-tw--translate-y-1/2 stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-transition-transform",M.value?"stwlite-tw-rotate-180":""])},null,8,["class"])])),_:1}),C(P,{"leave-active-class":"stwlite-tw-transition stwlite-tw-duration-100 stwlite-tw-ease-in","leave-from-class":"stwlite-tw-opacity-100","leave-to-class":"stwlite-tw-opacity-0"},{default:T((()=>[C(L(kt),{class:"stwlite-tw-absolute stwlite-tw-right-0 stwlite-tw-z-50 stwlite-tw-w-96 stwlite-tw-mt-2 stwlite-tw-bg-white stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-rounded-lg stwlite-tw-shadow-lg stwlite-tw-ring-1 stwlite-tw-ring-black stwlite-tw-ring-opacity-5"},{default:T((()=>[m("div",Yt,[(b(!0),f(u,null,R(L(p),(t=>(b(),g(L(_t),{key:t.value,value:t.value,as:"template"},{default:T((({active:e,selected:l})=>[m("li",{class:x(["stwlite-tw-px-4 stwlite-tw-py-3 stwlite-tw-cursor-pointer stwlite-tw-transition-colors",e?"stwlite-tw-bg-blue-50":"",l?"stwlite-tw-bg-blue-100 stwlite-tw-border-l-4 stwlite-tw-border-l-blue-600":"stwlite-tw-border-l-4 stwlite-tw-border-l-transparent"])},[m("div",Qt,[m("div",Wt,[t.icon?(b(),g(y(t.icon),{key:0,class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"})):k("",!0),m("div",Gt,[m("span",{class:x(["stwlite-tw-font-medium stwlite-tw-text-sm",l?"stwlite-tw-text-blue-900":"stwlite-tw-text-gray-900"])},h(t.label),3),m("span",Jt,h(t.description),1)])])])],2)])),_:2},1032,["value"])))),128))])])),_:1})])),_:1})])])),_:1},8,["model-value"])):k("",!0),L(d)?(b(),f("button",{key:2,onClick:E,class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-transparent stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-text-white stwlite-tw-bg-red-600 hover:stwlite-tw-bg-red-700 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 focus:stwlite-tw-ring-red-500 stwlite-tw-transition-colors stwlite-tw-duration-200 stwlite-tw-cursor-pointer"},[C(L(st),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),D(" "+h(L(S)("delete",L(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)])):k("",!0)])])])]),C(Tt)],64))}});t("H",B(Xt,[["__scopeId","data-v-60654ae8"]]))}}}));
