PageSourceSearch

https://shop.ecocare.de/web/static/js/8267.48861f8b.chunk.js

js ecocare.de collected 2026-10-02 00:22:16 UTC 5,771 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhealthpoint_shop=self.webpackChunkhealthpoint_shop||[]).push([[8267],{48267:(e,i,t)=>{t.r(i),t.d(i,{default:()=>A});var n=t(65043),a=t(76106),d=t(73216),l=t(5873),o=t(1439),s=t(17409),c=t(59260),r=t(67820),u=t(21097),m=t(2540),p=t(96767),f=t(60446),v=t.n(f),_=t(86614),h=t(1520),x=t(46126),g=t(75241),b=t(38099),j=t(70579);const A=function(){var e;const i=(0,a.IS)({documentsModal:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:600,background:"#fff",border:"2px solid #fff",borderRadius:5,boxShadow:"24",padding:20,overflow:"hidden",maxHeight:"80%","@media (max-width:768px)":{width:320,padding:20}}}),t=(0,a.jL)(),{translations:f}=(0,u.c)();let A=null===(e=(0,d.zy)().state)||void 0===e?void 0:e.item;const{uploadDocumentsReducer:{uploadedDocuments:y,uploadedDocumentsLocally:N,currentModal:w,action:k},authenticationReducer:{userProfile:C}}=(0,a.GV)((e=>e)),[T,S]=(0,n.useState)(null),[B,D]=(0,n.useState)("0"),{showSnackBar:M}=(0,x.A)(),E=(0,d.Zp)();let L=(0,_.A)();(0,n.useEffect)((()=>{var e,i,t,n;const a=(null===(e=B[0])||void 0===e||null===(i=e.type)||void 0===i?void 0:i.includes("pdf"))||(null===(t=B[0])||void 0===t||null===(n=t.type)||void 0===n?void 0:n.includes("image"));"0"!==B&&(a?R("drag_n_drop"):D("0"))}),["0"!==B]),(0,n.useEffect)((()=>{""===w&&D("0")}),[""===w]),(0,n.useEffect)((()=>{t((0,l.$M)()),t((0,l.Ps)(A.ta_id,A.product_order_id,A.product_order_item_id))}),[t]);const R=e=>{t((0,l.zn)(e))},F=()=>{t((0,l.zn)(""))};return(0,n.useEffect)((()=>{"failed"===k.message&&(M("".concat(f("error.something_went_wrong")),"red"),t((0,l.ty)())),"success"===k.message&&(M("".concat(f("notification.submitted")),"green"),t((0,l.ty)()))}),[t,k.message]),(0,j.jsxs)("div",{children:[(0,j.jsx)(c.A,{category:"Appointment",pageTitle:A.merchant_name,pageSubTitle:"".concat(v()(A.end).diff(A.start,"minute")," ").concat(f("label.minutes.scheduled")," | \n ").concat(A.product_name," \n  "),hasBackButton:!0,handleBack:"T"===(null===A||void 0===A?void 0:A.item_record_state)?()=>E("/web/dashboard"):()=>E(-1)}),(0,j.jsxs)("div",{className:h.A.mainContainer,children:[(0,j.jsxs)("div",{className:h.A.firstSection,children:[(0,j.jsx)("div",{className:h.A.calendar}),(0,j.jsx)("div",{className:h.A.calendarText,children:f("subtitle.your_appointment")}),(0,j.jsx)("div",{className:h.A.calendarText,children:v()(A.start).format("dddd, MMMM D, YYYY H:mm")})]}),(0,j.jsx)("div",{className:h.A.dividerBetweenSections}),(0,j.jsxs)("div",{className:h.A.secondSection,children:[(0,j.jsx)("div",{className:h.A.uploadText,children:f("upload.upload_documents")}),(0,j.jsxs)("div",{className:h.A.buttonContainer,children:[(0,j.jsx)("input",{accept:"image/png, image/jpeg, image/jpg, application/pdf",type:"file",id:"file_upload",onChange:e=>{var i;const t=null===(i=e.target.files)||void 0===i?void 0:i[0];p.QB.includes(t.type)?(S(t),R("file_upload")):M("".concat(f("label.your_file")),"red")}}),(0,j.jsxs)("label",{className:h.A.button,htmlFor:"file_upload",children:[(0,j.jsx)("div",{className:h.A.plusIcon}),(0,j.jsx)("div",{className:h.A.buttonsText,children:f("upload.file_upload")})]}),(0,j.jsxs)("div",{className:h.A.button,onClick:()=>R("capture"),children:[(0,j.jsx)("div",{className:h.A.cameraIcon}),(0,j.jsx)("div",{className:h.A.buttonsText,children:f("upload.capture")})]})]})]}),(0,j.jsx)("div",{className:h.A.thirdSection,children:(null===N||void 0===N?void 0:N.length)>0||(null===y||void 0===y?void 0:y.length)>0||L?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:h.A.cardViewContainer,children:null===y||void 0===y?void 0:y.map(((e,i)=>(0,j.jsx)(o.A,{fileName:"".concat(e.title).concat(null===e||void 0===e?void 0:e.file_extension),fileLink:e.link,fileComment:e.description,dateTime:e.datetime_created,fileType:e.memo||e.file_type,transcription:e.transcript,onDownloadClick:()=>window.open((0,m.ln)(null===e||void 0===e?void 0:e.link)),uploadersName:"".concat(null===e||void 0===e?void 0:e.person_firstname," ").concat(e.person_lastname)},i)))}),(0,j.jsx)("div",{className:h.A.cardViewContainer,children:null===N||void 0===N?void 0:N.map(((e,i)=>(0,j.jsx)(o.A,{fileName:e.file_name,fileComment:e.comment,dateTime:e.datetime_created,fileLink:e.file,fileType:e.file_type,transcription:e.transcription,onDeleteClick:()=>t((0,l.U)(i)),onDownloadClick:()=>function(e){const i=(0,g.i)(e.file,e.file_type),t=document.createElement("a");t.href=window.URL.createObjectURL(i),t.target="_blank",t.download=e.file_name,t.click()}(e),backgroundColor:"#fff"},i)))})]}):(0,j.jsx)(b.A,{onFilesDropped:D})}),(0,j.jsx)("div",{className:h.A.submitContainer,children:(0,j.jsx)("button",{className:h.A.submitButton,disabled:k.isLoading||0===(null===N||void 0===N?void 0:N.length),onClick:async()=>
1{N.forEach((async e=>{if(p.QB.includes(e.file_type)){const i=null===e||void 0===e?void 0:e.file.split(",")[1],n=atob(i),a=new Array(n.length);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);const d=new Uint8Array(a),o=new Blob([d],{type:null===e||void 0===e?void 0:e.file_type}),s=new File([o],null===e||void 0===e?void 0:e.file_name,{type:null===e||void 0===e?void 0:e.file_type});await t((0,l.ND)({ta_id:A.ta_id,product_order_id:A.product_order_id,product_order_item_id:A.product_order_item_id,document_title:e.title,document_description:e.comment,audio_file_transcripted_text:e.transcription,language_id:"EN"===C.language?1:23,attachment_type_id:e.attachment_type_id},s))}}))},children:f("button.submit")})})]}),(0,j.jsx)(s.A,{open:""!==w,onClose:F,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,j.jsx)("div",{className:i.documentsModal,children:(0,j.jsx)(r.A,{file:T||B[0],onClose:F,item:A})})})]})}}}]);
2//# sourceMappingURL=8267.48861f8b.chunk.js.map

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.