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-e407a547.js";import{N as we,bf as zt,aL as Et,b as ie,E as I,c as te,e as Ae,r as l,o as c,y as A,w as a,k as t,j as T,G as E,a8 as X,B as r,n as s,l as M,bg as It,g as le,bh as je,bi as qe,b7 as ze,aS as Ye,ax as Ne,ay as Ee,a_ as Ie,bj as Ge,aU as Qe,bk as Xe,bl as Ft,bm as Ze,p as De,s as G,v as re,L as me,H as R,S as Fe,A as Be,bn as Mt,M as de,ac as Rt,a as Ht,aw as Je,az as Me,a6 as N,a5 as Se,a7 as Q,b2 as Ce,bo as Re,I as He,aH as xe,aJ as Wt,aI as Bt,ad as Z,ab as x,aD as et,bp as Lt,aZ as tt,bq as Vt,br as jt,$ as at,aP as Yt,aQ as Nt,aR as Gt,aT as Qt,_ as Xt,aV as Zt,aW as Jt,aO as xt,aX as ea,aN as ta,aY as aa,bs as la,U as ae,W as ne,a$ as lt,b4 as na,b5 as oa,m as Te,ag as nt,Z as sa,bt as ra,bu as ia,bv as ua,bw as da,bx as ma,by as _a,bz as pa,bA as ca,bB as fa,f as $e,V as ot,a1 as ga,ae as ba,ap as ya,q as ha,bC as va,bD as ka}from"./vendor-1d6c727d.js";import{O as Sa}from"./OfflineRequestStatus-49436a64.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(),p=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")},k=v=>{const S=v?"dark":"light";h.value=!0,axiosAdmin.post("change-theme-mode",{theme_mode:S}).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:p,themeModeChanged:k,themeModeLoading:h}}};function Ca(e,n,f,o,w,$){const _=l("MenuOutlined"),i=l("a-space"),u=l("a-col"),d=l("DownOutlined"),p=l("a-avatar"),h=l("a-menu-item"),D=l("a-menu"),m=l("a-dropdown"),g=l("a-divider"),k=l("a-button"),v=l("HeaderRightIcons"),S=l("a-row"),C=l("a-layout-header");return c(),A(C,{style:{padding:"0 16px",background:"white"}},{default:a(()=>[t(S,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(()=>[(c(!0),T(E,null,X(o.langs,y=>(c(),A(h,{key:y.key,onClick:b=>o.langSelected(y.key)},{default:a(()=>[t(i,null,{default:a(()=>[t(p,{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(k,{type:"link",onClick:n[1]||(n[1]=()=>{e.$router.push({name:"superadmin.settings.profile.index"})}),class:"p-0"},{default:a(()=>[t(p,{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:Ye,LogoutOutlined:Ne,CloseOutlined:Ee,SettingOutlined:Ie,TeamOutlined:Ge,DollarOutlined:Qe,GlobalOutlined:Xe,CalculatorOutlined:Ft,ContactsOutlined:Ze},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(),p=window.innerWidth,h=I([]),D=I([]),m=I("inline");G(()=>{var S=typeof d.meta.menuKey=="function"?d.meta.menuKey(d):d.meta.menuKey;d.meta.menuParent=="settings"?S="settings":d.meta.menuParent=="payment_settings"?S="payment_settings":d.meta.menuParent=="website_settings"?S="website_settings":d.meta.menuParent=="subscriptions"&&(S="subscriptions"),p<=991?h.value=[]:h.value=_.value?[]:[d.meta.menuParent],D.value=[S.replace("-","_")]});const g=()=>{u.dispatch("auth/logout")},k=()=>{p<=991&&u.commit("auth/updateMenuCollapsed",!0)},v=S=>{const C=S.find(y=>h.value.indexOf(y)===-1);i.indexOf(C)===-1?h.value=S:h.value=C?[C]:[]};return re(d,(S,C)=>{const y=typeof S.meta.menuKey=="function"?S.meta.menuKey(S):S.meta.menuKey;p<=991?h.value=[]:h.value=[S.meta.menuParent],S.meta.menuParent=="settings"?D.value=["settings"]:S.meta.menuParent=="payment_settings"?D.value=["payment_settings"]:S.meta.menuParent=="website_settings"?D.value=["website_settings"]:S.meta.menuParent=="subscriptions"?D.value=["subscriptions"]:D.value=[y.replace("-","_")]}),re(()=>_.value,(S,C)=>{const y=typeof d.meta.menuKey=="function"?d.meta.menuKey(d):d.meta.menuKey;p<=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:k,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"),p=l("DollarOutlined"),h=l("CalculatorOutlined"),D=l("ContactsOutlined"),m=l("TeamOutlined"),g=l("GlobalOutlined"),k=l("SettingOutlined"),v=l("LogoutOutlined"),S=l("a-menu"),C=l("perfect-scrollbar"),y=l("a-layout-sider");return c(),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?(c(),T("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)])):(c(),T("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?(c(),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(S,{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(p),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(k),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:Ne},setup(e,{emit:n}){const{appSetting:f,user:o,permsArray:w,appModules:$,cssSettings:_}=ee(),i=["dashboard"],u=ie(),d=De(),p=I([]),h=I([]),D=I("horizontal");G(()=>{v(d)});const m=()=>{u.dispatch("auth/logout")},g=()=>{n("menuSelected")},k=S=>{const C=S.find(y=>p.value.indexOf(y)===-1);i.indexOf(C)===-1?p.value=S:p.value=C?[C]:[]},v=S=>{const C=typeof S.meta.menuKey=="function"?S.meta.menuKey(S):S.meta.menuKey;S.meta.menuParent=="settings"?h.value=["settings"]:h.value=[C.replace("-","_")],_.value.headerMenuMode=="horizontal"?p.value=[]:p.value=[S.meta.menuParent]};return re(d,(S,C)=>{v(S)}),{mode:D,selectedKeys:h,openKeys:p,logout:m,innerWidth:window.innerWidth,onOpenChange:k,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 c(),A(d,{theme:e.appSetting.left_sidebar_theme,openKeys:e.openKeys,selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[1]||(n[1]=p=>e.selectedKeys=p),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 c(),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"),p=l("a-layout-header"),h=l("MainHeader"),D=l("router-view"),m=l("MainContentArea"),g=l("a-layout-content"),k=l("a-layout");return c(),A(k,null,{default:a(()=>[t(h,{cssSettings:o.cssSettings},{default:a(()=>[t(p,{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 Ya=H(Ba,[["render",ja],["__scopeId","data-v-b719ec23"]]);const Na={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"),p=l("MainContentArea"),h=l("MainArea"),D=l("a-layout"),m=l("Div");return c(),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(p,null,{default:a(()=>[t(d,null,{default:a(()=>[t(u)]),_:1})]),_:1})]),_:1},8,["innerWidth","collapsed","isRtl"])]),_:1})]),_:1})])]),_:1})}const Xa=H(Na,[["render",Qa]]);const Za=le({components:{SyncOutlined:Fe},setup(){const{appSetting:e}=ee();return{appSetting:e}}}),Ja={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 c(),T("div",Ja,[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(Za,[["render",tl],["__scopeId","data-v-be38ea01"]]),ll={components:{VerticalStyle:Xa,HorizantalStyle:Ya,LoadingApp:al},setup(){const{cssSettings:e}=ee();return{cssSettings:e}}};function nl(e,n,f,o,w,$){return c(),A(Mt,null,[o.cssSettings.headerMenuMode=="horizontal"?(c(),A(Be("HorizantalStyle"),{key:"horizontal"})):(c(),A(Be("VerticalStyle"),{key:"vertical"}))],1024)}const he=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 c(),T("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 J=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"),p=l("a-row");return e.appSetting.update_app_notification&&e.productStatus=="update_available"?(c(),A(p,{key:0,class:"mt-20"},{default:a(()=>[t(d,{span:24},{default:a(()=>[e.productStatus=="update_available"?(c(),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:Je,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):(c(),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:N,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"),p=l("a-select-option"),h=l("a-select"),D=l("a-textarea"),m=l("a-tab-pane"),g=l("Upload"),k=l("a-tabs"),v=l("FormItemHeading"),S=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 c(),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(k,{activeKey:e.activeTabKey,"onUpdate:activeKey":n[11]||(n[11]=q=>e.activeTabKey=q)},{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]=q=>e.formData.name=q),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]=q=>e.formData.short_name=q),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]=q=>e.formData.email=q),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]=q=>e.formData.phone=q),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]=q=>e.formData.timezone=q),placeholder:e.$t("common.select_default_text",[e.$t("company.default_timezone")]),optionFilterProp:"value","show-search":""},{default:a(()=>[(c(!0),T(E,null,X(e.timezones,(q,j)=>(c(),A(p,{key:j,value:q},{default:a(()=>[r(s(q),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]=q=>e.formData.status=q),placeholder:e.$t("common.select_default_text",[e.$t("common.status")]),optionFilterProp:"value"},{default:a(()=>[t(p,{value:"pending"},{default:a(()=>[r(s(e.$t("common.pending")),1)]),_:1}),t(p,{value:"active"},{default:a(()=>[r(s(e.$t("common.active")),1)]),_:1}),t(p,{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]=q=>e.formData.address=q),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]=q=>{e.formData.dark_logo=q.file,e.formData.dark_logo_url=q.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]=q=>{e.formData.light_logo=q.file,e.formData.light_logo_url=q.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]=q=>{e.formData.small_dark_logo=q.file,e.formData.small_dark_logo_url=q.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]=q=>{e.formData.small_light_logo=q.file,e.formData.small_light_logo_url=q.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(S)]),_: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]=q=>e.formData.user_email=q),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]=q=>e.formData.user_password=q),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"?(c(),A(i,{key:0,color:"green"},{icon:a(()=>[t(_)]),default:a(()=>[r(" "+s(e.$t("common.active")),1)]),_:1})):f.status=="inactive"?(c(),A(i,{key:1,color:"red"},{icon:a(()=>[t(u)]),default:a(()=>[r(" "+s(e.$t("common.inactive")),1)]),_:1})):(c(),T("span",hl,"-"))}const kl=H(yl,[["render",vl]]),Sl=le({props:["data","addText"],emits:["onEntry"],components:{PlusOutlined:N},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 c(),T("div",$l,[(c(!0),T(E,null,X(e.tags,p=>(c(),T(E,{key:p},[p.length>20?(c(),A(i,{key:0,title:p},{default:a(()=>[t(_,{closable:"",onClose:h=>e.handleClose(p),style:{marginBottom:"20px"}},{default:a(()=>[r(s(`${p.slice(0,20)}...`),1)]),_:2},1032,["onClose"])]),_:2},1032,["title"])):(c(),A(_,{key:1,closable:"",onClose:h=>e.handleClose(p),style:{marginBottom:"20px"}},{default:a(()=>[r(s(p),1)]),_:2},1032,["onClose"]))],64))),128)),e.inputVisible?(c(),A(u,{key:0,ref:"inputRef",value:e.inputValue,"onUpdate:value":n[0]||(n[0]=p=>e.inputValue=p),type:"text",size:"small",style:{width:"100px"},onBlur:e.handleInputConfirm,onKeyup:Wt(e.handleInputConfirm,["enter"])},null,8,["value","onBlur","onKeyup"])):(c(),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:N,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"),p=l("a-row"),h=l("a-textarea"),D=l("a-switch"),m=l("FormItemHeading"),g=l("a-checkbox"),k=l("a-checkbox-group"),v=l("DynamicFormFeatures"),S=l("a-form"),C=l("SaveOutlined"),y=l("a-button"),b=l("a-space"),U=l("a-drawer");return c(),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(S,{layout:"vertical"},{default:a(()=>[t(p,{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_users"),name:"max_users",help:e.rules.max_users?e.rules.max_users.message:null,validateStatus:e.rules.max_users?"error":null,class:"required"},{default:a(()=>[t(d,{value:e.formData.max_users,"onUpdate:value":n[1]||(n[1]=O=>e.formData.max_users=O),placeholder:e.$t("common.placeholder_default_text",[e.$t("subscription_plans.max_users")]),style:{width:"100%"}},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(p,{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"?(c(),A(p,{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"?(c(),T("div",Cl,[t(p,{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"?(c(),A(m,{key:0},{default:a(()=>[r(s(e.$t("subscription_plans.pricing_details")),1)]),_:1})):R("",!0),t(p,{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})])):R("",!0),t(m,null,{default:a(()=>[r(s(e.$t("subscription_plans.payment_gateway_details")),1)]),_:1}),t(p,{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}),t(m,null,{default:a(()=>[r(s(e.$t("subscription_plans.enabled_modules")),1)]),_:1}),t(p,{gutter:16,class:"mb-20"},{default:a(()=>[t(u,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(k,{value:e.formData.modules,"onUpdate:value":n[10]||(n[10]=O=>e.formData.modules=O),style:{width:"100%"}},{default:a(()=>[t(p,{gutter:[16,16]},{default:a(()=>[t(u,{span:8},{default:a(()=>[t(g,{value:"product"},{default:a(()=>[r(s(e.$t("subscription_plans.product")),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:"salesman"},{default:a(()=>[r(s(e.$t("subscription_plans.salesman")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"lead_follow_up"},{default:a(()=>[r(s(e.$t("subscription_plans.lead_follow_up")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"lead_notes"},{default:a(()=>[r(s(e.$t("subscription_plans.lead_notes")),1)]),_:1})]),_:1}),t(u,{span:8},{default:a(()=>[t(g,{value:"lead_call_log"},{default:a(()=>[r(s(e.$t("subscription_plans.lead_call_log")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),t(m,null,{default:a(()=>[r(s(e.$t("subscription_plans.features")),1)]),_:1}),t(p,{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_users,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_users:"",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_users"),dataIndex:"max_users"},{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:N,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"),p=l("AddEdit");return c(),T("div",null,[e.customType=="menu"?(c(),A(_,{onClick:e.showAdd,key:"subscription_plans"},{icon:a(()=>[de(e.$slots,"icon")]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick"])):(c(),T(E,{key:1},[e.tooltip?(c(),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"])):(c(),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(p,{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:N,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"),p=l("a-textarea"),h=l("a-form"),D=l("SaveOutlined"),m=l("a-button"),g=l("a-space"),k=l("a-modal");return c(),A(k,{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(p,{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:N,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"),p=l("AddEdit");return c(),T("div",null,[e.customType=="menu"?(c(),A(_,{onClick:e.showAdd,key:"offline_payment_mode"},{icon:a(()=>[de(e.$slots,"icon")]),default:a(()=>[de(e.$slots,"default")]),_:3},8,["onClick"])):(c(),T(E,{key:1},[e.tooltip?(c(),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"])):(c(),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(p,{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:Z,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(),p=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(()=>{k()});const k=()=>{const O=axiosAdmin.get(m),P=axiosAdmin.get(g);Promise.all([O,P]).then(([q,j])=>{h.value=q.data,D.value=j.data,p.value={...p.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})},S=()=>{axiosAdmin.get(g).then(O=>{D.value=O.data})},C=()=>{_.value=!0},y=()=>{i({url:"superadmin/companies/change-subscription-plan",data:p.value,successMessage:$("subscription_plans.plan_changed_successfully"),success:O=>{d.value={},_.value=!1,n("success",!0)}})},b=()=>{d.value={},_.value=!1},U=()=>{p.value.plan_type=="monthly"&&p.value.paid_on!=null?p.value={...p.value,license_expires_on:o(p.value.paid_on).add(1,"month")}:p.value.plan_type=="annual"&&p.value.paid_on!=null?p.value={...p.value,license_expires_on:o(p.value.paid_on).add(1,"year")}:p.value={...p.value,license_expires_on:void 0}};return re(()=>p.value.paid_on,(O,P)=>{U()}),re(()=>p.value.plan_type,(O,P)=>{U()}),{appSetting:f,formatDate:w,visible:_,loading:u,rules:d,formData:p,subscriptionPlans:h,paymentModes:D,subscriptionPlanAdded:v,offlinePaymentModeAdded:S,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"),p=l("a-descriptions"),h=l("a-divider"),D=l("a-select-option"),m=l("a-select"),g=l("SubscriptionPlanAddButton"),k=l("a-form-item"),v=l("a-col"),S=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 c(),T(E,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(p,{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(S,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(k,{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]=q=>o.formData.subscription_plan_id=q),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.subscription_plan")])},{default:a(()=>[(c(!0),T(E,null,X(o.subscriptionPlans,q=>(c(),A(D,{key:q.xid,value:q.xid},{default:a(()=>[r(s(q.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(k,{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]=q=>o.formData.plan_type=q),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(S,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(k,{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]=q=>o.formData.offline_payment_mode_id=q),placeholder:e.$t("common.select_default_text",[e.$t("offline_request.payment_mode")])},{default:a(()=>[(c(!0),T(E,null,X(o.paymentModes,q=>(c(),A(D,{key:q.xid,value:q.xid},{default:a(()=>[r(s(q.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(k,{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]=q=>o.formData.amount=q),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(S,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(k,{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]=q=>o.formData.paid_on=q),format:o.appSetting.date_format,valueFormat:"YYYY-MM-DD",style:{width:"100%"}},null,8,["value","format"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{gutter:16},{default:a(()=>[t(v,{xs:24,sm:24,md:24,lg:24},{default:a(()=>[t(k,{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]=q=>o.formData.license_expires_on=q),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:Z,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"),p=l("a-select-option"),h=l("a-select"),D=l("a-input-search"),m=l("a-input-group"),g=l("a-row"),k=l("admin-page-filters"),v=l("AddEdit"),S=l("a-image"),C=l("a-typography-text"),y=l("CloseOutlined"),b=l("CheckOutlined"),U=l("ChangeSubscriptionPlan"),O=l("CompanyStatus"),P=l("EditOutlined"),q=l("a-table"),j=l("admin-page-table-content");return c(),T(E,null,[f.selectable?(c(),A(k,{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?(c(),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?(c(),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]=L=>e.table.searchColumn=L),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(c(!0),T(E,null,X(o.filterableColumns,L=>(c(),A(p,{key:L.key},{default:a(()=>[r(s(L.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(D,{style:{width:"75%"},value:e.table.searchString,"onUpdate:value":n[1]||(n[1]=L=>e.table.searchString=L),"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(j,{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(q,{"row-selection":f.selectable?{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:L=>({disabled:!1,name:L.xid})}:null,columns:o.columns,"row-key":L=>L.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:L,record:B})=>[L.dataIndex==="logo"?(c(),A(S,{key:0,width:150,src:B.light_logo_url},null,8,["src"])):R("",!0),L.dataIndex==="name"?(c(),A(C,{key:1,strong:""},{default:a(()=>[r(s(B.name),1)]),_:2},1024)):R("",!0),L.dataIndex==="details"?(c(),T("ul",Wl,[M("li",null,[r(s(e.$t("common.verified"))+": ",1),B.verified==0?(c(),A(y,{key:0,style:{color:"red"}})):(c(),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),L.dataIndex==="subscription_plan"?(c(),T(E,{key:3},[B.subscription_plan&&B.subscription_plan.name?(c(),T("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),L.dataIndex==="status"?(c(),A(O,{key:4,status:B.status},null,8,["status"])):R("",!0),L.dataIndex==="action"?(c(),T(E,{key:5},[t(i,{type:"primary",onClick:Y=>e.editItem(B),style:{"margin-left":"4px"}},{icon:a(()=>[t(P)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:Y=>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:J,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}}},Yl={class:"dashboard-page-content-container"},Nl={class:"mt-30 mb-20"},Gl={key:0},Ql={key:0},Xl={key:0},Zl={key:0};function Jl(e,n,f,o,w,$){const _=l("a-page-header"),i=l("SuperAdminPageHeader"),u=l("SuperadminUpdateAppAlert"),d=l("RocketOutlined"),p=l("StateWidget"),h=l("a-col"),D=l("DatabaseOutlined"),m=l("EyeInvisibleOutlined"),g=l("WarningOutlined"),k=l("a-row"),v=l("CompanyTable"),S=l("DoubleRightOutlined"),C=l("a-button"),y=l("a-card");return c(),T(E,null,[t(i,null,{header:a(()=>[t(_,{title:e.$t("menu.dashboard"),style:{padding:"0px"}},null,8,["title"])]),_:1}),M("div",Yl,[t(u),M("div",Nl,[t(k,{gutter:[15,15]},{default:a(()=>[t(h,{xs:24,sm:24,md:12,lg:6,xl:6},{default:a(()=>[t(p,{bgColor:"#6777ef"},{image:a(()=>[t(d,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(c(),T("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(p,{bgColor:"#63ed7a"},{image:a(()=>[t(D,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(c(),T("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(p,{bgColor:"#ffa426"},{image:a(()=>[t(m,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(c(),T("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(p,{bgColor:"#fc544b"},{image:a(()=>[t(g,{style:{color:"#fff","font-size":"24px"}})]),description:a(()=>[o.responseData.stats?(c(),T("h2",Zl,s(o.responseData.stats.expiredCompaniesCount),1)):R("",!0),M("p",null,s(e.$t("superadmin_dashboard.license_expired")),1)]),_:1})]),_:1})]),_:1})]),t(k,{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(S)]),_:1})]),default:a(()=>[t(v,{showFilterInput:!1,perPageItems:5})]),_:1},8,["title"])]),_:1})]),_:1})])],64)}const xl=H(jl,[["render",Jl]]),en=[{path:"/",component:he,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:Yt,UserOutlined:Nt,TranslationOutlined:Gt,ShopOutlined:Ye,SolutionOutlined:Qt,ScheduleOutlined:Xt,DollarOutlined:Qe,AccountBookOutlined:Zt,AppstoreAddOutlined:Jt,ApartmentOutlined:xt,FolderOpenOutlined:ea,MailOutlined:Je,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"),p=l("DollarOutlined"),h=l("AppstoreAddOutlined"),D=l("FolderOpenOutlined"),m=l("MailOutlined"),g=l("TrademarkCircleOutlined"),k=l("DatabaseOutlined"),v=l("HistoryOutlined"),S=l("a-menu"),C=l("perfect-scrollbar");return c(),T("div",an,[t(C,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:a(()=>[t(S,{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(p)]),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(k)]),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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SettingOutlined:Ie,ColorPicker:lt,Upload:se,CurrencyAddButton:Le,LanguageAddButton:ue,SettingSidebar:pe,SuperAdminPageHeader:J},setup(){const{addEditRequestAdmin:e,loading:n,rules:f}=oe(),{permsArray:o,appSetting:w,dayjsObject:$}=ee(),{t:_}=te(),i=ie(),u=I({}),d=I([]),p=I([]),h=I([]),D=I([]),m=I([]),g=w.value,k="superadmin/currencies?limit=10000",v="timezones",S="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 q=axiosAdmin.get(k),j=axiosAdmin.get(v),L=axiosAdmin.get(S);Promise.all([q,j,L]).then(([B,Y,K])=>{d.value=B.data,p.value=Y.data.timezones,m.value=K.data.langs,h.value=Y.data.date_formates,D.value=Y.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:q=>{i.dispatch("auth/updateApp")}})},currencyAdded:()=>{axiosAdmin.get(k).then(q=>{d.value=q.data})},gradientColor:C,timezones:p,dateFormats:h,timeFormats:D,dayjsObject:$,appThemeMode:y,languageAdded:()=>{axiosAdmin.get(S).then(q=>{m.value=q.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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=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"),q=l("LanguageAddButton"),j=l("a-switch"),L=l("a-form"),B=l("a-card"),Y=l("admin-page-table-content");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.company")),1)]),_:1})]),_:1})]),_:1}),t(S,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(Y,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(L,{layout:"vertical"},{default:a(()=>[t(S,{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(k,{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(k,{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(S,{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(k,{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(k,{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(S,{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(S,{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"?(c(),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(S,{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(S,{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(()=>[(c(!0),T(E,null,X(o.currencies,K=>(c(),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(()=>[(c(!0),T(E,null,X(o.allLangs,K=>(c(),A(y,{key:K.xid,value:K.xid},{default:a(()=>[r(s(K.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"]),t(q,{onOnAddSuccess:o.languageAdded,panelType:"superadmin"},null,8,["onOnAddSuccess"])])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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(j,{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(()=>[(c(!0),T(E,null,X(o.timezones,(K,z)=>(c(),A(y,{key:z,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(j,{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(j,{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(S,{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(()=>[(c(!0),T(E,null,X(o.dateFormats,(K,z)=>(c(),A(y,{key:z,value:K},{default:a(()=>[r(s(`(${z}) => `+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(()=>[(c(!0),T(E,null,X(o.timeFormats,(K,z)=>(c(),A(y,{key:z,value:z},{default:a(()=>[r(s(`(${K}) => `+o.dayjsObject().format(z)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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(S,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,Upload:se,SettingSidebar:pe,SuperAdminPageHeader:J},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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=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 c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.profile")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{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(k,{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(S,{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(k,{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(S,{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(k,{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(S,{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(S,{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(S,{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:J,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"),p=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("ImportTranslation"),g=l("LangAddButton"),k=l("EyeOutlined"),v=l("a-button"),S=l("a-space"),C=l("TranslationsSettings"),y=l("a-row");return c(),T(E,null,[t(p,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(S,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(k),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:N,SettingSidebar:pe,SuperAdminPageHeader:J,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"),p=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("ImportTranslation"),g=l("PlusOutlined"),k=l("a-button"),v=l("a-space"),S=l("LanguageSettings"),C=l("a-row");return c(),T(E,null,[t(p,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(S,{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(k,{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:N,SettingSidebar:pe,SuperAdminPageHeader:J,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"),p=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("PlusOutlined"),g=l("a-button"),k=l("CurrencySettings"),v=l("a-row");return c(),T(E,null,[t(p,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(k,{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:J,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"),p=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("ModuleSetting"),g=l("a-row");return c(),T(E,null,[t(p,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:J,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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),k=l("StorageSettings"),v=l("a-card"),S=l("admin-page-table-content"),C=l("a-row");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(p,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(S,null,{default:a(()=>[t(v,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(k,{ref:"settingRef"},null,512)]),_:1})]),_:1})]),_:1})]),_:1})],64)}const Un=H(Cn,[["render",On]]),An={components:{SettingSidebar:pe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SettingSidebar"),g=l("a-col"),k=l("EmailSettings"),v=l("admin-page-table-content"),S=l("a-row");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.email_settings")),1)]),_:1})]),_:1})]),_:1}),t(S,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(k,{ref:"settingRef"},null,512)]),_:1})]),_:1})]),_:1})],64)}const Kn=H(An,[["render",qn]]),Tn={components:{SettingSidebar:pe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("SettingSidebar"),m=l("a-col"),g=l("UpdateAppSettings"),k=l("admin-page-table-content"),v=l("a-row");return c(),T(E,null,[t(h,null,{header:a(()=>[t(i,{title:e.$t("menu.update_app"),class:"p-0"},{extra:a(()=>[o.settingRef?(c(),A(_,{key:0,productStatus:o.settingRef.productStatus,product:o.settingRef.product.product},null,8,["productStatus","product"])):R("",!0)]),_:1},8,["title"])]),breadcrumb:a(()=>[t(p,{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(k,null,{default:a(()=>[t(g,{ref:"settingRef"},null,512)]),_:1})]),_:1})]),_:1})],64)}const zn=H(Tn,[["render",Pn]]),En={components:{SettingSidebar:pe,SuperAdminPageHeader:J,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"),p=l("router-link"),h=l("a-breadcrumb-item"),D=l("a-breadcrumb"),m=l("SuperAdminPageHeader"),g=l("SettingSidebar"),k=l("a-col"),v=l("DatabaseSettings"),S=l("a-row");return c(),T(E,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(p,{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(S,null,{default:a(()=>[t(k,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:a(()=>[t(g)]),_:1}),t(k,{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:N},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 c(),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?(c(),T("div",Rn,[M("img",{style:{width:"128px"},src:e.formData[`${e.imageField}_url`],alt:"avatar"},null,8,Hn)])):(c(),T("div",Wn,[e.loading?(c(),A(_,{key:0})):(c(),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}}},Yn={class:"mt-40"};function Nn(e,n,f,o,w,$){const _=l("a-typography-text"),i=l("a-typography-paragraph"),u=l("a-alert"),d=l("FormItemHeading"),p=l("Upload"),h=l("a-form-item"),D=l("a-col"),m=l("a-row"),g=l("a-form");return c(),T(E,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",Yn,[t(d,null,{default:a(()=>[r(s(e.$t("setup_superadmin_company.default_company_logo")),1)]),_:1})]),o.formData&&o.formData.dark_logo?(c(),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(p,{formData:o.formData,folder:"company",imageField:"dark_logo",onOnFileUploaded:n[0]||(n[0]=k=>{o.formData.dark_logo=k.file,o.formData.dark_logo_url=k.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(p,{formData:o.formData,folder:"company",imageField:"light_logo",onOnFileUploaded:n[1]||(n[1]=k=>{o.formData.light_logo=k.file,o.formData.light_logo_url=k.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(p,{formData:o.formData,folder:"company",imageField:"small_dark_logo",onOnFileUploaded:n[2]||(n[2]=k=>{o.formData.small_dark_logo=k.file,o.formData.small_dark_logo_url=k.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(p,{formData:o.formData,folder:"company",imageField:"small_light_logo",onOnFileUploaded:n[3]||(n[3]=k=>{o.formData.small_light_logo=k.file,o.formData.small_light_logo_url=k.file_url})},null,8,["formData"])]),_:1},8,["label"])]),_:1})]),_:1})):R("",!0)]),_:1})],64)}const yt=H(jn,[["render",Nn]]),Gn={components:{SettingSidebar:pe,SuperAdminPageHeader:J,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"),p=l("SuperAdminPageHeader"),h=l("SettingSidebar"),D=l("a-col"),m=l("WhiteLabelSetting"),g=l("a-card"),k=l("admin-page-table-content"),v=l("a-row");return c(),T(E,null,[t(p,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(k,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]]),Zn=[{path:"/superadmin/settings/",component:he,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"}}]}],Jn={components:{PlusOutlined:N,SuperAdminPageHeader:J,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"),p=l("SuperAdminPageHeader"),h=l("PlusOutlined"),D=l("a-button"),m=l("EmailNotSetup"),g=l("CompanyTable");return c(),T(E,null,[t(p,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(Jn,[["render",xn]]),to=[{path:"/",component:he,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:J},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"),p=l("SuperAdminPageHeader"),h=l("a-select-option"),D=l("a-select"),m=l("a-input-search"),g=l("a-input-group"),k=l("a-col"),v=l("a-row"),S=l("admin-page-filters"),C=l("a-table"),y=l("admin-page-table-content");return c(),T(E,null,[t(p,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(S,null,{default:a(()=>[t(v,{gutter:[16,16]},{default:a(()=>[t(k,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(v,{gutter:[16,16],justify:"end"},{default:a(()=>[t(k,{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(()=>[(c(!0),T(E,null,X(o.filterableColumns,b=>(c(),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(k,{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"?(c(),T(E,{key:0},[r(s(U.company.name),1)],64)):R("",!0),b.dataIndex==="paid_on"?(c(),T(E,{key:1},[r(s(o.formatDate(U.paid_on)),1)],64)):R("",!0),b.dataIndex==="next_payment_date"?(c(),T(E,{key:2},[r(s(o.formatDate(U.next_payment_date)),1)],64)):R("",!0),b.dataIndex==="name"?(c(),T(E,{key:3},[r(s(U.name),1)],64)):R("",!0),b.dataIndex==="action"?(c(),T(E,{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}),p=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,q])=>{p.value=P.data,h.value=q.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}})},k=()=>{axiosAdmin.get(D).then(U=>{p.value=U.data})},v=()=>{axiosAdmin.get(m).then(U=>{h.value=U.data})},S=()=>{$.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:p,paymentModes:h,subscriptionPlanAdded:k,offlinePaymentModeAdded:v,onClose:y,onSubmit:C,showModal:S,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"),p=l("EyeOutlined"),h=l("a-typography-link"),D=l("a-descriptions"),m=l("a-divider"),g=l("a-date-picker"),k=l("a-form-item"),v=l("a-col"),S=l("a-input-number"),C=l("a-row"),y=l("a-form"),b=l("a-modal");return c(),T(E,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(p),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(k,{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(k,{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(S,{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(k,{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"),p=l("a-space"),h=l("a-result"),D=l("a-modal");return c(),T(E,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(p,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:J,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:p}=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(()=>{k(),v()});const k=()=>{const S=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([S,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,p.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"),p=l("SuperAdminPageHeader"),h=l("a-select-option"),D=l("a-select"),m=l("a-col"),g=l("a-row"),k=l("admin-page-filters"),v=l("ClockCircleOutlined"),S=l("a-tab-pane"),C=l("CheckCircleOutlined"),y=l("CloseCircleOutlined"),b=l("a-tabs"),U=l("OfflineRequestStatus"),O=l("EyeOutlined"),P=l("a-button"),q=l("a-tooltip"),j=l("ApproveRequest"),L=l("RejectRequest"),B=l("a-space"),Y=l("a-table"),K=l("admin-page-table-content");return c(),T(E,null,[t(p,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(k,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]=z=>o.filters.company_id=z),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(()=>[(c(!0),T(E,null,X(o.companies,z=>(c(),A(h,{key:z.xid,title:z.name,value:z.xid},{default:a(()=>[r(s(z.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]=z=>o.filters.subscription_plan_id=z),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(()=>[(c(!0),T(E,null,X(o.subscriptionPlans,z=>(c(),A(h,{key:z.xid,title:z.name,value:z.xid},{default:a(()=>[r(s(z.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]=z=>o.filters.offline_payment_mode_id=z),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(()=>[(c(!0),T(E,null,X(o.paymentModes,z=>(c(),A(h,{key:z.xid,title:z.name,value:z.xid},{default:a(()=>[r(s(z.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]=z=>o.filters.status=z),onChange:o.setUrlData},{default:a(()=>[t(S,{key:"pending"},{tab:a(()=>[M("span",null,[t(v),r(" "+s(e.$t("offline_request.pending")),1)])]),_:1}),t(S,{key:"approved"},{tab:a(()=>[M("span",null,[t(C),r(" "+s(e.$t("offline_request.approved")),1)])]),_:1}),t(S,{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(Y,{columns:o.columns,"row-key":z=>z.xid,"data-source":o.table.data,pagination:o.table.pagination,loading:o.table.loading,onChange:o.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:z,record:F})=>[z.dataIndex==="company"?(c(),T(E,{key:0},[r(s(F.company&&F.company.name?F.company.name:"-"),1)],64)):R("",!0),z.dataIndex==="submitted_on"?(c(),T(E,{key:1},[r(s(o.formatDateTime(F.created_at)),1)],64)):R("",!0),z.dataIndex==="subscription_plan"?(c(),T(E,{key:2},[r(s(F.subscription_plan&&F.subscription_plan.name?F.subscription_plan.name:"-"),1)],64)):R("",!0),z.dataIndex==="plan_type"?(c(),T(E,{key:3},[r(s(e.$t(`subscription_plans.${F.plan_type}`)),1)],64)):R("",!0),z.dataIndex==="payment_method"?(c(),T(E,{key:4},[r(s(F.offline_payment_mode&&F.offline_payment_mode.name?F.offline_payment_mode.name:"-"),1)],64)):R("",!0),z.dataIndex==="submitted_by"?(c(),T(E,{key:5},[r(s(F.submittor&&F.submittor.name?F.submittor.name:"-"),1)],64)):R("",!0),z.dataIndex==="status"?(c(),A(U,{key:6,status:F.status},null,8,["status"])):R("",!0),z.dataIndex==="action"?(c(),A(B,{key:7},{default:a(()=>[t(q,{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"?(c(),A(j,{key:0,offlineRequest:F,onSuccess:o.setUrlData},null,8,["offlineRequest","onSuccess"])):R("",!0),F.status=="pending"?(c(),A(L,{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:he,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:N,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"),p=l("a-row"),h=l("a-input-password"),D=l("a-select-option"),m=l("a-select"),g=l("a-form"),k=l("SaveOutlined"),v=l("a-button"),S=l("a-space"),C=l("a-drawer");return c(),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(S,null,{default:a(()=>[t(v,{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(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(p,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(p,{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(p,{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(p,{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(p,{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:N,EditOutlined:Z,DeleteOutlined:x,AddEdit:Do,SuperAdminPageHeader:J},setup(){const{url:e,addEditUrl:n,initData:f,columns:o,filterableColumns:w}=So(),$=Ue(),{permsArray:_,formatDate:i,statusColors:u,globalSetting:d,user:p}=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:p,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"),p=l("SuperAdminPageHeader"),h=l("PlusOutlined"),D=l("a-button"),m=l("DeleteOutlined"),g=l("a-space"),k=l("a-col"),v=l("a-select-option"),S=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"),q=l("a-badge"),j=l("a-tag"),L=l("EditOutlined"),B=l("a-table"),Y=l("admin-page-table-content");return c(),T(E,null,[t(p,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(k,{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?(c(),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(k,{xs:24,sm:24,md:12,lg:14,xl:14},{default:a(()=>[t(b,{gutter:[16,16],justify:"end"},{default:a(()=>[t(k,{xs:24,sm:24,md:16,lg:12,xl:10},{default:a(()=>[t(y,{compact:""},{default:a(()=>[t(S,{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(()=>[(c(!0),T(E,null,X(o.filterableColumns,K=>(c(),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(Y,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(k,{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:z,record:F})=>[K.dataIndex==="name"?(c(),A(q,{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"?(c(),A(j,{key:1,color:o.statusColors[z]},{default:a(()=>[r(s(e.$t(`common.${z}`)),1)]),_:2},1032,["color"])):R("",!0),K.dataIndex==="action"?(c(),T(E,{key:2},[t(D,{type:"primary",onClick:W=>e.editItem(F),style:{"margin-left":"4px"}},{icon:a(()=>[t(L)]),_:2},1032,["onClick"]),o.globalSetting.x_admin_id!=F.xid&&o.user.xid!=F.xid?(c(),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:he,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 c(),T("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:N,EditOutlined:Z,DeleteOutlined:x,CrownOutlined:ra,AddEdit:mt,SuperAdminPageHeader:J,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(p=>{$.editItem(p.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"),p=l("SuperAdminPageHeader"),h=l("SubscriptionSidebar"),D=l("a-col"),m=l("PlusOutlined"),g=l("a-button"),k=l("CrownOutlined"),v=l("DeleteOutlined"),S=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"),q=l("AddEdit"),j=l("a-descriptions-item"),L=l("a-descriptions"),B=l("EditOutlined"),Y=l("a-table"),K=l("admin-page-table-content");return c(),T(E,null,[t(p,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(S,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(k),r(" "+s(e.$t("subscription_plans.free_trail_settings")),1)]),_:1},8,["onClick","loading"]),e.table.selectedRowKeys.length>0?(c(),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]=z=>e.table.searchColumn=z),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(c(!0),T(E,null,X(o.filterableColumns,z=>(c(),A(C,{key:z.key},{default:a(()=>[r(s(z.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(b,{style:{width:"75%"},value:e.table.searchString,"onUpdate:value":n[1]||(n[1]=z=>e.table.searchString=z),"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(q,{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(Y,{"row-selection":{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:z=>({disabled:z.default=="yes",name:z.xid})},columns:o.columns,"row-key":z=>z.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:z,record:F})=>[z.dataIndex==="pricing_details"?(c(),A(L,{key:0,column:1,size:"small"},{default:a(()=>[t(j,{label:e.$t("subscription_plans.monthly_price")},{default:a(()=>[r(s(o.formatAmountCurrency(F.monthly_price)),1)]),_:2},1032,["label"]),t(j,{label:e.$t("subscription_plans.annual_price")},{default:a(()=>[r(s(o.formatAmountCurrency(F.annual_price)),1)]),_:2},1032,["label"])]),_:2},1024)):R("",!0),z.dataIndex==="modules"?(c(),T("ul",Io,[(c(!0),T(E,null,X(F.modules,W=>(c(),T("li",{key:W},s(e.$t(`subscription_plans.${W}`)),1))),128))])):R("",!0),z.dataIndex==="action"?(c(),T(E,{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"?(c(),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:N,EditOutlined:Z,DeleteOutlined:x,AddEdit:ct,SuperAdminPageHeader:J,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"),p=l("SuperAdminPageHeader"),h=l("SubscriptionSidebar"),D=l("a-col"),m=l("PlusOutlined"),g=l("a-button"),k=l("DeleteOutlined"),v=l("a-space"),S=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"),q=l("EditOutlined"),j=l("a-table"),L=l("admin-page-table-content");return c(),T(E,null,[t(p,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?(c(),A(g,{key:0,type:"primary",onClick:e.showSelectedDeleteConfirm,danger:""},{icon:a(()=>[t(k)]),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(()=>[(c(!0),T(E,null,X(o.filterableColumns,B=>(c(),A(S,{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(L,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(j,{"row-selection":{selectedRowKeys:e.table.selectedRowKeys,onChange:e.onRowSelectChange,getCheckboxProps:B=>({disabled:B.default=="yes",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:Y})=>[B.dataIndex==="action"?(c(),T(E,{key:0},[t(g,{type:"primary",onClick:K=>e.editItem(Y),style:{"margin-left":"4px"}},{icon:a(()=>[t(q)]),_:2},1032,["onClick"]),Y.default!="yes"?(c(),A(g,{key:0,type:"primary",onClick:K=>e.showDeleteConfirm(Y.xid),style:{"margin-left":"4px"}},{icon:a(()=>[t(k)]),_: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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:J},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 Yo(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=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 c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.paypal")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{value:o.formData.paypal_client_id,"onUpdate:value":n[0]||(n[0]=q=>o.formData.paypal_client_id=q),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(k,{value:o.formData.paypal_secret,"onUpdate:value":n[1]||(n[1]=q=>o.formData.paypal_secret=q),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(S,{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(y,{value:o.formData.paypal_mode,"onUpdate:value":n[2]||(n[2]=q=>o.formData.paypal_mode=q),placeholder:e.$t("common.select_default_text",[e.$t("payment_settings.paypal_mode")])},{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}),Vo,M("small",jo,s(e.$t("user.password_blank")),1)]),_:1},8,["label"])]),_:1})]),_:1}),t(S,{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(U,{checked:o.formData.paypal_status,"onUpdate:checked":n[3]||(n[3]=q=>o.formData.paypal_status=q),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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 No=H(Lo,[["render",Yo]]),Go={components:{EyeOutlined:ae,PlusOutlined:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:J},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 Zo(e,n,f,o,w,$){const _=l("SaveOutlined"),i=l("a-button"),u=l("a-page-header"),d=l("router-link"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=l("a-row"),C=l("a-typography-text"),y=l("a-switch"),b=l("a-form"),U=l("a-card"),O=l("admin-page-table-content");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.stripe")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{value:o.formData.stripe_api_key,"onUpdate:value":n[0]||(n[0]=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(k,{value:o.formData.stripe_api_secret,"onUpdate:value":n[1]||(n[1]=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(S,{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(k,{value:o.formData.stripe_webhook_key,"onUpdate:value":n[2]||(n[2]=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(C,{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}),t(S,{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(y,{checked:o.formData.stripe_status,"onUpdate:checked":n[3]||(n[3]=P=>o.formData.stripe_status=P),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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 Jo=H(Go,[["render",Zo]]),xo={components:{EyeOutlined:ae,PlusOutlined:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:J},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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=l("a-row"),C=l("a-typography-text"),y=l("a-switch"),b=l("a-form"),U=l("a-card");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.razorpay")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{value:o.formData.razorpay_key,"onUpdate:value":n[0]||(n[0]=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(k,{value:o.formData.razorpay_secret,"onUpdate:value":n[1]||(n[1]=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(S,{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(k,{value:o.formData.razorpay_webhook_secret,"onUpdate:value":n[2]||(n[2]=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(C,{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}),t(S,{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(y,{checked:o.formData.razorpay_status,"onUpdate:checked":n[3]||(n[3]=O=>o.formData.razorpay_status=O),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:J},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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=l("a-row"),C=l("a-typography-text"),y=l("a-switch"),b=l("a-form"),U=l("a-card");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.paystack")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{value:o.formData.paystack_client_id,"onUpdate:value":n[0]||(n[0]=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(k,{value:o.formData.paystack_secret,"onUpdate:value":n[1]||(n[1]=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(S,{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(k,{value:o.formData.paystack_merchant_email,"onUpdate:value":n[2]||(n[2]=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(S,{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(C,{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(C,{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}),t(S,{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(y,{checked:o.formData.paystack_status,"onUpdate:checked":n[3]||(n[3]=O=>o.formData.paystack_status=O),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:J},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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=l("a-row"),C=l("a-switch"),y=l("a-form"),b=l("a-card");return c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.mollie")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{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(S,{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(S,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,SubscriptionSidebar:ve,SuperAdminPageHeader:J},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"),p=l("a-breadcrumb-item"),h=l("a-breadcrumb"),D=l("SuperAdminPageHeader"),m=l("SubscriptionSidebar"),g=l("a-col"),k=l("a-input"),v=l("a-form-item"),S=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 c(),T(E,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(p,null,{default:a(()=>[t(d,{to:{name:"admin.dashboard.index"}},{default:a(()=>[r(s(e.$t("menu.dashboard")),1)]),_:1},8,["to"])]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.payment_settings")),1)]),_:1}),t(p,null,{default:a(()=>[r(s(e.$t("menu.authorize")),1)]),_:1})]),_:1})]),_:1}),t(S,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(S,{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(k,{value:o.formData.authorize_api_login_id,"onUpdate:value":n[0]||(n[0]=q=>o.formData.authorize_api_login_id=q),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(k,{value:o.formData.authorize_transaction_key,"onUpdate:value":n[1]||(n[1]=q=>o.formData.authorize_transaction_key=q),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(S,{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(k,{value:o.formData.authorize_signature_key,"onUpdate:value":n[2]||(n[2]=q=>o.formData.authorize_signature_key=q),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(S,{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]=q=>o.formData.authorize_environment=q),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(S,{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]=q=>o.formData.authorize_status=q),checkedValue:"active",unCheckedValue:"inactive"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(S,{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:he,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:No,name:"superadmin.payment_settings.paypal.index",meta:{requireAuth:!0,menuParent:"subscriptions",menuKey:e=>"paypal",permission:"superadmin"}},{path:"stripe",component:Jo,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=p=>{axiosAdmin.get(`superadmin/website-settings/website?lang_key=${p}`).then(h=>{const D=h.data.data;w.value={...D,lang_key:p}})},d=()=>{e({url:"superadmin/website-settings/website/update",data:w.value,successMessage:o("website_settings.setting_saved"),success:p=>{}})};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:Ze,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"),p=l("ProfileOutlined"),h=l("ContactsOutlined"),D=l("MoneyCollectOutlined"),m=l("QuestionCircleOutlined"),g=l("PicCenterOutlined"),k=l("CodeOutlined"),v=l("FileSearchOutlined"),S=l("TrophyOutlined"),C=l("a-menu"),y=l("perfect-scrollbar");return c(),T("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(p)]),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(k)]),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(S)]),default:a(()=>[r(" "+s(e.$t("menu.website_seo_settings")),1)]),_:1})]),_:1},8,["selectedKeys"])]),_:1})])}const fe=H(vs,[["render",Ss]]),be=e=>{const{addEditRequestAdmin:n,loading:f,rules:o}=oe(),{t:w}=te(),$=I([]),_=I([]),i=I(""),u=I(!1),d=I(!0),p=I(!0),h=I({}),D=I("add"),m=I(""),g=I(""),k=I({}),v=O=>{axiosAdmin.get(`superadmin/website-settings/settings?lang_key=${O}&setting_type=${m.value}`).then(P=>{_.value=P.data.data})},S=()=>{p.value?(u.value=!0,o.value={},D.value="add",i.value=w(`website_settings.add_${g.value}`),h.value={...k.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,q=>{q.id==h.value.id?O.push(h.value):O.push(q)})}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,q=>q.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:q=>{_.value=P}})},onCancel(){}}):Te.error(w("common.not_allowed"))},U=()=>{u.value=!1,o.value={},h.value={...k.value}};return re(()=>e.langKey,(O,P)=>{v(O)}),{loading:f,rules:o,initData:k,columns:$,tableData:_,settingType:m,langType:g,getData:v,showAdd:S,visible:u,addable:p,deletable:d,addEditType:D,addEditTitle:i,formData:h,onSubmit:C,onClose:U,editItem:y,showDeleteConfirm:b}},ye=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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-form"),g=l("SaveOutlined"),k=l("a-modal"),v=l("a-image"),S=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(k,{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(p,{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(p,{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(p,{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"?(c(),T(E,{key:0},[O.logo?(c(),A(v,{key:0,width:70,src:O.logo_url},null,8,["src"])):(c(),T("span",ws,"-"))],64)):R("",!0),U.dataIndex==="action"?(c(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:P=>e.editItem(O)},{icon:a(()=>[t(S)]),_: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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("a-form"),j=l("a-tab-pane"),L=l("a-tabs"),B=l("a-card"),Y=l("admin-page-table-content");return c(),T(E,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(p,{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(Y,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(L,{activeKey:e.activeKey,"onUpdate:activeKey":n[3]||(n[3]=K=>e.activeKey=K),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,K=>(c(),A(j,{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]=z=>e.subTabActiveKey=z)},{default:a(()=>[t(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):(c(),A(m,{key:1,span:24},{default:a(()=>[t(q,{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]=z=>e.formData.client_title=z),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]=z=>e.formData.client_description=z),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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-textarea"),g=l("a-rate"),k=l("a-form"),v=l("SaveOutlined"),S=l("a-modal"),C=l("a-image"),y=l("EditOutlined"),b=l("DeleteOutlined"),U=l("a-space"),O=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(S,{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(k,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(p,{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(p,{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(p,{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(p,{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(p,{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:q})=>[P.dataIndex==="image"?(c(),T(E,{key:0},[q.image?(c(),A(C,{key:0,width:32,src:q.image_url},null,8,["src"])):(c(),T("span",Ks,"-"))],64)):R("",!0),P.dataIndex==="rating"?(c(),A(g,{key:1,value:q.rating,disabled:""},null,8,["value"])):R("",!0),P.dataIndex==="action"?(c(),A(U,{key:2},{default:a(()=>[t(i,{type:"primary",onClick:j=>e.editItem(q)},{icon:a(()=>[t(y)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:j=>e.showDeleteConfirm(q)},{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("a-form"),j=l("a-tab-pane"),L=l("a-tabs"),B=l("a-card"),Y=l("admin-page-table-content");return c(),T(E,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(p,{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(Y,null,{default:a(()=>[t(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(L,{activeKey:e.activeKey,"onUpdate:activeKey":n[3]||(n[3]=K=>e.activeKey=K),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,K=>(c(),A(j,{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]=z=>e.subTabActiveKey=z)},{default:a(()=>[t(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):(c(),A(m,{key:1,span:24},{default:a(()=>[t(q,{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]=z=>e.formData.testimonial_title=z),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]=z=>e.formData.testimonial_description=z),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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q,Upload:se,DynamicFormFeatures:Ke},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("Upload"),g=l("a-typography-title"),k=l("DynamicFormFeatures"),v=l("a-form"),S=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 c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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]=q=>e.visible=q),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(v,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(p,{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]=q=>e.formData.title=q),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(p,{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]=q=>e.formData.description=q),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(p,{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]=q=>{e.formData.image=q.file,e.formData.image_url=q.file_url})},null,8,["formData"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),t(h,{gutter:16},{default:a(()=>[t(p,{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(k,{data:e.formData.features,addText:e.$t("website_settings.add_feature"),onOnEntry:n[3]||(n[3]=q=>e.formData.features=q)},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(p,{span:24},{default:a(()=>[t(P,{columns:e.columns,"row-key":q=>q.id,"data-source":e.tableData,pagination:!1},{bodyCell:a(({column:q,record:j})=>[q.dataIndex==="image"?(c(),T(E,{key:0},[j.image?(c(),A(y,{key:0,width:70,src:j.image_url},null,8,["src"])):(c(),T("span",Ms,"-"))],64)):R("",!0),q.dataIndex==="action"?(c(),A(O,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:L=>e.editItem(j)},{icon:a(()=>[t(b)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:L=>e.showDeleteConfirm(j)},{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:N,EditOutlined:Z,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,S=>{if(S.id==e.currentRecord.id){var C={...S};if(u.value=="add")C.features=[...S.features,i.value];else{var y=[];$e(S.features,b=>{b.id==i.value.id?y.push(i.value):y.push(b)}),C.features=[...y]}v.push(C)}else v.push(S)}),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:S=>{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 S=[];$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],S.push(y)}else S.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:S},successMessage:d("website_settings.feature_deleted"),success:C=>{n("success",S)}})},onCancel(){}})}}}});function Bs(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),p=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("Upload"),g=l("a-form"),k=l("SaveOutlined"),v=l("a-modal"),S=l("a-image"),C=l("EditOutlined"),y=l("DeleteOutlined"),b=l("a-space"),U=l("a-table");return c(),A(h,{gutter:18,class:"mb-20"},{default:a(()=>[t(p,{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(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(g,{layout:"vertical"},{default:a(()=>[t(h,{gutter:16},{default:a(()=>[t(p,{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(p,{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(p,{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"?(c(),A(S,{key:0,width:48,src:P.image_url},null,8,["src"])):R("",!0),O.dataIndex==="action"?(c(),A(b,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:q=>e.editItem(P)},{icon:a(()=>[t(C)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:q=>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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q,InnerFeaturePage:Ls},setup(e){const n=be(e),{details:f}=ye("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 Ys(e,n,f,o,w,$){const _=l("PlusOutlined"),i=l("a-button"),u=l("a-input"),d=l("a-form-item"),p=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("a-form"),g=l("SaveOutlined"),k=l("a-modal"),v=l("a-image"),S=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("InnerFeaturePage"),U=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(k,{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(p,{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(p,{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(p,{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"?(c(),T(E,{key:0},[P.image?(c(),A(v,{key:0,width:70,src:P.image_url},null,8,["src"])):(c(),T("span",js,"-"))],64)):R("",!0),O.dataIndex==="action"?(c(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:q=>e.editItem(P)},{icon:a(()=>[t(S)]),_:2},1032,["onClick"]),t(i,{type:"primary",onClick:q=>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 Ns=H(Vs,[["render",Ys]]),Gs={components:{EyeOutlined:ae,PlusOutlined:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,FeaturesHomePage:Hs,FeaturesPage:Ns,DynamicFormFeatures:Ke,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J},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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("DynamicFormFeatures"),j=l("SaveOutlined"),L=l("a-button"),B=l("a-form"),Y=l("a-tab-pane"),K=l("a-tabs"),z=l("a-card"),F=l("admin-page-table-content");return c(),T(E,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(p,{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(z,{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(()=>[(c(!0),T(E,null,X(e.allLangs,W=>(c(),A(Y,{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(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.home_page_feature_widget")),1)]),_:1}),t(k,{key:"details_crud"},{default:a(()=>[r(s(e.$t("website_settings.features_home_page")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):e.subTabActiveKey[0]=="features_page"?(c(),A(C,{key:1,langKey:e.activeKey},null,8,["langKey"])):(c(),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?(c(),A(q,{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(L,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(j)]),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]]),Zs={components:{EyeOutlined:ae,PlusOutlined:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,FormItemHeading:_e,Upload:se},setup(){return{...ce()}}};function Js(e,n,f,o,w,$){const _=l("LangAddButton"),i=l("a-page-header"),u=l("router-link"),d=l("a-breadcrumb-item"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("a-button"),j=l("a-form"),L=l("a-tab-pane"),B=l("a-tabs"),Y=l("a-card"),K=l("admin-page-table-content");return c(),T(E,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(p,{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(Y,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(B,{activeKey:e.activeKey,"onUpdate:activeKey":n[18]||(n[18]=z=>e.activeKey=z),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,z=>(c(),A(L,{key:z.key,value:z.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:z.image_url},null,8,["src"]),r(" "+s(z.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(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{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"?(c(),A(j,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(q,{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})):(c(),A(j,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(q,{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(Zs,[["render",Js]]),er={props:["langKey"],components:{PlusOutlined:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-form"),g=l("SaveOutlined"),k=l("a-modal"),v=l("a-image"),S=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(k,{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(p,{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(p,{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(p,{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"?(c(),T(E,{key:0},[O.logo?(c(),A(v,{key:0,width:70,src:O.logo_url},null,8,["src"])):(c(),T("span",tr,"-"))],64)):R("",!0),U.dataIndex==="action"?(c(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:P=>e.editItem(O)},{icon:a(()=>[t(S)]),_: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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("SaveOutlined"),j=l("a-button"),L=l("a-form"),B=l("a-tab-pane"),Y=l("a-tabs"),K=l("a-card"),z=l("admin-page-table-content");return c(),T(E,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(p,{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(z,null,{default:a(()=>[t(K,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(Y,{activeKey:e.activeKey,"onUpdate:activeKey":n[13]||(n[13]=F=>e.activeKey=F),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,F=>(c(),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(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):(c(),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.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(j,{type:"primary",onClick:e.onSubmit,loading:e.loading},{icon:a(()=>[t(q)]),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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("a-form"),m=l("SaveOutlined"),g=l("a-modal"),k=l("EditOutlined"),v=l("DeleteOutlined"),S=l("a-space"),C=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(p,{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(p,{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(p,{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"?(c(),A(S,{key:0},{default:a(()=>[t(i,{type:"primary",onClick:U=>e.editItem(b)},{icon:a(()=>[t(k)]),_: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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=l("Faq"),C=l("a-input"),y=l("a-form-item"),b=l("a-row"),U=l("Upload"),O=l("FormItemHeading"),P=l("SaveOutlined"),q=l("a-button"),j=l("a-form"),L=l("a-tab-pane"),B=l("a-tabs"),Y=l("a-card"),K=l("admin-page-table-content");return c(),T(E,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(p,{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(Y,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(B,{activeKey:e.activeKey,"onUpdate:activeKey":n[6]||(n[6]=z=>e.activeKey=z),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,z=>(c(),A(L,{key:z.key,value:z.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:z.image_url},null,8,["src"]),r(" "+s(z.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(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):(c(),A(m,{key:1,span:24},{default:a(()=>[t(j,{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(q,{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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("a-textarea"),m=l("a-form"),g=l("SaveOutlined"),k=l("a-modal"),v=l("EditOutlined"),S=l("DeleteOutlined"),C=l("a-space"),y=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(k,{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(p,{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(p,{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(p,{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(p,{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(p,{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(p,{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"?(c(),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(S)]),_: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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("a-textarea"),j=l("Upload"),L=l("FormItemHeading"),B=l("a-tab-pane"),Y=l("a-tabs"),K=l("a-card"),z=l("admin-page-table-content");return c(),T(E,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(p,{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(z,null,{default:a(()=>[t(K,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(Y,{activeKey:e.activeKey,"onUpdate:activeKey":n[12]||(n[12]=F=>e.activeKey=F),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,F=>(c(),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(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{key:"social_links"},{default:a(()=>[r(s(e.$t("website_settings.social_links")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):e.subTabActiveKey[0]=="social_links"?(c(),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})):(c(),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(q,{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(j,{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(L,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:N,EditOutlined:Z,DeleteOutlined:x,SaveOutlined:Q,Upload:se},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-col"),h=l("a-row"),D=l("Upload"),m=l("a-form"),g=l("SaveOutlined"),k=l("a-modal"),v=l("a-image"),S=l("EditOutlined"),C=l("DeleteOutlined"),y=l("a-space"),b=l("a-table");return c(),T(E,null,[t(h,{span:16},{default:a(()=>[t(p,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(k,{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(p,{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(p,{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(p,{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(p,{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"?(c(),T(E,{key:0},[O.image?(c(),A(v,{key:0,width:32,src:O.image_url},null,8,["src"])):(c(),T("span",vr,"-"))],64)):R("",!0),U.dataIndex==="action"?(c(),A(y,{key:1},{default:a(()=>[t(i,{type:"primary",onClick:P=>e.editItem(O)},{icon:a(()=>[t(S)]),_: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(([p,h])=>{_.value=p.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"),p=l("a-row"),h=l("a-form"),D=l("SaveOutlined"),m=l("a-button"),g=l("a-space"),k=l("a-drawer");return c(),A(k,{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(p,{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(()=>[(c(!0),T(E,null,X(e.timezones,(v,S)=>(c(),A(_,{key:S,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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-menu-item"),v=l("a-menu"),S=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"),q=l("a-typography-title"),j=l("DynamicFormFeatures"),L=l("SaveOutlined"),B=l("a-button"),Y=l("a-form"),K=l("FormItemHeading"),z=l("a-tab-pane"),F=l("a-tabs"),W=l("a-card"),ge=l("admin-page-table-content");return c(),T(E,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(p,{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(()=>[(c(!0),T(E,null,X(e.allLangs,ke=>(c(),A(z,{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]=V=>e.subTabActiveKey=V)},{default:a(()=>[t(k,{key:"basic_text"},{default:a(()=>[r(s(e.$t("website_settings.basic_settings")),1)]),_:1}),t(k,{key:"header_settings"},{default:a(()=>[r(s(e.$t("website_settings.header_settings")),1)]),_:1}),t(k,{key:"header_client"},{default:a(()=>[r(s(e.$t("website_settings.header_client")),1)]),_:1}),t(k,{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"?(c(),A(S,{key:0,langKey:e.activeKey},null,8,["langKey"])):e.subTabActiveKey[0]=="header_settings"?(c(),A(Y,{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]=V=>e.formData.header_title=V),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]=V=>e.formData.header_sub_title=V),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]=V=>e.formData.header_description=V),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]=V=>{e.formData.header_background_image=V.file,e.formData.header_background_image_url=V.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]=V=>e.formData.header_button1_show=V),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.header_button1_show=="1"?(c(),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]=V=>e.formData.header_button1_text=V),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"?(c(),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]=V=>e.formData.header_button1_url=V),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]=V=>e.formData.header_button2_show=V),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.header_button2_show=="1"?(c(),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]=V=>e.formData.header_button2_text=V),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"?(c(),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]=V=>e.formData.header_button2_url=V),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(q,{level:5,style:{marginBottom:"10px"}},{default:a(()=>[r(s(e.$t("website_settings.header_features")),1)]),_:1}),t(j,{data:e.formData.header_features,addText:e.$t("website_settings.add_feature"),onOnEntry:n[11]||(n[11]=V=>e.formData.header_features=V)},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(L)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})):e.subTabActiveKey[0]=="header_client"?(c(),A(Y,{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]=V=>e.formData.header_client_show=V),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1})]),_:1}),e.formData.header_client_show=="1"?(c(),T(E,{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]=V=>e.formData.header_client_name=V),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]=V=>e.formData.header_client_text=V),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]=V=>{e.formData.header_client_image=V.file,e.formData.header_client_image_url=V.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(L)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})):(c(),A(Y,{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]=V=>e.formData.app_name=V),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]=V=>{e.formData.header_logo=V.file,e.formData.header_logo_url=V.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]=V=>{e.formData.header_sidebar_logo=V.file,e.formData.header_sidebar_logo_url=V.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]=V=>e.formData.login_button_show=V),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.login_button_show=="1"?(c(),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]=V=>e.formData.login_button_text=V),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]=V=>e.formData.register_button_show=V),checkedValue:"1",unCheckedValue:"0"},null,8,["checked"])]),_:1},8,["label","help","validateStatus"])]),_:1}),e.formData.register_button_show=="1"?(c(),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]=V=>e.formData.register_button_text=V),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]=V=>e.formData.home_text=V),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]=V=>e.formData.features_text=V),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]=V=>e.formData.pricing_text=V),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]=V=>e.formData.contact_text=V),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]=V=>e.formData.register_text=V),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(L)]),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:N,EditOutlined:Z,SaveOutlined:Q,Upload:se},setup(e){const n=be(e),{details:f}=ye("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"),p=l("a-textarea"),h=l("Upload"),D=l("a-form"),m=l("SaveOutlined"),g=l("a-button"),k=l("a-modal"),v=l("EditOutlined"),S=l("a-space"),C=l("a-table");return c(),T(E,null,[t(d,{span:16},{default:a(()=>[t(u,null,{default:a(()=>[t(k,{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(p,{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(p,{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"?(c(),A(S,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("Seo"),v=l("a-tab-pane"),S=l("a-tabs"),C=l("a-card"),y=l("admin-page-table-content"),b=l("a-row");return c(),T(E,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(p,{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(S,{activeKey:e.activeKey,"onUpdate:activeKey":n[0]||(n[0]=U=>e.activeKey=U),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,U=>(c(),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(k,{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:N,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"),p=l("a-row"),h=l("PlusOutlined"),D=l("a-button");return c(),T("div",null,[(c(!0),T(E,null,X(e.dynamicValidateForm,(m,g)=>(c(),T("div",{key:g},[t(p,{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":k=>m.title=k,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":k=>m.value=k,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:k=>e.removeItem(m)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]))),128)),t(p,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-input"),v=l("a-form-item"),S=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"),q=l("a-form"),j=l("a-tab-pane"),L=l("a-tabs"),B=l("a-card"),Y=l("admin-page-table-content");return c(),T(E,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(p,{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(S,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(B,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(L,{activeKey:e.activeKey,"onUpdate:activeKey":n[5]||(n[5]=K=>e.activeKey=K),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,K=>(c(),A(j,{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(S,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(q,{layout:"vertical"},{default:a(()=>[t(S,{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(k,{value:e.formData.call_to_action_title,"onUpdate:value":n[0]||(n[0]=z=>e.formData.call_to_action_title=z),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(S,{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]=z=>e.formData.call_to_action_description=z),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(S,{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(k,{value:e.formData.call_to_action_no_email_sell_text,"onUpdate:value":n[2]||(n[2]=z=>e.formData.call_to_action_no_email_sell_text=z),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(S,{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(k,{value:e.formData.call_to_action_email_text,"onUpdate:value":n[3]||(n[3]=z=>e.formData.call_to_action_email_text=z),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(k,{value:e.formData.call_to_action_submit_button_text,"onUpdate:value":n[4]||(n[4]=z=>e.formData.call_to_action_submit_button_text=z),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(S,{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?(c(),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(S,{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:N,EditOutlined:Z,DeleteOutlined:x,ExclamationCircleOutlined:ne,SaveOutlined:Q,LangAddButton:ue,WebsiteSettingSidebar:fe,SuperAdminPageHeader:J,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"),p=l("a-breadcrumb"),h=l("SuperAdminPageHeader"),D=l("WebsiteSettingSidebar"),m=l("a-col"),g=l("a-avatar"),k=l("a-input"),v=l("a-form-item"),S=l("a-row"),C=l("a-textarea"),y=l("Upload"),b=l("FormItemHeading"),U=l("SaveOutlined"),O=l("a-button"),P=l("a-form"),q=l("a-tab-pane"),j=l("a-tabs"),L=l("a-card"),B=l("admin-page-table-content");return c(),T(E,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(p,{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(S,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(L,{class:"page-content-container mt-20 mb-20",bodyStyle:{paddingTop:"15px"}},{default:a(()=>[t(j,{activeKey:e.activeKey,"onUpdate:activeKey":n[12]||(n[12]=Y=>e.activeKey=Y),onChange:e.langChanged},{default:a(()=>[(c(!0),T(E,null,X(e.allLangs,Y=>(c(),A(q,{key:Y.key,value:Y.key},{tab:a(()=>[M("span",null,[t(g,{shape:"square",size:20,src:Y.image_url},null,8,["src"]),r(" "+s(Y.name),1)])]),default:a(()=>[t(S,{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(S,{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(k,{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(S,{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(S,{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(S,{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(k,{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(k,{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(S,{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(k,{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(S,{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(k,{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_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(k,{value:e.formData.register_password_text,"onUpdate:value":n[7]||(n[7]=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})]),_:1}),t(S,{gutter:16},{default:a(()=>[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(k,{value:e.formData.register_confirm_password_text,"onUpdate:value":n[8]||(n[8]=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}),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(k,{value:e.formData.register_submit_button_text,"onUpdate:value":n[9]||(n[9]=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})]),_:1}),t(S,{gutter:16},{default:a(()=>[t(m,{xs:24,sm:24,md:12,lg:12},{default:a(()=>[t(v,{label:e.$t("website_settings.error_contact_support"),name:"error_contact_support",help:e.rules.error_contact_support?e.rules.error_contact_support.message:null,validateStatus:e.rules.error_contact_support?"error":null},{default:a(()=>[t(k,{value:e.formData.error_contact_support,"onUpdate:value":n[10]||(n[10]=K=>e.formData.error_contact_support=K),placeholder:e.$t("common.placeholder_default_text",[e.$t("website_settings.error_contact_support")])},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(k,{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(S,{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:he,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:N,EditOutlined:Z,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(),p=I({}),h=I([]),D=I([]),m=I([]),g=I([]),k=_.value,v="superadmin/currencies?limit=10000",S="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),q=axiosAdmin.get(S);Promise.all([P,q]).then(([j,L])=>{h.value=j.data,D.value=L.data.timezones,m.value=L.data.date_formates,g.value=L.data.time_formates,b()})});const b=()=>{p.value={name:k.name,short_name:k.short_name,email:k.email,phone:k.phone,address:k.address,left_sidebar_theme:k.left_sidebar_theme,dark_logo:k.dark_logo,dark_logo_url:k.dark_logo_url,light_logo:k.light_logo,light_logo_url:k.light_logo_url,small_dark_logo:k.small_dark_logo,small_light_logo:k.small_light_logo,small_dark_logo_url:k.small_dark_logo_url,small_light_logo_url:k.small_light_logo_url,login_image:k.login_image,login_image_url:k.login_image_url,shortcut_menus:k.shortcut_menus,rtl:k.rtl,currency_id:k.x_currency_id,primary_color:k.primary_color,timezone:k.timezone,date_format:k.date_format,time_format:k.time_format,auto_detect_timezone:k.auto_detect_timezone,app_debug:k.app_debug,update_app_notification:k.update_app_notification,_method:"PUT"}};return{permsArray:$,formData:p,loading:o,rules:w,currencies:h,onSubmit:()=>{f({url:`superadmin/global-company/${k.xid}`,data:p.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}}},Yr={class:"mt-40"},Nr={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"),p=l("a-row"),h=l("a-select-option"),D=l("a-select"),m=l("CurrencyAddButton"),g=l("a-switch"),k=l("color-picker"),v=l("Upload"),S=l("SaveOutlined"),C=l("a-button"),y=l("a-form");return c(),A(y,{layout:"vertical"},{default:a(()=>[M("div",Yr,[t(_,null,{default:a(()=>[r(s(e.$t("setup_company.basic_settings")),1)]),_:1})]),t(p,{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(p,{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(p,{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",Nr,[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(()=>[(c(!0),T(E,null,X(o.currencies,b=>(c(),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(p,{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(()=>[(c(!0),T(E,null,X(o.timezones,(b,U)=>(c(),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(p,{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(()=>[(c(!0),T(E,null,X(o.dateFormats,(b,U)=>(c(),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(()=>[(c(!0),T(E,null,X(o.timeFormats,(b,U)=>(c(),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(p,{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"?(c(),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(k,{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(p,{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(p,{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?(c(),A(p,{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(S)]),default:a(()=>[r(" "+s(e.$t("common.update")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})):R("",!0)]),_:1})}const Zr=H(jr,[["render",Xr]]),Jr=le({components:{PlusOutlined:N,EditOutlined:Z,DeleteOutlined:x,DoubleRightOutlined:at,DoubleLeftOutlined:ya,SaveOutlined:Q,SyncOutlined:Fe,CheckCircleOutlined:Ce,HomeOutlined:ze,InfoCircleOutlined:nt,CurrencyTable:Tt,EditSetupSetting:Zr,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),p=I(!1),h=I(!1);G(()=>{D()});const D=()=>{axiosAdmin.get("app").then(P=>{$.value=P.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,p.value=!0,d.value=!0)})},m=()=>$.value.app.x_currency_id==null,g=()=>{f.value.addItem()},k=P=>{D()},v=()=>{w.value.onSubmit()},S=()=>{d.value=!0,axiosAdmin.post("/user").then(function(P){n.commit("auth/updateUser",P.data.user),p.value=!0}).catch(function(P){})},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(P){n.dispatch("auth/updateApp"),h.value=!1,_.value=_.value>=2?2:_.value+1}).catch(function(P){})},O=()=>{n.dispatch("auth/logout")};return{appDetails:$,currentStep:_,correctStep:i,...xe(u),currencyTableRef:f,addCurrency:g,currencyAddSuccess:k,companySettingRef:w,submitCompanySetting:v,companySettingUpdated:S,showFinalModal:d,setupCompleted:p,goToDashboard:C,companyWhiteLableRef:o,goBack:y,goNext:b,showConfirmWhiteLabelModal:h,confirmWhiteLabel:U,logout:O}}}),xr=["src"],ei={style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"left",zIndex:1,marginBottom:"10px"}},ti={key:0,style:{color:"#7676e3"}},ai={key:1,style:{color:"#7676e3"}},li={style:{color:"#7676e3"}};function ni(e,n,f,o,w,$){const _=l("a-col"),i=l("a-button"),u=l("a-row"),d=l("a-layout-header"),p=l("a-alert"),h=l("a-step"),D=l("a-steps"),m=l("a-divider"),g=l("PlusOutlined"),k=l("CurrencyTable"),v=l("WhiteLabelSetting"),S=l("EditSetupSetting"),C=l("DoubleLeftOutlined"),y=l("DoubleRightOutlined"),b=l("SaveOutlined"),U=l("a-space"),O=l("a-card"),P=l("CheckCircleOutlined"),q=l("InfoCircleOutlined"),j=l("HomeOutlined"),L=l("SyncOutlined"),B=l("a-result"),Y=l("a-modal"),K=l("a-layout-content"),z=l("a-layout");return c(),A(z,{class:"layout"},{default:a(()=>[t(d,null,{default:a(()=>[t(u,null,{default:a(()=>[t(_,{span:4},{default:a(()=>[e.appDetails&&e.appDetails.app?(c(),T("img",{key:0,style:{height:"32px"},src:e.appDetails.app.left_sidebar_theme=="dark"?e.appDetails.app.dark_logo_url:e.appDetails.app.light_logo_url},null,8,xr)):R("",!0)]),_:1}),t(_,{span:20,style:{textAlign:"right"}},{default:a(()=>[t(i,{type:"link",onClick:e.logout,class:"p-0",style:{color:"white"}},{default:a(()=>[r(s(e.$t("menu.logout")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1}),t(K,{style:{padding:"0 50px"}},{default:a(()=>[t(O,{bodyStyle:{padding:"0px"},style:{height:"100vh",marginTop:"20px",background:"white"},class:"setup-page-content-container"},{default:a(()=>[t(u,null,{default:a(()=>[t(_,{span:21,offset:1},{default:a(()=>[t(p,{message:e.$t("setup_superadmin_company.setup_not_completed"),description:e.$t("setup_superadmin_company.setup_not_completed_description"),type:"error","show-icon":"",style:{marginTop:"40px"}},null,8,["message","description"])]),_:1})]),_:1}),t(u,{style:{marginTop:"80px",background:"white"}},{default:a(()=>[t(_,{span:21,offset:1},{default:a(()=>[t(D,{current:e.currentStep},{default:a(()=>[t(h,{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(h,{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(h,{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(m),e.appDetails&&e.appDetails.app&&e.appDetails.app.name?(c(),T(E,{key:0},[e.currentStep==0?(c(),T(E,{key:0},[t(i,{type:"primary",onClick:e.addCurrency},{default:a(()=>[t(g),r(" "+s(e.$t("currency.add")),1)]),_:1},8,["onClick"]),t(k,{class:"mb-40",ref:"currencyTableRef",showFilter:!1,panelType:"superadmin",onAddOrEditSuccess:e.currencyAddSuccess},null,8,["onAddOrEditSuccess"])],64)):R("",!0),e.currentStep==1?(c(),A(v,{key:1})):R("",!0),e.currentStep==2?(c(),A(S,{key:2,class:"mb-40",ref:"companySettingRef",showSubmitButton:!1,onUpdateSuccess:e.companySettingUpdated},null,8,["onUpdateSuccess"])):R("",!0)],64)):R("",!0)]),_:1})]),_:1}),t(u,{class:"mt-10"},{default:a(()=>[t(_,{span:20,offset:1},{default:a(()=>[M("div",ei,[t(U,null,{default:a(()=>[e.currentStep>=1&&e.currentStep!=2?(c(),A(i,{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?(c(),A(i,{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?(c(),A(i,{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})]),_:1}),t(Y,{open:e.showFinalModal,"onUpdate:open":n[0]||(n[0]=F=>e.showFinalModal=F),maskClosable:!1,closable:!1,footer:null,centered:""},{default:a(()=>[t(B,null,{title:a(()=>[e.setupCompleted?(c(),T("span",ti,s(e.$t("setup_superadmin_company.setup_complete_message")),1)):(c(),T("span",ai,s(e.$t("setup_superadmin_company.setup_running_message")),1))]),icon:a(()=>[e.setupCompleted?(c(),A(P,{key:0})):(c(),A(q,{key:1}))]),extra:a(()=>[e.setupCompleted?(c(),A(i,{key:0,type:"primary",style:{backgroundColor:"#52c41a",border:"#52c41a"},onClick:e.goToDashboard},{default:a(()=>[t(j),r(" "+s(e.$t("setup_superadmin_company.go_to_dashboard")),1)]),_:1},8,["onClick"])):(c(),A(L,{key:1,style:{fontSize:"38px",color:"#5254cf"},spin:""}))]),_:1})]),_:1},8,["open"]),t(Y,{open:e.showConfirmWhiteLabelModal,"onUpdate:open":n[2]||(n[2]=F=>e.showConfirmWhiteLabelModal=F),maskClosable:!1,footer:null,centered:""},{default:a(()=>[t(B,null,{title:a(()=>[M("span",li,s(e.$t("setup_superadmin_company.white_label_settings_completed")),1)]),icon:a(()=>[t(q)]),extra:a(()=>[t(U,null,{default:a(()=>[t(i,{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(i,{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"])]),_:1})]),_:1})}const oi=H(Jr,[["render",ni]]),si=[{path:"/superadmin/setup",component:oi,name:"superadmin.setup_app.index",meta:{requireAuth:!0,menuParent:"",menuKey:"setup_company"}}],ri=()=>{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}},ii=le({props:["data","visible"],components:{PlusOutlined:N,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,p)=>{e.visible&&(o.value={xid:e.data.xid,email:e.data.email,subject:"",body:""},_.value={})}),{loading:$,rules:_,onSubmit:i,onCloseCancel:u,formData:o}}});function ui(e,n,f,o,w,$){const _=l("a-input"),i=l("a-form-item"),u=l("a-col"),d=l("a-textarea"),p=l("a-row"),h=l("a-form"),D=l("SendOutlined"),m=l("a-button"),g=l("a-modal");return c(),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(p,{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]=k=>e.data.email=k),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]=k=>e.formData.subject=k),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]=k=>e.formData.body=k),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 di=H(ii,[["render",ui]]),mi={components:{PlusOutlined:N,SendOutlined:Me,CheckOutlined:et,CloseOutlined:Ee,FileExcelOutlined:va,FileDoneOutlined:ka,AddEdit:di,AdminPageHeader:Pt,EmailNotSetup:We},setup(){const{formatDateTime:e,permsArray:n}=ee(),{url:f,columns:o,filterableColumns:w}=ri(),{table:$,tableUrl:_,fetch:i,handleTableChange:u,onTableSearch:d}=Pe(),p=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=>{p.value=!0,h.value=v},onCancel:()=>{p.value=!1},visible:p,detail:h,setUrlData:m}}},_i={class:"table-responsive"};function pi(e,n,f,o,w,$){const _=l("a-page-header"),i=l("router-link"),u=l("a-breadcrumb-item"),d=l("a-breadcrumb"),p=l("AdminPageHeader"),h=l("a-select-option"),D=l("a-select"),m=l("a-input-search"),g=l("a-input-group"),k=l("a-col"),v=l("a-row"),S=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"),q=l("CheckOutlined"),j=l("CloseOutlined"),L=l("SendOutlined"),B=l("a-button"),Y=l("a-table"),K=l("admin-page-table-content");return c(),T(E,null,[t(p,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(S,null,{default:a(()=>[t(v,{gutter:[16,16]},{default:a(()=>[t(k,{xs:24,sm:24,md:24,lg:24,xl:24},{default:a(()=>[t(v,{gutter:[16,16],justify:"end"},{default:a(()=>[t(k,{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]=z=>o.table.searchColumn=z),placeholder:e.$t("common.select_default_text",[""])},{default:a(()=>[(c(!0),T(E,null,X(o.filterableColumns,z=>(c(),A(h,{key:z.key},{default:a(()=>[r(s(z.value),1)]),_:2},1024))),128))]),_:1},8,["value","placeholder"]),t(m,{style:{width:"75%"},value:o.table.searchString,"onUpdate:value":n[1]||(n[1]=z=>o.table.searchString=z),"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(k,{span:24},{default:a(()=>[t(P,{activeKey:o.filters.replied,"onUpdate:activeKey":n[2]||(n[2]=z=>o.filters.replied=z),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(k,{span:24},{default:a(()=>[M("div",_i,[t(Y,{columns:o.columns,"row-key":z=>z.xid,"data-source":o.table.data,pagination:o.table.pagination,loading:o.table.loading,onChange:o.handleTableChange,bordered:"",size:"middle"},{bodyCell:a(({column:z,record:F})=>[z.dataIndex=="date_time"?(c(),T(E,{key:0},[r(s(o.formatDateTime(F.date_time)),1)],64)):R("",!0),z.dataIndex=="replied"?(c(),T(E,{key:1},[F.replied?(c(),A(q,{key:0,style:{color:"green"}})):(c(),A(j,{key:1,style:{color:"red"}}))],64)):R("",!0),z.dataIndex=="action"?(c(),A(B,{key:2,type:"primary",onClick:W=>o.viewSendMail(F),style:{"margin-left":"4px"}},{icon:a(()=>[t(L)]),_:2},1032,["onClick"])):R("",!0)]),_:1},8,["columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})]),_:1})],64)}const ci=H(mi,[["render",pi]]),fi=[{path:"/",component:he,children:[{path:"/superadmin/email-queries",component:ci,name:"superadmin.email-queries.index",meta:{requireAuth:!0,menuParent:"email_queries",menuKey:e=>"email_queries",permission:"superadmin"}}]}],hi=[...en,...Zn,...to,...ko,...qo,...hs,...Vr,...si,...fi];export{hi as default};
