PageSourceSearch

https://app.heyjodie.com/build/assets/ResultCard-kf9QfGEK.js

js heyjodie.com collected 2026-10-01 23:55:57 UTC 4,024 bytes, 1 lines download raw bytes

1import{k as n}from"./app-C23pyaid.js";import{B as d}from"./button-BJDSJoXt.js";import{UNKNOWN_DOMAIN as f,ActionResultIcon as h}from"./ProposalCard-DIy1-OLY.js";import{a as g}from"./utils-DvGlLt9s.js";import{o as x}from"./webCall-B8ioDy5-.js";import{m as _}from"./proxy-4aWI02cb.js";import{C as b}from"./check-Bcca0OH5.js";import{T as y}from"./triangle-alert-2vXudR_f.js";import{P as w}from"./phone-Cx-YTElW.js";const j={business_info:"business information",agent_name:"agent name",question_settings:"question settings",voice:"voice",voice_speed:"voice speed",languages:"languages",auto_callback:"automatic callbacks",whatsapp_channel:"WhatsApp settings",email_channel:"email settings",billing:"plan change",support:"message to the team"},N={out_of_hours:"out-of-hours greeting",holiday:"holiday greeting"},v={knowledge:"knowledge document",faqs:"FAQ",pronunciations:"pronunciation",rules:"rule",smart_questions:"call type",notification_contacts:"notification contact",transfers:"transfer",team:"team member",bookings:"appointment type"};function s(e,t){const a=e[t];return typeof a=="string"&&a.trim()!==""?a:null}function p(e){if(e.domain===f)return e.summary??"change";const t=j[e.domain];return t||(e.domain==="custom_greeting"?N[s(e,"type")??""]??"greeting":e.domain==="notification_contacts"?e.action==="update_settings"?"notification settings":s(e,"email")??"notification contact":e.domain==="web_channel"?e.action==="send_install_instructions"?`install instructions to ${s(e,"email")??""}`.trim():"website chat":e.domain==="transfers"?s(e,"label")??s(e,"phone_number")??"transfer":e.domain==="bookings"?e.action==="update"?"bookings":s(e,"name")??"appointment type":e.domain==="team"?s(e,"name")??s(e,"email")??"team member":s(e,"document_title")??s(e,"call_type_name")??s(e,"question")??s(e,"word")??s(e,"rule")??s(e,"email")??v[e.domain]??"change")}const u=e=>e===1?"change":"changes";function k(e,t){const a=e.length,i=e.filter((l,c)=>{var m;return((m=t==null?void 0:t[c])==null?void 0:m.status)==="applied"}).length,o=a-i,r=o===0;return{total:a,applied:i,failed:o,allApplied:r,heading:r?`${a} ${u(a)} applied`:`${i} of ${a} ${u(a)} applied`}}function M(e,t){return(e==="applied"||e==="partial")&&t!==null&&t.length>0}function D(e){return e.length===1?`Change the proposed "${p(e[0])}" — `:"Change the proposed changes — "}function A({plan:e,actionResults:t,testCallNumber:a}){const i=k(e.actions,t);return n.jsxs(_.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:"w-full rounded-xl border border-border/60 bg-card p-4 shadow-sm md:max-w-2xl",children:[n.jsxs("div",{role:"status","aria-live":"polite",className:g("flex items-center gap-2 text-sm font-medium",i.allApplied?"text-foreground":"text-destructive/90"),children:[i.allApplied?n.jsx(b,{"aria-hidden":!0,className:"h-4 w-4 shrink-0 text-success"}):n.jsx(y,{"aria-hidden":!0,className:"h-4 w-4 shrink-0"}),i.heading]}),n.jsx("ul",{className:"mt-3 flex flex-col divide-y divide-border/60",children:e.actions.map((o,r)=>
1{var l;return n.jsxs("li",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1 py-2 first:pt-0 last:pb-0",children:[n.jsx("span",{className:"min-w-0 break-words text-sm leading-relaxed text-foreground",children:p(o)}),n.jsx(h,{status:((l=t==null?void 0:t[r])==null?void 0:l.status)??"failed"})]},r)})}),n.jsxs("div",{className:"mt-4 flex flex-col gap-2 sm:flex-row sm:items-center",children:[a?n.jsxs(n.Fragment,{children:[n.jsx(d,{asChild:!0,className:"h-10 w-full sm:w-auto",children:n.jsxs("a",{href:`tel:${a}`,children:[n.jsx(w,{"aria-hidden":!0}),"Call Jodie to test"]})}),n.jsx("span",{className:"hidden text-sm text-muted-foreground sm:inline",children:a})]}):null,n.jsx(d,{type:"button",variant:"outline",onClick:x,className:"h-10 w-full sm:ml-auto sm:w-auto",children:"Test in your browser"})]})]})}const B=Object.freeze(Object.defineProperty({__proto__:null,ResultCard:A},Symbol.toStringTag,{value:"Module"}));export{A as R,B as a,D as c,M as h};

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.