1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[310],{2310:function(e,t,r){r.r(t);var n=r(4566),o=r(9151),i=r(4557),l=r(3140),a=r(1275);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){var n;return n=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m={background:"#fff",border:"1px solid #D3E7DD",borderRadius:12,boxShadow:"0 2px 8px rgba(183,202,193,0.25)",marginBottom:20},h={padding:"12px 20px",borderBottom:"1px solid #D3E7DD",fontWeight:700,fontSize:14,color:"#1F232D",background:"#EFF5F2",borderRadius:"12px 12px 0 0"},y={padding:"20px"};t.default=function(){var e=u((0,n.useState)(null),2),t=e[0],r=e[1],s=u((0,n.useState)(""),2),c=s[0],f=s[1],p=u((0,n.useState)([]),2),x=p[0],b=p[1],g=u((0,n.useState)(!0),2),j=g[0],v=g[1],S=(0,i.UO)().formId;return(0,n.useEffect)((function(){o.Z.get("/conversations/medical-info/".concat(S)).then((function(e){var t;r(e.data.form||{}),f((null===(t=e.data.history)||void 0===t?void 0:t.message)||""),b(e.data.files||[])})).catch(console.error).finally((function(){return v(!1)}))}),[S]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"inerpage-pagetitle",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"bannerpart",children:(0,a.jsx)("h1",{children:"Medical Information"})})})}),(0,a.jsx)("section",{className:"wrapper-section",children:(0,a.jsxs)("div",{className:"container py-4",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center gap-3 mb-4 flex-wrap",children:[(0,a.jsx)(l.rU,{to:"/getconversations/detail/".concat(S),style:{fontSize:13,color:"#2AD497",textDecoration:"none",fontWeight:600},children:"â Back to Conversation"}),(0,a.jsx)("span",{style:{color:"#dee2e6"},children:"|"}),(0,a.jsxs)("span",{style:{fontSize:13,color:"#6c757d"},children:["Ticket #",S," â Medical Info"]})]}),j&&(0,a.jsxs)("div",{className:"text-center py-5 text-muted",children:[(0,a.jsx)("div",{className:"spinner-border spinner-border-sm me-2",role:"status"}
1),"Loadingâ¦"]}),!j&&t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:m,children:[(0,a.jsx)("div",{style:h,children:"Patient Details"}),(0,a.jsx)("div",{style:y,children:(0,a.jsxs)("div",{className:"row g-3",children:[(0,a.jsxs)("div",{className:"col-sm-6 col-md-4",children:[(0,a.jsx)("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.5px",color:"#9ea3a8",marginBottom:4},children:"Name"}),(0,a.jsx)("div",{style:{fontSize:15,fontWeight:600,color:"#1F232D"},children:t.name||"â"})]}),(0,a.jsxs)("div",{className:"col-sm-6 col-md-4",children:[(0,a.jsx)("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.5px",color:"#9ea3a8",marginBottom:4},children:"Email"}),(0,a.jsx)("div",{style:{fontSize:15,color:"#1F232D"},children:(0,a.jsx)("a",{href:"mailto:".concat(t.email),style:{color:"#0d6efd",textDecoration:"none"},children:t.email||"â"})})]}),t.hear_from&&(0,a.jsxs)("div",{className:"col-sm-6 col-md-4",children:[(0,a.jsx)("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.5px",color:"#9ea3a8",marginBottom:4},children:"Referred by"}),(0,a.jsx)("div",{style:{fontSize:15,color:"#1F232D"},children:t.hear_from})]})]})})]}),c&&(0,a.jsxs)("div",{style:m,children:[(0,a.jsx)("div",{style:h,children:"Patient's Initial Question"}),(0,a.jsx)("div",{style:d(d({},y),{},{fontSize:14.5,lineHeight:1.7}),className:"conversation-bubble-body",dangerouslySetInnerHTML:{__html:c}})]}),x.length>0&&(0,a.jsxs)("div",{style:m,children:[(0,a.jsxs)("div",{style:h,children:["Attachments",(0,a.jsx)("span",{style:{marginLeft:8,background:"#D3E7DD",color:"#0a3622",borderRadius:10,padding:"1px 8px",fontSize:12},children:x.length})]}),(0,a.jsx)("div",{style:y,children:(0,a.jsx)("div",{className:"row g-3",children:x.map((function(e,t){return r=e.name,/\.(jpg|jpeg|png|gif|webp)$/i.test(r)?(0,a.jsx)("div",{className:"col-6 col-sm-4 col-md-3",children:(0,a.jsxs)("a",{href:"/".concat(e.path),target:"_blank",rel:"noreferrer",style:{display:"block",textDecoration:"none"},children:[(0,a.jsx)("img",{src:"/".concat(e.path),alt:e.name,style:{width:"100%",aspectRatio:"1",objectFit:"cover",borderRadius:8,border:"1px solid #D3E7DD"}}),(0,a.jsx)("div",{style:{fontSize:12,color:"#6c757d",marginTop:5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name})]})},t):(0,a.jsx)("div",{className:"col-12 col-sm-6 col-md-4",children:(0,a.jsxs)("a",{href:"/".concat(e.path),target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center",gap:10,padding:"12px 16px",border:"1px solid #D3E7DD",borderRadius:8,textDecoration:"none",color:"#1F232D",background:"#EFF5F2",transition:"background 0.2s"},onMouseEnter:function(e){return e.currentTarget.style.background="#D3E7DD"},onMouseLeave:function(e){return e.currentTarget.style.background="#EFF5F2"},children:[(0,a.jsx)("span",{style:{fontSize:22},children:"ð"}),(0,a.jsx)("span",{style:{fontSize:13,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name})]})},t);var r}))})})]}),0===x.length&&(0,a.jsx)("div",{style:d(d({},m),y),children:(0,a.jsx)("p",{className:"text-muted mb-0",style:{fontSize:14},children:"No attachments uploaded for this ticket."})})]})]})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.