import{a as r,y as b,_ as y,d as C,f as v,E as k,r as V,o as p,c as f,w as c,l as i,t as l,G as x,j as m,k as d,i as $,x as H,H as E,J as P}from"./app-DyK1k-lL.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z"}}]},name:"snippets",theme:"outlined"};const B=j;function h(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),a.forEach(function(s){D(e,s,t[s])})}return e}function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=function(n,t){var a=h({},n,t.attrs);return r(b,h({},a,{icon:B}),null)};u.displayName="SnippetsOutlined";u.inheritAttrs=!1;const I=u,N=C({props:["credentials"],components:{SnippetsOutlined:I},setup(){const e=window.config.app_env,n=window.config.app_type,t=v([{title:"Details",dataIndex:"details"},{title:"action",dataIndex:"action"}]),a=v([{name:"Admin",email:"admin@example.com",password:12345678},{name:"StockManager",email:"stockmanager@example.com",password:12345678},{name:"Salesman",email:"salesman@example.com",password:12345678}]);return k(()=>{n=="saas"&&(a.value=[{name:"SuperAdmin",email:"superadmin@example.com",password:12345678},...a.value])}),{appEnv:e,demoCredentials:a,demoCredentialsColumns:t}}}),z={key:0},A=m("br",null,null,-1),M=m("br",null,null,-1);function L(e,n,t,a,s,T){const g=H,S=V("SnippetsOutlined"),O=E,w=P;return e.appEnv!="envato"?(p(),f("div",z,[r(g,null,{default:c(()=>[i(l(e.$t("common.demo_account_credentials")),1)]),_:1}),r(w,{pagination:!1,dataSource:e.demoCredentials,columns:e.demoCredentialsColumns},{bodyCell:c(({column:_,record:o})=>[_.dataIndex==="details"?(p(),f(x,{key:0},[m("b",null,l(o.name),1),i(),A,i(" Email : "+l(o.email)+" ",1),M,i(" Password : "+l(o.password),1)],64)):d("",!0),_.dataIndex==="action"?(p(),$(O,{key:1,onClick:()=>{e.credentials.email=o.email,e.credentials.password=o.password}},{title:c(()=>[i(l(e.$t("popover.click_here_to_copy_credentials",[o.name])),1)]),default:c(()=>[r(S)]),_:2},1032,["onClick"])):d("",!0)]),_:1},8,["dataSource","columns"])])):d("",!0)}const G=y(N,[["render",L]]);export{G as D};
