PageSourceSearch

https://meetborderless.com/build/assets/consultation-CK4pedgz.js

js meetborderless.com collected 2026-10-09 22:42:30 UTC 7,585 bytes, 1 lines download raw bytes

1import{j as e}from"./app-C1iegf7Q.js";import{u as d,H as p,L as u}from"./inertia-BpyZy4w-.js";import{a as g}from"./admin-layout-BhXWbUlP.js";import{E as j}from"./external-link-avvfS30C.js";import{C as k}from"./calendar-check-Qh7pLIha.js";import{C as c}from"./circle-check-BMWvzPMx.js";import{C as m}from"./circle-x-Bp6Mbpgt.js";import{U as f}from"./users-BCcupCXV.js";import{A as N}from"./arrow-up-right-B21lSD-k.js";/* empty css            */import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./createLucideIcon-wqc1LSWg.js";import"./info-D2ZN_yLm.js";import"./triangle-alert-C7AVwNi-.js";import"./x-DQSeRCcH.js";import"./arrow-left-DCX0fhKH.js";import"./menu-BR3Nc3Gr.js";import"./folder-open-I72SPUVk.js";import"./pound-sterling-D16GLaAZ.js";import"./book-open-DVFlG_9t.js";function v({live:s}){return s?e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-tag bg-green/10 px-2.5 py-1 text-xs font-semibold tracking-pill text-green-ink",children:[e.jsx(c,{className:"h-3 w-3"})," In-house booking live"]}):e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-tag bg-amber/10 px-2.5 py-1 text-xs font-semibold tracking-pill text-amber-ink",children:[e.jsx(m,{className:"h-3 w-3"})," Falling back to Cal.com"]})}function a({label:s,children:i}){return e.jsxs("div",{className:"flex items-start gap-4 py-3 border-b border-line last:border-0",children:[e.jsx("dt",{className:"w-40 shrink-0 text-sm font-medium text-ink-2",children:s}),e.jsx("dd",{className:"flex-1 text-sm text-ink",children:i})]})}function q({provider:s,service:i,fallback_url:l,in_house_live:r,assignable_users:x}){const n=d({user_id:s?.assigned_user?.id?.toString()??""}),o=d({});function b(t){t.preventDefault(),n.put("/admin/settings/consultation/assign")}function h(t){t.preventDefault(),o.post("/admin/settings/consultation/toggle")}return e.jsxs(g,{children:[e.jsx(p,{title:"Consultation settings · Admin"}),e.jsxs("div",{className:"px-6 py-8 max-w-2xl space-y-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-semibold text-ink",children:"Consultation booking"}),e.jsxs("p",{className:"mt-1 text-sm text-ink-3",children:["Manage the internal booking that powers ",e.jsx("code",{className:"rounded bg-bg-2 px-1 py-0.5 text-xs",children:"/book-consultation"}),". When in-house booking is live, visitors book directly into the assigned host's calendar. If nothing is configured, the page falls back to the external Cal.com link."]})]}),e.jsxs("div",{className:"rounded-card border border-line bg-white p-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-ink",children:"Current status"}),e.jsx("p",{className:"mt-0.5 text-xs text-ink-3",children:r?"Visitors on /book-consultation are booking in-house.":"Visitors on /book-consultation are redirected to Cal.com."})]}),e.jsx(v,{live:r})]}),!r&&e.jsx("div",{className:"mt-4 rounded-md border border-line bg-bg-2 px-4 py-3",children:e.jsxs("p",{className:"text-xs text-ink-3",children:["Fallback URL:"," ",e.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-teal hover:underline",children:[l,e.jsx(j,{className:"h-3 w-3"})]})]})})]}),s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rounded-card border border-line bg-white",children:[e.jsx("div",{className:"border-b border-line px-5 py-3",children:e.jsx("h2",{className:"text-2xs font-semibold uppercase tracking-eyebrow text-ink-3",children:"Team provider"})}),e.jsxs("dl",{className:"px-5",children:[e.jsx(a,{label:"Name",children:s.name}),e.jsx(a,{label:"Timezone",children:s.timezone??"—"}),e.jsx(a,{label:"Availability",children:s.has_availability?e.jsxs("span",{className:"flex items-center gap-1.5 text-green-ink",children:[e.jsx(c,{className:"h-3.5 w-3.5"}),"Configured"]}):e.jsxs("span",{className:"flex items-center gap-1.5 text-amber-ink",children:[e.jsx(m,{className:"h-3.5 w-3.5"}),"Not set — booking will fall back to Cal.com until availability is added."]})}),e.jsx(a,{label:"Active service",children:i?e.jsxs("span",{children:[i.title," · ",i.duration_minutes," min ·"," ",i.price_gbp===0?"Free":`£${i.price_gbp}`]}):e.jsx("span",{className:"text-amber-ink",children:"No active slot service — add one in the specialist workspace."})})]})]}),e.jsxs("div",{className:"rounded-card border border-line bg-white",children:[e.jsx("div",{className:"border-b border-line px-5 py-3",children:e.jsx("h2",{className:"text-2xs font-semibold uppercase tracking-eyebrow text-ink-3",children:"Assigned host"})}),e.jsxs("div",{className:"px-5 py-4",children:[s.assigned_user?e.jsxs("div",{className:"mb-4 flex items-center gap-3 rounded-md border border-line bg-bg-2 px-4 py-3",children:[e.jsx(f,{className:"h-4 w-4 shrink-0 text-ink-3"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-ink",children:s.assigned_user.name}),e.jsx("p",{className:"text-xs text-ink-3",children:s.assigned_user.email})]}),e.jsxs(u,{href:"/workspace/settings/availability",className:"ml-auto inline-flex items-center gap-1 text-xs text-teal hover:underline",children:["Availability settings",e.jsx(N,{className:"h-3 w-3"})]})]}):e.jsx("p",{className:"mb-4 text-sm text-amber-ink",children:"No host assigned. Bookings will not go to anyone until a host is set."}),e.jsxs("form",{onSubmit:b,className:"flex items-end gap-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("label",{htmlFor:"user_id",className:"mb-1.5 block text-xs font-medium text-ink-2",children:"Reassign to"}),e.jsxs("select",{id:"user_id",value:n.data.user_id,onChange:t=>n.setData("user_id",t.target.value),className:"w-full rounded-md border border-line bg-white px-3 py-2 text-sm text-ink focus:border-ink focus:outline-none",children:[e.jsx("option",{value:"",children:"Select a user…"}),x.map(t=>e.jsxs("option",{value:t.id,children:[t.name," (",t.email,")"]},t.id))]})]}),e.jsx("button",{type:"submit",disabled:n.processing||!n.data.user_id,className:"rounded-md bg-ink px-4 py-2 text-sm font-medium text-white hover:bg-ink/90 disabled:opacity-50",children:"Save"})]})]})]}),e.jsx("div",{className:"rounded-card border border-line bg-white px-5 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-ink",children:s.is_active?"Disable in-house booking":"Enable in-house booking"}),e.jsx("p",{className:"mt-0.5 text-xs text-ink-3",children:s.is_active?"Turns off the internal booking wizard and falls back to Cal.com immediately.":"Re-enables the internal booking wizard on /book-consultation."})]}),e.jsx("form",{onSubmit:h,children:e.jsx("button",{type:"submit",disabled:o.processing,className:`rounded-md px-4 py-2 text-sm font-medium disabled:opacity-50 ${s.is_active?"border border-line bg-white text-ink hover:bg-bg":"bg-ink text-white hover:bg-ink/90"}`,children:s.is_active?"Disable":"Enable"})})]})})]}):e.jsxs("div",{className:"rounded-card border border-dashed border-line py-10 text-center",children:[e.jsx(k,{className:"mx-auto mb-3 h-8 w-8 text-ink-3"}),e.jsx("p",{className:"text-sm font-medium text-ink",children:"No team provider set up"}),e.jsxs("p",{className:"mt-1 text-xs text-ink-3",children:["Run ",e.jsx("code",{className:"rounded bg-bg-2 px-1 py-0.5",children:"php artisan booking:setup-team-provider"})," to create the Borderless team provider, then come back here to configure it."]})]})]})]})}export{q 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.