1import{r as L,m as D,o as y,c as x,a as e,w as R,v as K,u as k,b as $,d as Y,a1 as q,t as d,j as f,g as u,h as C,F as P,e as U,f as B,n as E,O as G,S as Q,i as X}from"./app-aac69b09.js";import tt from"./Layout-c923f7af.js";import{d as et}from"./debounce-aa28bd86.js";import{a as rt,_ as M,T as st}from"./TableHeaderRowItem-ee312b7c.js";import{a as at,_ as F,T as nt}from"./TableBodyRowItem-8f4c3320.js";import{_ as ot,R as it,h as lt,y as I,M as ct}from"./Dropdown-8a154ab7.js";import{_ as dt,a as ut}from"./DropdownItem-a5dd9070.js";import{P as ft}from"./Pagination-b4b478c7.js";import"./App-0c0e2cd7.js";import"./Sidebar-0ed9d2a7.js";import"./Menu-6b5b4f09.js";import"./usePlanFeature-881910f1.js";import"./Modal-3a404f6d.js";import"./transition-7eda090c.js";import"./hidden-1b89de74.js";import"./ProfileModal-3ee70226.js";import"./FormInput-f8357eea.js";import"./FormPhoneInput-cc03fc34.js";import"./FormSelect-354c04f0.js";import"./use-text-value-e57c466b.js";import"./LangToggle-9d812314.js";import"./OrganizationModal-f6338f95.js";import"./UserMenuNavSection-32444463.js";import"./UserMenuNavItem-19f4f575.js";import"./adminLogoMediaUrl-db5c489e.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./MobileSidebar-1cb99436.js";import"./useRtl-88190dc3.js";import"./_baseGetTag-4083f8c0.js";import"./use-tree-walker-4a0e16a6.js";const mt=new Set(["flow_token","flow_id"]),pt=new Set(["flow_token","flow_id","response","screen","action","token"]);function ht(t){return!t||typeof t!="string"?"Field":t.startsWith("Paragraph_")?"Long answer":t.startsWith("Text_")?"Short answer":t.startsWith("Checkbox_")?"Checkbox":t.startsWith("Radio_")?"Single choice":t.startsWith("Dropdown_")?"Dropdown":t.startsWith("OptIn_")?"Opt-in":t.startsWith("Date_Picker_")||t.startsWith("Calendar_")?"Date":/^chips_/i.test(t)?"Choice":t.startsWith("NavList_")?"List":t.startsWith("Image_")?"Image":t}function O(t,r={}){if(!t||typeof t!="object")return r;if(Array.isArray(t))return t.forEach(l=>O(l,r)),r;const a=[t.name,t.key,t.field,t.id],n=[t.label,t.title,t.text],o=a.find(l=>typeof l=="string"&&l.trim()),s=n.find(l=>typeof l=="string"&&l.trim());return o&&s&&(r[o]=s),Object.values(t).forEach(l=>O(l,r)),r}function H(t){if(!t||typeof t!="object")return{};const r={};let a=null;const n=t.response;if(n!=null&&typeof n=="string"&&n.trim())try{const s=JSON.parse(n);s&&typeof s=="object"&&!Array.isArray(s)&&(a=s)}catch{}else n!=null&&typeof n=="object"&&!Array.isArray(n)&&(a=n);a&&Object.assign(r,a);const o=t.data;o!=null&&typeof o=="object"&&!Array.isArray(o)&&Object.assign(r,o);for(const[s,l]of Object.entries(t))s==="response"||s==="data"||mt.has(s)||s.startsWith("__")||(r[s]=l);return delete r.flow_token,delete r.flow_id,r}function N(t){return t==null?"":Array.isArray(t)||t&&typeof t=="object"?JSON.stringify(t):String(t)}function A(t,r){if(!t||typeof t!="object")return;const a=t.type;if(a==="Footer")return;if(a==="Form"&&Array.isArray(t.children)){t.children.forEach(s=>A(s,r));return}const n=typeof t.name=="string"?t.name.trim():"",o=t["data-source"]||t.data_source;if(n&&Array.isArray(o)){r.has(n)||r.set(n,new Map);const s=r.get(n);for(const l of o){const b=(l==null?void 0:l.id)!=null?String(l.id):"",_=(l==null?void 0:l.title)!=null?String(l.title):"";b&&s.set(b,_||b)}}if(a==="If"){(Array.isArray(t.then)?t.then:[]).forEach(s=>A(s,r)),(Array.isArray(t.else)?t.else:[]).forEach(s=>A(s,r));return}if(a==="Switch"&&t.cases&&typeof t.cases=="object"){Object.values(t.cases).flat().forEach(s=>A(s,r));return}Array.isArray(t.children)&&t.children.forEach(s=>A(s,r))}function z(t){const r=new Map;if(!t||typeof t!="object"||!Array.isArray(t.screens))return r;for(const a of t.screens){const n=a.layout,o=Array.isArray(n==null?void 0:n.children)?n.children[0]:null,s=o==null?void 0:o.children;Array.isArray(s)&&s.forEach(l=>A(l,r))}return r}function gt(t){if(typeof t!="string")return null;const r=t.trim();if(!r.startsWith("["))return null;try{const a=JSON.parse(r);return Array.isArray(a)?a:null}catch{return null}}function yt(t,r,a){const n=a instanceof Map?a==null?void 0:a.get(r):a==null?void 0:a[r],o=s=>s.map(l=>
1String(l)).map(l=>(n!=null&&n.get?n.get(l):n==null?void 0:n[l])??l);if(!n||typeof n.get!="function")return N(t);if(Array.isArray(t))return o(t).join(", ");if(typeof t=="string"){const s=gt(t);return s?o(s).join(", "):o([t])[0]??""}return N(t)}function Z(t){const r=O(t||{},{});return new Map(Object.entries(r))}function J(t,r,a=null){const n=r instanceof Map?r:new Map(Object.entries(r||{}));return!t||typeof t!="object"?[]:Object.entries(t).filter(([o])=>!pt.has(o)&&!o.startsWith("__")).map(([o,s])=>({key:o,label:n.get(o)??ht(o),value:yt(s,o,a)}))}function wt(t,r,a={}){const n=a.maxPairs??5,o=a.valueMaxLen??48,s=a.fieldOptionMaps??null,l=J(t,r,s);if(l.length===0)return"";const b=l.slice(0,n).map(v=>{const i=v.value.length>o?`${v.value.slice(0,o)}â¦`:v.value;return`${v.label}: ${i}`}),_=l.length>n?" â¦":"";return`${b.join(", ")}${_}`}function xt(t,r,a={}){const n=H(t),o=Z(r),s=z(r||{});return wt(n,o,{maxPairs:a.maxPairs??4,valueMaxLen:a.valueMaxLen??48,fieldOptionMaps:s})}const vt={key:0,class:"flex flex-col gap-3 md:flex-row md:flex-wrap md:items-center mb-6 max-md:mt-6"},bt={class:"bg-white border border-gray-200 rounded-md flex items-center py-[2px] md:py-[2px] md:w-80 flex-1 min-w-0"},_t=["placeholder"],kt={key:1,class:"pr-2 shrink-0"},$t={class:"w-full md:w-36"},Ct={value:"10"},St={value:"25"},At={value:"50"},jt={key:1,class:"bg-white border border-gray-200 rounded-lg min-h-[60vh] overflow-x-auto"},Mt={class:"w-full"},Ft=["onClick"],Tt=["onClick"],Dt=["title","onClick"],Lt={class:"line-clamp-4 break-words"},Pt=["onClick"],Bt={key:3,class:"bg-white border border-gray-200 rounded-md"},Et={class:"p-4 py-8"},Ot={class:"text-center text-lg font-medium mb-4"},Vt={__name:"WhatsappFormResponsesTable",props:{rows:{type:Object,required:!0},filters:{type:Object,default:()=>({})},formId:{type:[Number,String],required:!0},jsonSchema:{type:Object,default:()=>({})}},emits:["openDetails"],setup(t,{emit:r}){var V,W;const a=t,n=r,o=L({search:((V=a.filters)==null?void 0:V.search)||"",per_page:String(((W=a.filters)==null?void 0:W.per_page)||10)}),s=L(!1),l=D(()=>{const c=a.rows;return c!=null&&c.meta&&typeof c.meta.current_page<"u"?c.meta:c}),b=()=>`/automation/whatsapp-forms/${a.formId}/responses`,_=()=>{G.get(b(),{search:o.value.search||void 0,per_page:o.value.per_page},{preserveState:!0,preserveScroll:!0,onFinish:()=>{s.value=!1}})},v=et(()=>{s.value=!0,_()},1e3),i=()=>{o.value.search="",_()},p=()=>{_()},w=c=>{var m,T;return`${((m=c==null?void 0:c.contact)==null?void 0:m.first_name)||""} ${((T=c==null?void 0:c.contact)==null?void 0:T.last_name)||""}`.trim()||"Unknown contact"},g=c=>new Date(c.created_at).toLocaleString(),j=c=>(c==null?void 0:c.response_preview)!=null&&String(c.response_preview).trim()!==""?String(c.response_preview):xt(c==null?void 0:c.payload,a.jsonSchema)||"â";return(c,h)=>(y(),x(P,null,[t.rows.data.length>0?(y(),x("div",vt,[e("div",bt,[h[5]||(h[5]=e("span",{class:"pl-3 py-2 shrink-0"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[e("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)),R(e("input",{"onUpdate:modelValue":h[0]||(h[0]=m=>o.value.search=m),type:"text",class:"w-full outline-none rounded-xl py-2 pl-2 mr-2 text-sm",placeholder:c.$t("Search by contact name or phone"),onInput:h[1]||(h[1]=(...m)=>k(v)&&k(v)(...m))},null,40,_t),[[K,o.value.search]]),s.value===!1&&o.value.search?(y(),x("button",{key:0,type:"button",class:"pr-2 shrink-0",onClick:i},h[3]||(h[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("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)]))):$("",!0),s.value?(y(),x("span",kt,h[4]||(h[4]=[Y('<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="indef
1inite" 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)]))):$("",!0)]),e("div",$t,[R(e("select",{"onUpdate:modelValue":h[2]||(h[2]=m=>o.value.per_page=m),class:"w-full border border-gray-200 rounded-md px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 bg-white",onChange:p},[e("option",Ct,"10 / "+d(c.$t("page")),1),e("option",St,"25 / "+d(c.$t("page")),1),e("option",At,"50 / "+d(c.$t("page")),1)],544),[[q,o.value.per_page]])])])):$("",!0),t.rows.data.length>0?(y(),x("div",jt,[e("table",Mt,[f(st,null,{default:u(()=>[f(rt,null,{default:u(()=>[f(M,{position:"first"},{default:u(()=>[C(d(c.$t("Person Name")),1)]),_:1}),f(M,{class:"hidden sm:table-cell"},{default:u(()=>[C(d(c.$t("Phone")),1)]),_:1}),f(M,{class:"hidden md:table-cell min-w-[200px] max-w-lg"},{default:u(()=>[C(d(c.$t("Response")),1)]),_:1}),f(M,{class:"hidden md:table-cell whitespace-nowrap"},{default:u(()=>[C(d(c.$t("Captured At")),1)]),_:1}),f(M,{position:"last"})]),_:1})]),_:1}),f(nt,null,{default:u(()=>[(y(!0),x(P,null,U(t.rows.data,(m,T)=>(y(),B(at,{key:m.id,class:E(T<t.rows.data.length-1?"border-b":"")},{default:u(()=>[f(F,{position:"first"},{default:u(()=>[e("button",{type:"button",class:"block w-full text-left font-medium text-gray-900 hover:text-primary",onClick:S=>n("openDetails",m)},d(w(m)),9,Ft)]),_:2},1024),f(F,{class:"hidden sm:table-cell"},{default:u(()=>{var S;return[e("button",{type:"button",class:"block w-full text-left text-gray-700 hover:text-primary",onClick:ne=>n("openDetails",m)},d(((S=m.contact)==null?void 0:S.phone)||"-"),9,Tt)]}),_:2},1024),f(F,{class:"hidden md:table-cell align-top max-w-lg"},{default:u(()=>[e("button",{type:"button",class:"block w-full text-left text-sm text-gray-700 hover:text-primary leading-snug",title:j(m),onClick:S=>n("openDetails",m)},[e("span",Lt,d(j(m)),1)],8,Dt)]),_:2},1024),f(F,{class:"hidden md:table-cell"},{default:u(()=>[e("button",{type:"button",class:"block w-full text-left text-gray-600 hover:text-primary text-sm whitespace-nowrap",onClick:S=>n("openDetails",m)},d(g(m)),9,Pt)]),_:2},1024),f(F,{position:"last"},{default:u(()=>[f(ot,{align:"right",placement:"bottom"},{items:u(()=>[f(dt,null,{default:u(()=>[f(ut,{as:"button",onClick:S=>n("openDetails",m)},{default:u(()=>[C(d(c.$t("Details")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:u(()=>[h[6]||(h[6]=e("button",{type:"button",class:"inline-flex w-full justify-center rounded-md text-sm font-medium text-black hover:bg-opacity-30 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75"},[e("span",{class:"hover:bg-[#F6F7F9] hover:rounded-full w-[fit-content] p-2"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2Z"})])])],-1))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1})])])):$("",!0),t.rows.data.length>0?(y(),B(ft,{key:2,class:"mt-3",pagination:l.value},null,8,["pagination"])):$("",!0),t.rows.data.length===0?(y(),x("div",Bt,[e("div",Et,[h[7]||(h[7]=e("div",{class:"flex justify-center mb-4"}
1,[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 256 256"},[e("path",{fill:"currentColor",d:"M216 80h-32V48a16 16 0 0 0-16-16H40a16 16 0 0 0-16 16v128a8 8 0 0 0 13 6.22L72 154v30a16 16 0 0 0 16 16h93.59L219 230.22a8 8 0 0 0 5 1.78a8 8 0 0 0 8-8V96a16 16 0 0 0-16-16M66.55 137.78L40 159.25V48h128v88H71.58a8 8 0 0 0-5.03 1.78M216 207.25l-26.55-21.47a8 8 0 0 0-5-1.78H88v-32h80a16 16 0 0 0 16-16V96h32Z"})])],-1)),e("h3",Ot,d(c.$t("No responses yet")),1)])])):$("",!0)],64))}},Wt={class:"w-full min-w-0 max-w-full"},Rt={class:"md:flex justify-between mt-8 md:mt-0 mb-6 flex flex-col gap-4 md:flex-row md:items-start md:gap-6"},It={class:"text-xl mb-1"},Nt={class:"md:flex items-center text-sm leading-6 text-gray-600 dark:text-gray-400"},Ut={class:"md:ml-1 md:mt-1"},Ht={class:"shrink-0 flex flex-wrap items-center gap-2"},zt=["href"],Zt={class:"font-medium"},Jt=["href"],Kt={class:"font-medium"},Yt={key:0,class:"fixed inset-0 z-50 bg-black/40 flex items-center justify-center p-4"},qt={class:"w-full max-w-2xl bg-white dark:bg-[#1C1C1C] rounded-xl shadow-xl border border-gray-100"},Gt={class:"flex items-center justify-between px-5 py-4 border-b border-gray-100"},Qt={class:"text-lg font-semibold text-gray-900 dark:text-gray-200"},Xt={class:"text-sm text-gray-500 dark:text-gray-400"},te={class:"p-5 max-h-[70vh] overflow-y-auto"},ee={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},re={key:1,class:"space-y-3"},se={class:"text-xs uppercase tracking-wide text-gray-500 dark:text-gray-400 font-semibold"},ae={class:"text-sm text-gray-900 dark:text-gray-200 mt-1 break-words"},Ee={__name:"Show",props:["whatsappForm","submissions","filters","aimodule","fbmodule"],setup(t){const r=t,a=L(null),n=D(()=>{var i;return Z(((i=r.whatsappForm)==null?void 0:i.json_schema)||{})}),o=D(()=>{var i;return z(((i=r.whatsappForm)==null?void 0:i.json_schema)||{})}),s=D(()=>{const i=a.value,p=i==null?void 0:i.response_entries;if(Array.isArray(p)&&p.length>0)return p;const w=H((i==null?void 0:i.payload)||{});return J(w,n.value,o.value)}),l=i=>{var w,g;return`${((w=i==null?void 0:i.contact)==null?void 0:w.first_name)||""} ${((g=i==null?void 0:i.contact)==null?void 0:g.last_name)||""}`.trim()||"Unknown contact"},b=i=>{a.value=i},_=()=>{a.value=null},v=i=>{var j;const p=`/automation/whatsapp-forms/${r.whatsappForm.id}/responses/export`,w=new URLSearchParams;w.set("format",i);const g=(((j=r.filters)==null?void 0:j.search)??"").trim();return g&&w.set("search",g),`${p}?${w.toString()}`};return(i,p)=>(y(),B(tt,{aimodule:t.aimodule,fbmodule:t.fbmodule},{default:u(()=>{var w;return[e("div",Wt,[e("div",Rt,[e("div",null,[e("h2",It,d(t.whatsappForm.name)+" - "+d(i.$t("Responses")),1),e("p",Nt,[p[0]||(p[0]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",class:"shrink-0 hidden md:block"},[e("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)),e("span",Ut,d(i.$t("Each row shows a response preview. Open details for the full submission.")),1)])]),e("div",Ht,[f(k(ct),{as:"div",class:"relative inline-block text-left"},{default:u(()=>[f(k(it),{type:"button",class:"inline-flex items-center gap-2 bg-[#1da05c] hover:bg-[#178a4e] text-white border border-transparent px-4 py-2 rounded-md text-sm font-medium shadow-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[#1da05c]"},{default:u(()=>[p[1]||(p[1]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 opacity-95",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)),C(" "+d(i.$t("Export"))+" ",1),p[2]||(p[2]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 opacity-90",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})],-1))]),_:1}),f(Q,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:u(()=>[f(k(lt),{class:"absolute right-0 z-20 mt-2 w-52 origin-top-right rounded-lg bg-white dark:bg-[#1C1C1C] py-1 shadow-lg ring-1 ring-black/5 focus:outline-none"},{default:u(()=>[f(k(I),null,{default:u(({active:g})=>[e("a",{href:v("xlsx"),class:E(["flex w-full items-center gap-2 px-3 py-2 text-sm",g?"bg-emerald-50 text-emerald-900":"text-gray-800 dark:text-gray-200"])},[e("span",Zt,d(i.$t("Excel")),1),p[3]||(p[3]=e("span",{class:"text-xs text-gray-500 dark:text-gray-400"},".xlsx",-1))],10,zt)]),_:1}),f(k(I),null,{default:u(({active:g})=>[e("a",{href:v("csv"),class:E(["flex w-full items-center gap-2 px-3 py-2 text-sm",g?"bg-emerald-50 text-emerald-900":"text-gray-800 dark:text-gray-200"])},[e("span",Kt,d(i.$t("CSV")),1),p[4]||(p[4]=e("span",{class:"text-xs text-gray-500 dark:text-gray-400"},".csv",-1))],10,Jt)]),_:1})]),_:1})]),_:1})]),_:1}),f(k(X),{href:"/automation/whatsapp-forms",class:"inline-flex bg-white dark:bg-[#1C1C1C] hover:bg-gray-50 dark:bg-[#2A2A2A] text-gray-700 dark:text-gray-200 border border-gray-200 dark:border-[#333] px-4 py-2 rounded-md text-sm font-medium"},{default:u(()=>[C(d(i.$t("Back to Forms")),1)]),_:1})])]),f(Vt,{rows:t.submissions,filters:t.filters,"form-id":t.whatsappForm.id,"json-schema":t.whatsappForm.json_schema,onOpenDetails:b},null,8,["rows","filters","form-id","json-schema"])]),a.value?(y(),x("div",Yt,[e("div",qt,[e("div",Gt,[e("div",null,[e("h3",Qt,d(i.$t("Submission Details")),1),e("p",Xt,d(l(a.value))+" · "+d(((w=a.value.contact)==null?void 0:w.phone)||"-"),1)]),e("button",{type:"button",class:"text-gray-500 dark:text-gray-400 hover:text-gray-800 dark:text-gray-200 text-sm font-semibold",onClick:_},d(i.$t("Close")),1)]),e("div",te,[s.value.length===0?(y(),x("p",ee,d(i.$t("No submission data")),1)):(y(),x("div",re,[(y(!0),x(P,null,U(s.value,g=>(y(),x("div",{key:g.key,class:"border border-gray-100 rounded-lg p-3"},[e("div",se,d(g.label),1),e("div",ae,d(g.value),1)]))),128))]))])])])):$("",!0)]}),_:1},8,["aimodule","fbmodule"]))}};export{Ee as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.