| Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/ |
| Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Index-3a601437.js |
import $ from"./App-bc062293.js";import{r as _,O as N,o as m,c as p,a,w as B,v as j,u as d,b as x,d as S,f as e,g as t,k as c,t as o,F as y,e as M,i as k,l as f}from"./app-f1493ab2.js";import{d as V}from"./debounce-7f7c0d78.js";import{_ as L}from"./Table-700fbce6.js";import{T as O,a as z,_ as h}from"./TableHeaderRowItem-6e9202af.js";import{T as Z,a as E,_ as w}from"./TableBodyRowItem-551209f9.js";import"./App-6e8cb8a8.js";import"./Sidebar-b962a0c1.js";import"./Menu-45912eaa.js";import"./ProfileModal-09ae28bb.js";import"./FormInput-b3450213.js";import"./tabs-80627b62.js";import"./hidden-f79cef22.js";import"./micro-task-89dcd6af.js";import"./transition-f32a8133.js";import"./use-outside-click-92c6377f.js";import"./LangToggle-d2b58a25.js";import"./MobileSidebar-5b51f786.js";import"./index-114bea05.js";/* empty css */import"./Sidebar-10203eb5.js";import"./_baseGetTag-f7f93ac1.js";import"./Pagination-6973c28d.js";import"./_plugin-vue_export-helper-c27b6911.js";const D={class:"md:bg-white flex items-center border border-primary md:border-none md:shadow-sm h-12 md:h-10 w-full md:w-80 rounded-[0.5rem] mb-6 text-xl md:text-sm"},F=["placeholder"],H={key:1,class:"pr-2"},I={class:"py-1 px-2 bg-gray-50 rounded-[5px] border border-dashed w-[20em] truncate text-xs capitalize"},R={class:"flex items-center mt-3"},q={__name:"EmailTemplateTable",props:{rows:{type:Object,required:!0},filters:{type:Object}},setup(u){const i=_({search:u.filters.search}),l=_(!1),T=()=>{i.value.search=null,b()},g=V(()=>{l.value=!0,b()},1e3),b=()=>{const n=window.location.pathname;N.visit(n,{method:"get",data:i.value})};return(n,r)=>(m(),p(y,null,[a("div",D,[r[4]||(r[4]=a("span",{class:"pl-3"},[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 15l6 6m-11-4a7 7 0 1 1 0-14a7 7 0 0 1 0 14Z"})])],-1)),B(a("input",{onInput:r[0]||(r[0]=(...s)=>d(g)&&d(g)(...s)),"onUpdate:modelValue":r[1]||(r[1]=s=>i.value.search=s),type:"text",class:"outline-none px-4 w-full",placeholder:n.$t("Search here")},null,40,F),[[j,i.value.search]]),l.value===!1&&i.value.search?(m(),p("button",{key:0,onClick:T,type:"button",class:"pr-2"},r[2]||(r[2]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[a("path",{fill:"currentColor",d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2zm3.7 12.3c.4.4.4 1 0 1.4c-.4.4-1 .4-1.4 0L12 13.4l-2.3 2.3c-.4.4-1 .4-1.4 0c-.4-.4-.4-1 0-1.4l2.3-2.3l-2.3-2.3c-.4-.4-.4-1 0-1.4c.4-.4 1-.4 1.4 0l2.3 2.3l2.3-2.3c.4-.4 1-.4 1.4 0c.4.4.4 1 0 1.4L13.4 12l2.3 2.3z"})],-1)]))):x("",!0),l.value?(m(),p("span",H,r[3]||(r[3]=[S('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="3.5" r="1.5" fill="currentColor" opacity="0"><animateTransform attributeName="transform" calcMode="discrete" dur="2.4s" repeatCount="indefinite" type="rotate" values="0 12 12;90 12 12;180 12 12;270 12 12"></animateTransform><animate attributeName="opacity" dur="0.6s" keyTimes="0;0.5;1" repeatCount="indefinite" values="1;1;0"></animate></circle><circle cx="12" cy="3.5" r="1.5" fill="currentColor" opacity="0"><animateTransform attributeName="transform" begin="0.2s" calcMode="discrete" dur="2.4s" repeatCount="indefinite" type="rotate" values="30 12 12;120 12 12;210 12 12;300 12 12"></animateTransform><animate attributeName="opacity" begin="0.2s" dur="0.6s" keyTimes="0;0.5;1" repeatCount="indefinite" values="1;1;0"></animate></circle><circle cx="12" cy="3.5" r="1.5" fill="currentColor" opacity="0"><animateTransform attributeName="transform" begin="0.4s" calcMode="discrete" dur="2.4s" repeatCount="indefinite" type="rotate" values="60 12 12;150 12 12;240 12 12;330 12 12"></animateTransform><animate attributeName="opacity" begin="0.4s" dur="0.6s" keyTimes="0;0.5;1" repeatCount="indefinite" values="1;1;0"></animate></circle></svg>',1)]))):x("",!0)]),e(L,{rows:u.rows},{default:t(()=>[e(O,null,{default:t(()=>[e(z,null,{default:t(()=>[e(h,{position:"first"},{default:t(()=>[c(o(n.$t("Name")),1)]),_:1}),e(h,null,{default:t(()=>[c(o(n.$t("Subject")),1)]),_:1}),e(h,null,{default:t(()=>[c(o(n.$t("Last updated")),1)]),_:1}),e(h,{position:"last"})]),_:1})]),_:1}),e(Z,null,{default:t(()=>[(m(!0),p(y,null,M(u.rows.data,(s,C)=>(m(),k(E,{key:C},{default:t(()=>[e(w,{position:"first",class:"capitalize"},{default:t(()=>[e(d(f),{href:"/admin/settings/email-template/"+s.id},{default:t(()=>[c(o(s.name),1)]),_:2},1032,["href"])]),_:2},1024),e(w,null,{default:t(()=>[e(d(f),{href:"/admin/settings/email-template/"+s.id},{default:t(()=>[a("div",I,o(s.subject),1)]),_:2},1032,["href"])]),_:2},1024),e(w,null,{default:t(()=>[e(d(f),{href:"/admin/settings/email-template/"+s.id},{default:t(()=>[c(o(s.updated_at),1)]),_:2},1032,["href"])]),_:2},1024),e(w,{position:"last"},{default:t(()=>[a("div",R,[e(d(f),{href:"/admin/settings/email-template/"+s.id},{default:t(()=>r[5]||(r[5]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[a("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9.97 7.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06L13.44 12L9.97 8.53a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})],-1)])),_:2},1032,["href"])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["rows"])],64))}},U={class:"text-xl mb-1"},A={class:"mb-6 flex items-center text-sm leading-6 text-gray-600"},G={class:"ml-1 mt-1"},ve={__name:"Index",props:{rows:Object,filters:Object},setup(u){const v=u;return(i,l)=>(m(),k($,null,{default:t(()=>[a("div",null,[a("h2",U,o(i.$t("Email templates")),1),a("p",A,[l[0]||(l[0]=a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18Zm.05-13v.1h-.1V8h.1Z"})],-1)),a("span",G,o(i.$t("Configure email templates")),1)])]),e(q,{rows:v.rows,filters:v.filters},null,8,["rows","filters"])]),_:1}))}};export{ve as default};