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