@mediquo/elements 0.9.4 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/chunks/api-chat-client-BhxUWldC.js +1 -0
  2. package/dist/chunks/{apple-pay-outcomes-DyL3HLPm.js → apple-pay-outcomes-BU_PyQdT.js} +1 -1
  3. package/dist/chunks/ca_ES-DMretbb7.js +1 -0
  4. package/dist/chunks/de_DE-DUtzXD1z.js +1 -0
  5. package/dist/chunks/documentation-view-CEfoq9vD.js +1 -0
  6. package/dist/chunks/en_US-mxYf5Jqv.js +1 -0
  7. package/dist/chunks/{index-Dbbpnw8f.d.ts → index-Bv4Mk1Ch.d.ts} +1 -1
  8. package/dist/chunks/{index-CsoFYpTo.js → index-CYBd3XL2.js} +1 -1
  9. package/dist/chunks/{index-CFlNQLy2.d.ts → index-Cgni0Is9.d.ts} +1 -1
  10. package/dist/chunks/{index-DdkeWQrh.d.ts → index-D0njwg5o.d.ts} +1 -1
  11. package/dist/chunks/{index-DG95qEn3.js → index-DjD-3x4f.js} +1 -1
  12. package/dist/chunks/{index.d-XSe7Hy-Q.d.ts → index.d-DeJP_xib.d.ts} +13 -22
  13. package/dist/chunks/{mq-chat-room-jeDvIF1Z.d.ts → mq-chat-room-B3ant6md.d.ts} +1 -1
  14. package/dist/chunks/{mq-next-appointments-BIOkXfI7.js → mq-next-appointments-BdsRyXJB.js} +1 -1
  15. package/dist/chunks/{mq-recent-documents-DVhwoeLA.js → mq-recent-documents-CNweIX5U.js} +1 -1
  16. package/dist/chunks/{next-appointment-card-DBXsY3Sp.d.ts → next-appointment-card-CWz0tef1.d.ts} +2 -2
  17. package/dist/chunks/{next-appointment-card-DxNzffoM.js → next-appointment-card-KXLkEJDg.js} +1 -1
  18. package/dist/chunks/pt_PT-g8meEZVV.js +1 -0
  19. package/dist/env.js +1 -1
  20. package/dist/events.d.ts +3 -44
  21. package/dist/i18n.js +1 -1
  22. package/dist/mq-api-client-provider.d.ts +1 -1
  23. package/dist/mq-api-client-provider.js +1 -1
  24. package/dist/mq-apple-pay-checkout.d.ts +1 -1
  25. package/dist/mq-apple-pay-checkout.js +1 -1
  26. package/dist/mq-appointment-checkout.d.ts +1 -1
  27. package/dist/mq-appointment-checkout.js +1 -1
  28. package/dist/mq-appointment-documentation.d.ts +4 -3
  29. package/dist/mq-appointment-documentation.js +1 -1
  30. package/dist/mq-chat-room.d.ts +2 -2
  31. package/dist/mq-chat-room.js +1 -1
  32. package/dist/mq-checkout.d.ts +1 -1
  33. package/dist/mq-checkout.js +1 -1
  34. package/dist/mq-dashboard.d.ts +5 -5
  35. package/dist/mq-dashboard.js +1 -1
  36. package/dist/mq-documents.d.ts +2 -2
  37. package/dist/mq-documents.js +1 -1
  38. package/dist/mq-google-pay-checkout.d.ts +1 -1
  39. package/dist/mq-google-pay-checkout.js +1 -1
  40. package/dist/mq-immediate-videocall-checkout.d.ts +1 -1
  41. package/dist/mq-immediate-videocall-checkout.js +1 -1
  42. package/dist/mq-my-appointments.d.ts +3 -3
  43. package/dist/mq-my-appointments.js +1 -1
  44. package/dist/mq-next-appointments.d.ts +3 -3
  45. package/dist/mq-next-appointments.js +1 -1
  46. package/dist/mq-payment-poller.d.ts +15 -23
  47. package/dist/mq-payment-poller.js +1 -1
  48. package/dist/mq-recent-documents.d.ts +2 -2
  49. package/dist/mq-recent-documents.js +1 -1
  50. package/dist/mq-schedule-success.d.ts +2 -2
  51. package/dist/mq-schedule-success.js +1 -1
  52. package/dist/mq-schedule.d.ts +2 -3
  53. package/dist/mq-schedule.js +1 -1
  54. package/dist/mq-support-chat.d.ts +3 -3
  55. package/dist/mq-support-chat.js +1 -1
  56. package/dist/mq-terms-and-conditions.d.ts +2 -2
  57. package/dist/mq-terms-and-conditions.js +1 -1
  58. package/dist/mq-videocall.d.ts +3 -3
  59. package/dist/mq-videocall.js +1 -1
  60. package/dist/react/mq-api-client-provider.d.ts +1 -1
  61. package/dist/react/mq-api-client-provider.js +1 -1
  62. package/dist/react/mq-apple-pay-checkout.d.ts +1 -1
  63. package/dist/react/mq-apple-pay-checkout.js +1 -1
  64. package/dist/react/mq-appointment-checkout.d.ts +1 -1
  65. package/dist/react/mq-appointment-checkout.js +1 -1
  66. package/dist/react/mq-appointment-documentation.d.ts +4 -3
  67. package/dist/react/mq-appointment-documentation.js +1 -1
  68. package/dist/react/mq-chat-room.d.ts +2 -2
  69. package/dist/react/mq-chat-room.js +1 -1
  70. package/dist/react/mq-checkout.d.ts +1 -1
  71. package/dist/react/mq-checkout.js +1 -1
  72. package/dist/react/mq-dashboard.d.ts +4 -4
  73. package/dist/react/mq-dashboard.js +1 -1
  74. package/dist/react/mq-documents-page.d.ts +2 -2
  75. package/dist/react/mq-documents-page.js +1 -1
  76. package/dist/react/mq-documents.d.ts +2 -2
  77. package/dist/react/mq-documents.js +1 -1
  78. package/dist/react/mq-google-pay-checkout.d.ts +1 -1
  79. package/dist/react/mq-google-pay-checkout.js +1 -1
  80. package/dist/react/mq-immediate-videocall-checkout.d.ts +1 -1
  81. package/dist/react/mq-immediate-videocall-checkout.js +1 -1
  82. package/dist/react/mq-my-appointments.d.ts +3 -3
  83. package/dist/react/mq-my-appointments.js +1 -1
  84. package/dist/react/mq-next-appointments.d.ts +3 -3
  85. package/dist/react/mq-next-appointments.js +1 -1
  86. package/dist/react/mq-payment-poller.d.ts +6 -13
  87. package/dist/react/mq-payment-poller.js +1 -1
  88. package/dist/react/mq-recent-documents.d.ts +2 -2
  89. package/dist/react/mq-recent-documents.js +1 -1
  90. package/dist/react/mq-schedule-success.d.ts +2 -2
  91. package/dist/react/mq-schedule-success.js +1 -1
  92. package/dist/react/mq-schedule.d.ts +1 -1
  93. package/dist/react/mq-schedule.js +1 -1
  94. package/dist/react/mq-support-chat.d.ts +2 -2
  95. package/dist/react/mq-support-chat.js +1 -1
  96. package/dist/react/mq-terms-and-conditions.d.ts +2 -2
  97. package/dist/react/mq-terms-and-conditions.js +1 -1
  98. package/dist/react/mq-videocall.d.ts +3 -3
  99. package/dist/react/mq-videocall.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/chunks/api-chat-client-5LVJAeLW.js +0 -1
  102. package/dist/chunks/ca_ES-OHfUU0MP.js +0 -1
  103. package/dist/chunks/de_DE-BTPGM932.js +0 -1
  104. package/dist/chunks/documentation-view-Dly6o3Fz.js +0 -1
  105. package/dist/chunks/en_US-C2zY9QiH.js +0 -1
  106. package/dist/chunks/pt_PT-DUs_Ox73.js +0 -1
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2TKJJNS7-BGwxtEg7.js";import{z as t,o as n,s as i,n as r,a as s,e as o,i as a,b as l,r as c,u,c as d,d as p,f as h,l as f,g as m}from"./external-CJj32K_p.js";import{i as g}from"./isBefore-CPpTogxo.js";import{env as b}from"../env.js";var y=t.enum(["pending","expired","accepted","inCall","declined","cancelled","finished","free_of_charge","owed","unpaid","reporting"]),_=y.enum,v=t.enum(["videocall","chat","phonecall"]),w=v.enum,C=t.object({id:t.string().uuid(),room_id:t.string(),channel:v,consultation_short_url:t.string().url().nullable(),call_id:t.string().url(),duration:t.number(),from:t.object({hash:t.string(),name:t.string().nullable(),avatar:t.string().url().nullable(),speciality:t.string().nullable(),collegiate_number:t.string().nullable(),is_dismissed:t.boolean(),languages:t.array(t.string()),description:t.string().nullable()}),to:t.object({id:t.number(),hash:t.string(),name:t.string().nullable(),avatar:t.string().url().nullable(),is_dismissed:t.boolean()}),speciality_id:t.number().nullable(),has_chat_in_appointment:t.boolean().optional(),created_at:t.string(),status:y,seconds_to_open:t.number().nonnegative(),start_date:t.string(),started_at:t.string().nullable(),expires_at:t.string().nullable(),consultation_reason:t.string().nullable(),preconsultation_documents:t.array(t.object({file_path:t.string(),file_name:t.string(),id:t.string().uuid()})).nullable(),service_id:t.string().uuid().nullable(),price:t.number().nullable().optional(),currency:t.string().nullable().optional(),discount_amount:t.number().nullable().optional()}),E=t.enum(["appointment","chat","immediate"]),R=E.enum;function S(e){return 0===e.seconds_to_open}function O(t){if(!t)return!1;const n=new Date,i=e(t);return g(i,n)}var A=o(["available","reserved"]),T=A.enum,j=n({id:i().uuid(),channel:v,duration:r(),starts_at:i(),finishes_at:i(),professional:n({id:i().uuid(),name:i()}),services:s(n({id:i().uuid(),name:i()})),speciality:n({id:r(),price:n({amount:r(),currency:i()}).nullish()}),status:A}),x=t.array(t.object({id:t.string().uuid(),name:t.string(),code:t.string(),channel:v,price:t.object({amount:t.number(),currency:t.string()}).nullable()})),k=t.array(t.object({id:t.string().uuid(),avatar:t.string().url().nullable(),description:t.string().nullable(),collegiate_number:t.string().nullable(),languages:t.array(t.string()),name:t.string(),slots:t.array(j),speciality:t.object({id:t.number()}),tax_id:t.string().nullable()}));t.object({speciality_id:t.number(),organization_schedule_service_id:t.string().uuid(),closest_slots_days:t.number().optional(),slots_per_day:t.number().optional()}),t.object({service_id:t.string().uuid(),professional_hash:t.string().uuid(),starts_at:t.string(),finishes_at:t.string(),rescheduling_appointment_id:t.string().uuid().optional()});var P=t.array(j),N=t.array(t.object({id:t.number(),name:t.string(),code:t.string().nullish(),price:t.object({amount:t.number(),currency:t.string()}).nullable()}));t.object({slot_id:t.string().uuid(),service_id:t.string().uuid().optional(),speciality_id:t.number().optional()});var U=j;n({consultation_id:i(),consultation_type:E,rating:r().int().min(1).max(5),comment:i().nullable().optional()});var L=n({rating:r().int().optional(),comment:i().nullable().optional()}).passthrough();n({file:a(File)});var F=n({url:i().url()});function D(e){return n({data:s(e),meta:n({current_page:r(),last_page:r(),per_page:r(),total:r()})})}var B=t.enum(["prescription","report","diagnosticTestPrescription"]),I=B.enum,$=t.enum(["published","draft"]);$.enum;var q=t.object({document_id:t.string().uuid(),document_type:B,name:t.string(),professional:t.object({speciality_id:t.number(),speciality_name:t.string().optional()}),status:$,url:t.string().url(),created_at:t.string()}),z=n({hash:i(),profile:n({first_name:i().nullable(),last_name:i().nullable(),birth_date:i().nullable(),gender:o(["male","female"]).nullable(),email:i().nullable(),phone_prefix:i().nullable(),phone:i().nullable(),billing:n({tax_id:i().nullable(),address:i().nullable(),country_code:i().nullable(),region:i().nullable(),postal_code:i().nullable()})})});function M(e){const t=e?.profile;return`${t?.first_name??""} ${t?.last_name??""}`.trim()}function K(e){return[e?.profile.first_name,e?.profile.last_name,e?.profile.email,e?.profile.phone,e?.profile.birth_date,e?.profile?.billing?.tax_id].every(e=>null!==e)}t.object({appointmentId:t.string()});var H=C;t.object({callId:t.string()});var J=t.object({session_id:t.string(),session_token:t.string()});t.object({professional_hash:t.string(),consultation_id:t.string(),consultation_type:t.enum(["appointment"])}),t.object({professional_hash:t.string(),consultation_id:t.string(),consultation_type:t.enum(["appointment"])}),t.object({appointment_id:t.string()});var W=t.array(q);t.object({url:t.string().url()}),t.object({first_name:z.shape.profile.shape.first_name,last_name:z.shape.profile.shape.last_name,tax_id:z.shape.profile.shape.billing.shape.tax_id,birth_date:z.shape.profile.shape.birth_date,gender:z.shape.profile.shape.gender.optional(),email:z.shape.profile.shape.email,phone_prefix:z.shape.profile.shape.phone_prefix,phone:z.shape.profile.shape.phone,terms_accepted:t.boolean(),privacy_accepted:t.boolean()}),t.object({patient_hash:t.string(),page:t.number().optional(),per_page:t.number().optional()});var V=D(q);n({slot_id:i().uuid(),service_id:i().uuid(),specialty_id:i(),consultation_reason:i().optional(),preconsultation_documents:s(n({file_path:i(),file_name:i()})).optional(),discount_code:i().optional(),return_url:i().url().optional()});var X=n({id:i(),percent_off:r(),code:i(),after_discount_amount:r().nullable()}),G=n({id:i(),percent_off:r(),code:i(),name:i().nullish()}),Q={Addon:"addon",Stripe:"stripe"},Z=n({session_id:i(),payment_link:i().url(),provider:l(Q).optional()});n({video_call_schedule_id:i()});var Y=Z;n({professional_hash:i().uuid()});var ee=Z,te={Paid:"paid",Unpaid:"unpaid",Denied:"denied",Refunded:"refunded"},ne=n({status:l(te),consultation_id:i(),consultation_type:i()}),ie={SlotUnavailable:422},re=n({error:i(),refunded:d().optional()});n({order_id:i(),validation_url:i().url()});var se=c(u());n({order_id:i(),token:i()});var oe=n({data:n({status:l(te),consultation_id:i(),consultation_type:i().optional()})});n({order_id:i(),token:i()});var ae=n({data:n({status:l(te),consultation_id:i(),consultation_type:i().optional()})}),le=t.array(t.object({id:t.number(),name:t.string(),code:t.string()})),ce=t.object({primary_color:t.string().nullable(),logo:t.string().nullable(),favicon:t.string().nullable(),support_professional:t.object({hash:t.string().nullable()}).optional(),home:t.object({title:t.string().nullable(),description:t.string().nullable(),image_url:t.string().nullable()}),appointments:t.object({reserve_conditions:t.string().nullable(),seconds_before_start_to_refund_on_cancel:t.number().nullable(),has_nps:t.boolean().optional(),has_chat_in_appointment:t.boolean().optional(),has_discount_coupons_show:t.boolean().optional(),payment_provider:t.nativeEnum(Q).nullish()}),legal_consent:t.object({terms_url:t.string().nullable(),privacy_url:t.string().nullable()})}),ue=o(["monday","tuesday","wednesday","thursday","friday","saturday","sunday","working_week","weekend","all_week"]);ue.enum;var de=n({days_of_week:ue,from_time:i(),to_time:i()});n({hash:i().uuid()});var pe=n({hash:i().uuid(),active_absence:n({id:i().uuid(),finishes_at:i()}).nullable(),avatar:i().url().nullable(),collegiate_number:i().nullable(),description:i().nullable(),is_available:d(),name:i(),overview:i().nullable(),schedule_description:i().nullable(),speciality_id:r().nullable(),status:o(["online","offline"]),title:i().nullable(),chat_schedule:n({channel:v,duration:r(),name:i(),timezone:i(),starts_at:i(),gaps:s(de)}).nullable()});function he(e){return e.active_absence?"absent":"online"===e.status?"online":"offline"}o(["online","offline","absent"]),n({roomId:r()});var fe=z;n({first_name:i(),last_name:i(),tax_id:i(),birth_date:i(),gender:o(["male","female"]),email:i(),phone_prefix:i(),phone:i(),terms_accepted:d(),privacy_accepted:d()}),n({terms_accepted:d(),privacy_accepted:d(),commercial_accepted:d()}),n({hash:i().uuid()});var me=n({id:r(),hash:i().uuid(),speciality_alias:i(),name:i(),avatar:i().url(),description:i(),collegiate_number:i(),languages:s(i()),centers:s(n({id:i().uuid(),name:i()}))});p([f(1),f(2),f(3)]);var ge={Sent:1,Received:2,Read:3},be=n({roomId:r(),messageId:i().uuid(),string:i(),status:r(),senderType:o(["ordinary","system"]),fromUserHash:i().uuid(),auto:p([f(0),f(1)]),createdAt:i().nullable(),deletedAt:i().nullable(),time:r().nullable()}),ye=n({file_name:i(),file_size:r(),url:i().url(),signed_url:i().url().nullable(),type:o(["uncategorized","voice_note"]),meta:n({duration:r()})}),_e=be.extend({type:f("string"),attachment:h()}),ve=be.extend({type:f("file"),attachment:ye}),we=be.extend({type:f("image"),attachment:ye});n({roomId:r()});var Ce=s(p([_e,ve,we]));n({roomId:r()});var Ee=n({unread_count:r()});n({professional_hash:i()});var Re=n({room_id:r()});n({status:s(y).optional(),order:n({field:o(["starts_at"]).optional(),direction:o(["asc","desc"]).optional()}).optional(),page:r().optional(),per_page:r().optional()});var Se=D(n({appointment:n({id:i().uuid(),url:i().url(),starts_at:i(),duration:r(),status:y,channel:v,expires_at:i().nullable(),service_id:i().uuid().nullable(),has_chat_in_appointment:d().optional()}),room:n({id:r()}),price:n({amount:r(),currency:i()}).nullable(),patient:n({hash:i().uuid()}),slots:s(m()),professional:n({hash:i().uuid(),name:i(),avatar:i().url().optional(),description:i().optional(),languages:s(i()),collegiate_number:i().optional()}),speciality:n({id:r(),name:i()})}));n({slot_id:i().uuid(),service_id:i().uuid(),consultation_reason:i().optional(),preconsultation_documents:s(n({file_path:i(),file_name:i()})).optional(),discount_code:i().optional()});var Oe=n({appointment:n({id:i().uuid()})});n({id:i().uuid()});var Ae=C,Te=n({file_path:i(),presigned_storage_url:i().url()});n({id:i().uuid(),slot_id:i().uuid(),consultation_reason:i().optional(),preconsultation_documents:s(n({file_path:i(),file_name:i()})).optional()}),n({id:i().uuid()}),n({appointment_id:i().uuid(),consultation_reason:i().optional()}),n({appointment_id:i().uuid(),file_path:i(),file_name:i()}),n({appointment_id:i().uuid(),document_id:i().uuid()}),n({appointmentId:i().uuid()}),t.object({api_key:t.string(),token:t.string()});var je=t.object({access_token:t.string(),patient:t.object({hash:t.string(),country_code:t.string(),timezone:t.string(),first_name:t.string(),last_name:t.string().nullable(),name:t.string(),birth_date:t.string().nullable(),email:t.string().email().nullable(),language_code:t.string(),phone:t.string(),phone_prefix:t.string(),tax_id:t.string().nullable(),legal_consent:t.object({accepted_at:t.string().nullable(),last_version_at:t.string().nullable(),terms_url:t.string(),privacy_url:t.string(),has_commercial_communications:t.boolean(),organization_name:t.string()})})});function xe(e,t){return function(){return e.apply(t,arguments)}}const{toString:ke}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:Ne,toStringTag:Ue}=Symbol,Le=(Fe=Object.create(null),e=>{const t=ke.call(e);return Fe[t]||(Fe[t]=t.slice(8,-1).toLowerCase())});var Fe;const De=e=>(e=e.toLowerCase(),t=>Le(t)===e),Be=e=>t=>typeof t===e,{isArray:Ie}=Array,$e=Be("undefined");function qe(e){return null!==e&&!$e(e)&&null!==e.constructor&&!$e(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=De("ArrayBuffer");const Me=Be("string"),Ke=Be("function"),He=Be("number"),Je=e=>null!==e&&"object"==typeof e,We=e=>{if("object"!==Le(e))return!1;const t=Pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ue in e||Ne in e)},Ve=De("Date"),Xe=De("File"),Ge=De("Blob"),Qe=De("FileList"),Ze=De("URLSearchParams"),[Ye,et,tt,nt]=["ReadableStream","Request","Response","Headers"].map(De);function it(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),Ie(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(qe(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let o;for(i=0;i<s;i++)o=r[i],t.call(null,e[o],o,e)}}function rt(e,t){if(qe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const st="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ot=e=>!$e(e)&&e!==st;const at=(lt="undefined"!=typeof Uint8Array&&Pe(Uint8Array),e=>lt&&e instanceof lt);var lt;const ct=De("HTMLFormElement"),ut=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dt=De("RegExp"),pt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};it(n,(n,r)=>{let s;!1!==(s=t(n,r,e))&&(i[r]=s||n)}),Object.defineProperties(e,i)};const ht=De("AsyncFunction"),ft=(mt="function"==typeof setImmediate,gt=Ke(st.postMessage),mt?setImmediate:gt?(bt=`axios@${Math.random()}`,yt=[],st.addEventListener("message",({source:e,data:t})=>{e===st&&t===bt&&yt.length&&yt.shift()()},!1),e=>{yt.push(e),st.postMessage(bt,"*")}):e=>setTimeout(e));var mt,gt,bt,yt;const _t="undefined"!=typeof queueMicrotask?queueMicrotask.bind(st):"undefined"!=typeof process&&process.nextTick||ft;var vt={isArray:Ie,isArrayBuffer:ze,isBuffer:qe,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ke(e.append)&&("formdata"===(t=Le(e))||"object"===t&&Ke(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ze(e.buffer),t},isString:Me,isNumber:He,isBoolean:e=>!0===e||!1===e,isObject:Je,isPlainObject:We,isEmptyObject:e=>{if(!Je(e)||qe(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ye,isRequest:et,isResponse:tt,isHeaders:nt,isUndefined:$e,isDate:Ve,isFile:Xe,isBlob:Ge,isRegExp:dt,isFunction:Ke,isStream:e=>Je(e)&&Ke(e.pipe),isURLSearchParams:Ze,isTypedArray:at,isFileList:Qe,forEach:it,merge:function e(){const{caseless:t}=ot(this)&&this||{},n={},i=(i,r)=>{const s=t&&rt(n,r)||r;We(n[s])&&We(i)?n[s]=e(n[s],i):We(i)?n[s]=e({},i):Ie(i)?n[s]=i.slice():n[s]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&it(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(it(t,(t,i)=>{n&&Ke(t)?e[i]=xe(t,n):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,s,o;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)o=r[s],i&&!i(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Le,kindOfTest:De,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(Ie(e))return e;let t=e.length;if(!He(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ne]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:ct,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:pt,freezeMethods:e=>{pt(e,(t,n)=>{if(Ke(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];Ke(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach(e=>{n[e]=!0})};return Ie(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:rt,global:st,isContextDefined:ot,isSpecCompliantForm:function(e){return!!(e&&Ke(e.append)&&"FormData"===e[Ue]&&e[Ne])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Je(e)){if(t.indexOf(e)>=0)return;if(qe(e))return e;if(!("toJSON"in e)){t[i]=e;const r=Ie(e)?[]:{};return it(e,(e,t)=>{const s=n(e,i+1);!$e(s)&&(r[t]=s)}),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:ht,isThenable:e=>e&&(Je(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),setImmediate:ft,asap:_t,isIterable:e=>null!=e&&Ke(e[Ne])};function wt(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}vt.inherits(wt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vt.toJSONObject(this.config),code:this.code,status:this.status}}});const Ct=wt.prototype,Et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Et[e]={value:e}}),Object.defineProperties(wt,Et),Object.defineProperty(Ct,"isAxiosError",{value:!0}),wt.from=(e,t,n,i,r,s)=>{const o=Object.create(Ct);return vt.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),wt.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};function Rt(e){return vt.isPlainObject(e)||vt.isArray(e)}function St(e){return vt.endsWith(e,"[]")?e.slice(0,-2):e}function Ot(e,t,n){return e?e.concat(t).map(function(e,t){return e=St(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const At=vt.toFlatObject(vt,{},null,function(e){return/^is[A-Z]/.test(e)});function Tt(e,t,n){if(!vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!vt.isUndefined(t[e])})).metaTokens,r=n.visitor||c,s=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&vt.isSpecCompliantForm(t);if(!vt.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(vt.isDate(e))return e.toISOString();if(vt.isBoolean(e))return e.toString();if(!a&&vt.isBlob(e))throw new wt("Blob is not supported. Use a Buffer instead.");return vt.isArrayBuffer(e)||vt.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let a=e;if(e&&!r&&"object"==typeof e)if(vt.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(vt.isArray(e)&&function(e){return vt.isArray(e)&&!e.some(Rt)}(e)||(vt.isFileList(e)||vt.endsWith(n,"[]"))&&(a=vt.toArray(e)))return n=St(n),a.forEach(function(e,i){!vt.isUndefined(e)&&null!==e&&t.append(!0===o?Ot([n],i,s):null===o?n:n+"[]",l(e))}),!1;return!!Rt(e)||(t.append(Ot(r,n,s),l(e)),!1)}const u=[],d=Object.assign(At,{defaultVisitor:c,convertValue:l,isVisitable:Rt});if(!vt.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!vt.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),vt.forEach(n,function(n,s){!0===(!(vt.isUndefined(n)||null===n)&&r.call(t,n,vt.isString(s)?s.trim():s,i,d))&&e(n,i?i.concat(s):[s])}),u.pop()}}(e),t}function jt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function xt(e,t){this._pairs=[],e&&Tt(e,this,t)}const kt=xt.prototype;function Pt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(e,t,n){if(!t)return e;const i=n&&n.encode||Pt;vt.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(s=r?r(t,n):vt.isURLSearchParams(t)?t.toString():new xt(t,n).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}kt.append=function(e,t){this._pairs.push([e,t])},kt.toString=function(e){const t=e?function(t){return e.call(this,t,jt)}:jt;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vt.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ft="undefined"!=typeof window&&"undefined"!=typeof document,Dt="object"==typeof navigator&&navigator||void 0,Bt=Ft&&(!Dt||["ReactNative","NativeScript","NS"].indexOf(Dt.product)<0),It="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,$t=Ft&&window.location.href||"http://localhost";var qt={...Object.freeze({__proto__:null,hasBrowserEnv:Ft,hasStandardBrowserEnv:Bt,hasStandardBrowserWebWorkerEnv:It,navigator:Dt,origin:$t}),...Lt};function zt(e){function t(e,n,i,r){let s=e[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=e.length;if(s=!s&&vt.isArray(i)?i.length:s,a)return vt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!o;i[s]&&vt.isObject(i[s])||(i[s]=[]);return t(e,n,i[s],r)&&vt.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[s])),!o}if(vt.isFormData(e)&&vt.isFunction(e.entries)){const n={};return vt.forEachEntry(e,(e,i)=>{t(function(e){return vt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}const Mt={transitional:Ut,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=vt.isObject(e);r&&vt.isHTMLForm(e)&&(e=new FormData(e));if(vt.isFormData(e))return i?JSON.stringify(zt(e)):e;if(vt.isArrayBuffer(e)||vt.isBuffer(e)||vt.isStream(e)||vt.isFile(e)||vt.isBlob(e)||vt.isReadableStream(e))return e;if(vt.isArrayBufferView(e))return e.buffer;if(vt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new qt.classes.URLSearchParams,{visitor:function(e,t,n,i){return qt.isNode&&vt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=vt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(vt.isString(e))try{return(t||JSON.parse)(e),vt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Mt.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(vt.isResponse(e)||vt.isReadableStream(e))return e;if(e&&vt.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw wt.from(e,wt.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vt.forEach(["delete","get","head","post","put","patch"],e=>{Mt.headers[e]={}});const Kt=vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Ht=Symbol("internals");function Jt(e){return e&&String(e).trim().toLowerCase()}function Wt(e){return!1===e||null==e?e:vt.isArray(e)?e.map(Wt):String(e)}function Vt(e,t,n,i,r){return vt.isFunction(i)?i.call(this,t,n):(r&&(t=n),vt.isString(t)?vt.isString(i)?-1!==t.indexOf(i):vt.isRegExp(i)?i.test(t):void 0:void 0)}let Xt=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=Jt(t);if(!r)throw new Error("header name must be a non-empty string");const s=vt.findKey(i,r);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(i[s||t]=Wt(e))}const s=(e,t)=>vt.forEach(e,(e,n)=>r(e,n,t));if(vt.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(vt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&Kt[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t})(e),t);else if(vt.isObject(e)&&vt.isIterable(e)){let n,i,r={};for(const t of e){if(!vt.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?vt.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Jt(e)){const n=vt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(vt.isFunction(t))return t.call(this,e,n);if(vt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Jt(e)){const n=vt.findKey(this,e);return!(!n||void 0===this[n]||t&&!Vt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=Jt(e)){const r=vt.findKey(n,e);!r||t&&!Vt(0,n[r],r,t)||(delete n[r],i=!0)}}return vt.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!Vt(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return vt.forEach(this,(i,r)=>{const s=vt.findKey(n,r);if(s)return t[s]=Wt(i),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();o!==r&&delete t[r],t[o]=Wt(i),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vt.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&vt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ht]=this[Ht]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Jt(e);t[i]||(!function(e,t){const n=vt.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[i]=!0)}return vt.isArray(e)?e.forEach(i):i(e),this}};function Gt(e,t){const n=this||Mt,i=t||n,r=Xt.from(i.headers);let s=i.data;return vt.forEach(e,function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function Qt(e){return!(!e||!e.__CANCEL__)}function Zt(e,t,n){wt.call(this,e??"canceled",wt.ERR_CANCELED,t,n),this.name="CanceledError"}function Yt(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vt.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),vt.freezeMethods(Xt),vt.inherits(Zt,wt,{__CANCEL__:!0});const en=(e,t,n=3)=>{let i=0;const r=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[o];r||(r=l),n[s]=a,i[s]=l;let u=o,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-r<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,i,r=0,s=1e3/t;const o=(t,s=Date.now())=>{r=s,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-r;a>=s?o(e,t):(n=e,i||(i=setTimeout(()=>{i=null,o(n)},s-a)))},()=>n&&o(n)]}(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-i,l=r(a);i=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&s<=o?(o-s)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},tn=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},nn=e=>(...t)=>vt.asap(()=>e(...t));var rn=qt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,qt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(qt.origin),qt.navigator&&/(msie|trident)/i.test(qt.navigator.userAgent)):()=>!0,sn=qt.hasStandardBrowserEnv?{write(e,t,n,i,r,s){const o=[e+"="+encodeURIComponent(t)];vt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),vt.isString(i)&&o.push("path="+i),vt.isString(r)&&o.push("domain="+r),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function on(e,t,n){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const an=e=>e instanceof Xt?{...e}:e;function ln(e,t){t=t||{};const n={};function i(e,t,n,i){return vt.isPlainObject(e)&&vt.isPlainObject(t)?vt.merge.call({caseless:i},e,t):vt.isPlainObject(t)?vt.merge({},t):vt.isArray(t)?t.slice():t}function r(e,t,n,r){return vt.isUndefined(t)?vt.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function s(e,t){if(!vt.isUndefined(t))return i(void 0,t)}function o(e,t){return vt.isUndefined(t)?vt.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,n)=>r(an(e),an(t),0,!0)};return vt.forEach(Object.keys({...e,...t}),function(i){const s=l[i]||r,o=s(e[i],t[i],i);vt.isUndefined(o)&&s!==a||(n[i]=o)}),n}var cn=e=>{const t=ln({},e);let n,{data:i,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:l}=t;if(t.headers=a=Xt.from(a),t.url=Nt(on(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),vt.isFormData(i))if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qt.hasStandardBrowserEnv&&(r&&vt.isFunction(r)&&(r=r(t)),r||!1!==r&&rn(t.url))){const e=s&&o&&sn.read(o);e&&a.set(s,e)}return t};var un="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const i=cn(e);let r=i.data;const s=Xt.from(i.headers).normalize();let o,a,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=i;function f(){c&&c(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=Xt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Yt(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new wt("Request aborted",wt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new wt("Network Error",wt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Ut;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new wt(t,r.clarifyTimeoutError?wt.ETIMEDOUT:wt.ECONNABORTED,e,m)),m=null},void 0===r&&s.setContentType(null),"setRequestHeader"in m&&vt.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),vt.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),d&&"json"!==d&&(m.responseType=i.responseType),h&&([l,u]=en(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,c]=en(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(o=t=>{m&&(n(!t||t.type?new Zt(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);b&&-1===qt.protocols.indexOf(b)?n(new wt("Unsupported protocol "+b+":",wt.ERR_BAD_REQUEST,e)):m.send(r||null)})};const dn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof wt?t:new Zt(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,r(new wt(`timeout ${t} of ms exceeded`,wt.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:a}=i;return a.unsubscribe=()=>vt.asap(o),a}},pn=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},hn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},fn=(e,t,n,i)=>{const r=async function*(e,t){for await(const n of hn(e))yield*pn(n,t)}(e,t);let s,o=0,a=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let s=i.byteLength;if(n){let e=o+=s;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},mn="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,gn=mn&&"function"==typeof ReadableStream,bn=mn&&("function"==typeof TextEncoder?(yn=new TextEncoder,e=>yn.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var yn;const _n=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},vn=gn&&_n(()=>{let e=!1;const t=new Request(qt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wn=gn&&_n(()=>vt.isReadableStream(new Response("").body)),Cn={stream:wn&&(e=>e.body)};var En;mn&&(En=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Cn[e]&&(Cn[e]=vt.isFunction(En[e])?t=>t[e]():(t,n)=>{throw new wt(`Response type '${e}' is not supported`,wt.ERR_NOT_SUPPORT,n)})}));const Rn=async(e,t)=>{const n=vt.toFiniteNumber(e.getContentLength());return n??(async e=>{if(null==e)return 0;if(vt.isBlob(e))return e.size;if(vt.isSpecCompliantForm(e)){const t=new Request(qt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vt.isArrayBufferView(e)||vt.isArrayBuffer(e)?e.byteLength:(vt.isURLSearchParams(e)&&(e+=""),vt.isString(e)?(await bn(e)).byteLength:void 0)})(t)};const Sn={http:null,xhr:un,fetch:mn&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=cn(e);c=c?(c+"").toLowerCase():"text";let h,f=dn([r,s&&s.toAbortSignal()],o);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&vn&&"get"!==n&&"head"!==n&&0!==(g=await Rn(u,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(vt.isFormData(i)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=tn(g,en(nn(l)));i=fn(n.body,65536,e,t)}}vt.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:r?d:void 0});let s=await fetch(h,p);const o=wn&&("stream"===c||"response"===c);if(wn&&(a||o&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=vt.toFiniteNumber(s.headers.get("content-length")),[n,i]=a&&tn(t,en(nn(a),!0))||[];s=new Response(fn(s.body,65536,n,()=>{i&&i(),m&&m()}),e)}c=c||"text";let b=await Cn[vt.findKey(Cn,c)||"text"](s,e);return!o&&m&&m(),await new Promise((t,n)=>{Yt(t,n,{data:b,headers:Xt.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:h})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new wt("Network Error",wt.ERR_NETWORK,e,h),{cause:t.cause||t});throw wt.from(t,t&&t.code,e,h)}})};vt.forEach(Sn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const On=e=>`- ${e}`,An=e=>vt.isFunction(e)||null===e||!1===e;var Tn=e=>{e=vt.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let s=0;s<t;s++){let t;if(n=e[s],i=n,!An(n)&&(i=Sn[(t=String(n)).toLowerCase()],void 0===i))throw new wt(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+s]=i}if(!i){const e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new wt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(On).join("\n"):" "+On(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function jn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zt(null,e)}function xn(e){jn(e),e.headers=Xt.from(e.headers),e.data=Gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Tn(e.adapter||Mt.adapter)(e).then(function(t){return jn(e),t.data=Gt.call(e,e.transformResponse,t),t.headers=Xt.from(t.headers),t},function(t){return Qt(t)||(jn(e),t&&t.response&&(t.response.data=Gt.call(e,e.transformResponse,t.response),t.response.headers=Xt.from(t.response.headers))),Promise.reject(t)})}const kn="1.11.0",Pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Nn={};Pn.transitional=function(e,t,n){function i(e,t){return"[Axios v"+kn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new wt(i(r," has been removed"+(t?" in "+t:"")),wt.ERR_DEPRECATED);return t&&!Nn[r]&&(Nn[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},Pn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Un={assertOptions:function(e,t,n){if("object"!=typeof e)throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new wt("option "+s+" must be "+n,wt.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new wt("Unknown option "+s,wt.ERR_BAD_OPTION)}},validators:Pn};const Ln=Un.validators;let Fn=class Axios{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ln(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&Un.assertOptions(n,{silentJSONParsing:Ln.transitional(Ln.boolean),forcedJSONParsing:Ln.transitional(Ln.boolean),clarifyTimeoutError:Ln.transitional(Ln.boolean)},!1),null!=i&&(vt.isFunction(i)?t.paramsSerializer={serialize:i}:Un.assertOptions(i,{encode:Ln.function,serialize:Ln.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Un.assertOptions(t,{baseUrl:Ln.spelling("baseURL"),withXsrfToken:Ln.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&vt.merge(r.common,r[t.method]);r&&vt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=Xt.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!a){const e=[xn.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let p=t;for(d=0;d<u;){const e=o[d++],t=o[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=xn.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Nt(on((e=ln(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};vt.forEach(["delete","get","head","options"],function(e){Fn.prototype[e]=function(t,n){return this.request(ln(n||{},{method:e,url:t,data:(n||{}).data}))}}),vt.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(ln(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Fn.prototype[e]=t(),Fn.prototype[e+"Form"]=t(!0)});const Dn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dn).forEach(([e,t])=>{Dn[t]=e});const Bn=function e(t){const n=new Fn(t),i=xe(Fn.prototype.request,n);return vt.extend(i,Fn.prototype,n,{allOwnKeys:!0}),vt.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(ln(t,n))},i}(Mt);Bn.Axios=Fn,Bn.CanceledError=Zt,Bn.CancelToken=class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,r){n.reason||(n.reason=new Zt(e,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new CancelToken(function(t){e=t}),cancel:e}}},Bn.isCancel=Qt,Bn.VERSION=kn,Bn.toFormData=Tt,Bn.AxiosError=wt,Bn.Cancel=Bn.CanceledError,Bn.all=function(e){return Promise.all(e)},Bn.spread=function(e){return function(t){return e.apply(null,t)}},Bn.isAxiosError=function(e){return vt.isObject(e)&&!0===e.isAxiosError},Bn.mergeConfig=ln,Bn.AxiosHeaders=Xt,Bn.formToJSON=e=>zt(vt.isHTMLForm(e)?new FormData(e):e),Bn.getAdapter=Tn,Bn.HttpStatusCode=Dn,Bn.default=Bn;const{Axios:In,AxiosError:$n,CanceledError:qn,isCancel:zn,CancelToken:Mn,VERSION:Kn,all:Hn,Cancel:Jn,isAxiosError:Wn,spread:Vn,toFormData:Xn,AxiosHeaders:Gn,HttpStatusCode:Qn,formToJSON:Zn,getAdapter:Yn,mergeConfig:ei}=Bn;var ti=class{constructor(e,t){this.httpClient=e,this.validate=t}async getAppointments(e){return this.httpClient.get("/appointments/v1",{params:e}).then(this.validate(Se))}async createAppointment(e){return this.httpClient.post(`/appointments/v1/slots/${e.slot_id}`,e).then(e=>e.data).then(this.validate(Oe))}async getAppointment(e){return this.httpClient.get(`/api/v1/appointments/${e.id}`).then(e=>e.data).then(this.validate(Ae))}async getDocumentsStorage(){return this.httpClient.get("/appointments/v1/documents/storage").then(e=>e.data).then(this.validate(Te))}async rescheduleAppointment(e){const{id:t,...n}=e;return this.httpClient.put(`/appointments/v1/${t}/reschedule`,n)}async cancelAppointment(e){return this.httpClient.put(`/appointments/v1/${e.id}/cancel`)}async updateAppointment(e){const{appointment_id:t,...n}=e;return this.httpClient.put(`/appointments/v1/${t}/update`,n)}async addDocument(e){const{appointment_id:t,...n}=e;return this.httpClient.post(`/appointments/v1/${t}/consultation-document`,n)}async deleteDocument(e){return this.httpClient.delete(`/appointments/v1/${e.appointment_id}/consultation-document/${e.document_id}`)}async reconnectAppointment(e){return this.httpClient.put(`/appointments/v1/${e.appointmentId}/reconnect`)}},ni=class{constructor(e,t){this.httpClient=e,this.validate=t}async loginToken(e){return this.httpClient.post("/login/v1/token",{token:e.token},{headers:{"x-api-key":e.api_key}}).then(this.validate(je))}};var ii=class{constructor(e,t){this.httpClient=e,this.validate=t}async postReview(e){return this.httpClient.post("/consultations/v1/review",e)}async startChatConsultation(e){return this.httpClient.put(`/consultations/v1/chat/professionals/${encodeURIComponent(e)}/consult`).then(()=>{})}async getReview(e){return this.httpClient.get(`/consultations/v1/review/${e}`).then(e=>e.data).then(this.validate(L))}},ri=class{constructor(e,t){this.httpClient=e,this.validate=t}async uploadFile(e){const t=new FormData;return t.append("file",e.file,e.file.name),this.httpClient.post("/documents/v1/upload-file",t,{headers:{"Content-Type":"multipart/form-data"}}).then(this.validate(F))}},si=class{constructor(e,t){this.httpClient=e,this.validate=t}async getAppointment(e){return this.httpClient.get(`/flash/v1/appointments/${e.appointmentId}`).then(e=>e.data).then(this.validate(H))}async joinCall(e){return this.httpClient.get(`/flash/v1/calls/${e.callId}/join`).then(e=>e.data).then(this.validate(J))}async setReady(e){return this.httpClient.post(`/flash/v1/waiting/${e.professional_hash}/ready`,{consultation_id:e.consultation_id,consultation_type:e.consultation_type})}async leaveWaitingRoom(e){return this.httpClient.post(`/flash/v1/waiting/${e.professional_hash}/leave`,{consultation_id:e.consultation_id,consultation_type:e.consultation_type})}async getSharedDocuments(e){return this.httpClient.get(`/flash/v1/appointments/${e.appointment_id}/documents`).then(e=>e.data).then(this.validate(W))}async downloadDocument(e){return this.httpClient.get(e.url,{responseType:"blob"}).then(e=>e.data)}async updatePatientProfile(e){return this.httpClient.put("/flash/v1/profile",e)}async getPatientDocuments(e){return this.httpClient.get(`/flash/v1/patients/${e.patient_hash}/documents`,{params:{page:e.page,per_page:e.per_page}}).then(this.validate(V))}},oi=class{constructor(e,t){this.httpClient=e,this.validate=t}async getOrganizationSpecialties(){return this.httpClient.get("/organizations/v1/specialities").then(e=>e.data).then(this.validate(le))}async getOrganizationSetup(){return this.httpClient.get("/organizations/v1/setup").then(e=>e.data).then(this.validate(ce))}},ai=class{constructor(e,t){this.httpClient=e,this.validate=t}async createPaymentLink(e){const{specialty_id:t,...n}=e,i={...n,speciality_id:t};return this.httpClient.post("/payments/v1/schedule",i).then(e=>e.data).then(this.validate(Z))}async createImmediateVideocallPaymentLink(e){return this.httpClient.post("/payments/v1/immediate-videocall",e).then(e=>e.data).then(this.validate(Y))}async createChatConsultationPaymentLink(e){return this.httpClient.post("/payments/v1/schedule",e).then(e=>e.data).then(this.validate(ee))}async getConsultationCoupon(e,t){return this.httpClient.get(`/payments/v1/consultation-coupon/${encodeURIComponent(e)}`,{params:{amount:t}}).then(e=>e.data).then(this.validate(X))}async getAppointmentConsultationCoupon(e){return this.httpClient.get(`/payments/v1/appointment/${encodeURIComponent(e)}/consultation-coupon`).then(e=>e.data).then(this.validate(G))}async getPaymentSession(e){return this.httpClient.get(`/payments/v1/session/${e}`).then(e=>e.data).then(this.validate(ne))}async validateApplePayMerchant(e){return this.httpClient.post("/payments/v1/apple-pay/validate-merchant",e).then(this.validate(se))}async authorizeApplePay(e){return this.httpClient.post("/payments/v1/apple-pay/authorize",e).then(this.validate(oe))}async authorizeGooglePay(e){return this.httpClient.post("/payments/v1/google-pay/authorize",e).then(this.validate(ae))}},li=class{constructor(e,t){this.httpClient=e,this.validate=t}async getProfessional(e){return this.httpClient.get(`sdk/v1/professionals/${e.hash}`).then(e=>e.data).then(this.validate(pe))}async readAllMessages(e){return this.httpClient.put(`sdk/v1/rooms/${e.roomId}/messages/read`).then(e=>e.data)}},ci=class{constructor(e,t){this.httpClient=e,this.validate=t}async getPatientProfile(){return this.httpClient.get("/profile/v1/patients").then(e=>e.data).then(this.validate(fe))}async getProfessionalPublicProfile(e){return this.httpClient.get(`/profile/v1/public/professionals/${e.hash}`).then(e=>e.data).then(this.validate(me))}async acceptLegalConsent(e){return this.httpClient.post("/profile/v1/legal-consent",e)}},ui=class{constructor(e,t){this.httpClient=e,this.validate=t}async getRoomMessages(e){return this.httpClient.get(`api/v1/rooms/${e.roomId}/messages`).then(e=>e.data).then(this.validate(Ce))}async getUnreadMessagesCount(e){return this.httpClient.get(`chat/v1/${e.roomId}/unread-count`).then(e=>e.data).then(this.validate(Ee))}async createSupportRoom(e){return this.httpClient.post("chat/v1/support-room",e).then(e=>e.data).then(this.validate(Re))}},di=class{constructor(e,t){this.httpClient=e,this.validate=t}async getScheduleServices(){return this.httpClient.get("/schedules/v1/services").then(e=>e.data).then(this.validate(x))}async getProfessionalsBySpecialtyAndService(e){return this.httpClient.get("/schedules/v1/professionals",{params:e}).then(e=>e.data).then(this.validate(k))}async getScheduleServiceProfessionalSlots(e){return this.httpClient.get(`/schedules/v1/services/${e.service_id}/professionals/${e.professional_hash}/slots`,{params:{starts_at:e.starts_at,finishes_at:e.finishes_at,rescheduling_appointment_id:e.rescheduling_appointment_id}}).then(e=>e.data).then(this.validate(P))}async getScheduleServiceSpecialities(e){return this.httpClient.get(`/schedules/v1/services/${e}/specialities`).then(e=>e.data).then(this.validate(N))}async getScheduleSlot(e){return this.httpClient.get(`schedules/v1/slot/${e.slot_id}`,{params:{service_id:e.service_id,speciality_id:e.speciality_id}}).then(e=>e.data).then(this.validate(U))}};var pi={development:"https://chat-dev.mediquo.com",production:"https://chat.mediquo.com"},hi=class{constructor({env:e="production",baseURL:t,debug:n,apiKey:i,token:r,locale:s}={}){const o=t??pi[e];var a;this.httpClient=(a=o,Bn.create({baseURL:a,headers:{"Content-Type":"application/json"}}));const l=(c={debug:n},e=>t=>{const n=e.safeParse(t.data);if(n.error&&c?.debug){const e=t.config?.url??"";console.warn(`[Validation Error]${e?` - URL: ${e}`:""}\n${i=n.error,i.issues.map(e=>`${e.path.join(".")}: ${e.message}`).join("\n")}`)}var i;return n.data??t.data});var c;this.flash=new si(this.httpClient,l),this.auth=new ni(this.httpClient,l),this.appointments=new ti(this.httpClient,l),this.payments=new ai(this.httpClient,l),this.schedules=new di(this.httpClient,l),this.organizations=new oi(this.httpClient,l),this.profile=new ci(this.httpClient,l),this.professionals=new li(this.httpClient,l),this.rooms=new ui(this.httpClient,l),this.documents=new ri(this.httpClient,l),this.consultations=new ii(this.httpClient,l),i&&this.setApiKey(i),r&&this.setAuthToken(r),s&&this.setLanguage(s)}setAuthToken(e){this.httpClient.defaults.headers.common.Authorization=`Bearer ${e}`}setApiKey(e){this._apiKey=e,this.httpClient.defaults.headers.common["x-api-key"]=e}getApiKey(){return this._apiKey}setLanguage(e){this.httpClient.defaults.headers.common["Accept-Language"]=e}};function fi({env:e,apiKey:t,token:n,locale:i}={}){const r=e??b.MODE;return new hi({env:r,debug:"development"===r,apiKey:t,token:n,locale:i})}const mi=["env","apiKey","token","locale","inheritedApiClient"];function gi(e,t,n){if(mi.some(t=>e.has(t)))return t.apiKey||t.token||t.locale||!n?fi({...t,apiKey:t.apiKey??n?.getApiKey()}):n}export{_ as A,R as C,I as D,ge as M,te as P,T as S,ie as a,re as b,fi as c,O as d,w as e,Q as f,he as g,M as h,Wn as i,K as j,S as k,gi as n};
@@ -1 +1 @@
1
- import{P as n}from"./api-chat-client-5LVJAeLW.js";function e(e,r,t){return e===n.Paid?{kind:"success",sessionId:t,reference:r}:e===n.Denied?{kind:"denied",sessionId:t}:{kind:"error",reason:"authorize"}}function r(n){const e=n.merchant_session;return null===e||"object"!=typeof e||Array.isArray(e)?n:e}function t(n){if("string"==typeof n)return n;if(null!==n&&"object"==typeof n&&"paymentData"in n){const e=n.paymentData;if("string"==typeof e)return e;if(null!=e)return JSON.stringify(e)}return JSON.stringify(n)}export{e as r,t as s,r as u};
1
+ import{P as n}from"./api-chat-client-BhxUWldC.js";function e(e,r,t){return e===n.Paid?{kind:"success",sessionId:t,reference:r}:e===n.Denied?{kind:"denied",sessionId:t}:{kind:"error",reason:"authorize"}}function r(n){const e=n.merchant_session;return null===e||"object"!=typeof e||Array.isArray(e)?n:e}function t(n){if("string"==typeof n)return n;if(null!==n&&"object"==typeof n&&"paymentData"in n){const e=n.paymentData;if("string"==typeof e)return e;if(null!=e)return JSON.stringify(e)}return JSON.stringify(n)}export{e as r,t as s,r as u};
@@ -0,0 +1 @@
1
+ import{s as a}from"./runtime-Bg1WXVCx.js";const e={s0043fc30b467bc43:"Ocultar detalls",s00c8bf60a179e056:"Google Pay no està disponible. Prova amb targeta o un altre mètode de pagament.",s035706a468d0c40b:"Divendres",s0520ac0a7da193d4:"No hem pogut validar el codi. Torna-ho a provar.",s071bd6bbf6c08f34:"Carregant",s08404262212123ef:"Com et puc ajudar?",s08fe5307b5987c42:"De",s08fe5907b5988674:"Dg",s09165307b5ad0e23:"Dme",s09165b07b5ad1bbb:"Dm",s09195307b5af43fa:"Dl",s092e4f07b5c19938:"Dj",s093b3307b5cbf400:"Dv",s09462f07b5d5f4b9:"Ds",s09528d5c26b62213:"Dijous",s0aaec824f7c6b501:"Enviar missatge",s0b0085a15991b134:"Reconectant...",s0b0955208f737a86:"L'arxiu supera la mida màxima permesa",s0eb69642cbc19745:"Aquesta cita ja ha passat, per la qual cosa no es pot modificar.",s0fc7c4bfd185800d:"Aquí es mostraran les teves receptes i informes mèdics.",s0fcbdef9dc977231:"S'ha produït un error en carregar la pàgina. Si us plau, intenta-ho de nou o contacta amb el suport.",s11605fc03de64e14:"Escriu aquí...",s12f171594a5379d2:"¿Segur que vols cancel·lar aquesta cita?",s132e84f499a23985:"Sense horaris disponibles actualment",s13317a76a9ed776e:"Repetir",s142eba34d93fe59e:"Descripció",s1513f3687bfcac96:"Diumenge",s1a0efa6ac51e8a85:"Pàgina anterior",s1a874fc38d0fcef0:"Ordre mèdica",s1d318e9d0ccba86b:"Xat",s1ee6d7e6d04932a4:"El correu electrònic no és vàlid",s1fe8bb7f6ae07f9b:"No tens cites en l'historial",s219b833c5ca095b3:"Aquí podràs veure totes les cites que has tingut. Pots accedir a les documents de cada consulta i reagendar una cita si és necessari.",s22cf91a84fba4c4e:"Quan agendis una cita, apareixerà aquí per que puguis consultar-la, modificar-la o cancel·lar-la.",s255bf4de23c83482:"Condicions de reserva:",s256189bafbcd2e34:"El telèfon no és vàlid",s27e462e9f48eb3a6:"Documentació",s2a1d212b3cb5c1a1:"Pots xatejar amb el professional fins 48 hores finalitzada la teva cita",s2aa2c19d07591438:"Rebràs un recordatori 15 minuts abans de la consulta",s2aab27b26a86469f:"Motiu de consulta",s2b9fde9a5739d2a0:"Nom",s2bb20b2162a18938:"¿Per què necessites la consulta?",s2d6183fa992e10e9:"Aquest professional no té horaris disponibles",s2ebd846b5a30f9d1:"Ho sentim, no hem pogut repetir la teva cita. Si us plau, contacta amb el suport.",s30c9095a2e07d929:"Sala d'espera",s31219c9bdeb7bc3e:"Continuar",s337e34cd11150eb6:"Veure totes les meves cites",s346d488070fe4cc8:"Demanar cita",s3944638e633d719a:"Consulta",s3b77baf6a4864231:"Error desconegut",s3bd87e3e21b07900:"Espereu mentre es restableix la connexió",s3dc6584e403858df:"No hem pogut carregar la teva documentació",s3f55bc3bfec41a5d:"Adjuntar arxius",s4177fe7f5d70fd33:"Tornar",s41826ac201c3cd85:"No s'ha pogut obrir el chat amb suport",s4364d4be7641e15f:"Confirmar cita",s43e5edcc8801e9a4:"Perfil del professional",s4813ee5d305442e5:"Sembla que no t'hem trobat a l'hora de la teva cita. Pots programar una altra consulta per resoldre els teus dubtes.",s49683919cdaeca83:"Avui",s4a061033615c8016:"Documents",s4a8494821c987a17:"Informe",s4a8f1fcd3f5e5952:"Encara no és l'hora!",s4d20157b5a655e70:"Aquest horari no està disponible. Si us plau, seleccioneu un altre.",s4de424f531892818:"Anar a videotrucada",s51c461d40f9fb865:"Selecciona el teu especialista",s536a0b4d3d4a5d9f:"No hem pogut carregar la teva propera cita",s53d957dda6cc200b:"Servei i plataforma prestats per",s53e2497bf900c7fd:"No tens properes cites",s5558a2e389d04223:"Modificar",s55c5126e99bae190:"Buscar disponibilitat",s563dcbfd432eb18f:"Anul·lar cita",s57e65113a89160cf:"Modalitat de la cita",s59612eaa6993aa7e:a`${0} minuts`,s5eef402d73eecbdc:"Adjuntar arxiu",s5f7956aacb5c6ca2:"Comprovant Google Pay…",s5f817b8841b188d2:"Més opcions",s631f73a10d156b22:"Consulta expirada",s63f7af84683dd7c3:"Aquesta cita ja no es pot modificar ni anul·lar: no queda el temps mínim requerit abans del començament.",s643155d1b6ee1684:"Torna-ho a provar en uns minuts.",s64b78a5026d4ce8d:"No hi ha horaris disponibles",s65bedc0e516977d9:"Dissabte",s679be6312356a21c:"Agenda una consulta mèdica quan la necessitis. Aquí podràs veure tots els detalls i podràs gestionar les teves properes cites.",s67f30f9f4ea881f3:"Aquest codi no és vàlid.",s6a50fd7f52263b04:"No s'ha pogut tornar a la sala d'espera",s6ab6fcd87fdbf217:"Hola",s6b1c4fb634461e7c:"Mes anterior",s6b6fa877ec1e6968:"Xatejar amb el professional",s6c81d42670932f93:"Actualitzar",s6e2423db05f36856:"Petició de cita",s6ecdc22accc55af7:"Videoconferència",s70258a0040dd9e19:"Tornar a la sala d'espera",s718177442a7447b2:"Cita amb un especialista en menys de 72 hores",s733b3bf647b7b0fa:"Accepta els permisos de càmera i micròfon",s73cad78d8a3c39c2:"Prescripció",s74d7a739b6ab651d:"Històric",s757fef148e0c94c6:"Disponibilitat",s77320b73fdd9cc40:"Sortir",s775370fdb0af1546:"Data de naixement",s77c2b712a9813175:"Demanar una nova cita",s77f8e4bee88d44aa:a`${0} de ${1}`,s7907902da8916212:"El professional et trucarà al número que indiques en aquest camp.",s7aa3cd94d51825fc:"No hi ha professionals disponibles per a l'especialitat seleccionada. Si us plau, torna a intentar-ho en un altre moment o selecciona una altra especialitat.",s7af26e861bb6f905:"Falta l'identificador de passarel·la de Google Pay",s7fd8da9511b66dd4:"Pots adjuntar imatges o documentació addicional (analítiques, resultats de proves, etc.) perquè les avaluï el metge",s83c6ce869a2bbaa7:"(1 és molt dolent, 5 és excel·lent)",s8447efe79d058943:"Import pagat",s8581adc786786298:"Format d'arxiu no suportat",s862ca980b16911d0:"Xateja amb el professional",s8c18dbf02590a72e:"Codi de promoció aplicat",s8cce15c931017937:"Tornar a l'inici",s8e7a6119525dc7c9:a`Ho sentim, com falten menys de ${0} minuts per a la teva cita no la podem modificar.`,s9005845c358db9da:"No hem pogut descarregar el document.",s92f34d487d1d0355:"Promoció",s94626d2ffd70f075:"Codi de promoció validat correctament",s9536695467bcf9c4:"Aquesta cita ja ha passat, per la qual cosa no es pot anul·lar.",s96474eac63a69381:"Anar al xat",s96ceb408923a7ab1:a`Nº COL. ${0}`,s979ee14368bf1505:"Xateja amb mi",s9802dd10b2c2f760:"Enviar",s99898f495319cd49:"Aquest missatge ha estat eliminat",s9c309154722f8e06:"Carregant el portal de pagament",s9cabdaf42f04afee:"Introdueix el codi",s9cbf16425cadadb1:"Si us plau, intenta-ho de nou més tard.",s9d22fa67943fdc4c:"Consulta telefònica",sa00e726e1e7e46a9:"Afegir codi de promoció",sa27f38ad9db3bc4f:"Asesor comercial",sa2fe3f3b565f15f4:"Cancel·lar",sa4186d5e26cab4bb:"Pàgina no trobada",sa497ebaaeb251035:"Repetir cita",sa7de4334479674c6:"Modificar cita",sa82bc40dafbe3256:a`Cita agendada de ${0}`,sa83d79734eb60ee3:"Aplicar",sa86d729f62b39f99:"Unir-se a la videoconferència",sa87d2c48a52b2617:"No tens documentació",sab964c37a0934399:"No s'ha pogut carregar Google Pay. Comprova la configuració del lloc web i torna-ho a provar.",sac2728ace11e5f4b:"Especialitat*",sadc5ede25dd6e126:"El professional t'enviarà un missatge per poder coordinar la cita. Assegura't de tenir bona cobertura i poder atendre en el horari escollit.",sae8f7ac5552b2af1:"Quan faltin 10 minuts per a la teva consulta, podràs accedir a la videoconferència",saf63dc4c8601ec8c:"a",safe333e385f371ff:"Verificant el teu pagament...",saff3019e8a8c5f98:"Dilluns",sb01184796ad3832e:"Com t'ha anat la cita?",sb410a3509b92a90c:"Tens algun comentari sobre la consulta?",sb49dc4c5edae9d4e:"Valoració de la consulta",sb5387e21dc21422b:"Cita modificada",sb621415007181c43:"Mes següent",sb73394814d122852:"Si el teu metge ha generat alguna documentació, podràs veure-la i descarregar-la aquí, des de la secció de documentació, el teu correu o el xat.",sb882f28c9b20052e:"Cita confirmada",sba98cf8b2a7dfca4:"Ahir",sbbee712c4900abc2:"No hem pogut iniciar el pagament",sbc0be90393c87447:a`Resum de la cita per a ${0}`,sbcf081de432a2172:"Veure detalls",sbcfc05bdb868b383:"Receta",sbd07d1f779e482ae:"No hem pogut confirmar el teu pagament",sbd9803cceb34513a:"Iniciar xat amb assessor comercial",sbda1cf7b293e17d2:"Pujar arxiu",sc27e7c4850fc5a34:a`Ho sentim, com falten menys de ${0} hores per a la teva cita no la podem anul·lar.`,sc3bb7ea72886e4d0:"Documents recents",sc3c7734c15d2a045:"Explica'ns com va anar l'atenció o si vas tenir cap problema amb la videotrucada…",sc43929cc6582a185:"Veure agenda completa",sc4edf6a4e0157d4e:"Properes cites",sc7cf2be40c8614fa:a`Ho sentim, com falten menys de ${0} minuts per a la teva cita no la podem anul·lar.`,sca0e87aae6bde276:"Va passar algun problema?",sca4bd395e3148194:"Confirmar cancel·lació",sca90bc30758f9082:"La pàgina que estàs buscant ha estat eliminada, renombrada o pot que no existeixi.",scbe4c6673872bda5:"Telèfon",sce29e337ebd75277:"Chat amb suport",scf469737e1670fd4:"Pàgina següent",scfc7f5c5f41936dc:"Les meves cites",sd1f44f1a8bc20e67:"Correu electrònic",sd24922a2783f286e:"Dimecres",sd2a8fc66c53c1a27:"Ometre",sd3f7579076c6611c:"Sembla que has denegat els permisos necessaris per entrar a la videotrucada. Edita els permisos en el teu navegador per entrar. Una vegada concedits, has de refrescar aquesta pantalla.",sd4beaeb9a1b1fed5:"Dates anteriors",sd812eb30f385776d:"Completa el teu perfil",sd853d3bcf5341b59:"Veure més",sda962b28e9110c82:"Realitza la cerca en el teu quadre mèdic digital",sdb7004e477873574:"Consulta anul·lada correctament",sdd963b1b2ce9a1f5:a`El professional et trucarà al ${0} en el horari seleccionat. Assegura't de tenir bona cobertura i poder atendre en el horari escollit.`,sde993da26c048f19:"Traumatologia, ginecologia, endocrinologia, digestiva o psiquiatria",sdee32ae81ca0d6d8:"Afegeix al calendari",se00b081edccfae39:"Dates següents",se07ea9607704c5ad:"Canviar codi",se090f7226b372a4a:"Si la cita no s'ha pogut fer, pots",se0c7cc77f86aa8a0:"Cognoms",se17f2b402ecea2e1:"Import a devolver",se18fa3ef98e155de:"Preparant Google Pay…",se1cce5af3e9bb6ee:"S'ha produït un error en l'enviament de l'arxiu",se1cf783f86c53031:"Dimarts",se45e6f6f3428ad50:a`Enllaç a la cita: ${0}`,se5a09223256f98db:"Aquest camp és obligatori",se5f9264155b99909:"S'ha produït un problema en verificar l'estat del teu pagament. Si us plau, contacta amb el suport si el càrrega s'ha realitzat.",se92e438da4e7099f:a`Ho sentim, com falten menys de ${0} hores per a la teva cita no la podem modificar.`,sea11fd8a12559bc5:"Cita prèvia:",seb6739450e8d9c8d:"¿Segur que vols cancel·lar aquesta cita? Se t'devolverà el import pagat en un termini de 5-10 dies hàbils.",seb850e89f9ff58e8:"Propera cita",sed750da423170d47:"Resultats per a:",sed836a96c3b5d523:"Portal de pagament",sed8ec5e3c64fa25d:"Total",sed97e90642983578:"Continuar al pagament",sedb2092dda465ea1:"DNI/NIE",sedbca9676f07a51f:"Modalitat de la cita*",see7c0a7b5b6ebbc5:"Utilitza el xat per enviar el motiu de consulta, documents o imatges",sefc0dd68776c9466:"Qüestionari preconsulta",sf0638d3fc50964d2:"Escull una altra data",sf0695a0a125ae748:"Confirmar",sf09d5e51b63f2b7d:"Pagar amb Google Pay",sf199b210440b7c5f:"Consulta finalitzada",sf3457daf057bff15:"tornar a la sala d'espera.",sf484a0e20a7829ac:"T'enviarem un enllaç al correu electrònic indicat quan sigui el moment de connectar-te a la videoconferència. Assegura't de tenir bona connexió a internet i un dispositiu amb càmera i micròfon.",sf48d12e7ae207023:"Especialitat",sf5258cfb2fa10bdc:"Espera a ser atès sense sortir d'aquesta pantalla",sf63a72ff4116c6a9:"Descarregar document",sf9705e1c4e82c017:"No s'ha pogut enviar el qüestionari",sfa6bc28a7faedc92:"Nova cita d'especialitats digitals",sfac5734d03595135:"Veure-les totes",sfc63af0362cfb78b:"Falta l'identificador de comerç de Google Pay",sfd51ca4e1b145054:"No s'ha pogut reservar aquest horari. Si us plau, seleccioneu un altre.",sff337500b69abf7f:"El metge està finalitzant la gestió de la teva consulta. Actualitza en uns minuts per veure si tens documentació.",sffbc330c8a19f838:"Veure menys",sc6a6d42245892254:"Falta el identificador de comercio de Apple Pay",s3da77e69fe62cb2a:"No se ha podido cargar Apple Pay. Comprueba la configuración del sitio e inténtalo de nuevo.",se1dd5d211b5b00e4:"Apple Pay no está disponible",s7e8b7a5acbdf83ed:"Preparando Apple Pay…",sc8271ba819299b59:"Comprobando Apple Pay…",s57e95bc3afddfeb0:"Para pagar con Apple Pay, escanea el código QR con tu iPhone (iOS 18 o posterior) y confirma el pago.",sf32cd04f9a848ee2:"Pagar con Apple Pay",s6a796114fe45025d:a`${0}, ${1} h${2}`,s35d601992fe66fed:"Confirmando tu pago",s5370521b92483bf3:"No cierres, vuelvas atrás ni actualices la ventana; esto puede tardar unos momentos.",s77bf41039c589159:"Tu pago no se ha completado",s0e850d0fec6daf7d:"El pago ha sido rechazado y no hemos creado la cita. No se te ha cobrado nada: puedes volver a reservar desde el inicio.",s4007fa55a28f1f73:"Ese horario ya no está disponible",s0089e78f42dfd1a4:"Otro paciente ha reservado esa cita mientras completabas el pago, así que no hemos podido crearla.",saeefd0d6fb204a80:"Te hemos devuelto el importe automáticamente; puede tardar unos días en reflejarse en tu cuenta.",se478d6710916dadf:"No hemos podido devolverte el importe automáticamente. Escríbenos y lo resolvemos:",sf9e6fbadcce256d0:"Ha ocurrido un error",sa24acad3b1338788:"No hemos podido confirmar tu pago. Por favor, inténtalo de nuevo más tarde.",s8bbbd679ddb50d3b:"Si se te ha cobrado sin una cita confirmada, contacta con nuestro equipo en",s67ebdb57fc6ed724:"Confirmar y pagar",sf75ec3d5bb6b65ab:"Método de pago",s0ef2d611972d04af:"Selecciona un método para realizar el pago de la cita",s0569fb3d65e68486:"Tarjeta",sa8771906f4c82494:"Google pay",se2570afbd791e071:"Apple pay",s3a392bf1aa5a8813:"No se puede iniciar Google Pay",sc9c8fbf418b784ac:"No se puede iniciar Apple Pay",s55e29f17a7ab0b80:"Esperando confirmación de Google Pay",s8ff9b86afd460a55:"Esperando confirmación de Apple Pay",s5b8873ddba610f68:"Abrir Google Pay",s9506fb9bc66942ed:"Abrir Apple Pay",s6db69fd67f48404c:"Abrir ventana de Google Pay",s6911c9ad386cc8b9:"Abrir ventana de Apple Pay",s4a9be42496525265:"Volver a abrir Google Pay",s3356a53ef97dcfba:"Volver a abrir Apple Pay",s9ca719e1a40e96e3:"Faltan credenciales de pago. Vuelve atrás e inténtalo de nuevo, o paga con tarjeta.",s0f6deacf5441e291:"Elegir otro método",s275336b3d23d6d9c:"No cierres esta página.",s1dec877628213eef:"Tus citas",se0c593aac5e172e6:"Accede, modifica o anula tus citas.",s230b0bee447e61a5:"Ver mis citas"};export{e as templates};
@@ -0,0 +1 @@
1
+ import{s as e}from"./runtime-Bg1WXVCx.js";const n={s0043fc30b467bc43:"Details ausblenden",s00c8bf60a179e056:"Google Pay ist nicht verfügbar. Versuche es mit Karte oder einer anderen Zahlungsmethode.",s035706a468d0c40b:"Freitag",s0520ac0a7da193d4:"Wir konnten den Code nicht überprüfen. Bitte versuchen Sie es erneut.",s071bd6bbf6c08f34:"Laden",s08404262212123ef:"Wie kann ich dir helfen?",s08fe5307b5987c42:"De",s08fe5907b5988674:"Do",s09165307b5ad0e23:"Mi",s09165b07b5ad1bbb:"Ma",s09195307b5af43fa:"Lu",s092e4f07b5c19938:"Ju",s093b3307b5cbf400:"Vi",s09462f07b5d5f4b9:"Sa",s09528d5c26b62213:"Donnerstag",s0aaec824f7c6b501:"Nachricht senden",s0b0085a15991b134:"Wiederherstellen...",s0b0955208f737a86:"Die Datei überschreitet die maximale Größe",s0eb69642cbc19745:"Dieser Termin liegt bereits in der Vergangenheit und kann daher nicht mehr geändert werden.",s0fc7c4bfd185800d:"Hier werden Ihre Rezepte und Arztberichte angezeigt.",s0fcbdef9dc977231:"Ein Fehler ist beim Laden der Seite aufgetreten. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",s11605fc03de64e14:"Schreiben Sie hier...",s12f171594a5379d2:"Sind Sie sicher, dass Sie diese Behandlung stornieren möchten?",s132e84f499a23985:"Keine Zeitpläne verfügbar",s13317a76a9ed776e:"Wiederholen",s142eba34d93fe59e:"Beschreibung",s1513f3687bfcac96:"Sonntag",s1a0efa6ac51e8a85:"Vorherige Seite",s1a874fc38d0fcef0:"Ärztliche Verordnung",s1d318e9d0ccba86b:"Chat",s1ee6d7e6d04932a4:"Die E-Mail ist nicht gültig",s1fe8bb7f6ae07f9b:"Sie haben keine Behandlungen in Ihrer Chronik",s219b833c5ca095b3:"Hier sehen Sie alle Behandlungen, auf die Sie zugegriffen haben. Sie können auf die Dokumente jeder Behandlung zugreifen und eine Behandlung neu planen, wenn dies erforderlich ist.",s22cf91a84fba4c4e:"Wenn Sie eine Behandlung planen, erscheint hier, um Sie zu konsultieren, zu ändern oder zu stornieren.",s255bf4de23c83482:"Bedingungen der Buchung:",s256189bafbcd2e34:"Die Telefonnummer ist nicht gültig",s27e462e9f48eb3a6:"Dokumentation",s2a1d212b3cb5c1a1:"Sie können mit Ihrem Experten bis 48 Stunden nach der Behandlung chatten",s2aa2c19d07591438:"Sie erhalten 15 Minuten vor der Behandlung eine Erinnerung",s2aab27b26a86469f:"Behandlungsmotive",s2b9fde9a5739d2a0:"Vorname",s2bb20b2162a18938:"Warum benötigen Sie die Behandlung?",s2d6183fa992e10e9:"Dieser Experte hat keine verfügbaren Termine",s2ebd846b5a30f9d1:"Es tut uns leid, wir konnten Ihre Behandlung nicht wiederholen. Bitte wenden Sie sich an den Support.",s30c9095a2e07d929:"Wartezimmer",s31219c9bdeb7bc3e:"Weiter",s337e34cd11150eb6:"Meine Behandlungen anzeigen",s346d488070fe4cc8:"Behandlung anfragen",s3944638e633d719a:"Konsultation",s3b77baf6a4864231:"Unbekannter Fehler",s3bd87e3e21b07900:"Warten Sie, während die Verbindung wiederhergestellt wird",s3dc6584e403858df:"Wir konnten Ihre Dokumente nicht laden",s3f55bc3bfec41a5d:"Datei anhängen",s4177fe7f5d70fd33:"Zurück",s41826ac201c3cd85:"Der Chat mit Support konnte nicht geöffnet werden",s4364d4be7641e15f:"Termin bestätigen",s43e5edcc8801e9a4:"Professioneller Profil",s4813ee5d305442e5:"Es scheint, dass wir Sie zu der Zeit nicht gefunden haben, zu der Sie Ihre Behandlung haben. Sie können eine andere Behandlung planen, um Ihre Fragen zu beantworten.",s49683919cdaeca83:"Heute",s4a061033615c8016:"Dokumente",s4a8494821c987a17:"Bericht",s4a8f1fcd3f5e5952:"Es ist noch nicht die Zeit!",s4d20157b5a655e70:"Dieser Zeitplan ist nicht verfügbar. Bitte wählen Sie einen anderen.",s4de424f531892818:"Zu Videocall gehen",s51c461d40f9fb865:"Wählen Sie Ihren Experten",s536a0b4d3d4a5d9f:"Wir konnten Ihre nächste Behandlung nicht laden",s53d957dda6cc200b:"Service und Plattform von",s53e2497bf900c7fd:"Sie haben keine nächsten Behandlungen",s5558a2e389d04223:"Ändern",s55c5126e99bae190:"Verfügbarkeit suchen",s563dcbfd432eb18f:"Behandlung stornieren",s57e65113a89160cf:"Behandlungsmode",s59612eaa6993aa7e:e`${0} Minuten`,s5eef402d73eecbdc:"Datei anhängen",s5f7956aacb5c6ca2:"Google Pay wird geprüft…",s5f817b8841b188d2:"Weitere Optionen",s631f73a10d156b22:"Behandlung abgelaufen",s63f7af84683dd7c3:"Diese Behandlung kann nicht geändert oder storniert werden: Es ist nicht genügend Zeit vor dem Beginn verbleiben.",s643155d1b6ee1684:"Versuchen Sie es in einigen Minuten erneut.",s64b78a5026d4ce8d:"Keine Zeitpläne verfügbar",s65bedc0e516977d9:"Samstag",s679be6312356a21c:"Planen Sie eine medizinische Behandlung, wenn Sie sie benötigen. Hier sehen Sie alle Details und können Ihre nächsten Behandlungen verwalten.",s67f30f9f4ea881f3:"Dieser Code ist ungültig.",s6a50fd7f52263b04:"Rückkehr ins Wartezimmer nicht möglich",s6ab6fcd87fdbf217:"Hallo",s6b1c4fb634461e7c:"Vorheriger Monat",s6b6fa877ec1e6968:"Mit dem Experten chatten",s6c81d42670932f93:"Aktualisieren",s6e2423db05f36856:"Behandlungsanfrage",s6ecdc22accc55af7:"Videoanruf",s70258a0040dd9e19:"Zurück zum Wartezimmer",s718177442a7447b2:"Behandlung mit einem Experten in weniger als 72 Stunden",s733b3bf647b7b0fa:"Akzeptieren Sie die Berechtigungen für Kamera und Mikrofon",s73cad78d8a3c39c2:"Rezept",s74d7a739b6ab651d:"Chronik",s757fef148e0c94c6:"Verfügbarkeit",s77320b73fdd9cc40:"Verlassen",s775370fdb0af1546:"Geburtsdatum",s77c2b712a9813175:"Neue Behandlung anfragen",s77f8e4bee88d44aa:e`${0} von ${1}`,s7907902da8916212:"Der Experte wird Ihnen eine Nachricht senden, um die Behandlung zu koordinieren. Stellen Sie sicher, dass Sie eine gute Mobilfunkabdeckung haben und in dem ausgewählten Zeitplan antreten können.",s7aa3cd94d51825fc:"Es gibt keine professionellen für die ausgewählte Spezialität verfügbar. Bitte versuchen Sie es erneut oder wählen Sie eine andere Spezialität.",s7af26e861bb6f905:"Google Pay-Gateway-Händlerkennung fehlt",s7fd8da9511b66dd4:"Sie können Bilder oder zusätzliche Dokumentation (Analysen, Testresultate, etc.) für den Arzt hochladen",s83c6ce869a2bbaa7:"(1 ist sehr schlecht, 5 ist ausgezeichnet)",s8447efe79d058943:"Bezahlter Betrag",s8581adc786786298:"Dateiformat nicht unterstützt",s862ca980b16911d0:"Mit dem Experten chatten",s8c18dbf02590a72e:"Aktionscode angewendet",s8cce15c931017937:"Zurück zur Startseite",s8e7a6119525dc7c9:e`Leider können wir Ihren Termin nicht ändern, da bis dahin weniger als ${0} Minuten verbleiben.`,s9005845c358db9da:"Wir konnten das Dokument nicht herunterladen.",s92f34d487d1d0355:"Aktion",s94626d2ffd70f075:"Aktionscode erfolgreich angewendet",s9536695467bcf9c4:"Dieser Termin liegt bereits in der Vergangenheit und kann daher nicht mehr storniert werden.",s96474eac63a69381:"Zum Chat gehen",s96ceb408923a7ab1:e`Nr. KOL. ${0}`,s979ee14368bf1505:"Chatte mit mir",s9802dd10b2c2f760:"Senden",s99898f495319cd49:"Dieser Nachricht wurde gelöscht",s9c309154722f8e06:"Laden des Zahlungsportals",s9cabdaf42f04afee:"Code eingeben",s9cbf16425cadadb1:"Bitte versuchen Sie es erneut später.",s9d22fa67943fdc4c:"Telefonische Behandlung",sa00e726e1e7e46a9:"Aktionscode hinzufügen",sa27f38ad9db3bc4f:"Kommerzialberater",sa2fe3f3b565f15f4:"Stornieren",sa4186d5e26cab4bb:"Seite nicht gefunden",sa497ebaaeb251035:"Behandlung wiederholen",sa7de4334479674c6:"Behandlung ändern",sa82bc40dafbe3256:e`Behandlung geplant für ${0}`,sa83d79734eb60ee3:"Anwenden",sa86d729f62b39f99:"Am Videoanruf teilnehmen",sa87d2c48a52b2617:"Sie haben keine Dokumentation",sab964c37a0934399:"Google Pay konnte nicht geladen werden. Überprüfe die Website-Konfiguration und versuche es erneut.",sac2728ace11e5f4b:"Spezialität*",sadc5ede25dd6e126:"Der Experte wird Ihnen eine Nachricht senden, um die Behandlung zu koordinieren. Stellen Sie sicher, dass Sie eine gute Mobilfunkabdeckung haben und in dem ausgewählten Zeitplan antreten können.",sae8f7ac5552b2af1:"Wenn es 10 Minuten bis zur Behandlung gibt, können Sie auf die Videokonferenz zugreifen",saf63dc4c8601ec8c:"a",safe333e385f371ff:"Überprüfen Sie Ihre Zahlung...",saff3019e8a8c5f98:"Montag",sb01184796ad3832e:"Wie war dein Termin?",sb410a3509b92a90c:"Hast du Anmerkungen zum Termin?",sb49dc4c5edae9d4e:"Bewertung der Konsultation",sb5387e21dc21422b:"Behandlung geändert",sb621415007181c43:"Nächster Monat",sb73394814d122852:"Wenn Ihr Arzt irgendeine Dokumentation generiert hat, können Sie sie hier sehen und herunterladen, von der Dokumentation-Sektion, Ihrer E-Mail oder dem Chat.",sb882f28c9b20052e:"Behandlung bestätigt",sba98cf8b2a7dfca4:"Gestern",sbbee712c4900abc2:"Wir konnten den Zahlungsvorgang nicht starten",sbc0be90393c87447:e`Zusammenfassung der Behandlung für ${0}`,sbcf081de432a2172:"Details anzeigen",sbcfc05bdb868b383:"Rezept",sbd07d1f779e482ae:"Wir konnten Ihre Zahlung nicht bestätigen",sbd9803cceb34513a:"Chat mit Kommerzialberater starten",sbda1cf7b293e17d2:"Datei hochladen",sc27e7c4850fc5a34:e`Leider können wir Ihren Termin nicht stornieren, da bis dahin weniger als ${0} Stunden verbleiben.`,sc3bb7ea72886e4d0:"Neueste Dokumente",sc3c7734c15d2a045:"Erzähl uns, wie die Betreuung war oder ob es Probleme mit dem Videocall gab…",sc43929cc6582a185:"Vollständiges Kalender anzeigen",sc4edf6a4e0157d4e:"Nächste Behandlungen",sc7cf2be40c8614fa:e`Leider können wir Ihren Termin nicht stornieren, da bis dahin weniger als ${0} Minuten verbleiben.`,sca0e87aae6bde276:"Gab es ein Problem?",sca4bd395e3148194:"Behandlung stornieren bestätigen",sca90bc30758f9082:"Die von Ihnen gesuchte Seite wurde entfernt, umbenannt oder könnte nicht existieren.",scbe4c6673872bda5:"Telefon",sce29e337ebd75277:"Chat mit Support",scf469737e1670fd4:"Nächste Seite",scfc7f5c5f41936dc:"Meine Behandlungen",sd1f44f1a8bc20e67:"E-Mail",sd24922a2783f286e:"Mittwoch",sd2a8fc66c53c1a27:"Überspringen",sd3f7579076c6611c:"Es scheint, dass Sie die erforderlichen Berechtigungen für den Videocall abgelehnt haben. Bearbeiten Sie die Berechtigungen in Ihrem Browser, um einzutreten. Sobald sie erteilt sind, müssen Sie diese Seite aktualisieren.",sd4beaeb9a1b1fed5:"Vorherige Daten",sd812eb30f385776d:"Füllen Sie Ihr Profil aus",sd853d3bcf5341b59:"Mehr anzeigen",sda962b28e9110c82:"Suchen Sie in Ihrem medizinischen Digitalprofil",sdb7004e477873574:"Behandlung storniert",sdd963b1b2ce9a1f5:e`Der Experte wird Ihnen unter ${0} am ausgewählten Zeitplan anrufen. Stellen Sie sicher, dass Sie eine gute Mobilfunkabdeckung haben und in dem ausgewählten Zeitplan antreten können.`,sde993da26c048f19:"Traumatologie, Gynäkologie, Endokrinologie, Verdauungssystem oder Psychiatrie",sdee32ae81ca0d6d8:"Zu Kalender hinzufügen",se00b081edccfae39:"Nächste Daten",se07ea9607704c5ad:"Code ändern",se090f7226b372a4a:"Wenn der Termin nicht stattfinden konnte, kannst du",se0c7cc77f86aa8a0:"Nachname",se17f2b402ecea2e1:"Zurückzugebender Betrag",se18fa3ef98e155de:"Google Pay wird vorbereitet…",se1cce5af3e9bb6ee:"Es ist ein Fehler aufgetreten, während der Datei hochgeladen wurde",se1cf783f86c53031:"Dienstag",se45e6f6f3428ad50:e`Link zur Behandlung: ${0}`,se5a09223256f98db:"Dieses Feld ist erforderlich",se5f9264155b99909:"Es ist ein Problem aufgetreten, während der Zahlungszustand überprüft wurde. Bitte kontaktieren Sie den Support, wenn die Gebühr erstattet wurde.",se92e438da4e7099f:e`Leider können wir Ihren Termin nicht ändern, da bis dahin weniger als ${0} Stunden verbleiben.`,sea11fd8a12559bc5:"Vorherige Behandlung:",seb6739450e8d9c8d:"Sind Sie sicher, dass Sie diese Behandlung stornieren möchten? Sie erhalten den bezahlten Betrag innerhalb von 5-10 Werktagen zurück.",seb850e89f9ff58e8:"Nächste Behandlung",sed750da423170d47:"Ergebnisse für:",sed836a96c3b5d523:"Zahlungsportal",sed8ec5e3c64fa25d:"Gesamt",sed97e90642983578:"Zur Zahlung fortfahren",sedb2092dda465ea1:"DNI/NIE",sedbca9676f07a51f:"Behandlungsmode*",see7c0a7b5b6ebbc5:"Verwenden Sie den Chat, um das Behandlungsmotive, Dokumente oder Bilder zu senden",sefc0dd68776c9466:"Fragebogen vor der Behandlung",sf0638d3fc50964d2:"Andere Datum wählen",sf0695a0a125ae748:"Bestätigen",sf09d5e51b63f2b7d:"Mit Google Pay bezahlen",sf199b210440b7c5f:"Behandlung abgeschlossen",sf3457daf057bff15:"ins Wartezimmer zurückkehren.",sf484a0e20a7829ac:"Wir senden Ihnen eine E-Mail, wenn es Zeit ist, sich für die Videocall zu verbinden. Stellen Sie sicher, dass Sie eine gute Internetverbindung und ein Gerät mit Kamera und Mikrofon haben.",sf48d12e7ae207023:"Spezialität",sf5258cfb2fa10bdc:"Warten Sie auf Ihre Behandlung, ohne dieses Fenster zu verlassen",sf63a72ff4116c6a9:"Dokument herunterladen",sf9705e1c4e82c017:"Fragebogen konnte nicht gesendet werden",sfa6bc28a7faedc92:"Neue Digital-Spezialitäten-Behandlung",sfac5734d03595135:"Alle ansehen",sfc63af0362cfb78b:"Google Pay-Händlerkennung fehlt",sfd51ca4e1b145054:"Es konnte dieser Zeitplan nicht reserviert werden. Bitte wählen Sie einen anderen.",sff337500b69abf7f:"Der Arzt beendet Ihre Behandlung. Aktualisieren Sie in einigen Minuten, um zu sehen, ob Sie Dokumentation haben.",sffbc330c8a19f838:"Weniger anzeigen",sc6a6d42245892254:"Falta el identificador de comercio de Apple Pay",s3da77e69fe62cb2a:"No se ha podido cargar Apple Pay. Comprueba la configuración del sitio e inténtalo de nuevo.",se1dd5d211b5b00e4:"Apple Pay no está disponible",s7e8b7a5acbdf83ed:"Preparando Apple Pay…",sc8271ba819299b59:"Comprobando Apple Pay…",s57e95bc3afddfeb0:"Para pagar con Apple Pay, escanea el código QR con tu iPhone (iOS 18 o posterior) y confirma el pago.",sf32cd04f9a848ee2:"Pagar con Apple Pay",s6a796114fe45025d:e`${0}, ${1} h${2}`,s35d601992fe66fed:"Confirmando tu pago",s5370521b92483bf3:"No cierres, vuelvas atrás ni actualices la ventana; esto puede tardar unos momentos.",s77bf41039c589159:"Tu pago no se ha completado",s0e850d0fec6daf7d:"El pago ha sido rechazado y no hemos creado la cita. No se te ha cobrado nada: puedes volver a reservar desde el inicio.",s4007fa55a28f1f73:"Ese horario ya no está disponible",s0089e78f42dfd1a4:"Otro paciente ha reservado esa cita mientras completabas el pago, así que no hemos podido crearla.",saeefd0d6fb204a80:"Te hemos devuelto el importe automáticamente; puede tardar unos días en reflejarse en tu cuenta.",se478d6710916dadf:"No hemos podido devolverte el importe automáticamente. Escríbenos y lo resolvemos:",sf9e6fbadcce256d0:"Ha ocurrido un error",sa24acad3b1338788:"No hemos podido confirmar tu pago. Por favor, inténtalo de nuevo más tarde.",s8bbbd679ddb50d3b:"Si se te ha cobrado sin una cita confirmada, contacta con nuestro equipo en",s67ebdb57fc6ed724:"Confirmar y pagar",sf75ec3d5bb6b65ab:"Método de pago",s0ef2d611972d04af:"Selecciona un método para realizar el pago de la cita",s0569fb3d65e68486:"Tarjeta",sa8771906f4c82494:"Google pay",se2570afbd791e071:"Apple pay",s3a392bf1aa5a8813:"No se puede iniciar Google Pay",sc9c8fbf418b784ac:"No se puede iniciar Apple Pay",s55e29f17a7ab0b80:"Esperando confirmación de Google Pay",s8ff9b86afd460a55:"Esperando confirmación de Apple Pay",s5b8873ddba610f68:"Abrir Google Pay",s9506fb9bc66942ed:"Abrir Apple Pay",s6db69fd67f48404c:"Abrir ventana de Google Pay",s6911c9ad386cc8b9:"Abrir ventana de Apple Pay",s4a9be42496525265:"Volver a abrir Google Pay",s3356a53ef97dcfba:"Volver a abrir Apple Pay",s9ca719e1a40e96e3:"Faltan credenciales de pago. Vuelve atrás e inténtalo de nuevo, o paga con tarjeta.",s0f6deacf5441e291:"Elegir otro método",s275336b3d23d6d9c:"No cierres esta página.",s1dec877628213eef:"Tus citas",se0c593aac5e172e6:"Accede, modifica o anula tus citas.",s230b0bee447e61a5:"Ver mis citas"};export{n as templates};
@@ -0,0 +1 @@
1
+ import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{m as i}from"./runtime-Bg1WXVCx.js";import{l as o}from"./localized-decorator-BlOuLhym.js";import{h as a,s as n}from"./task-Bj8p7kJX.js";import{A as s}from"./api-client-context-V1UAGtKW.js";import{C as r,D as l,d}from"./api-chat-client-BhxUWldC.js";import{g as c,a as p}from"./chunk-2TKJJNS7-BGwxtEg7.js";import{a as m}from"./addSeconds-ofMnxlgT.js";import{a as h,i as u,E as f,x as g}from"./lit-element-DiWJYFwC.js";import{n as v}from"./property-scuRaFcM.js";import{getLocale as y}from"../i18n.js";import{calendarIcon as b}from"../ui/icons/calendar-icon.js";import{clockIcon as x}from"../ui/icons/clock-icon.js";import{r as w}from"./state-LQivXIgA.js";import{infoCircleOutineIcon as $}from"../ui/icons/info-circle-outine-icon.js";import"../ui/mq-button.js";import{l as k}from"./chunk-S5RWG6G2-DPesx3Od.js";import{messageBubbleIcon as z}from"../ui/icons/message-bubble-icon.js";import"../mq-chat-room.js";import"../ui/mq-floating-bubble.js";import"../ui/mq-card.js";import"../ui/mq-unread-badge.js";import{c as q}from"./consume-CovVqBjI.js";import{Q as j}from"./query-controller-BlO1Ax65.js";import{g as C}from"./chunk-Y4EKUX25-QqMl3eiq.js";import"../ui/mq-page-title.js";import{downloadIcon as _}from"../ui/icons/download-icon.js";import{b as S}from"./blob-to-base64-CUL1trde.js";import{DownloadFileEvent as D,MqViewAppointmentsEvent as T}from"../events.js";import{M as I}from"./mutation-controller-CR2qcqhH.js";import{g as O,t as P,b as E,a as F,c as U,e as H}from"./telemetry-client-DEIuDZfA.js";let N=class ChatCta extends h{constructor(){super(...arguments),this.text=i("Utiliza el chat para enviar el motivo de consulta, documentos o imágenes"),this.readonly=!1,this.isChatOpen=!1,this.unreadQuery=new j(this,()=>C(this.apiClient,{roomId:this.roomId}))}static{this.styles=[u`.chat-cta{padding:var(--sp-6) var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-4)}.cta-message{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-4);font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);color:var(--color-neutrals-text-default)}.cta-message svg{flex-shrink:0}mq-button svg{flex-shrink:0}mq-chat-room{height:100%}@media (min-width:768px){.chat-cta{padding:var(--sp-6)}mq-button{max-width:323px;margin:0 auto}}`]}render(){return g`<mq-card class="chat-cta" roundness="md"><div class="cta-message">${$({size:24})} <span>${this.text}</span></div><mq-button variant="primary" size="md" fullwidth @click="${()=>{this.isChatOpen=!this.isChatOpen,this.isChatOpen&&this.onOpenChat?.()}}">${z({size:24})} ${i("Chatea con el profesional")} ${(this.unreadQuery.result?.data?.unread_count??0)>0?g`<mq-unread-badge></mq-unread-badge>`:f}</mq-button></mq-card><mq-floating-bubble ?dismissable="${!1}" .open="${this.isChatOpen}" @mq-close="${()=>{this.isChatOpen=!1}}" hideCloseButton>${this.isChatOpen?g`<mq-chat-room slot="content" .consultationId="${this.consultationId}" .consultationType="${r.appointment}" token="${this.loginToken.access_token}" .roomId="${this.roomId}" .professionalHash="${this.professionalHash}" ?readonly="${this.readonly}" @mq-chat-room-close="${()=>{this.isChatOpen=!1}}"></mq-chat-room>`:f}</mq-floating-bubble>`}};t([q({context:s,subscribe:!0})],N.prototype,"apiClient",void 0),t([v({type:Number})],N.prototype,"roomId",void 0),t([v({type:String})],N.prototype,"professionalHash",void 0),t([v({type:String})],N.prototype,"text",void 0),t([v({type:String})],N.prototype,"consultationId",void 0),t([v({type:Boolean,reflect:!0})],N.prototype,"readonly",void 0),t([v({attribute:!1})],N.prototype,"onOpenChat",void 0),t([q({context:k})],N.prototype,"loginToken",void 0),t([w()],N.prototype,"isChatOpen",void 0),N=t([o(),e("chat-cta")],N);let Q=class PageLayout extends h{constructor(){super(...arguments),this.yCentered=!1,this.background="solid"}static{this.styles=u`:host([background=transparent]){background-color:transparent}:host([background=solid]){background-color:var(--color-background)}:host([y-centered]) div{display:grid;place-items:center}div{width:100%;max-width:1000px;padding:var(--mq-layout-padding,0);margin:0 auto;box-sizing:border-box}:host([y-centered]) div{height:100%}main{width:100%}`}render(){return g`<div><main><slot></slot></main></div>`}};t([v({type:Boolean,attribute:"y-centered"})],Q.prototype,"yCentered",void 0),t([v({type:String})],Q.prototype,"background",void 0),Q=t([e("page-layout")],Q);const R=u`:host{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-4);width:100%}.left{display:flex;flex-direction:column;gap:var(--sp-1);flex:1;min-width:0}.tag{border-radius:var(--border-radius-sm);display:inline-flex;align-items:center;justify-content:center;padding:var(--sp-0_5) var(--sp-2);background-color:#e5e5e5;width:fit-content}.tag-label{font-family:var(--font-body);font-size:11px;font-weight:var(--font-weight-medium);color:var(--color-neutrals-text-default);text-transform:uppercase;letter-spacing:3px;line-height:normal}.title{font-family:var(--font-body);font-size:var(--text-sm);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default);line-height:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.description{font-family:var(--font-body);font-size:var(--text-sm);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default);line-height:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let A=class PatientDocument extends h{constructor(){super(...arguments),this.isDownloading=!1}static{this.styles=R}getFormatter(){const t=y().replace("_","-");return new Intl.DateTimeFormat(t,{year:"numeric",month:"numeric",day:"numeric"})}async _handleDownload(){this.isDownloading=!0;const t=await this.apiClient.flash.downloadDocument({url:this.downloadUrl}),e=await S(t);this.dispatchEvent(new D({url:e,filename:`${this.filename}.pdf`})),this.isDownloading=!1}formatKind(t){switch(t){case l.prescription:return i("Receta");case l.report:return i("Informe");case l.diagnosticTestPrescription:return i("Prescripción")}}render(){const t=this.getFormatter().format(new Date(this.date));return g`<div class="left"><div class="tag"><span class="tag-label">${this.formatKind(this.kind)}</span></div><div class="title">${t} - ${this.specialty}</div><div class="description">${this.description}</div></div><mq-button variant="ghost" size="icon-lg" @click="${this._handleDownload}" ?disabled="${this.isDownloading}">${_({size:24})}</mq-button>`}};t([q({context:s,subscribe:!0})],A.prototype,"apiClient",void 0),t([v({type:String})],A.prototype,"kind",void 0),t([v({type:String})],A.prototype,"filename",void 0),t([v({type:String})],A.prototype,"specialty",void 0),t([v({type:String})],A.prototype,"description",void 0),t([v({type:String})],A.prototype,"date",void 0),t([v({type:String})],A.prototype,"downloadUrl",void 0),t([w()],A.prototype,"isDownloading",void 0),A=t([o(),e("patient-document")],A);const B=u`mq-page-title{margin:var(--size-3) 0}.description{font-size:var(--text-sm);line-height:var(--text-sm--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-normal);margin:0;margin-bottom:var(--size-5)}.professional-card{padding:var(--size-4);margin-bottom:var(--size-4)}.professional-card>:not(:first-child){margin-top:var(--size-4)}.professional-name{font-family:var(--font-titles);font-size:var(--text-lg);line-height:var(--text-lg--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-bold);margin:0;margin-bottom:var(--size-1)}.professional-speciality{font-size:var(--text-base);line-height:var(--text-base--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-normal);margin:0}.description-list{display:flex;flex-direction:column;gap:var(--size-4)}.description-list-item{display:flex;flex-direction:row;align-items:center;gap:var(--size-2);color:var(--color-neutrals-text-default)}.description-list-item dt{display:inline-flex}.description-list-item dd{margin:0;font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-semibold)}.description-list-item dd::first-letter{text-transform:uppercase}.documents-card{padding:var(--size-4);margin-bottom:var(--size-6)}.documents-card-empty{font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-normal)}.documents-card-title{font-family:var(--font-titles);font-size:var(--text-lg);line-height:var(--text-lg--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-bold);margin:0;margin-bottom:var(--size-4)}.documents-list{margin-bottom:var(--size-4)}.documents-list>:not(:first-child){margin-top:var(--size-2)}.finished-consultation-footer{display:flex;flex-direction:column;gap:var(--size-5)}.document-item-skeleton{height:57px;width:100%;background-color:var(--color-muted);animation:skeleton-pulse 1.5s infinite}@keyframes skeleton-pulse{0%{opacity:1}50%{opacity:.6}100%{opacity:1}}@media (min-width:768px){.description-list{flex-direction:row}mq-button{display:block;max-width:323px;margin:0 auto}}`;let G=class DocumentationView extends h{constructor(){super(...arguments),this.canReconnect=!1,this._sharedocumentsTask=new a(this,{task:async([t])=>await this.apiClient.flash.getSharedDocuments({appointment_id:t}),args:()=>[this.appointment.id]}),this.getOrganizationSpecialtiesQuery=new j(this,()=>O(this.apiClient)),this._reconnectMutation=new I(this,{mutationFn:t=>this.apiClient.appointments.reconnectAppointment(t),onSuccess:()=>{this.dispatchEvent(new CustomEvent("reconnect",{bubbles:!0,composed:!0}))}})}static{this.styles=B}firstUpdated(){P.track(E(this.loginToken.patient.hash,this.appointment.id??""))}render(){const t=!0===this.appointment.has_chat_in_appointment,e=y(),o=e.replace("_","-"),a=c(this.loginToken.patient.timezone),s=a?{timeZone:a}:{},r=new Intl.DateTimeFormat(o,{dateStyle:"full",...s}),l=new Intl.DateTimeFormat(o,{hour:"2-digit",minute:"2-digit",...s}),h=new Date(this.appointment.start_date),u=m(h,this.appointment.duration),v=a?p(a,h):"";return g`<mq-page-title .title="${i("Consulta finalizada")}" back-label="${i("Salir")}" @mq-back="${t=>{t.stopPropagation(),this.dispatchEvent(new T({tab:"history"}))}}"></mq-page-title><p class="description">${i("Si tu médico ha generado alguna documentación podrás verla y descargarla aquí, desde la sección de documentación, tu correo o el chat.")}</p><mq-card class="professional-card" roundness="md"><div><h2 class="professional-name">${this.appointment.from.name}</h2><p class="professional-speciality">${this.appointment.from.speciality}</p></div><dl class="description-list"><div class="description-list-item"><dt>${b()}</dt><dd>${r.format(h)}</dd></div><div class="description-list-item"><dt>${x()}</dt><dd>${l.format(h)} - ${l.format(u)}${v?` (${v})`:""}</dd></div></dl></mq-card><mq-card class="documents-card" roundness="md"><h2 class="documents-card-title">${i("Documentación")}</h2><div class="documents-list">${this._sharedocumentsTask?.render({pending:()=>g`<div class="document-item-skeleton"></div>`,complete:()=>0===this._sharedocumentsTask?.value?.length?g`<p class="documents-card-empty">${i("El médico está terminando de gestionar tu consulta. Actualiza en unos minutos para ver si tienes documentación.")}</p>`:this._sharedocumentsTask?.value?.map(t=>g`<patient-document .kind="${t.document_type}" .filename="${t.name}" .specialty="${(()=>{const i=this.getOrganizationSpecialtiesQuery.result?.data?.find(e=>e.id===t.professional.speciality_id);return F(i?.code??"",e,i?.name)})()}" .description="${t.name}" .date="${t.created_at}" .downloadUrl="${t.url}"></patient-document>`)})}</div><mq-button variant="outline" size="md" fullwidth @click="${()=>{P.track(U(this.loginToken.patient.hash,this.appointment.id??"")),this._sharedocumentsTask?.run()}}" .disabled="${this._sharedocumentsTask?.status===n.PENDING}">${i("Actualizar")}</mq-button></mq-card><div class="finished-consultation-footer">${this.canReconnect?g`<mq-button variant="primary" size="md" fullwidth ?disabled="${this._reconnectMutation.isPending}" @click="${()=>this._reconnectMutation.run({appointmentId:this.appointment.id})}">${i("Volver a la sala de espera")}</mq-button>`:f} ${t?g`<chat-cta .consultationId="${this.appointment.id}" .roomId="${Number(this.appointment.room_id)}" .professionalHash="${this.appointment.from.hash}" .text="${i("Puedes chatear con tu profesional hasta 48 horas finalizada tu cita")}" ?readonly="${d(this.appointment.expires_at)}" .onOpenChat="${()=>{P.track(H(this.loginToken.patient.hash,this.appointment.id??""))}}"></chat-cta>`:f}</div>`}};t([q({context:s,subscribe:!0})],G.prototype,"apiClient",void 0),t([v({type:Object})],G.prototype,"appointment",void 0),t([v({type:String})],G.prototype,"token",void 0),t([v({type:Boolean,attribute:"can-reconnect"})],G.prototype,"canReconnect",void 0),t([q({context:k})],G.prototype,"loginToken",void 0),G=t([o(),e("documentation-view")],G);
@@ -0,0 +1 @@
1
+ import{s as e}from"./runtime-Bg1WXVCx.js";const a={s0043fc30b467bc43:"Hide details",s00c8bf60a179e056:"Google Pay is not available. Try card or another payment method.",s035706a468d0c40b:"Friday",s0520ac0a7da193d4:"We couldn't validate the code. Please try again.",s071bd6bbf6c08f34:"Loading",s08404262212123ef:"How can I help you?",s08fe5307b5987c42:"De",s08fe5907b5988674:"Do",s09165307b5ad0e23:"Mi",s09165b07b5ad1bbb:"Ma",s09195307b5af43fa:"Lu",s092e4f07b5c19938:"Ju",s093b3307b5cbf400:"Vi",s09462f07b5d5f4b9:"Sa",s09528d5c26b62213:"Thursday",s0aaec824f7c6b501:"Send message",s0b0085a15991b134:"Reconnecting...",s0b0955208f737a86:"The file exceeds the maximum size allowed",s0eb69642cbc19745:"This appointment has already passed, so it can no longer be modified.",s0fc7c4bfd185800d:"Your prescriptions and medical reports will appear here.",s0fcbdef9dc977231:"An error occurred while loading the page. Please try again or contact support.",s11605fc03de64e14:"Write here...",s12f171594a5379d2:"Are you sure you want to cancel this appointment?",s132e84f499a23985:"No slots available currently",s13317a76a9ed776e:"Repeat",s142eba34d93fe59e:"Description",s1513f3687bfcac96:"Sunday",s1a0efa6ac51e8a85:"Previous page",s1a874fc38d0fcef0:"Medical order",s1d318e9d0ccba86b:"Chat",s1ee6d7e6d04932a4:"The email is not valid",s1fe8bb7f6ae07f9b:"You have no appointments in the history",s219b833c5ca095b3:"Here you will see all the appointments you have had. You can access the documents of each consultation and reschedule an appointment if necessary.",s22cf91a84fba4c4e:"When you schedule an appointment, it will appear here so you can consult it, modify it or cancel it.",s255bf4de23c83482:"Booking conditions:",s256189bafbcd2e34:"The phone is not valid",s27e462e9f48eb3a6:"Documentation",s2a1d212b3cb5c1a1:"You can chat with your professional up to 48 hours after your appointment",s2aa2c19d07591438:"You will receive a reminder 15 minutes before the appointment",s2aab27b26a86469f:"Consultation reason",s2b9fde9a5739d2a0:"Name",s2bb20b2162a18938:"Why do you need the consultation?",s2d6183fa992e10e9:"This professional has no available time slots",s2ebd846b5a30f9d1:"We're sorry, we couldn't repeat your appointment. Please contact support.",s30c9095a2e07d929:"Waiting room",s31219c9bdeb7bc3e:"Continue",s337e34cd11150eb6:"View my appointments",s346d488070fe4cc8:"Request appointment",s3944638e633d719a:"Consultation",s3b77baf6a4864231:"Unknown error",s3bd87e3e21b07900:"Wait while the connection is restored",s3dc6584e403858df:"We could not load your documents",s3f55bc3bfec41a5d:"Attach files",s4177fe7f5d70fd33:"Back",s41826ac201c3cd85:"Could not open the support chat",s4364d4be7641e15f:"Confirm appointment",s43e5edcc8801e9a4:"Professional profile",s4813ee5d305442e5:"It seems we couldn't find you at the time of your appointment. You can schedule another consultation to resolve your questions.",s49683919cdaeca83:"Today",s4a061033615c8016:"Documents",s4a8494821c987a17:"Report",s4a8f1fcd3f5e5952:"It's not time yet!",s4d20157b5a655e70:"This time slot is not available. Please select another.",s4de424f531892818:"Go to videocall",s51c461d40f9fb865:"Select your specialist",s536a0b4d3d4a5d9f:"We could not load your next appointment",s53d957dda6cc200b:"Service and platform provided by",s53e2497bf900c7fd:"You have no upcoming appointments",s5558a2e389d04223:"Modify",s55c5126e99bae190:"Search availability",s563dcbfd432eb18f:"Cancel appointment",s57e65113a89160cf:"Appointment modality",s59612eaa6993aa7e:e`${0} minutes`,s5eef402d73eecbdc:"Attach file",s5f7956aacb5c6ca2:"Checking Google Pay…",s5f817b8841b188d2:"More options",s631f73a10d156b22:"Consultation expired",s63f7af84683dd7c3:"This appointment cannot be modified or cancelled: the minimum time required before the start has passed.",s643155d1b6ee1684:"Try again in a few minutes.",s64b78a5026d4ce8d:"No available schedules",s65bedc0e516977d9:"Saturday",s679be6312356a21c:"Schedule a medical consultation when you need it. Here you will see all the details and you can manage your upcoming appointments.",s67f30f9f4ea881f3:"This code is not valid.",s6a50fd7f52263b04:"Could not return to the waiting room",s6ab6fcd87fdbf217:"Hello",s6b1c4fb634461e7c:"Previous month",s6b6fa877ec1e6968:"Chat with the professional",s6c81d42670932f93:"Update",s6e2423db05f36856:"Appointment request",s6ecdc22accc55af7:"Videocall",s70258a0040dd9e19:"Return to the waiting room",s718177442a7447b2:"Appointment with an expert in less than 72 hours",s733b3bf647b7b0fa:"Accept camera and microphone permissions",s73cad78d8a3c39c2:"Prescription",s74d7a739b6ab651d:"History",s757fef148e0c94c6:"Availability",s77320b73fdd9cc40:"Leave",s775370fdb0af1546:"Birth date",s77c2b712a9813175:"Request a new appointment",s77f8e4bee88d44aa:e`${0} of ${1}`,s7907902da8916212:"The professional will call you at the number you indicate in this field.",s7aa3cd94d51825fc:"There are no professionals available for the selected specialty. Please try again later or select another specialty.",s7af26e861bb6f905:"Google Pay gateway merchant identifier is missing",s7fd8da9511b66dd4:"You can attach images or additional documentation (analyses, test results, etc.) for the doctor to evaluate",s83c6ce869a2bbaa7:"(1 is very bad, 5 is excellent)",s8447efe79d058943:"Amount paid",s8581adc786786298:"File format not supported",s862ca980b16911d0:"Chat with the professional",s8c18dbf02590a72e:"Promo code applied",s8cce15c931017937:"Back to home",s8e7a6119525dc7c9:e`Sorry, since there are less than ${0} minutes until your appointment, we can't modify it.`,s9005845c358db9da:"We couldn't download the document.",s92f34d487d1d0355:"Promotion",s94626d2ffd70f075:"Promo code applied successfully",s9536695467bcf9c4:"This appointment has already passed, so it can no longer be cancelled.",s96474eac63a69381:"Go to chat",s96ceb408923a7ab1:e`No. COL. ${0}`,s979ee14368bf1505:"Chat with me",s9802dd10b2c2f760:"Send",s99898f495319cd49:"This message was deleted",s9c309154722f8e06:"Loading payment portal",s9cabdaf42f04afee:"Enter the code",s9cbf16425cadadb1:"Please try again later.",s9d22fa67943fdc4c:"Phone consultation",sa00e726e1e7e46a9:"Add promo code",sa27f38ad9db3bc4f:"Commercial advisor",sa2fe3f3b565f15f4:"Cancel",sa4186d5e26cab4bb:"Page not found",sa497ebaaeb251035:"Repeat appointment",sa7de4334479674c6:"Modify appointment",sa82bc40dafbe3256:e`Scheduled appointment for ${0}`,sa83d79734eb60ee3:"Apply",sa86d729f62b39f99:"Join the videocall",sa87d2c48a52b2617:"You don't have documentation",sab964c37a0934399:"Google Pay could not be loaded. Check the site configuration and try again.",sac2728ace11e5f4b:"Specialty*",sadc5ede25dd6e126:"The professional will send you a message to coordinate the appointment. Make sure you have good coverage and can attend at the chosen time.",sae8f7ac5552b2af1:"When there are 10 minutes left for your consultation, you can access the videoconference",saf63dc4c8601ec8c:"a",safe333e385f371ff:"Verifying your payment...",saff3019e8a8c5f98:"Monday",sb01184796ad3832e:"How did your appointment go?",sb410a3509b92a90c:"Any comments about the appointment?",sb49dc4c5edae9d4e:"Consultation rating",sb5387e21dc21422b:"Modified appointment",sb621415007181c43:"Next month",sb73394814d122852:"If your doctor has generated any documentation, you can see and download it here, from the documentation section, your email or the chat.",sb882f28c9b20052e:"Confirmed appointment",sba98cf8b2a7dfca4:"Yesterday",sbbee712c4900abc2:"We couldn't start the payment",sbc0be90393c87447:e`Summary of the appointment for ${0}`,sbcf081de432a2172:"View details",sbcfc05bdb868b383:"Prescription",sbd07d1f779e482ae:"We couldn't confirm your payment",sbd9803cceb34513a:"Start chat with commercial advisor",sbda1cf7b293e17d2:"Upload file",sc27e7c4850fc5a34:e`Sorry, since there are less than ${0} hours until your appointment, we can't cancel it.`,sc3bb7ea72886e4d0:"Recent documents",sc3c7734c15d2a045:"Share how the care was or whether you had any issues with the video call…",sc43929cc6582a185:"View full calendar",sc4edf6a4e0157d4e:"Upcoming appointments",sc7cf2be40c8614fa:e`Sorry, since there are less than ${0} minutes until your appointment, we can't cancel it.`,sca0e87aae6bde276:"Did something go wrong?",sca4bd395e3148194:"Confirm cancellation",sca90bc30758f9082:"The page you are looking for has been removed, renamed, or may not exist.",scbe4c6673872bda5:"Phone",sce29e337ebd75277:"Support chat",scf469737e1670fd4:"Next page",scfc7f5c5f41936dc:"My appointments",sd1f44f1a8bc20e67:"Email",sd24922a2783f286e:"Wednesday",sd2a8fc66c53c1a27:"Skip",sd3f7579076c6611c:"It seems you have denied the necessary permissions to enter the videocall. Edit the permissions in your browser to enter. Once granted, you must refresh this screen.",sd4beaeb9a1b1fed5:"Previous dates",sd812eb30f385776d:"Complete your profile",sd853d3bcf5341b59:"See more",sda962b28e9110c82:"Search in your medical digital profile",sdb7004e477873574:"Consultation cancelled successfully",sdd963b1b2ce9a1f5:e`The professional will call you at ${0} at the selected time. Make sure you have good coverage and can attend at the chosen time.`,sde993da26c048f19:"Traumatology, gynecology, endocrinology, digestive or psychiatry",sdee32ae81ca0d6d8:"Add to calendar",se00b081edccfae39:"Next dates",se07ea9607704c5ad:"Change code",se090f7226b372a4a:"If the appointment couldn't take place, you can",se0c7cc77f86aa8a0:"Last name",se17f2b402ecea2e1:"Amount to refund",se18fa3ef98e155de:"Preparing Google Pay…",se1cce5af3e9bb6ee:"An error occurred while uploading the file",se1cf783f86c53031:"Tuesday",se45e6f6f3428ad50:e`Link to the consultation: ${0}`,se5a09223256f98db:"This field is required",se5f9264155b99909:"An error occurred while verifying your payment status. Please contact support if the charge has been made.",se92e438da4e7099f:e`Sorry, since there are less than ${0} hours until your appointment, we can't modify it.`,sea11fd8a12559bc5:"Previous appointment:",seb6739450e8d9c8d:"Are you sure you want to cancel this appointment? You will receive the amount paid within 5-10 business days.",seb850e89f9ff58e8:"Next appointment",sed750da423170d47:"Results for:",sed836a96c3b5d523:"Payment portal",sed8ec5e3c64fa25d:"Total",sed97e90642983578:"Continue to payment",sedb2092dda465ea1:"DNI/NIE",sedbca9676f07a51f:"Appointment modality*",see7c0a7b5b6ebbc5:"Use the chat to send the consultation reason, documents or images",sefc0dd68776c9466:"Pre-consultation questionnaire",sf0638d3fc50964d2:"Choose another date",sf0695a0a125ae748:"Confirm",sf09d5e51b63f2b7d:"Pay with Google Pay",sf199b210440b7c5f:"Consultation finished",sf3457daf057bff15:"return to the waiting room.",sf484a0e20a7829ac:"We will send you an email when it is time to connect to the videocall. Make sure you have good internet connection and a device with a camera and microphone.",sf48d12e7ae207023:"Specialty",sf5258cfb2fa10bdc:"Wait for your treatment without leaving this screen",sf63a72ff4116c6a9:"Download document",sf9705e1c4e82c017:"Could not submit the questionnaire",sfa6bc28a7faedc92:"New digital specialties appointment",sfac5734d03595135:"View all",sfc63af0362cfb78b:"Google Pay merchant identifier is missing",sfd51ca4e1b145054:"Could not reserve this time slot. Please select another.",sff337500b69abf7f:"The doctor is finishing your consultation. Update in a few minutes to see if you have documentation.",sffbc330c8a19f838:"See less",sc6a6d42245892254:"Falta el identificador de comercio de Apple Pay",s3da77e69fe62cb2a:"No se ha podido cargar Apple Pay. Comprueba la configuración del sitio e inténtalo de nuevo.",se1dd5d211b5b00e4:"Apple Pay no está disponible",s7e8b7a5acbdf83ed:"Preparando Apple Pay…",sc8271ba819299b59:"Comprobando Apple Pay…",s57e95bc3afddfeb0:"Para pagar con Apple Pay, escanea el código QR con tu iPhone (iOS 18 o posterior) y confirma el pago.",sf32cd04f9a848ee2:"Pagar con Apple Pay",s6a796114fe45025d:e`${0}, ${1} h${2}`,s35d601992fe66fed:"Confirmando tu pago",s5370521b92483bf3:"No cierres, vuelvas atrás ni actualices la ventana; esto puede tardar unos momentos.",s77bf41039c589159:"Tu pago no se ha completado",s0e850d0fec6daf7d:"El pago ha sido rechazado y no hemos creado la cita. No se te ha cobrado nada: puedes volver a reservar desde el inicio.",s4007fa55a28f1f73:"Ese horario ya no está disponible",s0089e78f42dfd1a4:"Otro paciente ha reservado esa cita mientras completabas el pago, así que no hemos podido crearla.",saeefd0d6fb204a80:"Te hemos devuelto el importe automáticamente; puede tardar unos días en reflejarse en tu cuenta.",se478d6710916dadf:"No hemos podido devolverte el importe automáticamente. Escríbenos y lo resolvemos:",sf9e6fbadcce256d0:"Ha ocurrido un error",sa24acad3b1338788:"No hemos podido confirmar tu pago. Por favor, inténtalo de nuevo más tarde.",s8bbbd679ddb50d3b:"Si se te ha cobrado sin una cita confirmada, contacta con nuestro equipo en",s67ebdb57fc6ed724:"Confirmar y pagar",sf75ec3d5bb6b65ab:"Método de pago",s0ef2d611972d04af:"Selecciona un método para realizar el pago de la cita",s0569fb3d65e68486:"Tarjeta",sa8771906f4c82494:"Google pay",se2570afbd791e071:"Apple pay",s3a392bf1aa5a8813:"No se puede iniciar Google Pay",sc9c8fbf418b784ac:"No se puede iniciar Apple Pay",s55e29f17a7ab0b80:"Esperando confirmación de Google Pay",s8ff9b86afd460a55:"Esperando confirmación de Apple Pay",s5b8873ddba610f68:"Abrir Google Pay",s9506fb9bc66942ed:"Abrir Apple Pay",s6db69fd67f48404c:"Abrir ventana de Google Pay",s6911c9ad386cc8b9:"Abrir ventana de Apple Pay",s4a9be42496525265:"Volver a abrir Google Pay",s3356a53ef97dcfba:"Volver a abrir Apple Pay",s9ca719e1a40e96e3:"Faltan credenciales de pago. Vuelve atrás e inténtalo de nuevo, o paga con tarjeta.",s0f6deacf5441e291:"Elegir otro método",s275336b3d23d6d9c:"No cierres esta página.",s1dec877628213eef:"Tus citas",se0c593aac5e172e6:"Accede, modifica o anula tus citas.",s230b0bee447e61a5:"Ver mis citas"};export{a as templates};
@@ -1,7 +1,7 @@
1
1
  import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement, PropertyValues } from 'lit';
4
- import { M as MediquoApiChatClient } from './index.d-XSe7Hy-Q.js';
4
+ import { M as MediquoApiChatClient } from './index.d-DeJP_xib.js';
5
5
  import '../ui/mq-checkbox.js';
6
6
  import '../ui/mq-button.js';
7
7
  import { Env } from '../env.js';
@@ -1 +1 @@
1
- import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{e as i}from"./provide-BwI4DDGF.js";import{c as o}from"./consume-CovVqBjI.js";import{A as n}from"./api-client-context-V1UAGtKW.js";import{i as a,a as s,x as r}from"./lit-element-DiWJYFwC.js";import{n as l}from"./property-scuRaFcM.js";import{r as h}from"./state-LQivXIgA.js";import"../ui/mq-checkbox.js";import"../ui/mq-button.js";import{M as c}from"./mutation-controller-CR2qcqhH.js";import{setEnv as d}from"../env.js";import{c as m,n as p}from"./api-chat-client-5LVJAeLW.js";const g=a`.page-header{box-sizing:border-box;width:100%;display:none}.page-title{font-family:var(--font-body);font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default)}.page-title ::slotted(*){margin:0;margin-bottom:var(--sp-2);font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.page-subtitle{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-subtle)}.page-subtitle ::slotted(*){margin:0;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.terms-section{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--sp-6);background-color:var(--color-neutrals-background-weak);padding:var(--sp-6);border-radius:var(--border-radius-md)}.terms-title{font-family:var(--font-titles);font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default)}.terms-title ::slotted(*){margin:0;margin-bottom:var(--sp-2);font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.terms-description{font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default)}.terms-description ::slotted(*){margin:0;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.checkbox-container{display:flex;gap:var(--sp-3);align-items:flex-start;cursor:pointer}.checkbox-label{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default);flex:1}@media (min-width:768px){.page-header{display:block;margin-bottom:var(--sp-10)}.page-title{font-size:var(--text-3xl);line-height:var(--text-3xl--line-height)}.page-title ::slotted(*){font-size:inherit;line-height:inherit}.page-subtitle{font-size:var(--text-base);line-height:var(--text-base--line-height)}.page-subtitle ::slotted(*){font-size:inherit;line-height:inherit}.terms-title{font-size:var(--text-2xl);line-height:var(--text-2xl--line-height)}.terms-title ::slotted(*){font-size:inherit;line-height:inherit}.terms-description{font-size:var(--text-base);line-height:var(--text-base--line-height)}.terms-description ::slotted(*){font-size:inherit;line-height:inherit}.checkbox-label{font-size:var(--text-base);line-height:var(--text-base--line-height)}}`;let v=class MqTermsAndConditions extends s{constructor(){super(...arguments),this.disabled=!1,this.hasCommercialCommunications=!1,this._accepted=!1,this.apiClient=m(),this.acceptLegalConsentMutation=new c(this,{mutationFn:async t=>this.apiClient.profile.acceptLegalConsent(t),onSuccess:()=>{this.dispatchEvent(new CustomEvent("continue"))}})}static{this.styles=g}willUpdate(t){t.has("env")&&this.env&&d(this.env);const e=p(t,{env:this.env,apiKey:this.apiKey,token:this.token},this.inheritedApiClient);e&&(this.apiClient=e)}handleCheckboxChange(t){this._accepted=t.detail.checked}handleContinue(){this._accepted&&!this.disabled&&this.acceptLegalConsentMutation.run({terms_accepted:!0,privacy_accepted:!0,commercial_accepted:this.hasCommercialCommunications})}render(){const t=!this._accepted||this.disabled;return r`<div class="page-header"><div class="page-title"><slot name="page-title"></slot></div><div class="page-subtitle"><slot name="page-subtitle"></slot></div></div><div class="terms-section"><div><div class="terms-title"><slot name="terms-title"></slot></div><div class="terms-description"><slot name="terms-description"></slot></div></div><div class="checkbox-container"><mq-checkbox id="terms-checkbox" @change="${this.handleCheckboxChange}" ?disabled="${this.disabled}"></mq-checkbox><label class="checkbox-label" for="terms-checkbox"><slot name="checkbox-label"></slot></label></div><mq-button variant="primary" size="md" fullwidth ?disabled="${this.acceptLegalConsentMutation.isPending||t}" @click="${this.handleContinue}"><slot name="button-text"></slot></mq-button></div>`}};t([l({type:Boolean})],v.prototype,"disabled",void 0),t([l({type:Boolean})],v.prototype,"hasCommercialCommunications",void 0),t([l({type:String,attribute:"api-key"})],v.prototype,"apiKey",void 0),t([l({type:String,attribute:"token"})],v.prototype,"token",void 0),t([l({type:String,attribute:"env"})],v.prototype,"env",void 0),t([h()],v.prototype,"_accepted",void 0),t([o({context:n,subscribe:!0}),h()],v.prototype,"inheritedApiClient",void 0),t([i({context:n}),h()],v.prototype,"apiClient",void 0),v=t([e("mq-terms-and-conditions")],v);export{v as M};
1
+ import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{e as i}from"./provide-BwI4DDGF.js";import{c as o}from"./consume-CovVqBjI.js";import{A as n}from"./api-client-context-V1UAGtKW.js";import{i as a,a as s,x as r}from"./lit-element-DiWJYFwC.js";import{n as l}from"./property-scuRaFcM.js";import{r as h}from"./state-LQivXIgA.js";import"../ui/mq-checkbox.js";import"../ui/mq-button.js";import{M as c}from"./mutation-controller-CR2qcqhH.js";import{setEnv as d}from"../env.js";import{c as m,n as p}from"./api-chat-client-BhxUWldC.js";const g=a`.page-header{box-sizing:border-box;width:100%;display:none}.page-title{font-family:var(--font-body);font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default)}.page-title ::slotted(*){margin:0;margin-bottom:var(--sp-2);font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.page-subtitle{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-subtle)}.page-subtitle ::slotted(*){margin:0;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.terms-section{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--sp-6);background-color:var(--color-neutrals-background-weak);padding:var(--sp-6);border-radius:var(--border-radius-md)}.terms-title{font-family:var(--font-titles);font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default)}.terms-title ::slotted(*){margin:0;margin-bottom:var(--sp-2);font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.terms-description{font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default)}.terms-description ::slotted(*){margin:0;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.checkbox-container{display:flex;gap:var(--sp-3);align-items:flex-start;cursor:pointer}.checkbox-label{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default);flex:1}@media (min-width:768px){.page-header{display:block;margin-bottom:var(--sp-10)}.page-title{font-size:var(--text-3xl);line-height:var(--text-3xl--line-height)}.page-title ::slotted(*){font-size:inherit;line-height:inherit}.page-subtitle{font-size:var(--text-base);line-height:var(--text-base--line-height)}.page-subtitle ::slotted(*){font-size:inherit;line-height:inherit}.terms-title{font-size:var(--text-2xl);line-height:var(--text-2xl--line-height)}.terms-title ::slotted(*){font-size:inherit;line-height:inherit}.terms-description{font-size:var(--text-base);line-height:var(--text-base--line-height)}.terms-description ::slotted(*){font-size:inherit;line-height:inherit}.checkbox-label{font-size:var(--text-base);line-height:var(--text-base--line-height)}}`;let v=class MqTermsAndConditions extends s{constructor(){super(...arguments),this.disabled=!1,this.hasCommercialCommunications=!1,this._accepted=!1,this.apiClient=m(),this.acceptLegalConsentMutation=new c(this,{mutationFn:async t=>this.apiClient.profile.acceptLegalConsent(t),onSuccess:()=>{this.dispatchEvent(new CustomEvent("continue"))}})}static{this.styles=g}willUpdate(t){t.has("env")&&this.env&&d(this.env);const e=p(t,{env:this.env,apiKey:this.apiKey,token:this.token},this.inheritedApiClient);e&&(this.apiClient=e)}handleCheckboxChange(t){this._accepted=t.detail.checked}handleContinue(){this._accepted&&!this.disabled&&this.acceptLegalConsentMutation.run({terms_accepted:!0,privacy_accepted:!0,commercial_accepted:this.hasCommercialCommunications})}render(){const t=!this._accepted||this.disabled;return r`<div class="page-header"><div class="page-title"><slot name="page-title"></slot></div><div class="page-subtitle"><slot name="page-subtitle"></slot></div></div><div class="terms-section"><div><div class="terms-title"><slot name="terms-title"></slot></div><div class="terms-description"><slot name="terms-description"></slot></div></div><div class="checkbox-container"><mq-checkbox id="terms-checkbox" @change="${this.handleCheckboxChange}" ?disabled="${this.disabled}"></mq-checkbox><label class="checkbox-label" for="terms-checkbox"><slot name="checkbox-label"></slot></label></div><mq-button variant="primary" size="md" fullwidth ?disabled="${this.acceptLegalConsentMutation.isPending||t}" @click="${this.handleContinue}"><slot name="button-text"></slot></mq-button></div>`}};t([l({type:Boolean})],v.prototype,"disabled",void 0),t([l({type:Boolean})],v.prototype,"hasCommercialCommunications",void 0),t([l({type:String,attribute:"api-key"})],v.prototype,"apiKey",void 0),t([l({type:String,attribute:"token"})],v.prototype,"token",void 0),t([l({type:String,attribute:"env"})],v.prototype,"env",void 0),t([h()],v.prototype,"_accepted",void 0),t([o({context:n,subscribe:!0}),h()],v.prototype,"inheritedApiClient",void 0),t([i({context:n}),h()],v.prototype,"apiClient",void 0),v=t([e("mq-terms-and-conditions")],v);export{v as M};
@@ -1,7 +1,7 @@
1
1
  import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
- import { M as MediquoApiChatClient } from './index.d-XSe7Hy-Q.js';
4
+ import { M as MediquoApiChatClient } from './index.d-DeJP_xib.js';
5
5
  import '../ui/mq-button.js';
6
6
  import { D as DocumentType } from './document.model.d-DIzMiOmd.js';
7
7
 
@@ -2,7 +2,7 @@ import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
4
  import { D as DocumentType } from './document.model.d-DIzMiOmd.js';
5
- import { M as MediquoApiChatClient } from './index.d-XSe7Hy-Q.js';
5
+ import { M as MediquoApiChatClient } from './index.d-DeJP_xib.js';
6
6
  import '../ui/mq-button.js';
7
7
  import '../ui/mq-skeleton.js';
8
8
 
@@ -1 +1 @@
1
- import{s as t}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{_ as e,c as o}from"./custom-element-D2ziPxYE.js";import{t as i,d as r,a}from"./telemetry-client-DEIuDZfA.js";import{i as s,a as n,x as d,E as l}from"./lit-element-DiWJYFwC.js";import{n as c}from"./property-scuRaFcM.js";import{c as p}from"./consume-CovVqBjI.js";import{m}from"./runtime-Bg1WXVCx.js";import{l as h}from"./localized-decorator-BlOuLhym.js";import{A as f}from"./api-client-context-V1UAGtKW.js";import{D as u}from"./api-chat-client-5LVJAeLW.js";import{b as g}from"./blob-to-base64-CUL1trde.js";import{r as y}from"./state-LQivXIgA.js";import{DownloadFileEvent as v}from"../events.js";import{getLocale as w}from"../i18n.js";import{download02Icon as b}from"../ui/icons/download-02-icon.js";import"../ui/mq-button.js";import{toast as x}from"../ui/mq-toast.js";import"../ui/mq-skeleton.js";function k(e,o){return{queryKey:t(e,"patient-documents",o),queryFn:()=>e.flash.getPatientDocuments(o)}}const $=s`:host{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-1) 0;width:100%;min-width:0;box-sizing:border-box}.details{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;min-width:0}.tag{display:inline-flex;align-items:center;border-radius:var(--border-radius-sm);padding:var(--sp-1) var(--sp-2);font-family:var(--font-body);font-size:var(--text-xs);line-height:1.35;font-weight:var(--font-weight-normal)}.tag.prescription{background-color:var(--color-feedback--info-subtle,#eceefd);color:var(--color-feedback--info-text,#4a1ea7)}.tag.report{background-color:var(--color-feedback--warning-subtle,#ffebce);color:var(--color-feedback--warning-text,#8f4700)}.tag.diagnostic-test-prescription{background-color:var(--color-feedback--success-subtle,#e8f6ec);color:var(--color-feedback--success-text,#16653a)}.text{display:flex;flex-direction:column;gap:var(--sp-1);width:100%;min-width:0}.name{font-family:var(--font-body);font-size:var(--text-sm);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-text-icons--primary,#0a0a22);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{font-family:var(--font-body);font-size:var(--text-xs);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-text-icons--secondary,#6d658b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let j=class DocumentRow extends n{constructor(){super(...arguments),this.documentId="",this.name="",this.specialty="",this.date="",this.downloadUrl="",this.patientHash="",this.isDownloading=!1,this.handleDownload=async()=>{this.isDownloading=!0;try{i.track(r(this.patientHash,this.documentId));const t=await this.apiClient.flash.downloadDocument({url:this.downloadUrl}),e=await g(t);this.dispatchEvent(new v({url:e,filename:`${this.name}.pdf`}))}catch{x.error(m("No hemos podido descargar el documento."))}finally{this.isDownloading=!1}}}static{this.styles=$}formatDate(){const t=new Date(this.date);if(Number.isNaN(t.getTime()))return"";const e=w().replace("_","-");return new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"2-digit"}).format(t)}formatKind(){switch(this.kind){case u.prescription:return m("Receta");case u.report:return m("Informe");case u.diagnosticTestPrescription:return m("Orden médica")}}get kindClass(){return(this.kind??"").replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}get metaLine(){return[this.formatDate(),this.specialty].filter(Boolean).join(" - ")}render(){return d`<div class="details"><span class="tag ${this.kindClass}">${this.formatKind()}</span><div class="text"><span class="name" title="${this.name}">${this.name}</span> <span class="meta">${this.metaLine}</span></div></div><mq-button variant="outline" size="icon-lg" aria-label="${m("Descargar documento")}" ?disabled="${this.isDownloading}" @click="${this.handleDownload}">${b({size:24})}</mq-button>`}};function D(t,e,o){return t.map(t=>{const i=e?.find(e=>Number(e.id)===Number(t.professional.speciality_id));return{documentId:t.document_id,kind:t.document_type,name:t.name,specialty:a(i?.code??"",o,i?.name??t.professional.speciality_name),date:t.created_at,downloadUrl:t.url}})}e([p({context:f,subscribe:!0})],j.prototype,"apiClient",void 0),e([c({type:String})],j.prototype,"documentId",void 0),e([c({type:String})],j.prototype,"kind",void 0),e([c({type:String})],j.prototype,"name",void 0),e([c({type:String})],j.prototype,"specialty",void 0),e([c({type:String})],j.prototype,"date",void 0),e([c({type:String})],j.prototype,"downloadUrl",void 0),e([c({type:String})],j.prototype,"patientHash",void 0),e([y()],j.prototype,"isDownloading",void 0),j=e([h(),o("document-row")],j);const q=s`:host{display:flex;flex-direction:column;gap:var(--sp-3);width:100%;min-width:0;box-sizing:border-box}.divider{height:1px;width:100%;background-color:var(--color-border-subtle,#edecf1);flex-shrink:0}`;let z=class DocumentList extends n{constructor(){super(...arguments),this.documents=[],this.patientHash="",this.placeholders=0}static{this.styles=q}get rows(){return this.placeholders>0?Array.from({length:this.placeholders},()=>d`<mq-skeleton height="${"77px"}"></mq-skeleton>`):this.documents.map(t=>d`<document-row documentId="${t.documentId}" kind="${t.kind}" name="${t.name}" specialty="${t.specialty}" date="${t.date}" downloadUrl="${t.downloadUrl}" patientHash="${this.patientHash}"></document-row>`)}render(){const t=this.rows;return t.map((e,o)=>d`${e} ${o<t.length-1?d`<div class="divider"></div>`:l}`)}};e([c({type:Array})],z.prototype,"documents",void 0),e([c({type:String})],z.prototype,"patientHash",void 0),e([c({type:Number})],z.prototype,"placeholders",void 0),z=e([o("document-list")],z);export{k as g,D as t};
1
+ import{s as t}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{_ as e,c as o}from"./custom-element-D2ziPxYE.js";import{t as i,d as r,a}from"./telemetry-client-DEIuDZfA.js";import{i as s,a as n,x as d,E as l}from"./lit-element-DiWJYFwC.js";import{n as c}from"./property-scuRaFcM.js";import{c as p}from"./consume-CovVqBjI.js";import{m}from"./runtime-Bg1WXVCx.js";import{l as h}from"./localized-decorator-BlOuLhym.js";import{A as f}from"./api-client-context-V1UAGtKW.js";import{D as u}from"./api-chat-client-BhxUWldC.js";import{b as g}from"./blob-to-base64-CUL1trde.js";import{r as y}from"./state-LQivXIgA.js";import{DownloadFileEvent as v}from"../events.js";import{getLocale as w}from"../i18n.js";import{download02Icon as b}from"../ui/icons/download-02-icon.js";import"../ui/mq-button.js";import{toast as x}from"../ui/mq-toast.js";import"../ui/mq-skeleton.js";function k(e,o){return{queryKey:t(e,"patient-documents",o),queryFn:()=>e.flash.getPatientDocuments(o)}}const $=s`:host{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-1) 0;width:100%;min-width:0;box-sizing:border-box}.details{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;min-width:0}.tag{display:inline-flex;align-items:center;border-radius:var(--border-radius-sm);padding:var(--sp-1) var(--sp-2);font-family:var(--font-body);font-size:var(--text-xs);line-height:1.35;font-weight:var(--font-weight-normal)}.tag.prescription{background-color:var(--color-feedback--info-subtle,#eceefd);color:var(--color-feedback--info-text,#4a1ea7)}.tag.report{background-color:var(--color-feedback--warning-subtle,#ffebce);color:var(--color-feedback--warning-text,#8f4700)}.tag.diagnostic-test-prescription{background-color:var(--color-feedback--success-subtle,#e8f6ec);color:var(--color-feedback--success-text,#16653a)}.text{display:flex;flex-direction:column;gap:var(--sp-1);width:100%;min-width:0}.name{font-family:var(--font-body);font-size:var(--text-sm);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-text-icons--primary,#0a0a22);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{font-family:var(--font-body);font-size:var(--text-xs);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-text-icons--secondary,#6d658b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let j=class DocumentRow extends n{constructor(){super(...arguments),this.documentId="",this.name="",this.specialty="",this.date="",this.downloadUrl="",this.patientHash="",this.isDownloading=!1,this.handleDownload=async()=>{this.isDownloading=!0;try{i.track(r(this.patientHash,this.documentId));const t=await this.apiClient.flash.downloadDocument({url:this.downloadUrl}),e=await g(t);this.dispatchEvent(new v({url:e,filename:`${this.name}.pdf`}))}catch{x.error(m("No hemos podido descargar el documento."))}finally{this.isDownloading=!1}}}static{this.styles=$}formatDate(){const t=new Date(this.date);if(Number.isNaN(t.getTime()))return"";const e=w().replace("_","-");return new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"2-digit"}).format(t)}formatKind(){switch(this.kind){case u.prescription:return m("Receta");case u.report:return m("Informe");case u.diagnosticTestPrescription:return m("Orden médica")}}get kindClass(){return(this.kind??"").replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}get metaLine(){return[this.formatDate(),this.specialty].filter(Boolean).join(" - ")}render(){return d`<div class="details"><span class="tag ${this.kindClass}">${this.formatKind()}</span><div class="text"><span class="name" title="${this.name}">${this.name}</span> <span class="meta">${this.metaLine}</span></div></div><mq-button variant="outline" size="icon-lg" aria-label="${m("Descargar documento")}" ?disabled="${this.isDownloading}" @click="${this.handleDownload}">${b({size:24})}</mq-button>`}};function D(t,e,o){return t.map(t=>{const i=e?.find(e=>Number(e.id)===Number(t.professional.speciality_id));return{documentId:t.document_id,kind:t.document_type,name:t.name,specialty:a(i?.code??"",o,i?.name??t.professional.speciality_name),date:t.created_at,downloadUrl:t.url}})}e([p({context:f,subscribe:!0})],j.prototype,"apiClient",void 0),e([c({type:String})],j.prototype,"documentId",void 0),e([c({type:String})],j.prototype,"kind",void 0),e([c({type:String})],j.prototype,"name",void 0),e([c({type:String})],j.prototype,"specialty",void 0),e([c({type:String})],j.prototype,"date",void 0),e([c({type:String})],j.prototype,"downloadUrl",void 0),e([c({type:String})],j.prototype,"patientHash",void 0),e([y()],j.prototype,"isDownloading",void 0),j=e([h(),o("document-row")],j);const q=s`:host{display:flex;flex-direction:column;gap:var(--sp-3);width:100%;min-width:0;box-sizing:border-box}.divider{height:1px;width:100%;background-color:var(--color-border-subtle,#edecf1);flex-shrink:0}`;let z=class DocumentList extends n{constructor(){super(...arguments),this.documents=[],this.patientHash="",this.placeholders=0}static{this.styles=q}get rows(){return this.placeholders>0?Array.from({length:this.placeholders},()=>d`<mq-skeleton height="${"77px"}"></mq-skeleton>`):this.documents.map(t=>d`<document-row documentId="${t.documentId}" kind="${t.kind}" name="${t.name}" specialty="${t.specialty}" date="${t.date}" downloadUrl="${t.downloadUrl}" patientHash="${this.patientHash}"></document-row>`)}render(){const t=this.rows;return t.map((e,o)=>d`${e} ${o<t.length-1?d`<div class="divider"></div>`:l}`)}};e([c({type:Array})],z.prototype,"documents",void 0),e([c({type:String})],z.prototype,"patientHash",void 0),e([c({type:Number})],z.prototype,"placeholders",void 0),z=e([o("document-list")],z);export{k as g,D as t};
@@ -1220,7 +1220,6 @@ type GetOrganizationSetupResponse = z$1.infer<typeof GetOrganizationSetupRespons
1220
1220
  declare const CreatePaymentLinkRequestSchema: z.ZodObject<{
1221
1221
  slot_id: z.ZodString;
1222
1222
  service_id: z.ZodString;
1223
- /** ID of the medical specialty the booking belongs to. */
1224
1223
  specialty_id: z.ZodString;
1225
1224
  consultation_reason: z.ZodOptional<z.ZodString>;
1226
1225
  preconsultation_documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1233,7 +1232,6 @@ declare const CreatePaymentLinkRequestSchema: z.ZodObject<{
1233
1232
  file_path: string;
1234
1233
  file_name: string;
1235
1234
  }>, "many">>;
1236
- /** Discount coupon code applied to the booking, if any. */
1237
1235
  discount_code: z.ZodOptional<z.ZodString>;
1238
1236
  return_url: z.ZodOptional<z.ZodString>;
1239
1237
  }, "strip", z.ZodTypeAny, {
@@ -1278,7 +1276,6 @@ declare const GetConsultationCouponResponseSchema: z.ZodObject<{
1278
1276
  }>;
1279
1277
  type GetConsultationCouponResponse = z.infer<typeof GetConsultationCouponResponseSchema>;
1280
1278
  /**
1281
- * Coupon applied to a booked appointment, for the confirmation view.
1282
1279
  * `GET /payments/v1/appointment/{appointmentId}/consultation-coupon`; 404 when
1283
1280
  * the appointment has no coupon. `name` is optional, so the UI falls back to `code`.
1284
1281
  */
@@ -1321,10 +1318,6 @@ declare const CreatePaymentLinkResponseSchema: z.ZodObject<{
1321
1318
  provider?: "addon" | "stripe" | undefined;
1322
1319
  }>;
1323
1320
  type CreatePaymentLinkResponse = z.infer<typeof CreatePaymentLinkResponseSchema>;
1324
- /**
1325
- * Request for `POST /payments/v1/immediate-videocall`. Addon Payments only; no
1326
- * coupons, slot or service apply — just the videocall schedule to charge for.
1327
- */
1328
1321
  declare const CreateImmediateVideocallPaymentLinkRequestSchema: z.ZodObject<{
1329
1322
  video_call_schedule_id: z.ZodString;
1330
1323
  }, "strip", z.ZodTypeAny, {
@@ -1333,11 +1326,6 @@ declare const CreateImmediateVideocallPaymentLinkRequestSchema: z.ZodObject<{
1333
1326
  video_call_schedule_id: string;
1334
1327
  }>;
1335
1328
  type CreateImmediateVideocallPaymentLinkRequest = z.infer<typeof CreateImmediateVideocallPaymentLinkRequestSchema>;
1336
- /**
1337
- * Response for `POST /payments/v1/immediate-videocall`. Same `{ session_id,
1338
- * payment_link }` shape as `POST /payments/v1/schedule`, so the `mq-checkout`
1339
- * polling of `GET /payments/v1/session/{sessionId}` and iframe work unchanged.
1340
- */
1341
1329
  declare const CreateImmediateVideocallPaymentLinkResponseSchema: z.ZodObject<{
1342
1330
  session_id: z.ZodString;
1343
1331
  payment_link: z.ZodString;
@@ -1385,15 +1373,16 @@ declare const GetPaymentSessionResponseSchema: z.ZodObject<{
1385
1373
  readonly Paid: "paid";
1386
1374
  readonly Unpaid: "unpaid";
1387
1375
  readonly Denied: "denied";
1376
+ readonly Refunded: "refunded";
1388
1377
  }>;
1389
1378
  consultation_id: z.ZodString;
1390
1379
  consultation_type: z.ZodString;
1391
1380
  }, "strip", z.ZodTypeAny, {
1392
- status: "unpaid" | "paid" | "denied";
1381
+ status: "unpaid" | "paid" | "denied" | "refunded";
1393
1382
  consultation_id: string;
1394
1383
  consultation_type: string;
1395
1384
  }, {
1396
- status: "unpaid" | "paid" | "denied";
1385
+ status: "unpaid" | "paid" | "denied" | "refunded";
1397
1386
  consultation_id: string;
1398
1387
  consultation_type: string;
1399
1388
  }>;
@@ -1430,27 +1419,28 @@ declare const AuthorizeApplePayResponseSchema: z.ZodObject<{
1430
1419
  readonly Paid: "paid";
1431
1420
  readonly Unpaid: "unpaid";
1432
1421
  readonly Denied: "denied";
1422
+ readonly Refunded: "refunded";
1433
1423
  }>;
1434
1424
  consultation_id: z.ZodString;
1435
1425
  consultation_type: z.ZodOptional<z.ZodString>;
1436
1426
  }, "strip", z.ZodTypeAny, {
1437
- status: "unpaid" | "paid" | "denied";
1427
+ status: "unpaid" | "paid" | "denied" | "refunded";
1438
1428
  consultation_id: string;
1439
1429
  consultation_type?: string | undefined;
1440
1430
  }, {
1441
- status: "unpaid" | "paid" | "denied";
1431
+ status: "unpaid" | "paid" | "denied" | "refunded";
1442
1432
  consultation_id: string;
1443
1433
  consultation_type?: string | undefined;
1444
1434
  }>;
1445
1435
  }, "strip", z.ZodTypeAny, {
1446
1436
  data: {
1447
- status: "unpaid" | "paid" | "denied";
1437
+ status: "unpaid" | "paid" | "denied" | "refunded";
1448
1438
  consultation_id: string;
1449
1439
  consultation_type?: string | undefined;
1450
1440
  };
1451
1441
  }, {
1452
1442
  data: {
1453
- status: "unpaid" | "paid" | "denied";
1443
+ status: "unpaid" | "paid" | "denied" | "refunded";
1454
1444
  consultation_id: string;
1455
1445
  consultation_type?: string | undefined;
1456
1446
  };
@@ -1474,27 +1464,28 @@ declare const AuthorizeGooglePayResponseSchema: z.ZodObject<{
1474
1464
  readonly Paid: "paid";
1475
1465
  readonly Unpaid: "unpaid";
1476
1466
  readonly Denied: "denied";
1467
+ readonly Refunded: "refunded";
1477
1468
  }>;
1478
1469
  consultation_id: z.ZodString;
1479
1470
  consultation_type: z.ZodOptional<z.ZodString>;
1480
1471
  }, "strip", z.ZodTypeAny, {
1481
- status: "unpaid" | "paid" | "denied";
1472
+ status: "unpaid" | "paid" | "denied" | "refunded";
1482
1473
  consultation_id: string;
1483
1474
  consultation_type?: string | undefined;
1484
1475
  }, {
1485
- status: "unpaid" | "paid" | "denied";
1476
+ status: "unpaid" | "paid" | "denied" | "refunded";
1486
1477
  consultation_id: string;
1487
1478
  consultation_type?: string | undefined;
1488
1479
  }>;
1489
1480
  }, "strip", z.ZodTypeAny, {
1490
1481
  data: {
1491
- status: "unpaid" | "paid" | "denied";
1482
+ status: "unpaid" | "paid" | "denied" | "refunded";
1492
1483
  consultation_id: string;
1493
1484
  consultation_type?: string | undefined;
1494
1485
  };
1495
1486
  }, {
1496
1487
  data: {
1497
- status: "unpaid" | "paid" | "denied";
1488
+ status: "unpaid" | "paid" | "denied" | "refunded";
1498
1489
  consultation_id: string;
1499
1490
  consultation_type?: string | undefined;
1500
1491
  };
@@ -1,7 +1,7 @@
1
1
  import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement, PropertyValues } from 'lit';
4
- import { M as MediquoApiChatClient, a as Message, I as ImageMessage, F as FileMessage } from './index.d-XSe7Hy-Q.js';
4
+ import { M as MediquoApiChatClient, a as Message, I as ImageMessage, F as FileMessage } from './index.d-DeJP_xib.js';
5
5
  import '../ui/mq-avatar.js';
6
6
  import '../ui/mq-button.js';
7
7
  import '../ui/mq-skeleton.js';
@@ -1 +1 @@
1
- import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{e as i}from"./provide-BwI4DDGF.js";import{c as o}from"./consume-CovVqBjI.js";import{m as n}from"./runtime-Bg1WXVCx.js";import{l as r}from"./localized-decorator-BlOuLhym.js";import{Q as s}from"./query-controller-BlO1Ax65.js";import{A as a}from"./api-client-context-V1UAGtKW.js";import{l as p}from"./chunk-S5RWG6G2-DPesx3Od.js";import{A as l,c as m,n as d}from"./api-chat-client-5LVJAeLW.js";import{g as c}from"./next-appointment-card-DxNzffoM.js";import{g as h}from"./get-patient-profile-query-4AO6xvVn.js";import{i as u,a as g,x as y}from"./lit-element-DiWJYFwC.js";import{n as f}from"./property-scuRaFcM.js";import{r as x}from"./state-LQivXIgA.js";import{setEnv as v}from"../env.js";import{MqViewAppointmentsEvent as b}from"../events.js";import{isValidLocale as j,setLocale as k}from"../i18n.js";import"./index-DEEAEB_4.js";import"./index-Bw-MbGKw.js";import"../ui/mq-skeleton.js";const w=[l.pending,l.accepted],A=u`:host{display:flex;flex-direction:column;gap:var(--sp-4);width:100%;min-width:0;box-sizing:border-box}:host([empty]){align-self:start}:host([empty]) .card{flex:0 0 auto}.card{display:flex;flex-direction:column;flex:1;min-width:0;box-sizing:border-box;background-color:var(--color-card,#fff);border:1px solid var(--color-border-subtle,#edecf1);border-radius:var(--mq-next-appointments-radius,12px);padding:var(--mq-next-appointments-padding,var(--sp-6))}`;let $=class MqNextAppointments extends g{constructor(){super(...arguments),this.apiClient=m(),this.getPatientProfileQuery=new s(this,()=>h(this.apiClient,{enabled:!this.loginToken})),this.getAppointmentsQuery=new s(this,()=>c(this.apiClient,{status:w,order:{field:"starts_at",direction:"asc"},page:1,per_page:1})),this.handleViewAll=()=>{this.dispatchEvent(new b({tab:"next"}))}}static{this.styles=A}willUpdate(t){t.has("env")&&this.env&&v(this.env),t.has("locale")&&this.locale&&j(this.locale)&&k(this.locale);const e=d(t,{env:this.env,apiKey:this.apiKey,token:this.token,locale:this.locale},this.inheritedApiClient);e&&(this.apiClient=e)}get patientHash(){return this.loginToken?.patient.hash??this.getPatientProfileQuery.result?.data?.hash??""}get accessToken(){return this.token||this.loginToken?.access_token||""}get patientTimezone(){return this.timezone??this.loginToken?.patient.timezone}get isEmpty(){const t=this.getAppointmentsQuery.result;return!0===t?.isSuccess&&!t.data?.data?.[0]}updated(){this.toggleAttribute("empty",this.isEmpty)}renderAppointment(){return this.getAppointmentsQuery.render({complete:t=>{const e=t.data?.[0];return e?y`<next-appointment-card .appointmentResource="${e}" .token="${this.accessToken}" .patientHash="${this.patientHash}" .timezone="${this.patientTimezone}"></next-appointment-card>`:y`<widget-empty-state icon="calendar" heading="${n("No tienes próximas citas")}" description="${n("Cuando agendes una cita, aparecerá aquí para que puedas consultarla, modificarla o cancelarla.")}"></widget-empty-state>`},pending:()=>y`<mq-skeleton height="257px"></mq-skeleton>`,error:()=>y`<widget-empty-state icon="calendar" heading="${n("No hemos podido cargar tu próxima cita")}" description="${n("Vuelve a intentarlo en unos minutos.")}"></widget-empty-state>`})}render(){return y`<section-header heading="${n("Próxima cita")}" action-label="${n("Ver todas")}" @section-action="${this.handleViewAll}"></section-header><div class="card">${this.renderAppointment()}</div>`}};t([f({type:String,attribute:"api-key"})],$.prototype,"apiKey",void 0),t([f({type:String,attribute:"token"})],$.prototype,"token",void 0),t([f({type:String,attribute:"locale"})],$.prototype,"locale",void 0),t([f({type:String,attribute:"env"})],$.prototype,"env",void 0),t([f({type:String,attribute:"timezone"})],$.prototype,"timezone",void 0),t([o({context:p,subscribe:!0})],$.prototype,"loginToken",void 0),t([o({context:a,subscribe:!0}),x()],$.prototype,"inheritedApiClient",void 0),t([i({context:a}),x()],$.prototype,"apiClient",void 0),$=t([r(),e("mq-next-appointments")],$);export{$ as M};
1
+ import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{e as i}from"./provide-BwI4DDGF.js";import{c as o}from"./consume-CovVqBjI.js";import{m as n}from"./runtime-Bg1WXVCx.js";import{l as r}from"./localized-decorator-BlOuLhym.js";import{Q as s}from"./query-controller-BlO1Ax65.js";import{A as a}from"./api-client-context-V1UAGtKW.js";import{l as p}from"./chunk-S5RWG6G2-DPesx3Od.js";import{A as l,c as m,n as d}from"./api-chat-client-BhxUWldC.js";import{g as c}from"./next-appointment-card-KXLkEJDg.js";import{g as h}from"./get-patient-profile-query-4AO6xvVn.js";import{i as u,a as g,x as y}from"./lit-element-DiWJYFwC.js";import{n as f}from"./property-scuRaFcM.js";import{r as x}from"./state-LQivXIgA.js";import{setEnv as v}from"../env.js";import{MqViewAppointmentsEvent as b}from"../events.js";import{isValidLocale as j,setLocale as k}from"../i18n.js";import"./index-DEEAEB_4.js";import"./index-Bw-MbGKw.js";import"../ui/mq-skeleton.js";const w=[l.pending,l.accepted],A=u`:host{display:flex;flex-direction:column;gap:var(--sp-4);width:100%;min-width:0;box-sizing:border-box}:host([empty]){align-self:start}:host([empty]) .card{flex:0 0 auto}.card{display:flex;flex-direction:column;flex:1;min-width:0;box-sizing:border-box;background-color:var(--color-card,#fff);border:1px solid var(--color-border-subtle,#edecf1);border-radius:var(--mq-next-appointments-radius,12px);padding:var(--mq-next-appointments-padding,var(--sp-6))}`;let $=class MqNextAppointments extends g{constructor(){super(...arguments),this.apiClient=m(),this.getPatientProfileQuery=new s(this,()=>h(this.apiClient,{enabled:!this.loginToken})),this.getAppointmentsQuery=new s(this,()=>c(this.apiClient,{status:w,order:{field:"starts_at",direction:"asc"},page:1,per_page:1})),this.handleViewAll=()=>{this.dispatchEvent(new b({tab:"next"}))}}static{this.styles=A}willUpdate(t){t.has("env")&&this.env&&v(this.env),t.has("locale")&&this.locale&&j(this.locale)&&k(this.locale);const e=d(t,{env:this.env,apiKey:this.apiKey,token:this.token,locale:this.locale},this.inheritedApiClient);e&&(this.apiClient=e)}get patientHash(){return this.loginToken?.patient.hash??this.getPatientProfileQuery.result?.data?.hash??""}get accessToken(){return this.token||this.loginToken?.access_token||""}get patientTimezone(){return this.timezone??this.loginToken?.patient.timezone}get isEmpty(){const t=this.getAppointmentsQuery.result;return!0===t?.isSuccess&&!t.data?.data?.[0]}updated(){this.toggleAttribute("empty",this.isEmpty)}renderAppointment(){return this.getAppointmentsQuery.render({complete:t=>{const e=t.data?.[0];return e?y`<next-appointment-card .appointmentResource="${e}" .token="${this.accessToken}" .patientHash="${this.patientHash}" .timezone="${this.patientTimezone}"></next-appointment-card>`:y`<widget-empty-state icon="calendar" heading="${n("No tienes próximas citas")}" description="${n("Cuando agendes una cita, aparecerá aquí para que puedas consultarla, modificarla o cancelarla.")}"></widget-empty-state>`},pending:()=>y`<mq-skeleton height="257px"></mq-skeleton>`,error:()=>y`<widget-empty-state icon="calendar" heading="${n("No hemos podido cargar tu próxima cita")}" description="${n("Vuelve a intentarlo en unos minutos.")}"></widget-empty-state>`})}render(){return y`<section-header heading="${n("Próxima cita")}" action-label="${n("Ver todas")}" @section-action="${this.handleViewAll}"></section-header><div class="card">${this.renderAppointment()}</div>`}};t([f({type:String,attribute:"api-key"})],$.prototype,"apiKey",void 0),t([f({type:String,attribute:"token"})],$.prototype,"token",void 0),t([f({type:String,attribute:"locale"})],$.prototype,"locale",void 0),t([f({type:String,attribute:"env"})],$.prototype,"env",void 0),t([f({type:String,attribute:"timezone"})],$.prototype,"timezone",void 0),t([o({context:p,subscribe:!0})],$.prototype,"loginToken",void 0),t([o({context:a,subscribe:!0}),x()],$.prototype,"inheritedApiClient",void 0),t([i({context:a}),x()],$.prototype,"apiClient",void 0),$=t([r(),e("mq-next-appointments")],$);export{$ as M};