import{_ as H,c as ee,l as ht,U as se,F as _e,a as oe,b as Ue,S as vt,C as Le,L as ue,T as kt,I as Ve,d as St,e as $t,M as wt,f as Dt,E as Ct,g as Ot,h as Ut,D as At,G as qt,B as Kt,i as Pe,j as Tt,A as Pt}from"./app-d76245a8.js";import{aF as we,br as zt,bs as Et,c as ie,r as I,e as te,g as Ae,k as l,l as p,z as A,w as a,q as t,p as q,F as z,N as X,s as r,v as s,x as M,bJ as It,j as le,bK as je,bL as qe,bf as ze,aL as Ne,bt as Ye,bm as Ee,at as Ie,bM as Ge,aP as Qe,bN as Xe,bO as Ft,bP as Je,b as De,o as G,J as re,E as me,y as R,a6 as Fe,aB as Be,bQ as Mt,K as de,L as Rt,a as Ht,aT as Ze,a4 as Me,R as Y,T as Se,U as Q,aZ as Ce,bR as Re,B as He,aE as xe,bS as Wt,aA as Bt,V as J,W as x,Z as et,bT as Lt,aV as tt,bU as Vt,bV as jt,a9 as at,aJ as Nt,aI as Yt,aK as Gt,aN as Qt,aO as Xt,aQ as Jt,ax as Zt,aR as xt,aS as ea,aU as ta,av as aa,bW as la,a0 as ae,a2 as ne,aW as lt,a$ as na,b0 as oa,m as Te,ak as nt,bd as sa,bX as ra,bY as ia,bZ as ua,b_ as da,b$ as ma,c0 as _a,c1 as pa,c2 as ca,c3 as fa,f as $e,a5 as ot,P as ga,bw as ba,be as ya,A as ha,b6 as va,c4 as ka}from"./vendor-7a11ff10.js";import{O as Sa}from"./OfflineRequestStatus-04bce531.js";const Oe=["innerWidth","collapsed","cssSettings","isRtl"],st=we("div",Oe)`

`,rt=we("div",Oe)`
	${({innerWidth:e,collapsed:n,isRtl:f})=>f?e<=991?"margin-right: 2px;":n?"margin-right: 80px;":"margin-right: 240px;":""}
	${({innerWidth:e,collapsed:n,isRtl:f})=>f?"":e<=991?"margin-left: 2px;":n?"margin-left: 80px;":"margin-left: 240px;"}
	min-height: 100vh;
`,$a=we("div",Oe)`
	display: flex;
	justify-content: flex-end;
	align-items: center;
`,wa=we("div",Oe)`
	.ant-layout-header, .ant-menu-horizontal{
		background: #2e3f50 !important;
	}
`,it=we("div",Oe)`

	.breadcrumb-header {
		.page-content-sub-header {
			padding-top: 10px !important;
			padding-bottom: 10px !important;

			${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?"border-bottom: 0px":""};
		}

		.breadcrumb-left-border {
			border-left: none !important;
		}

		.ant-card-body {
			padding: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?`0px ${e.leftRightPadding}`:"0px"};
			margin: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?"0px":"0px 16px 0"};
		}
	}

	.dashboard-page-content-container {
		padding: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?`0px ${e.leftRightPadding}`:"0px"};
		margin: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?"0px":"0px 16px 0"};
		${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?"border-top: 1px solid #cbd6e2":""};
	}

	.page-content-container {
		min-height: calc(100vh - 165px);
	}

	.email-page-content-container {
		min-height: calc(100vh - 202px);
	}

	.page-content-container, .email-page-content-container {
		${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?"border-top: 1px solid #cbd6e2":""};
		
		.ant-card-body {
			padding: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?`0px ${e.leftRightPadding}`:"0px"};
			margin: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?"0px":"0px 16px 0"};
			padding-top: 30px;
		}
	}

	.setting-sidebar {
		margin-left: ${({cssSettings:e})=>e&&e.headerMenuMode=="horizontal"?`${e.leftRightPadding}`:"0px"};
	}
`;const Da={props:["collapsed"],components:{MenuOutlined:zt,DownOutlined:Et,HeaderRightIcons:$a},setup(e,{emit:n}){const{user:f,appSetting:o,permsArray:w,menuCollapsed:$}=ee(),_=ie(),i=I(_.state.auth.lang),{locale:u,t:d}=te(),c=I(window.config.theme_mode!="light"),h=I(!1),D=async v=>{_.commit("auth/updateLang",v),await ht(i18n,v),i.value=v,u.value=v},m=()=>{_.commit("auth/updateMenuCollapsed",!$.value)},g=()=>{_.dispatch("auth/logout")},S=v=>{const k=v?"dark":"light";h.value=!0,axiosAdmin.post("change-theme-mode",{theme_mode:k}).then(C=>{C.data.status=="success"&&window.location.reload(),h.value=!1})};return{permsArray:w,appSetting:o,logout:g,showHideMenu:m,langSelected:D,selectedLang:i,langs:Ae(()=>_.state.auth.allLangs),user:f,themeMode:c,themeModeChanged:S,themeModeLoading:h}}};function Ca(e,n,f,o,w,$){const _=l("MenuOutlined"),i=l("a-space"),u=l("a-col"),d=l("DownOutlined"),c=l("a-avatar"),h=l("a-menu-item"),D=l("a-menu"),m=l("a-dropdown"),g=l("a-divider"),S=l("a-button"),v=l("HeaderRightIcons"),k=l("a-row"),C=l("a-layout-header");return p(),A(C,{style:{padding:"0 16px",background:"white"}},{default:a(()=>[t(k,null,{default:a(()=>[t(u,{span:4},{default:a(()=>[t(i,null,{default:a(()=>[t(_,{class:"trigger",onClick:o.showHideMenu},null,8,["onClick"])]),_:1})]),_:1}),t(u,{span:20},{default:a(()=>[t(v,null,{default:a(()=>[t(i,null,{default:a(()=>[t(m,{placement:o.appSetting.rtl?"bottomLeft":"bottomRight"},{overlay:a(()=>[t(D,null,{default:a(()=>[(p(!0),q(z,null,X(o.langs,y=>(p(),A(h,{key:y.key,onClick:b=>o.langSelected(y.key)},{default:a(()=>[t(i,null,{default:a(()=>[t(c,{shape:"square",size:"small",src:y.image_url},null,8,["src"]),r(" "+s(y.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:a(()=>[M("a",{class:"ant-dropdown-link",onClick:n[0]||(n[0]=It(()=>{},["prevent"]))},[r(s(o.selectedLang)+" ",1),t(d)])]),_:1},8,["placement"]),t(g,{type:"vertical"}),t(S,{type:"link",onClick:n[1]||(n[1]=()=>{e.$router.push({name:"superadmin.settings.profile.index"})}),class:"p-0"},{default:a(()=>[t(c,{size:"small",src:o.user.profile_image_url},null,8,["src"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const ut=H(Da,[["render",Ca]]);const{Sider:Oa}=qe,Ua=le({components:{Sider:Oa,PerfectScrollbar:je,Layout:qe,HomeOutlined:ze,ShopOutlined:Ne,LogoutOutlined:Ye,CloseOutlined:Ee,SettingOutlined:Ie,TeamOutlined:Ge,DollarOutlined:Qe,GlobalOutlined:Xe,CalculatorOutlined:Ft,ContactsOutlined:Je},setup(e,{emit:n}){const{appSetting:f,user:o,permsArray:w,appModules:$,menuCollapsed:_}=ee(),i=["dashboard","companies","subscriptions","payment_transactions","users","payment_settings","website_settings","settings","email_queries"],u=ie(),d=De(),c=window.innerWidth,h=I([]),D=I([]),m=I("inline");G(()=>{var k=typeof d.meta.menuKey=="function"?d.meta.menuKey(d):d.meta.menuKey;d.meta.menuParent=="settings"?k="settings":d.meta.menuParent=="payment_settings"?k="payment_settings":d.meta.menuParent=="website_settings"?k="website_settings":d.meta.menuParent=="subscriptions"&&(k="subscriptions"),c<=991?h.value=[]:h.value=_.value?[]:[d.meta.menuParent],D.value=[k.replace("-","_")]});const g=()=>{u.dispatch("auth/logout")},S=()=>{c<=991&&u.commit("auth/updateMenuCollapsed",!0)},v=k=>{const C=k.find(y=>h.value.indexOf(y)===-1);i.indexOf(C)===-1?h.value=k:h.value=C?[C]:[]};return re(d,(k,C)=>{const y=typeof k.meta.menuKey=="function"?k.meta.menuKey(k):k.meta.menuKey;c<=991?h.value=[]:h.value=[k.meta.menuParent],k.meta.menuParent=="settings"?D.value=["settings"]:k.meta.menuParent=="payment_settings"?D.value=["payment_settings"]:k.meta.menuParent=="website_settings"?D.value=["website_settings"]:k.meta.menuParent=="subscriptions"?D.value=["subscriptions"]:D.value=[y.replace("-","_")]}),re(()=>_.value,(k,C)=>{const y=typeof d.meta.menuKey=="function"?d.meta.menuKey(d):d.meta.menuKey;c<=991&&_.value?h.value=[]:h.value=_.value?[]:[d.meta.menuParent],d.meta.menuParent=="settings"?D.value=["settings"]:D.value=[y.replace("-","_")]}),{mode:m,selectedKeys:D,openKeys:h,logout:g,innerWidth:window.innerWidth,onOpenChange:v,menuSelected:S,menuCollapsed:_,appSetting:f,user:o,permsArray:w,appModules:$}}}),Aa={key:0,class:"logo"},qa=["src"],Ka={key:1},Ta=["src"],Pa={class:"main-sidebar"};function za(e,n,f,o,w,$){const _=l("CloseOutlined"),i=l("HomeOutlined"),u=l("a-menu-item"),d=l("ShopOutlined"),c=l("DollarOutlined"),h=l("CalculatorOutlined"),D=l("ContactsOutlined"),m=l("TeamOutlined"),g=l("GlobalOutlined"),S=l("SettingOutlined"),v=l("LogoutOutlined"),k=l("a-menu"),C=l("perfect-scrollbar"),y=l("a-layout-sider");return p(),A(y,{width:240,style:{margin:"0 0 0 0",overflowY:"auto",position:"fixed",paddingTop:"8px",zIndex:998},trigger:null,collapsed:e.menuCollapsed,theme:e.appSetting.left_sidebar_theme,class:"sidebar-right-border"},{default:a(()=>[e.menuCollapsed?(p(),q("div",Aa,[M("img",{style:{height:"32px"},src:e.appSetting.left_sidebar_theme=="dark"?e.appSetting.small_dark_logo_url:e.appSetting.small_light_logo_url},null,8,qa)])):(p(),q("div",Ka,[M("img",{style:me({width:"150px",height:"53px",paddingLeft:e.appSetting.rtl?"0px":"30px",paddingRight:e.appSetting.rtl?"30px":"0px",paddingTop:"5px",paddingBottom:"20px",marginLeft:e.appSetting.rtl?"0px":"10px",marginRight:e.appSetting.rtl?"10px":"0px"}),src:e.appSetting.left_sidebar_theme=="dark"?e.appSetting.dark_logo_url:e.appSetting.light_logo_url},null,12,Ta),e.innerWidth<=991?(p(),A(_,{key:0,style:me({marginLeft:e.appSetting.rtl?"0px":"45px",marginRight:e.appSetting.rtl?"45px":"0px",verticalAlign:"super",color:e.appSetting.left_sidebar_theme=="dark"?"#fff":"#000000"}),onClick:e.menuSelected},null,8,["style","onClick"])):R("",!0)])),M("div",Pa,[t(C,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:a(()=>[t(k,{theme:e.appSetting.left_sidebar_theme,openKeys:e.openKeys,selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[9]||(n[9]=b=>e.selectedKeys=b),mode:e.mode,onOpenChange:e.onOpenChange,style:{borderRight:"none"}},{default:a(()=>[t(u,{onClick:n[0]||(n[0]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.dashboard.index"})}),key:"dashboard"},{default:a(()=>[t(i),M("span",null,s(e.$t("menu.dashboard")),1)]),_:1}),t(u,{onClick:n[1]||(n[1]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.companies.index"})}),key:"companies"},{default:a(()=>[t(d),M("span",null,s(e.$t("menu.companies")),1)]),_:1}),t(u,{onClick:n[2]||(n[2]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.subscriptions.plans.index"})}),key:"subscriptions"},{default:a(()=>[t(c),M("span",null,s(e.$t("menu.subscriptions")),1)]),_:1}),t(u,{onClick:n[3]||(n[3]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.payment_transactions.index"})}),key:"payment_transactions"},{default:a(()=>[t(h),M("span",null,s(e.$t("menu.payment_transactions")),1)]),_:1}),t(u,{onClick:n[4]||(n[4]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.offline_requests.index"})}),key:"offline_requests"},{default:a(()=>[t(d),M("span",null,s(e.$t("menu.offline_requests")),1)]),_:1}),t(u,{onClick:n[5]||(n[5]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.email-queries.index"})}),key:"email_queries"},{default:a(()=>[t(D),M("span",null,s(e.$t("menu.email_queries")),1)]),_:1}),t(u,{onClick:n[6]||(n[6]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.users.index"})}),key:"users"},{default:a(()=>[t(m),M("span",null,s(e.$t("menu.superadmins")),1)]),_:1}),t(u,{onClick:n[7]||(n[7]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.website_settings.header.index"})}),key:"website_settings"},{default:a(()=>[t(g),M("span",null,s(e.$t("menu.website_settings")),1)]),_:1}),t(u,{onClick:n[8]||(n[8]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.settings.profile.index"})}),key:"settings"},{default:a(()=>[t(S),M("span",null,s(e.$t("menu.settings")),1)]),_:1}),t(u,{onClick:e.logout,key:"logout"},{default:a(()=>[t(v),M("span",null,s(e.$t("menu.logout")),1)]),_:1},8,["onClick"])]),_:1},8,["theme","openKeys","selectedKeys","mode","onOpenChange"])]),_:1})])]),_:1},8,["collapsed","theme"])}const dt=H(Ua,[["render",za]]),{Sider:Ea}=qe,Ia=le({props:["collapsed"],components:{Sider:Ea,PerfectScrollbar:je,Layout:qe,HomeOutlined:ze,LogoutOutlined:Ye},setup(e,{emit:n}){const{appSetting:f,user:o,permsArray:w,appModules:$,cssSettings:_}=ee(),i=["dashboard"],u=ie(),d=De(),c=I([]),h=I([]),D=I("horizontal");G(()=>{v(d)});const m=()=>{u.dispatch("auth/logout")},g=()=>{n("menuSelected")},S=k=>{const C=k.find(y=>c.value.indexOf(y)===-1);i.indexOf(C)===-1?c.value=k:c.value=C?[C]:[]},v=k=>{const C=typeof k.meta.menuKey=="function"?k.meta.menuKey(k):k.meta.menuKey;k.meta.menuParent=="settings"?h.value=["settings"]:h.value=[C.replace("-","_")],_.value.headerMenuMode=="horizontal"?c.value=[]:c.value=[k.meta.menuParent]};return re(d,(k,C)=>{v(k)}),{mode:D,selectedKeys:h,openKeys:c,logout:m,innerWidth:window.innerWidth,onOpenChange:S,menuSelected:g,appSetting:f,user:o,permsArray:w,appModules:$}}});function Fa(e,n,f,o,w,$){const _=l("HomeOutlined"),i=l("a-menu-item"),u=l("LogoutOutlined"),d=l("a-menu");return p(),A(d,{theme:e.appSetting.left_sidebar_theme,openKeys:e.openKeys,selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[1]||(n[1]=c=>e.selectedKeys=c),mode:e.mode,onOpenChange:e.onOpenChange,style:{borderRight:"none"}},{default:a(()=>[t(i,{onClick:n[0]||(n[0]=()=>{e.menuSelected(),e.$router.push({name:"superadmin.dashboard.index"})}),key:"dashboard"},{default:a(()=>[t(_),M("span",null,s(e.$t("menu.dashboard")),1)]),_:1}),t(i,{onClick:e.logout,key:"logout"},{default:a(()=>[t(u),M("span",null,s(e.$t("menu.logout")),1)]),_:1},8,["onClick"])]),_:1},8,["theme","openKeys","selectedKeys","mode","onOpenChange"])}const Ma=H(Ia,[["render",Fa]]),Ra=le({setup(){const{cssSettings:e}=ee(),n=ie();return{menuMode:I(e.value.headerMenuMode),menuModeChanged:w=>{n.commit("auth/updateCssSettings",{...e.value,headerMenuMode:w})}}}});function Ha(e,n,f,o,w,$){const _=l("a-switch");return p(),A(_,{checkedValue:"horizontal",unCheckedValue:"vertical",checked:e.menuMode,onChange:e.menuModeChanged,size:"small"},null,8,["checked","onChange"])}const Wa=H(Ra,[["render",Ha]]);const Ba={components:{TopBar:ut,LeftSidebarBar:dt,Div:st,MainArea:rt,MainMenus:Ma,MainContentArea:it,MainHeader:wa,MenuMode:Wa},setup(){const{appSetting:e,cssSettings:n}=ee(),f=I(!1);return{collapsed:f,menuClicked:$=>{f.value=$},menuSelected:()=>{innerWidth<=991&&(f.value=!0)},innerWidth:window.innerWidth,appSetting:e,cssSettings:n}}},La={class:"logo"},Va=["src"];function ja(e,n,f,o,w,$){const _=l("a-col"),i=l("MainMenus"),u=l("MenuMode"),d=l("a-row"),c=l("a-layout-header"),h=l("MainHeader"),D=l("router-view"),m=l("MainContentArea"),g=l("a-layout-content"),S=l("a-layout");return p(),A(S,null,{default:a(()=>[t(h,{cssSettings:o.cssSettings},{default:a(()=>[t(c,{class:"main-header"},{default:a(()=>[t(d,null,{default:a(()=>[t(_,{span:1},{default:a(()=>[M("div",La,[M("img",{src:o.appSetting.left_sidebar_theme=="dark"?o.appSetting.small_dark_logo_url:o.appSetting.small_light_logo_url},null,8,Va)])]),_:1}),t(_,{span:20},{default:a(()=>[t(i)]),_:1}),t(_,{span:3},{default:a(()=>[t(u)]),_:1})]),_:1})]),_:1})]),_:1},8,["cssSettings"]),t(g,null,{default:a(()=>[t(m,{cssSettings:o.cssSettings},{default:a(()=>[t(D)]),_:1},8,["cssSettings"])]),_:1})]),_:1})}const Na=H(Ba,[["render",ja],["__scopeId","data-v-b719ec23"]]);const Ya={components:{TopBar:ut,LeftSidebarBar:dt,Div:st,MainArea:rt,MainContentArea:it},setup(){const{appSetting:e,menuCollapsed:n}=ee();return{menuCollapsed:n,appSetting:e,innerWidth:window.innerWidth}}},Ga={id:"components-layout-demo-responsive"};function Qa(e,n,f,o,w,$){const _=l("LeftSidebarBar"),i=l("TopBar"),u=l("router-view"),d=l("a-layout-content"),c=l("MainContentArea"),h=l("MainArea"),D=l("a-layout"),m=l("Div");return p(),A(m,null,{default:a(()=>[M("section",Ga,[t(D,null,{default:a(()=>[t(_),t(D,null,{default:a(()=>[t(h,{innerWidth:o.innerWidth,collapsed:o.menuCollapsed,isRtl:o.appSetting.rtl},{default:a(()=>[t(i),t(c,null,{default:a(()=>[t(d,null,{default:a(()=>[t(u)]),_:1})]),_:1})]),_:1},8,["innerWidth","collapsed","isRtl"])]),_:1})]),_:1})])]),_:1})}const Xa=H(Ya,[["render",Qa]]);const Ja=le({components:{SyncOutlined:Fe},setup(){const{appSetting:e}=ee();return{appSetting:e}}}),Za={class:"loading-app-container"},xa={style:{color:"#7676e3"}},el=["src"];function tl(e,n,f,o,w,$){const _=l("SyncOutlined"),i=l("a-result");return p(),q("div",Za,[t(i,null,{title:a(()=>[M("span",xa,s(e.$t("messages.loading_app_message")),1)]),icon:a(()=>[M("img",{style:{width:"150px"},src:e.appSetting.light_logo_url},null,8,el)]),extra:a(()=>[t(_,{style:{fontSize:"38px",color:"#5254cf"},spin:""})]),_:1})])}const al=H(Ja,[["render",tl],["__scopeId","data-v-be38ea01"]]),ll={components:{VerticalStyle:Xa,HorizantalStyle:Na,LoadingApp:al},setup(){const{cssSettings:e}=ee();return{cssSettings:e}}};function nl(e,n,f,o,w,$){return p(),A(Mt,null,[o.cssSettings.headerMenuMode=="horizontal"?(p(),A(Be("HorizantalStyle"),{key:"horizontal"})):(p(),A(Be("VerticalStyle"),{key:"vertical"}))],1024)}const be=H(ll,[["render",nl]]),ol=le({setup(){return{}}}),sl={class:"breadcrumb-header"};function rl(e,n,f,o,w,$){const _=l("a-col"),i=l("a-row"),u=l("a-card");return p(),q("div",sl,[t(u,{class:"page-content-sub-header breadcrumb-left-border"},{default:a(()=>[t(i,null,{default:a(()=>[t(_,{span:24},{default:a(()=>[de(e.$slots,"header",{key:"header"})]),_:3}),t(_,{span:24},{default:a(()=>[de(e.$slots,"breadcrumb",{key:"breadcrumb"})]),_:3})]),_:3})]),_:3})])}const Z=H(ol,[["render",rl]]),il=le({components:{SyncOutlined:Fe,CloudDownloadOutlined:Rt},setup(){const{appSetting:e}=ee(),n=window.config.app_version,f=I("fetching"),o=I([]);return G(()=>{e.value.update_app_notification&&axiosAdmin("superadmin/update-app").then(w=>{Ht.post("https://envato.codeifly.com/product",{verified_name:window.config.product_name,domain:window.location.host}).then($=>{o.value=$.data,o.value.product.version!=n?f.value="update_available":f.value="success"})})}),{appSetting:e,productStatus:f,product:o}}});function ul(e,n,f,o,w,$){const _=l("CloudDownloadOutlined"),i=l("a-button"),u=l("a-alert"),d=l("a-col"),c=l("a-row");return e.appSetting.update_app_notification&&e.productStatus=="update_available"?(p(),A(c,{key:0,class:"mt-20"},{default:a(()=>[t(d,{span:24},{default:a(()=>[e.productStatus=="update_available"?(p(),A(u,{key:0,type:"success",message:e.$t("update_app.update_available"),showIcon:"",onClick:n[0]||(n[0]=()=>e.$router.push({name:"superadmin.settings.update_app.index"}))},{description:a(()=>[r(s(e.$t("messages.new_app_version_avaialbe",[e.product.product.version])),1)]),closeText:a(()=>[t(i,{type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("update_app.update_now")),1)]),_:1})]),_:1},8,["message"])):R("",!0)]),_:1})]),_:1})):R("",!0)}const dl=H(il,[["render",ul]]),ml=()=>{const e="superadmin/companies",{t:n}=te(),f={user_email:"admin.email"},o={name:"",short_name:"",email:"",phone:"",address:"",dark_logo:void 0,dark_logo_url:void 0,light_logo:void 0,light_logo_url:void 0,small_light_logo:void 0,small_light_logo_url:void 0,small_dark_logo:void 0,small_dark_logo_url:void 0,timezone:"Asia/Kolkata",status:"active",user_email:"",user_password:""},w=[{title:n("company.logo"),dataIndex:"logo"},{title:n("company.name"),dataIndex:"name"},{title:n("company.email"),dataIndex:"email"},{title:n("company.details"),dataIndex:"details"},{title:n("subscription_plans.subscription_plan"),dataIndex:"subscription_plan"},{title:n("common.status"),dataIndex:"status"},{title:n("common.action"),dataIndex:"action"}],$=[{key:"name",value:n("company.name")}];return{addEditUrl:e,initData:o,columns:w,filterableColumns:$,multiDimensalObjectColumns:f}},_l={components:{MailOutlined:Ze,SendOutlined:Me},setup(){const e=ie();return{visible:Ae(()=>e.state.auth.emailSettingVerified)}}};function pl(e,n,f,o,w,$){const _=l("MailOutlined"),i=l("SendOutlined"),u=l("a-button"),d=l("a-alert");return o.visible?R("",!0):(p(),A(d,{key:0,type:"error","show-icon":"",closable:""},{icon:a(()=>[t(_)]),message:a(()=>[r(s(e.$t("messages.email_setting_not_configured")),1)]),description:a(()=>[r(s(e.$t("messages.please_configure_email_settings")),1)]),closeText:a(()=>[t(u,{onClick:n[0]||(n[0]=()=>e.$router.push({name:"superadmin.settings.email.index"}))},{icon:a(()=>[t(i)]),default:a(()=>[r(" "+s(e.$t("common.configure")),1)]),_:1})]),_:1}))}const We=H(_l,[["render",pl]]),cl=le({props:["formData","data","visible","url","addEditType","pageTitle","successMessage"],components:{PlusOutlined:Y,LoadingOutlined:Se,SaveOutlined:Q,Upload:se,FormItemHeading:_e,EmailNotSetup:We},setup(e,{emit:n}){const{addEditRequestAdmin:f,loading:o,rules:w}=oe(),$=I([]),_=I("basic_details");return G(()=>{axiosAdmin.get("timezones").then(d=>{$.value=d.data.timezones})}),{loading:o,rules:w,onClose:()=>{w.value={},n("closed")},onSubmit:()=>{f({url:e.url,data:e.formData,successMessage:e.successMessage,success:d=>{n("addEditSuccess",d.xid)}})},timezones:$,activeTabKey:_,drawerWidth:window.innerWidth<=991?"90%":"45%"}}}),fl={class:"small-text-message"};function gl(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("a-row"),c=l("a-select-option"),h=l("a-select"),D=l("a-textarea"),m=l("a-tab-pane"),g=l("Upload"),S=l("a-tabs"),v=l("FormItemHeading"),k=l("EmailNotSetup"),C=l("a-input-password"),y=l("a-form"),b=l("SaveOutlined"),U=l("a-button"),O=l("a-space"),P=l("a-drawer");return p(),A(P,{title:e.pageTitle,width:e.drawerWidth,open:e.visible,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},maskClosable:!1,onClose:e.onClose},{footer:a(()=>[t(O,null,{default:a(()=>[t(U,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(b)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(U,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),_:1})]),default:a(()=>[t(y,{layout:"vertical"},{default:a(()=>[t(S,{activeKey:e.activeTabKey,"onUpdate:activeKey":n[11]||(n[11]=T=>e.activeTabKey=T)},{default:a(()=>[t(m,{key:"basic_details",tab:e.$t("company.basic_details")},{default:a(()=>[t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("company.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=T=>e.formData.name=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("company.short_name"),name:"short_name",help:e.rules.short_name?e.rules.short_name.message:null,validateStatus:e.rules.short_name?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.short_name,"onUpdate:value":n[1]||(n[1]=T=>e.formData.short_name=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.short_name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("company.email"),name:"email",help:e.rules.email?e.rules.email.message:null,validateStatus:e.rules.email?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.email,"onUpdate:value":n[2]||(n[2]=T=>e.formData.email=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("company.phone"),name:"phone",help:e.rules.phone?e.rules.phone.message:null,validateStatus:e.rules.phone?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.phone,"onUpdate:value":n[3]||(n[3]=T=>e.formData.phone=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.phone")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("company.default_timezone"),name:"timezone",help:e.rules.timezone?e.rules.timezone.message:null,validateStatus:e.rules.timezone?"error":null,class:"required"},{default:a(()=>[t(h,{value:e.formData.timezone,"onUpdate:value":n[4]||(n[4]=T=>e.formData.timezone=T),placeholder:e.$t("common.select_default_text",[e.$t("company.default_timezone")]),optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(e.timezones,(T,L)=>(p(),A(c,{key:L,value:T},{default:a(()=>[r(s(T),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("common.status"),name:"status",help:e.rules.status?e.rules.status.message:null,validateStatus:e.rules.status?"error":null,class:"required"},{default:a(()=>[t(h,{value:e.formData.status,"onUpdate:value":n[5]||(n[5]=T=>e.formData.status=T),placeholder:e.$t("common.select_default_text",[e.$t("common.status")]),optionFilterProp:"value"},{default:a(()=>[t(c,{value:"pending"},{default:a(()=>[r(s(e.$t("common.pending")),1)]),_:1}),t(c,{value:"active"},{default:a(()=>[r(s(e.$t("common.active")),1)]),_:1}),t(c,{value:"inactive"},{default:a(()=>[r(s(e.$t("common.inactive")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("company.address"),name:"address",help:e.rules.address?e.rules.address.message:null,validateStatus:e.rules.address?"error":null},{default:a(()=>[t(D,{value:e.formData.address,"onUpdate:value":n[6]||(n[6]=T=>e.formData.address=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.address")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1},8,["tab"]),t(m,{key:"logo_details",tab:e.$t("company.logo")},{default:a(()=>[t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(i,{label:e.$t("company.dark_logo"),name:"dark_logo",help:e.rules.dark_logo?e.rules.dark_logo.message:null,validateStatus:e.rules.dark_logo?"error":null},{default:a(()=>[t(g,{formData:e.formData,folder:"company",imageField:"dark_logo",onOnFileUploaded:n[7]||(n[7]=T=>{e.formData.dark_logo=T.file,e.formData.dark_logo_url=T.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(i,{label:e.$t("company.light_logo"),name:"light_logo",help:e.rules.light_logo?e.rules.light_logo.message:null,validateStatus:e.rules.light_logo?"error":null},{default:a(()=>[t(g,{formData:e.formData,folder:"company",imageField:"light_logo",onOnFileUploaded:n[8]||(n[8]=T=>{e.formData.light_logo=T.file,e.formData.light_logo_url=T.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(i,{label:e.$t("company.small_dark_logo"),name:"small_dark_logo",help:e.rules.small_dark_logo?e.rules.small_dark_logo.message:null,validateStatus:e.rules.small_dark_logo?"error":null},{default:a(()=>[t(g,{formData:e.formData,folder:"company",imageField:"small_dark_logo",onOnFileUploaded:n[9]||(n[9]=T=>{e.formData.small_dark_logo=T.file,e.formData.small_dark_logo_url=T.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(i,{label:e.$t("company.small_light_logo"),name:"small_light_logo",help:e.rules.small_light_logo?e.rules.small_light_logo.message:null,validateStatus:e.rules.small_light_logo?"error":null},{default:a(()=>[t(g,{formData:e.formData,folder:"company",imageField:"small_light_logo",onOnFileUploaded:n[10]||(n[10]=T=>{e.formData.small_light_logo=T.file,e.formData.small_light_logo_url=T.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1},8,["tab"])]),_:1},8,["activeKey"]),t(v,null,{default:a(()=>[r(s(e.$t("user.admin_account_details")),1)]),_:1}),t(d,{class:"mb-20"},{default:a(()=>[t(u,{span:24},{default:a(()=>[t(k)]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("user.email"),name:"user_email",help:e.rules.user_email?e.rules.user_email.message:null,validateStatus:e.rules.user_email?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.user_email,"onUpdate:value":n[12]||(n[12]=T=>e.formData.user_email=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("user.password"),name:"user_password",help:e.rules.user_password?e.rules.user_password.message:null,validateStatus:e.rules.user_password?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.user_password,"onUpdate:value":n[13]||(n[13]=T=>e.formData.user_password=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.password")])},null,8,["value","placeholder"]),M("small",fl,s(e.$t("messages.company_admin_password_message")),1)]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["title","width","open","onClose"])}const bl=H(cl,[["render",gl]]),yl={props:["status"],components:{CheckCircleOutlined:Ce,CloseCircleOutlined:Re}},hl={key:2};function vl(e,n,f,o,w,$){const _=l("CheckCircleOutlined"),i=l("a-tag"),u=l("CloseCircleOutlined");return f.status=="active"?(p(),A(i,{key:0,color:"green"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.active")),1)]),_:1})):f.status=="inactive"?(p(),A(i,{key:1,color:"red"},{icon:a(()=>[t(u)]),default:a(()=>[r(" "+s(e.$t("common.inactive")),1)]),_:1})):(p(),q("span",hl,"-"))}const kl=H(yl,[["render",vl]]),Sl=le({props:["data","addText"],emits:["onEntry"],components:{PlusOutlined:Y},setup(e,{emit:n}){const f=I(),o=He({tags:e.data,inputVisible:!1,inputValue:""}),w=i=>{const u=o.tags.filter(d=>d!==i);o.tags=u,n("onEntry",u)},$=()=>{o.inputVisible=!0,Bt(()=>{f.value.focus()})},_=()=>{const i=o.inputValue;let u=o.tags;i&&u.indexOf(i)===-1&&(u=[...u,i]),Object.assign(o,{tags:u,inputVisible:!1,inputValue:""}),n("onEntry",u)};return re(()=>e.data,(i,u)=>{o.tags=i}),{...xe(o),handleClose:w,showInput:$,handleInputConfirm:_,inputRef:f}}}),$l={style:{marginBottom:"20px"}};function wl(e,n,f,o,w,$){const _=l("a-tag"),i=l("a-tooltip"),u=l("a-input"),d=l("plus-outlined");return p(),q("div",$l,[(p(!0),q(z,null,X(e.tags,c=>(p(),q(z,{key:c},[c.length>20?(p(),A(i,{key:0,title:c},{default:a(()=>[t(_,{closable:"",onClose:h=>e.handleClose(c),style:{marginBottom:"20px"}},{default:a(()=>[r(s(`${c.slice(0,20)}...`),1)]),_:2},1032,["onClose"])]),_:2},1032,["title"])):(p(),A(_,{key:1,closable:"",onClose:h=>e.handleClose(c),style:{marginBottom:"20px"}},{default:a(()=>[r(s(c),1)]),_:2},1032,["onClose"]))],64))),128)),e.inputVisible?(p(),A(u,{key:0,ref:"inputRef",value:e.inputValue,"onUpdate:value":n[0]||(n[0]=c=>e.inputValue=c),type:"text",size:"small",style:{width:"100px"},onBlur:e.handleInputConfirm,onKeyup:Wt(e.handleInputConfirm,["enter"])},null,8,["value","onBlur","onKeyup"])):(p(),A(_,{key:1,style:{background:"#fff","border-style":"dashed"},onClick:e.showInput},{default:a(()=>[t(d),r(" "+s(e.addText),1)]),_:1},8,["onClick"]))])}const Ke=H(Sl,[["render",wl]]),Dl=le({props:["formData","data","visible","url","addEditType","pageTitle","successMessage"],components:{PlusOutlined:Y,LoadingOutlined:Se,SaveOutlined:Q,FormItemHeading:_e,DynamicFormFeatures:Ke},setup(e,{emit:n}){const{appSetting:f}=ee(),{addEditRequestAdmin:o,loading:w,rules:$}=oe();return{appSetting:f,loading:w,rules:$,onClose:()=>{$.value={},n("closed")},onSubmit:()=>{o({url:e.url,data:e.formData,successMessage:e.successMessage,success:u=>{n("addEditSuccess",u.xid)}})},drawerWidth:window.innerWidth<=991?"90%":"45%"}}}),Cl={key:1};function Ol(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("a-input-number"),c=l("a-row"),h=l("a-textarea"),D=l("a-switch"),m=l("FormItemHeading"),g=l("a-checkbox"),S=l("a-checkbox-group"),v=l("DynamicFormFeatures"),k=l("a-form"),C=l("SaveOutlined"),y=l("a-button"),b=l("a-space"),U=l("a-drawer");return p(),A(U,{title:e.pageTitle,width:e.drawerWidth,open:e.visible,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},maskClosable:!1,onClose:e.onClose},{footer:a(()=>[t(b,null,{default:a(()=>[t(y,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(C)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(y,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),_:1})]),default:a(()=>[t(k,{layout:"vertical"},{default:a(()=>[t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=O=>e.formData.name=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.max_products"),name:"max_products",help:e.rules.max_products?e.rules.max_products.message:null,validateStatus:e.rules.max_products?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.max_products,"onUpdate:value":n[1]||(n[1]=O=>e.formData.max_products=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.max_products")]),style:{width:"100%"}},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("subscription_plans.description"),name:"description",help:e.rules.description?e.rules.description.message:null,validateStatus:e.rules.description?"error":null,class:"required"},{default:a(()=>[t(h,{value:e.formData.description,"onUpdate:value":n[2]||(n[2]=O=>e.formData.description=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),e.addEditType=="edit"&&e.data.default=="trial"?(p(),A(c,{key:0,gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.trial_duration"),name:"duration",help:e.rules.duration?e.rules.duration.message:null,validateStatus:e.rules.duration?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.duration,"onUpdate:value":n[3]||(n[3]=O=>e.formData.duration=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.trial_duration")]),"addon-after":e.$t("subscription_plans.days"),style:{width:"100%"}},null,8,["value","placeholder","addon-after"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.notify_before"),name:"notify_before",help:e.rules.notify_before?e.rules.notify_before.message:null,validateStatus:e.rules.notify_before?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.notify_before,"onUpdate:value":n[4]||(n[4]=O=>e.formData.notify_before=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.notify_before")]),"addon-after":e.$t("subscription_plans.days"),style:{width:"100%"}},null,8,["value","placeholder","addon-after"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})):R("",!0),e.addEditType=="add"||e.addEditType=="edit"&&e.data.default=="no"?(p(),q("div",Cl,[t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("subscription_plans.is_popular_plan"),name:"is_popular",help:e.rules.is_popular?e.rules.is_popular.message:null,validateStatus:e.rules.is_popular?"error":null},{default:a(()=>[t(D,{checked:e.formData.is_popular,"onUpdate:checked":n[5]||(n[5]=O=>e.formData.is_popular=O),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),e.addEditType=="add"||e.addEditType=="edit"&&e.data.default=="no"?(p(),A(m,{key:0},{default:a(()=>[r(s(e.$t("subscription_plans.pricing_details")),1)]),_:1})):R("",!0),t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.monthly_price"),name:"monthly_price",help:e.rules.monthly_price?e.rules.monthly_price.message:null,validateStatus:e.rules.monthly_price?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.monthly_price,"onUpdate:value":n[6]||(n[6]=O=>e.formData.monthly_price=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.monthly_price")]),min:0,style:{width:"100%"}},{addonBefore:a(()=>[r(s(e.appSetting.currency.symbol),1)]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.annual_price"),name:"annual_price",help:e.rules.annual_price?e.rules.annual_price.message:null,validateStatus:e.rules.annual_price?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.annual_price,"onUpdate:value":n[7]||(n[7]=O=>e.formData.annual_price=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.annual_price")]),min:0,style:{width:"100%"}},{addonBefore:a(()=>[r(s(e.appSetting.currency.symbol),1)]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(m,null,{default:a(()=>[r(s(e.$t("subscription_plans.payment_gateway_details")),1)]),_:1}),t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.stripe_monthly_plan_id"),name:"stripe_monthly_plan_id",help:e.rules.stripe_monthly_plan_id?e.rules.stripe_monthly_plan_id.message:null,validateStatus:e.rules.stripe_monthly_plan_id?"error":null},{default:a(()=>[t(_,{value:e.formData.stripe_monthly_plan_id,"onUpdate:value":n[8]||(n[8]=O=>e.formData.stripe_monthly_plan_id=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.stripe_monthly_plan_id")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("subscription_plans.stripe_annual_plan_id"),name:"stripe_annual_plan_id",help:e.rules.stripe_annual_plan_id?e.rules.stripe_annual_plan_id.message:null,validateStatus:e.rules.stripe_annual_plan_id?"error":null},{default:a(()=>[t(_,{value:e.formData.stripe_annual_plan_id,"onUpdate:value":n[9]||(n[9]=O=>e.formData.stripe_annual_plan_id=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.stripe_annual_plan_id")]),style:{width:"100%"}},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})])):R("",!0),t(m,null,{default:a(()=>[r(s(e.$t("subscription_plans.enabled_modules")),1)]),_:1}),t(c,{gutter:16,class:"mb-20"},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(S,{value:e.formData.modules,"onUpdate:value":n[10]||(n[10]=O=>e.formData.modules=O),style:{width:"100%"}},{default:a(()=>[t(c,{gutter:[16,16]},{default:a(()=>[t(u,{span:8},{default:a(()=>[t(g,{value:"pos"},{default:a(()=>[r(s(e.$t("subscription_plans.pos")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"stock_transfer"},{default:a(()=>[r(s(e.$t("subscription_plans.stock_transfer")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"stock_adjustment"},{default:a(()=>[r(s(e.$t("subscription_plans.stock_adjustment")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"online_store"},{default:a(()=>[r(s(e.$t("subscription_plans.online_store")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"expense"},{default:a(()=>[r(s(e.$t("subscription_plans.expense")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"quotation"},{default:a(()=>[r(s(e.$t("subscription_plans.quotation")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"purchase_return"},{default:a(()=>[r(s(e.$t("subscription_plans.purchase_return")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"sales_return"},{default:a(()=>[r(s(e.$t("subscription_plans.sales_return")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"reports"},{default:a(()=>[r(s(e.$t("subscription_plans.reports")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"reports_download"},{default:a(()=>[r(s(e.$t("subscription_plans.reports_download")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),t(m,null,{default:a(()=>[r(s(e.$t("subscription_plans.features")),1)]),_:1}),t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{data:e.formData.features,addText:e.$t("website_settings.add_feature"),onOnEntry:n[11]||(n[11]=O=>e.formData.features=O)},null,8,["data","addText"])]),_:1})]),_:1})]),_:1})]),_:1},8,["title","width","open","onClose"])}const mt=H(Dl,[["render",Ol]]),_t=()=>{const e="superadmin/subscription-plans?fields=id,xid,name,description,monthly_price,annual_price,max_products,modules,default,features,is_popular,stripe_monthly_plan_id,stripe_annual_plan_id,paystack_monthly_plan_id,paystack_annual_plan_id,razorpay_monthly_plan_id,razorpay_annual_plan_id,notify_before,duration",n="superadmin/subscription-plans",{t:f}=te(),o={name:"",default:"no",description:"",max_products:"",annual_price:"",monthly_price:"",paystack_monthly_plan_id:"",paystack_annual_plan_id:"",stripe_monthly_plan_id:"",stripe_annual_plan_id:"",razorpay_monthly_plan_id:"",razorpay_annual_plan_id:"",modules:[],features:[],is_popular:0,duration:void 0,notify_before:void 0},w=[{title:f("subscription_plans.name"),dataIndex:"name"},{title:f("subscription_plans.pricing_details"),dataIndex:"pricing_details",width:"15%"},{title:f("subscription_plans.max_products"),dataIndex:"max_products"},{title:f("subscription_plans.enabled_modules"),dataIndex:"modules",width:"20%"},{title:f("common.action"),dataIndex:"action"}],$=[{key:"name",value:f("subscription_plans.name")}];return{url:e,addEditUrl:n,initData:o,columns:w,filterableColumns:$}},Ul=le({props:{btnType:{default:"default"},tooltip:{default:!0},customType:{default:"button"}},emits:["onAddSuccess"],components:{PlusOutlined:Y,AddEdit:mt},setup(e,{emit:n}){const{permsArray:f}=ee(),{initData:o,addEditUrl:w}=_t(),$=I(!1),_=I("add"),i=I({...o});return{permsArray:f,visible:$,addEditType:_,addEditUrl:w,formData:i,addEditSuccess:()=>{$.value=!1,i.value={...o},n("onAddSuccess")},onClose:()=>{$.value=!1},showAdd:()=>{$.value=!0}}}});function Al(e,n,f,o,w,$){const _=l("a-menu-item"),i=l("PlusOutlined"),u=l("a-button"),d=l("a-tooltip"),c=l("AddEdit");return p(),q("div",null,[e.customType=="menu"?(p(),A(_,{onClick:e.showAdd,key:"subscription_plans"},{icon:a(()=>[de(e.$slots,"icon")]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick"])):(p(),q(z,{key:1},[e.tooltip?(p(),A(d,{key:0,placement:"topLeft",title:e.$t("subscription_plans.add"),"arrow-point-at-center":""},{default:a(()=>[t(u,{onClick:e.showAdd,class:"ml-5 no-border-radius",type:e.btnType},{icon:a(()=>[t(i)]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick","type"])]),_:3},8,["title"])):(p(),A(u,{key:1,onClick:e.showAdd,class:"ml-5 no-border-radius",type:e.btnType},{icon:a(()=>[t(i)]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick","type"]))],64)),t(c,{addEditType:e.addEditType,visible:e.visible,url:e.addEditUrl,onAddEditSuccess:e.addEditSuccess,onClosed:e.onClose,formData:e.formData,data:e.formData,pageTitle:e.$t("subscription_plans.add"),successMessage:e.$t("subscription_plans.created")},null,8,["addEditType","visible","url","onAddEditSuccess","onClosed","formData","data","pageTitle","successMessage"])])}const pt=H(Ul,[["render",Al]]),ql=le({props:["formData","data","visible","url","addEditType","pageTitle","successMessage"],components:{PlusOutlined:Y,LoadingOutlined:Se,SaveOutlined:Q},setup(e,{emit:n}){const{appSetting:f}=ee(),{addEditRequestAdmin:o,loading:w,rules:$}=oe();return{appSetting:f,loading:w,rules:$,onClose:()=>{$.value={},n("closed")},onSubmit:()=>{o({url:e.url,data:e.formData,successMessage:e.successMessage,success:u=>{n("addEditSuccess",u.xid)}})},drawerWidth:window.innerWidth<=991?"90%":"45%"}}});function Kl(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("a-row"),c=l("a-textarea"),h=l("a-form"),D=l("SaveOutlined"),m=l("a-button"),g=l("a-space"),S=l("a-modal");return p(),A(S,{open:e.visible,closable:!1,centered:!0,title:e.pageTitle,onOk:e.onSubmit},{footer:a(()=>[t(g,null,{default:a(()=>[t(m,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(D)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(m,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),_:1})]),default:a(()=>[t(h,{layout:"vertical"},{default:a(()=>[t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:124},{default:a(()=>[t(i,{label:e.$t("offline_payment_mode.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=v=>e.formData.name=v),placeholder:e.$t("common.placeholder_default_text",[e.$t("offline_payment_mode.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("offline_payment_mode.description"),name:"description",help:e.rules.description?e.rules.description.message:null,validateStatus:e.rules.description?"error":null,class:"required"},{default:a(()=>[t(c,{value:e.formData.description,"onUpdate:value":n[1]||(n[1]=v=>e.formData.description=v),placeholder:e.$t("common.placeholder_default_text",[e.$t("offline_payment_mode.description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title","onOk"])}const ct=H(ql,[["render",Kl]]),ft=()=>{const e="superadmin/offline-payment-modes?fields=id,xid,name,description",n="superadmin/offline-payment-modes",{t:f}=te(),o={name:"",description:""},w=[{title:f("offline_payment_mode.name"),dataIndex:"name"},{title:f("offline_payment_mode.description"),dataIndex:"description"},{title:f("common.action"),dataIndex:"action"}],$=[{key:"name",value:f("offline_payment_mode.name")}];return{url:e,addEditUrl:n,initData:o,columns:w,filterableColumns:$}},Tl=le({props:{btnType:{default:"default"},tooltip:{default:!0},customType:{default:"button"}},emits:["onAddSuccess"],components:{PlusOutlined:Y,AddEdit:ct},setup(e,{emit:n}){const{permsArray:f}=ee(),{initData:o,addEditUrl:w}=ft(),$=I(!1),_=I("add"),i=I({...o});return{permsArray:f,visible:$,addEditType:_,addEditUrl:w,formData:i,addEditSuccess:()=>{$.value=!1,i.value={...o},n("onAddSuccess")},onClose:()=>{$.value=!1},showAdd:()=>{$.value=!0}}}});function Pl(e,n,f,o,w,$){const _=l("a-menu-item"),i=l("PlusOutlined"),u=l("a-button"),d=l("a-tooltip"),c=l("AddEdit");return p(),q("div",null,[e.customType=="menu"?(p(),A(_,{onClick:e.showAdd,key:"offline_payment_mode"},{icon:a(()=>[de(e.$slots,"icon")]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick"])):(p(),q(z,{key:1},[e.tooltip?(p(),A(d,{key:0,placement:"topLeft",title:e.$t("offline_payment_mode.add"),"arrow-point-at-center":""},{default:a(()=>[t(u,{onClick:e.showAdd,class:"ml-5 no-border-radius",type:e.btnType},{icon:a(()=>[t(i)]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick","type"])]),_:3},8,["title"])):(p(),A(u,{key:1,onClick:e.showAdd,class:"ml-5 no-border-radius",type:e.btnType},{icon:a(()=>[t(i)]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick","type"]))],64)),t(c,{addEditType:e.addEditType,visible:e.visible,url:e.addEditUrl,onAddEditSuccess:e.addEditSuccess,onClosed:e.onClose,formData:e.formData,data:e.formData,pageTitle:e.$t("offline_payment_mode.add"),successMessage:e.$t("offline_payment_mode.created")},null,8,["addEditType","visible","url","onAddEditSuccess","onClosed","formData","data","pageTitle","successMessage"])])}const gt=H(Tl,[["render",Pl]]),zl={props:["company"],emits:["success"],components:{EditOutlined:J,CheckCircleOutlined:Ce,SubscriptionPlanAddButton:pt,OfflinePaymentModeAddButton:gt},setup(e,{emit:n}){const{appSetting:f,dayjsObject:o,formatDate:w}=ee(),{t:$}=te(),_=I(!1),{addEditRequestAdmin:i,loading:u,rules:d}=oe(),c=I({company_id:void 0,subscription_plan_id:void 0,plan_type:void 0,offline_payment_mode_id:void 0,amount:void 0,paid_on:void 0,license_expires_on:void 0}),h=I([]),D=I([]),m="superadmin/subscription-plans?fields=id,xid,name&limit=10000",g="superadmin/offline-payment-modes?fields=id,xid,name&limit=10000";G(()=>{S()});const S=()=>{const O=axiosAdmin.get(m),P=axiosAdmin.get(g);Promise.all([O,P]).then(([T,L])=>{h.value=T.data,D.value=L.data,c.value={...c.value,company_id:e.company.xid,subscription_plan_id:e.company.x_subscription_plan_id,plan_type:e.company.package_type}})},v=()=>{axiosAdmin.get(m).then(O=>{h.value=O.data})},k=()=>{axiosAdmin.get(g).then(O=>{D.value=O.data})},C=()=>{_.value=!0},y=()=>{i({url:"superadmin/companies/change-subscription-plan",data:c.value,successMessage:$("subscription_plans.plan_changed_successfully"),success:O=>{d.value={},_.value=!1,n("success",!0)}})},b=()=>{d.value={},_.value=!1},U=()=>{c.value.plan_type=="monthly"&&c.value.paid_on!=null?c.value={...c.value,license_expires_on:o(c.value.paid_on).add(1,"month")}:c.value.plan_type=="annual"&&c.value.paid_on!=null?c.value={...c.value,license_expires_on:o(c.value.paid_on).add(1,"year")}:c.value={...c.value,license_expires_on:void 0}};return re(()=>c.value.paid_on,(O,P)=>{U()}),re(()=>c.value.plan_type,(O,P)=>{U()}),{appSetting:f,formatDate:w,visible:_,loading:u,rules:d,formData:c,subscriptionPlans:h,paymentModes:D,subscriptionPlanAdded:v,offlinePaymentModeAdded:k,onClose:b,onSubmit:y,showModal:C,drawerWidth:window.innerWidth<=991?"90%":"30%"}}},El={style:{display:"flex"}},Il={style:{display:"flex"}};function Fl(e,n,f,o,w,$){const _=l("EditOutlined"),i=l("a-button"),u=l("a-tooltip"),d=l("a-descriptions-item"),c=l("a-descriptions"),h=l("a-divider"),D=l("a-select-option"),m=l("a-select"),g=l("SubscriptionPlanAddButton"),S=l("a-form-item"),v=l("a-col"),k=l("a-row"),C=l("OfflinePaymentModeAddButton"),y=l("a-input-number"),b=l("a-date-picker"),U=l("a-form"),O=l("CheckCircleOutlined"),P=l("a-modal");return p(),q(z,null,[t(u,{title:e.$t("subscription_plans.change_subscription_plan"),onClick:o.showModal,size:"small"},{default:a(()=>[t(i,{type:"primary",size:"small",class:"mt-5"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("subscription_plans.change")),1)]),_:1})]),_:1},8,["title","onClick"]),t(P,{open:o.visible,closable:!1,centered:!0,title:e.$t("subscription_plans.change_subscription_plan"),onOk:o.onSubmit,width:o.drawerWidth},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:o.loading,onClick:o.onSubmit,style:{"background-color":"#87d068","border-color":"#87d068"}},{icon:a(()=>[t(O)]),default:a(()=>[r(" "+s(e.$t("offline_request.approve")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:o.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(c,{size:"small",column:2},{default:a(()=>[t(d,{label:e.$t("offline_request.subscription_plan")},{default:a(()=>[r(s(f.company&&f.company.subscription_plan?f.company.subscription_plan.name:"-"),1)]),_:1},8,["label"]),t(d,{label:e.$t("offline_request.plan_type")},{default:a(()=>[r(s(f.company&&f.company.subscription_plan?e.$t(`subscription_plans.${f.company.package_type}`):"-"),1)]),_:1},8,["label"]),t(d,{label:e.$t("payment_transaction.last_paid_on")},{default:a(()=>[r(s(f.company&&f.company.payment_transcation?o.formatDate(f.company.payment_transcation.paid_on):"-"),1)]),_:1},8,["label"]),t(d,{label:e.$t("payment_transaction.next_payment_date")},{default:a(()=>[r(s(f.company&&f.company.payment_transcation?o.formatDate(f.company.payment_transcation.next_payment_date):"-"),1)]),_:1},8,["label"])]),_:1}),t(h),t(U,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(S,{label:e.$t("offline_request.subscription_plan"),name:"subscription_plan_id",help:o.rules.subscription_plan_id?o.rules.subscription_plan_id.message:null,validateStatus:o.rules.subscription_plan_id?"error":null,class:"required"},{default:a(()=>[M("span",El,[t(m,{value:o.formData.subscription_plan_id,"onUpdate:value":n[0]||(n[0]=T=>o.formData.subscription_plan_id=T),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.subscription_plan")])},{default:a(()=>[(p(!0),q(z,null,X(o.subscriptionPlans,T=>(p(),A(D,{key:T.xid,value:T.xid},{default:a(()=>[r(s(T.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"]),t(g,{onOnAddSuccess:o.subscriptionPlanAdded},null,8,["onOnAddSuccess"])])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(S,{label:e.$t("offline_request.plan_type"),name:"plan_type",help:o.rules.plan_type?o.rules.plan_type.message:null,validateStatus:o.rules.plan_type?"error":null,class:"required"},{default:a(()=>[t(m,{value:o.formData.plan_type,"onUpdate:value":n[1]||(n[1]=T=>o.formData.plan_type=T),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.plan_type")])},{default:a(()=>[t(D,{key:"monthly",value:"monthly"},{default:a(()=>[r(s(e.$t("subscription_plans.monthly")),1)]),_:1}),t(D,{key:"annual",value:"annual"},{default:a(()=>[r(s(e.$t("subscription_plans.yearly")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(S,{label:e.$t("offline_request.payment_mode"),name:"offline_payment_mode_id",help:o.rules.offline_payment_mode_id?o.rules.offline_payment_mode_id.message:null,validateStatus:o.rules.offline_payment_mode_id?"error":null,class:"required"},{default:a(()=>[M("span",Il,[t(m,{value:o.formData.offline_payment_mode_id,"onUpdate:value":n[2]||(n[2]=T=>o.formData.offline_payment_mode_id=T),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.payment_mode")])},{default:a(()=>[(p(!0),q(z,null,X(o.paymentModes,T=>(p(),A(D,{key:T.xid,value:T.xid},{default:a(()=>[r(s(T.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"]),t(C,{onOnAddSuccess:o.offlinePaymentModeAdded},null,8,["onOnAddSuccess"])])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(S,{label:e.$t("payment_transaction.amount"),name:"amount",help:o.rules.amount?o.rules.amount.message:null,validateStatus:o.rules.amount?"error":null,class:"required"},{default:a(()=>[t(y,{value:o.formData.amount,"onUpdate:value":n[3]||(n[3]=T=>o.formData.amount=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_transaction.amount")]),min:"0",style:{width:"100%"}},{addonBefore:a(()=>[r(s(o.appSetting.currency.symbol),1)]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(S,{label:e.$t("offline_request.payment_date"),name:"paid_on",help:o.rules.paid_on?o.rules.paid_on.message:null,validateStatus:o.rules.paid_on?"error":null,class:"required"},{default:a(()=>[t(b,{value:o.formData.paid_on,"onUpdate:value":n[4]||(n[4]=T=>o.formData.paid_on=T),format:o.appSetting.date_format,valueFormat:"YYYY-MM-DD",style:{width:"100%"}},null,8,["value","format"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(S,{label:e.$t("payment_transaction.license_expires_on"),name:"license_expires_on",help:o.rules.license_expires_on?o.rules.paid_on.message:null,validateStatus:o.rules.license_expires_on?"error":null},{default:a(()=>[t(b,{value:o.formData.license_expires_on,"onUpdate:value":n[5]||(n[5]=T=>o.formData.license_expires_on=T),format:o.appSetting.date_format,placeholder:e.$t("payment_transaction.no_date_selected"),valueFormat:"YYYY-MM-DD",style:{width:"100%"},disabled:!0},null,8,["value","format","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title","onOk","width"])],64)}const Ml=H(zl,[["render",Fl]]),Rl={props:{showFilterInput:{default:!0},showPagination:{default:!0},perPageItems:{default:10},selectable:{default:!1}},components:{EditOutlined:J,DeleteOutlined:x,AddEdit:bl,CompanyStatus:kl,CheckOutlined:et,CloseOutlined:Ee,ChangeSubscriptionPlan:Ml},setup(e){const{addEditUrl:n,initData:f,columns:o,filterableColumns:w,multiDimensalObjectColumns:$}=ml(),_=Ue(),{permsArray:i,formatDate:u}=ee();G(()=>{_.table.pagination={pageSize:e.perPageItems,showSizeChanger:!0},d()});const d=()=>{_.tableUrl.value={url:"superadmin/companies?fields=id,xid,name,short_name,email,phone,website,light_logo,light_logo_url,dark_logo,dark_logo_url,small_dark_logo,small_dark_logo_url,small_light_logo,small_light_logo_url,address,timezone,status,package_type,admin_id,x_admin_id,admin{id,xid,name,email},total_users,created_at,verified,subscription_plan_id,x_subscription_plan_id,subscriptionPlan{id,xid,name},'payment_transcation_id',x_payment_transcation_id',paymentTranscation{id,xid,paid_on,next_payment_date}"},_.table.filterableColumns=w,_.fetch({page:1}),_.crudUrl.value=n,_.langKey.value="company",_.initData.value={...f},_.formData.value={...f},_.multiDimensalObjectColumns.value={...$}};return{columns:o,filterableColumns:w,permsArray:i,..._,setUrlData:d,formatDate:u}}},Hl={class:"table-responsive"},Wl={key:2},Bl={key:0},Ll=M("br",null,null,-1);function Vl(e,n,f,o,w,$){const _=l("DeleteOutlined"),i=l("a-button"),u=l("a-space"),d=l("a-col"),c=l("a-select-option"),h=l("a-select"),D=l("a-input-search"),m=l("a-input-group"),g=l("a-row"),S=l("admin-page-filters"),v=l("AddEdit"),k=l("a-image"),C=l("a-typography-text"),y=l("CloseOutlined"),b=l("CheckOutlined"),U=l("ChangeSubscriptionPlan"),O=l("CompanyStatus"),P=l("EditOutlined"),T=l("a-table"),L=l("admin-page-table-content");return p(),q(z,null,[f.selectable?(p(),A(S,{key:0},{default:a(()=>[t(g,{gutter:[16,16]},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:10,xl:10},{default:a(()=>[t(u,null,{default:a(()=>[de(e.$slots,"actionButtons"),e.table.selectedRowKeys.length>0?(p(),A(i,{key:0,type:"primary",onClick:e.showSelectedDeleteConfirm,danger:""},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.delete")),1)]),_:1},8,["onClick"])):R("",!0)]),_:3})]),_:3}),t(d,{xs:24,sm:24,md:12,lg:14,xl:14},{default:a(()=>[f.showFilterInput?(p(),A(g,{key:0,gutter:[16,16],justify:"end"},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12,xl:8},{default:a(()=>[t(m,{compact:""},{default:a(()=>[t(h,{style:{width:"25%"},value:e.table.searchColumn,"onUpdate:value":n[0]||(n[0]=V=>e.table.searchColumn=V),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(p(!0),q(z,null,X(o.filterableColumns,V=>(p(),A(c,{key:V.key},{default:a(()=>[r(s(V.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(D,{style:{width:"75%"},value:e.table.searchString,"onUpdate:value":n[1]||(n[1]=V=>e.table.searchString=V),"show-search":"",onChange:e.onTableSearch,onSearch:e.onTableSearch,loading:e.table.filterLoading},null,8,["value","onChange","onSearch","loading"])]),_:1})]),_:1})]),_:1})):R("",!0)]),_:1})]),_:3})]),_:3})):R("",!0),t(L,{style:me(f.selectable?{}:{margin:"0px !important"})},{default:a(()=>[t(v,{addEditType:e.addEditType,visible:e.addEditVisible,url:e.addEditUrl,onAddEditSuccess:e.addEditSuccess,onClosed:e.onCloseAddEdit,formData:e.formData,data:e.viewData,pageTitle:e.pageTitle,successMessage:e.successMessage},null,8,["addEditType","visible","url","onAddEditSuccess","onClosed","formData","data","pageTitle","successMessage"]),de(e.$slots,"emailSettings"),t(g,null,{default:a(()=>[t(d,{span:24},{default:a(()=>[M("div",Hl,[t(T,{"row-selection":f.selectable?{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:V=>({disabled:!1,name:V.xid})}:null,columns:o.columns,"row-key":V=>V.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:V,record:B})=>[V.dataIndex==="logo"?(p(),A(k,{key:0,width:150,src:B.light_logo_url},null,8,["src"])):R("",!0),V.dataIndex==="name"?(p(),A(C,{key:1,strong:""},{default:a(()=>[r(s(B.name),1)]),_:2},1024)):R("",!0),V.dataIndex==="details"?(p(),q("ul",Wl,[M("li",null,[r(s(e.$t("common.verified"))+": ",1),B.verified==0?(p(),A(y,{key:0,style:{color:"red"}})):(p(),A(b,{key:1,style:{color:"green"}}))]),M("li",null,s(e.$t("company.register_date"))+": "+s(o.formatDate(B.created_at)),1),M("li",null,s(e.$t("company.total_users"))+": "+s(B.total_users),1)])):R("",!0),V.dataIndex==="subscription_plan"?(p(),q(z,{key:3},[B.subscription_plan&&B.subscription_plan.name?(p(),q("span",Bl,[r(s(B.subscription_plan?B.subscription_plan.name:"-")+" ("+s(B.package_type)+") ",1),Ll])):R("",!0),t(U,{company:B,onSuccess:o.setUrlData},null,8,["company","onSuccess"])],64)):R("",!0),V.dataIndex==="status"?(p(),A(O,{key:4,status:B.status},null,8,["status"])):R("",!0),V.dataIndex==="action"?(p(),q(z,{key:5},[t(i,{type:"primary",onClick:N=>e.editItem(B),style:{"margin-left":"4px"}},{icon:a(()=>[t(P)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:N=>e.showDeleteConfirm(B.xid),style:{"margin-left":"4px"}},{icon:a(()=>[t(_)]),_:2},1032,["onClick"])],64)):R("",!0)]),_:1},8,["row-selection","columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:3},8,["style"])],64)}const bt=H(Rl,[["render",Vl]]),jl={components:{SuperAdminPageHeader:Z,SuperadminUpdateAppAlert:dl,StateWidget:vt,RocketOutlined:Lt,DatabaseOutlined:tt,EyeInvisibleOutlined:Vt,WarningOutlined:jt,DoubleRightOutlined:at,CompanyTable:bt},setup(){const e=I([]);return G(()=>{axiosAdmin.get("superadmin/dashboard").then(n=>{e.value=n.data})}),{responseData:e}}},Nl={class:"dashboard-page-content-container"},Yl={class:"mt-30 mb-20"},Gl={key:0},Ql={key:0},Xl={key:0},Jl={key:0};function Zl(e,n,f,o,w,$){const _=l("a-page-header"),i=l("SuperAdminPageHeader"),u=l("SuperadminUpdateAppAlert"),d=l("RocketOutlined"),c=l("StateWidget"),h=l("a-col"),D=l("DatabaseOutlined"),m=l("EyeInvisibleOutlined"),g=l("WarningOutlined"),S=l("a-row"),v=l("CompanyTable"),k=l("DoubleRightOutlined"),C=l("a-button"),y=l("a-card");return p(),q(z,null,[t(i,null,{header:a(()=>[t(_,{title:e.$t("menu.dashboard"),style:{padding:"0px"}},null,8,["title"])]),_:1}),M("div",Nl,[t(u),M("div",Yl,[t(S,{gutter:[15,15]},{default:a(()=>[t(h,{xs:24,sm:24,md:12,lg:6,xl:6},{default:a(()=>[t(c,{bgColor:"#6777ef"},{image:a(()=>[t(d,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(p(),q("h2",Gl,s(o.responseData.stats.totalCompaniesCount),1)):R("",!0),M("p",null,s(e.$t("superadmin_dashboard.total_companies")),1)]),_:1})]),_:1}),t(h,{xs:24,sm:24,md:12,lg:6,xl:6},{default:a(()=>[t(c,{bgColor:"#63ed7a"},{image:a(()=>[t(D,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(p(),q("h2",Ql,s(o.responseData.stats.activeCompaniesCount),1)):R("",!0),M("p",null,s(e.$t("superadmin_dashboard.active_companies")),1)]),_:1})]),_:1}),t(h,{xs:24,sm:24,md:12,lg:6,xl:6},{default:a(()=>[t(c,{bgColor:"#ffa426"},{image:a(()=>[t(m,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(p(),q("h2",Xl,s(o.responseData.stats.inactiveCompaniesCount),1)):R("",!0),M("p",null,s(e.$t("superadmin_dashboard.inactive_companies")),1)]),_:1})]),_:1}),t(h,{xs:24,sm:24,md:12,lg:6,xl:6},{default:a(()=>[t(c,{bgColor:"#fc544b"},{image:a(()=>[t(g,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(p(),q("h2",Jl,s(o.responseData.stats.expiredCompaniesCount),1)):R("",!0),M("p",null,s(e.$t("superadmin_dashboard.license_expired")),1)]),_:1})]),_:1})]),_:1})]),t(S,{gutter:18,class:"mt-30 mb-20"},{default:a(()=>[t(h,{span:24},{default:a(()=>[t(y,{title:e.$t("superadmin_dashboard.recently_registered_companies")},{extra:a(()=>[t(C,{class:"mt-10",type:"link",onClick:n[0]||(n[0]=b=>e.$router.push({name:"superadmin.companies.index"}))},{default:a(()=>[r(s(e.$t("common.view_all"))+" ",1),t(k)]),_:1})]),default:a(()=>[t(v,{showFilterInput:!1,perPageItems:5})]),_:1},8,["title"])]),_:1})]),_:1})])],64)}const xl=H(jl,[["render",Zl]]),en=[{path:"/",component:be,children:[{path:"/superadmin/dashboard",component:xl,name:"superadmin.dashboard.index",meta:{requireAuth:!0,menuParent:"dashboard",menuKey:e=>"dashboard",permission:"superadmin"}}]}];const tn=le({components:{LaptopOutlined:Nt,UserOutlined:Yt,TranslationOutlined:Gt,ShopOutlined:Ne,SolutionOutlined:Qt,ScheduleOutlined:Xt,DollarOutlined:Qe,AccountBookOutlined:Jt,AppstoreAddOutlined:Zt,ApartmentOutlined:xt,FolderOpenOutlined:ea,MailOutlined:Ze,HistoryOutlined:ta,FormOutlined:aa,DatabaseOutlined:tt,TrademarkCircleOutlined:la},setup(){const{appSetting:e,user:n,permsArray:f,appModules:o}=ee(),w=De();ie();const $=I([]);return G(()=>{const _=typeof w.meta.menuKey=="function"?w.meta.menuKey(w):w.meta.menuKey;$.value=[_.replace("-","_")]}),re(w,(_,i)=>{const u=typeof _.meta.menuKey=="function"?_.meta.menuKey(_):_.meta.menuKey;$.value=[u.replace("-","_")]}),{permsArray:f,selectedKeys:$}}}),an={class:"setting-sidebar"};function ln(e,n,f,o,w,$){const _=l("LaptopOutlined"),i=l("a-menu-item"),u=l("UserOutlined"),d=l("TranslationOutlined"),c=l("DollarOutlined"),h=l("AppstoreAddOutlined"),D=l("FolderOpenOutlined"),m=l("MailOutlined"),g=l("TrademarkCircleOutlined"),S=l("DatabaseOutlined"),v=l("HistoryOutlined"),k=l("a-menu"),C=l("perfect-scrollbar");return p(),q("div",an,[t(C,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:a(()=>[t(k,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[10]||(n[10]=y=>e.selectedKeys=y)},{default:a(()=>[t(i,{key:"company",onClick:n[0]||(n[0]=y=>e.$router.push({name:"superadmin.settings.company.index"}))},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("menu.company")),1)]),_:1}),t(i,{key:"profile",onClick:n[1]||(n[1]=y=>e.$router.push({name:"superadmin.settings.profile.index"}))},{icon:a(()=>[t(u)]),default:a(()=>[r(" "+s(e.$t("menu.profile")),1)]),_:1}),t(i,{key:"translations",onClick:n[2]||(n[2]=y=>e.$router.push({name:"superadmin.settings.translations.index"}))},{icon:a(()=>[t(d)]),default:a(()=>[r(" "+s(e.$t("menu.translations")),1)]),_:1}),t(i,{key:"currencies",onClick:n[3]||(n[3]=y=>e.$router.push({name:"superadmin.settings.currencies.index"}))},{icon:a(()=>[t(c)]),default:a(()=>[r(" "+s(e.$t("menu.currencies")),1)]),_:1}),t(i,{key:"modules",onClick:n[4]||(n[4]=y=>e.$router.push({name:"superadmin.settings.modules.index"}))},{icon:a(()=>[t(h)]),default:a(()=>[r(" "+s(e.$t("menu.modules")),1)]),_:1}),t(i,{key:"storage_settings",onClick:n[5]||(n[5]=y=>e.$router.push({name:"superadmin.settings.storage.index"}))},{icon:a(()=>[t(D)]),default:a(()=>[r(" "+s(e.$t("menu.storage_settings")),1)]),_:1}),t(i,{key:"email_settings",onClick:n[6]||(n[6]=y=>e.$router.push({name:"superadmin.settings.email.index"}))},{icon:a(()=>[t(m)]),default:a(()=>[r(" "+s(e.$t("menu.email_settings")),1)]),_:1}),t(i,{key:"white_label",onClick:n[7]||(n[7]=y=>e.$router.push({name:"superadmin.settings.white_label.index"}))},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.$t("menu.white_label")),1)]),_:1}),t(i,{key:"database_backup",onClick:n[8]||(n[8]=y=>e.$router.push({name:"superadmin.settings.database_backup.index"}))},{icon:a(()=>[t(S)]),default:a(()=>[r(" "+s(e.$t("menu.database_backup")),1)]),_:1}),t(i,{key:"update_app",onClick:n[9]||(n[9]=y=>e.$router.push({name:"superadmin.settings.update_app.index"}))},{icon:a(()=>[t(v)]),default:a(()=>[r(" "+s(e.$t("menu.update_app")),1)]),_:1})]),_:1},8,["selectedKeys"])]),_:1})])}const pe=H(tn,[["render",ln]]),nn={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SettingOutlined:Ie,ColorPicker:lt,Upload:se,CurrencyAddButton:Le,LanguageAddButton:ue,SettingSidebar:pe,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{permsArray:o,appSetting:w,dayjsObject:$}=ee(),{t:_}=te(),i=ie(),u=I({}),d=I([]),c=I([]),h=I([]),D=I([]),m=I([]),g=w.value,S="superadmin/currencies?limit=10000",v="timezones",k="all-langs",C=I("linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%)"),y=window.config.theme_mode;G(()=>{const T=axiosAdmin.get(S),L=axiosAdmin.get(v),V=axiosAdmin.get(k);Promise.all([T,L,V]).then(([B,N,K])=>{d.value=B.data,c.value=N.data.timezones,m.value=K.data.langs,h.value=N.data.date_formates,D.value=N.data.time_formates,b()})});const b=()=>{u.value={name:g.name,short_name:g.short_name,email:g.email,phone:g.phone,address:g.address,left_sidebar_theme:g.left_sidebar_theme,dark_logo:g.dark_logo,dark_logo_url:g.dark_logo_url,light_logo:g.light_logo,light_logo_url:g.light_logo_url,small_dark_logo:g.small_dark_logo,small_light_logo:g.small_light_logo,small_dark_logo_url:g.small_dark_logo_url,small_light_logo_url:g.small_light_logo_url,login_image:g.login_image,login_image_url:g.login_image_url,shortcut_menus:g.shortcut_menus,rtl:g.rtl,currency_id:g.x_currency_id,lang_id:g.x_lang_id,primary_color:g.primary_color,timezone:g.timezone,date_format:g.date_format,time_format:g.time_format,auto_detect_timezone:g.auto_detect_timezone,app_debug:g.app_debug,update_app_notification:g.update_app_notification,_method:"PUT"}};return{permsArray:o,formData:u,loading:n,rules:f,currencies:d,allLangs:m,onSubmit:()=>{e({url:`superadmin/global-company/${g.xid}`,data:u.value,successMessage:_("company.updated"),success:T=>{i.dispatch("auth/updateApp")}})},currencyAdded:()=>{axiosAdmin.get(S).then(T=>{d.value=T.data})},gradientColor:C,timezones:c,dateFormats:h,timeFormats:D,dayjsObject:$,appThemeMode:y,languageAdded:()=>{axiosAdmin.get(k).then(T=>{m.value=T.data.langs})}}}},on={style:{display:"flex"}},sn={style:{display:"flex"}};function rn(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),S=l("a-input"),v=l("a-form-item"),k=l("a-row"),C=l("a-textarea"),y=l("a-select-option"),b=l("a-select"),U=l("color-picker"),O=l("Upload"),P=l("CurrencyAddButton"),T=l("LanguageAddButton"),L=l("a-switch"),V=l("a-form"),B=l("a-card"),N=l("admin-page-table-content");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("menu.company"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.company")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(N,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(V,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.name"),name:"name",help:o.rules.name?o.rules.name.message:null,validateStatus:o.rules.name?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.name,"onUpdate:value":n[0]||(n[0]=K=>o.formData.name=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.short_name"),name:"short_name",help:o.rules.short_name?o.rules.short_name.message:null,validateStatus:o.rules.short_name?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.short_name,"onUpdate:value":n[1]||(n[1]=K=>o.formData.short_name=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.short_name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.email"),name:"email",help:o.rules.email?o.rules.email.message:null,validateStatus:o.rules.email?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.email,"onUpdate:value":n[2]||(n[2]=K=>o.formData.email=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.phone"),name:"phone",help:o.rules.phone?o.rules.phone.message:null,validateStatus:o.rules.phone?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.phone,"onUpdate:value":n[3]||(n[3]=K=>o.formData.phone=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.phone")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("company.address"),name:"address",help:o.rules.address?o.rules.address.message:null,validateStatus:o.rules.address?"error":null},{default:a(()=>[t(C,{value:o.formData.address,"onUpdate:value":n[4]||(n[4]=K=>o.formData.address=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.address")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.left_sidebar_theme"),name:"left_sidebar_theme",help:o.rules.left_sidebar_theme?o.rules.left_sidebar_theme.message:null,validateStatus:o.rules.left_sidebar_theme?"error":null},{default:a(()=>[t(b,{value:o.formData.left_sidebar_theme,"onUpdate:value":n[5]||(n[5]=K=>o.formData.left_sidebar_theme=K),placeholder:e.$t("common.select_default_text",[e.$t("company.left_sidebar_theme")])},{default:a(()=>[t(y,{key:"dark",value:"dark"},{default:a(()=>[r(s(e.$t("company.dark")),1)]),_:1}),o.appThemeMode!="dark"?(p(),A(y,{key:"light",value:"light"},{default:a(()=>[r(s(e.$t("company.light")),1)]),_:1})):R("",!0)]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.primary_color"),name:"primary_color",help:o.rules.primary_color?o.rules.primary_color.message:null,validateStatus:o.rules.primary_color?"error":null},{default:a(()=>[t(U,{pureColor:o.formData.primary_color,"onUpdate:pureColor":n[6]||(n[6]=K=>o.formData.primary_color=K),format:"hex",useType:"pure",gradientColor:o.gradientColor,"onUpdate:gradientColor":n[7]||(n[7]=K=>o.gradientColor=K)},null,8,["pureColor","gradientColor"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.dark_logo"),name:"dark_logo",help:o.rules.dark_logo?o.rules.dark_logo.message:null,validateStatus:o.rules.dark_logo?"error":null},{default:a(()=>[t(O,{formData:o.formData,folder:"company",imageField:"dark_logo",onOnFileUploaded:n[8]||(n[8]=K=>{o.formData.dark_logo=K.file,o.formData.dark_logo_url=K.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.light_logo"),name:"light_logo",help:o.rules.light_logo?o.rules.light_logo.message:null,validateStatus:o.rules.light_logo?"error":null},{default:a(()=>[t(O,{formData:o.formData,folder:"company",imageField:"light_logo",onOnFileUploaded:n[9]||(n[9]=K=>{o.formData.light_logo=K.file,o.formData.light_logo_url=K.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.small_dark_logo"),name:"small_dark_logo",help:o.rules.small_dark_logo?o.rules.small_dark_logo.message:null,validateStatus:o.rules.small_dark_logo?"error":null},{default:a(()=>[t(O,{formData:o.formData,folder:"company",imageField:"small_dark_logo",onOnFileUploaded:n[10]||(n[10]=K=>{o.formData.small_dark_logo=K.file,o.formData.small_dark_logo_url=K.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.small_light_logo"),name:"small_light_logo",help:o.rules.small_light_logo?o.rules.small_light_logo.message:null,validateStatus:o.rules.small_light_logo?"error":null},{default:a(()=>[t(O,{formData:o.formData,folder:"company",imageField:"small_light_logo",onOnFileUploaded:n[11]||(n[11]=K=>{o.formData.small_light_logo=K.file,o.formData.small_light_logo_url=K.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.currency"),name:"currency_id",help:o.rules.currency_id?o.rules.currency_id.message:null,validateStatus:o.rules.currency_id?"error":null,class:"required"},{default:a(()=>[M("span",on,[t(b,{value:o.formData.currency_id,"onUpdate:value":n[12]||(n[12]=K=>o.formData.currency_id=K),placeholder:e.$t("common.select_default_text",[e.$t("company.currency")]),allowClear:!0,optionFilterProp:"label","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.currencies,K=>(p(),A(y,{key:K.xid,value:K.xid},{default:a(()=>[r(s(`${K.name} (${K.symbol})`),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"]),t(P,{onOnAddSuccess:o.currencyAdded,panelType:"superadmin"},null,8,["onOnAddSuccess"])])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.layout"),name:"rtl",help:o.rules.rtl?o.rules.rtl.message:null,validateStatus:o.rules.rtl?"error":null,class:"required"},{default:a(()=>[t(b,{value:o.formData.rtl,"onUpdate:value":n[13]||(n[13]=K=>o.formData.rtl=K),placeholder:e.$t("common.select_default_text",[e.$t("company.layout")]),allowClear:!0,optionFilterProp:"label","show-search":""},{default:a(()=>[t(y,{key:"rtl",value:1},{default:a(()=>[r(s(e.$t("company.rtl")),1)]),_:1}),t(y,{key:"ltr",value:0},{default:a(()=>[r(s(e.$t("company.ltr")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.language"),name:"lang_id",help:o.rules.lang_id?o.rules.lang_id.message:null,validateStatus:o.rules.lang_id?"error":null,class:"required"},{default:a(()=>[M("span",sn,[t(b,{value:o.formData.lang_id,"onUpdate:value":n[14]||(n[14]=K=>o.formData.lang_id=K),placeholder:e.$t("common.select_default_text",[e.$t("company.language")]),allowClear:!0,optionFilterProp:"label","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.allLangs,K=>(p(),A(y,{key:K.xid,value:K.xid},{default:a(()=>[r(s(K.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"]),t(T,{onOnAddSuccess:o.languageAdded,panelType:"superadmin"},null,8,["onOnAddSuccess"])])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:4,lg:4},{default:a(()=>[t(v,{label:e.$t("company.auto_detect_timezone"),name:"auto_detect_timezone",help:o.rules.auto_detect_timezone?o.rules.auto_detect_timezone.message:null,validateStatus:o.rules.auto_detect_timezone?"error":null},{default:a(()=>[t(L,{checked:o.formData.auto_detect_timezone,"onUpdate:checked":n[15]||(n[15]=K=>o.formData.auto_detect_timezone=K),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:8,lg:8},{default:a(()=>[t(v,{label:e.$t("company.default_timezone"),name:"timezone",help:o.rules.timezone?o.rules.timezone.message:null,validateStatus:o.rules.timezone?"error":null,class:"required"},{default:a(()=>[t(b,{value:o.formData.timezone,"onUpdate:value":n[16]||(n[16]=K=>o.formData.timezone=K),placeholder:e.$t("common.select_default_text",[e.$t("company.default_timezone")]),allowClear:!0,optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.timezones,(K,E)=>(p(),A(y,{key:E,value:K},{default:a(()=>[r(s(K),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:4,lg:4},{default:a(()=>[t(v,{label:e.$t("company.app_debug"),name:"app_debug",help:o.rules.app_debug?o.rules.app_debug.message:null,validateStatus:o.rules.app_debug?"error":null},{default:a(()=>[t(L,{checked:o.formData.app_debug,"onUpdate:checked":n[17]||(n[17]=K=>o.formData.app_debug=K),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:4,lg:4},{default:a(()=>[t(v,{label:e.$t("company.update_app_notification"),name:"update_app_notification",help:o.rules.update_app_notification?o.rules.update_app_notification.message:null,validateStatus:o.rules.update_app_notification?"error":null},{default:a(()=>[t(L,{checked:o.formData.update_app_notification,"onUpdate:checked":n[18]||(n[18]=K=>o.formData.update_app_notification=K),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.date_format"),name:"date_format",help:o.rules.date_format?o.rules.date_format.message:null,validateStatus:o.rules.date_format?"error":null,class:"required"},{default:a(()=>[t(b,{value:o.formData.date_format,"onUpdate:value":n[19]||(n[19]=K=>o.formData.date_format=K),placeholder:e.$t("common.select_default_text",[e.$t("company.date_format")]),allowClear:!0,optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.dateFormats,(K,E)=>(p(),A(y,{key:E,value:K},{default:a(()=>[r(s(`(${E}) => `+o.dayjsObject().format(K)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("company.time_format"),name:"time_format",help:o.rules.time_format?o.rules.time_format.message:null,validateStatus:o.rules.time_format?"error":null,class:"required"},{default:a(()=>[t(b,{value:o.formData.time_format,"onUpdate:value":n[20]||(n[20]=K=>o.formData.time_format=K),placeholder:e.$t("common.select_default_text",[e.$t("company.time_format")]),allowClear:!0,optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.timeFormats,(K,E)=>(p(),A(y,{key:E,value:E},{default:a(()=>[r(s(`(${K}) => `+o.dayjsObject().format(E)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(v,{label:e.$t("company.login_image"),name:"login_image",help:o.rules.login_image?o.rules.login_image.message:null,validateStatus:o.rules.login_image?"error":null},{default:a(()=>[t(O,{formData:o.formData,folder:"company",imageField:"login_image",onOnFileUploaded:n[21]||(n[21]=K=>{o.formData.login_image=K.file,o.formData.login_image_url=K.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const un=H(nn,[["render",rn]]),dn={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,Upload:se,SettingSidebar:pe,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=ie(),$=I({}),_=I({}),i=w.state.auth.user;return G(()=>{$.value={name:i.name,email:i.email,password:"",phone:i.phone,profile_image:i.profile_image,profile_image_url:i.profile_image_url}}),{loading:n,rules:f,formData:$,currencies:_,onSubmit:()=>{e({url:"profile",data:$.value,successMessage:o("user.profile_updated"),success:d=>{w.commit("auth/updateUser",d.user)}})}}}},mn={class:"small-text-message"};function _n(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),S=l("a-input"),v=l("a-form-item"),k=l("a-row"),C=l("Upload"),y=l("a-textarea"),b=l("a-form"),U=l("a-card"),O=l("admin-page-table-content");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("menu.profile"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.profile")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(O,null,{default:a(()=>[t(U,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(b,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("user.name"),name:"name",help:o.rules.name?o.rules.name.message:null,validateStatus:o.rules.name?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.name,"onUpdate:value":n[0]||(n[0]=P=>o.formData.name=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("user.email"),name:"email",help:o.rules.email?o.rules.email.message:null,validateStatus:o.rules.email?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.email,placeholder:e.$t("common.placeholder_default_text",[e.$t("user.email")]),disabled:""},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("user.password"),name:"password",help:o.rules.password?o.rules.password.message:null,validateStatus:o.rules.password?"error":null},{default:a(()=>[t(S,{value:o.formData.password,"onUpdate:value":n[1]||(n[1]=P=>o.formData.password=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.password")]),type:"password",autocomplete:"off"},null,8,["value","placeholder"]),M("small",mn,s(e.$t("user.password_blank")),1)]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("user.phone"),name:"phone",help:o.rules.phone?o.rules.phone.message:null,validateStatus:o.rules.phone?"error":null},{default:a(()=>[t(S,{value:o.formData.phone,"onUpdate:value":n[2]||(n[2]=P=>o.formData.phone=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.phone")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("user.profile_image"),name:"profile_image",help:o.rules.profile_image?o.rules.profile_image.message:null,validateStatus:o.rules.profile_image?"error":null},{default:a(()=>[t(C,{formData:o.formData,folder:"user",imageField:"profile_image",onOnFileUploaded:n[3]||(n[3]=P=>{o.formData.profile_image=P.file,o.formData.profile_image_url=P.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("user.address"),name:"address",help:o.rules.address?o.rules.address.message:null,validateStatus:o.rules.address?"error":null},{default:a(()=>[t(y,{value:o.formData.address,"onUpdate:value":n[4]||(n[4]=P=>o.formData.address=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.address")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const pn=H(dn,[["render",_n]]),cn={components:{SettingSidebar:pe,EyeOutlined:ae,SuperAdminPageHeader:Z,TranslationsSettings:kt,LangAddButton:ue,ImportTranslation:Ve},setup(){const e=I(null),n=window.config.translatioins_sample_file;return{langAdded:()=>{e.value.getData()},transSettingRef:e,sampleFileUrl:n}}};function fn(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("ImportTranslation"),g=l("LangAddButton"),S=l("EyeOutlined"),v=l("a-button"),k=l("a-space"),C=l("TranslationsSettings"),y=l("a-row");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.translations"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.translations")),1)]),_:1})]),_:1})]),_:1}),t(y,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(C,{ref:"transSettingRef"},{actionButtons:a(()=>[t(k,null,{default:a(()=>[t(m,{pageTitle:e.$t("translations.import_translations"),sampleFileUrl:o.sampleFileUrl,importUrl:"superadmin/translations/import",onOnUploadSuccess:o.langAdded},null,8,["pageTitle","sampleFileUrl","onOnUploadSuccess"]),t(g,{onOnAddSuccess:o.langAdded,btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1},8,["onOnAddSuccess"]),t(v,{type:"primary",onClick:n[0]||(n[0]=b=>e.$router.push({name:"superadmin.settings.langs.index"}))},{default:a(()=>[t(S),r(" "+s(e.$t("langs.view_all_langs")),1)]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})],64)}const gn=H(cn,[["render",fn]]),bn={components:{PlusOutlined:Y,SettingSidebar:pe,SuperAdminPageHeader:Z,LanguageSettings:St,ImportTranslation:Ve},setup(){const e=I(null),n=window.config.translatioins_sample_file;return{langSettingRef:e,addItem:()=>{e.value.addItem()},sampleFileUrl:n}}};function yn(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("ImportTranslation"),g=l("PlusOutlined"),S=l("a-button"),v=l("a-space"),k=l("LanguageSettings"),C=l("a-row");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.languages"),onBack:n[0]||(n[0]=()=>e.$router.push({name:"superadmin.settings.translations.index"})),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"superadmin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(u,null,{default:a(()=>[t(i,{to:{name:"superadmin.settings.translations.index"}},{default:a(()=>[r(s(e.$t("menu.translations")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.languages")),1)]),_:1})]),_:1})]),_:1}),t(C,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(k,{ref:"langSettingRef",panelType:"superadmin"},{actionButtons:a(()=>[t(v,null,{default:a(()=>[t(m,{pageTitle:e.$t("translations.import_translations"),sampleFileUrl:o.sampleFileUrl,importUrl:"superadmin/translations/import"},null,8,["pageTitle","sampleFileUrl"]),t(S,{type:"primary",onClick:o.addItem},{default:a(()=>[t(g),r(" "+s(e.$t("langs.add")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},512)]),_:1})]),_:1})],64)}const hn=H(bn,[["render",yn]]),vn={components:{PlusOutlined:Y,SettingSidebar:pe,SuperAdminPageHeader:Z,CurrencySettings:$t},setup(){const{permsArray:e}=ee(),n=I(null);return{permsArray:e,currencySettingRef:n,addItem:()=>{n.value.addItem()}}}};function kn(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("PlusOutlined"),g=l("a-button"),S=l("CurrencySettings"),v=l("a-row");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.currencies"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.currencies")),1)]),_:1})]),_:1})]),_:1}),t(v,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(S,{ref:"currencySettingRef",panelType:"superadmin"},{actionButtons:a(()=>[t(g,{type:"primary",onClick:o.addItem},{default:a(()=>[t(m),r(" "+s(e.$t("currency.add")),1)]),_:1},8,["onClick"])]),_:1},512)]),_:1})]),_:1})],64)}const Sn=H(vn,[["render",kn]]),$n=le({components:{LeftCircleOutlined:na,RightCircleOutlined:oa,SettingSidebar:pe,SuperAdminPageHeader:Z,ModuleSetting:wt},setup(){return{}}});function wn(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("ModuleSetting"),g=l("a-row");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.modules"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.modules")),1)]),_:1})]),_:1})]),_:1}),t(g,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(m)]),_:1})]),_:1})],64)}const Dn=H($n,[["render",wn]]),Cn={components:{SettingSidebar:pe,SuperAdminPageHeader:Z,StorageSettings:Dt,SaveOutlined:Q},setup(){const e=I(null);return{onSubmit:()=>{e.value.onSubmit()},settingRef:e}}};function On(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),S=l("StorageSettings"),v=l("a-card"),k=l("admin-page-table-content"),C=l("a-row");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("menu.storage_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:!!(o.settingRef&&o.settingRef.loading)},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.storage_settings")),1)]),_:1})]),_:1})]),_:1}),t(C,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(k,null,{default:a(()=>[t(v,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(S,{ref:"settingRef"},null,512)]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Un=H(Cn,[["render",On]]),An={components:{SettingSidebar:pe,SuperAdminPageHeader:Z,EmailSettings:Ct,SaveOutlined:Q},setup(){const e=I(null);return{onSubmit:()=>{e.value.onSubmit()},settingRef:e}}};function qn(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),S=l("EmailSettings"),v=l("admin-page-table-content"),k=l("a-row");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("menu.email_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:!!(o.settingRef&&o.settingRef.loading)},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.email_settings")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(v,null,{default:a(()=>[t(S,{ref:"settingRef"},null,512)]),_:1})]),_:1})]),_:1})],64)}const Kn=H(An,[["render",qn]]),Tn={components:{SettingSidebar:pe,SuperAdminPageHeader:Z,UpdateAppSettings:Ot,InstallApp:Ut},setup(){return{settingRef:I(null)}}};function Pn(e,n,f,o,w,$){const _=l("InstallApp"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("SettingSidebar"),m=l("a-col"),g=l("UpdateAppSettings"),S=l("admin-page-table-content"),v=l("a-row");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.update_app"),class:"p-0"},{extra:a(()=>[o.settingRef?(p(),A(_,{key:0,productStatus:o.settingRef.productStatus,product:o.settingRef.product.product},null,8,["productStatus","product"])):R("",!0)]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.update_app")),1)]),_:1})]),_:1})]),_:1}),t(v,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(S,null,{default:a(()=>[t(g,{ref:"settingRef"},null,512)]),_:1})]),_:1})]),_:1})],64)}const zn=H(Tn,[["render",Pn]]),En={components:{SettingSidebar:pe,SuperAdminPageHeader:Z,DatabaseSettings:At,GenerateDbBackup:qt,BackupCommandSetting:Kt},setup(){const e=I(null);return{backupCreated:f=>{e.value.backupCreated(f)},settingRef:e}}};function In(e,n,f,o,w,$){const _=l("GenerateDbBackup"),i=l("BackupCommandSetting"),u=l("a-space"),d=l("a-page-header"),c=l("router-link"),h=l("a-breadcrumb-item"),D=l("a-breadcrumb"),m=l("SuperAdminPageHeader"),g=l("SettingSidebar"),S=l("a-col"),v=l("DatabaseSettings"),k=l("a-row");return p(),q(z,null,[t(m,null,{header:a(()=>[t(d,{title:e.$t("menu.database_backup"),class:"p-0"},{extra:a(()=>[t(u,null,{default:a(()=>[t(_,{onSuccess:o.backupCreated},null,8,["onSuccess"]),t(i)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(D,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(h,null,{default:a(()=>[t(c,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(h,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(h,null,{default:a(()=>[r(s(e.$t("menu.database_backup")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(S,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(g)]),_:1}),t(S,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(v,{ref:"settingRef"},null,512)]),_:1})]),_:1})],64)}const Fn=H(En,[["render",In]]);const Mn=le({props:{formData:null,imageField:{default:"image",type:String},url:{default:"superadmin/upload-default-logo",type:String}},components:{LoadingOutlined:Se,PlusOutlined:Y},setup(e,{emit:n}){const f=I([]),o=I(!1),{t:w}=te(),$=ie();return{fileList:f,loading:o,customRequest:i=>{const u=new FormData;u.append("image",i.file),u.append("image_field",e.imageField),o.value=!0,axiosAdmin.post(e.url,u,{headers:{"Content-Type":"multipart/form-data"}}).then(d=>{f.value=[],o.value=!1,$.dispatch("auth/updateApp"),n("onFileUploaded",{file:d.data.file,file_url:d.data.file_url})}).catch(()=>{o.value=!1,Te.error(w("messages.uploading_failed"))})}}}}),Rn={key:0},Hn=["src"],Wn={key:1},Bn={class:"ant-upload-text"};function Ln(e,n,f,o,w,$){const _=l("loading-outlined"),i=l("plus-outlined"),u=l("a-upload");return p(),A(u,{accept:"image/*","file-list":e.fileList,"onUpdate:fileList":n[0]||(n[0]=d=>e.fileList=d),name:"image","list-type":"picture-card",class:"avatar-uploader","show-upload-list":!1,customRequest:e.customRequest},{default:a(()=>[e.formData[e.imageField]!=null?(p(),q("div",Rn,[M("img",{style:{width:"128px"},src:e.formData[`${e.imageField}_url`],alt:"avatar"},null,8,Hn)])):(p(),q("div",Wn,[e.loading?(p(),A(_,{key:0})):(p(),A(i,{key:1})),M("div",Bn,s(e.$t("common.upload")),1)]))]),_:1},8,["file-list","customRequest"])}const Vn=H(Mn,[["render",Ln]]),jn={components:{Upload:Vn,FormItemHeading:_e},setup(){const e=I({});return G(()=>{axiosAdmin.get("superadmin/default-logo-details").then(n=>{var f=n.data;e.value={dark_logo:f.dark_logo,dark_logo_url:f.dark_logo_url,light_logo:f.light_logo,light_logo_url:f.light_logo_url,small_dark_logo:f.small_dark_logo,small_light_logo:f.small_light_logo,small_dark_logo_url:f.small_dark_logo_url,small_light_logo_url:f.small_light_logo_url}})}),{formData:e}}},Nn={class:"mt-40"};function Yn(e,n,f,o,w,$){const _=l("a-typography-text"),i=l("a-typography-paragraph"),u=l("a-alert"),d=l("FormItemHeading"),c=l("Upload"),h=l("a-form-item"),D=l("a-col"),m=l("a-row"),g=l("a-form");return p(),q(z,null,[t(i,{class:"mt-40"},{default:a(()=>[M("blockquote",null,[t(_,{type:"warning",strong:""},{default:a(()=>[r(s(e.$t("setup_superadmin_company.white_label_update_details")),1)]),_:1})])]),_:1}),t(u,{class:"mt-20",message:e.$t("setup_superadmin_company.hard_reload_message"),type:"warning","show-icon":""},null,8,["message"]),t(g,{layout:"vertical"},{default:a(()=>[M("div",Nn,[t(d,null,{default:a(()=>[r(s(e.$t("setup_superadmin_company.default_company_logo")),1)]),_:1})]),o.formData&&o.formData.dark_logo?(p(),A(m,{key:0,gutter:16,class:"mb-40"},{default:a(()=>[t(D,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(h,{label:e.$t("company.dark_logo"),name:"dark_logo"},{default:a(()=>[t(c,{formData:o.formData,folder:"company",imageField:"dark_logo",onOnFileUploaded:n[0]||(n[0]=S=>{o.formData.dark_logo=S.file,o.formData.dark_logo_url=S.file_url})},null,8,["formData"])]),_:1},8,["label"])]),_:1}),t(D,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(h,{label:e.$t("company.light_logo"),name:"light_logo"},{default:a(()=>[t(c,{formData:o.formData,folder:"company",imageField:"light_logo",onOnFileUploaded:n[1]||(n[1]=S=>{o.formData.light_logo=S.file,o.formData.light_logo_url=S.file_url})},null,8,["formData"])]),_:1},8,["label"])]),_:1}),t(D,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(h,{label:e.$t("company.small_dark_logo"),name:"small_dark_logo"},{default:a(()=>[t(c,{formData:o.formData,folder:"company",imageField:"small_dark_logo",onOnFileUploaded:n[2]||(n[2]=S=>{o.formData.small_dark_logo=S.file,o.formData.small_dark_logo_url=S.file_url})},null,8,["formData"])]),_:1},8,["label"])]),_:1}),t(D,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(h,{label:e.$t("company.small_light_logo"),name:"small_light_logo"},{default:a(()=>[t(c,{formData:o.formData,folder:"company",imageField:"small_light_logo",onOnFileUploaded:n[3]||(n[3]=S=>{o.formData.small_light_logo=S.file,o.formData.small_light_logo_url=S.file_url})},null,8,["formData"])]),_:1},8,["label"])]),_:1})]),_:1})):R("",!0)]),_:1})],64)}const yt=H(jn,[["render",Yn]]),Gn={components:{SettingSidebar:pe,SuperAdminPageHeader:Z,WhiteLabelSetting:yt},setup(){return{}}};function Qn(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("WhiteLabelSetting"),g=l("a-card"),S=l("admin-page-table-content"),v=l("a-row");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.white_label"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.white_label")),1)]),_:1})]),_:1})]),_:1}),t(v,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(S,null,{default:a(()=>[t(g,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(m)]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Xn=H(Gn,[["render",Qn]]),Jn=[{path:"/superadmin/settings/",component:be,children:[{path:"company",component:un,name:"superadmin.settings.company.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"company",permission:"superadmin"}},{path:"profile",component:pn,name:"superadmin.settings.profile.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"profile",permission:"superadmin"}},{path:"translations",component:gn,name:"superadmin.settings.translations.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"translations",permission:"superadmin"}},{path:"langs",component:hn,name:"superadmin.settings.langs.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"translations",permission:"superadmin"}},{path:"currencies",component:Sn,name:"superadmin.settings.currencies.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"currencies",permission:"superadmin"}},{path:"modules",component:Dn,name:"superadmin.settings.modules.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"modules",permission:"superadmin"}},{path:"storage",component:Un,name:"superadmin.settings.storage.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"storage_settings",permission:"superadmin"}},{path:"email",component:Kn,name:"superadmin.settings.email.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"email_settings",permission:"superadmin"}},{path:"white-label",component:Xn,name:"superadmin.settings.white_label.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"white_label",permission:"superadmin"}},{path:"database-backup",component:Fn,name:"superadmin.settings.database_backup.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"database_backup",permission:"superadmin"}},{path:"update-app",component:zn,name:"superadmin.settings.update_app.index",meta:{requireAuth:!0,menuParent:"settings",menuKey:e=>"update_app",permission:"superadmin"}}]}],Zn={components:{PlusOutlined:Y,SuperAdminPageHeader:Z,EmailNotSetup:We,CompanyTable:bt},setup(){const e=I(null);return{addItem:()=>{e.value.addItem()},companyTableRef:e}}};function xn(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("PlusOutlined"),D=l("a-button"),m=l("EmailNotSetup"),g=l("CompanyTable");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.companies"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.companies")),1)]),_:1})]),_:1})]),_:1}),t(g,{ref:"companyTableRef",selectable:!0},{actionButtons:a(()=>[t(D,{type:"primary",onClick:o.addItem},{default:a(()=>[t(h),r(" "+s(e.$t("company.add")),1)]),_:1},8,["onClick"])]),emailSettings:a(()=>[t(m,{class:"mb-20"})]),_:1},512)],64)}const eo=H(Zn,[["render",xn]]),to=[{path:"/",component:be,children:[{path:"/superadmin/companies",component:eo,name:"superadmin.companies.index",meta:{requireAuth:!0,menuParent:"companies",menuKey:e=>"companies",permission:"superadmin"}}]}],ao=()=>{const e="superadmin/payment-transcations?fields=id,xid,paid_on,transcation_id,company_id,x_company_id,company{id,xid,name},next_payment_date,payment_method",{t:n}=te(),f=[{title:n("payment_transaction.paid_on"),dataIndex:"paid_on"},{title:n("payment_transaction.company"),dataIndex:"company"},{title:n("payment_transaction.transcation_id"),dataIndex:"transcation_id"},{title:n("payment_transaction.next_payment_date"),dataIndex:"next_payment_date"},{title:n("payment_transaction.payment_method"),dataIndex:"payment_method"},{title:n("common.action"),dataIndex:"action"}],o=[{key:"transcation_id",value:n("payment_transaction.transcation_id")}];return{url:e,columns:f,filterableColumns:o}},lo={components:{SuperAdminPageHeader:Z},setup(){const{formatDate:e}=ee(),{url:n,columns:f,filterableColumns:o}=ao(),{table:w,tableUrl:$,fetch:_,handleTableChange:i,onTableSearch:u}=Pe();G(()=>{d()});const d=()=>{$.value={url:n},w.filterableColumns=o,_({page:1})};return{table:w,handleTableChange:i,onTableSearch:u,columns:f,filterableColumns:o,formatDate:e}}},no={class:"table-responsive"};function oo(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("a-select-option"),D=l("a-select"),m=l("a-input-search"),g=l("a-input-group"),S=l("a-col"),v=l("a-row"),k=l("admin-page-filters"),C=l("a-table"),y=l("admin-page-table-content");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.payment_transactions"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.payment_transactions")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(v,{gutter:[16,16]},{default:a(()=>[t(S,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(v,{gutter:[16,16],justify:"end"},{default:a(()=>[t(S,{xs:24,sm:24,md:16,lg:8,xl:6},{default:a(()=>[t(g,{compact:""},{default:a(()=>[t(D,{style:{width:"25%"},value:o.table.searchColumn,"onUpdate:value":n[0]||(n[0]=b=>o.table.searchColumn=b),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(p(!0),q(z,null,X(o.filterableColumns,b=>(p(),A(h,{key:b.key},{default:a(()=>[r(s(b.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(m,{style:{width:"75%"},value:o.table.searchString,"onUpdate:value":n[1]||(n[1]=b=>o.table.searchString=b),"show-search":"",onChange:o.onTableSearch,onSearch:o.onTableSearch,loading:o.table.filterLoading},null,8,["value","onChange","onSearch","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(y,null,{default:a(()=>[t(v,null,{default:a(()=>[t(S,{span:24},{default:a(()=>[M("div",no,[t(C,{columns:o.columns,"row-key":b=>b.xid,"data-source":o.table.data,pagination:o.table.pagination,loading:o.table.loading,onChange:o.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:b,record:U})=>[b.dataIndex==="company"?(p(),q(z,{key:0},[r(s(U.company.name),1)],64)):R("",!0),b.dataIndex==="paid_on"?(p(),q(z,{key:1},[r(s(o.formatDate(U.paid_on)),1)],64)):R("",!0),b.dataIndex==="next_payment_date"?(p(),q(z,{key:2},[r(s(o.formatDate(U.next_payment_date)),1)],64)):R("",!0),b.dataIndex==="name"?(p(),q(z,{key:3},[r(s(U.name),1)],64)):R("",!0),b.dataIndex==="action"?(p(),q(z,{key:4},[r(" - ")],64)):R("",!0)]),_:1},8,["columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})],64)}const so=H(lo,[["render",oo]]),ro=()=>{const e="superadmin/offline-requests?fields=id,xid,created_at,proof_document,proof_document_url,subscription_plan_id,x_subscription_plan_id,subscriptionPlan{id,xid,name},plan_type,offline_payment_mode_id,x_offline_payment_mode_id,offlinePaymentMode{id,xid,name},status,submitted_by_id,x_submitted_by_id,submittor{id,xid,name},company_id,x_company_id,company{id,xid,name}",{t:n}=te(),f=["company_id","subscription_plan_id","offline_payment_mode_id"],o=[{title:n("offline_request.company"),dataIndex:"company"},{title:n("offline_request.submitted_by"),dataIndex:"submitted_by"},{title:n("offline_request.subscription_plan"),dataIndex:"subscription_plan"},{title:n("offline_request.plan_type"),dataIndex:"plan_type"},{title:n("offline_request.payment_method"),dataIndex:"payment_method"},{title:n("offline_request.submitted_on"),dataIndex:"submitted_on"},{title:n("offline_request.status"),dataIndex:"status"},{title:n("common.action"),dataIndex:"action"}];return{url:e,columns:o,filterableColumns:[],hashableColumns:f}},io={props:["offlineRequest"],emits:["success"],components:{CheckCircleOutlined:Ce,EyeOutlined:ae,SubscriptionPlanAddButton:pt,OfflinePaymentModeAddButton:gt},setup(e,{emit:n}){const{appSetting:f,dayjsObject:o}=ee(),{t:w}=te(),$=I(!1),{addEditRequestAdmin:_,loading:i,rules:u}=oe(),d=I({offline_request_id:void 0,subscription_plan_id:void 0,plan_type:void 0,offline_payment_mode_id:void 0,amount:void 0,paid_on:void 0,license_expires_on:void 0}),c=I([]),h=I([]),D="superadmin/subscription-plans?fields=id,xid,name&limit=10000",m="superadmin/offline-payment-modes?fields=id,xid,name&limit=10000";G(()=>{g()});const g=()=>{const U=axiosAdmin.get(D),O=axiosAdmin.get(m);Promise.all([U,O]).then(([P,T])=>{c.value=P.data,h.value=T.data,d.value={...d.value,offline_request_id:e.offlineRequest.xid,subscription_plan_id:e.offlineRequest.x_subscription_plan_id,plan_type:e.offlineRequest.plan_type,offline_payment_mode_id:e.offlineRequest.x_offline_payment_mode_id}})},S=()=>{axiosAdmin.get(D).then(U=>{c.value=U.data})},v=()=>{axiosAdmin.get(m).then(U=>{h.value=U.data})},k=()=>{$.value=!0},C=()=>{_({url:"superadmin/offline-requests/approve",data:d.value,successMessage:w("offline_request.request_approved_successfully"),success:U=>{u.value={},$.value=!1,n("success",!0)}})},y=()=>{u.value={},$.value=!1},b=()=>{d.value.plan_type=="monthly"&&d.value.paid_on!=null?d.value={...d.value,license_expires_on:o(d.value.paid_on).add(1,"month")}:d.value.plan_type=="annual"&&d.value.paid_on!=null?d.value={...d.value,license_expires_on:o(d.value.paid_on).add(1,"year")}:d.value={...d.value,license_expires_on:void 0}};return re(()=>d.value.paid_on,(U,O)=>{b()}),re(()=>d.value.plan_type,(U,O)=>{b()}),{appSetting:f,visible:$,loading:i,rules:u,formData:d,subscriptionPlans:c,paymentModes:h,subscriptionPlanAdded:S,offlinePaymentModeAdded:v,onClose:y,onSubmit:C,showModal:k,drawerWidth:window.innerWidth<=991?"90%":"30%"}}};function uo(e,n,f,o,w,$){const _=l("CheckCircleOutlined"),i=l("a-button"),u=l("a-tooltip"),d=l("a-descriptions-item"),c=l("EyeOutlined"),h=l("a-typography-link"),D=l("a-descriptions"),m=l("a-divider"),g=l("a-date-picker"),S=l("a-form-item"),v=l("a-col"),k=l("a-input-number"),C=l("a-row"),y=l("a-form"),b=l("a-modal");return p(),q(z,null,[t(u,{title:e.$t("offline_request.approve_request"),onClick:o.showModal},{default:a(()=>[t(i,{type:"primary",style:{"background-color":"#87d068","border-color":"#87d068"}},{icon:a(()=>[t(_)]),_:1})]),_:1},8,["title","onClick"]),t(b,{open:o.visible,closable:!1,centered:!0,title:e.$t("offline_request.approve_request"),onOk:o.onSubmit,width:o.drawerWidth},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:o.loading,onClick:o.onSubmit,style:{"background-color":"#87d068","border-color":"#87d068"}},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("offline_request.approve")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:o.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(D,{size:"small",column:2},{default:a(()=>[t(d,{label:e.$t("offline_request.subscription_plan")},{default:a(()=>[r(s(f.offlineRequest.subscription_plan.name),1)]),_:1},8,["label"]),t(d,{label:e.$t("offline_request.plan_type")},{default:a(()=>[r(s(e.$t(`subscription_plans.${f.offlineRequest.plan_type}`)),1)]),_:1},8,["label"]),t(d,{label:e.$t("offline_request.payment_mode")},{default:a(()=>[r(s(f.offlineRequest.offline_payment_mode.name),1)]),_:1},8,["label"]),t(d,{label:e.$t("offline_request.proof_document")},{default:a(()=>[t(h,{href:f.offlineRequest.proof_document_url,target:"_blank"},{default:a(()=>[t(c),r(" "+s(e.$t("common.view")),1)]),_:1},8,["href"])]),_:1},8,["label"])]),_:1}),t(m),t(y,{layout:"vertical"},{default:a(()=>[t(C,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(S,{label:e.$t("offline_request.payment_date"),name:"paid_on",help:o.rules.paid_on?o.rules.paid_on.message:null,validateStatus:o.rules.paid_on?"error":null,class:"required"},{default:a(()=>[t(g,{value:o.formData.paid_on,"onUpdate:value":n[0]||(n[0]=U=>o.formData.paid_on=U),format:o.appSetting.date_format,valueFormat:"YYYY-MM-DD",style:{width:"100%"}},null,8,["value","format"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(S,{label:e.$t("payment_transaction.amount"),name:"amount",help:o.rules.amount?o.rules.amount.message:null,validateStatus:o.rules.amount?"error":null,class:"required"},{default:a(()=>[t(k,{value:o.formData.amount,"onUpdate:value":n[1]||(n[1]=U=>o.formData.amount=U),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_transaction.amount")]),min:"0",style:{width:"100%"}},{addonBefore:a(()=>[r(s(o.appSetting.currency.symbol),1)]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(C,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(S,{label:e.$t("payment_transaction.license_expires_on"),name:"license_expires_on",help:o.rules.license_expires_on?o.rules.paid_on.message:null,validateStatus:o.rules.license_expires_on?"error":null},{default:a(()=>[t(g,{value:o.formData.license_expires_on,"onUpdate:value":n[2]||(n[2]=U=>o.formData.license_expires_on=U),format:o.appSetting.date_format,placeholder:e.$t("payment_transaction.no_date_selected"),valueFormat:"YYYY-MM-DD",style:{width:"100%"},disabled:!0},null,8,["value","format","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title","onOk","width"])],64)}const mo=H(io,[["render",uo]]),_o={props:["offlineRequest"],emits:["success"],components:{CloseCircleOutlined:Re,InfoCircleOutlined:nt},setup(e,{emit:n}){const{appSetting:f,dayjsObject:o}=ee(),{t:w}=te(),$=I(!1),{addEditRequestAdmin:_,loading:i,rules:u}=oe(),d=I({offline_request_id:void 0});return G(()=>{d.value={offline_request_id:e.offlineRequest.xid}}),{appSetting:f,visible:$,loading:i,rules:u,formData:d,onClose:()=>{u.value={},$.value=!1},onSubmit:()=>{_({url:"superadmin/offline-requests/reject",data:d.value,successMessage:w("offline_request.request_rejected_successfully"),success:m=>{n("success",!0)}})},showModal:()=>{$.value=!0}}}},po={style:{color:"#7676e3"}};function co(e,n,f,o,w,$){const _=l("CloseCircleOutlined"),i=l("a-button"),u=l("a-tooltip"),d=l("InfoCircleOutlined"),c=l("a-space"),h=l("a-result"),D=l("a-modal");return p(),q(z,null,[t(u,{title:e.$t("offline_request.reject_request"),onClick:o.showModal},{default:a(()=>[t(i,{type:"primary",style:{"background-color":"#f50","border-color":"#f50"}},{icon:a(()=>[t(_)]),_:1})]),_:1},8,["title","onClick"]),t(D,{open:o.visible,"onUpdate:open":n[0]||(n[0]=m=>o.visible=m),maskClosable:!1,footer:null,centered:""},{default:a(()=>[t(h,null,{title:a(()=>[M("span",po,s(e.$t("offline_request.are_you_sure_reject_request")),1)]),icon:a(()=>[t(d)]),extra:a(()=>[t(c,null,{default:a(()=>[t(i,{type:"primary",style:{backgroundColor:"#52c41a",border:"#52c41a"},onClick:o.onClose},{default:a(()=>[r(s(e.$t("common.no")),1)]),_:1},8,["onClick"]),t(i,{type:"primary",style:{backgroundColor:"#ff4d4f",border:"#ff4d4f"},onClick:o.onSubmit,loading:o.loading},{default:a(()=>[r(s(e.$t("offline_request.yes_rejected")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1},8,["open"])],64)}const fo=H(_o,[["render",co]]),go={components:{SuperAdminPageHeader:Z,OfflineRequestStatus:Sa,ApproveRequest:mo,RejectRequest:fo,ClockCircleOutlined:sa,CloseCircleOutlined:Re,CheckCircleOutlined:Ce,EyeOutlined:ae},setup(){const{formatDateTime:e}=ee(),{url:n,columns:f,filterableColumns:o,hashableColumns:w}=ro(),{table:$,tableUrl:_,fetch:i,handleTableChange:u,onTableSearch:d,hashable:c}=Pe(),h=I({status:"pending",company_id:void 0,subscription_plan_id:void 0,offline_payment_mode_id:void 0}),D=I([]),m=I([]),g=I([]);G(()=>{S(),v()});const S=()=>{const k=axiosAdmin.get("superadmin/companies?fields=id,xid,name&limit=10000"),C=axiosAdmin.get("superadmin/subscription-plans?fields=id,xid,name&limit=10000"),y=axiosAdmin.get("superadmin/offline-payment-modes?fields=id,xid,name&limit=10000");Promise.all([k,C,y]).then(([b,U,O])=>{D.value=b.data,m.value=U.data,g.value=O.data})},v=()=>{_.value={url:n,filters:h},$.filterableColumns=o,c.value=[...w],i({page:1})};return{table:$,handleTableChange:u,onTableSearch:d,columns:f,filterableColumns:o,formatDateTime:e,filters:h,setUrlData:v,companies:D,subscriptionPlans:m,paymentModes:g}}},bo={class:"table-responsive"},yo=["href"];function ho(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("a-select-option"),D=l("a-select"),m=l("a-col"),g=l("a-row"),S=l("admin-page-filters"),v=l("ClockCircleOutlined"),k=l("a-tab-pane"),C=l("CheckCircleOutlined"),y=l("CloseCircleOutlined"),b=l("a-tabs"),U=l("OfflineRequestStatus"),O=l("EyeOutlined"),P=l("a-button"),T=l("a-tooltip"),L=l("ApproveRequest"),V=l("RejectRequest"),B=l("a-space"),N=l("a-table"),K=l("admin-page-table-content");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.offline_requests"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.offline_requests")),1)]),_:1})]),_:1})]),_:1}),t(S,null,{default:a(()=>[t(g,{gutter:[16,16]},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(g,{gutter:[16,16],justify:"end"},{default:a(()=>[t(m,{xs:24,sm:24,md:8,lg:6,xl:4},{default:a(()=>[t(D,{value:o.filters.company_id,"onUpdate:value":n[0]||(n[0]=E=>o.filters.company_id=E),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.company")]),allowClear:!0,style:{width:"100%"},optionFilterProp:"title","show-search":"",onChange:o.setUrlData},{default:a(()=>[(p(!0),q(z,null,X(o.companies,E=>(p(),A(h,{key:E.xid,title:E.name,value:E.xid},{default:a(()=>[r(s(E.name),1)]),_:2},1032,["title","value"]))),128))]),_:1},8,["value","placeholder","onChange"])]),_:1}),t(m,{xs:24,sm:24,md:8,lg:6,xl:4},{default:a(()=>[t(D,{value:o.filters.subscription_plan_id,"onUpdate:value":n[1]||(n[1]=E=>o.filters.subscription_plan_id=E),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.subscription_plan")]),allowClear:!0,style:{width:"100%"},optionFilterProp:"title","show-search":"",onChange:o.setUrlData},{default:a(()=>[(p(!0),q(z,null,X(o.subscriptionPlans,E=>(p(),A(h,{key:E.xid,title:E.name,value:E.xid},{default:a(()=>[r(s(E.name),1)]),_:2},1032,["title","value"]))),128))]),_:1},8,["value","placeholder","onChange"])]),_:1}),t(m,{xs:24,sm:24,md:8,lg:6,xl:4},{default:a(()=>[t(D,{value:o.filters.offline_payment_mode_id,"onUpdate:value":n[2]||(n[2]=E=>o.filters.offline_payment_mode_id=E),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.payment_mode")]),allowClear:!0,style:{width:"100%"},optionFilterProp:"title","show-search":"",onChange:o.setUrlData},{default:a(()=>[(p(!0),q(z,null,X(o.paymentModes,E=>(p(),A(h,{key:E.xid,title:E.name,value:E.xid},{default:a(()=>[r(s(E.name),1)]),_:2},1032,["title","value"]))),128))]),_:1},8,["value","placeholder","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(K,null,{default:a(()=>[t(g,null,{default:a(()=>[t(m,{span:24},{default:a(()=>[t(b,{activeKey:o.filters.status,"onUpdate:activeKey":n[3]||(n[3]=E=>o.filters.status=E),onChange:o.setUrlData},{default:a(()=>[t(k,{key:"pending"},{tab:a(()=>[M("span",null,[t(v),r(" "+s(e.$t("offline_request.pending")),1)])]),_:1}),t(k,{key:"approved"},{tab:a(()=>[M("span",null,[t(C),r(" "+s(e.$t("offline_request.approved")),1)])]),_:1}),t(k,{key:"rejected"},{tab:a(()=>[M("span",null,[t(y),r(" "+s(e.$t("offline_request.rejected")),1)])]),_:1})]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1}),t(g,null,{default:a(()=>[t(m,{span:24},{default:a(()=>[M("div",bo,[t(N,{columns:o.columns,"row-key":E=>E.xid,"data-source":o.table.data,pagination:o.table.pagination,loading:o.table.loading,onChange:o.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:E,record:F})=>[E.dataIndex==="company"?(p(),q(z,{key:0},[r(s(F.company&&F.company.name?F.company.name:"-"),1)],64)):R("",!0),E.dataIndex==="submitted_on"?(p(),q(z,{key:1},[r(s(o.formatDateTime(F.created_at)),1)],64)):R("",!0),E.dataIndex==="subscription_plan"?(p(),q(z,{key:2},[r(s(F.subscription_plan&&F.subscription_plan.name?F.subscription_plan.name:"-"),1)],64)):R("",!0),E.dataIndex==="plan_type"?(p(),q(z,{key:3},[r(s(e.$t(`subscription_plans.${F.plan_type}`)),1)],64)):R("",!0),E.dataIndex==="payment_method"?(p(),q(z,{key:4},[r(s(F.offline_payment_mode&&F.offline_payment_mode.name?F.offline_payment_mode.name:"-"),1)],64)):R("",!0),E.dataIndex==="submitted_by"?(p(),q(z,{key:5},[r(s(F.submittor&&F.submittor.name?F.submittor.name:"-"),1)],64)):R("",!0),E.dataIndex==="status"?(p(),A(U,{key:6,status:F.status},null,8,["status"])):R("",!0),E.dataIndex==="action"?(p(),A(B,{key:7},{default:a(()=>[t(T,{title:e.$t("offline_request.view_proof_document")},{default:a(()=>[M("a",{href:F.proof_document_url,target:"_blank"},[t(P,{type:"primary"},{icon:a(()=>[t(O)]),_:1})],8,yo)]),_:2},1032,["title"]),F.status=="pending"?(p(),A(L,{key:0,offlineRequest:F,onSuccess:o.setUrlData},null,8,["offlineRequest","onSuccess"])):R("",!0),F.status=="pending"?(p(),A(V,{key:1,offlineRequest:F,onSuccess:o.setUrlData},null,8,["offlineRequest","onSuccess"])):R("",!0)]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})],64)}const vo=H(go,[["render",ho]]),ko=[{path:"/",component:be,children:[{path:"/superadmin/payment-transactions",component:so,name:"superadmin.payment_transactions.index",meta:{requireAuth:!0,menuParent:"payment_transactions",menuKey:e=>"payment_transactions",permission:"superadmin"}},{path:"/superadmin/offline-requests",component:vo,name:"superadmin.offline_requests.index",meta:{requireAuth:!0,menuParent:"offline_requests",menuKey:e=>"offline_requests",permission:"superadmin"}}]}],So=()=>{const e="superadmin/users?fields=id,xid,name,email,phone,profile_image,profile_image_url,status",n="superadmin/users",{t:f}=te(),o={name:"",email:"",phone:"",address:"",profile_image:void 0,profile_image_url:void 0,status:"enabled"},w=[{title:f("user.name"),dataIndex:"name"},{title:f("user.email"),dataIndex:"email"},{title:f("common.status"),dataIndex:"status"},{title:f("common.action"),dataIndex:"action"}],$=[{key:"name",value:f("user.name")}];return{url:e,addEditUrl:n,initData:o,columns:w,filterableColumns:$}},$o=le({props:["formData","data","visible","url","addEditType","pageTitle","successMessage"],components:{PlusOutlined:Y,LoadingOutlined:Se,SaveOutlined:Q,Upload:se,FormItemHeading:_e},setup(e,{emit:n}){const{addEditRequestAdmin:f,loading:o,rules:w}=oe();return{loading:o,rules:w,onClose:()=>{w.value={},n("closed")},onSubmit:()=>{f({url:e.url,data:e.formData,successMessage:e.successMessage,success:i=>{n("addEditSuccess",i.xid)}})},drawerWidth:window.innerWidth<=991?"90%":"45%"}}});function wo(e,n,f,o,w,$){const _=l("Upload"),i=l("a-form-item"),u=l("a-col"),d=l("a-input"),c=l("a-row"),h=l("a-input-password"),D=l("a-select-option"),m=l("a-select"),g=l("a-form"),S=l("SaveOutlined"),v=l("a-button"),k=l("a-space"),C=l("a-drawer");return p(),A(C,{title:e.pageTitle,width:e.drawerWidth,open:e.visible,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},maskClosable:!1,onClose:e.onClose},{footer:a(()=>[t(k,null,{default:a(()=>[t(v,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(S)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(v,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),_:1})]),default:a(()=>[t(g,{layout:"vertical"},{default:a(()=>[t(c,null,{default:a(()=>[t(u,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(i,{label:e.$t("user.profile_image"),name:"profile_image",help:e.rules.profile_image?e.rules.profile_image.message:null,validateStatus:e.rules.profile_image?"error":null},{default:a(()=>[t(_,{formData:e.formData,folder:"user",imageField:"profile_image",onOnFileUploaded:n[0]||(n[0]=y=>{e.formData.profile_image=y.file,e.formData.profile_image_url=y.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:18,lg:18},{default:a(()=>[t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("user.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.name,"onUpdate:value":n[1]||(n[1]=y=>e.formData.name=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("user.email"),name:"email",help:e.rules.email?e.rules.email.message:null,validateStatus:e.rules.email?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.email,"onUpdate:value":n[2]||(n[2]=y=>e.formData.email=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(i,{label:e.$t("user.phone"),name:"phone",help:e.rules.phone?e.rules.phone.message:null,validateStatus:e.rules.phone?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.phone,"onUpdate:value":n[3]||(n[3]=y=>e.formData.phone=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.phone")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(u,{span:24},{default:a(()=>[t(i,{label:e.$t("user.password"),name:"password",help:e.rules.password?e.rules.password.message:null,validateStatus:e.rules.password?"error":null,class:"required"},{default:a(()=>[t(h,{value:e.formData.password,"onUpdate:value":n[4]||(n[4]=y=>e.formData.password=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.password")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(u,{span:24},{default:a(()=>[t(i,{label:e.$t("user.status"),name:"status",help:e.rules.status?e.rules.status.message:null,validateStatus:e.rules.status?"error":null,class:"required"},{default:a(()=>[t(m,{value:e.formData.status,"onUpdate:value":n[5]||(n[5]=y=>e.formData.status=y),placeholder:e.$t("common.select_default_text",[e.$t("user.status")]),allowClear:!0},{default:a(()=>[t(D,{value:"enabled"},{default:a(()=>[r(s(e.$t("common.enabled")),1)]),_:1}),t(D,{value:"disabled"},{default:a(()=>[r(s(e.$t("common.disabled")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["title","width","open","onClose"])}const Do=H($o,[["render",wo]]);const Co={components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,AddEdit:Do,SuperAdminPageHeader:Z},setup(){const{url:e,addEditUrl:n,initData:f,columns:o,filterableColumns:w}=So(),$=Ue(),{permsArray:_,formatDate:i,statusColors:u,globalSetting:d,user:c}=ee();G(()=>{h()});const h=()=>{$.tableUrl.value={url:e},$.table.filterableColumns=w,$.fetch({page:1}),$.crudUrl.value=n,$.langKey.value="superadmin",$.initData.value={...f},$.formData.value={...f}};return{statusColors:u,globalSetting:d,user:c,columns:o,filterableColumns:w,permsArray:_,...$,setUrlData:h,formatDate:i}}},Oo={class:"table-responsive"};function Uo(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("PlusOutlined"),D=l("a-button"),m=l("DeleteOutlined"),g=l("a-space"),S=l("a-col"),v=l("a-select-option"),k=l("a-select"),C=l("a-input-search"),y=l("a-input-group"),b=l("a-row"),U=l("admin-page-filters"),O=l("AddEdit"),P=l("a-avatar"),T=l("a-badge"),L=l("a-tag"),V=l("EditOutlined"),B=l("a-table"),N=l("admin-page-table-content");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.superadmins"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.superadmins")),1)]),_:1})]),_:1})]),_:1}),t(U,null,{default:a(()=>[t(b,{gutter:[16,16]},{default:a(()=>[t(S,{xs:24,sm:24,md:12,lg:10,xl:10},{default:a(()=>[t(g,null,{default:a(()=>[t(D,{type:"primary",onClick:e.addItem},{default:a(()=>[t(h),r(" "+s(e.$t("superadmin.add")),1)]),_:1},8,["onClick"]),e.table.selectedRowKeys.length>0?(p(),A(D,{key:0,type:"primary",onClick:e.showSelectedDeleteConfirm,danger:""},{icon:a(()=>[t(m)]),default:a(()=>[r(" "+s(e.$t("common.delete")),1)]),_:1},8,["onClick"])):R("",!0)]),_:1})]),_:1}),t(S,{xs:24,sm:24,md:12,lg:14,xl:14},{default:a(()=>[t(b,{gutter:[16,16],justify:"end"},{default:a(()=>[t(S,{xs:24,sm:24,md:16,lg:12,xl:10},{default:a(()=>[t(y,{compact:""},{default:a(()=>[t(k,{style:{width:"25%"},value:e.table.searchColumn,"onUpdate:value":n[0]||(n[0]=K=>e.table.searchColumn=K),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(p(!0),q(z,null,X(o.filterableColumns,K=>(p(),A(v,{key:K.key},{default:a(()=>[r(s(K.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(C,{style:{width:"75%"},value:e.table.searchString,"onUpdate:value":n[1]||(n[1]=K=>e.table.searchString=K),"show-search":"",onChange:e.onTableSearch,onSearch:e.onTableSearch,loading:e.table.filterLoading},null,8,["value","onChange","onSearch","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(N,null,{default:a(()=>[t(O,{addEditType:e.addEditType,visible:e.addEditVisible,url:e.addEditUrl,onAddEditSuccess:e.addEditSuccess,onClosed:e.onCloseAddEdit,formData:e.formData,data:e.viewData,pageTitle:e.pageTitle,successMessage:e.successMessage},null,8,["addEditType","visible","url","onAddEditSuccess","onClosed","formData","data","pageTitle","successMessage"]),t(b,null,{default:a(()=>[t(S,{span:24},{default:a(()=>[M("div",Oo,[t(B,{"row-selection":{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:K=>({disabled:!(o.globalSetting.x_admin_id!=K.xid&&o.user.xid!=K.xid),name:K.xid})},columns:o.columns,"row-key":K=>K.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:K,text:E,record:F})=>[K.dataIndex==="name"?(p(),A(T,{key:0},{default:a(()=>[t(P,{size:30,src:F.profile_image_url},null,8,["src"]),r(" "+s(F.name),1)]),_:2},1024)):R("",!0),K.dataIndex==="status"?(p(),A(L,{key:1,color:o.statusColors[E]},{default:a(()=>[r(s(e.$t(`common.${E}`)),1)]),_:2},1032,["color"])):R("",!0),K.dataIndex==="action"?(p(),q(z,{key:2},[t(D,{type:"primary",onClick:W=>e.editItem(F),style:{"margin-left":"4px"}},{icon:a(()=>[t(V)]),_:2},1032,["onClick"]),o.globalSetting.x_admin_id!=F.xid&&o.user.xid!=F.xid?(p(),A(D,{key:0,type:"primary",onClick:W=>e.showDeleteConfirm(F.xid),style:{"margin-left":"4px"}},{icon:a(()=>[t(m)]),_:2},1032,["onClick"])):R("",!0)],64)):R("",!0)]),_:1},8,["row-selection","columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})],64)}const Ao=H(Co,[["render",Uo]]),qo=[{path:"/",component:be,children:[{path:"/superadmin/users",component:Ao,name:"superadmin.users.index",meta:{requireAuth:!0,menuParent:"users",menuKey:"users",permission:"superadmin"}}]}];const Ko=le({setup(){const{appSetting:e,user:n,permsArray:f,appModules:o}=ee(),w=De();ie();const $=I([]);return G(()=>{const _=typeof w.meta.menuKey=="function"?w.meta.menuKey(w):w.meta.menuKey;$.value=[_.replace("-","_")]}),re(w,(_,i)=>{const u=typeof _.meta.menuKey=="function"?_.meta.menuKey(_):_.meta.menuKey;$.value=[u.replace("-","_")]}),{permsArray:f,selectedKeys:$}}}),To={class:"setting-sidebar"};function Po(e,n,f,o,w,$){const _=l("a-menu-item"),i=l("a-menu"),u=l("perfect-scrollbar");return p(),q("div",To,[t(u,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:a(()=>[t(i,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[3]||(n[3]=d=>e.selectedKeys=d)},{default:a(()=>[t(_,{key:"subscription_plans",onClick:n[0]||(n[0]=d=>e.$router.push({name:"superadmin.subscriptions.plans.index"}))},{default:a(()=>[r(s(e.$t("menu.subscription_plans")),1)]),_:1}),t(_,{key:"offline_payment_modes",onClick:n[1]||(n[1]=d=>e.$router.push({name:"superadmin.subscriptions.offline_payment_modes.index"}))},{default:a(()=>[r(s(e.$t("menu.offline_payment_modes")),1)]),_:1}),t(_,{key:"stripe",onClick:n[2]||(n[2]=d=>e.$router.push({name:"superadmin.payment_settings.stripe.index"}))},{default:a(()=>[r(s(e.$t("menu.stripe")),1)]),_:1})]),_:1},8,["selectedKeys"])]),_:1})])}const ve=H(Ko,[["render",Po]]),zo={components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,CrownOutlined:ra,AddEdit:mt,SuperAdminPageHeader:Z,SubscriptionSidebar:ve},setup(){const{url:e,addEditUrl:n,initData:f,columns:o,filterableColumns:w}=_t(),$=Ue(),{formatAmountCurrency:_}=ee(),i=I(!1);G(()=>{u()});const u=()=>{$.tableUrl.value={url:e},$.table.filterableColumns=w,$.fetch({page:1}),$.crudUrl.value=n,$.langKey.value="subscription_plans",$.initData.value={...f},$.formData.value={...f}};return{columns:o,filterableColumns:w,...$,setUrlData:u,formatAmountCurrency:_,trailPlanSetting:()=>{i.value=!0,axiosAdmin.get("superadmin/trial-plan").then(c=>{$.editItem(c.data.plan),i.value=!1})},loadingTrial:i}}},Eo={class:"table-responsive"},Io={key:1};function Fo(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SubscriptionSidebar"),D=l("a-col"),m=l("PlusOutlined"),g=l("a-button"),S=l("CrownOutlined"),v=l("DeleteOutlined"),k=l("a-space"),C=l("a-select-option"),y=l("a-select"),b=l("a-input-search"),U=l("a-input-group"),O=l("a-row"),P=l("admin-page-filters"),T=l("AddEdit"),L=l("a-descriptions-item"),V=l("a-descriptions"),B=l("EditOutlined"),N=l("a-table"),K=l("admin-page-table-content");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.subscription_plans"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.subscriptions")),1)]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.subscription_plans")),1)]),_:1})]),_:1})]),_:1}),t(O,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(P,null,{default:a(()=>[t(O,{gutter:[16,16]},{default:a(()=>[t(D,{xs:24,sm:24,md:12,lg:10,xl:10},{default:a(()=>[t(k,null,{default:a(()=>[t(g,{type:"primary",onClick:e.addItem},{default:a(()=>[t(m),r(" "+s(e.$t("subscription_plans.add")),1)]),_:1},8,["onClick"]),t(g,{type:"primary",onClick:o.trailPlanSetting,loading:o.loadingTrial},{default:a(()=>[t(S),r(" "+s(e.$t("subscription_plans.free_trail_settings")),1)]),_:1},8,["onClick","loading"]),e.table.selectedRowKeys.length>0?(p(),A(g,{key:0,type:"primary",onClick:e.showSelectedDeleteConfirm,danger:""},{icon:a(()=>[t(v)]),default:a(()=>[r(" "+s(e.$t("common.delete")),1)]),_:1},8,["onClick"])):R("",!0)]),_:1})]),_:1}),t(D,{xs:24,sm:24,md:12,lg:14,xl:14},{default:a(()=>[t(O,{gutter:[16,16],justify:"end"},{default:a(()=>[t(D,{xs:24,sm:24,md:16,lg:12,xl:10},{default:a(()=>[t(U,{compact:""},{default:a(()=>[t(y,{style:{width:"25%"},value:e.table.searchColumn,"onUpdate:value":n[0]||(n[0]=E=>e.table.searchColumn=E),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(p(!0),q(z,null,X(o.filterableColumns,E=>(p(),A(C,{key:E.key},{default:a(()=>[r(s(E.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(b,{style:{width:"75%"},value:e.table.searchString,"onUpdate:value":n[1]||(n[1]=E=>e.table.searchString=E),"show-search":"",onChange:e.onTableSearch,onSearch:e.onTableSearch,loading:e.table.filterLoading},null,8,["value","onChange","onSearch","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(K,null,{default:a(()=>[t(T,{addEditType:e.addEditType,visible:e.addEditVisible,url:e.addEditUrl,onAddEditSuccess:e.addEditSuccess,onClosed:e.onCloseAddEdit,formData:e.formData,data:e.viewData,pageTitle:e.pageTitle,successMessage:e.successMessage},null,8,["addEditType","visible","url","onAddEditSuccess","onClosed","formData","data","pageTitle","successMessage"]),t(O,null,{default:a(()=>[t(D,{span:24},{default:a(()=>[M("div",Eo,[t(N,{"row-selection":{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:E=>({disabled:E.default=="yes",name:E.xid})},columns:o.columns,"row-key":E=>E.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:E,record:F})=>[E.dataIndex==="pricing_details"?(p(),A(V,{key:0,column:1,size:"small"},{default:a(()=>[t(L,{label:e.$t("subscription_plans.monthly_price")},{default:a(()=>[r(s(o.formatAmountCurrency(F.monthly_price)),1)]),_:2},1032,["label"]),t(L,{label:e.$t("subscription_plans.annual_price")},{default:a(()=>[r(s(o.formatAmountCurrency(F.annual_price)),1)]),_:2},1032,["label"])]),_:2},1024)):R("",!0),E.dataIndex==="modules"?(p(),q("ul",Io,[(p(!0),q(z,null,X(F.modules,W=>(p(),q("li",{key:W},s(e.$t(`subscription_plans.${W}`)),1))),128))])):R("",!0),E.dataIndex==="action"?(p(),q(z,{key:2},[t(g,{type:"primary",onClick:W=>e.editItem(F),style:{"margin-left":"4px"}},{icon:a(()=>[t(B)]),_:2},1032,["onClick"]),F.default!="yes"?(p(),A(g,{key:0,type:"primary",onClick:W=>e.showDeleteConfirm(F.xid),style:{"margin-left":"4px"}},{icon:a(()=>[t(v)]),_:2},1032,["onClick"])):R("",!0)],64)):R("",!0)]),_:1},8,["row-selection","columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Mo=H(zo,[["render",Fo]]),Ro={components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,AddEdit:ct,SuperAdminPageHeader:Z,SubscriptionSidebar:ve},setup(){const{url:e,addEditUrl:n,initData:f,columns:o,filterableColumns:w}=ft(),$=Ue(),{formatAmountCurrency:_}=ee();G(()=>{i()});const i=()=>{$.tableUrl.value={url:e},$.table.filterableColumns=w,$.fetch({page:1}),$.crudUrl.value=n,$.langKey.value="offline_payment_mode",$.initData.value={...f},$.formData.value={...f}};return{columns:o,filterableColumns:w,...$,setUrlData:i,formatAmountCurrency:_}}},Ho={class:"table-responsive"};function Wo(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("SuperAdminPageHeader"),h=l("SubscriptionSidebar"),D=l("a-col"),m=l("PlusOutlined"),g=l("a-button"),S=l("DeleteOutlined"),v=l("a-space"),k=l("a-select-option"),C=l("a-select"),y=l("a-input-search"),b=l("a-input-group"),U=l("a-row"),O=l("admin-page-filters"),P=l("AddEdit"),T=l("EditOutlined"),L=l("a-table"),V=l("admin-page-table-content");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.offline_payment_modes"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.subscriptions")),1)]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.offline_payment_modes")),1)]),_:1})]),_:1})]),_:1}),t(U,null,{default:a(()=>[t(D,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(h)]),_:1}),t(D,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(O,null,{default:a(()=>[t(U,{gutter:[16,16]},{default:a(()=>[t(D,{xs:24,sm:24,md:12,lg:10,xl:10},{default:a(()=>[t(v,null,{default:a(()=>[t(g,{type:"primary",onClick:e.addItem},{default:a(()=>[t(m),r(" "+s(e.$t("offline_payment_mode.add")),1)]),_:1},8,["onClick"]),e.table.selectedRowKeys.length>0?(p(),A(g,{key:0,type:"primary",onClick:e.showSelectedDeleteConfirm,danger:""},{icon:a(()=>[t(S)]),default:a(()=>[r(" "+s(e.$t("common.delete")),1)]),_:1},8,["onClick"])):R("",!0)]),_:1})]),_:1}),t(D,{xs:24,sm:24,md:12,lg:14,xl:14},{default:a(()=>[t(U,{gutter:[16,16],justify:"end"},{default:a(()=>[t(D,{xs:24,sm:24,md:16,lg:12,xl:10},{default:a(()=>[t(b,{compact:""},{default:a(()=>[t(C,{style:{width:"25%"},value:e.table.searchColumn,"onUpdate:value":n[0]||(n[0]=B=>e.table.searchColumn=B),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(p(!0),q(z,null,X(o.filterableColumns,B=>(p(),A(k,{key:B.key},{default:a(()=>[r(s(B.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(y,{style:{width:"75%"},value:e.table.searchString,"onUpdate:value":n[1]||(n[1]=B=>e.table.searchString=B),"show-search":"",onChange:e.onTableSearch,onSearch:e.onTableSearch,loading:e.table.filterLoading},null,8,["value","onChange","onSearch","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(V,null,{default:a(()=>[t(P,{addEditType:e.addEditType,visible:e.addEditVisible,url:e.addEditUrl,onAddEditSuccess:e.addEditSuccess,onClosed:e.onCloseAddEdit,formData:e.formData,data:e.viewData,pageTitle:e.pageTitle,successMessage:e.successMessage},null,8,["addEditType","visible","url","onAddEditSuccess","onClosed","formData","data","pageTitle","successMessage"]),t(U,null,{default:a(()=>[t(D,{span:24},{default:a(()=>[M("div",Ho,[t(L,{"row-selection":{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:B=>({disabled:!1,name:B.xid})},columns:o.columns,"row-key":B=>B.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:B,record:N})=>[B.dataIndex==="action"?(p(),q(z,{key:0},[t(g,{type:"primary",onClick:K=>e.editItem(N),style:{"margin-left":"4px"}},{icon:a(()=>[t(T)]),_:2},1032,["onClick"]),N.default!="yes"?(p(),A(g,{key:0,type:"primary",onClick:K=>e.showDeleteConfirm(N.xid),style:{"margin-left":"4px"}},{icon:a(()=>[t(S)]),_:2},1032,["onClick"])):R("",!0)],64)):R("",!0)]),_:1},8,["row-selection","columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Bo=H(Ro,[["render",Wo]]),Lo={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({}),$=I("");return G(()=>{axiosAdmin.get("superadmin/payment-settings/paypal").then(i=>{w.value=i.data.data,$.value=i.data.webhook_url})}),{loading:n,rules:f,formData:w,webhookUrl:$,onSubmit:()=>{e({url:"superadmin/payment-settings/paypal/update",data:w.value,successMessage:o("payment_settings.credential_saved"),success:i=>{}})}}}},Vo=M("br",null,null,-1),jo={class:"small-text-message"};function No(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),S=l("a-switch"),v=l("a-form-item"),k=l("a-row"),C=l("a-input"),y=l("a-select-option"),b=l("a-select"),U=l("a-typography-text"),O=l("a-form"),P=l("a-card"),T=l("admin-page-table-content");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("payment_settings.paypal_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.paypal")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(T,null,{default:a(()=>[t(P,{class:"page-content-container"},{default:a(()=>[t(O,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paypal_status"),name:"paypal_status",help:o.rules.paypal_status?o.rules.paypal_status.message:null,validateStatus:o.rules.paypal_status?"error":null,class:"required"},{default:a(()=>[t(S,{checked:o.formData.paypal_status,"onUpdate:checked":n[0]||(n[0]=L=>o.formData.paypal_status=L),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),o.formData.paypal_status=="active"?(p(),q(z,{key:0},[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paypal_client_id"),name:"paypal_client_id",help:o.rules.paypal_client_id?o.rules.paypal_client_id.message:null,validateStatus:o.rules.paypal_client_id?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.paypal_client_id,"onUpdate:value":n[1]||(n[1]=L=>o.formData.paypal_client_id=L),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.paypal_client_id")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paypal_secret"),name:"paypal_secret",help:o.rules.paypal_secret?o.rules.paypal_secret.message:null,validateStatus:o.rules.paypal_secret?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.paypal_secret,"onUpdate:value":n[2]||(n[2]=L=>o.formData.paypal_secret=L),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.paypal_secret")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paypal_mode"),name:"paypal_mode",help:o.rules.paypal_mode?o.rules.paypal_mode.message:null,validateStatus:o.rules.paypal_mode?"error":null,class:"required"},{default:a(()=>[t(b,{value:o.formData.paypal_mode,"onUpdate:value":n[3]||(n[3]=L=>o.formData.paypal_mode=L),placeholder:e.$t("common.select_default_text",[e.$t("payment_settings.paypal_mode")])},{default:a(()=>[t(y,{key:"sandbox",value:"sandbox"},{default:a(()=>[r(s(e.$t("payment_settings.sandbox")),1)]),_:1}),t(y,{key:"live",value:"live"},{default:a(()=>[r(s(e.$t("payment_settings.live")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.webhook_url"),name:"webhook_url"},{default:a(()=>[t(U,{type:"success"},{default:a(()=>[r(s(o.webhookUrl),1)]),_:1}),Vo,M("small",jo,s(e.$t("user.password_blank")),1)]),_:1},8,["label"])]),_:1})]),_:1})],64)):R("",!0),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Yo=H(Lo,[["render",No]]),Go={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({}),$=I("");return G(()=>{axiosAdmin.get("superadmin/payment-settings/stripe").then(i=>{w.value=i.data.data,$.value=i.data.webhook_url})}),{loading:n,rules:f,formData:w,webhookUrl:$,onSubmit:()=>{e({url:"superadmin/payment-settings/stripe/update",data:w.value,successMessage:o("payment_settings.credential_saved"),success:i=>{}})}}}},Qo=M("br",null,null,-1),Xo={class:"small-text-message"};function Jo(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),S=l("a-switch"),v=l("a-form-item"),k=l("a-row"),C=l("a-input"),y=l("a-typography-text"),b=l("a-form"),U=l("a-card"),O=l("admin-page-table-content");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("payment_settings.stripe_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.stripe")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(O,null,{default:a(()=>[t(U,{class:"page-content-container mt-20 mb-20"},{default:a(()=>[t(b,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.stripe_status"),name:"stripe_status",help:o.rules.stripe_status?o.rules.stripe_status.message:null,validateStatus:o.rules.stripe_status?"error":null,class:"required"},{default:a(()=>[t(S,{checked:o.formData.stripe_status,"onUpdate:checked":n[0]||(n[0]=P=>o.formData.stripe_status=P),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),o.formData.stripe_status=="active"?(p(),q(z,{key:0},[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.stripe_api_key"),name:"stripe_api_key",help:o.rules.stripe_api_key?o.rules.stripe_api_key.message:null,validateStatus:o.rules.stripe_api_key?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.stripe_api_key,"onUpdate:value":n[1]||(n[1]=P=>o.formData.stripe_api_key=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.stripe_api_key")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.stripe_api_secret"),name:"stripe_api_secret",help:o.rules.stripe_api_secret?o.rules.stripe_api_secret.message:null,validateStatus:o.rules.stripe_api_secret?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.stripe_api_secret,"onUpdate:value":n[2]||(n[2]=P=>o.formData.stripe_api_secret=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.stripe_api_secret")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.stripe_webhook_key"),name:"stripe_webhook_key",help:o.rules.stripe_webhook_key?o.rules.stripe_webhook_key.message:null,validateStatus:o.rules.stripe_webhook_key?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.stripe_webhook_key,"onUpdate:value":n[3]||(n[3]=P=>o.formData.stripe_webhook_key=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.stripe_webhook_key")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.webhook_url"),name:"webhook_url"},{default:a(()=>[t(y,{type:"success"},{default:a(()=>[r(s(o.webhookUrl),1)]),_:1}),Qo,M("small",Xo,s(e.$t("payment_settings.stripe_webhook_message")),1)]),_:1},8,["label"])]),_:1})]),_:1})],64)):R("",!0),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Zo=H(Go,[["render",Jo]]),xo={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({}),$=I("");return G(()=>{axiosAdmin.get("superadmin/payment-settings/razorpay").then(i=>{w.value=i.data.data,$.value=i.data.webhook_url})}),{loading:n,rules:f,formData:w,webhookUrl:$,onSubmit:()=>{e({url:"superadmin/payment-settings/razorpay/update",data:w.value,successMessage:o("payment_settings.credential_saved"),success:i=>{}})}}}},es=M("br",null,null,-1),ts={class:"small-text-message"};function as(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),S=l("a-switch"),v=l("a-form-item"),k=l("a-row"),C=l("a-input"),y=l("a-typography-text"),b=l("a-form"),U=l("a-card");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("payment_settings.razorpay_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.razorpay")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(U,{class:"page-content-container"},{default:a(()=>[t(b,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.razorpay_status"),name:"razorpay_status",help:o.rules.razorpay_status?o.rules.razorpay_status.message:null,validateStatus:o.rules.razorpay_status?"error":null,class:"required"},{default:a(()=>[t(S,{checked:o.formData.razorpay_status,"onUpdate:checked":n[0]||(n[0]=O=>o.formData.razorpay_status=O),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),o.formData.razorpay_status=="active"?(p(),q(z,{key:0},[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.razorpay_key"),name:"razorpay_key",help:o.rules.razorpay_key?o.rules.razorpay_key.message:null,validateStatus:o.rules.razorpay_key?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.razorpay_key,"onUpdate:value":n[1]||(n[1]=O=>o.formData.razorpay_key=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.razorpay_key")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.razorpay_secret"),name:"razorpay_secret",help:o.rules.razorpay_secret?o.rules.razorpay_secret.message:null,validateStatus:o.rules.razorpay_secret?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.razorpay_secret,"onUpdate:value":n[2]||(n[2]=O=>o.formData.razorpay_secret=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.razorpay_secret")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.razorpay_webhook_secret"),name:"razorpay_webhook_secret",help:o.rules.razorpay_webhook_secret?o.rules.razorpay_webhook_secret.message:null,validateStatus:o.rules.razorpay_webhook_secret?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.razorpay_webhook_secret,"onUpdate:value":n[3]||(n[3]=O=>o.formData.razorpay_webhook_secret=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.razorpay_webhook_secret")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.webhook_url"),name:"webhook_url"},{default:a(()=>[t(y,{type:"success"},{default:a(()=>[r(s(o.webhookUrl),1)]),_:1}),es,M("small",ts,s(e.$t("user.password_blank")),1)]),_:1},8,["label"])]),_:1})]),_:1})],64)):R("",!0),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const ls=H(xo,[["render",as]]),ns={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({}),$=I(""),_=I("");return G(()=>{axiosAdmin.get("superadmin/payment-settings/paystack").then(u=>{w.value=u.data.data,$.value=u.data.webhook_url,_.value=u.data.callback_url})}),{loading:n,rules:f,formData:w,webhookUrl:$,callbackUrl:_,onSubmit:()=>{e({url:"superadmin/payment-settings/paystack/update",data:w.value,successMessage:o("payment_settings.credential_saved"),success:u=>{}})}}}},os=M("br",null,null,-1),ss={class:"small-text-message"},rs=M("br",null,null,-1),is={class:"small-text-message"};function us(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),S=l("a-switch"),v=l("a-form-item"),k=l("a-row"),C=l("a-input"),y=l("a-typography-text"),b=l("a-form"),U=l("a-card");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("payment_settings.paystack_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.paystack")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(U,{class:"page-content-container"},{default:a(()=>[t(b,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paystack_status"),name:"paystack_status",help:o.rules.name?o.rules.paystack_status.message:null,validateStatus:o.rules.paystack_status?"error":null,class:"required"},{default:a(()=>[t(S,{checked:o.formData.paystack_status,"onUpdate:checked":n[0]||(n[0]=O=>o.formData.paystack_status=O),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),o.formData.paystack_status=="active"?(p(),q(z,{key:0},[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paystack_client_id"),name:"paystack_client_id",help:o.rules.paystack_client_id?o.rules.paystack_client_id.message:null,validateStatus:o.rules.paystack_client_id?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.paystack_client_id,"onUpdate:value":n[1]||(n[1]=O=>o.formData.paystack_client_id=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.paystack_client_id")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.paystack_secret"),name:"paystack_secret",help:o.rules.paystack_secret?o.rules.paystack_secret.message:null,validateStatus:o.rules.paystack_secret?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.paystack_secret,"onUpdate:value":n[2]||(n[2]=O=>o.formData.paystack_secret=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.paystack_secret")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("payment_settings.paystack_merchant_email"),name:"paystack_merchant_email",help:o.rules.paystack_merchant_email?o.rules.paystack_merchant_email.message:null,validateStatus:o.rules.paystack_merchant_email?"error":null,class:"required"},{default:a(()=>[t(C,{value:o.formData.paystack_merchant_email,"onUpdate:value":n[3]||(n[3]=O=>o.formData.paystack_merchant_email=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.paystack_merchant_email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.webhook_url"),name:"webhook_url"},{default:a(()=>[t(y,{type:"success"},{default:a(()=>[r(s(o.webhookUrl),1)]),_:1}),os,M("small",ss,s(e.$t("user.password_blank")),1)]),_:1},8,["label"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.callback_url"),name:"callback_url"},{default:a(()=>[t(y,{type:"success"},{default:a(()=>[r(s(o.callbackUrl),1)]),_:1}),rs,M("small",is,s(e.$t("user.password_blank")),1)]),_:1},8,["label"])]),_:1})]),_:1})],64)):R("",!0),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const ds=H(ns,[["render",us]]),ms={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({});return G(()=>{axiosAdmin.get("superadmin/payment-settings/mollie").then(_=>{w.value=_.data.data})}),{loading:n,rules:f,formData:w,onSubmit:()=>{e({url:"superadmin/payment-settings/mollie/update",data:w.value,successMessage:o("payment_settings.credential_saved"),success:_=>{}})}}}};function _s(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),S=l("a-input"),v=l("a-form-item"),k=l("a-row"),C=l("a-switch"),y=l("a-form"),b=l("a-card");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("payment_settings.mollie_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.mollie")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(b,{class:"page-content-container"},{default:a(()=>[t(y,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("payment_settings.mollie_api_key"),name:"mollie_api_key",help:o.rules.mollie_api_key?o.rules.mollie_api_key.message:null,validateStatus:o.rules.mollie_api_key?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.mollie_api_key,"onUpdate:value":n[0]||(n[0]=U=>o.formData.mollie_api_key=U),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.mollie_api_key")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.mollie_status"),name:"mollie_status",help:o.rules.mollie_status?o.rules.mollie_status.message:null,validateStatus:o.rules.mollie_status?"error":null,class:"required"},{default:a(()=>[t(C,{checked:o.formData.mollie_status,"onUpdate:checked":n[1]||(n[1]=U=>o.formData.mollie_status=U),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const ps=H(ms,[["render",_s]]),cs={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:Z},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({}),$=I("");return G(()=>{axiosAdmin.get("superadmin/payment-settings/authorize").then(i=>{w.value=i.data.data,$.value=i.data.webhook_url})}),{loading:n,rules:f,formData:w,webhookUrl:$,onSubmit:()=>{e({url:"superadmin/payment-settings/authorize/update",data:w.value,successMessage:o("payment_settings.credential_saved"),success:i=>{}})}}}},fs=M("br",null,null,-1),gs={class:"small-text-message"};function bs(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),c=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),S=l("a-input"),v=l("a-form-item"),k=l("a-row"),C=l("a-select-option"),y=l("a-select"),b=l("a-typography-text"),U=l("a-switch"),O=l("a-form"),P=l("a-card");return p(),q(z,null,[t(D,null,{header:a(()=>[t(u,{title:e.$t("payment_settings.authorize_settings"),class:"p-0"},{extra:a(()=>[t(i,{type:"primary",onClick:o.onSubmit},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t(h,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(c,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(c,null,{default:a(()=>[r(s(e.$t("menu.authorize")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(m)]),_:1}),t(g,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(P,{class:"page-content-container"},{default:a(()=>[t(O,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.authorize_api_login_id"),name:"authorize_api_login_id",help:o.rules.authorize_api_login_id?o.rules.authorize_api_login_id.message:null,validateStatus:o.rules.authorize_api_login_id?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.authorize_api_login_id,"onUpdate:value":n[0]||(n[0]=T=>o.formData.authorize_api_login_id=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.authorize_api_login_id")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.authorize_transaction_key"),name:"authorize_transaction_key",help:o.rules.authorize_transaction_key?o.rules.authorize_transaction_key.message:null,validateStatus:o.rules.authorize_transaction_key?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.authorize_transaction_key,"onUpdate:value":n[1]||(n[1]=T=>o.formData.authorize_transaction_key=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.authorize_transaction_key")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{span:24},{default:a(()=>[t(v,{label:e.$t("payment_settings.authorize_signature_key"),name:"authorize_signature_key",help:o.rules.authorize_signature_key?o.rules.authorize_signature_key.message:null,validateStatus:o.rules.authorize_signature_key?"error":null,class:"required"},{default:a(()=>[t(S,{value:o.formData.authorize_signature_key,"onUpdate:value":n[2]||(n[2]=T=>o.formData.authorize_signature_key=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("payment_settings.authorize_signature_key")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.authorize_environment"),name:"authorize_environment",help:o.rules.authorize_environment?o.rules.authorize_environment.message:null,validateStatus:o.rules.authorize_environment?"error":null,class:"required"},{default:a(()=>[t(y,{value:o.formData.authorize_environment,"onUpdate:value":n[3]||(n[3]=T=>o.formData.authorize_environment=T),placeholder:e.$t("payment_settings.authorize_environment")},{default:a(()=>[t(C,{key:"sandbox",value:"sandbox"},{default:a(()=>[r(s(e.$t("payment_settings.sandbox")),1)]),_:1}),t(C,{key:"live",value:"live"},{default:a(()=>[r(s(e.$t("payment_settings.live")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.webhook_url"),name:"webhook_url"},{default:a(()=>[t(b,{type:"success"},{default:a(()=>[r(s(o.webhookUrl),1)]),_:1}),fs,M("small",gs,s(e.$t("user.password_blank")),1)]),_:1},8,["label"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("payment_settings.authorize_status"),name:"authorize_status",help:o.rules.name?o.rules.authorize_status.message:null,validateStatus:o.rules.authorize_status?"error":null,class:"required"},{default:a(()=>[t(U,{checked:o.formData.authorize_status,"onUpdate:checked":n[4]||(n[4]=T=>o.formData.authorize_status=T),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(g,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(i,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const ys=H(cs,[["render",bs]]),hs=[{path:"/subscriptions",component:be,children:[{path:"plans",component:Mo,name:"superadmin.subscriptions.plans.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:"subscription_plans",permission:"superadmin"}},{path:"offline-payment-modes",component:Bo,name:"superadmin.subscriptions.offline_payment_modes.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:"offline_payment_modes",permission:"superadmin"}},{path:"paypal",component:Yo,name:"superadmin.payment_settings.paypal.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"paypal",permission:"superadmin"}},{path:"stripe",component:Zo,name:"superadmin.payment_settings.stripe.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"stripe",permission:"superadmin"}},{path:"razorpay",component:ls,name:"superadmin.payment_settings.razorpay.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"razorpay",permission:"superadmin"}},{path:"paystack",component:ds,name:"superadmin.payment_settings.paystack.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"paystack",permission:"superadmin"}},{path:"mollie",component:ps,name:"superadmin.payment_settings.mollie.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"mollie",permission:"superadmin"}},{path:"authorize",component:ys,name:"superadmin.payment_settings.authorize.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"authorize",permission:"superadmin"}}]}],ce=()=>{const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{t:o}=te(),w=I({}),$=ie(),_=I("en"),i=I(["basic_text"]);G(()=>{u(_.value)});const u=c=>{axiosAdmin.get(`superadmin/website-settings/website?lang_key=${c}`).then(h=>{const D=h.data.data;w.value={...D,lang_key:c}})},d=()=>{e({url:"superadmin/website-settings/website/update",data:w.value,successMessage:o("website_settings.setting_saved"),success:c=>{}})};return{loading:n,rules:f,formData:w,allLangs:Ae(()=>$.state.auth.allLangs),activeKey:_,subTabActiveKey:i,onSubmit:d,langChanged:u}};const vs=le({components:{GlobalOutlined:Xe,TeamOutlined:Ge,MessageOutlined:ia,ProfileOutlined:ua,ContactsOutlined:Je,MoneyCollectOutlined:da,QuestionCircleOutlined:ma,PicCenterOutlined:_a,TrophyOutlined:pa,CodeOutlined:ca,FileSearchOutlined:fa},setup(){const{appSetting:e,user:n,permsArray:f,appModules:o}=ee(),w=De();ie();const $=I([]);return G(()=>{const _=typeof w.meta.menuKey=="function"?w.meta.menuKey(w):w.meta.menuKey;$.value=[_.replace("-","_")]}),re(w,(_,i)=>{const u=typeof _.meta.menuKey=="function"?_.meta.menuKey(_):_.meta.menuKey;$.value=[u.replace("-","_")]}),{permsArray:f,selectedKeys:$}}}),ks={class:"setting-sidebar"};function Ss(e,n,f,o,w,$){const _=l("GlobalOutlined"),i=l("a-menu-item"),u=l("TeamOutlined"),d=l("MessageOutlined"),c=l("ProfileOutlined"),h=l("ContactsOutlined"),D=l("MoneyCollectOutlined"),m=l("QuestionCircleOutlined"),g=l("PicCenterOutlined"),S=l("CodeOutlined"),v=l("FileSearchOutlined"),k=l("TrophyOutlined"),C=l("a-menu"),y=l("perfect-scrollbar");return p(),q("div",ks,[t(y,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:a(()=>[t(C,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[11]||(n[11]=b=>e.selectedKeys=b)},{default:a(()=>[t(i,{key:"website_header_settings",onClick:n[0]||(n[0]=b=>e.$router.push({name:"superadmin.website_settings.header.index"}))},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("menu.website_header_settings")),1)]),_:1}),t(i,{key:"website_clients_settings",onClick:n[1]||(n[1]=b=>e.$router.push({name:"superadmin.website_settings.clients.index"}))},{icon:a(()=>[t(u)]),default:a(()=>[r(" "+s(e.$t("menu.website_clients_settings")),1)]),_:1}),t(i,{key:"website_testimonials_settings",onClick:n[2]||(n[2]=b=>e.$router.push({name:"superadmin.website_settings.testimonials.index"}))},{icon:a(()=>[t(d)]),default:a(()=>[r(" "+s(e.$t("menu.website_testimonials_settings")),1)]),_:1}),t(i,{key:"website_features_settings",onClick:n[3]||(n[3]=b=>e.$router.push({name:"superadmin.website_settings.features.index"}))},{icon:a(()=>[t(c)]),default:a(()=>[r(" "+s(e.$t("menu.website_features_settings")),1)]),_:1}),t(i,{key:"website_contact_settings",onClick:n[4]||(n[4]=b=>e.$router.push({name:"superadmin.website_settings.contact.index"}))},{icon:a(()=>[t(h)]),default:a(()=>[r(" "+s(e.$t("menu.website_contact_settings")),1)]),_:1}),t(i,{key:"website_price_settings",onClick:n[5]||(n[5]=b=>e.$router.push({name:"superadmin.website_settings.price.index"}))},{icon:a(()=>[t(D)]),default:a(()=>[r(" "+s(e.$t("menu.website_price_settings")),1)]),_:1}),t(i,{key:"website_faq_settings",onClick:n[6]||(n[6]=b=>e.$router.push({name:"superadmin.website_settings.faq.index"}))},{icon:a(()=>[t(m)]),default:a(()=>[r(" "+s(e.$t("menu.website_faq_settings")),1)]),_:1}),t(i,{key:"website_footer_settings",onClick:n[7]||(n[7]=b=>e.$router.push({name:"superadmin.website_settings.footer.index"}))},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.$t("menu.website_footer_settings")),1)]),_:1}),t(i,{key:"website_call_to_action_settings",onClick:n[8]||(n[8]=b=>e.$router.push({name:"superadmin.website_settings.call_to_action.index"}))},{icon:a(()=>[t(S)]),default:a(()=>[r(" "+s(e.$t("menu.website_call_to_action_settings")),1)]),_:1}),t(i,{key:"website_register_settings",onClick:n[9]||(n[9]=b=>e.$router.push({name:"superadmin.website_settings.register.index"}))},{icon:a(()=>[t(v)]),default:a(()=>[r(" "+s(e.$t("menu.website_register_settings")),1)]),_:1}),t(i,{key:"website_seo_settings",onClick:n[10]||(n[10]=b=>e.$router.push({name:"superadmin.website_settings.seo.index"}))},{icon:a(()=>[t(k)]),default:a(()=>[r(" "+s(e.$t("menu.website_seo_settings")),1)]),_:1})]),_:1},8,["selectedKeys"])]),_:1})])}const fe=H(vs,[["render",Ss]]),ye=e=>{const{addEditRequestAdmin:n,loading:f,rules:o}=oe(),{t:w}=te(),$=I([]),_=I([]),i=I(""),u=I(!1),d=I(!0),c=I(!0),h=I({}),D=I("add"),m=I(""),g=I(""),S=I({}),v=O=>{axiosAdmin.get(`superadmin/website-settings/settings?lang_key=${O}&setting_type=${m.value}`).then(P=>{_.value=P.data.data})},k=()=>{c.value?(u.value=!0,o.value={},D.value="add",i.value=w(`website_settings.add_${g.value}`),h.value={...S.value,id:Math.random().toString(36).slice(2)}):Te.error(w("common.not_allowed"))},C=()=>{if(o.value={},D.value=="add")var O=[h.value,..._.value];else{var O=[];$e(_.value,T=>{T.id==h.value.id?O.push(h.value):O.push(T)})}n({url:"superadmin/website-settings/settings/update",data:{lang_key:e.langKey,request_type:"add_edit",setting_type:m.value,form_data:{lang_key:e.langKey,...h.value},all_form_data:O},successMessage:D.value=="edit"?w(`website_settings.${g.value}_updated`):w(`website_settings.${g.value}_created`),success:P=>{_.value=O,u.value=!1}})},y=O=>{o.value={},u.value=!0,o.value={},D.value="edit",i.value=w(`website_settings.edit_${g.value}`),h.value={...O}},b=O=>{d.value?ot.confirm({title:w("common.delete")+"?",icon:t(ne),content:w(`website_settings.${g.value}_delete_message`),centered:!0,okText:w("common.yes"),okType:"danger",cancelText:w("common.no"),onOk(){var P=ga(_.value,T=>T.id!=O.id);n({url:"superadmin/website-settings/settings/update",data:{lang_key:e.langKey,request_type:"delete",setting_type:m.value,form_data:{},all_form_data:P},successMessage:w(`website_settings.${g.value}_deleted`),success:T=>{_.value=P}})},onCancel(){}}):Te.error(w("common.not_allowed"))},U=()=>{u.value=!1,o.value={},h.value={...S.value}};return re(()=>e.langKey,(O,P)=>{v(O)}),{loading:f,rules:o,initData:S,columns:$,tableData:_,settingType:m,langType:g,getData:v,showAdd:k,visible:u,addable:c,deletable:d,addEditType:D,addEditTitle:i,formData:h,onSubmit:C,onClose:U,editItem:y,showDeleteConfirm:b}},he=e=>{const{t:n}=te();return{details:Ae(()=>{if(e=="website_clients")return{columns:[{title:n("common.name"),dataIndex:"name"},{title:n("common.logo"),dataIndex:"logo"},{title:n("common.action"),dataIndex:"action"}],lang_type:"client",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),name:"",logo:null,logo_url:""}};if(e=="pricing_cards")return{columns:[{title:n("common.name"),dataIndex:"name"},{title:n("common.logo"),dataIndex:"logo"},{title:n("common.action"),dataIndex:"action"}],lang_type:"pricing_card",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),name:"",logo:null,logo_url:""}};if(e=="header_features")return{columns:[{title:n("common.name"),dataIndex:"name"},{title:n("common.description"),dataIndex:"description"},{title:n("common.image"),dataIndex:"image"},{title:n("common.action"),dataIndex:"action"}],lang_type:"feature",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),name:"",description:"",image:null,image_url:""}};if(e=="features_page")return{columns:[{title:n("common.title"),dataIndex:"title"},{title:n("common.description"),dataIndex:"description"},{title:n("common.action"),dataIndex:"action"}],lang_type:"feature",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),title:"",description:"",features:[]}};if(e=="website_testimonials")return{columns:[{title:n("common.name"),dataIndex:"name"},{title:n("common.image"),dataIndex:"image"},{title:n("common.comment"),dataIndex:"comment"},{title:n("common.rating"),dataIndex:"rating"},{title:n("common.action"),dataIndex:"action"}],lang_type:"testimonial",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),name:"",image:null,image_url:"",comment:"",rating:1}};if(e=="website_features")return{columns:[{title:n("common.title"),dataIndex:"title"},{title:n("common.description"),dataIndex:"description"},{title:n("common.image"),dataIndex:"image"},{title:n("common.action"),dataIndex:"action"}],lang_type:"feature",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),title:"",description:"",image:null,image_url:"",features:[]}};if(e=="website_faqs")return{columns:[{title:n("common.question"),dataIndex:"question"},{title:n("common.answer"),dataIndex:"answer"},{title:n("common.action"),dataIndex:"action"}],lang_type:"faq",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),question:"",answer:""}};if(e=="footer_pages")return{columns:[{title:n("common.title"),dataIndex:"title"},{title:n("common.slug"),dataIndex:"slug"},{title:n("common.page_content"),dataIndex:"page_content"},{title:n("common.action"),dataIndex:"action"}],lang_type:"footer_page",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),title:"",slug:"",page_content:"",seo_keywords:"",seo_description:""}};if(e=="website_seo")return{columns:[{title:n("website_settings.page_key"),dataIndex:"page_key"},{title:n("website_settings.seo_title"),dataIndex:"seo_title"},{title:n("website_settings.seo_author"),dataIndex:"seo_author"},{title:n("website_settings.seo_keywords"),dataIndex:"seo_keywords"},{title:n("website_settings.seo_description"),dataIndex:"seo_description"},{title:n("common.action"),dataIndex:"action"}],lang_type:"seo",setting_type:e,init_data:{id:Math.random().toString(36).slice(2),page_key:"",seo_title:"",seo_author:"",seo_keywords:"",seo_description:"",seo_image:null,seo_image_url:""}}})}},$s={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=ye(e),{details:f}=he("website_clients");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n}}},ws={key:1};function Ds(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-form"),g=l("SaveOutlined"),S=l("a-modal"),v=l("a-image"),k=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_client")),1)]),_:1},8,["onClick"]),t(S,{open:e.visible,"onUpdate:open":n[2]||(n[2]=U=>e.visible=U),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(m,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=U=>e.formData.name=U),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.logo"),name:"logo",help:e.rules.logo?e.rules.logo.message:null,validateStatus:e.rules.logo?"error":null},{default:a(()=>[t(D,{formData:e.formData,folder:"website",imageField:"logo",onOnFileUploaded:n[1]||(n[1]=U=>{e.formData.logo=U.file,e.formData.logo_url=U.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(b,{columns:e.columns,"row-key":U=>U.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:U,record:O})=>[U.dataIndex==="logo"?(p(),q(z,{key:0},[O.logo?(p(),A(v,{key:0,width:70,src:O.logo_url},null,8,["src"])):(p(),q("span",ws,"-"))],64)):R("",!0),U.dataIndex==="action"?(p(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:P=>e.editItem(O)},{icon:a(()=>[t(k)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:P=>e.showDeleteConfirm(O)},{icon:a(()=>[t(C)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const Cs=H($s,[["render",Ds]]),Os={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,Clients:Cs},setup(){return{...ce()}}};function Us(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("Clients"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("a-textarea"),O=l("SaveOutlined"),P=l("a-button"),T=l("a-form"),L=l("a-tab-pane"),V=l("a-tabs"),B=l("a-card"),N=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_clients_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.clients")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(N,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(V,{activeKey:e.activeKey,"onUpdate:activeKey":n[3]||(n[3]=K=>e.activeKey=K),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,K=>(p(),A(L,{key:K.key,value:K.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:K.image_url},null,8,["src"]),r(" "+s(K.name),1)])]),default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=E=>e.subTabActiveKey=E)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.clients")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):(p(),A(m,{key:1,span:24},{default:a(()=>[t(T,{layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.client_title"),name:"client_title",help:e.rules.client_title?e.rules.client_title.message:null,validateStatus:e.rules.client_title?"error":null},{default:a(()=>[t(C,{value:e.formData.client_title,"onUpdate:value":n[1]||(n[1]=E=>e.formData.client_title=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.client_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.client_description"),name:"client_description",help:e.rules.client_description?e.rules.client_description.message:null,validateStatus:e.rules.client_description?"error":null},{default:a(()=>[t(U,{value:e.formData.client_description,"onUpdate:value":n[2]||(n[2]=E=>e.formData.client_description=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.client_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(P,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(O)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const As=H(Os,[["render",Us]]),qs={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=ye(e),{details:f}=he("website_testimonials");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n}}},Ks={key:1};function Ts(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-textarea"),g=l("a-rate"),S=l("a-form"),v=l("SaveOutlined"),k=l("a-modal"),C=l("a-image"),y=l("EditOutlined"),b=l("DeleteOutlined"),U=l("a-space"),O=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_testimonial")),1)]),_:1},8,["onClick"]),t(k,{open:e.visible,"onUpdate:open":n[4]||(n[4]=P=>e.visible=P),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(v)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(S,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=P=>e.formData.name=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.image"),name:"image",help:e.rules.image?e.rules.image.message:null,validateStatus:e.rules.image?"error":null},{default:a(()=>[t(D,{formData:e.formData,folder:"website",imageField:"image",onOnFileUploaded:n[1]||(n[1]=P=>{e.formData.image=P.file,e.formData.image_url=P.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.comment"),name:"comment",help:e.rules.comment?e.rules.comment.message:null,validateStatus:e.rules.comment?"error":null,class:"required"},{default:a(()=>[t(m,{value:e.formData.comment,"onUpdate:value":n[2]||(n[2]=P=>e.formData.comment=P),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.comment")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.rating"),name:"rating",help:e.rules.rating?e.rules.rating.message:null,validateStatus:e.rules.rating?"error":null,class:"required"},{default:a(()=>[t(g,{value:e.formData.rating,"onUpdate:value":n[3]||(n[3]=P=>e.formData.rating=P)},null,8,["value"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(O,{columns:e.columns,"row-key":P=>P.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:P,record:T})=>[P.dataIndex==="image"?(p(),q(z,{key:0},[T.image?(p(),A(C,{key:0,width:32,src:T.image_url},null,8,["src"])):(p(),q("span",Ks,"-"))],64)):R("",!0),P.dataIndex==="rating"?(p(),A(g,{key:1,value:T.rating,disabled:""},null,8,["value"])):R("",!0),P.dataIndex==="action"?(p(),A(U,{key:2},{default:a(()=>[t(i,{type:"primary",onClick:L=>e.editItem(T)},{icon:a(()=>[t(y)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:L=>e.showDeleteConfirm(T)},{icon:a(()=>[t(b)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const Ps=H(qs,[["render",Ts]]),zs={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,Testimonials:Ps},setup(){return{...ce()}}};function Es(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("Testimonials"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("a-textarea"),O=l("SaveOutlined"),P=l("a-button"),T=l("a-form"),L=l("a-tab-pane"),V=l("a-tabs"),B=l("a-card"),N=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_testimonials_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.testimonials")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(N,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(V,{activeKey:e.activeKey,"onUpdate:activeKey":n[3]||(n[3]=K=>e.activeKey=K),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,K=>(p(),A(L,{key:K.key,value:K.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:K.image_url},null,8,["src"]),r(" "+s(K.name),1)])]),default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=E=>e.subTabActiveKey=E)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.testimonials")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):(p(),A(m,{key:1,span:24},{default:a(()=>[t(T,{layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.testimonial_title"),name:"testimonial_title",help:e.rules.testimonial_title?e.rules.testimonial_title.message:null,validateStatus:e.rules.testimonial_title?"error":null},{default:a(()=>[t(C,{value:e.formData.testimonial_title,"onUpdate:value":n[1]||(n[1]=E=>e.formData.testimonial_title=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.testimonial_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.testimonial_description"),name:"testimonial_description",help:e.rules.testimonial_description?e.rules.testimonial_description.message:null,validateStatus:e.rules.testimonial_description?"error":null},{default:a(()=>[t(U,{value:e.formData.testimonial_description,"onUpdate:value":n[2]||(n[2]=E=>e.formData.testimonial_description=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.testimonial_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(P,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(O)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Is=H(zs,[["render",Es]]),Fs={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,Upload:se,DynamicFormFeatures:Ke},setup(e){const n=ye(e),{details:f}=he("website_features");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n}}},Ms={key:1};function Rs(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("Upload"),g=l("a-typography-title"),S=l("DynamicFormFeatures"),v=l("a-form"),k=l("SaveOutlined"),C=l("a-modal"),y=l("a-image"),b=l("EditOutlined"),U=l("DeleteOutlined"),O=l("a-space"),P=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_feature")),1)]),_:1},8,["onClick"]),t(C,{open:e.visible,"onUpdate:open":n[4]||(n[4]=T=>e.visible=T),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(k)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(v,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.title"),name:"title",help:e.rules.title?e.rules.title.message:null,validateStatus:e.rules.title?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.title,"onUpdate:value":n[0]||(n[0]=T=>e.formData.title=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.description"),name:"description",help:e.rules.description?e.rules.description.message:null,validateStatus:e.rules.description?"error":null,class:"required"},{default:a(()=>[t(D,{value:e.formData.description,"onUpdate:value":n[1]||(n[1]=T=>e.formData.description=T),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.image"),name:"image",help:e.rules.image?e.rules.image.message:null,validateStatus:e.rules.image?"error":null,class:"required"},{default:a(()=>[t(m,{formData:e.formData,folder:"website",imageField:"image",onOnFileUploaded:n[2]||(n[2]=T=>{e.formData.image=T.file,e.formData.image_url=T.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(g,{level:5,style:{marginBottom:"10px"}},{default:a(()=>[r(s(e.$t("website_settings.features_lists")),1)]),_:1}),t(S,{data:e.formData.features,addText:e.$t("website_settings.add_feature"),onOnEntry:n[3]||(n[3]=T=>e.formData.features=T)},null,8,["data","addText"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(P,{columns:e.columns,"row-key":T=>T.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:T,record:L})=>[T.dataIndex==="image"?(p(),q(z,{key:0},[L.image?(p(),A(y,{key:0,width:70,src:L.image_url},null,8,["src"])):(p(),q("span",Ms,"-"))],64)):R("",!0),T.dataIndex==="action"?(p(),A(O,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:V=>e.editItem(L)},{icon:a(()=>[t(b)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:V=>e.showDeleteConfirm(L)},{icon:a(()=>[t(U)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const Hs=H(Fs,[["render",Rs]]),Ws=le({props:["tableData","currentRecord","langKey"],emits:["success"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e,{emit:n}){const{addEditRequestAdmin:f,loading:o,rules:w}=oe(),$=I(""),_=I(!1),i=I({id:Math.random().toString(36).slice(2),title:"",description:"",image:null,image_url:""}),u=I("add"),{t:d}=te();return{columns:I([{title:d("common.title"),dataIndex:"title"},{title:d("common.description"),dataIndex:"description"},{title:d("common.image"),dataIndex:"image"},{title:d("common.action"),dataIndex:"action"}]),loading:o,formData:i,addEditType:u,addEditTitle:$,visible:_,rules:w,showAdd:()=>{w.value={},u.value="add",$.value=d("website_settings.add_feature"),i.value={id:Math.random().toString(36).slice(2),title:"",description:"",image:null,image_url:""},_.value=!0},editItem:v=>{w.value={},u.value="edit",$.value=d("website_settings.edit_feature"),i.value={...v},_.value=!0},onClose:()=>{_.value=!1,w.value={},i.value={id:Math.random().toString(36).slice(2),title:"",description:"",image:null,image_url:""}},onSubmit:()=>{w.value={};var v=[];$e(e.tableData,k=>{if(k.id==e.currentRecord.id){var C={...k};if(u.value=="add")C.features=[...k.features,i.value];else{var y=[];$e(k.features,b=>{b.id==i.value.id?y.push(i.value):y.push(b)}),C.features=[...y]}v.push(C)}else v.push(k)}),f({url:"superadmin/website-settings/settings/update",data:{lang_key:e.langKey,request_type:"add_edit",setting_type:"features_page",form_data:{lang_key:e.langKey,...i.value},all_form_data:v},successMessage:u.value=="edit"?d("website_settings.feature_updated"):d("website_settings.feature_created"),success:k=>{n("success",v),_.value=!1}})},showDeleteConfirm:v=>{ot.confirm({title:d("common.delete")+"?",icon:t(ne),content:d("website_settings.feature_delete_message"),centered:!0,okText:d("common.yes"),okType:"danger",cancelText:d("common.no"),onOk(){var k=[];$e(e.tableData,C=>{if(C.id==e.currentRecord.id){var y={...C},b=[];$e(C.features,U=>{U.id!=v.id&&b.push(U)}),y.features=[...b],k.push(y)}else k.push(C)}),f({url:"superadmin/website-settings/settings/update",data:{lang_key:e.langKey,request_type:"delete",setting_type:"features_page",form_data:{},all_form_data:k},successMessage:d("website_settings.feature_deleted"),success:C=>{n("success",k)}})},onCancel(){}})}}}});function Bs(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("Upload"),g=l("a-form"),S=l("SaveOutlined"),v=l("a-modal"),k=l("a-image"),C=l("EditOutlined"),y=l("DeleteOutlined"),b=l("a-space"),U=l("a-table");return p(),A(h,{gutter:18,class:"mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(i,{type:"primary",onClick:e.showAdd},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.add")),1)]),_:1},8,["onClick"]),t(v,{open:e.visible,"onUpdate:open":n[3]||(n[3]=O=>e.visible=O),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(S)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(g,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.title"),name:"title",help:e.rules.title?e.rules.title.message:null,validateStatus:e.rules.title?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.title,"onUpdate:value":n[0]||(n[0]=O=>e.formData.title=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.description"),name:"description",help:e.rules.description?e.rules.description.message:null,validateStatus:e.rules.description?"error":null,class:"required"},{default:a(()=>[t(D,{value:e.formData.description,"onUpdate:value":n[1]||(n[1]=O=>e.formData.description=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.image"),name:"image",help:e.rules.image?e.rules.image.message:null,validateStatus:e.rules.image?"error":null,class:"required"},{default:a(()=>[t(m,{formData:e.formData,folder:"website",imageField:"image",onOnFileUploaded:n[2]||(n[2]=O=>{e.formData.image=O.file,e.formData.image_url=O.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"]),t(U,{columns:e.columns,"data-source":e.currentRecord.features,pagination:!1},{bodyCell:a(({column:O,record:P})=>[O.dataIndex==="image"?(p(),A(k,{key:0,width:48,src:P.image_url},null,8,["src"])):R("",!0),O.dataIndex==="action"?(p(),A(b,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:T=>e.editItem(P)},{icon:a(()=>[t(C)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:T=>e.showDeleteConfirm(P)},{icon:a(()=>[t(y)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","data-source"])]),_:1})]),_:1})}const Ls=H(Ws,[["render",Bs]]),Vs={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,InnerFeaturePage:Ls},setup(e){const n=ye(e),{details:f}=he("features_page");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n,submitSuccess:w=>{n.tableData.value=w}}}},js={key:1};function Ns(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("a-form"),g=l("SaveOutlined"),S=l("a-modal"),v=l("a-image"),k=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("InnerFeaturePage"),U=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_feature")),1)]),_:1},8,["onClick"]),t(S,{open:e.visible,"onUpdate:open":n[2]||(n[2]=O=>e.visible=O),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(m,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.title"),name:"title",help:e.rules.title?e.rules.title.message:null,validateStatus:e.rules.title?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.title,"onUpdate:value":n[0]||(n[0]=O=>e.formData.title=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.description"),name:"description",help:e.rules.description?e.rules.description.message:null,validateStatus:e.rules.description?"error":null,class:"required"},{default:a(()=>[t(D,{value:e.formData.description,"onUpdate:value":n[1]||(n[1]=O=>e.formData.description=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(U,{columns:e.columns,"row-key":O=>O.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:O,record:P})=>[O.dataIndex==="image"?(p(),q(z,{key:0},[P.image?(p(),A(v,{key:0,width:70,src:P.image_url},null,8,["src"])):(p(),q("span",js,"-"))],64)):R("",!0),O.dataIndex==="action"?(p(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:T=>e.editItem(P)},{icon:a(()=>[t(k)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:T=>e.showDeleteConfirm(P)},{icon:a(()=>[t(C)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),expandedRowRender:a(({record:O})=>[t(b,{langKey:f.langKey,tableData:e.tableData,currentRecord:O,onSuccess:o.submitSuccess},null,8,["langKey","tableData","currentRecord","onSuccess"])]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const Ys=H(Vs,[["render",Ns]]),Gs={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,FeaturesHomePage:Hs,FeaturesPage:Ys,DynamicFormFeatures:Ke,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z},setup(){return{...ce(),updateFeaturePoints:f=>{addEditForm.formData.links_widget=f,onSubmit()}}}};function Qs(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("FeaturesHomePage"),C=l("FeaturesPage"),y=l("a-input"),b=l("a-form-item"),U=l("a-row"),O=l("a-textarea"),P=l("a-typography-title"),T=l("DynamicFormFeatures"),L=l("SaveOutlined"),V=l("a-button"),B=l("a-form"),N=l("a-tab-pane"),K=l("a-tabs"),E=l("a-card"),F=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_features_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.features")),1)]),_:1})]),_:1})]),_:1}),t(U,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(F,null,{default:a(()=>[t(E,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(K,{activeKey:e.activeKey,"onUpdate:activeKey":n[4]||(n[4]=W=>e.activeKey=W),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,W=>(p(),A(N,{key:W.key,value:W.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:W.image_url},null,8,["src"]),r(" "+s(W.name),1)])]),default:a(()=>[t(U,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=ge=>e.subTabActiveKey=ge)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.home_page_feature_widget")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.features_home_page")),1)]),_:1}),t(S,{key:"features_page"},{default:a(()=>[r(s(e.$t("website_settings.features_page")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):e.subTabActiveKey[0]=="features_page"?(p(),A(C,{key:1,langKey:e.activeKey},null,8,["langKey"])):(p(),A(m,{key:2,span:24},{default:a(()=>[t(B,{layout:"vertical"},{default:a(()=>[t(U,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(b,{label:e.$t("website_settings.feature_title"),name:"feature_title",help:e.rules.feature_title?e.rules.feature_title.message:null,validateStatus:e.rules.feature_title?"error":null},{default:a(()=>[t(y,{value:e.formData.feature_title,"onUpdate:value":n[1]||(n[1]=ge=>e.formData.feature_title=ge),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.feature_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(U,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(b,{label:e.$t("website_settings.feature_description"),name:"feature_description",help:e.rules.feature_description?e.rules.feature_description.message:null,validateStatus:e.rules.feature_description?"error":null},{default:a(()=>[t(O,{value:e.formData.feature_description,"onUpdate:value":n[2]||(n[2]=ge=>e.formData.feature_description=ge),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.feature_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(U,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(P,{level:5,style:{marginBottom:"10px"}},{default:a(()=>[r(s(e.$t("website_settings.features_lists")),1)]),_:1}),e.formData.home_feature_points?(p(),A(T,{key:0,data:e.formData.home_feature_points,addText:e.$t("website_settings.add_feature"),onOnEntry:n[3]||(n[3]=ge=>e.formData.home_feature_points=ge)},null,8,["data","addText"])):R("",!0)]),_:1})]),_:1}),t(U,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(b,null,{default:a(()=>[t(V,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(L)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Xs=H(Gs,[["render",Qs]]),Js={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,FormItemHeading:_e,Upload:se},setup(){return{...ce()}}};function Zs(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("a-input"),C=l("a-form-item"),y=l("a-row"),b=l("a-textarea"),U=l("Upload"),O=l("FormItemHeading"),P=l("SaveOutlined"),T=l("a-button"),L=l("a-form"),V=l("a-tab-pane"),B=l("a-tabs"),N=l("a-card"),K=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_contact_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_contact_settings")),1)]),_:1})]),_:1})]),_:1}),t(y,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(K,null,{default:a(()=>[t(N,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(B,{activeKey:e.activeKey,"onUpdate:activeKey":n[18]||(n[18]=E=>e.activeKey=E),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,E=>(p(),A(V,{key:E.key,value:E.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:E.image_url},null,8,["src"]),r(" "+s(E.name),1)])]),default:a(()=>[t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=F=>e.subTabActiveKey=F)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.contact_form")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(L,{key:0,layout:"vertical"},{default:a(()=>[t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_title"),name:"contact_form_title",help:e.rules.contact_form_title?e.rules.contact_form_title.message:null,validateStatus:e.rules.contact_form_title?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_form_title,"onUpdate:value":n[1]||(n[1]=F=>e.formData.contact_form_title=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_description"),name:"contact_form_description",help:e.rules.contact_form_description?e.rules.contact_form_description.message:null,validateStatus:e.rules.contact_form_description?"error":null},{default:a(()=>[t(b,{value:e.formData.contact_form_description,"onUpdate:value":n[2]||(n[2]=F=>e.formData.contact_form_description=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_background_image"),name:"contact_form_background_image",help:e.rules.contact_form_background_image?e.rules.contact_form_background_image.message:null,validateStatus:e.rules.contact_form_background_image?"error":null},{default:a(()=>[t(U,{formData:e.formData,folder:"website",imageField:"contact_form_background_image",onOnFileUploaded:n[3]||(n[3]=F=>{e.formData.contact_form_background_image=F.file,e.formData.contact_form_background_image_url=F.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(O,null,{default:a(()=>[r(s(e.$t("website_settings.contact_form_settings")),1)]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_heading"),name:"contact_form_heading",help:e.rules.contact_form_heading?e.rules.contact_form_heading.message:null,validateStatus:e.rules.contact_form_heading?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_form_heading,"onUpdate:value":n[4]||(n[4]=F=>e.formData.contact_form_heading=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_heading")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(O,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_name_text"),name:"contact_form_name_text",help:e.rules.contact_form_name_text?e.rules.contact_form_name_text.message:null,validateStatus:e.rules.contact_form_name_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_form_name_text,"onUpdate:value":n[5]||(n[5]=F=>e.formData.contact_form_name_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_name_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_email_text"),name:"contact_form_email_text",help:e.rules.contact_form_email_text?e.rules.contact_form_email_text.message:null,validateStatus:e.rules.contact_form_email_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_form_email_text,"onUpdate:value":n[6]||(n[6]=F=>e.formData.contact_form_email_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_email_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_message_text"),name:"contact_form_message_text",help:e.rules.contact_form_message_text?e.rules.contact_form_message_text.message:null,validateStatus:e.rules.contact_form_message_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_form_message_text,"onUpdate:value":n[7]||(n[7]=F=>e.formData.contact_form_message_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_message_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_form_send_message_text"),name:"contact_form_send_message_text",help:e.rules.contact_form_send_message_text?e.rules.contact_form_send_message_text.message:null,validateStatus:e.rules.contact_form_send_message_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_form_send_message_text,"onUpdate:value":n[8]||(n[8]=F=>e.formData.contact_form_send_message_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_form_send_message_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_us_submit_message_text"),name:"contact_us_submit_message_text",help:e.rules.contact_us_submit_message_text?e.rules.contact_us_submit_message_text.message:null,validateStatus:e.rules.contact_us_submit_message_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_us_submit_message_text,"onUpdate:value":n[9]||(n[9]=F=>e.formData.contact_us_submit_message_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_us_submit_message_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(C,null,{default:a(()=>[t(T,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(P)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})):(p(),A(L,{key:1,layout:"vertical"},{default:a(()=>[t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_title"),name:"contact_title",help:e.rules.contact_title?e.rules.contact_title.message:null,validateStatus:e.rules.contact_title?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_title,"onUpdate:value":n[10]||(n[10]=F=>e.formData.contact_title=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_description"),name:"contact_description",help:e.rules.contact_description?e.rules.contact_description.message:null,validateStatus:e.rules.contact_description?"error":null},{default:a(()=>[t(b,{value:e.formData.contact_description,"onUpdate:value":n[11]||(n[11]=F=>e.formData.contact_description=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(O,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_email_text"),name:"contact_email_text",help:e.rules.contact_email_text?e.rules.contact_email_text.message:null,validateStatus:e.rules.contact_email_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_email_text,"onUpdate:value":n[12]||(n[12]=F=>e.formData.contact_email_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_email_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_phone_text"),name:"contact_phone_text",help:e.rules.contact_phone_text?e.rules.contact_phone_text.message:null,validateStatus:e.rules.contact_phone_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_phone_text,"onUpdate:value":n[13]||(n[13]=F=>e.formData.contact_phone_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_phone_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("website_settings.contact_address_text"),name:"contact_address_text",help:e.rules.contact_address_text?e.rules.contact_address_text.message:null,validateStatus:e.rules.contact_address_text?"error":null,class:"required"},{default:a(()=>[t(k,{value:e.formData.contact_address_text,"onUpdate:value":n[14]||(n[14]=F=>e.formData.contact_address_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_address_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(O,null,{default:a(()=>[r(s(e.$t("website_settings.contact_details")),1)]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("common.email"),name:"contact_email",help:e.rules.contact_email?e.rules.contact_email.message:null,validateStatus:e.rules.contact_email?"error":null},{default:a(()=>[t(k,{value:e.formData.contact_email,"onUpdate:value":n[15]||(n[15]=F=>e.formData.contact_email=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(C,{label:e.$t("common.phone"),name:"contact_phone",help:e.rules.contact_phone?e.rules.contact_phone.message:null,validateStatus:e.rules.contact_phone?"error":null},{default:a(()=>[t(k,{value:e.formData.contact_phone,"onUpdate:value":n[16]||(n[16]=F=>e.formData.contact_phone=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.phone")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(C,{label:e.$t("common.address"),name:"contact_address",help:e.rules.contact_address?e.rules.contact_address.message:null,validateStatus:e.rules.contact_address?"error":null},{default:a(()=>[t(k,{value:e.formData.contact_address,"onUpdate:value":n[17]||(n[17]=F=>e.formData.contact_address=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.address")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(C,null,{default:a(()=>[t(T,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(P)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const xs=H(Js,[["render",Zs]]),er={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=ye(e),{details:f}=he("pricing_cards");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n}}},tr={key:1};function ar(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-form"),g=l("SaveOutlined"),S=l("a-modal"),v=l("a-image"),k=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_pricing_card")),1)]),_:1},8,["onClick"]),t(S,{open:e.visible,"onUpdate:open":n[2]||(n[2]=U=>e.visible=U),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(m,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=U=>e.formData.name=U),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.logo"),name:"logo",help:e.rules.logo?e.rules.logo.message:null,validateStatus:e.rules.logo?"error":null},{default:a(()=>[t(D,{formData:e.formData,folder:"website",imageField:"logo",onOnFileUploaded:n[1]||(n[1]=U=>{e.formData.logo=U.file,e.formData.logo_url=U.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(b,{columns:e.columns,"row-key":U=>U.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:U,record:O})=>[U.dataIndex==="logo"?(p(),q(z,{key:0},[O.logo?(p(),A(v,{key:0,width:70,src:O.logo_url},null,8,["src"])):(p(),q("span",tr,"-"))],64)):R("",!0),U.dataIndex==="action"?(p(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:P=>e.editItem(O)},{icon:a(()=>[t(k)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:P=>e.showDeleteConfirm(O)},{icon:a(()=>[t(C)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const lr=H(er,[["render",ar]]),nr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,PriceCard:lr,FormItemHeading:_e,Upload:se},setup(){return{...ce()}}};function or(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("PriceCard"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("a-textarea"),O=l("Upload"),P=l("FormItemHeading"),T=l("SaveOutlined"),L=l("a-button"),V=l("a-form"),B=l("a-tab-pane"),N=l("a-tabs"),K=l("a-card"),E=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_price_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_price_settings")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(E,null,{default:a(()=>[t(K,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(N,{activeKey:e.activeKey,"onUpdate:activeKey":n[13]||(n[13]=F=>e.activeKey=F),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,F=>(p(),A(B,{key:F.key,value:F.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:F.image_url},null,8,["src"]),r(" "+s(F.name),1)])]),default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=W=>e.subTabActiveKey=W)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.pricing_cards")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):(p(),A(m,{key:1,span:24},{default:a(()=>[t(V,{layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.price_title"),name:"price_title",help:e.rules.price_title?e.rules.price_title.message:null,validateStatus:e.rules.price_title?"error":null},{default:a(()=>[t(C,{value:e.formData.price_title,"onUpdate:value":n[1]||(n[1]=W=>e.formData.price_title=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.price_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.price_description"),name:"price_description",help:e.rules.price_description?e.rules.price_description.message:null,validateStatus:e.rules.price_description?"error":null},{default:a(()=>[t(U,{value:e.formData.price_description,"onUpdate:value":n[2]||(n[2]=W=>e.formData.price_description=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.price_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(y,{label:e.$t("website_settings.most_popular_image"),name:"most_popular_image",help:e.rules.most_popular_image?e.rules.most_popular_image.message:null,validateStatus:e.rules.most_popular_image?"error":null},{default:a(()=>[t(O,{formData:e.formData,folder:"website",imageField:"most_popular_image",onOnFileUploaded:n[3]||(n[3]=W=>{e.formData.most_popular_image=W.file,e.formData.most_popular_image_url=W.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(P,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_billed_monthly_text"),name:"pricing_billed_monthly_text",help:e.rules.pricing_billed_monthly_text?e.rules.pricing_billed_monthly_text.message:null,validateStatus:e.rules.pricing_billed_monthly_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_billed_monthly_text,"onUpdate:value":n[4]||(n[4]=W=>e.formData.pricing_billed_monthly_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_billed_monthly_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_billed_yearly_text"),name:"pricing_billed_yearly_text",help:e.rules.pricing_billed_yearly_text?e.rules.pricing_billed_yearly_text.message:null,validateStatus:e.rules.pricing_billed_yearly_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_billed_yearly_text,"onUpdate:value":n[5]||(n[5]=W=>e.formData.pricing_billed_yearly_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_billed_yearly_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_monthly_text"),name:"pricing_monthly_text",help:e.rules.pricing_monthly_text?e.rules.pricing_monthly_text.message:null,validateStatus:e.rules.pricing_monthly_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_monthly_text,"onUpdate:value":n[6]||(n[6]=W=>e.formData.pricing_monthly_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_monthly_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_yearly_text"),name:"pricing_yearly_text",help:e.rules.pricing_yearly_text?e.rules.pricing_yearly_text.message:null,validateStatus:e.rules.pricing_yearly_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_yearly_text,"onUpdate:value":n[7]||(n[7]=W=>e.formData.pricing_yearly_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_yearly_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_month_text"),name:"pricing_month_text",help:e.rules.pricing_month_text?e.rules.pricing_month_text.message:null,validateStatus:e.rules.pricing_month_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_month_text,"onUpdate:value":n[8]||(n[8]=W=>e.formData.pricing_month_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_month_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_year_text"),name:"pricing_year_text",help:e.rules.pricing_year_text?e.rules.pricing_year_text.message:null,validateStatus:e.rules.pricing_year_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_year_text,"onUpdate:value":n[9]||(n[9]=W=>e.formData.pricing_year_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_year_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_get_started_button_text"),name:"pricing_get_started_button_text",help:e.rules.pricing_get_started_button_text?e.rules.pricing_get_started_button_text.message:null,validateStatus:e.rules.pricing_get_started_button_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_get_started_button_text,"onUpdate:value":n[10]||(n[10]=W=>e.formData.pricing_get_started_button_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_get_started_button_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_no_card_text"),name:"pricing_no_card_text",help:e.rules.pricing_no_card_text?e.rules.pricing_no_card_text.message:null,validateStatus:e.rules.pricing_no_card_text?"error":null},{default:a(()=>[t(C,{value:e.formData.pricing_no_card_text,"onUpdate:value":n[11]||(n[11]=W=>e.formData.pricing_no_card_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_no_card_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(P,null,{default:a(()=>[r(s(e.$t("website_settings.pricing_cards")),1)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.price_card_title"),name:"price_card_title",help:e.rules.price_card_title?e.rules.price_card_title.message:null,validateStatus:e.rules.price_card_title?"error":null},{default:a(()=>[t(C,{value:e.formData.price_card_title,"onUpdate:value":n[12]||(n[12]=W=>e.formData.price_card_title=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.price_card_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(L,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(T)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const sr=H(nr,[["render",or]]),rr={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q},setup(e){const n=ye(e),{details:f}=he("website_faqs");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n}}};function ir(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-textarea"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("a-form"),m=l("SaveOutlined"),g=l("a-modal"),S=l("EditOutlined"),v=l("DeleteOutlined"),k=l("a-space"),C=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_faq")),1)]),_:1},8,["onClick"]),t(g,{open:e.visible,"onUpdate:open":n[2]||(n[2]=y=>e.visible=y),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(m)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(D,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.question"),name:"question",help:e.rules.question?e.rules.question.message:null,validateStatus:e.rules.question?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.question,"onUpdate:value":n[0]||(n[0]=y=>e.formData.question=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.question")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.answer"),name:"answer",help:e.rules.answer?e.rules.answer.message:null,validateStatus:e.rules.answer?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.answer,"onUpdate:value":n[1]||(n[1]=y=>e.formData.answer=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.answer")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(C,{columns:e.columns,"row-key":y=>y.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:y,record:b})=>[y.dataIndex==="action"?(p(),A(k,{key:0},{default:a(()=>[t(i,{type:"primary",onClick:U=>e.editItem(b)},{icon:a(()=>[t(S)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:U=>e.showDeleteConfirm(b)},{icon:a(()=>[t(v)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const ur=H(rr,[["render",ir]]),dr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,Faq:ur,FormItemHeading:_e,Upload:se},setup(){return{...ce()}}};function mr(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("Faq"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("Upload"),O=l("FormItemHeading"),P=l("SaveOutlined"),T=l("a-button"),L=l("a-form"),V=l("a-tab-pane"),B=l("a-tabs"),N=l("a-card"),K=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_faq_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.faq")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(K,null,{default:a(()=>[t(N,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(B,{activeKey:e.activeKey,"onUpdate:activeKey":n[6]||(n[6]=E=>e.activeKey=E),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,E=>(p(),A(V,{key:E.key,value:E.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:E.image_url},null,8,["src"]),r(" "+s(E.name),1)])]),default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=F=>e.subTabActiveKey=F)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.faq")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):(p(),A(m,{key:1,span:24},{default:a(()=>[t(L,{layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.faq_title"),name:"faq_title",help:e.rules.faq_title?e.rules.faq_title.message:null,validateStatus:e.rules.faq_title?"error":null},{default:a(()=>[t(C,{value:e.formData.faq_title,"onUpdate:value":n[1]||(n[1]=F=>e.formData.faq_title=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.faq_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.faq_sub_title"),name:"faq_sub_title",help:e.rules.faq_sub_title?e.rules.faq_sub_title.message:null,validateStatus:e.rules.faq_sub_title?"error":null},{default:a(()=>[t(C,{value:e.formData.faq_sub_title,"onUpdate:value":n[2]||(n[2]=F=>e.formData.faq_sub_title=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.faq_sub_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(y,{label:e.$t("website_settings.faq_background_image"),name:"faq_background_image",help:e.rules.faq_background_image?e.rules.faq_background_image.message:null,validateStatus:e.rules.faq_background_image?"error":null},{default:a(()=>[t(U,{formData:e.formData,folder:"website",imageField:"faq_background_image",onOnFileUploaded:n[3]||(n[3]=F=>{e.formData.faq_background_image=F.file,e.formData.faq_background_image_url=F.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(O,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.faq_still_have_question_text"),name:"faq_still_have_question_text",help:e.rules.faq_still_have_question_text?e.rules.faq_still_have_question_text.message:null,validateStatus:e.rules.faq_still_have_question_text?"error":null},{default:a(()=>[t(C,{value:e.formData.faq_still_have_question_text,"onUpdate:value":n[4]||(n[4]=F=>e.formData.faq_still_have_question_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.faq_still_have_question_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.faq_contact_us_text"),name:"faq_contact_us_text",help:e.rules.faq_contact_us_text?e.rules.faq_contact_us_text.message:null,validateStatus:e.rules.faq_contact_us_text?"error":null},{default:a(()=>[t(C,{value:e.formData.faq_contact_us_text,"onUpdate:value":n[5]||(n[5]=F=>e.formData.faq_contact_us_text=F),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.faq_contact_us_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(T,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(P)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const _r=H(dr,[["render",mr]]),pr={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q},setup(e){const n=ye(e),{details:f}=he("footer_pages"),{slugify:o}=ee();return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n,slugify:o}}};function cr(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("a-form"),g=l("SaveOutlined"),S=l("a-modal"),v=l("EditOutlined"),k=l("DeleteOutlined"),C=l("a-space"),y=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_footer_page")),1)]),_:1},8,["onClick"]),t(S,{open:e.visible,"onUpdate:open":n[6]||(n[6]=b=>e.visible=b),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(m,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.title"),name:"title",help:e.rules.title?e.rules.title.message:null,validateStatus:e.rules.title?"error":null,class:"required",onKeyup:n[1]||(n[1]=b=>e.formData.slug=o.slugify(b.target.value))},{default:a(()=>[t(u,{value:e.formData.title,"onUpdate:value":n[0]||(n[0]=b=>e.formData.title=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.slug"),name:"slug",help:e.rules.slug?e.rules.slug.message:null,validateStatus:e.rules.slug?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.slug,"onUpdate:value":n[2]||(n[2]=b=>e.formData.slug=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.slug")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.page_content"),name:"page_content",help:e.rules.page_content?e.rules.page_content.message:null,validateStatus:e.rules.page_content?"error":null,class:"required"},{default:a(()=>[t(D,{value:e.formData.page_content,"onUpdate:value":n[3]||(n[3]=b=>e.formData.page_content=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.page_content")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("front_setting.seo_keywords"),name:"seo_keywords",help:e.rules.seo_keywords?e.rules.seo_keywords.message:null,validateStatus:e.rules.seo_keywords?"error":null},{default:a(()=>[t(D,{value:e.formData.seo_keywords,"onUpdate:value":n[4]||(n[4]=b=>e.formData.seo_keywords=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("front_setting.seo_keywords")]),rows:2},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("front_setting.seo_description"),name:"seo_description",help:e.rules.seo_description?e.rules.seo_description.message:null,validateStatus:e.rules.seo_description?"error":null},{default:a(()=>[t(D,{value:e.formData.seo_description,"onUpdate:value":n[5]||(n[5]=b=>e.formData.seo_description=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("front_setting.seo_description")]),rows:2},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(y,{columns:e.columns,"row-key":b=>b.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:b,record:U})=>[b.dataIndex==="action"?(p(),A(C,{key:0},{default:a(()=>[t(i,{type:"primary",onClick:O=>e.editItem(U)},{icon:a(()=>[t(v)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:O=>e.showDeleteConfirm(U)},{icon:a(()=>[t(k)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const fr=H(pr,[["render",cr]]),gr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,Footer:fr,FormItemHeading:_e,Upload:se},setup(){return{...ce()}}};function br(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("Footer"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("SaveOutlined"),O=l("a-button"),P=l("a-form"),T=l("a-textarea"),L=l("Upload"),V=l("FormItemHeading"),B=l("a-tab-pane"),N=l("a-tabs"),K=l("a-card"),E=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.footer")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(E,null,{default:a(()=>[t(K,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(N,{activeKey:e.activeKey,"onUpdate:activeKey":n[12]||(n[12]=F=>e.activeKey=F),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,F=>(p(),A(B,{key:F.key,value:F.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:F.image_url},null,8,["src"]),r(" "+s(F.name),1)])]),default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=W=>e.subTabActiveKey=W)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"social_links"},{default:a(()=>[r(s(e.$t("website_settings.social_links")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.footer_pages")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):e.subTabActiveKey[0]=="social_links"?(p(),A(P,{key:1,layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.facebook_url"),name:"facebook_url",help:e.rules.facebook_url?e.rules.facebook_url.message:null,validateStatus:e.rules.facebook_url?"error":null},{default:a(()=>[t(C,{value:e.formData.facebook_url,"onUpdate:value":n[1]||(n[1]=W=>e.formData.facebook_url=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.facebook_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.twitter_url"),name:"twitter_url",help:e.rules.twitter_url?e.rules.twitter_url.message:null,validateStatus:e.rules.twitter_url?"error":null},{default:a(()=>[t(C,{value:e.formData.twitter_url,"onUpdate:value":n[2]||(n[2]=W=>e.formData.twitter_url=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.twitter_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.linkedin_url"),name:"linkedin_url",help:e.rules.linkedin_url?e.rules.linkedin_url.message:null,validateStatus:e.rules.linkedin_url?"error":null},{default:a(()=>[t(C,{value:e.formData.linkedin_url,"onUpdate:value":n[3]||(n[3]=W=>e.formData.linkedin_url=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.linkedin_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.instagram_url"),name:"instagram_url",help:e.rules.instagram_url?e.rules.instagram_url.message:null,validateStatus:e.rules.instagram_url?"error":null},{default:a(()=>[t(C,{value:e.formData.instagram_url,"onUpdate:value":n[4]||(n[4]=W=>e.formData.instagram_url=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.instagram_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.youtube_url"),name:"youtube_url",help:e.rules.youtube_url?e.rules.youtube_url.message:null,validateStatus:e.rules.youtube_url?"error":null},{default:a(()=>[t(C,{value:e.formData.youtube_url,"onUpdate:value":n[5]||(n[5]=W=>e.formData.youtube_url=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.youtube_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(O,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(U)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})):(p(),A(P,{key:2,layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.footer_copyright_text"),name:"footer_copyright_text",help:e.rules.footer_copyright_text?e.rules.footer_copyright_text.message:null,validateStatus:e.rules.footer_copyright_text?"error":null},{default:a(()=>[t(C,{value:e.formData.footer_copyright_text,"onUpdate:value":n[6]||(n[6]=W=>e.formData.footer_copyright_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.footer_copyright_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.footer_description"),name:"footer_description",help:e.rules.footer_description?e.rules.footer_description.message:null,validateStatus:e.rules.footer_description?"error":null},{default:a(()=>[t(T,{value:e.formData.footer_description,"onUpdate:value":n[7]||(n[7]=W=>e.formData.footer_description=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.footer_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(y,{label:e.$t("website_settings.footer_logo"),name:"footer_logo",help:e.rules.footer_logo?e.rules.footer_logo.message:null,validateStatus:e.rules.footer_logo?"error":null},{default:a(()=>[t(L,{formData:e.formData,folder:"website",imageField:"footer_logo",onOnFileUploaded:n[8]||(n[8]=W=>{e.formData.footer_logo=W.file,e.formData.footer_logo_url=W.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(V,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.footer_links_text"),name:"footer_links_text",help:e.rules.footer_links_text?e.rules.footer_links_text.message:null,validateStatus:e.rules.footer_links_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.footer_links_text,"onUpdate:value":n[9]||(n[9]=W=>e.formData.footer_links_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.footer_links_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.footer_pages_text"),name:"footer_pages_text",help:e.rules.footer_pages_text?e.rules.footer_pages_text.message:null,validateStatus:e.rules.footer_pages_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.footer_pages_text,"onUpdate:value":n[10]||(n[10]=W=>e.formData.footer_pages_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.footer_pages_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.footer_contact_us_text"),name:"footer_contact_us_text",help:e.rules.footer_contact_us_text?e.rules.footer_contact_us_text.message:null,validateStatus:e.rules.footer_contact_us_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.footer_contact_us_text,"onUpdate:value":n[11]||(n[11]=W=>e.formData.footer_contact_us_text=W),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.footer_contact_us_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(O,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(U)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const yr=H(gr,[["render",br]]),hr={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=ye(e),{details:f}=he("header_features");return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.getData(e.langKey)}),{...n}}},vr={key:1};function kr(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),c=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-form"),g=l("SaveOutlined"),S=l("a-modal"),v=l("a-image"),k=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("a-table");return p(),q(z,null,[t(h,{span:16},{default:a(()=>[t(c,null,{default:a(()=>[t(i,{onClick:e.showAdd,type:"primary"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("website_settings.add_feature")),1)]),_:1},8,["onClick"]),t(S,{open:e.visible,"onUpdate:open":n[3]||(n[3]=U=>e.visible=U),title:e.addEditTitle},{footer:a(()=>[t(i,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(g)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(i,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(m,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.name"),name:"name",help:e.rules.name?e.rules.name.message:null,validateStatus:e.rules.name?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.name,"onUpdate:value":n[0]||(n[0]=U=>e.formData.name=U),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.description"),name:"description",help:e.rules.description?e.rules.description.message:null,validateStatus:e.rules.description?"error":null,class:"required"},{default:a(()=>[t(u,{value:e.formData.description,"onUpdate:value":n[1]||(n[1]=U=>e.formData.description=U),placeholder:e.$t("common.placeholder_default_text",[e.$t("common.description")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(c,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(d,{label:e.$t("common.image"),name:"image",help:e.rules.image?e.rules.image.message:null,validateStatus:e.rules.image?"error":null},{default:a(()=>[t(D,{formData:e.formData,folder:"website",imageField:"image",onOnFileUploaded:n[2]||(n[2]=U=>{e.formData.image=U.file,e.formData.image_url=U.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(h,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(c,{span:24},{default:a(()=>[t(b,{columns:e.columns,"row-key":U=>U.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:U,record:O})=>[U.dataIndex==="image"?(p(),q(z,{key:0},[O.image?(p(),A(v,{key:0,width:32,src:O.image_url},null,8,["src"])):(p(),q("span",vr,"-"))],64)):R("",!0),U.dataIndex==="action"?(p(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:P=>e.editItem(O)},{icon:a(()=>[t(k)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:P=>e.showDeleteConfirm(O)},{icon:a(()=>[t(C)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const Sr=H(hr,[["render",kr]]),$r={components:{SaveOutlined:Q},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe();te();const o=I({}),w="all-langs",$="superadmin/global-company/website-lang",_=I([]);return G(()=>{const u=axiosAdmin.get(w),d=axiosAdmin.get($);Promise.all([u,d]).then(([c,h])=>{_.value=c.data,o.value={website_lang_id:h.data.lang.xid}})}),{formData:o,loading:n,rules:f,allLangs:_,onSubmit:()=>{},drawerWidth:window.innerWidth<=991?"90%":"45%"}}};function wr(e,n,f,o,w,$){const _=l("a-select-option"),i=l("a-select"),u=l("a-form-item"),d=l("a-col"),c=l("a-row"),h=l("a-form"),D=l("SaveOutlined"),m=l("a-button"),g=l("a-space"),S=l("a-drawer");return p(),A(S,{title:e.pageTitle,width:o.drawerWidth,open:e.visible,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},maskClosable:!1,onClose:e.onClose},{footer:a(()=>[t(g,null,{default:a(()=>[t(m,{key:"submit",type:"primary",loading:o.loading,onClick:o.onSubmit},{icon:a(()=>[t(D)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(m,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),_:1})]),default:a(()=>[t(h,{layout:"vertical"},{default:a(()=>[t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.default_timezone"),name:"timezone",help:o.rules.timezone?o.rules.timezone.message:null,validateStatus:o.rules.timezone?"error":null,class:"required"},{default:a(()=>[t(i,{value:o.formData.timezone,"onUpdate:value":n[0]||(n[0]=v=>o.formData.timezone=v),placeholder:e.$t("common.select_default_text",[e.$t("company.default_timezone")]),optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(e.timezones,(v,k)=>(p(),A(_,{key:k,value:v},{default:a(()=>[r(s(v),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["title","width","open","onClose"])}const Dr=H($r,[["render",wr]]),Cr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,HeaderFeatures:Sr,Upload:se,FormItemHeading:_e,DynamicFormFeatures:Ke,DefaultWebsiteLang:Dr},setup(){return{...ce()}}};function Or(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-menu-item"),v=l("a-menu"),k=l("HeaderFeatures"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("a-textarea"),O=l("Upload"),P=l("a-switch"),T=l("a-typography-title"),L=l("DynamicFormFeatures"),V=l("SaveOutlined"),B=l("a-button"),N=l("a-form"),K=l("FormItemHeading"),E=l("a-tab-pane"),F=l("a-tabs"),W=l("a-card"),ge=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_header_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.header")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(ge,null,{default:a(()=>[t(W,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(F,{activeKey:e.activeKey,"onUpdate:activeKey":n[28]||(n[28]=ke=>e.activeKey=ke),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,ke=>(p(),A(E,{key:ke.key,value:ke.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:ke.image_url},null,8,["src"]),r(" "+s(ke.name),1)])]),default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4},{default:a(()=>[M("div",{style:me({borderRight:"1px solid #f0f0f0",height:"calc(100vh - 259px)"})},[t(v,{selectedKeys:e.subTabActiveKey,"onUpdate:selectedKeys":n[0]||(n[0]=j=>e.subTabActiveKey=j)},{default:a(()=>[t(S,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(S,{key:"header_settings"},{default:a(()=>[r(s(e.$t("website_settings.header_settings")),1)]),_:1}),t(S,{key:"header_client"},{default:a(()=>[r(s(e.$t("website_settings.header_client")),1)]),_:1}),t(S,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.header_features")),1)]),_:1})]),_:1},8,["selectedKeys"])],4)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[e.subTabActiveKey[0]=="details_crud"?(p(),A(k,{key:0,langKey:e.activeKey},null,8,["langKey"])):e.subTabActiveKey[0]=="header_settings"?(p(),A(N,{key:1,layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.header_title"),name:"header_title",help:e.rules.header_title?e.rules.header_title.message:null,validateStatus:e.rules.header_title?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_title,"onUpdate:value":n[1]||(n[1]=j=>e.formData.header_title=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.header_sub_title"),name:"header_sub_title",help:e.rules.header_sub_title?e.rules.header_sub_title.message:null,validateStatus:e.rules.header_sub_title?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_sub_title,"onUpdate:value":n[2]||(n[2]=j=>e.formData.header_sub_title=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_sub_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.header_description"),name:"header_description",help:e.rules.header_description?e.rules.header_description.message:null,validateStatus:e.rules.header_description?"error":null},{default:a(()=>[t(U,{value:e.formData.header_description,"onUpdate:value":n[3]||(n[3]=j=>e.formData.header_description=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_background_image"),name:"header_background_image",help:e.rules.header_background_image?e.rules.header_background_image.message:null,validateStatus:e.rules.header_background_image?"error":null},{default:a(()=>[t(O,{formData:e.formData,folder:"website",imageField:"header_background_image",onOnFileUploaded:n[4]||(n[4]=j=>{e.formData.header_background_image=j.file,e.formData.header_background_image_url=j.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_button1_show"),name:"header_button1_show",help:e.rules.header_button1_show?e.rules.header_button1_show.message:null,validateStatus:e.rules.header_button1_show?"error":null},{default:a(()=>[t(P,{checked:e.formData.header_button1_show,"onUpdate:checked":n[5]||(n[5]=j=>e.formData.header_button1_show=j),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.header_button1_show=="1"?(p(),A(m,{key:0,span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_button1_text"),name:"header_button1_text",help:e.rules.header_button1_text?e.rules.header_button1_text.message:null,validateStatus:e.rules.header_button1_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_button1_text,"onUpdate:value":n[6]||(n[6]=j=>e.formData.header_button1_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_button1_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})):R("",!0),e.formData.header_button1_show=="1"?(p(),A(m,{key:1,span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_button1_url"),name:"header_button1_url",help:e.rules.header_button1_url?e.rules.header_button1_url.message:null,validateStatus:e.rules.header_button1_url?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_button1_url,"onUpdate:value":n[7]||(n[7]=j=>e.formData.header_button1_url=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_button1_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})):R("",!0)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_button2_show"),name:"header_button2_show",help:e.rules.header_button2_show?e.rules.header_button2_show.message:null,validateStatus:e.rules.header_button2_show?"error":null},{default:a(()=>[t(P,{checked:e.formData.header_button2_show,"onUpdate:checked":n[8]||(n[8]=j=>e.formData.header_button2_show=j),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.header_button2_show=="1"?(p(),A(m,{key:0,span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_button2_text"),name:"header_button2_text",help:e.rules.header_button2_text?e.rules.header_button2_text.message:null,validateStatus:e.rules.header_button2_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_button2_text,"onUpdate:value":n[9]||(n[9]=j=>e.formData.header_button2_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_button2_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})):R("",!0),e.formData.header_button2_show=="1"?(p(),A(m,{key:1,span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_button2_url"),name:"header_button2_url",help:e.rules.header_button2_url?e.rules.header_button2_url.message:null,validateStatus:e.rules.header_button2_url?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_button2_url,"onUpdate:value":n[10]||(n[10]=j=>e.formData.header_button2_url=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_button2_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})):R("",!0)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(T,{level:5,style:{marginBottom:"10px"}},{default:a(()=>[r(s(e.$t("website_settings.header_features")),1)]),_:1}),t(L,{data:e.formData.header_features,addText:e.$t("website_settings.add_feature"),onOnEntry:n[11]||(n[11]=j=>e.formData.header_features=j)},null,8,["data","addText"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(B,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(V)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})):e.subTabActiveKey[0]=="header_client"?(p(),A(N,{key:2,layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.header_client_show"),name:"header_client_show",help:e.rules.header_client_show?e.rules.header_client_show.message:null,validateStatus:e.rules.header_client_show?"error":null},{default:a(()=>[t(P,{checked:e.formData.header_client_show,"onUpdate:checked":n[12]||(n[12]=j=>e.formData.header_client_show=j),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),e.formData.header_client_show=="1"?(p(),q(z,{key:0},[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.header_client_name"),name:"header_client_name",help:e.rules.header_client_name?e.rules.header_client_name.message:null,validateStatus:e.rules.header_client_name?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.header_client_name,"onUpdate:value":n[13]||(n[13]=j=>e.formData.header_client_name=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_client_name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(y,{label:e.$t("website_settings.header_client_text"),name:"header_client_text",help:e.rules.header_client_text?e.rules.header_client_text.message:null,validateStatus:e.rules.header_client_text?"error":null},{default:a(()=>[t(U,{value:e.formData.header_client_text,"onUpdate:value":n[14]||(n[14]=j=>e.formData.header_client_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.header_client_text")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(y,{label:e.$t("website_settings.header_client_image"),name:"header_client_image",help:e.rules.header_client_image?e.rules.header_client_image.message:null,validateStatus:e.rules.header_client_image?"error":null},{default:a(()=>[t(O,{formData:e.formData,folder:"website",imageField:"header_client_image",onOnFileUploaded:n[15]||(n[15]=j=>{e.formData.header_client_image=j.file,e.formData.header_client_image_url=j.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})],64)):R("",!0),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(B,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(V)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})):(p(),A(N,{key:3,layout:"vertical"},{default:a(()=>[t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,{label:e.$t("website_settings.app_name"),name:"app_name",help:e.rules.app_name?e.rules.app_name.message:null,validateStatus:e.rules.app_name?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.app_name,"onUpdate:value":n[16]||(n[16]=j=>e.formData.app_name=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.app_name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.header_logo"),name:"header_logo",help:e.rules.header_logo?e.rules.header_logo.message:null,validateStatus:e.rules.header_logo?"error":null},{default:a(()=>[t(O,{formData:e.formData,folder:"website",imageField:"header_logo",onOnFileUploaded:n[17]||(n[17]=j=>{e.formData.header_logo=j.file,e.formData.header_logo_url=j.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:16,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.header_sidebar_logo"),name:"header_sidebar_logo",help:e.rules.header_sidebar_logo?e.rules.header_sidebar_logo.message:null,validateStatus:e.rules.header_sidebar_logo?"error":null},{default:a(()=>[t(O,{formData:e.formData,folder:"website",imageField:"header_sidebar_logo",onOnFileUploaded:n[18]||(n[18]=j=>{e.formData.header_sidebar_logo=j.file,e.formData.header_sidebar_logo_url=j.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.login_button_show"),name:"login_button_show",help:e.rules.login_button_show?e.rules.login_button_show.message:null,validateStatus:e.rules.login_button_show?"error":null},{default:a(()=>[t(P,{checked:e.formData.login_button_show,"onUpdate:checked":n[19]||(n[19]=j=>e.formData.login_button_show=j),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.login_button_show=="1"?(p(),A(m,{key:0,span:16},{default:a(()=>[t(y,{label:e.$t("website_settings.login_button_text"),name:"login_button_text",help:e.rules.login_button_text?e.rules.login_button_text.message:null,validateStatus:e.rules.login_button_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.login_button_text,"onUpdate:value":n[20]||(n[20]=j=>e.formData.login_button_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.login_button_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})):R("",!0)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{span:8},{default:a(()=>[t(y,{label:e.$t("website_settings.register_button_show"),name:"register_button_show",help:e.rules.register_button_show?e.rules.register_button_show.message:null,validateStatus:e.rules.register_button_show?"error":null},{default:a(()=>[t(P,{checked:e.formData.register_button_show,"onUpdate:checked":n[21]||(n[21]=j=>e.formData.register_button_show=j),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.register_button_show=="1"?(p(),A(m,{key:0,span:16},{default:a(()=>[t(y,{label:e.$t("website_settings.register_button_text"),name:"register_button_text",help:e.rules.register_button_text?e.rules.register_button_text.message:null,validateStatus:e.rules.register_button_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.register_button_text,"onUpdate:value":n[22]||(n[22]=j=>e.formData.register_button_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_button_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})):R("",!0)]),_:1}),t(K,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.home_text"),name:"home_text",help:e.rules.home_text?e.rules.home_text.message:null,validateStatus:e.rules.home_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.home_text,"onUpdate:value":n[23]||(n[23]=j=>e.formData.home_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.home_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.features_text"),name:"features_text",help:e.rules.features_text?e.rules.features_text.message:null,validateStatus:e.rules.features_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.features_text,"onUpdate:value":n[24]||(n[24]=j=>e.formData.features_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.features_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.pricing_text"),name:"pricing_text",help:e.rules.pricing_text?e.rules.pricing_text.message:null,validateStatus:e.rules.pricing_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.pricing_text,"onUpdate:value":n[25]||(n[25]=j=>e.formData.pricing_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.pricing_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.contact_text"),name:"contact_text",help:e.rules.contact_text?e.rules.contact_text.message:null,validateStatus:e.rules.contact_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.contact_text,"onUpdate:value":n[26]||(n[26]=j=>e.formData.contact_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.contact_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(y,{label:e.$t("website_settings.register_text"),name:"register_text",help:e.rules.register_text?e.rules.register_text.message:null,validateStatus:e.rules.register_text?"error":null,class:"required"},{default:a(()=>[t(C,{value:e.formData.register_text,"onUpdate:value":n[27]||(n[27]=j=>e.formData.register_text=j),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(y,null,{default:a(()=>[t(B,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(V)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Ur=H(Cr,[["render",Or]]),Ar={props:["langKey"],components:{PlusOutlined:Y,EditOutlined:J,SaveOutlined:Q,Upload:se},setup(e){const n=ye(e),{details:f}=he("website_seo"),{slugify:o}=ee();return G(()=>{n.columns.value=f.value.columns,n.settingType.value=f.value.setting_type,n.langType.value=f.value.lang_type,n.initData.value=f.value.init_data,n.deletable.value=!1,n.addable.value=!1,n.getData(e.langKey)}),{...n,slugify:o}}};function qr(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("a-row"),c=l("a-textarea"),h=l("Upload"),D=l("a-form"),m=l("SaveOutlined"),g=l("a-button"),S=l("a-modal"),v=l("EditOutlined"),k=l("a-space"),C=l("a-table");return p(),q(z,null,[t(d,{span:16},{default:a(()=>[t(u,null,{default:a(()=>[t(S,{open:e.visible,"onUpdate:open":n[5]||(n[5]=y=>e.visible=y),title:e.addEditTitle},{footer:a(()=>[t(g,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(m)]),default:a(()=>[r(" "+s(e.addEditType=="add"?e.$t("common.create"):e.$t("common.update")),1)]),_:1},8,["loading","onClick"]),t(g,{key:"back",onClick:e.onClose},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(D,{layout:"vertical"},{default:a(()=>[t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("website_settings.seo_title"),name:"seo_title",help:e.rules.seo_title?e.rules.seo_title.message:null,validateStatus:e.rules.seo_title?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.seo_title,"onUpdate:value":n[0]||(n[0]=y=>e.formData.seo_title=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.seo_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("website_settings.seo_author"),name:"seo_author",help:e.rules.seo_author?e.rules.seo_author.message:null,validateStatus:e.rules.seo_author?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.seo_author,"onUpdate:value":n[1]||(n[1]=y=>e.formData.seo_author=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.seo_author")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("website_settings.seo_keywords"),name:"seo_keywords",help:e.rules.seo_keywords?e.rules.seo_keywords.message:null,validateStatus:e.rules.seo_keywords?"error":null},{default:a(()=>[t(c,{value:e.formData.seo_keywords,"onUpdate:value":n[2]||(n[2]=y=>e.formData.seo_keywords=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.seo_keywords")]),rows:2},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("website_settings.seo_description"),name:"seo_description",help:e.rules.seo_description?e.rules.seo_description.message:null,validateStatus:e.rules.seo_description?"error":null},{default:a(()=>[t(c,{value:e.formData.seo_description,"onUpdate:value":n[3]||(n[3]=y=>e.formData.seo_description=y),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.seo_description")]),rows:2},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(d,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("website_settings.seo_image"),name:"seo_image",help:e.rules.seo_image?e.rules.seo_image.message:null,validateStatus:e.rules.seo_image?"error":null},{default:a(()=>[t(h,{formData:e.formData,folder:"website",imageField:"seo_image",onOnFileUploaded:n[4]||(n[4]=y=>{e.formData.seo_image=y.file,e.formData.seo_image_url=y.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title"])]),_:1})]),_:1}),t(d,{gutter:[18,18],class:"mt-20 mb-20"},{default:a(()=>[t(u,{span:24},{default:a(()=>[t(C,{columns:e.columns,"row-key":y=>y.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:y,record:b})=>[y.dataIndex==="action"?(p(),A(k,{key:0},{default:a(()=>[t(g,{type:"primary",onClick:U=>e.editItem(b)},{icon:a(()=>[t(v)]),_:2},1032,["onClick"])]),_:2},1024)):R("",!0)]),_:1},8,["columns","row-key","data-source"])]),_:1})]),_:1})],64)}const Kr=H(Ar,[["render",qr]]),Tr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,Seo:Kr},setup(){return{...ce()}}};function Pr(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("Seo"),v=l("a-tab-pane"),k=l("a-tabs"),C=l("a-card"),y=l("admin-page-table-content"),b=l("a-row");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("website_settings.seo")),1)]),_:1})]),_:1})]),_:1}),t(b,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(y,null,{default:a(()=>[t(C,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(k,{activeKey:e.activeKey,"onUpdate:activeKey":n[0]||(n[0]=U=>e.activeKey=U),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,U=>(p(),A(v,{key:U.key,value:U.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:U.image_url},null,8,["src"]),r(" "+s(U.name),1)])]),default:a(()=>[t(S,{langKey:e.activeKey},null,8,["langKey"])]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const zr=H(Tr,[["render",Pr]]),Er=le({props:["data","addText"],components:{PlusOutlined:Y,MinusCircleOutlined:ba},setup(e,{emit:n}){const f=I([]);G(()=>{f.value=e.data});const o=$=>{let _=f.value.indexOf($);_!==-1&&f.value.splice(_,1)},w=()=>{f.value.push({title:"",value:""})};return re(()=>e.data,($,_)=>{f.value=$}),{dynamicValidateForm:f,removeItem:o,addItem:w}}});function Ir(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("MinusCircleOutlined"),c=l("a-row"),h=l("PlusOutlined"),D=l("a-button");return p(),q("div",null,[(p(!0),q(z,null,X(e.dynamicValidateForm,(m,g)=>(p(),q("div",{key:g},[t(c,{gutter:[16,16]},{default:a(()=>[t(u,{xs:10,sm:10,md:11,lg:11},{default:a(()=>[t(i,{name:["dataArray",g,"title"]},{default:a(()=>[t(_,{value:m.title,"onUpdate:value":S=>m.title=S,placeholder:e.$t("common.title"),rules:{required:!0,message:e.$t("front_setting.required_text",[e.$t("common.title")])}},null,8,["value","onUpdate:value","placeholder","rules"])]),_:2},1032,["name"])]),_:2},1024),t(u,{xs:10,sm:10,md:11,lg:11},{default:a(()=>[t(i,{name:["dataArray",g,"value"]},{default:a(()=>[t(_,{value:m.value,"onUpdate:value":S=>m.value=S,placeholder:e.$t("common.value"),rules:{required:!0,message:e.$t("front_setting.required_text",[e.$t("common.value")])}},null,8,["value","onUpdate:value","placeholder","rules"])]),_:2},1032,["name"])]),_:2},1024),t(u,{xs:4,sm:4,md:2,lg:2},{default:a(()=>[t(d,{onClick:S=>e.removeItem(m)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]))),128)),t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,null,{default:a(()=>[t(D,{type:"dashed",block:"",onClick:e.addItem},{default:a(()=>[t(h),r(" "+s(e.addText),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})])}const Fr=H(Er,[["render",Ir]]),Mr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,DyanmicForm:Fr},setup(){return{...ce()}}};function Rr(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-input"),v=l("a-form-item"),k=l("a-row"),C=l("a-textarea"),y=l("a-divider"),b=l("a-typography-title"),U=l("DyanmicForm"),O=l("SaveOutlined"),P=l("a-button"),T=l("a-form"),L=l("a-tab-pane"),V=l("a-tabs"),B=l("a-card"),N=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_call_to_action_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_call_to_action_settings")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(N,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(V,{activeKey:e.activeKey,"onUpdate:activeKey":n[5]||(n[5]=K=>e.activeKey=K),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,K=>(p(),A(L,{key:K.key,value:K.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:K.image_url},null,8,["src"]),r(" "+s(K.name),1)])]),default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(T,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("website_settings.call_to_action_title"),name:"call_to_action_title",help:e.rules.call_to_action_title?e.rules.call_to_action_title.message:null,validateStatus:e.rules.call_to_action_title?"error":null},{default:a(()=>[t(S,{value:e.formData.call_to_action_title,"onUpdate:value":n[0]||(n[0]=E=>e.formData.call_to_action_title=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.call_to_action_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(v,{label:e.$t("website_settings.call_to_action_description"),name:"call_to_action_description",help:e.rules.call_to_action_description?e.rules.call_to_action_description.message:null,validateStatus:e.rules.call_to_action_description?"error":null},{default:a(()=>[t(C,{value:e.formData.call_to_action_description,"onUpdate:value":n[1]||(n[1]=E=>e.formData.call_to_action_description=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.call_to_action_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("website_settings.call_to_action_no_email_sell_text"),name:"call_to_action_no_email_sell_text",help:e.rules.call_to_action_no_email_sell_text?e.rules.call_to_action_no_email_sell_text.message:null,validateStatus:e.rules.call_to_action_no_email_sell_text?"error":null},{default:a(()=>[t(S,{value:e.formData.call_to_action_no_email_sell_text,"onUpdate:value":n[2]||(n[2]=E=>e.formData.call_to_action_no_email_sell_text=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.call_to_action_no_email_sell_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.call_to_action_email_text"),name:"call_to_action_email_text",help:e.rules.call_to_action_email_text?e.rules.call_to_action_email_text.message:null,validateStatus:e.rules.call_to_action_email_text?"error":null},{default:a(()=>[t(S,{value:e.formData.call_to_action_email_text,"onUpdate:value":n[3]||(n[3]=E=>e.formData.call_to_action_email_text=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.call_to_action_email_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.call_to_action_submit_button_text"),name:"call_to_action_submit_button_text",help:e.rules.call_to_action_submit_button_text?e.rules.call_to_action_submit_button_text.message:null,validateStatus:e.rules.call_to_action_submit_button_text?"error":null},{default:a(()=>[t(S,{value:e.formData.call_to_action_submit_button_text,"onUpdate:value":n[4]||(n[4]=E=>e.formData.call_to_action_submit_button_text=E),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.call_to_action_submit_button_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(y),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(b,{level:5,style:{marginBottom:"20px"}},{default:a(()=>[r(s(e.$t("front_setting.footer_contact_widget")),1)]),_:1}),e.formData.call_to_action_widgets?(p(),A(U,{key:0,data:e.formData.call_to_action_widgets,addText:e.$t("website_settings.call_to_action_add_widget")},null,8,["data","addText"])):R("",!0)]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(P,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(O)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Hr=H(Mr,[["render",Rr]]),Wr={components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:Z,FormItemHeading:_e,Upload:se},setup(){return{...ce()}}};function Br(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),c=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),S=l("a-input"),v=l("a-form-item"),k=l("a-row"),C=l("a-textarea"),y=l("Upload"),b=l("FormItemHeading"),U=l("SaveOutlined"),O=l("a-button"),P=l("a-form"),T=l("a-tab-pane"),L=l("a-tabs"),V=l("a-card"),B=l("admin-page-table-content");return p(),q(z,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.website_register_settings"),class:"p-0"},{extra:a(()=>[t(_,{btnType:"primary",tooltip:!1},{default:a(()=>[r(s(e.$t("langs.add")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:a(()=>[t(c,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(d,null,{default:a(()=>[t(u,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_settings")),1)]),_:1}),t(d,null,{default:a(()=>[r(s(e.$t("menu.website_register_settings")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(D)]),_:1}),t(m,{xs:24,sm:24,md:24,lg:20,xl:20},{default:a(()=>[t(B,null,{default:a(()=>[t(V,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(L,{activeKey:e.activeKey,"onUpdate:activeKey":n[13]||(n[13]=N=>e.activeKey=N),onChange:e.langChanged},{default:a(()=>[(p(!0),q(z,null,X(e.allLangs,N=>(p(),A(T,{key:N.key,value:N.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:N.image_url},null,8,["src"]),r(" "+s(N.name),1)])]),default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(P,{layout:"vertical"},{default:a(()=>[t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("website_settings.register_title"),name:"register_title",help:e.rules.register_title?e.rules.register_title.message:null,validateStatus:e.rules.register_title?"error":null},{default:a(()=>[t(S,{value:e.formData.register_title,"onUpdate:value":n[0]||(n[0]=K=>e.formData.register_title=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_title")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{span:24},{default:a(()=>[t(v,{label:e.$t("website_settings.register_description"),name:"register_description",help:e.rules.register_description?e.rules.register_description.message:null,validateStatus:e.rules.register_description?"error":null},{default:a(()=>[t(C,{value:e.formData.register_description,"onUpdate:value":n[1]||(n[1]=K=>e.formData.register_description=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_description")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:8,md:8,lg:8},{default:a(()=>[t(v,{label:e.$t("website_settings.register_background"),name:"register_background",help:e.rules.register_background?e.rules.register_background.message:null,validateStatus:e.rules.register_background?"error":null},{default:a(()=>[t(y,{formData:e.formData,folder:"website",imageField:"register_background",onOnFileUploaded:n[2]||(n[2]=K=>{e.formData.register_background=K.file,e.formData.register_background_url=K.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_agree_text"),name:"register_agree_text",help:e.rules.register_agree_text?e.rules.register_agree_text.message:null,validateStatus:e.rules.register_agree_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_agree_text,"onUpdate:value":n[3]||(n[3]=K=>e.formData.register_agree_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_agree_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_agree_url"),name:"register_agree_url",help:e.rules.register_agree_url?e.rules.register_agree_url.message:null,validateStatus:e.rules.register_agree_url?"error":null},{default:a(()=>[t(S,{value:e.formData.register_agree_url,"onUpdate:value":n[4]||(n[4]=K=>e.formData.register_agree_url=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_agree_url")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(b,null,{default:a(()=>[r(s(e.$t("website_settings.text_settings")),1)]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,{label:e.$t("website_settings.register_company_name_text"),name:"register_company_name_text",help:e.rules.register_company_name_text?e.rules.register_company_name_text.message:null,validateStatus:e.rules.register_company_name_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_company_name_text,"onUpdate:value":n[5]||(n[5]=K=>e.formData.register_company_name_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_company_name_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_email_text"),name:"register_email_text",help:e.rules.register_email_text?e.rules.register_email_text.message:null,validateStatus:e.rules.register_email_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_email_text,"onUpdate:value":n[6]||(n[6]=K=>e.formData.register_email_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_email_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_phone_text"),name:"register_phone_text",help:e.rules.register_phone_text?e.rules.register_phone_text.message:null,validateStatus:e.rules.register_phone_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_phone_text,"onUpdate:value":n[7]||(n[7]=K=>e.formData.register_phone_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_phone_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_password_text"),name:"register_password_text",help:e.rules.register_password_text?e.rules.register_password_text.message:null,validateStatus:e.rules.register_password_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_password_text,"onUpdate:value":n[8]||(n[8]=K=>e.formData.register_password_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_password_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_confirm_password_text"),name:"register_confirm_password_text",help:e.rules.register_confirm_password_text?e.rules.register_confirm_password_text.message:null,validateStatus:e.rules.register_confirm_password_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_confirm_password_text,"onUpdate:value":n[9]||(n[9]=K=>e.formData.register_confirm_password_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_confirm_password_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_submit_button_text"),name:"register_submit_button_text",help:e.rules.register_submit_button_text?e.rules.register_submit_button_text.message:null,validateStatus:e.rules.register_submit_button_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_submit_button_text,"onUpdate:value":n[10]||(n[10]=K=>e.formData.register_submit_button_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_submit_button_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_success_text"),name:"register_success_text",help:e.rules.register_success_text?e.rules.register_success_text.message:null,validateStatus:e.rules.register_success_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_success_text,"onUpdate:value":n[11]||(n[11]=K=>e.formData.register_success_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_success_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.register_success_text"),name:"register_success_text",help:e.rules.register_success_text?e.rules.register_success_text.message:null,validateStatus:e.rules.register_success_text?"error":null},{default:a(()=>[t(S,{value:e.formData.register_success_text,"onUpdate:value":n[12]||(n[12]=K=>e.formData.register_success_text=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.register_success_text")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(k,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(v,null,{default:a(()=>[t(O,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(U)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1032,["value"]))),128))]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Lr=H(Wr,[["render",Br]]),Vr=[{path:"/superadmin/website-settings/",component:be,children:[{path:"header",component:Ur,name:"superadmin.website_settings.header.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_header_settings",permission:"superadmin"}},{path:"clients",component:As,name:"superadmin.website_settings.clients.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_clients_settings",permission:"superadmin"}},{path:"testimonials",component:Is,name:"superadmin.website_settings.testimonials.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_testimonials_settings",permission:"superadmin"}},{path:"features",component:Xs,name:"superadmin.website_settings.features.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_features_settings",permission:"superadmin"}},{path:"contact",component:xs,name:"superadmin.website_settings.contact.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_contact_settings",permission:"superadmin"}},{path:"price",component:sr,name:"superadmin.website_settings.price.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_price_settings",permission:"superadmin"}},{path:"faq",component:_r,name:"superadmin.website_settings.faq.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_faq_settings",permission:"superadmin"}},{path:"footer",component:yr,name:"superadmin.website_settings.footer.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_footer_settings",permission:"superadmin"}},{path:"call-to-action",component:Hr,name:"superadmin.website_settings.call_to_action.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_call_to_action_settings",permission:"superadmin"}},{path:"register",component:Lr,name:"superadmin.website_settings.register.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_register_settings",permission:"superadmin"}},{path:"seo",component:zr,name:"superadmin.website_settings.seo.index",meta:{requireAuth:!0,menuParent:"website_settings",menuKey:e=>"website_seo_settings",permission:"superadmin"}}]}],jr={props:{showSubmitButton:{default:!0}},emits:["updateSuccess"],components:{EyeOutlined:ae,PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SettingOutlined:Ie,ColorPicker:lt,Upload:se,CurrencyAddButton:Le,FormItemHeading:_e},setup(e,{emit:n}){const{addEditRequestAdmin:f,loading:o,rules:w}=oe(),{permsArray:$,appSetting:_,dayjsObject:i}=ee(),{t:u}=te(),d=ie(),c=I({}),h=I([]),D=I([]),m=I([]),g=I([]),S=_.value,v="superadmin/currencies?limit=10000",k="timezones",C=I("linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%)"),y=window.config.theme_mode;G(()=>{const P=axiosAdmin.get(v),T=axiosAdmin.get(k);Promise.all([P,T]).then(([L,V])=>{h.value=L.data,D.value=V.data.timezones,m.value=V.data.date_formates,g.value=V.data.time_formates,b()})});const b=()=>{c.value={name:S.name,short_name:S.short_name,email:S.email,phone:S.phone,address:S.address,left_sidebar_theme:S.left_sidebar_theme,dark_logo:S.dark_logo,dark_logo_url:S.dark_logo_url,light_logo:S.light_logo,light_logo_url:S.light_logo_url,small_dark_logo:S.small_dark_logo,small_light_logo:S.small_light_logo,small_dark_logo_url:S.small_dark_logo_url,small_light_logo_url:S.small_light_logo_url,login_image:S.login_image,login_image_url:S.login_image_url,shortcut_menus:S.shortcut_menus,rtl:S.rtl,currency_id:S.x_currency_id,primary_color:S.primary_color,timezone:S.timezone,date_format:S.date_format,time_format:S.time_format,auto_detect_timezone:S.auto_detect_timezone,app_debug:S.app_debug,update_app_notification:S.update_app_notification,_method:"PUT"}};return{permsArray:$,formData:c,loading:o,rules:w,currencies:h,onSubmit:()=>{f({url:`superadmin/global-company/${S.xid}`,data:c.value,successMessage:u("company.updated"),success:P=>{d.dispatch("auth/updateApp"),n("updateSuccess")}})},currencyAdded:()=>{axiosAdmin.get(v).then(P=>{h.value=P.data})},gradientColor:C,timezones:D,dateFormats:m,timeFormats:g,dayjsObject:i,appThemeMode:y}}},Nr={class:"mt-40"},Yr={style:{display:"flex"}},Gr={class:"mt-30"},Qr={class:"mt-30"};function Xr(e,n,f,o,w,$){const _=l("FormItemHeading"),i=l("a-input"),u=l("a-form-item"),d=l("a-col"),c=l("a-row"),h=l("a-select-option"),D=l("a-select"),m=l("CurrencyAddButton"),g=l("a-switch"),S=l("color-picker"),v=l("Upload"),k=l("SaveOutlined"),C=l("a-button"),y=l("a-form");return p(),A(y,{layout:"vertical"},{default:a(()=>[M("div",Nr,[t(_,null,{default:a(()=>[r(s(e.$t("setup_company.basic_settings")),1)]),_:1})]),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.name"),name:"name",help:o.rules.name?o.rules.name.message:null,validateStatus:o.rules.name?"error":null,class:"required"},{default:a(()=>[t(i,{value:o.formData.name,"onUpdate:value":n[0]||(n[0]=b=>o.formData.name=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.short_name"),name:"short_name",help:o.rules.short_name?o.rules.short_name.message:null,validateStatus:o.rules.short_name?"error":null,class:"required"},{default:a(()=>[t(i,{value:o.formData.short_name,"onUpdate:value":n[1]||(n[1]=b=>o.formData.short_name=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.short_name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.email"),name:"email",help:o.rules.email?o.rules.email.message:null,validateStatus:o.rules.email?"error":null,class:"required"},{default:a(()=>[t(i,{value:o.formData.email,"onUpdate:value":n[2]||(n[2]=b=>o.formData.email=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.email")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.phone"),name:"phone",help:o.rules.phone?o.rules.phone.message:null,validateStatus:o.rules.phone?"error":null,class:"required"},{default:a(()=>[t(i,{value:o.formData.phone,"onUpdate:value":n[3]||(n[3]=b=>o.formData.phone=b),placeholder:e.$t("common.placeholder_default_text",[e.$t("company.phone")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.currency"),name:"currency_id",help:o.rules.currency_id?o.rules.currency_id.message:null,validateStatus:o.rules.currency_id?"error":null,class:"required"},{default:a(()=>[M("span",Yr,[t(D,{value:o.formData.currency_id,"onUpdate:value":n[4]||(n[4]=b=>o.formData.currency_id=b),placeholder:e.$t("common.select_default_text",[e.$t("company.currency")]),allowClear:!0,optionFilterProp:"label","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.currencies,b=>(p(),A(h,{key:b.xid,value:b.xid},{default:a(()=>[r(s(`${b.name} (${b.symbol})`),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"]),t(m,{onOnAddSuccess:o.currencyAdded,panelType:"superadmin"},null,8,["onOnAddSuccess"])])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.layout"),name:"rtl",help:o.rules.rtl?o.rules.rtl.message:null,validateStatus:o.rules.rtl?"error":null,class:"required"},{default:a(()=>[t(D,{value:o.formData.rtl,"onUpdate:value":n[5]||(n[5]=b=>o.formData.rtl=b),placeholder:e.$t("common.select_default_text",[e.$t("company.layout")]),optionFilterProp:"label","show-search":""},{default:a(()=>[t(h,{key:"rtl",value:1},{default:a(()=>[r(s(e.$t("company.rtl")),1)]),_:1}),t(h,{key:"ltr",value:0},{default:a(()=>[r(s(e.$t("company.ltr")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:4,lg:4},{default:a(()=>[t(u,{label:e.$t("company.auto_detect_timezone"),name:"auto_detect_timezone",help:o.rules.auto_detect_timezone?o.rules.auto_detect_timezone.message:null,validateStatus:o.rules.auto_detect_timezone?"error":null},{default:a(()=>[t(g,{checked:o.formData.auto_detect_timezone,"onUpdate:checked":n[6]||(n[6]=b=>o.formData.auto_detect_timezone=b),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:8,lg:8},{default:a(()=>[t(u,{label:e.$t("company.default_timezone"),name:"timezone",help:o.rules.timezone?o.rules.timezone.message:null,validateStatus:o.rules.timezone?"error":null,class:"required"},{default:a(()=>[t(D,{value:o.formData.timezone,"onUpdate:value":n[7]||(n[7]=b=>o.formData.timezone=b),placeholder:e.$t("common.select_default_text",[e.$t("company.default_timezone")]),optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.timezones,(b,U)=>(p(),A(h,{key:U,value:b},{default:a(()=>[r(s(b),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:4,lg:4},{default:a(()=>[t(u,{label:e.$t("company.app_debug"),name:"app_debug",help:o.rules.app_debug?o.rules.app_debug.message:null,validateStatus:o.rules.app_debug?"error":null},{default:a(()=>[t(g,{checked:o.formData.app_debug,"onUpdate:checked":n[8]||(n[8]=b=>o.formData.app_debug=b),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:4,lg:4},{default:a(()=>[t(u,{label:e.$t("company.update_app_notification"),name:"update_app_notification",help:o.rules.update_app_notification?o.rules.update_app_notification.message:null,validateStatus:o.rules.update_app_notification?"error":null},{default:a(()=>[t(g,{checked:o.formData.update_app_notification,"onUpdate:checked":n[9]||(n[9]=b=>o.formData.update_app_notification=b),checkedValue:1,unCheckedValue:0},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.date_format"),name:"date_format",help:o.rules.date_format?o.rules.date_format.message:null,validateStatus:o.rules.date_format?"error":null,class:"required"},{default:a(()=>[t(D,{value:o.formData.date_format,"onUpdate:value":n[10]||(n[10]=b=>o.formData.date_format=b),placeholder:e.$t("common.select_default_text",[e.$t("company.date_format")]),optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.dateFormats,(b,U)=>(p(),A(h,{key:U,value:b},{default:a(()=>[r(s(`(${U}) => `+o.dayjsObject().format(b)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.time_format"),name:"time_format",help:o.rules.time_format?o.rules.time_format.message:null,validateStatus:o.rules.time_format?"error":null,class:"required"},{default:a(()=>[t(D,{value:o.formData.time_format,"onUpdate:value":n[11]||(n[11]=b=>o.formData.time_format=b),placeholder:e.$t("common.select_default_text",[e.$t("company.time_format")]),optionFilterProp:"value","show-search":""},{default:a(()=>[(p(!0),q(z,null,X(o.timeFormats,(b,U)=>(p(),A(h,{key:U,value:U},{default:a(()=>[r(s(`(${b}) => `+o.dayjsObject().format(U)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),M("div",Gr,[t(_,null,{default:a(()=>[r(s(e.$t("setup_company.theme_settings")),1)]),_:1})]),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.left_sidebar_theme"),name:"left_sidebar_theme",help:o.rules.left_sidebar_theme?o.rules.left_sidebar_theme.message:null,validateStatus:o.rules.left_sidebar_theme?"error":null},{default:a(()=>[t(D,{value:o.formData.left_sidebar_theme,"onUpdate:value":n[12]||(n[12]=b=>o.formData.left_sidebar_theme=b),placeholder:e.$t("common.select_default_text",[e.$t("company.left_sidebar_theme")])},{default:a(()=>[t(h,{key:"dark",value:"dark"},{default:a(()=>[r(s(e.$t("company.dark")),1)]),_:1}),o.appThemeMode!="dark"?(p(),A(h,{key:"light",value:"light"},{default:a(()=>[r(s(e.$t("company.light")),1)]),_:1})):R("",!0)]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(u,{label:e.$t("company.primary_color"),name:"primary_color",help:o.rules.primary_color?o.rules.primary_color.message:null,validateStatus:o.rules.primary_color?"error":null},{default:a(()=>[t(S,{pureColor:o.formData.primary_color,"onUpdate:pureColor":n[13]||(n[13]=b=>o.formData.primary_color=b),format:"hex",useType:"pure",gradientColor:o.gradientColor,"onUpdate:gradientColor":n[14]||(n[14]=b=>o.gradientColor=b)},null,8,["pureColor","gradientColor"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),M("div",Qr,[t(_,null,{default:a(()=>[r(s(e.$t("setup_company.logo_settings")),1)]),_:1})]),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(u,{label:e.$t("company.dark_logo"),name:"dark_logo",help:o.rules.dark_logo?o.rules.dark_logo.message:null,validateStatus:o.rules.dark_logo?"error":null},{default:a(()=>[t(v,{formData:o.formData,folder:"company",imageField:"dark_logo",onOnFileUploaded:n[15]||(n[15]=b=>{o.formData.dark_logo=b.file,o.formData.dark_logo_url=b.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(u,{label:e.$t("company.light_logo"),name:"light_logo",help:o.rules.light_logo?o.rules.light_logo.message:null,validateStatus:o.rules.light_logo?"error":null},{default:a(()=>[t(v,{formData:o.formData,folder:"company",imageField:"light_logo",onOnFileUploaded:n[16]||(n[16]=b=>{o.formData.light_logo=b.file,o.formData.light_logo_url=b.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(u,{label:e.$t("company.small_dark_logo"),name:"small_dark_logo",help:o.rules.small_dark_logo?o.rules.small_dark_logo.message:null,validateStatus:o.rules.small_dark_logo?"error":null},{default:a(()=>[t(v,{formData:o.formData,folder:"company",imageField:"small_dark_logo",onOnFileUploaded:n[17]||(n[17]=b=>{o.formData.small_dark_logo=b.file,o.formData.small_dark_logo_url=b.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(d,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(u,{label:e.$t("company.small_light_logo"),name:"small_light_logo",help:o.rules.small_light_logo?o.rules.small_light_logo.message:null,validateStatus:o.rules.small_light_logo?"error":null},{default:a(()=>[t(v,{formData:o.formData,folder:"company",imageField:"small_light_logo",onOnFileUploaded:n[18]||(n[18]=b=>{o.formData.small_light_logo=b.file,o.formData.small_light_logo_url=b.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(c,{gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:6,lg:6},{default:a(()=>[t(u,{label:e.$t("company.login_image"),name:"login_image",help:o.rules.login_image?o.rules.login_image.message:null,validateStatus:o.rules.login_image?"error":null},{default:a(()=>[t(v,{formData:o.formData,folder:"company",imageField:"login_image",onOnFileUploaded:n[19]||(n[19]=b=>{o.formData.login_image=b.file,o.formData.login_image_url=b.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),f.showSubmitButton?(p(),A(c,{key:0,gutter:16},{default:a(()=>[t(d,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(u,null,{default:a(()=>[t(C,{type:"primary",onClick:o.onSubmit,loading:o.loading},{icon:a(()=>[t(k)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})):R("",!0)]),_:1})}const Jr=H(jr,[["render",Xr]]),Zr=le({components:{PlusOutlined:Y,EditOutlined:J,DeleteOutlined:x,DoubleRightOutlined:at,DoubleLeftOutlined:ya,SaveOutlined:Q,SyncOutlined:Fe,CheckCircleOutlined:Ce,HomeOutlined:ze,InfoCircleOutlined:nt,CurrencyTable:Tt,EditSetupSetting:Jr,WhiteLabelSetting:yt},setup(){const e=ha(),n=ie(),f=I(null),o=I(null),w=I(null),$=I([]),_=I(0),i=I(0),u=He({currencyStepStatus:"wait",companyWhiteLabelStepStatus:"wait",companySettingStepStatus:"wait"}),d=I(!1),c=I(!1),h=I(!1);G(()=>{D()});const D=()=>{axiosAdmin.get("app").then(O=>{$.value=O.data,u.currencyStepStatus=$.value.total_currencies>0?"finish":"wait",u.companyWhiteLabelStepStatus=$.value.app.white_label_completed?"finish":"wait",u.companySettingStepStatus=m()==!1?"finish":"wait",$.value.total_currencies==0?(_.value=0,i.value=0,u.currencyStepStatus="error"):$.value.app.white_label_completed==!1?(_.value=1,i.value=1,u.companyWhiteLabelStepStatus="error"):m()?(_.value=2,i.value=2,u.companySettingStepStatus="error"):(_.value=2,i.value=2,c.value=!0,d.value=!0)})},m=()=>$.value.app.x_currency_id==null,g=()=>{f.value.addItem()},S=O=>{D()},v=()=>{w.value.onSubmit()},k=()=>{d.value=!0,axiosAdmin.post("/user").then(function(O){n.commit("auth/updateUser",O.data.user),c.value=!0}).catch(function(O){})},C=()=>{d.value=!1,e.push({name:"superadmin.dashboard.index"})},y=()=>{_.value=_.value==0?0:_.value-1},b=()=>{_.value==1?h.value=!0:_.value=_.value>=2?2:_.value+1},U=()=>{axiosAdmin.post("superadmin/white-label-completed").then(function(O){n.dispatch("auth/updateApp"),h.value=!1,_.value=_.value>=2?2:_.value+1}).catch(function(O){})};return{appDetails:$,currentStep:_,correctStep:i,...xe(u),currencyTableRef:f,addCurrency:g,currencyAddSuccess:S,companySettingRef:w,submitCompanySetting:v,companySettingUpdated:k,showFinalModal:d,setupCompleted:c,goToDashboard:C,companyWhiteLableRef:o,goBack:y,goNext:b,showConfirmWhiteLabelModal:h,confirmWhiteLabel:U}}}),xr={style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"left",zIndex:1,marginBottom:"10px"}},ei={key:0,style:{color:"#7676e3"}},ti={key:1,style:{color:"#7676e3"}},ai={style:{color:"#7676e3"}};function li(e,n,f,o,w,$){const _=l("a-alert"),i=l("a-step"),u=l("a-steps"),d=l("a-divider"),c=l("PlusOutlined"),h=l("a-button"),D=l("CurrencyTable"),m=l("WhiteLabelSetting"),g=l("EditSetupSetting"),S=l("a-col"),v=l("a-row"),k=l("a-card"),C=l("DoubleLeftOutlined"),y=l("DoubleRightOutlined"),b=l("SaveOutlined"),U=l("a-space"),O=l("CheckCircleOutlined"),P=l("InfoCircleOutlined"),T=l("HomeOutlined"),L=l("SyncOutlined"),V=l("a-result"),B=l("a-modal");return p(),q(z,null,[t(_,{message:e.$t("setup_superadmin_company.setup_not_completed"),description:e.$t("setup_superadmin_company.setup_not_completed_description"),type:"error","show-icon":""},null,8,["message","description"]),t(k,{class:"setup-page-content-container"},{default:a(()=>[t(v,{class:"mt-40"},{default:a(()=>[t(S,{span:20,offset:1},{default:a(()=>[t(u,{current:e.currentStep},{default:a(()=>[t(i,{status:e.currencyStepStatus},{title:a(()=>[r(s(e.$t("setup_superadmin_company.currency")),1)]),description:a(()=>[M("span",null,s(e.$t("setup_superadmin_company.add_first_currency")),1)]),_:1},8,["status"]),t(i,{status:e.companyWhiteLabelStepStatus},{title:a(()=>[r(s(e.$t("setup_superadmin_company.white_label_settings")),1)]),description:a(()=>[M("span",null,s(e.$t("setup_superadmin_company.white_label_descrtipion")),1)]),_:1},8,["status"]),t(i,{status:e.companySettingStepStatus},{title:a(()=>[r(s(e.$t("setup_superadmin_company.company_settings")),1)]),description:a(()=>[M("span",null,s(e.$t("setup_superadmin_company.set_company_basic_settings")),1)]),_:1},8,["status"])]),_:1},8,["current"]),t(d),e.appDetails&&e.appDetails.app&&e.appDetails.app.name?(p(),q(z,{key:0},[e.currentStep==0?(p(),q(z,{key:0},[t(h,{type:"primary",onClick:e.addCurrency},{default:a(()=>[t(c),r(" "+s(e.$t("currency.add")),1)]),_:1},8,["onClick"]),t(D,{class:"mb-40",ref:"currencyTableRef",showFilter:!1,panelType:"superadmin",onAddOrEditSuccess:e.currencyAddSuccess},null,8,["onAddOrEditSuccess"])],64)):R("",!0),e.currentStep==1?(p(),A(m,{key:1})):R("",!0),e.currentStep==2?(p(),A(g,{key:2,class:"mb-40",ref:"companySettingRef",showSubmitButton:!1,onUpdateSuccess:e.companySettingUpdated},null,8,["onUpdateSuccess"])):R("",!0)],64)):R("",!0)]),_:1})]),_:1})]),_:1}),t(v,null,{default:a(()=>[t(S,{span:20,offset:1},{default:a(()=>[M("div",xr,[t(U,null,{default:a(()=>[e.currentStep>=1&&e.currentStep!=2?(p(),A(h,{key:0,type:"primary",style:{backgroundColor:"#faad14",border:"#faad14"},onClick:e.goBack},{default:a(()=>[t(C),r(" "+s(e.$t("setup_superadmin_company.previous_step")),1)]),_:1},8,["onClick"])):R("",!0),e.currentStep<2?(p(),A(h,{key:1,type:"primary",onClick:e.goNext,disabled:e.currentStep>=e.correctStep&&e.currentStep!=1},{default:a(()=>[r(s(e.$t("setup_superadmin_company.next_step"))+" ",1),t(y)]),_:1},8,["onClick","disabled"])):R("",!0),e.currentStep==2&&e.companySettingRef?(p(),A(h,{key:2,type:"primary",style:{backgroundColor:"#52c41a",border:"#52c41a"},onClick:e.submitCompanySetting,loading:e.companySettingRef.loading},{default:a(()=>[t(b),r(" "+s(e.$t("setup_superadmin_company.save_finish_setup")),1)]),_:1},8,["onClick","loading"])):R("",!0)]),_:1})])]),_:1})]),_:1}),t(B,{open:e.showFinalModal,"onUpdate:open":n[0]||(n[0]=N=>e.showFinalModal=N),maskClosable:!1,closable:!1,footer:null,centered:""},{default:a(()=>[t(V,null,{title:a(()=>[e.setupCompleted?(p(),q("span",ei,s(e.$t("setup_superadmin_company.setup_complete_message")),1)):(p(),q("span",ti,s(e.$t("setup_superadmin_company.setup_running_message")),1))]),icon:a(()=>[e.setupCompleted?(p(),A(O,{key:0})):(p(),A(P,{key:1}))]),extra:a(()=>[e.setupCompleted?(p(),A(h,{key:0,type:"primary",style:{backgroundColor:"#52c41a",border:"#52c41a"},onClick:e.goToDashboard},{default:a(()=>[t(T),r(" "+s(e.$t("setup_superadmin_company.go_to_dashboard")),1)]),_:1},8,["onClick"])):(p(),A(L,{key:1,style:{fontSize:"38px",color:"#5254cf"},spin:""}))]),_:1})]),_:1},8,["open"]),t(B,{open:e.showConfirmWhiteLabelModal,"onUpdate:open":n[2]||(n[2]=N=>e.showConfirmWhiteLabelModal=N),maskClosable:!1,footer:null,centered:""},{default:a(()=>[t(V,null,{title:a(()=>[M("span",ai,s(e.$t("setup_superadmin_company.white_label_settings_completed")),1)]),icon:a(()=>[t(P)]),extra:a(()=>[t(U,null,{default:a(()=>[t(h,{type:"primary",style:{backgroundColor:"#52c41a",border:"#52c41a"},onClick:n[1]||(n[1]=()=>{e.showConfirmWhiteLabelModal=!1})},{default:a(()=>[r(s(e.$t("common.no")),1)]),_:1}),t(h,{type:"primary",style:{backgroundColor:"#ff4d4f",border:"#ff4d4f"},onClick:e.confirmWhiteLabel},{default:a(()=>[r(s(e.$t("setup_superadmin_company.yes_uploaded")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["open"])],64)}const ni=H(Zr,[["render",li]]),oi=[{path:"/",component:be,children:[{path:"/superadmin/setup",component:ni,name:"superadmin.setup_app.index",meta:{requireAuth:!0,menuParent:"",menuKey:"setup_company"}}]}],si=()=>{const e="superadmin/email-queries?fields=id,xid,date_time,name,email,message,replied",n="/superadmin/email-queries/send-email",{t:f}=te(),o={email:"",subject:"",body:""},w=[{title:f("email_queries.date_time"),dataIndex:"date_time"},{title:f("email_queries.name"),dataIndex:"name"},{title:f("email_queries.email"),dataIndex:"email"},{title:f("email_queries.message"),dataIndex:"message"},{title:f("email_queries.replied"),dataIndex:"replied"},{title:f("common.action"),dataIndex:"action"}],$=[{key:"name",value:f("common.name")}];return{url:e,addEditUrl:n,columns:w,filterableColumns:$,initData:o}},ri=le({props:["data","visible"],components:{PlusOutlined:Y,LoadingOutlined:Se,SendOutlined:Me},setup(e,{emit:n}){const{t:f}=te(),o=I({xid:void 0,email:"",subject:"",body:""}),{addEditRequestAdmin:w,loading:$,rules:_}=oe(),i=()=>{e.visible=!1,w({url:"/superadmin/email-queries/send-email",data:o.value,successMessage:f("email_queries.eamil_sent_successfully"),success:d=>{n("sentSuccess")}})},u=()=>{n("onCancel")};return re(()=>e.visible,(d,c)=>{e.visible&&(o.value={xid:e.data.xid,email:e.data.email,subject:"",body:""},_.value={})}),{loading:$,rules:_,onSubmit:i,onCloseCancel:u,formData:o}}});function ii(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("a-textarea"),c=l("a-row"),h=l("a-form"),D=l("SendOutlined"),m=l("a-button"),g=l("a-modal");return p(),A(g,{open:e.visible,title:e.$t("email_queries.send_mail"),closable:!1,centered:!0,onOk:e.onSubmit},{footer:a(()=>[t(m,{key:"submit",type:"primary",loading:e.loading,onClick:e.onSubmit},{icon:a(()=>[t(D)]),default:a(()=>[r(" "+s(e.$t("common.send")),1)]),_:1},8,["loading","onClick"]),t(m,{key:"back",onClick:e.onCloseCancel},{default:a(()=>[r(s(e.$t("common.cancel")),1)]),_:1},8,["onClick"])]),default:a(()=>[t(h,{layout:"vertical"},{default:a(()=>[t(c,{gutter:16},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("email_queries.email"),name:"email",help:e.rules.email?e.rules.email.message:null,validateStatus:e.rules.email?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.data.email,"onUpdate:value":n[0]||(n[0]=S=>e.data.email=S),placeholder:e.$t("common.placeholder_default_text",[e.$t("email_queries.email")]),disabled:""},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("email_queries.subject"),name:"subject",help:e.rules.subject?e.rules.subject.message:null,validateStatus:e.rules.subject?"error":null,class:"required"},{default:a(()=>[t(_,{value:e.formData.subject,"onUpdate:value":n[1]||(n[1]=S=>e.formData.subject=S),placeholder:e.$t("common.placeholder_default_text",[e.$t("email_queries.subject")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1}),t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(i,{label:e.$t("email_queries.body"),name:"body",help:e.rules.body?e.rules.body.message:null,validateStatus:e.rules.body?"error":null},{default:a(()=>[t(d,{value:e.formData.body,"onUpdate:value":n[2]||(n[2]=S=>e.formData.body=S),placeholder:e.$t("common.placeholder_default_text",[e.$t("email_queries.body")]),rows:4},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1})]),_:1})]),_:1},8,["open","title","onOk"])}const ui=H(ri,[["render",ii]]),di={components:{PlusOutlined:Y,SendOutlined:Me,CheckOutlined:et,CloseOutlined:Ee,FileExcelOutlined:va,FileDoneOutlined:ka,AddEdit:ui,AdminPageHeader:Pt,EmailNotSetup:We},setup(){const{formatDateTime:e,permsArray:n}=ee(),{url:f,columns:o,filterableColumns:w}=si(),{table:$,tableUrl:_,fetch:i,handleTableChange:u,onTableSearch:d}=Pe(),c=I(!1),h=I({}),D=He({replied:"0"});G(()=>{$.filterableColumns=w,m()});const m=()=>{_.value={url:f,filters:D},i({page:1})};return{filters:D,table:$,permsArray:n,columns:o,filterableColumns:w,handleTableChange:u,onTableSearch:d,formatDateTime:e,viewSendMail:v=>{c.value=!0,h.value=v},onCancel:()=>{c.value=!1},visible:c,detail:h,setUrlData:m}}},mi={class:"table-responsive"};function _i(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),c=l("AdminPageHeader"),h=l("a-select-option"),D=l("a-select"),m=l("a-input-search"),g=l("a-input-group"),S=l("a-col"),v=l("a-row"),k=l("admin-page-filters"),C=l("AddEdit"),y=l("EmailNotSetup"),b=l("FileExcelOutlined"),U=l("a-tab-pane"),O=l("FileDoneOutlined"),P=l("a-tabs"),T=l("CheckOutlined"),L=l("CloseOutlined"),V=l("SendOutlined"),B=l("a-button"),N=l("a-table"),K=l("admin-page-table-content");return p(),q(z,null,[t(c,null,{header:a(()=>[t(_,{title:e.$t("menu.email_queries"),class:"p-0"},null,8,["title"])]),breadcrumb:a(()=>[t(d,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(u,null,{default:a(()=>[t(i,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(u,null,{default:a(()=>[r(s(e.$t("menu.email_queries")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:a(()=>[t(v,{gutter:[16,16]},{default:a(()=>[t(S,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(v,{gutter:[16,16],justify:"end"},{default:a(()=>[t(S,{xs:24,sm:24,md:10,lg:8,xl:6},{default:a(()=>[t(g,{compact:""},{default:a(()=>[t(D,{style:{width:"25%"},value:o.table.searchColumn,"onUpdate:value":n[0]||(n[0]=E=>o.table.searchColumn=E),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(p(!0),q(z,null,X(o.filterableColumns,E=>(p(),A(h,{key:E.key},{default:a(()=>[r(s(E.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(m,{style:{width:"75%"},value:o.table.searchString,"onUpdate:value":n[1]||(n[1]=E=>o.table.searchString=E),"show-search":"",onChange:o.onTableSearch,onSearch:o.onTableSearch,loading:o.table.filterLoading},null,8,["value","onChange","onSearch","loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(K,null,{default:a(()=>[t(C,{visible:o.visible,data:o.detail,onOnCancel:o.onCancel,onSentSuccess:o.onCancel},null,8,["visible","data","onOnCancel","onSentSuccess"]),t(y,{class:"mb-20"}),t(v,null,{default:a(()=>[t(S,{span:24},{default:a(()=>[t(P,{activeKey:o.filters.replied,"onUpdate:activeKey":n[2]||(n[2]=E=>o.filters.replied=E),onChange:o.setUrlData},{default:a(()=>[t(U,{key:"0"},{tab:a(()=>[M("span",null,[t(b)]),r(" "+s(e.$t("email_queries.not_replied")),1)]),_:1}),t(U,{key:"1"},{tab:a(()=>[M("span",null,[t(O)]),r(" "+s(e.$t("email_queries.replied")),1)]),_:1})]),_:1},8,["activeKey","onChange"])]),_:1})]),_:1}),t(v,null,{default:a(()=>[t(S,{span:24},{default:a(()=>[M("div",mi,[t(N,{columns:o.columns,"row-key":E=>E.xid,"data-source":o.table.data,pagination:o.table.pagination,loading:o.table.loading,onChange:o.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:E,record:F})=>[E.dataIndex=="date_time"?(p(),q(z,{key:0},[r(s(o.formatDateTime(F.date_time)),1)],64)):R("",!0),E.dataIndex=="replied"?(p(),q(z,{key:1},[F.replied?(p(),A(T,{key:0,style:{color:"green"}})):(p(),A(L,{key:1,style:{color:"red"}}))],64)):R("",!0),E.dataIndex=="action"?(p(),A(B,{key:2,type:"primary",onClick:W=>o.viewSendMail(F),style:{"margin-left":"4px"}},{icon:a(()=>[t(V)]),_:2},1032,["onClick"])):R("",!0)]),_:1},8,["columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})],64)}const pi=H(di,[["render",_i]]),ci=[{path:"/",component:be,children:[{path:"/superadmin/email-queries",component:pi,name:"superadmin.email-queries.index",meta:{requireAuth:!0,menuParent:"email_queries",menuKey:e=>"email_queries",permission:"superadmin"}}]}],yi=[...en,...Jn,...to,...ko,...qo,...hs,...Vr,...oi,...ci];export{yi as default};
