System.register(["./index-legacy.DRKniymH.js","./settings-store-legacy.DRLLI9we.js","./pinia-legacy.CU8UeoTp.js","./SectionArea.vue_vue_type_script_setup_true_lang-legacy.y1gTxSQ5.js"],(function(t,e){"use strict";var l,s,i,w,a,r,n,o,d,u,c,b,g,p,v,m,y,x,h;return{setters:[t=>{l=t.d,s=t.t,i=t.r,w=t.J,a=t.o,r=t.c,n=t.b,o=t.a,d=t.u,u=t.G,c=t.M,b=t.N,g=t.H,p=t.e,v=t.g,m=t.P},t=>{y=t.u},t=>{x=t.s},t=>{h=t._}],execute:function(){const e={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-pb-8 stwlite-tw-pt-0"},k={class:"stwlite-tw-flex stwlite-tw-gap-8"},f={class:"stwlite-tw-w-64 stwlite-tw-flex-shrink-0"},_={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-overflow-hidden stwlite-tw-border-solid"},j={class:"stwlite-tw-p-4 stwlite-tw-bg-gray-50 stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-gray-200 stwlite-tw-border-solid"},S={class:"stwlite-tw-font-medium stwlite-tw-text-gray-900 stwlite-tw-m-0"},T={class:"stwlite-tw-p-2"},D=["onClick"],L=["innerHTML"],C={class:"stwlite-tw-align-middle stwlite-tw-text-sm"},H={class:"stwlite-tw-flex-1"},M={key:0},O={key:1,class:"stwlite-tw-space-y-8"},q={class:"stwlite-tw-capitalize stwlite-tw-text-xl stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-1 stwlite-tw-mt-0"},P=["disabled"],z={key:0},A={key:1};t("_",l({__name:"ChildTabs",props:{parentData:{type:Object,required:!0},parentTab:{type:String,required:!0}},emits:["fieldData"],setup(t,{emit:l}){const B=t,{parentData:E,parentTab:F}=s(B),G=y(),{isLoading:J,externalLinks:N,inputValues:V}=x(G),Y=E,I=i(window.lodash.sortBy(Y.value,(t=>t.sort))),K=F,Q=w("tab-child"),R=i(Object.values(I.value)?.[0]??""),U=i(Q??R.value.key??""),W=l,X=t=>{Object.entries(t).forEach((([t,e])=>{V.value[t]=e})),W("fieldData",V.value)};return(t,l)=>(a(),r("div",e,[n("div",k,[n("div",f,[n("div",_,[n("div",j,[n("h3",S,o(d(u)("settings",d(wp.i18n.__)("Settings","saveto-wishlist-lite-for-woocommerce"))),1)]),n("nav",T,[(a(!0),r(c,null,b(I.value,(t=>(a(),r("button",{key:t.key,onClick:e=>{var l;(l=t.key)in N.value||(m("tab-child",l),U.value=l)},class:g(["stwlite-tw-w-full stwlite-tw-flex stwlite-tw-items-center stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-transition-colors stwlite-tw-border-0 stwlite-tw-cursor-pointer stwlite-tw-align-middle",U.value===t.key?"stwlite-tw-bg-blue-50 stwlite-tw-text-blue-700 stwlite-tw-border-r-2 stwlite-tw-border-blue-700":"stwlite-tw-bg-transparent stwlite-tw-text-gray-700 hover:stwlite-tw-bg-gray-50"]),type:"button"},[n("span",{innerHTML:t.icon,class:"stwlite-tw-mr-3 stwlite-tw-align-middle"},null,8,L),n("span",C,o(t.label),1)],10,D)))),128))])])]),n("div",H,[(a(!0),r(c,null,b(I.value,(t=>(a(),r("div",{key:t.key},[U.value===t.key?(a(),r("div",{key:0,class:g(t.key)},[null!=t?.link?(a(),r("div",M,[n("h3",null,o(d(u)("redirectLoading",d(wp.i18n.__)("You are redirecting to a page. Please wait...","saveto-wishlist-lite-for-woocommerce"))),1)])):(a(),r("div",O,[n("div",null,[n("h2",q,o(t.label),1)]),p(h,{"parent-tab":d(K),"child-tab":t.key,"section-data":t.sections,onFieldData:X},null,8,["parent-tab","child-tab","section-data"]),l[0]||(l[0]=n("br",null,null,-1)),!0!==t.no_save?(a(),r("button",{key:0,type:"submit",class:g(["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 stwlite-tw-mb-3",d(J)?"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"]),disabled:d(J)},[d(J)?(a(),r("span",z,o(d(u)("saving",d(wp.i18n.__)("Saving...","saveto-wishlist-lite-for-woocommerce"))),1)):(a(),r("span",A,o(d(u)("submitText",d(wp.i18n.__)("Save Changes","saveto-wishlist-lite-for-woocommerce"))),1))],10,P)):v("",!0)]))],2)):v("",!0)])))),128))])])]))}}))}}}));
