PageSourceSearch

https://rebel-concierge.lovable.app/assets/ReceptionistSettings-s7SQPYX2.js

js rebel-concierge.lovable.app collected 2026-10-03 03:41:52 UTC 23,501 bytes, 88 lines download raw bytes

vendor: 5,078 bytes, lines 1-11
1import{c as oe,g as Ne,h as Ce,r as u,v as ke,j as e,m as V,l as L,P as K,K as Ae,a as Me,E as se}from"./index-DFgmwgf-.js";import{r as O}from"./mockData-BU_Vzscm.js";import{C as I,a as Pe,c as Re,b as De}from"./card-B6a5MseB.js";import{B as F}from"./button-BKcfJmUF.js";import{I as B}from"./input-XTgPgcov.js";import{L as D}from"./label-CJfYjYtp.js";import{T as te}from"./textarea-C2tetQBa.js";import{c as ie}from"./index-BdQq_4o_.js";import{u as Ie}from"./index-CKV3JiPJ.js";import{u as Ee}from"./index-tu90E1iz.js";import{S as ne}from"./switch-DQZ7nFZ0.js";import{T as Te,a as _e,b as W,c as z}from"./tabs-DcOm8Ofj.js";import{S as Be,a as Ve,b as Le,c as He,d as $e}from"./select-CZoRpBDM.js";import{B as ae}from"./badge-8-Z1KqPi.js";import{M as We}from"./message-square-CID5M4hn.js";import{M as ze}from"./index-DtkNbx56.js";import{L as Q}from"./loader-circle-BukCJubW.js";import{S as Ke}from"./send-De5uiM2y.js";import{u as Oe}from"./useReceptionistSettings-BNlh41ot.js";import{S as Fe}from"./save-BLBqB9Yo.js";import{E as Ye}from"./external-link-DXWWxrNi.js";import"./index-CfJarEcY.js";import"./index-Butq3d44.js";import"./chevron-down-BnE9Ifea.js";import"./check-CNRv9cij.js";import"./useQuery-jjx7hwhX.js";import"./useMutation-CT4ryR6A.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Ge=oe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Qe=oe("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var le=["PageUp","PageDown"],ce=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],de={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},H="Slider",[J,Je,qe]=Ne(H),[ue,zs]=Ce(H,[qe]),[Ue,Y]=ue(H),me=u.forwardRef((s,t)=>{const{name:a,min:r=0,max:c=100,step:d=1,orientation:o="horizontal",disabled:i=!1,minStepsBetweenThumbs:p=0,defaultValue:y=[r],value:m,onValueChange:l=()=>{},onValueCommit:x=()=>{},inverted:g=!1,form:w,...b}=s,v=u.useRef(new Set),h=u.useRef(0),n=o==="horizontal"?Xe:Ze,[f=[],k]=ke({prop:m,defaultProp:y,onChange:C=>{var T;(T=[...v.current][h.current])==null||T.focus(),l(C)}}),S=u.useRef(f);function j(C){const R=as(f,C);P(C,R)}function N(C){P(C,h.current)}function M(){const C=S.current[h.current];f[h.current]!==C&&x(f)}function P(C,R,{commit:T}={commit:!1}){const Z=ls(d),G=cs(Math.round((C-r)/d)*d+r,Z),$=ie(G,[r,c]);k((_=[])=>{const E=ts(_,$,R);if(is(E,p*d)){h.current=E.indexOf($);const ee=String(E)!==String(_);return ee&&T&&x(E),ee?E:_}else return _})}return e.jsx(Ue,{scope:s.__scopeSlider,name:a,disabled:i,min:r,max:c,valueIndexToChangeRef:h,thumbs:v.current,values:f,orientation:o,form:w,children:e.jsx(J.Provider,{scope:s.__scopeSlider,children:e.jsx(J.Slot,{scope:s.__scopeSlider,children:e.jsx(n,{"aria-disabled":i,"data-disabled":i?"":void 0,...b,ref:t,onPointerDown:V(b.onPointerDown,()=>{i||(S.current=f)}),min:r,max:c,inverted:g,onSlideStart:i?void 0:j,onSlideMove:i?void 0:N,onSlideEnd:i?void 0:M,onHomeKeyDown:()=>!i&&P(r,0,{commit:!0}),onEndKeyDown:()=>!i&&P(c,f.length-1,{commit:!0}),onStepKeyDown:({event:C,direction:R})=>{if(!i){const G=le.includes(C.key)||C.shiftKey&&ce.includes(C.key)?10:1,$=h.current,_=f[$],E=d*G*R;P(_+E,$,{commit:!0})}}})})})})});me.displayName=H;var[he,fe]=ue(H,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Xe=u.forwardRef((s,t)=>{const{min:a,max:r,dir:c,inverted:d,onSlideStart:o,onSlideMove:i,onSlideEnd:p,onStepKeyDown:y,...m}=s,[l,x]=u.useState(null),g=L(t,n=>x(n)),w=u.useRef(void 0),b=Ie(c),v=b==="ltr",h=v&&!d||!v&&d;function A(n){const f=w.current||l.getBoundingClientRect(),k=[0,f.width],j=X(k,h?[a,r]:[r,a]);return w.current=f,j(n-f.left)}return e.jsx(he,{scope:s.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width",children:e.jsx(pe,{dir:b,"data-orientation":"horizontal",...m,ref:g,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:n=>{const f=A(n.clientX);o==null||o(f)},onSlideMove:n=>{const f=A(n.clientX);i==null||i(f)},onSlideEnd:()=>{w.current=void 0,p==null||p()},onStepKeyDown:n=>{const k=de[h?"from-left":"from-right"].includes(n.key);y==null||y({event:n,direction:k?-1:1})}})})}),Ze=u.forwardRef((s,t)=>{const{min:a,max:r,inverted:c,onSlideStart:d,onSlideMove:o,onSlideEnd:i,onStepKeyDown:p,...y}=s,m=u.useRef(null),l=L(t,m),x=u.useRef(void 0),g=!c;
11function w(b){const v=x.current||m.current.getBoundingClientRect(),h=[0,v.height],n=X(h,g?[r,a]:[a,r]);return x.current=v,n(b-v.top)}return e.jsx(he,{scope:s.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:e.jsx(pe,{"data-orientation":"vertical",...y,ref:l,style:{...y.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:b=>{const v=w(b.clientY);d==null||d(v)},onSlideMove:b=>{const v=w(b.clientY);o==null||o(v)},onSlideEnd:()=>{x.current=void 0,i==null||i()},onStepKeyDown:b=>{const h=de[g?"from-bottom":"from-top"].includes(b.key);p==null||p({event:b,direction:h?-1:1})}})})}),pe=u.forwardRef((s,t)=>{const{__scopeSlider:a,onSlideStart:r,onSlideMove:c,onSlideEnd:d,onHomeKeyDown:o,onEndKeyDown:i,onStepKeyDown:p,...y}=s,m=Y(H,a);return e.jsx(K.span,{...y,ref:t,onKeyDown:V(s.onKeyDown,l=>{l.key==="Home"?(o(l),l.preventDefault()):l.key==="End"?(i(l),l.preventDefault()):le.concat(ce).includes(l.key)&&(p(l),l.preventDefault())}),onPointerDown:V(s.onPointerDown,l=>{const x=l.target;x.setPointerCapture(l.pointerId),l.preventDefault(),m.thumbs.has(x)?x.focus():r(l)}),onPointerMove:V(s.onPointerMove,l=>{l.target.hasPointerCapture(l.pointerId)&&c(l)}),onPointerUp:V(s.onPointerUp,l=>{const x=l.target;x.hasPointerCapture(l.pointerId)&&(x.releasePointerCapture(l.pointerId),d(l))})})}),xe="SliderTrack",ge=u.forwardRef((s,t)=>{const{__scopeSlider:a,...r}=s,c=Y(xe,a);return e.jsx(K.span,{"data-disabled":c.disabled?"":void 0,"data-orientation":c.orientation,...r,ref:t})});ge.displayName=xe;var q="SliderRange",ve=u.forwardRef((s,t)=>{const{__scopeSlider:a,...r}=s,c=Y(q,a),d=fe(q,a),o=u.useRef(null),i=L(t,o),p=c.values.length,y=c.values.map(x=>je(x,c.min,c.max)),m=p>1?Math.min(...y):0,l=100-Math.max(...y);return e.jsx(K.span,{"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,...r,ref:i,style:{...s.style,[d.startEdge]:m+"%",[d.endEdge]:l+"%"}})});ve.displayName=q;var U="SliderThumb",ye=u.forwardRef((s,t)=>{const a=Je(s.__scopeSlider),[r,c]=u.useState(null),d=L(t,i=>c(i)),o=u.useMemo(()=>r?a().findIndex(i=>i.ref.current===r):-1,[a,r]);return e.jsx(es,{...s,ref:d,index:o})}),es=u.forwardRef((s,t)=>{const{__scopeSlider:a,index:r,name:c,...d}=s,o=Y(U,a),i=fe(U,a),[p,y]=u.useState(null),m=L(t,A=>y(A)),l=p?o.form||!!p.closest("form"):!0,x=Ae(p),g=o.values[r],w=g===void 0?0:je(g,o.min,o.max),b=ns(r,o.values.length),v=x==null?void 0:x[i.size],h=v?rs(v,w,i.direction):0;return u.useEffect(()=>{if(p)return o.thumbs.add(p),()=>{o.thumbs.delete(p)}},[p,o.thumbs]),e.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${w}% + ${h}px)`},children:[e.jsx(J.ItemSlot,{scope:s.__scopeSlider,children:e.jsx(K.span,{role:"slider","aria-label":s["aria-label"]||b,"aria-valuemin":o.min,"aria-valuenow":g,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...d,ref:m,style:g===void 0?{display:"none"}:s.style,onFocus:V(s.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),l&&e.jsx(be,{name:c??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:g},r)]})});ye.displayName=U;var ss="RadioBubbleInput",be=u.forwardRef(({__scopeSlider:s,value:t,...a},r)=>{const c=u.useRef(null),d=L(c,r),o=Ee(t);return u.useEffect(()=>{const i=c.current;if(!i)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"value").set;if(o!==t&&m){const l=new Event("input",{bubbles:!0});m.call(i,t),i.dispatchEvent(l)}},[o,t]),e.jsx(K.input,{style:{display:"none"},...a,ref:d,defaultValue:t})});be.displayName=ss;function ts(s=[],t,a){const r=[...s];return r[a]=t,r.sort((c,d)=>c-d)}function je(s,t,a){const d=100/(a-t)*(s-t);return ie(d,[0,100])}function ns(s,t){return t>2?`Value ${s+1} of ${t}`:t===2?["Minimum","Maximum"][s]:void 0}function as(s,t){if(s.length===1)return 0;const a=s.map(c=>Math.abs(c-t)),r=Math.min(...a);return a.indexOf(r)}function rs(s,t,a){const r=s/2,d=X([0,50],[0,r]);return(r-d(t)*a)*a}function os(s){return s.slice(0,-1).map((t,a)=>s[a+1]-t)}function is(s,t){if(t>0){const a=os(s);return Math.min(...a)>=t}return!0}function X(s,t){return a=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(s[1]-s[0]);return t[0]+r*(a-s[0])}}function ls(s){return(String(s).split(".")[1]||"").length}function cs(s,t){const a=Math.pow(10,t);return Math.round(s*a)/a}var we=me,ds=ge,us=ve,ms=ye;const Se=u.forwardRef(({className:s,...t},a)=>e.jsxs(we,{ref:a,className:Me("relative flex w-full touch-none select-none items-center",s
11),...t,children:[e.jsx(ds,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(us,{className:"absolute h-full bg-primary"})}),e.jsx(ms,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Se.displayName=we.displayName;const hs="https://pipnsslvglqnnnlpfvcp.supabase.co/functions/v1/chat",fs=({knowledgeBase:s})=>{var y;const[t,a]=u.useState([]),[r,c]=u.useState(""),[d,o]=u.useState(!1),i=u.useRef(null);u.useEffect(()=>{var m;(m=i.current)==null||m.scrollTo({top:i.current.scrollHeight,behavior:"smooth"})},[t]);const p=async()=>{var w,b,v;const m=r.trim();if(!m||d)return;c("");const l={role:"user",content:m},x=[...t,l];a(x),o(!0);let g="";try{const h=await fetch(hs,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBpcG5zc2x2Z2xxbm5ubHBmdmNwIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzIyMDIzMzEsImV4cCI6MjA4Nzc3ODMzMX0.-s7nF9XOSezJDhCgsA8bD5Bq5E8kymsc8Vku_A4q57o"},body:JSON.stringify({messages:x,knowledgeBase:s,stream:!0})});if(!h.ok||!h.body){const S=await h.json().catch(()=>({}));throw new Error(S.error||`Request failed (${h.status})`)}const A=h.body.getReader(),n=new TextDecoder;let f="";const k=S=>{g+=S,a(j=>{const N=j[j.length-1];return(N==null?void 0:N.role)==="assistant"?j.map((M,P)=>P===j.length-1?{...M,content:g}:M):[...j,{role:"assistant",content:g}]})};for(;;){const{done:S,value:j}=await A.read();if(S)break;f+=n.decode(j,{stream:!0});let N;for(;(N=f.indexOf(`
12`))!==-1;){let M=f.slice(0,N);if(f=f.slice(N+1),M.endsWith("\r")&&(M=M.slice(0,-1)),!M.startsWith("data: "))continue;const P=M.slice(6).trim();if(P==="[DONE]")break;try{const R=(v=(b=(w=JSON.parse(P).choices)==null?void 0:w[0])==null?void 0:b.delta)==null?void 0:v.content;R&&k(R)}catch{f=M+`
13`+f;break}}}}catch(h){console.error("Chat error:",h),a(A=>[...A,{role:"assistant",content:`⚠️ ${h.message||"Something went wrong."}`}])}finally{o(!1)}};return e.jsxs(I,{className:"flex flex-col h-[400px]",children:[e.jsx(Pe,{className:"pb-2",children:e.jsxs(Re,{className:"text-sm font-heading flex items-center gap-2",children:[e.jsx(We,{className:"w-4 h-4 text-primary"}),"Test Knowledge Base"]})}),e.jsxs(De,{className:"flex flex-col flex-1 min-h-0 gap-2 pb-3",children:[e.jsxs("div",{ref:i,className:"flex-1 overflow-y-auto space-y-2 pr-1",children:[t.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground text-center mt-8",children:"Ask a question to test how your AI receptionist would respond."}),t.map((m,l)=>e.jsx("div",{className:`flex ${m.role==="user"?"justify-end":"justify-start"}`,children:e.jsx("div",{className:`max-w-[85%] rounded-lg px-3 py-2 text-sm ${m.role==="user"?"bg-primary text-primary-foreground":"bg-muted text-foreground"}`,children:m.role==="assistant"?e.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:e.jsx(ze,{children:m.content})}):m.content})},l)),d&&((y=t[t.length-1])==null?void 0:y.role)!=="assistant"&&e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"bg-muted rounded-lg px-3 py-2",children:e.jsx(Q,{className:"w-4 h-4 animate-spin text-muted-foreground"})})})]}),e.jsxs("form",{onSubmit:m=>{m.preventDefault(),p()},className:"flex gap-2",children:[e.jsx(B,{value:r,onChange:m=>c(m.target.value),placeholder:"Ask a question...",className:"text-sm",disabled:d}),e.jsx(F,{type:"submit",size:"icon",disabled:d||!r.trim(),children:e.jsx(Ke,{className:"w-4 h-4"})})]})]})]})},re=`Rebel Wine Bar
14📍 3520 NE 12th Ave, Oakland Park, FL 33334
15📞 (954) 338-3004
16🅿️ Free parking available out front
17🌐 https://rebelwinebar.com
18
19Hours of Operation:
20Monday - Thursday: 3 PM – 11 PM
21Friday - Saturday: 2 PM – 12 AM
22Sunday: 12 PM – 10 PM
23
24Menu: https://rebelwinebar.com/menu/
25Happy Hours: https://rebelwinebar.com/happy-hours/
26Private Events: https://rebelwinebar.com/private-events/
27Wine Tastings: https://rebelwinebar.com/wine-tastings/
28
29Happy Hour Specials:
30Monday - Wednesday: Happy hour ALL DAY
31Thursday - Saturday: Open until 7 PM
32- $6 House Wines by the Glass
33- $10 Premium Wines by the Glass
34- $4 Beers
35- $10 Wine Flights
36- $17 Premium Wine Flights
37- $5 Tapas
38
39Sunday Specials (with food purchase):
40- $2 Mimosas & Sangria
41- BOGO Rosé
42- $4 Beers
43- $5 Brunch Tapas
44
45Wine of the Week:
46We change our featured wines weekly! Ask about our current Wine of the Week selection.
47
48Industry Discount:
4920% off food for hospitality, fire, and police professionals.
50
51Wine & Drinks:
52- Wine Tasting Flight (5 wines): $10-$17
53- Glass of House Wine: $6-$10 (happy hour) / $12-18 (regular)
54- Premium Wines by the Glass: $10 (happy hour) / $18-35 (regular)
55- Craft Cocktails: $14-18
56- Charcuterie Board: $24
57- Cheese Board: $22
58- Tapas: Starting at $5
59
60FAQs:
61Q: Do you take walk-ins?
62A: We welcome walk-ins but recommend reservations, especially on weekends.
63
64Q: Do you have a private dining room?
65A: Yes! Our private room seats up to 20 guests. Visit https://rebelwinebar.com/private-events/ for event pricing and packages.
66
67Q: What's your cancellation policy?
68A: Please cancel at least 4 hours in advance. Groups of 5+ require a card on file.
69
70Q: Do you have happy hour?
71A: Yes! Mon-Wed it's ALL DAY. Thu-Sat it runs from open until 7 PM. Check details at https://rebelwinebar.com/happy-hours/
72
73Q: Is there parking?
74A: Yes, free parking is available out front.
75
76Q: What is the maximum capacity?
77A: We can accommodate up to 30 guests at a time. For parties of 20 or more, please contact us in advance for approval.
78
79Q: Do you offer wine tastings?
80A: Yes! We offer wine tasting experiences. Visit https://rebelwinebar.com/wine-tastings/ for details.
81
82Q: Do you have merchandise?
83A: Yes! We sell Rebel Wine Bar merchandise. Ask us about available items.
84
85Q: Do you offer industry discounts?
86A: Yes! 20% off food for hospitality, fire, and police professionals. Just show your ID.
87
88As seen in: Eater Miami, CBS, Miami New Times, Fort Lauderdale Magazine.`,Ks=()=>{const{settings:s,isLoading:t,updateSettings:a,isSaving:r}=Oe(),[c,d]=u.useState(O.name),[o,i]=u.useState(O.greeting),[p,y]=u.useState([O.chattiness]),[m,l]=u.useState(O.tone),[x,g]=u.useState([{day:"Monday",open:!0,start:"15:00",end:"23:00"},{day:"Tuesday",open:!0,start:"15:00",end:"23:00"},{day:"Wednesday",open:!0,start:"15:00",end:"23:00"},{day:"Thursday",open:!0,start:"15:00",end:"23:00"},{day:"Friday",open:!0,start:"14:00",end:"00:00"},{day:"Saturday",open:!0,start:"14:00",end:"00:00"},{day:"Sunday",open:!0,start:"12:00",end:"22:00"}]),[w,b]=u.useState(re),[v,h]=u.useState("");u.useEffect(()=>{s&&(d(s.name),i(s.greeting),y([s.chattiness]),l(s.tone),b(s.knowledge_base||re),h(s.elevenlabs_agent_id||""),s.business_hours&&Array.isArray(s.business_hours)&&s.business_hours.length>0&&g(s.business_hours))},[s]);const A=async()=>{try{await a({name:c,greeting:o,chattiness:p[0],tone:m,knowledge_base:w,elevenlabs_agent_id:v||null,business_hours:x}),se.success("Settings saved!")}catch(n){se.error(n.message||"Failed to save settings")}};return t?e.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:e.jsx(Q,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):e.jsxs("div",{className:"space-y-6 animate-fade-in",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-heading font-bold text-foreground",children:"Receptionist Settings"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Configure ",c,"'s behavior and personality"]})]}),e.jsxs(F,{onClick:A,disabled:r,children:[r?e.jsx(Q,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(Fe,{className:"w-4 h-4 mr-2"}),"Save Changes"]})]}),e.jsxs(Te,{defaultValue:"general",children:[e.jsxs(_e,{children:[e.jsx(W,{value:"general",children:"General"}),e.jsx(W,{value:"voice",children:"Voice & Personality"}),e.jsx(W,{value:"knowledge",children:"Knowledge Base"}),e.jsx(W,{value:"hours",children:"Business Hours"}),e.jsx(W,{value:"calls",children:"Call Handling"})]}),e.jsx(z,{value:"general",className:"space-y-4 mt-4",children:e.jsxs(I,{className:"p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(D,{children:"Receptionist Name"}),e.jsx(B,{value:c,onChange:n=>d(n.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(D,{children:"Greeting Message"}),e.jsx(te,{value:o,onChange:n=>i(n.target.value),rows:3}),e.jsx("div",{className:"flex gap-1.5 flex-wrap",children:["{business_name}","{time_of_day}"].map(n=>e.jsx(ae,{variant:"secondary",className:"text-xs cursor-pointer",onClick:()=>i(f=>f+" "+n),children:n},n))})]})]})}
88),e.jsx(z,{value:"voice",className:"space-y-4 mt-4",children:e.jsxs(I,{className:"p-4 space-y-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(D,{children:"Tone"}),e.jsx("div",{className:"flex gap-2",children:["friendly","professional","formal"].map(n=>e.jsx(F,{variant:m===n?"default":"outline",size:"sm",onClick:()=>l(n),className:"capitalize",children:n},n))})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(D,{children:["Chattiness: ",p[0],"/10"]}),e.jsx(Se,{value:p,onValueChange:y,min:1,max:10,step:1}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Higher = more conversational, lower = concise answers"})]}),e.jsxs("div",{className:"space-y-3 border-t pt-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{children:"ElevenLabs Agent ID"}),e.jsx(ae,{variant:"secondary",className:"text-xs",children:"Voice AI"})]}),e.jsx(B,{value:v,onChange:n=>h(n.target.value),placeholder:"Paste your ElevenLabs Agent ID here"}),e.jsxs(I,{className:"bg-muted/50 p-3 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[e.jsx(Ge,{className:"w-4 h-4 text-primary"}),"How to set up your Voice Agent"]}),e.jsxs("ol",{className:"text-xs text-muted-foreground space-y-1 list-decimal list-inside",children:[e.jsxs("li",{children:["Create a free account at ",e.jsx("a",{href:"https://elevenlabs.io",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"elevenlabs.io"})]}),e.jsxs("li",{children:["Go to ",e.jsx("strong",{children:"Conversational AI → Create Agent"})]}),e.jsx("li",{children:"Paste your business knowledge base into the agent's knowledge section"}),e.jsxs("li",{children:["Copy the ",e.jsx("strong",{children:"Agent ID"})," and paste it above"]}),e.jsx("li",{children:"Test your voice agent from the Dashboard"})]}),e.jsxs("a",{href:"https://elevenlabs.io/conversational-ai",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline mt-1",children:["Open ElevenLabs ",e.jsx(Ye,{className:"w-3 h-3"})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(D,{children:"Voice Preview"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:["Default","Warm Female","Professional Male"].map(n=>e.jsx(I,{className:"p-3 cursor-pointer hover:border-primary/50 transition-colors",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-medium",children:n}),e.jsx(F,{variant:"ghost",size:"icon",className:"h-7 w-7",children:e.jsx(Qe,{className:"w-3 h-3"})})]})},n))})]})]})}),e.jsx(z,{value:"knowledge",className:"space-y-4 mt-4",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsx(I,{className:"p-4 space-y-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(D,{children:"Business Knowledge Base"}),e.jsx(te,{rows:14,placeholder:"Enter information about your business: services, pricing, FAQs, policies...",value:w,onChange:n=>b(n.target.value)}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[w.length," / 10,000 characters"]})]})}),e.jsx(fs,{knowledgeBase:w})]})}),e.jsx(z,{value:"hours",className:"space-y-4 mt-4",children:e.jsx(I,{className:"p-4",children:e.jsx("div",{className:"space-y-3",children:x.map((n,f)=>e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"w-24 text-sm font-medium text-foreground",children:n.day}),e.jsx(ne,{checked:n.open,onCheckedChange:k=>g(S=>S.map((j,N)=>N===f?{...j,open:k}:j))}),n.open?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(B,{type:"time",value:n.start,onChange:k=>g(S=>S.map((j,N)=>N===f?{...j,start:k.target.value}:j)),className:"w-32"}),e.jsx("span",{className:"text-muted-foreground",children:"—"}),e.jsx(B,{type:"time",value:n.end,onChange:k=>g(S=>S.map((j,N)=>N===f?{...j,end:k.target.value}:j)),className:"w-32"})]}):e.jsx("span",{className:"text-sm text-muted-foreground",children:"Closed"})]},n.day))})})}
88),e.jsx(z,{value:"calls",className:"space-y-4 mt-4",children:e.jsxs(I,{className:"p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(D,{children:"Backup Transfer Number"}),e.jsx(B,{placeholder:"+1 (555) 000-0000"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Voicemail"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Allow callers to leave voicemails"})]}),e.jsx(ne,{defaultChecked:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(D,{children:"Max Rings Before Answer"}),e.jsxs(Be,{defaultValue:"3",children:[e.jsx(Ve,{className:"w-32",children:e.jsx(Le,{})}),e.jsx(He,{children:[1,2,3,4,5].map(n=>e.jsxs($e,{value:String(n),children:[n," ring",n>1?"s":""]},n))})]})]})]})})]})]})};export{Ks 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.