import{c,I as S,_ as C,x as y,r as f,E as V,e as k,o as p,g as v,w as r,i,t as l,F as x,j as d,J as m,f as $,s as E,ah as H,aw as I}from"./app-DNXD_-wA.js";var P={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"};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){j(e,s,t[s])})}return e}function j(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 c(S,h({},a,{icon:P}),null)};u.displayName="SnippetsOutlined";u.inheritAttrs=!1;const B=y({props:["credentials"],components:{SnippetsOutlined:u},setup(){const e=window.config.app_env,n=window.config.app_type,t=f([{title:"Details",dataIndex:"details"},{title:"action",dataIndex:"action"}]),a=f([{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 V(()=>{n=="saas"&&(a.value=[{name:"SuperAdmin",email:"superadmin@example.com",password:12345678},...a.value])}),{appEnv:e,demoCredentials:a,demoCredentialsColumns:t}}}),D={key:0},N=d("br",null,null,-1),z=d("br",null,null,-1);function M(e,n,t,a,s,A){const g=E,w=k("SnippetsOutlined"),b=H,O=I;return e.appEnv!="envato"?(p(),v("div",D,[c(g,null,{default:r(()=>[i(l(e.$t("common.demo_account_credentials")),1)]),_:1}),c(O,{pagination:!1,dataSource:e.demoCredentials,columns:e.demoCredentialsColumns},{bodyCell:r(({column:_,record:o})=>[_.dataIndex==="details"?(p(),v(x,{key:0},[d("b",null,l(o.name),1),i(),N,i(" Email : "+l(o.email)+" ",1),z,i(" Password : "+l(o.password),1)],64)):m("",!0),_.dataIndex==="action"?(p(),$(b,{key:1,onClick:()=>{e.credentials.email=o.email,e.credentials.password=o.password}},{title:r(()=>[i(l(e.$t("popover.click_here_to_copy_credentials",[o.name])),1)]),default:r(()=>[c(w)]),_:2},1032,["onClick"])):m("",!0)]),_:1},8,["dataSource","columns"])])):m("",!0)}const L=C(B,[["render",M]]);export{L as D};
